* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f1923;
    --card-bg: #1a2733;
    --accent: #ff6b35;
    --accent2: #4ecdc4;
    --text: #e8e8e8;
    --muted: #8899aa;
    --green: #2ecc71;
    --red: #e74c3c;
    --border: #2a3a4a;
    --line: #3a4a5a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* ── Navbar ─────────────────────────────────────────────────────── */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border-bottom: 2px solid var(--accent);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.nav-active { color: var(--accent); font-weight: 600; }
.nav-user { color: var(--muted); font-size: 0.85rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* ── Flash ──────────────────────────────────────────────────────── */

.flash {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ── Auth ───────────────────────────────────────────────────────── */

.auth-card {
    max-width: 360px;
    margin: 3rem auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.auth-logo {
    display: block;
    width: 200px;
    margin: 1.5rem auto 0;
}

.auth-card h1 { text-align: center; margin-bottom: 1.5rem; }

.auth-card label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-card input, .auth-card select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.auth-card button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-card button:hover { opacity: 0.9; }

.auth-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-link a { color: var(--accent2); }

/* ── Rules banner ───────────────────────────────────────────────── */

.rules-banner {
    margin-bottom: 1.5rem;
}

.rules-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--accent2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}

.rules-toggle:hover { background: var(--border); }

.rules-detail {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 1.25rem;
}

.rules-detail.open { display: block; }

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.rule-block h3 {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.rule-block p {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.rule-block ul {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.6;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
}

.rule-block li { margin-bottom: 0.15rem; }

.c-green { color: var(--green); }
.c-red { color: var(--red); }

.formula {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.2rem;
}

.formula-note {
    color: var(--muted);
    font-size: 0.72rem;
}

.mult-table {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.mult-table span {
    font-size: 0.72rem;
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 3px;
    color: var(--muted);
}

.mult-table b {
    color: var(--accent);
}

.rule-block-wide {
    grid-column: 1 / -1;
}

#conf-chart {
    width: 100%;
    height: 160px;
    display: block;
}

.chart-caption {
    text-align: center;
    font-size: 0.7rem !important;
    color: var(--muted) !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0 !important;
}

.dismiss-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}

.dismiss-btn:hover { border-color: var(--accent2); color: var(--text); }

/* ── Bracket header ─────────────────────────────────────────────── */

.bracket-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.bracket-header h1 { margin-bottom: 0; }

.tz-label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 400;
}

/* ── Justification box ─────────────────────────────────────────── */

.justification-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.justification-box.locked {
    opacity: 0.7;
}

.justification-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.justification-header h3 {
    font-size: 0.9rem;
    color: var(--accent);
    margin: 0;
}

.justification-hint {
    font-size: 0.75rem;
    color: var(--muted);
}

#justification-text {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
}

#justification-text:focus {
    outline: none;
    border-color: var(--accent);
}

#justification-text:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.justification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.char-count {
    font-size: 0.7rem;
    color: var(--muted);
}

