:root {
    color-scheme: dark;
    font-family: Verdana, Arial, sans-serif;
    font-synthesis: none;
    --ink: #f4f4fb;
    --muted: #8c91b0;
    --line-bright: #41425d;
    --line-dark: #282957;
    --faint: #696e8a;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #010111 url("../images/bg-2nSg4P5.jpg") repeat-x top center fixed;
}

body {
    min-width: 18rem;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: transparent;
    font-size: 0.8125rem;
    line-height: 1.5;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    z-index: 2;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid #5e5e70;
    background: #14152c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    min-height: 4.375rem;
    border-bottom: 1px solid #242542;
    background: #07081b url("../images/headerbg-ZdcjAV6.png") repeat-x bottom left;
    box-shadow: 0 0.25rem 0.875rem rgb(0 0 0 / 75%);
}

.site-header__inner {
    display: grid;
    width: min(100% - 2rem, 78rem);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.site-logo {
    display: flex;
    width: fit-content;
    min-height: 4.375rem;
    margin: 0 auto;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* The original header kept "How to watch?" on the right of the logo. */
.how-to-watch {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-items: center;
    gap: 0.3rem;
    color: #bebebe;
    font-size: 0.875rem;
    text-decoration: none;
}

.how-to-watch::after {
    width: 38px;
    height: 48px;
    background: url("../images/howtowatch-0C4LoX5.png") no-repeat 0 0;
    content: '';
}

.how-to-watch:hover,
.how-to-watch:focus-visible {
    color: #fff;
}

.how-to-watch:hover::after,
.how-to-watch:focus-visible::after {
    background-position: -38px 0;
}

.how-to-watch:focus-visible {
    outline: 0.125rem solid #7e86c9;
    outline-offset: 0.125rem;
}

/* The original header kept "Search by name" on the left of the logo. */
.quick-search {
    display: flex;
    width: min(100%, 15rem);
    grid-column: 1;
    grid-row: 1;
    gap: 0.3rem;
}

.quick-search input,
.search-form input:not([type='checkbox'], [type='radio']),
.search-form select {
    min-width: 0;
    height: 2rem;
    flex: 1;
    padding: 0 0.5rem;
    border: 1px solid #2a2a3d;
    border-top-color: #5e5e70;
    border-left-color: #5e5e70;
    background: #14152c;
    color: var(--ink);
    font: inherit;
}

.quick-search input {
    font-size: 0.6875rem;
}

.quick-search input::placeholder {
    color: var(--muted);
}

.quick-search button,
.search-form button {
    height: 2rem;
    padding: 0 0.7rem;
    border: 1px solid var(--line-dark);
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    background: #171833;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.quick-search button {
    font-size: 0.6875rem;
}

.quick-search button:hover,
.quick-search button:focus-visible,
.search-form button:hover,
.search-form button:focus-visible {
    border-color: #7e86c9;
    background: #23254a;
    color: #fff;
}

.quick-search input:focus-visible,
.quick-search button:focus-visible,
.search-form input:focus-visible,
.search-form select:focus-visible,
.search-form button:focus-visible {
    outline: 0.125rem solid #7e86c9;
    outline-offset: 0.125rem;
}

.site-logo:focus-visible {
    outline: 0.1875rem solid #7e86c9;
    outline-offset: -0.25rem;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: min(17rem, 70vw);
    height: auto;
}

.page-shell {
    display: grid;
    width: min(100% - 2rem, 78rem);
    margin: 0 auto;
    padding: 2rem 0 4rem;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.page-main {
    min-width: 0;
}

.visually-hidden {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    clip-path: inset(50%);
    white-space: nowrap;
}

.server-navigation {
    position: sticky;
    top: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 2rem);
    padding: 0.75rem 0.9rem 1rem;
    border: 1px solid var(--line-dark);
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    background: rgb(16 17 33 / 71%);
    font-size: 0.6875rem;
}

.server-filter {
    margin: 0 0 0.75rem;
}

.server-filter input {
    width: 100%;
    padding: 0.35rem 0.45rem;
    border: 1px solid #2a2a3d;
    border-top-color: #5e5e70;
    border-left-color: #5e5e70;
    background: #14152c;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.6875rem;
}

.server-filter input::placeholder {
    color: var(--muted);
}

.server-filter input:focus-visible {
    outline: 0.125rem solid #7e86c9;
    outline-offset: -0.125rem;
}

.server-filter__empty {
    margin: 0.9rem 0 0;
    color: var(--muted);
}

.server-navigation .navigation-home {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.server-navigation .brand-name {
    padding: 0.15rem 0.3rem;
    margin: 0.9rem 0 0.35rem;
    color: #747baf;
    cursor: pointer;
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    list-style: none;
    text-transform: uppercase;
}

.server-navigation .brand-name::-webkit-details-marker {
    display: none;
}

.server-navigation .brand-name::before {
    display: inline-block;
    width: 0.9em;
    color: var(--faint);
    content: '+';
    letter-spacing: normal;
}

.server-navigation details[open] > .brand-name::before {
    content: '\2212';
}

.server-navigation .brand-name:hover,
.server-navigation .brand-name:focus-visible {
    color: #a7ade0;
}

.server-navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.server-navigation li + li {
    margin-top: 0.15rem;
}

.server-navigation a {
    display: block;
    padding: 0.2rem 0.3rem;
    border-left: 0.1875rem solid transparent;
    color: #c3c6dd;
    text-decoration: none;
}

.server-navigation a[aria-current='page'] {
    border-left-color: #c8b67c;
    background: rgb(200 182 124 / 14%);
    color: #fff;
    font-weight: 700;
}

.server-navigation a:hover,
.server-navigation a:focus-visible {
    background: rgb(126 134 201 / 18%);
    color: #fff;
}

.page-heading {
    margin-bottom: 1.5rem;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.page-heading p {
    max-width: 42rem;
    margin: 0.5rem 0 0;
    color: #b5b8d0;
}

.page-heading .eyebrow {
    margin: 0 0 0.3rem;
    color: #747baf;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.search-refine {
    max-width: 48rem;
    margin-top: 1.1rem;
}

.search-refine > summary {
    width: fit-content;
    cursor: pointer;
    color: #b5b8d0;
    font-weight: 700;
}

.search-refine[open] > summary {
    margin-bottom: 0.75rem;
}

.search-form {
    display: grid;
    gap: 0.9rem;
}

.search-form label {
    font-weight: 700;
}

.search-form input[aria-invalid='true'],
.search-form select[aria-invalid='true'] {
    border-color: #e6a56f;
}

.search-fieldset {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 0.75rem 0.9rem 0.9rem;
    gap: 0.55rem;
    border: 1px solid var(--line-dark);
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    background: rgb(16 17 33 / 71%);
}

.search-fieldset legend {
    padding: 0 0.3rem;
    color: #747baf;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.search-fieldset__note {
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.search-rules {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.4rem;
    list-style: none;
}

.search-rule {
    display: grid;
    gap: 0.3rem;
}

.search-rule__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.search-rule__fields select {
    flex: 0 0 auto;
}

.search-form input.search-rule__name,
.search-form select.search-rule__server {
    flex: 1 1 12rem;
}

.search-form .search-rule__remove,
.search-form .search-add {
    font-weight: 400;
}

.search-add {
    justify-self: start;
}

.search-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
}

.search-form .search-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 400;
}

.search-range {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.search-bound {
    display: grid;
    gap: 0.3rem;
}

.search-bound__inputs {
    display: flex;
    gap: 0.3rem;
}

.search-form .search-bound__inputs input {
    flex: 0 0 auto;
}

.search-form__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.search-form .search-submit {
    padding: 0 1.6rem;
}

.form-error-summary {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e6a56f;
    background: #2a1d17;
}

.form-error-summary h2 {
    margin: 0 0 0.3rem;
    font-size: 0.875rem;
}

.form-error-summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.form-error-summary a {
    color: #ffe0c2;
}

.page-heading .search-note {
    color: var(--muted);
}

.page-heading .form-error {
    margin: 0;
    padding: 0.4rem 0.6rem;
    border-left: 3px solid #e6a56f;
    background: #442c21;
    color: #ffe0c2;
}

.page-heading .search-form__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.6875rem;
}

.page-heading .search-summary {
    margin-top: 1.1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.game-card {
    overflow: hidden;
    min-width: 0;
    min-height: 14.375rem;
    border: solid var(--line-dark);
    border-width: 1px;
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    border-radius: 0 0 0.1875rem 0.1875rem;
    background: transparent url("../images/boxbg-XjwxYam.png") repeat-x top left;
    box-shadow: 0.3125rem 0.3125rem 0.625rem rgb(0 0 0 / 48%);
}

.game-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.5rem;
    padding: 0.3125rem 0.3125rem 0;
    background: #0d0c24 url("../images/boxheading-474rHVm.png") repeat-x bottom left;
    color: #f5f5f5;
    text-shadow: 0 0 0.125rem #000;
}

.game-card__heading h2 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card__heading .game-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 1.5rem;
    color: #ccc;
    font-size: 0.625rem;
    font-weight: normal;
    text-shadow: none;
}

.single-game {
    width: 100%;
    max-width: 22rem;
}

.game-card__body {
    padding: 0.625rem;
}

.game-card__age,
.game-card__date,
.game-card__time,
.game-card__rank {
    margin: 0;
    color: var(--faint);
    font-size: 0.6875rem;
}

.game-card__age {
    margin-bottom: 0.4rem;
    text-align: center;
}

.game-card__date {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.game-card__time {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 0.4rem;
    margin-top: 0.2rem;
    text-align: center;
}

.game-card__time time:last-of-type {
    text-align: right;
}

.timezone {
    color: #4e5270;
}

.game-card__rank {
    margin-top: 0.5rem;
    color: #888;
    opacity: 0.4;
}

.player-empty {
    display: grid;
    min-height: 7.5rem;
    place-content: center;
    text-align: center;
}

.player-empty span {
    color: #414765;
    font-size: 1.1rem;
    letter-spacing: 0.45em;
}

.player-empty p {
    margin: 0.35rem 0 0;
    color: #777c99;
    font-size: 0.6875rem;
}

.archive-empty {
    padding: 2.5rem;
    border: 1px solid var(--line-dark);
    background: rgb(13 14 37 / 75%);
    text-align: center;
}

.archive-empty h2 {
    margin: 0;
    font-size: 1rem;
}

.archive-empty p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.guide {
    max-width: 46rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line-dark);
    background: rgb(13 14 37 / 75%);
}

.guide h2 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.guide section + section {
    margin-top: 1.5rem;
}

.guide ol,
.guide ul {
    margin: 0;
    padding-left: 1.4rem;
}

.guide li + li {
    margin-top: 0.6rem;
}

.guide li p {
    margin: 0;
}

.guide li p + p {
    margin-top: 0.4rem;
}

.guide code {
    padding: 0 0.25rem;
    background: #14152c;
    font-size: 0.75rem;
}

.guide__figure {
    margin: 0.75rem 0 0;
}

.guide__figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line-bright);
}

