h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.hub-shell {
    width: min(100% - 36px, 1080px);
    margin: 0 auto;
    padding-bottom: 64px;
}

.hub-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    border-bottom: 1px solid var(--line);
}

.hub-brand {
    color: var(--pitch);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.hub-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.language-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    padding: 4px 8px;
    border: 1px solid #dce7e0;
    border-radius: 999px;
    background: #fff;
    color: #829188;
    font-size: 11px;
}

.language-selector a {
    color: #426256;
    font-weight: 700;
    text-decoration: none;
}

.language-selector a:hover {
    color: #087f68;
}

.hub-header nav .language-selector a {
    color: #426256;
}

.hub-header nav .language-selector a:hover {
    color: #087f68;
}

.hub-header nav a,
.hub-nav-button {
    color: #dbe5dc;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
}

.hub-header nav a:hover,
.hub-nav-button:hover {
    color: var(--pitch);
}

.hub-header nav form {
    margin: 0;
}

.hub-nav-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hub-page {
    width: min(100%, 900px);
    margin: 52px auto 0;
}

.hub-page h1 {
    margin-top: 12px;
}

.hub-eyebrow {
    color: var(--pitch);
    font-family: Consolas, monospace;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hub-panel {
    margin: 22px 0;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #354a3b;
    border-radius: 14px;
    background: linear-gradient(145deg, #17251c, #111b15 70%);
    box-shadow: 0 18px 50px #0003;
}

.hub-panel h2 {
    margin-top: 0;
}

.hub-panel a {
    color: var(--pitch-bright);
}

.quiz-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(ellipse at 18% 0, #1a3021 0, transparent 60%),
        linear-gradient(145deg, #17251c, #111b15 70%);
}

.quiz-preview h2 {
    margin: 8px 0;
}

.quiz-preview-track {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.quiz-preview-crest {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #ffffff26;
    border-radius: 50%;
    background: #f4f5ed;
    color: #29472c;
    font-family: Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 14px #06100a66;
}

.quiz-preview-crest img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.quiz-preview-arrow {
    color: var(--pitch-bright);
    font-size: 15px;
}

.quiz-preview-more {
    position: relative;
}

.quiz-preview-more {
    color: #c1cec3;
    font-size: 13px;
    white-space: nowrap;
}

.hub-lead {
    color: #c1cec3;
    font-size: 18px;
}

.hub-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid #b6e87a;
    border-radius: 6px;
    background: var(--pitch);
    color: #132019;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.hub-button.secondary {
    border-color: #536959;
    background: #1a2b20;
    color: #e6eee7;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(65px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.countdown-grid div {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 16px 8px;
    border: 1px solid #617b4d80;
    border-radius: 8px;
    background: #0d1b12;
}

.countdown-grid strong {
    color: var(--pitch-bright);
    font-family: Consolas, monospace;
    font-size: clamp(23px, 5vw, 38px);
}

.countdown-grid span,
.announcement-date,
.status-label {
    color: var(--muted);
    font-size: 12px;
}

.hub-announcement + .hub-announcement,
.event-list-item + .event-list-item {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.announcement-date {
    margin-top: -8px;
}

.announcement-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px;
    margin: 22px 0;
}

.event-gallery figure {
    margin: 0;
}

.event-gallery img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
    background: #0b130e;
}

.event-background {
    min-height: 220px;
    margin: -12px -12px 22px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
}

.event-audio,
.event-videos,
.event-media-admin {
    margin-top: 24px;
}

.event-audio audio,
.event-videos video {
    display: block;
    width: 100%;
    max-width: 800px;
}

.event-videos video {
    margin: 14px 0;
    background: #000;
}

.event-media-admin-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.hub-form {
    display: grid;
    gap: 12px;
}

.hub-form label {
    display: grid;
    gap: 6px;
    color: #dbe5dc;
    font-size: 14px;
}

.hub-form input,
.hub-form textarea,
.hub-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #526858;
    border-radius: 6px;
    background: #0d1711;
    color: #f3f3ec;
}

.hub-form textarea {
    min-height: 100px;
    resize: vertical;
}

.hub-form .checkbox-line {
    display: flex;
    align-items: center;
}

.hub-form .checkbox-line input {
    width: auto;
    min-height: auto;
}

.auth-page {
    max-width: 500px;
}

.auth-page > p,
.form-error {
    color: #ffc1ae;
}

.hub-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.hub-table th,
.hub-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.hub-table th {
    color: var(--pitch-bright);
}

.hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

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

@media (max-width: 680px) {
    .hub-header {
        align-items: flex-start;
        padding: 17px 0;
    }

    .hub-header nav {
        gap: 10px;
    }

    .hub-header nav a,
    .hub-nav-button {
        font-size: 12px;
    }

    .hub-page {
        margin-top: 32px;
    }

    .quiz-preview {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .quiz-preview-track {
        gap: 9px;
    }

    .quiz-preview-crest {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .countdown-grid {
        gap: 6px;
    }

    .hub-table th,
    .hub-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    color-scheme: dark;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #f3f3ec;
    background: #09130f;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --pitch: #a9dc68;
    --pitch-bright: #c7ed8b;
    --field: #10261c;
    --panel: #132019;
    --line: #2c4033;
    --muted: #94a498;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% -16%, #244431 0, transparent 48%),
        linear-gradient(180deg, #0c1711 0, #09120e 75%);
}

button,
input {
    font: inherit;
}

.game-shell {
    width: min(100% - 40px, 1040px);
    margin: 0 auto;
}

.topbar,
.wordmark,
.guess-controls,
.game-footer {
    display: flex;
    align-items: center;
}

.topbar {
    justify-content: space-between;
    min-height: 88px;
    border-bottom: 1px solid #304437;
}

.wordmark {
    gap: 11px;
    color: #f3f3ec;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-decoration: none;
}

.wordmark strong {
    color: var(--pitch);
}

.wordmark-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #a9dc6880;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 29%, #a9dc682b 30% 32%, transparent 33%),
        linear-gradient(90deg, transparent 49%, #a9dc682b 50% 51%, transparent 52%),
        #14251a;
    color: var(--pitch);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.daily-label,
.eyebrow,
.answer-label,
.game-footer {
    font-family: Consolas, monospace;
    font-size: 10px;
    letter-spacing: .12em;
}

.daily-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a8b6aa;
}

.daily-label::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pitch);
    box-shadow: 0 0 12px #a9dc6870;
    content: "";
}

.game-card {
    position: relative;
    overflow: hidden;
    margin: 66px auto 0;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid #354a3b;
    border-top: 3px solid var(--pitch);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 50% 0, #1a3021 0, transparent 55%),
        linear-gradient(145deg, #17251c, #111b15 70%);
    box-shadow: 0 28px 90px #0005, inset 0 1px #ffffff08;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #78965166;
    border-radius: 4px;
    background: #a9dc6810;
    color: var(--pitch);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow span {
    padding: 0 7px;
    color: #627260;
}

h1 {
    margin: 18px 0 7px;
    color: #f7f7ef;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.intro {
    margin: 0;
    color: #a4b0a6;
    font-size: 15px;
    line-height: 1.6;
}

.career-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 44px 0 0;
    padding: 28px 22px;
    overflow-x: auto;
    list-style: none;
    border: 1px solid #63805c66;
    border-radius: 10px;
    background:
        linear-gradient(90deg, transparent calc(50% - .5px), #d5efcc1c calc(50% - .5px), #d5efcc1c calc(50% + .5px), transparent calc(50% + .5px)),
        radial-gradient(ellipse at 50% 50%, transparent 0 16%, #d5efcc20 calc(16% + 1px) calc(16% + 2px), transparent calc(16% + 3px)),
        repeating-linear-gradient(0deg, #ffffff04 0 1px, transparent 1px 43px),
        linear-gradient(120deg, #153523, #1b442c 50%, #153523);
    box-shadow: inset 0 0 35px #07110b66;
    scrollbar-color: #72935c #10261c;
    scrollbar-width: thin;
}

.career-track::before,
.career-track::after {
    position: absolute;
    top: 50%;
    z-index: 0;
    width: 18px;
    height: 44px;
    border: 1px solid #d5efcc24;
    content: "";
    pointer-events: none;
    transform: translateY(-50%);
}

.career-track::before {
    left: 0;
    border-left: 0;
}

.career-track::after {
    right: 0;
    border-right: 0;
}

.career-stop {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 76px;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.club-crest {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid #ffffff26;
    border-radius: 50%;
    background: #f4f5ed;
    color: #29472c;
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 7px 18px #06100a66, 0 0 0 4px #d1e3c515;
}

.club-crest img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px #0002);
}

.club-name {
    max-width: 92px;
    color: #e0e9de;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 3px #07110b;
}

.track-arrow {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding-top: 19px;
    color: #d3e6c1;
    font-size: 17px;
    text-shadow: 0 1px 3px #07110b;
}

.guess-area {
    width: min(100%, 520px);
    margin: 30px auto 0;
}

.guess-form label {
    display: block;
    margin-bottom: 9px;
    color: #d5dfd5;
    font-size: 12px;
    font-weight: 600;
}

.guess-controls {
    gap: 10px;
}

.guess-controls input {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #405448;
    border-radius: 7px;
    outline: none;
    background: #0d1711;
    color: #f1f0e7;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.guess-controls input:focus {
    border-color: var(--pitch);
    box-shadow: 0 0 0 3px #a9dc6824;
}

.guess-controls button {
    padding: 14px 23px;
    border: 1px solid #c3e78b;
    border-radius: 7px;
    background: var(--pitch);
    color: #122011;
    cursor: pointer;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease;
}

.guess-controls button:hover {
    background: var(--pitch-bright);
    transform: translateY(-1px);
}

.validation-message,
.feedback {
    display: block;
    margin: 9px 0 0;
    color: #efad88;
    font-size: 12px;
}

.reveal-button {
    display: block;
    margin: 19px auto 0;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #a3b0a5;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    text-decoration-color: #59675c;
    text-underline-offset: 4px;
}

.reveal-button:hover {
    color: #f3f3ec;
}

.answer-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 17px;
    border: 1px solid #68814b;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #a9dc6816, transparent 65%),
        #0d1711;
}

.answer-label {
    color: var(--pitch);
}

.answer-reveal strong {
    color: #f1f0e7;
    font-size: 24px;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.leaderboard-card {
    padding: 24px;
    border: 1px solid #2e4435;
    border-radius: 14px;
    background: linear-gradient(145deg, #14221a, #0e1812);
    box-shadow: 0 18px 50px #0003;
}

.leaderboard-card h2 {
    margin: 7px 0 18px;
    font-size: 20px;
}

.leaderboard-empty {
    color: #a8b6aa;
}

.solver-list,
.leaderboard-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.solver-list li,
.leaderboard-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #ffffff0d;
    border-radius: 7px;
    background: #ffffff06;
}

.leaderboard-rank {
    color: #a9dc68;
    font-family: Consolas, monospace;
    font-size: 12px;
}

.leaderboard-name {
    flex: 1;
    overflow-wrap: anywhere;
}

.leaderboard-list strong {
    min-width: 28px;
    color: #c7ed8b;
    font-family: Consolas, monospace;
    text-align: right;
}

.game-footer {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 2px 40px;
    color: #849489;
    letter-spacing: .04em;
}

.maintenance-link {
    flex: 0 0 100%;
    color: #9fb1a3;
    text-align: center;
    letter-spacing: .02em;
    text-underline-offset: 3px;
}

.logo-credit {
    flex: 0 0 100%;
    text-align: center;
    letter-spacing: .02em;
}

.logo-credit a {
    color: #a9c48e;
    text-underline-offset: 3px;
}

.maintenance-shell {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
}

.maintenance-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #304437;
}

.maintenance-back,
.maintenance-unavailable a {
    color: var(--pitch);
    font-size: 13px;
    text-underline-offset: 4px;
}

.maintenance-content {
    padding: 48px 0 64px;
}

.maintenance-content h1 {
    margin-bottom: 8px;
}

.maintenance-intro {
    margin: 0;
    color: #98a39a;
}

.maintenance-logo-action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
    color: #98a39a;
    font-size: 11px;
}

.maintenance-logo-action a {
    color: #a9d16b;
    text-underline-offset: 3px;
}

.maintenance-logo-button {
    padding: 10px 14px;
    border: 1px solid #526d47;
    border-radius: 8px;
    background: #a9d16b;
    color: #172015;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.maintenance-logo-button:disabled {
    cursor: wait;
    opacity: .65;
}

.maintenance-logo-status {
    margin: -12px 0 20px;
    color: #c2cbc1;
    font-size: 12px;
    line-height: 1.5;
}

.maintenance-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 9px 18px;
    margin: 28px 0 18px;
}

.maintenance-toolbar label {
    grid-column: 1 / -1;
    color: #c2cbc1;
    font-size: 12px;
    font-weight: 600;
}

.maintenance-toolbar input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #405448;
    border-radius: 7px;
    outline: none;
    background: #0d1711;
    color: #f1f0e7;
}

.maintenance-toolbar input:focus {
    border-color: var(--pitch);
    box-shadow: 0 0 0 3px #a9dc6824;
}

.maintenance-count {
    padding-bottom: 11px;
    color: #98a39a;
    font-family: Consolas, monospace;
    font-size: 11px;
    white-space: nowrap;
}

.career-table-wrap {
    overflow-x: auto;
    border: 1px solid #354a3b;
    border-radius: 10px;
    background: #111c15;
}

.career-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.career-table th,
.career-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #2d4033;
    vertical-align: top;
}

.career-table thead th {
    position: sticky;
    top: 0;
    background: #1b3022;
    color: var(--pitch);
    font-family: Consolas, monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.career-table tbody tr:last-child > * {
    border-bottom: 0;
}

.career-table tbody tr:hover {
    background: #a9dc6808;
}

.career-player {
    min-width: 170px;
    color: #f3f3ec;
    font-size: 14px;
    font-weight: 600;
}

.current-puzzle-badge {
    display: table;
    margin-top: 7px;
    padding: 3px 6px;
    border: 1px solid #526d47;
    border-radius: 5px;
    color: #a9d16b;
    font-family: Consolas, monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.set-puzzle-button {
    min-width: 132px;
    padding: 8px 10px;
    border: 1px solid #587648;
    border-radius: 7px;
    background: #1e3222;
    color: #c9e5a7;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.set-puzzle-button:disabled {
    cursor: default;
    opacity: .55;
}

.career-answers {
    min-width: 200px;
    color: #98a39a;
    font-size: 12px;
    line-height: 1.55;
}

.career-market-value {
    min-width: 130px;
    color: #c9e5a7;
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.maintenance-club-list {
    display: flex;
    min-width: 350px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.maintenance-club-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #3a4c3e;
    border-radius: 7px;
    background: #17251b;
    color: #d0dbd0;
    font-size: 11px;
    white-space: nowrap;
}

.maintenance-club-list img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.maintenance-empty {
    padding: 28px;
    border: 1px solid #354a3b;
    border-radius: 12px;
    background: #111c15;
    color: #a4b0a6;
    text-align: center;
}

.maintenance-unavailable {
    padding-top: 15vh;
}

@media (max-width: 600px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }

    .game-shell {
        width: min(100% - 24px, 1040px);
    }

    .topbar {
        min-height: 68px;
    }

    .daily-label {
        font-size: 8px;
        text-align: right;
    }

    .game-card {
        margin-top: 30px;
        padding: 25px 18px;
    }

    .career-track {
        padding: 24px 15px;
    }

    .career-track {
        gap: 9px;
        margin-top: 30px;
    }

    .career-stop {
        flex-basis: 65px;
    }

    .club-crest {
        width: 54px;
        height: 62px;
    }

    .game-footer {
        font-size: 9px;
    }

    .maintenance-shell {
        width: min(100% - 24px, 1280px);
    }

    .maintenance-header {
        min-height: 68px;
    }

    .maintenance-content {
        padding-top: 30px;
    }

    .maintenance-toolbar {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .maintenance-toolbar label {
        grid-column: auto;
    }

    .maintenance-count {
        padding: 0;
    }

    .career-table th,
    .career-table td {
        padding: 12px;
    }

    .set-puzzle-button {
        min-width: 116px;
        padding: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.hub-header {
    position: relative;
    z-index: 2;
}

.countdown-event-page {
    --countdown-card: rgba(255, 255, 255, .07);
    --countdown-accent: #ffb703;
    --countdown-muted: #9aa4b2;
    position: relative;
    left: 50%;
    width: 100vw;
    min-height: calc(100vh - 76px);
    margin-left: -50vw;
    overflow: hidden;
    background: #0f1724;
    color: #e6eef6;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.countdown-event-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background-color: #101e2f;
    background-position: center;
    background-size: cover;
    filter: brightness(.45);
}

.countdown-event-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1000px);
    margin: 48px auto 0;
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .2));
}

.countdown-event-header {
    margin-bottom: 20px;
}

.countdown-event-title {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    text-align: center;
}

.countdown-event-subtitle {
    margin: 6px 0 0;
    color: var(--countdown-muted);
    text-align: center;
}

.countdown-event-timer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 24px;
}

.countdown-event-item {
    min-width: 72px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--countdown-card);
    text-align: center;
    backdrop-filter: blur(5px);
}

.countdown-event-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.countdown-event-label {
    margin-top: 6px;
    color: var(--countdown-muted);
    font-size: .75rem;
}

.countdown-event-finished {
    padding-inline: 24px;
}

.countdown-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.countdown-event-meta-text {
    flex: 1;
    min-width: 200px;
}

.countdown-event-location {
    margin: 0 0 8px;
    color: var(--countdown-accent);
    font-weight: 600;
}

.countdown-event-description {
    margin: 0;
    color: var(--countdown-muted);
}

.countdown-event-hero {
    margin: 0;
}

.countdown-event-hero img {
    display: block;
    width: 220px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

.countdown-event-instructions {
    margin-top: 24px;
    padding: 18px;
    border-left: 4px solid var(--countdown-accent);
    border-radius: 12px;
    background: var(--countdown-card);
}

.countdown-event-instructions h1,
.countdown-event-instructions h2,
.countdown-event-instructions h3 {
    margin: 12px 0 8px;
}

.countdown-event-instructions p {
    margin: 8px 0;
    line-height: 1.6;
}

.countdown-event-instructions ul {
    margin: 8px 0;
    padding-left: 20px;
}

.countdown-event-instructions li {
    margin: 4px 0;
}

.countdown-event-instructions strong {
    color: var(--countdown-accent);
}

.countdown-event-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.countdown-audio-button {
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--countdown-accent);
    color: #082032;
    font-weight: 600;
    cursor: pointer;
}

.countdown-beer-link,
.countdown-event-back {
    color: var(--countdown-accent);
    font-weight: 600;
    text-decoration: underline;
}

.countdown-event-videos {
    margin-top: 18px;
}

.countdown-event-videos video {
    display: block;
    width: 100%;
    max-height: 70vh;
    margin: 14px 0;
}

.countdown-event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    margin-top: 24px;
}