.justification-save {
    padding: 0.35rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.justification-save:hover { opacity: 0.9; }

.justification-locked {
    font-size: 0.75rem;
    color: var(--red);
    font-style: italic;
}

.save-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.save-status.saved {
    color: var(--green);
}

.save-status.saved::before {
    content: '\2713 ';
}

.save-status.save-unsaved {
    color: var(--accent);
}

.save-status.save-error {
    color: var(--red);
}

/* ── Score summary bar ──────────────────────────────────────────── */

.score-summary {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
}

.summary-label {
    font-size: 0.6rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.summary-best .summary-value { color: var(--green); }
.summary-worst .summary-value { color: var(--red); }
.summary-value.summary-best { color: var(--green); }
.summary-value.summary-worst { color: var(--red); }

/* ── Region section ─────────────────────────────────────────────── */

.region-section {
    margin-bottom: 2rem;
}

.region-name {
    font-size: 1.1rem;
    color: var(--accent2);
    margin-bottom: 0.5rem;
    padding-left: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ── Bracket layout ─────────────────────────────────────────────── */

.region-bracket, .ff-bracket {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.round-col {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.round-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding-bottom: 0.4rem;
    white-space: nowrap;
}

.champ-label { color: var(--accent); font-weight: 700; }

.round-mult {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 3px;
}

.round-games {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 4px;
    min-height: 400px;
}

/* ── Connector columns ──────────────────────────────────────────── */

.connector-col {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 24px;
}

.connector-games {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    margin-top: 22px; /* align with round-games (account for round-label) */
}

.bracket-connector {
    flex: 1;
    position: relative;
    min-height: 30px;
}

/* Top arm: horizontal at 25%, down to 50% */
.bracket-connector::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    width: 50%;
    height: 25%;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

/* Bottom arm: horizontal at 75%, up to 50% */
.bracket-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 50%;
    height: 25%;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

/* Output line from center to right */
.bracket-connector span {
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    border-top: 1px solid var(--line);
}

/* ── Matchup box ────────────────────────────────────────────────── */

.matchup {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 170px;
    font-size: 0.78rem;
    position: relative;
}

.matchup.locked {
    border-color: var(--red);
    opacity: 0.85;
}

.matchup.decided {
    opacity: 0.7;
}

/* ── Tournament tabs ───────────────────────────────────────────── */

.tournament-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tournament-tab {
    padding: 0.5rem 1.5rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.tournament-tab:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--accent2);
}

.tournament-tab.active {
    background: var(--accent2);
    border-color: var(--accent2);
    color: var(--bg);
    font-weight: 700;
}

/* ── Game time bar ──────────────────────────────────────────────── */

.game-time-bar {
    font-size: 0.6rem;
    text-align: center;
    padding: 1px 4px;
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent2);
    border-bottom: 1px solid var(--border);
}

.game-time-bar.locked {
    background: rgba(231, 76, 60, 0.15);
    color: var(--red);
}

/* ── Team slot ──────────────────────────────────────────────────── */

.team-slot {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    min-height: 28px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.team-slot:last-of-type {
    border-bottom: none;
}

.team-slot.clickable {
    cursor: pointer;
}

.team-slot.clickable:hover {
    background: rgba(255, 255, 255, 0.05);
}

.team-slot.picked {
    background: rgba(255, 107, 53, 0.15);
}

.team-slot.picked .slot-name {
    font-weight: 700;
    color: var(--accent);
}

.team-slot.actual-winner {
    background: rgba(46, 204, 113, 0.12);
}

.team-slot.actual-winner .slot-name {
    color: var(--green);
}

.team-slot.actual-loser {
    opacity: 0.4;
}

.team-slot.empty {
    justify-content: center;
}

.slot-seed {
    color: var(--muted);
    font-size: 0.68rem;
    min-width: 16px;
    text-align: right;
}

.slot-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-tbd {
    color: var(--border);
    font-size: 0.7rem;
    font-style: italic;
}

/* ── Confidence row ─────────────────────────────────────────────── */

.conf-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 5px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
    transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
    max-height: 40px;
    overflow: hidden;
}

.conf-row.conf-hidden {
    max-height: 0;
    opacity: 0;
    padding: 0 8px;
    border-top: none;
}

.conf-slider {
    flex: 1;
    height: 6px;
    accent-color: var(--accent);
    cursor: pointer;
    min-width: 0;
}

.conf-val {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.conf-close {
    background: none;
    border: none;
    color: var(--green);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}

.conf-close:hover { opacity: 0.7; }

.conf-reset {
    background: none;
    border: none;
    color: var(--red);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.conf-reset:hover { opacity: 1; }
.conf-reset:disabled { opacity: 0.2; cursor: not-allowed; }

.pick-badges {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.conf-badge {
    font-size: 0.6rem;
    color: var(--accent);
    font-weight: 700;
    opacity: 0.9;
}

.mult-badge {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0 3px;
    border-radius: 2px;
    cursor: help;
}

.mult-full {
    background: var(--green);
    color: #fff;
}

.mult-reduced {
    background: var(--red);
    color: #fff;
}

/* ── Result indicators ──────────────────────────────────────────── */

.result-correct, .result-wrong {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
}

.result-correct {
    background: rgba(46, 204, 113, 0.15);
    color: var(--green);
}

.result-wrong {
    background: rgba(231, 76, 60, 0.15);
    color: var(--red);
}

/* ── Score bar ─────────────────────────────────────────────────── */

.score-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1px 6px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
}

.score-pts { font-variant-numeric: tabular-nums; }

.score-won { color: var(--green); }
.score-lost { color: var(--red); }

.score-if-right {
    color: var(--green);
    opacity: 0.6;
}

.score-if-wrong {
    color: var(--red);
    opacity: 0.6;
}

/* ── Final Four section ─────────────────────────────────────────── */

.final-four-section {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent);
}

.ff-bracket {
    justify-content: center;
}

.ff-bracket .round-games {
    min-height: 200px;
}

/* ── Toast ──────────────────────────────────────────────────────── */

.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--accent2);
    color: var(--bg);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 300;
    pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--red); color: #fff; }

/* ── Save flash on matchup card ────────────────────────────────── */

.matchup.save-flash {
    animation: saveFlash 0.7s ease;
}

.matchup.save-flash-error {
    animation: saveFlashError 0.7s ease;
}

@keyframes saveFlash {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); border-color: var(--green); }
    50% { box-shadow: 0 0 12px 2px rgba(46, 204, 113, 0.3); border-color: var(--green); }
    100% { box-shadow: none; border-color: var(--border); }
}

@keyframes saveFlashError {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); border-color: var(--red); }
    50% { box-shadow: 0 0 12px 2px rgba(231, 76, 60, 0.3); border-color: var(--red); }
    100% { box-shadow: none; border-color: var(--border); }
}

/* ── Leaderboard ────────────────────────────────────────────────── */