.guide__figure figcaption {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.6875rem;
}

.guide__credits p {
    margin: 0;
    color: #b5b8d0;
}

.guide__credits p + p {
    margin-top: 0.4rem;
}

.statistics-periods {
    display: flex;
    margin: 0 0 1rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.statistics-periods a {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line-dark);
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    background: rgb(16 17 33 / 71%);
    color: #b5b8d0;
    text-decoration: none;
}

.statistics-periods a:hover,
.statistics-periods a:focus-visible {
    color: #fff;
}

.statistics-periods a[aria-current='page'] {
    border-color: #7e86c9;
    background: rgb(126 134 201 / 22%);
    color: #fff;
    font-weight: 700;
}

.statistics-scroll {
    overflow-x: auto;
    border: 1px solid var(--line-dark);
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    background: rgb(13 14 37 / 75%);
}

.statistics-scroll:focus-visible {
    outline: 0.125rem solid #7e86c9;
    outline-offset: 0.125rem;
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.statistics-table th,
.statistics-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #23244a;
    text-align: right;
    white-space: nowrap;
}

.statistics-table th:nth-child(2) {
    text-align: left;
}

.statistics-table thead th {
    color: #bebebe;
    font-size: 0.6875rem;
    font-weight: 400;
    vertical-align: bottom;
}

