html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* === PLAYER LINK (clickable player names/avatars) === */
.player-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.15s;
}

.player-link:visited {
    color: inherit;
}

.player-link:hover {
    opacity: 0.75;
}

.course-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s;
}

.course-link:visited {
    color: inherit;
}

.course-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-admin {
    margin-top: auto;
    border-top: 1px solid var(--rz-border-color, #333);
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

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

/* Scoring colors */
.vs-good {
    color: #4caf50;
    font-weight: 600;
}

.vs-bad {
    color: #f44336;
    font-weight: 600;
}

/* Next Map card */
/* Hero row: Podium + Next Map side by side (desktop), stacked (mobile) */
.hero-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.next-map-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    width: 100%;
    background: var(--rz-base-800);
}

.next-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.next-map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

.next-map-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.next-map-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rz-primary);
}

.next-map-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.next-map-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.next-map-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.next-map-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.next-map-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.next-map-stat.next-map-median .stat-value {
    color: var(--rz-primary);
}

.next-map-stat .stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.next-map-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
}


/* Game day header */
.game-day-header {
    margin-bottom: 1rem;
}

/* Game Day stats grid */
.game-day-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.game-day-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.25rem;
    background: var(--rz-surface);
    border-radius: var(--rz-border-radius);
}

.game-day-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.game-day-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.7;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .game-day-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
        max-width: 600px;
    }

    .game-day-stat {
        padding: 0.75rem 0.5rem;
    }
}

/* Season overview grid: auto column sizing */
.season-grid table {
    table-layout: auto !important;
    width: 100%;
}



/* Game calendar date styling */
.calendar-game-day {
    background: var(--rz-primary) !important;
    color: var(--rz-on-primary) !important;
    border-radius: 50%;
    font-weight: 600;
}

.calendar-no-game {
    opacity: 0.35;
}

/* Game calendar layout */
.calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.calendar-widget {
    overflow: hidden;
    border-radius: var(--rz-border-radius);
    max-width: 100%;
}

.calendar-widget .rz-datepicker-inline {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

.calendar-selected-games {
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .calendar-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .calendar-widget {
        flex: 0 0 auto;
    }

    .calendar-selected-games {
        flex: 1;
        min-width: 250px;
    }
}

@media (min-width: 1024px) {
    .calendar-layout {
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
    }
}

/* Hall of Fame - Record Kings */
.hall-of-fame-kings {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(139, 69, 19, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.kings-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.king-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: var(--rz-border-radius);
    transition: transform 0.2s;
}

.king-card:hover {
    transform: translateY(-4px);
}

.king-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(184, 134, 11, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.king-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(128, 128, 128, 0.15) 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
}

.king-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(139, 69, 19, 0.15) 100%);
    border: 2px solid rgba(205, 127, 50, 0.4);
}

.king-other {
    background: var(--rz-surface);
    border: 1px solid var(--rz-border-color);
}

.king-crown {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.king-name {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.king-count {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Hall of Fame - Course records grid */
.records-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.course-record-card {
    border: 1px solid var(--rz-border-color);
    transition: border-color 0.2s;
}

.course-record-card:hover {
    border-color: var(--rz-primary);
}

.course-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.course-record-name {
    margin: 0 !important;
}

.course-podium {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.podium-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rz-border-radius);
    background: var(--rz-surface);
}

.podium-entry.medal-gold {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    border-left: 3px solid #ffd700;
}

.podium-entry.medal-silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
    border-left: 3px solid #c0c0c0;
}

.podium-entry.medal-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
    border-left: 3px solid #cd7f32;
}