.scoring-note {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1.25rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.score-table { width: 100%; border-collapse: collapse; }

.score-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--accent);
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
}

.score-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.score-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

.table-legend {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.score-best { color: var(--green); }
.score-worst { color: var(--red); }

.pending-count {
    font-size: 0.7rem;
    color: var(--accent2);
    margin-left: 2px;
}

.empty-msg {
    color: var(--muted);
    text-align: center;
    padding: 2rem;
}


/* ── Game Day ───────────────────────────────────────────────────── */

.gd-header { margin-bottom: 0.5rem; }
.gd-header h1 { margin-bottom: 0.25rem; }
.gd-subtitle { color: var(--muted); font-size: 0.8rem; }

.gd-summary {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.gd-filters {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.gd-filter {
    padding: 0.35rem 0.8rem;
    background: var(--card-bg);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
}

.gd-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.gd-sep { color: var(--border); margin: 0 0.3rem; }

/* ── Game Day cards ────────────────────────────────────────────── */

.gd-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.gd-card-live { border-left: 3px solid var(--green); }
.gd-card-post { border-left: 3px solid var(--muted); opacity: 0.85; }
.gd-card-pre { border-left: 3px solid var(--accent2); }

.gd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gd-tags { display: flex; gap: 0.4rem; align-items: center; }
.gd-badges { display: flex; gap: 0.4rem; align-items: center; }

.gd-gender {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}
.gd-gender-m {
    background: #2a5a8a;
    color: #a8d4ff;
}
.gd-gender-w {
    background: #7a2a5a;
    color: #ffb8e0;
}

.gd-region, .gd-round, .gd-date {
    font-size: 0.65rem;
    color: var(--accent2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gd-date { color: var(--muted); }
.gd-round { font-weight: 600; }

.gd-date-divider {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 0 0.25rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.gd-card.gd-womens { border-right: 3px solid #7a2a5a; }
.gd-card.gd-mens { border-right: 3px solid #2a5a8a; }

.gd-live-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--green);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.gd-final-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--muted);
    color: var(--bg);
    padding: 2px 6px;
    border-radius: 3px;
}

.gd-pre-badge {
    font-size: 0.65rem;
    color: var(--accent2);
    font-weight: 600;
}

.gd-excitement {
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--red);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Score sections */

.gd-score-live, .gd-score-final, .gd-matchup-pre {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    font-size: 1rem;
}

.gd-score-live { background: rgba(46, 204, 113, 0.05); }

.gd-team-score strong {
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.gd-clock {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.gd-time-left {
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 400;
}

.gd-vs {
    color: var(--muted);
    font-size: 0.8rem;
}

/* Rooting interest */

.gd-rooting {
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gd-rooting.root-a { background: rgba(255, 107, 53, 0.06); }
.gd-rooting.root-b { background: rgba(78, 205, 196, 0.06); }

.gd-root-label {
    font-size: 0.85rem;
    color: var(--accent);
}

.gd-probs {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.gd-probs strong { color: var(--text); }

/* Brier delta section */

.gd-brier-section {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

.gd-brier-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
}

.gd-brier-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 75px;
}

.gd-brier-val {
    font-size: 0.72rem;
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}

.gd-brier-val.pos { color: var(--green); }
.gd-brier-val.neg { color: var(--red); }

/* Post-game impact */

.gd-actual {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.gd-impact-good { background: rgba(46, 204, 113, 0.1); color: var(--green); }
.gd-impact-bad { background: rgba(231, 76, 60, 0.1); color: var(--red); }

/* Reason text */

.gd-reason {
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.5;
    border-top: 1px solid var(--border);
}

/* ── Admin ──────────────────────────────────────────────────────── */

.admin-scores {
    margin-bottom: 2rem;
}

.admin-section-title {
    font-size: 1rem;
    color: var(--accent2);
    margin-bottom: 0.75rem;
}

.admin-users {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-user-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.admin-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.admin-user-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-user-name {
    font-weight: 600;
    color: var(--accent);
}

.admin-user-group {
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 3px;
}

.admin-user-pick-count {
    font-size: 0.75rem;
    color: var(--accent2);
    margin-left: auto;
}

.admin-expand {
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.admin-user-card.open .admin-expand {
    transform: rotate(45deg);
}

.admin-user-body {
    display: none;
    border-top: 1px solid var(--border);
    padding: 0.75rem;
}

.admin-user-card.open .admin-user-body {
    display: block;
}

.admin-justification {
    background: var(--bg);
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: var(--muted);
}

.admin-justification strong {
    color: var(--accent);
}

.admin-picks-table td {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.admin-picks-table th {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}

.row-correct {
    background: rgba(46, 204, 113, 0.06);
}

.row-wrong {
    background: rgba(231, 76, 60, 0.06);
}

.changed-pick {
    color: var(--red);
    font-size: 0.75rem;
    text-decoration: line-through;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .navbar { padding: 0.5rem 1rem; }
    .container { padding: 1rem 0.75rem; }
    .matchup { width: 130px; }
}