.statistics-table thead a {
    text-decoration: none;
}

.statistics-table thead a:hover,
.statistics-table thead a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.statistics-table th[aria-sort] a {
    color: #fff;
    font-weight: 700;
}

.statistics-table th[aria-sort='descending'] a::after {
    content: ' ▾';
}

.statistics-table th[aria-sort='ascending'] a::after {
    content: ' ▴';
}

.statistics-table tbody tr:hover {
    background: rgb(126 134 201 / 8%);
}

.statistics-table .statistic--name {
    min-width: 9rem;
    color: #fff;
    font-weight: 400;
    overflow-wrap: anywhere;
    white-space: normal;
}

.statistics-table .statistic--position {
    color: var(--faint);
}

.statistics-notes {
    max-width: 46rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.6875rem;
}

.statistics-notes p {
    margin: 0.4rem 0 0;
}

@media (max-width: 52rem) {
    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header__inner {
        padding-bottom: 0.75rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .site-logo {
        grid-column: 1;
    }

    .quick-search {
        width: min(100%, 28rem);
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .how-to-watch {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
    }
}

@media (max-width: 35rem) {
    .page-shell {
        width: min(100% - 1.25rem, 28rem);
        padding-top: 1.4rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card {
        min-height: 0;
    }
}


.game-card__heading a {
    color: inherit;
    text-decoration: none;
}

.game-card__heading a:hover {
    text-decoration: underline;
}

.game-card__heading a:focus-visible {
    outline: 0.125rem solid #fff;
    outline-offset: 0.125rem;
}

.alliance-summary {
    display: flex;
    margin: 0.5rem 0 0;
    align-items: center;
    gap: 0.4rem;
    color: var(--faint);
    font-size: 0.6875rem;
}

.alliance-swatch {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--alliance, #888);
}

.player-table {
    width: 100%;
    margin-top: 0.625rem;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.player-table thead th {
    padding: 0.1875rem;
    color: #bebebe;
    font-size: 0.6875rem;
    font-weight: 400;
    text-align: left;
}

.player-row td {
    padding: 0.1875rem;
    border: 1px solid #333;
    vertical-align: top;
}

.player-name {
    display: block;
    overflow-wrap: anywhere;
    border-bottom: 1px dotted rgb(255 255 255 / 30%);
    color: #d5d5d5;
    font-size: 0.625rem;
    line-height: normal;
}

.player-name:last-child {
    border-bottom: none;
    color: #fff;
    font-size: 0.75rem;
}

.player-name mark {
    padding: 0 0.0625rem;
    background: #e3c35a;
    color: #11122a;
}

.player-territory {
    width: 3rem;
}

.player-score {
    width: 3rem;
}

/* Alliance colour is a thick left border on the territory cell. The original
   put it on the player cell; players asked for it beside the territory. */
.player-territory.alliance-red { border-left: 3px solid red; }
.player-territory.alliance-green { border-left: 3px solid green; }
.player-territory.alliance-blue { border-left: 3px solid blue; }
.player-territory.alliance-yellow { border-left: 3px solid yellow; }
.player-territory.alliance-orange { border-left: 3px solid orange; }
.player-territory.alliance-turquoise { border-left: 3px solid turquoise; }

.alliance-swatch.alliance-red { --alliance: red; }
.alliance-swatch.alliance-green { --alliance: green; }
.alliance-swatch.alliance-blue { --alliance: blue; }
.alliance-swatch.alliance-yellow { --alliance: yellow; }
.alliance-swatch.alliance-orange { --alliance: orange; }
.alliance-swatch.alliance-turquoise { --alliance: turquoise; }

.game-card__download {
    margin: 0.9375rem 0 0;
}

.button {
    display: block;
    min-height: 0.9375rem;
    padding: 0.3125rem;
    border: 0;
    border-top: 1px solid #5e5e70;
    border-left: 1px solid #5e5e70;
    background: #202032 url("../images/buttonbg-9qDskCL.png") repeat-x bottom left;
    color: #bebebe;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.button:hover,
.button:focus-visible {
    color: #fff;
}

.owner-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 78rem;
    margin: 0.75rem auto;
    padding: 0 1rem;
}

.owner-form {
    display: grid;
    gap: 0.75rem;
    max-width: 30rem;
    margin: 1rem 0;
}

.game-clients {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--line-bright);
    border-top: 3px solid #b6a2dc;
    background: rgb(16 17 33 / 85%);
}

.game-clients h2 {
    margin: 0.25rem 0;
}

.game-clients header p:last-child {
    color: #c2c5d8;
}

.game-clients__scroll {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.game-clients__scroll:focus-visible {
    outline: 2px solid #b6a2dc;
    outline-offset: 3px;
}

.game-clients__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
}

.game-clients__table caption {
    padding-bottom: 0.75rem;
    font-weight: bold;
    text-align: left;
}

.game-clients__table caption span {
    display: block;
    margin-top: 0.25rem;
    color: #c2c5d8;
    font-weight: normal;
}

.game-clients__table th,
.game-clients__table td {
    padding: 0.65rem;
    border-bottom: 1px solid var(--line-bright);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.game-clients__table thead {
    background: #20213b;
}

.game-clients__table tbody tr:nth-child(even) {
    background: rgb(255 255 255 / 3%);
}

.game-clients__table code {
    font-size: 0.8125rem;
}

.game-clients__name,
.game-clients__times time,
.game-clients__times span {
    display: block;
    font-weight: normal;
}

.game-clients__times {
    min-width: 10.5rem;
}

.owner-form input,
.owner-form button,
.owner-navigation button {
    padding: 0.65rem;
    font: inherit;
}

.game-card--deleted {
    border: 2px dashed #e6a56f;
}

.game-card__deleted {
    padding: 0.5rem;
    background: #442c21;
    color: #ffe0c2;
    font-weight: bold;
}

.game-card__admin {
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--line-bright);
}

.output-log {
    max-height: 70vh;
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid var(--line-bright);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
}

.output-log-truncated {
    padding: 0.5rem;
    background: #442c21;
    color: #ffe0c2;
}

.flash-message {
    padding: 0.75rem;
    border: 1px solid #81c596;
}

.flash-message--error {
    border-color: #e6a56f;
    background: #442c21;
    color: #ffe0c2;
}

.owner-form select {
    padding: 0.65rem;
    font: inherit;
}

.ban-list {
    margin-top: 1.5rem;
}

.ban-list caption {
    padding: 0.5rem 0;
    font-weight: bold;
    text-align: left;
}

.ban-list td {
    text-align: left;
    white-space: normal;
}

.ban-list form {
    display: inline;
}

.pagination {
    display: grid;
    margin-top: 1.75rem;
    justify-items: center;
    gap: 0.75rem;
    container-type: inline-size;
    font-size: 0.75rem;
}

.pagination__links,
.pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.pagination__links {
    flex-wrap: wrap;
}

.pagination__pages {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination__step,
.pagination__page,
.pagination__jump input,
.pagination__jump button {
    min-width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line-dark);
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    background: #171833;
    color: inherit;
    font: inherit;
}

.pagination__step,
.pagination__page {
    display: inline-flex;
    padding: 0 0.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.pagination a:hover,
.pagination a:focus-visible,
.pagination__jump button:hover,
.pagination__jump button:focus-visible {
    border-color: #7e86c9;
    background: #23254a;
    color: #fff;
}

.pagination a:focus-visible,
.pagination__jump input:focus-visible,
.pagination__jump button:focus-visible {
    outline: 0.125rem solid #7e86c9;
    outline-offset: 0.125rem;
}

span.pagination__step {
    color: var(--faint);
    opacity: 0.5;
}

.pagination__page[aria-current='page'] {
    border-color: #7e86c9;
    background: #2e3270;
    color: #fff;
    font-weight: 700;
}

.pagination__gap {
    display: inline-block;
    min-width: 1.25rem;
    color: var(--muted);
    text-align: center;
}

.pagination__item--narrow-only {
    display: none;
}

.pagination__jump {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
}

.pagination__jump input {
    width: 4.5rem;
    padding: 0 0.4rem;
    background: #14152c;
    color: var(--ink);
    text-align: center;
    appearance: textfield;
}

.pagination__jump input::-webkit-inner-spin-button,
.pagination__jump input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.pagination__jump button {
    padding: 0 0.8rem;
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
}

@container (max-width: 34rem) {
    .pagination__links,
    .pagination__pages {
        gap: 0.15rem;
    }

    .pagination__step,
    .pagination__page {
        min-width: 1.85rem;
        padding: 0 0.3rem;
    }

    .pagination__gap {
        min-width: 1rem;
    }

    .pagination__step-label,
    .pagination__item--wide-only {
        display: none;
    }

    .pagination__item--narrow-only {
        display: block;
    }
}

@media (max-width: 62rem) {
    .page-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .server-navigation {
        position: static;
        max-height: 14rem;
    }
}

.panel {
    min-width: 0;
    margin: 0 0 1rem;
    border: 1px solid var(--line-dark);
    border-top-color: var(--line-bright);
    border-left-color: var(--line-bright);
    border-radius: 0 0 0.1875rem 0.1875rem;
    background: rgb(16 17 33 / 80%) url("../images/boxbg-XjwxYam.png") repeat-x top left;
    box-shadow: 0.3125rem 0.3125rem 0.625rem rgb(0 0 0 / 48%);
}

.panel--table {
    overflow-x: auto;
}

.panel__heading,
.admin-table thead th {
    background: #0d0c24 url("../images/boxheading-474rHVm.png") repeat-x bottom left;
    color: #f5f5f5;
    text-shadow: 0 0 0.125rem #000;
}

.panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.75rem;
    padding: 0.3rem 0.6rem;
}

.panel__heading h2 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-size: 0.8125rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel__body {
    padding: 0.75rem;
    font-size: 0.8125rem;
}

.panel__body > :first-child {
    margin-top: 0;
}

.panel__body > :last-child {
    margin-bottom: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.admin-table thead th {
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #23244a;
    vertical-align: top;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: rgb(255 255 255 / 4%);
}

.admin-table .admin-table__number {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.admin-breadcrumbs {
    font-size: 0.8125rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0 1rem;
    align-items: start;
}

.admin-form {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form textarea {
    width: 100%;
    padding: 0.4rem 0.5rem;
    font: inherit;
}

.admin-form textarea,
.admin-file {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
}

.admin-form__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-form__row input[type="number"] {
    width: 5.5rem;
}

.admin-form__check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-form .button {
    justify-self: start;
    min-width: 6rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.button--danger {
    border-top-color: #a85b5b;
    border-left-color: #a85b5b;
    color: #ffc9c9;
}

.admin-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.admin-help + .panel {
    margin-top: 0.75rem;
}

.admin-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}

.admin-facts dt {
    color: var(--muted);
}

.admin-facts dd {
    margin: 0;
}

.admin-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #23244a;
}

.admin-list li:first-child {
    padding-top: 0;
}

.admin-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-list__title {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-list__title .admin-list__meta {
    font-weight: normal;
}

.admin-list__meta {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.admin-field {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-file {
    overflow-x: auto;
    max-width: 100%;
    margin: 0.25rem 0 0;
    padding: 0.6rem;
    border: 1px solid #23244a;
    background: rgb(0 0 0 / 30%);
    white-space: pre;
}

.panel details + details {
    margin-top: 0.4rem;
}

.config-diff span {
    display: block;
}

.config-diff .diff-added {
    background: #1f3a26;
    color: #c8f5d2;
}

.config-diff .diff-removed {
    background: #4a2222;
    color: #ffd6d6;
}

.config-diff .diff-skip {
    opacity: 0.6;
}

.state,
.result {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    border-radius: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: none;
    text-transform: uppercase;
    vertical-align: middle;
}

.state--game,
.state--on,
.result--done {
    background: #1f3a26;
    color: #c8f5d2;
}

.state--lobby,
.result--pending {
    background: #23244a;
    color: #c9cbe8;
}

.state--chat {
    background: #2a2350;
    color: #d9ccff;
}

.state--other,
.state--off,
.result--failed {
    background: #4a2222;
    color: #ffd6d6;
}