.countdown-event-gallery img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.countdown-event-error {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #3b0b0b;
    color: #ffd6d6;
}

.countdown-event-back {
    display: inline-block;
    margin-top: 24px;
}

@media (max-width: 640px) {
    .countdown-event-content {
        margin-top: 20px;
        padding: 16px;
    }

    .countdown-event-title {
        font-size: 1.4rem;
    }

    .countdown-event-item {
        min-width: 60px;
        padding: 12px 8px;
    }

    .countdown-event-hero img {
        width: 120px;
    }
}

/* Shared light, stadium-inspired theme */
:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #20332d;
    background: #f3f7f3;
    --pitch: #087f68;
    --pitch-bright: #0b987c;
    --field: #e4f2ec;
    --panel: #ffffff;
    --line: #dce7e0;
    --muted: #66776f;
}

body {
    color: #20332d;
    background:
        radial-gradient(ellipse at 90% 0, #e0f2eb 0, transparent 36%),
        linear-gradient(180deg, #f7faf7 0, #edf4ef 100%);
}

.hub-shell,
.game-shell,
.maintenance-shell {
    color: #20332d;
}

.hub-header,
.maintenance-header,
.topbar {
    border-color: #dce7e0;
}

.hub-brand,
.hub-header nav a,
.hub-nav-button,
.wordmark {
    color: #28463d;
}

.hub-brand,
.wordmark strong {
    color: #087f68;
}

.hub-header nav a:hover,
.hub-nav-button:hover,
.maintenance-back,
.maintenance-unavailable a {
    color: #075e50;
}

.hub-page h1,
.maintenance-content h1,
.countdown-event-instructions h1,
.countdown-event-instructions h2,
.countdown-event-instructions h3 {
    color: #20332d;
}

.hub-eyebrow,
.eyebrow,
.answer-label,
.maintenance-count {
    color: #087f68;
}

.hub-panel,
.leaderboard-card,
.game-card {
    border: 1px solid #dce7e0;
    background: #fff;
    box-shadow: 0 12px 34px rgba(31, 69, 52, .08);
}

.hub-panel {
    border-radius: 16px;
}

.hub-panel h2,
.leaderboard-card h2 {
    color: #20332d;
}

.hub-panel a {
    color: #087f68;
}

.hub-lead,
.announcement-message,
.hub-panel p,
.maintenance-intro,
.maintenance-logo-action,
.maintenance-logo-status,
.maintenance-toolbar label,
.career-answers {
    color: #53675e;
}

.hub-button,
.countdown-audio-button {
    border: 1px solid #087f68;
    background: #087f68;
    color: #fff;
    box-shadow: 0 3px 8px rgba(8, 127, 104, .15);
}

.hub-button:hover,
.countdown-audio-button:hover {
    border-color: #075e50;
    background: #075e50;
    color: #fff;
}

.hub-panel a.hub-button {
    color: #fff;
}

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

.hub-button.secondary {
    border-color: #c7d8ce;
    background: #f3f7f3;
    color: #315147;
    box-shadow: none;
}

.hub-button.secondary:hover {
    border-color: #91b8a6;
    background: #e9f3ed;
    color: #20332d;
}

.hub-button:focus-visible,
.countdown-audio-button:focus-visible,
.guess-controls button:focus-visible,
.maintenance-logo-button:focus-visible,
.set-puzzle-button:focus-visible {
    outline: 3px solid #e5a12b;
    outline-offset: 3px;
}

.hub-form label,
.guess-form label {
    color: #344d43;
}

.hub-form input,
.hub-form textarea,
.hub-form select,
.maintenance-toolbar input,
.guess-controls input {
    border: 1px solid #cbd9d0;
    background: #fbfdfb;
    color: #20332d;
}

.hub-form input:focus,
.hub-form textarea:focus,
.hub-form select:focus,
.maintenance-toolbar input:focus,
.guess-controls input:focus {
    border-color: #15977c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 151, 124, .14);
}

.hub-form input::placeholder,
.hub-form textarea::placeholder,
.maintenance-toolbar input::placeholder,
.guess-controls input::placeholder {
    color: #84938b;
}

.hub-form input[type="checkbox"] {
    width: auto;
    accent-color: #087f68;
}

.hub-form .checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hub-table thead th {
    background: #eaf4ef;
    color: #286452;
}

.form-error,
.validation-message {
    color: #b74737;
}

.hub-table th,
.career-table thead th {
    background: #eaf4ef;
    color: #286452;
}

.hub-table td,
.career-table th,
.career-table td {
    border-color: #e1eae4;
}

.hub-table tbody tr:hover,
.career-table tbody tr:hover {
    background: #f2f8f4;
}

.career-table-wrap {
    border-color: #dce7e0;
    background: #fff;
}

.career-player {
    color: #20332d;
}

.career-market-value,
.current-puzzle-badge {
    color: #087f68;
}

.current-puzzle-badge,
.set-puzzle-button {
    border-color: #9bc8b5;
    background: #edf7f1;
}

.set-puzzle-button {
    color: #17634f;
}

.set-puzzle-button:hover {
    background: #dff0e7;
}

.maintenance-logo-button {
    border-color: #087f68;
    background: #087f68;
    color: #fff;
}

.maintenance-logo-button:hover {
    background: #075e50;
}

.maintenance-club-list li {
    border-color: #dce7e0;
    background: #f4f8f5;
    color: #40594e;
}

.maintenance-empty {
    border-color: #dce7e0;
    background: #fff;
    color: #66776f;
}

.game-shell {
    --pitch: #087f68;
    --pitch-bright: #0b987c;
}

.game-card {
    border-top: 4px solid #e5a12b;
    border-radius: 18px;
}

.game-card h1 {
    color: #20332d;
}

.intro,
.daily-label,
.game-footer {
    color: #66776f;
}

.wordmark {
    color: #28463d;
}

.wordmark-mark {
    border-color: #91cbb8;
    background: #e5f4ed;
    color: #087f68;
    box-shadow: none;
}

.eyebrow {
    border-color: #c5e2d5;
    background: #edf7f1;
}

.eyebrow span {
    color: #7a9b8c;
}

.career-track {
    border-color: #c9e1d4;
    background:
        linear-gradient(90deg, transparent calc(50% - .5px), #fff9 calc(50% - .5px), #fff9 calc(50% + .5px), transparent calc(50% + .5px)),
        radial-gradient(ellipse at 50% 50%, transparent 0 16%, #fff9 calc(16% + 1px) calc(16% + 2px), transparent calc(16% + 3px)),
        repeating-linear-gradient(0deg, #ffffff22 0 1px, transparent 1px 43px),
        linear-gradient(120deg, #dcefe4, #c8e5d4 50%, #dcefe4);
    box-shadow: inset 0 0 24px rgba(29, 102, 67, .08);
    scrollbar-color: #88bba2 #e0eee5;
}

.career-track::before,
.career-track::after {
    border-color: #548b6c66;
}

.club-crest {
    border-color: #d9e7de;
    background: #fff;
    color: #315a47;
    box-shadow: 0 4px 12px rgba(36, 78, 52, .14), 0 0 0 4px #fff9;
}

.club-name,
.track-arrow {
    color: #375448;
    text-shadow: none;
}

.guess-controls input {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(35, 66, 49, .04);
}

.guess-controls button {
    border-color: #e5a12b;
    background: #e5a12b;
    color: #34260c;
}

.guess-controls button:hover {
    border-color: #c98614;
    background: #f0b84f;
}

.validation-message,
.feedback {
    color: #b74737;
}

.answer-reveal {
    border-color: #a6d4bd;
    background: linear-gradient(135deg, #e3f4ea, #fff 75%);
}

.answer-reveal strong {
    color: #20332d;
}

.answer-market-value {
    color: #53675e;
    font-size: 14px;
}

.yesterday-answer {
    margin: 20px auto;
    padding: 20px clamp(18px, 3vw, 30px);
    border: 1px solid #dce7e0;
    border-left: 4px solid #e5a12b;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(31, 69, 52, .08);
}

.yesterday-answer h2 {
    margin: 8px 0;
    color: #20332d;
    font-size: 20px;
}

.yesterday-answer > strong {
    color: #20332d;
    font-size: 18px;
}

.yesterday-answer p {
    margin-bottom: 0;
    color: #53675e;
}

.leaderboard-card {
    border-radius: 14px;
}

.solver-list li,
.leaderboard-list li {
    border-color: #e5ece7;
    background: #f7faf8;
    color: #344d43;
}

.leaderboard-rank,
.leaderboard-list strong {
    color: #087f68;
}

.leaderboard-empty {
    color: #66776f;
}

.game-footer {
    color: #6c7f75;
}

.logo-credit a,
.maintenance-link {
    color: #087f68;
}

.countdown-grid div {
    border-color: #b9dbc9;
    background: #edf7f1;
}

.countdown-grid strong {
    color: #087f68;
}

.countdown-grid span,
.announcement-date,
.status-label {
    color: #66776f;
}

.countdown-event-page {
    --countdown-card: rgba(255, 255, 255, .78);
    --countdown-accent: #087f68;
    --countdown-muted: #52675d;
    background:
        radial-gradient(ellipse at 90% 0, #e0f2eb 0, transparent 36%),
        linear-gradient(180deg, #f7faf7 0, #edf4ef 100%);
    color: #20332d;
}

.countdown-event-background {
    filter: brightness(.82);
    opacity: .34;
}

.countdown-event-content {
    margin-top: 28px;
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid #dce7e0;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 50px rgba(31, 69, 52, .12);
    backdrop-filter: blur(8px);
}

.countdown-event-title {
    color: #20332d;
}

.countdown-event-item {
    border: 1px solid #cde2d5;
    background: #edf7f1;
    color: #1c4538;
    backdrop-filter: none;
}

.countdown-event-label {
    color: #66776f;
}

.countdown-event-instructions {
    border-left-color: #e5a12b;
    background: #f5f8f5;
}

.countdown-event-instructions strong,
.countdown-beer-link,
.countdown-event-back {
    color: #087f68;
}

.countdown-event-hero img,
.countdown-event-gallery img {
    box-shadow: 0 5px 16px rgba(31, 69, 52, .16);
}

.countdown-event-banner {
    margin: 18px 0;
}

.countdown-event-banner img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border: 1px solid #dce3ef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(38, 55, 85, .14);
}

.countdown-event-extra-image {
    margin: 22px 0 0;
}

.countdown-event-extra-image img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
}

.event-preview-banner {
    display: block;
    width: 100%;
    max-height: 240px;
    margin: 14px 0;
    object-fit: cover;
    border-radius: 10px;
}

.event-media-admin-item {
    align-items: flex-end;
    padding: 14px;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    background: #f7f9fc;
}

.event-media-admin-item > div,
.event-media-admin-item label {
    display: grid;
    gap: 7px;
}

.event-media-admin-item > div {
    flex: 1;
}

.event-media-admin-item label {
    min-width: min(100%, 260px);
}

.career-market-value,
.current-puzzle-badge {
    color: #315fc4;
}

.current-puzzle-badge {
    border-color: #ccd7eb;
    background: #eef2fa;
}

.maintenance-logo-action a,
.logo-credit a,
.maintenance-link {
    color: #315fc4;
}

.maintenance-shell .wordmark,
.maintenance-shell .wordmark-mark {
    color: #315fc4;
}

.maintenance-shell .wordmark strong {
    color: #244b9f;
}

.maintenance-logo-button:disabled,
.set-puzzle-button:disabled {
    opacity: .6;
}

@media (max-width: 760px) {
    .hub-shell {
        width: min(100% - 24px, 1080px);
        padding-bottom: 32px;
    }

    .hub-header {
        align-items: center;
        gap: 12px;
        padding: 14px 0;
    }

    .hub-header nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px 14px;
    }

    .hub-header nav a,
    .hub-nav-button {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        font-size: 13px;
    }

    .language-selector {
        margin-left: auto;
    }

    .hub-page {
        width: 100%;
        margin-top: 28px;
    }

    .hub-page h1,
    .maintenance-content h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .hub-panel {
        margin: 16px 0;
        padding: 18px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin: 18px 0;
    }

    .countdown-grid div {
        padding: 12px 6px;
    }

    .maintenance-shell {
        width: min(100% - 24px, 1280px);
    }

    .maintenance-header {
        min-height: 64px;
        gap: 12px;
    }

    .maintenance-content {
        padding: 28px 0 40px;
    }

    .maintenance-logo-action {
        align-items: stretch;
        flex-direction: column;
        margin: 18px 0;
        font-size: 13px;
        line-height: 1.5;
    }

    .maintenance-logo-button {
        min-height: 44px;
        width: 100%;
    }

    .maintenance-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 20px 0 14px;
    }

    .maintenance-toolbar label {
        grid-column: auto;
    }

    .maintenance-toolbar input {
        min-height: 46px;
    }

    .maintenance-count {
        padding: 0;
        white-space: normal;
    }

    .career-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .career-table,
    .career-table tbody {
        display: block;
        width: 100%;
    }

    .career-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .career-table tbody tr {
        display: block;
        margin-bottom: 14px;
        overflow: hidden;
        border: 1px solid #dce3ef;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(38, 55, 85, .07);
    }

    .career-table tbody th[scope="row"],
    .career-table tbody td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 12px 14px;
        border-bottom: 1px solid #edf1f6;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .career-table tbody th[scope="row"] {
        background: #f6f8fc;
        font-size: 16px;
    }

    .career-table tbody td::before {
        display: block;
        margin-bottom: 6px;
        color: #52637e;
        font-family: "Segoe UI", Arial, sans-serif;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        content: attr(data-label);
    }

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

    .career-table .career-market-value {
        white-space: normal;
    }

    .career-table .career-answers {
        min-width: 0;
    }

    .career-table .maintenance-club-list {
        min-width: 0;
        gap: 7px;
    }

    .maintenance-club-list {
        gap: 7px;
    }

    .maintenance-club-list li {
        max-width: 100%;
        white-space: normal;
    }

    .maintenance-club-list li span {
        overflow-wrap: anywhere;
    }

    .career-table .set-puzzle-button {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
    }

    .game-shell {
        width: min(100% - 24px, 1040px);
    }

    .topbar {
        min-height: 70px;
        gap: 10px;
    }

    .daily-label {
        max-width: 44%;
        font-size: 8px;
        line-height: 1.4;
        text-align: right;
    }

    .guess-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .guess-controls input,
    .guess-controls button,
    .hub-button {
        min-height: 44px;
    }

    .guess-controls button {
        width: 100%;
    }

    .leaderboard-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .leaderboard-card {
        padding: 18px;
    }

    .countdown-event-page {
        min-height: calc(100vh - 64px);
    }

    .countdown-event-content {
        width: min(100%, 1000px);
        margin-top: 12px;
        padding: 16px;
    }

    .countdown-event-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .countdown-event-banner img {
        max-height: 260px;
    }

    .countdown-event-controls,
    .event-media-admin-item {
        align-items: stretch;
        flex-direction: column;
    }

    .countdown-event-controls audio {
        width: 100%;
    }

    .event-media-admin-item label,
    .event-media-admin-item input[type="file"] {
        width: 100%;
        min-width: 0;
    }

    .hub-table {
        min-width: 620px;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.event-background {
    border: 1px solid #dce7e0;
}

.event-gallery img {
    background: #f1f5f2;
}

@media (max-width: 680px) {
    .hub-header {
        background: rgba(247, 250, 247, .92);
    }
}

/* Keep the hub cool and neutral; the game keeps its own pitch-green palette. */
:root {
    color: #253248;
    background: #f4f6fb;
    --pitch: #315fc4;
    --pitch-bright: #4778df;
    --field: #e9eef8;
    --panel: #fff;
    --line: #dce3ef;
    --muted: #66758a;
}

body {
    color: #253248;
    background:
        radial-gradient(ellipse at 90% 0, #e7edfb 0, transparent 38%),
        linear-gradient(180deg, #f8f9fc 0, #eef1f7 100%);
}

.hub-shell,
.maintenance-shell {
    color: #253248;
}

.hub-header,
.maintenance-header,
.topbar {
    border-color: #dce3ef;
}

.hub-brand,
.hub-header nav a,
.hub-nav-button {
    color: #34435a;
}

.hub-brand,
.hub-header nav a:hover,
.hub-nav-button:hover {
    color: #315fc4;
}

.hub-page h1,
.maintenance-content h1 {
    color: #253248;
}

.hub-eyebrow,
.maintenance-back,
.maintenance-unavailable a,
.maintenance-count {
    color: #315fc4;
}

.hub-panel,
.leaderboard-card {
    border-color: #dce3ef;
    background: #fff;
    box-shadow: 0 12px 34px rgba(38, 55, 85, .08);
}

.hub-panel h2,
.leaderboard-card h2 {
    color: #253248;
}

.hub-panel a:not(.hub-button) {
    color: #315fc4;
}

.event-summary {
    white-space: pre-line;
}

.hub-lead,
.announcement-message,
.hub-panel p,
.maintenance-intro,
.maintenance-logo-action,
.maintenance-logo-status,
.maintenance-toolbar label {
    color: #58677e;
}

.hub-button {
    border-color: #315fc4;
    background: #315fc4;
    color: #fff;
    box-shadow: 0 3px 8px rgba(49, 95, 196, .18);
}

.hub-button:hover {
    border-color: #244b9f;
    background: #244b9f;
    color: #fff;
}

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

.hub-button.secondary {
    border-color: #cad4e5;
    background: #f3f6fb;
    color: #34435a;
    box-shadow: none;
}

.hub-button.secondary:hover {
    border-color: #aabbd8;
    background: #e8eef8;
    color: #253248;
}

.hub-button:focus-visible,
.countdown-audio-button:focus-visible,
.guess-controls button:focus-visible,
.maintenance-logo-button:focus-visible,
.set-puzzle-button:focus-visible {
    outline-color: #d68b15;
}

.hub-form label,
.hub-table td,
.event-list-item {
    color: #34435a;
}

.hub-form input,
.hub-form textarea,
.hub-form select,
.maintenance-toolbar input {
    border-color: #cbd5e4;
    background: #fbfcfe;
    color: #253248;
}

.hub-form input:focus,
.hub-form textarea:focus,
.hub-form select:focus,
.maintenance-toolbar input:focus {
    border-color: #4778df;
    box-shadow: 0 0 0 3px rgba(71, 120, 223, .16);
}

.hub-form input[type="checkbox"] {
    accent-color: #315fc4;
}

.hub-table thead th,
.hub-table th,
.career-table thead th {
    background: #edf1f8;
    color: #344b72;
}

.hub-table th,
.hub-table td,
.career-table th,
.career-table td,
.career-table-wrap {
    border-color: #dce3ef;
}

.hub-table tbody tr:hover,
.career-table tbody tr:hover {
    background: #f3f6fb;
}

.maintenance-logo-button {
    border-color: #315fc4;
    background: #315fc4;
    color: #fff;
}

.maintenance-logo-button:hover {
    border-color: #244b9f;
    background: #244b9f;
}

.maintenance-club-list li,
.maintenance-empty {
    border-color: #dce3ef;
    background: #f7f9fc;
    color: #58677e;
}

.countdown-grid div {
    border-color: #ccd7eb;
    background: #eef2fa;
}

.countdown-grid strong {
    color: #315fc4;
}

.countdown-event-page {
    --countdown-accent: #d68b15;
    --countdown-muted: #64738a;
    background:
        radial-gradient(ellipse at 90% 0, #e7edfb 0, transparent 38%),
        linear-gradient(180deg, #f8f9fc 0, #eef1f7 100%);
    color: #253248;
}

.countdown-event-content {
    border-color: #dce3ef;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(38, 55, 85, .12);
}

.countdown-event-title,
.countdown-event-instructions h1,
.countdown-event-instructions h2,
.countdown-event-instructions h3 {
    color: #253248;
}

.countdown-event-location,
.countdown-event-instructions strong {
    color: #315fc4;
}

.countdown-event-description {
    color: #58677e;
    white-space: pre-line;
}

.countdown-event-item {
    border-color: #dce3ef;
    background: #eef2fa;
    color: #344b72;
}

.countdown-event-label {
    color: #64738a;
}

.countdown-event-instructions {
    border-left-color: #d68b15;
    background: #f5f7fb;
}

.countdown-beer-link,
.countdown-event-back {
    color: #315fc4;
}

.countdown-audio-button {
    border-color: #d68b15;
    background: #f3ba58;
    color: #30240d;
}

.countdown-audio-button:hover {
    border-color: #bb7410;
    background: #e5a12b;
    color: #30240d;
}

.hub-header {
    gap: 18px 28px;
    padding: 14px 0;
}

.hub-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 17px;
}

.hub-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #315fc4, #4778df);
    box-shadow: 0 4px 10px rgba(49, 95, 196, .22);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.hub-header nav.hub-menu {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    padding: 7px;
    border: 1px solid #dce3ef;
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 5px 18px rgba(38, 55, 85, .06);
}

.hub-header nav.hub-menu .hub-menu-link {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #42516a;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.hub-menu-icon {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.hub-header nav.hub-menu .hub-menu-link:hover {
    border-color: #dce6f6;
    background: #f3f6fc;
    color: #244b9f;
}

.hub-header nav.hub-menu .hub-menu-link.active {
    border-color: #d6e1f7;
    background: #eaf0fc;
    color: #244b9f;
}

.hub-header nav.hub-menu .hub-menu-link:focus-visible {
    outline: 3px solid #d68b15;
    outline-offset: 2px;
}

.hub-header nav.hub-menu .hub-menu-signout {
    margin-left: auto;
    color: #80504a;
}

.hub-header nav.hub-menu .hub-menu-signout:hover {
    border-color: #f0d9d5;
    background: #fff4f1;
    color: #9b3c32;
}

.hub-header nav.hub-menu .language-selector {
    align-self: center;
    flex: 0 0 auto;
    margin: 0 0 0 4px;
    padding: 6px 9px;
}

.hub-header nav.hub-menu .language-selector a {
    min-height: 28px;
    padding: 0 3px;
}

.hub-menu-toggle {
    display: none;
}

@media (max-width: 760px) {
    .hub-header {
        align-items: center;
        gap: 12px;
        padding: 12px 0 14px;
    }

    .hub-brand {
        font-size: 16px;
    }

    .hub-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        margin-left: auto;
        padding: 8px 13px;
        border: 1px solid #d6e1f7;
        border-radius: 12px;
        background: #eaf0fc;
        color: #244b9f;
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .hub-menu-toggle:focus-visible {
        outline: 3px solid #d68b15;
        outline-offset: 2px;
    }

    .hub-menu-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 2;
    }

    .hub-header nav.hub-menu {
        display: none;
    }

    .hub-header nav.hub-menu.is-open {
        display: grid;
        flex: 1 0 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 7px;
        padding: 9px;
        border-radius: 18px;
        background: #fff;
    }

    .hub-header nav.hub-menu .hub-menu-link {
        justify-content: flex-start;
        min-height: 48px;
        padding: 9px 11px;
        border-color: #e8edf5;
        background: #f8f9fc;
        font-size: 13px;
        text-align: left;
    }

    .hub-header nav.hub-menu .hub-menu-link.active {
        border-color: #cbd9f2;
        background: #eaf0fc;
    }

    .hub-header nav.hub-menu .hub-menu-icon {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }

    .hub-header nav.hub-menu .hub-menu-signout {
        margin-left: 0;
    }

    .hub-header nav.hub-menu .language-selector {
        justify-self: end;
        min-height: 42px;
        margin: 0;
    }
}

@media (max-width: 380px) {
    .hub-header nav.hub-menu {
        grid-template-columns: minmax(0, 1fr);
    }
}