.podium-entry .podium-medal {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.podium-entry .podium-player {
    flex: 1;
    font-weight: 500;
}

.podium-entry .podium-score {
    font-weight: 700;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.podium-entry .podium-vs-par {
    width: 3rem;
    text-align: right;
    font-size: 0.85rem;
}

.podium-entry .podium-season {
    opacity: 0.6;
    font-size: 0.8rem;
    width: 2rem;
    text-align: right;
}

/* === Add Game: Player Checkboxes === */
.player-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-checkbox {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--rz-border-color);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.player-checkbox.checked {
    border-color: var(--rz-primary);
    background: rgba(var(--rz-primary-rgb, 59, 130, 246), 0.1);
}

.player-checkbox:hover {
    border-color: var(--rz-primary);
}

/* === Add Game: Score Grid === */
.score-grid-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--rz-border-color);
}

.score-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.score-grid thead {
    background: var(--rz-base-800);
}

.score-grid th,
.score-grid td {
    padding: 0.4rem 0.25rem;
    text-align: center;
    border-bottom: 1px solid var(--rz-border-color);
}

.score-grid .player-col {
    text-align: left;
    padding-left: 0.75rem;
    white-space: nowrap;
    min-width: 140px;
}

.score-grid .hole-col {
    width: 38px;
    min-width: 38px;
}

.score-grid .total-col {
    width: 60px;
    min-width: 60px;
    font-weight: 600;
    position: relative;
}

.score-grid .par-row {
    background: var(--rz-base-700);
    font-weight: 500;
    opacity: 0.8;
}

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

.score-grid input[type="number"] {
    width: 100%;
    max-width: 38px;
    padding: 0.2rem;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--rz-base-700);
    color: var(--rz-on-surface);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.score-grid input[type="number"]::-webkit-outer-spin-button,
.score-grid input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-grid input[type="number"]:focus {
    outline: none;
    border-color: var(--rz-primary);
    background: var(--rz-base-600);
}

.score-grid .total-col input[type="number"] {
    max-width: 52px;
    font-weight: 600;
}

.score-grid input.mismatch {
    border-color: var(--rz-warning);
    background: rgba(255, 152, 0, 0.1);
}

.mismatch-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    color: var(--rz-warning);
    font-weight: bold;
    font-size: 0.7rem;
}

/* File upload styling */
.rz-fileupload-input {
    padding: 0.5rem;
    border: 2px dashed var(--rz-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.rz-fileupload-input:hover {
    border-color: var(--rz-primary);
}

/* ============================================
   Landing + Login Pages
   ============================================ */

.empty-layout {
    min-height: 100vh;
    background: var(--rz-base-900, #1a1a2e);
}

.landing-page,
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    padding: 2rem;
    background: var(--rz-base-900, #1a1a2e);
    color: var(--rz-on-base, #fff);
    position: relative;
}

.landing-card,
.login-card {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.landing-mascot {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    display: block;
}

.landing-title,
.login-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--rz-on-base, #fff);
    margin: 0 0 0.5rem;
}

.landing-subtitle,
.login-subtitle {
    color: var(--rz-on-base, #ccc);
    opacity: 0.6;
    margin: 0 0 2rem;
}

.landing-login-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--rz-primary);
    color: var(--rz-on-primary, #fff);
    border-radius: var(--rz-border-radius, 6px);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.15s;
}

.landing-login-btn:hover {
    opacity: 0.85;
}

.landing-card .steam-login-btn {
    width: auto;
    display: inline-flex;
}

.landing-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--rz-text-disabled-color, #64748b);
    opacity: 0.4;
}

.landing-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 6px;
    color: #ff6b6b;
    font-size: 0.9rem;
}

.landing-error-close {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.7;
}

.landing-error-close:hover {
    opacity: 1;
}

.login-card {
    text-align: left;
    background: var(--rz-base-800, #242438);
    padding: 2rem;
    border-radius: var(--rz-border-radius, 8px);
    border: 1px solid var(--rz-border-color, #333);
    color: var(--rz-on-base, #fff);
}

.login-card label {
    color: var(--rz-on-base, #fff);
}

.login-card .rz-form-field {
    color: var(--rz-on-base, #fff);
}

.login-card .login-title,
.login-card .login-subtitle {
    text-align: center;
}

.login-button {
    width: 100%;
    margin-top: 0.5rem;
}

.steam-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: #171a21;
    color: #c7d5e0;
    border: 1px solid #2a475e;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.steam-login-btn:hover {
    background: #1b2838;
    border-color: #66c0f4;
    color: #fff;
}

.steam-logo {
    width: 24px;
    height: 24px;
}

/* Grid links - readable on dark backgrounds */
.grid-link {
    color: var(--rz-primary, #4db6ff);
    text-decoration: none;
}

.grid-link:hover {
    text-decoration: underline;
}

/* Data grid: let Radzen handle table layout naturally */

/* Column header info icon for tooltips */
.col-info-icon {
    --rz-icon-size: 14px;
    display: inline-flex;
    opacity: 0.5;
    cursor: help;
    vertical-align: middle;
    margin-left: 2px;
}

.col-info-icon:hover {
    opacity: 0.9;
}

/* Consistent page loading indicator */
.loading-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Center content in the available body space (used by not-found states) */
.page-center {
    flex: 1;
    display: grid;
    place-items: center;
}

@media (max-width: 600px) {
    .loading-center {
        min-height: 120px;
    }

    .loading-center .rz-progressbar-circular {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Live update toast */
.update-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--rz-base-900, #1e1e2e);
    border: 1px solid var(--rz-primary, #4db6ff);
    border-radius: 6px;
    color: var(--rz-on-base-900, #cdd6f4);
    font-size: 0.8rem;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s;
    animation: toast-slide-in 0.3s ease-out;
}

.update-toast:hover {
    border-color: var(--rz-primary-lighter, #7dcfff);
}

.update-toast-icon {
    font-size: 1rem;
    font-weight: bold;
    color: var(--rz-primary, #4db6ff);
}

.update-toast-btn {
    margin-left: 0.5rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--rz-primary, #4db6ff);
    border-radius: 4px;
    background: transparent;
    color: var(--rz-primary, #4db6ff);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.update-toast-btn:hover {
    background: var(--rz-primary, #4db6ff);
    color: var(--rz-base-900, #1e1e2e);
}

@keyframes toast-slide-in {
    from { transform: translateY(1rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Reconnection overlay */
.reconnect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.reconnect-card {
    background: var(--rz-base-900, #1e1e2e);
    border: 1px solid var(--rz-base-700, #45475a);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--rz-on-base-900, #cdd6f4);
    max-width: 320px;
}

.reconnect-card .reconnect-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.reconnect-card p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.reconnect-card button {
    background: var(--rz-primary, #4db6ff);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.reconnect-card button:hover {
    background: var(--rz-primary-lighter, #7dcfff);
}

/* ===================================================================
   RESPONSIVE / MOBILE-FIRST OVERRIDES
   =================================================================== */

/* --- Utility classes for mobile/desktop toggling --- */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block;
}

/* Wide breakpoint variants (show grid at 1024px+ instead of 768px) */
.desktop-wide-only {
    display: none !important;
}

.mobile-wide-only {
    display: block;
}

/* --- Hide sidebar and toggle on mobile (Radzen component, needs global CSS) --- */
.sidebar-desktop {
    display: none !important;
}

/* --- Profile menu dividers and section labels --- */
.profile-menu-divider {
    height: 1px;
    background: var(--rz-border-color, rgba(255, 255, 255, 0.12));
    margin: 0.25rem 0.75rem;
}

.profile-menu-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rz-text-secondary-color, rgba(255, 255, 255, 0.5));
    padding: 0.4rem 1rem 0.15rem;
}

.sidebar-toggle-desktop {
    display: none !important;
}

.user-display-name {
    display: none;
}

/* --- Data grids: horizontal scroll on mobile --- */
.rz-data-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Season standings cards (mobile) --- */
.standings-cards {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.standing-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-surface, #2a2a3e);
}

.standing-card .standing-rank {
    font-size: 0.85rem;
    font-weight: 600;
    width: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

.standing-card .standing-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.standing-card .standing-stat {
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Game cards (mobile) --- */
.game-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-card {
    padding: 0.75rem;
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-surface, #2a2a3e);
    cursor: pointer;
    transition: background 0.15s;
}

.game-card:active {
    background: var(--rz-base-700, #45475a);
}

.game-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.game-card-course {
    font-weight: 600;
    font-size: 0.9rem;
}

.game-card-date {
    font-size: 0.75rem;
    opacity: 0.6;
}

.game-card-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-card-winner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    font-size: 0.85rem;
}

.game-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-card-score {
    font-weight: 700;
    font-size: 0.9rem;
}

.game-card-players {
    font-size: 0.75rem;
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.game-card-stat {
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Season history cards (mobile) --- */
.season-history-cards {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.season-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-surface, #2a2a3e);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.season-card:active {
    background: var(--rz-base-700, #45475a);
}

.season-card .season-card-label {
    font-weight: 700;
    color: var(--rz-primary, #4db6ff);
    width: 2.5rem;
}

.season-card .season-card-games {
    flex: 1;
    font-size: 0.85rem;
    opacity: 0.7;
}

.season-card .season-card-stat {
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Course cards (mobile) --- */
.course-cards {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.course-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-surface, #2a2a3e);
}

.course-card .course-card-name {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.course-card .course-card-detail {
    font-size: 0.75rem;
    opacity: 0.6;
}

.course-card .course-card-stat {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 3rem;
    text-align: right;
}

/* --- Player profile stats row (mobile-friendly) --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-surface, #2a2a3e);
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

/* --- Scoreboard cards (mobile) --- */
/* --- Scoreboard expandable list --- */
.scoreboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.scoreboard-item {
    border-radius: var(--rz-border-radius, 4px);
    background: var(--rz-surface, #2a2a3e);
    overflow: hidden;
}

.scoreboard-item-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.scoreboard-item-summary::-webkit-details-marker {
    display: none;
}

.scoreboard-item-rank {
    font-size: 0.85rem;
    font-weight: 600;
    width: 1.5rem;
    text-align: center;
    opacity: 0.7;
    flex-shrink: 0;
}

.scoreboard-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.scoreboard-item-strokes {
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.scoreboard-item-vs {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: right;
    flex-shrink: 0;
}

.scoreboard-item-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    position: relative;
    opacity: 0.5;
}

.scoreboard-item-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.2s ease;
}

.scoreboard-item[open] .scoreboard-item-chevron::after {
    transform: translate(-50%, -40%) rotate(-135deg);
}

.scoreboard-item-details {
    padding: 0.25rem 0.75rem 0.6rem 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scoreboard-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.scoreboard-detail-label {
    opacity: 0.7;
}

.scoreboard-detail-value {
    font-weight: 600;
}

/* --- Season header spacing --- */
.season-header {
    margin-bottom: 0.5rem;
}

/* --- Game day header: wrap badges on mobile --- */
.game-day-header-badges {
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Next map: full width on mobile --- */
.next-map-card.mobile-wide-only {
    width: 100%;
    min-width: unset;
}

/* --- Tablet+ (>=768px) --- */
@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .sidebar-desktop {
        display: block !important;
    }

    .sidebar-toggle-desktop {
        display: inline-flex !important;
    }

    .user-display-name {
        display: inline;
        font-size: 0.875rem;
        font-weight: 500;
        white-space: nowrap;
    }

    .hero-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .next-map-card {
        width: 360px;
        min-width: 280px;
        flex: 1 1 360px;
    }

    .records-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card-value {
        font-size: 2rem;
    }

    .season-header {
        margin-bottom: 1rem;
    }
}

/* --- Desktop (>=1024px) --- */
@media (min-width: 1024px) {
    .next-map-card {
        flex: 1 1 360px;
    }

    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .kings-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .desktop-wide-only {
        display: block !important;
    }

    .mobile-wide-only {
        display: none !important;
    }
}

/* --- Wide desktop (>=1280px): constrain next-map-card beside podium --- */
@media (min-width: 1280px) {
    .next-map-card {
        flex: 0 1 400px;
        max-width: 400px;
    }
}
