/* Leaderboard specific styles — aligned with the app dark theme.
   Accents reuse the global CSS variables (--brand orange, --brand-2 cyan,
   --panel / --panel-soft surfaces) defined in style.css. */

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* Was 'Space Grotesk', which this site never loads — no @font-face for it
       exists in fonts.css, so the entire leaderboard fell back to Segoe UI or
       Arial and rendered in a different face from every other page. */
    font-family: var(--font-body);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 1.6rem;
    color: var(--text);
}

.leaderboard-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* === Filters === */
.filters-section {
    padding: 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-group > label,
.filter-group__label {
    font-weight: 700;
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0 !important;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Filter toggle pills. The global style.css forces .filter-btn to an orange
   gradient via !important; we override the active/inactive states here so
   the selected filter is clearly distinguishable. */
.filter-btn {
    padding: 0.5rem 1rem !important;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent) !important;
    background: color-mix(in srgb, var(--bg-0) 72%, transparent) !important;
    color: var(--text) !important;
    border-radius: 999px !important;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    font-weight: 700 !important;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: none !important;
}

.filter-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 60%, transparent) !important;
    filter: none !important;
}

.filter-btn.active {
    background: linear-gradient(120deg, var(--brand), var(--brand-2)) !important;
    border-color: transparent !important;
    color: var(--accent-contrast) !important;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}

/* === Anonymous teaser cards ===
   Shown to logged-out visitors in place of the detailed game performance
   and competition snapshots. Reveals headline stats, blurs locked data,
   and drives visitors toward a subscription to unlock the full view. */
.teaser-section {
    padding: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Distinct left-accent glow per card type */
.teaser-section--games {
    border-left: 3px solid var(--brand);
    box-shadow:
        var(--shadow-lg),
        var(--edge-glow),
        inset 24px 0 32px -28px color-mix(in srgb, var(--accent) 25%, transparent) !important;
}

.teaser-section--competitions {
    border-left: 3px solid var(--brand-2);
    box-shadow:
        var(--shadow-lg),
        var(--edge-glow),
        inset 24px 0 32px -28px color-mix(in srgb, var(--accent) 25%, transparent) !important;
}

.teaser-section h2 {
    color: var(--text-strong);
    margin: 0 0 1.2rem;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
    padding-bottom: 0.7rem;
}

.teaser-heading-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
}

.teaser-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.teaser-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    background: rgba(10, 18, 24, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.teaser-stat--visible {
    border-left: 3px solid var(--brand-2);
    background: rgba(10, 18, 24, 0.72);
}

.teaser-stat--visible:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.teaser-stat--locked {
    position: relative;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--accent) 18%, transparent);
    background: rgba(10, 18, 24, 0.38);
}

.teaser-stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-2);
    line-height: 1;
}

/* The gated stat shows a masked placeholder rather than the real value behind a
   blur. `filter: blur(5px)` only obscured it visually — the actual number stayed
   in the markup, readable in source and by assistive tech, which is the pattern
   that becomes a genuine disclosure as soon as the data matters. The value is now
   withheld server-side, so there is nothing to blur. */
.teaser-stat__number--masked {
    color: var(--text-muted);
    opacity: 0.55;
    -webkit-user-select: none;
    user-select: none;
    letter-spacing: 0.08em;
}

.teaser-stat__label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teaser-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    /* Was a hard-coded amber (#ffe0b8) on a translucent ink panel, composited
       with a backdrop blur — which, over an already-blurred number, was what made
       this read as a rendering glitch. The number is now a masked placeholder, so
       the panel is a plain themed surface and the label uses the standard ink. */
    color: var(--text);
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    pointer-events: none;
}

.teaser-blurb {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto 1.2rem;
}

.teaser-cta {
    display: inline-flex;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.95rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaser-cta:hover {
    transform: translateY(-1px);
}

/* Both of these are primary calls to action, so both use the one action colour.
   They used to be two different gradients built from hard-coded stops that are
   not in the palette at all — `--brand` fading into #e07b30 (orange) on one and
   `--brand-2` into #3bb8d8 (cyan) on the other — with the light theme overriding
   both entirely to brown (#9b6b4a) and steel blue (#4a7a9b). The result was three
   competing accent colours on one page, none of them the site's. */
.teaser-cta--games,
.teaser-cta--competitions {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-contrast) !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-md) !important;
}

.teaser-cta--games:hover,
.teaser-cta--competitions:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* === Your Rankings hero card === */
.user-ranking-card {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 16%, transparent) 60%, rgba(0, 0, 0, 0.25)),
        var(--panel);
    color: var(--text);
    padding: 1.8rem;
    border-radius: var(--radius);
    margin-bottom: 1.8rem;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.user-ranking-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.user-ranking-card h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    /* Gradient-clipped text removed: two of the four stops were
       near-white, and the technique is the generic "gradient text"
       tell the redesign brief asked to avoid. Solid ink is legible in
       both themes. */
    color: var(--text-strong);
}

.user-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
    position: relative;
    z-index: 1;
}

.user-meta-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-strong);
}

.user-rankings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
    position: relative;
    z-index: 1;
}

.user-rank-item {
    text-align: center;
    background: rgba(10, 18, 24, 0.55);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    padding: 1rem;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.user-rank-item .rank-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--brand-2);
    margin-bottom: 0.2rem;
}

.user-rank-item .rank-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Leaderboard table === */
.leaderboard-table {
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.leaderboard-table th {
    background: color-mix(in srgb, var(--bg-0) 85%, transparent);
    color: var(--text-muted) !important;
    padding: 0.95rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, transparent) !important;
}

.leaderboard-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 16%, transparent) !important;
    color: var(--text);
    font-size: 0.92rem;
}

.player-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-primary {
    font-weight: 700;
    color: var(--text-strong);
}

.player-secondary {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.country-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.leaderboard-table tr:last-child td {
    border-bottom: none !important;
}

.leaderboard-table tbody tr {
    transition: background-color 0.18s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: color-mix(in srgb, var(--accent) 7%, transparent);
}

.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-align: center;
    font-weight: 800;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.current-user-row {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)) !important;
    font-weight: 600;
    position: relative;
}

.current-user-badge {
    display: inline-block;
    background: linear-gradient(120deg, var(--brand), #ff8a3d);
    color: #1a0d05;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 6px;
    margin-right: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === Recent scores === */
.recent-scores {
    padding: 1.6rem;
}

.recent-scores h3 {
    margin: 0 0 1.1rem;
    color: var(--text-strong);
    font-size: 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    padding-bottom: 0.5rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
    transition: background-color 0.18s ease;
    gap: 1rem;
}

.score-item:last-child {
    border-bottom: none;
}

.score-item:hover {
    background-color: color-mix(in srgb, var(--accent) 6%, transparent);
    border-radius: 8px;
}

.score-info {
    flex: 1;
}

.score-puzzle {
    font-weight: 700;
    color: var(--text-strong);
    font-size: 1rem;
    margin-bottom: 3px;
}

.score-details {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.score-value {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

/* === Filter form === */
.filter-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

/* === Live region meta === */
.leaderboard-live-region {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.leaderboard-live-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    background: var(--panel-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 12px;
}

.leaderboard-results-summary,
.leaderboard-refresh-status {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.leaderboard-scope-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 0.6rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

/* === Pagination === */
.leaderboard-pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.2rem 0 2rem;
}

.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    background: color-mix(in srgb, var(--bg-0) 72%, transparent);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: none !important;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.pagination-link:hover {
    transform: translateY(-1px);
    border-color: var(--brand-2);
    color: var(--brand-2);
    filter: none !important;
}

.pagination-link.is-active {
    /* Was `linear-gradient(120deg, var(--brand), #ff8a3d)` with a near-black
       label. In light theme --brand is petrol #0E4A50, so the text was dark on
       dark: 1.92:1 at that end, and the gradient's other stop was the old orange.
       There is a light-theme override for .pagination-link and its :hover, but
       none for .is-active, which is the state that actually carries meaning. The
       accent pair is defined against itself: 8.80:1 light, 9.39:1 dark. */
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
}

.pagination-link.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-ellipsis {
    border: none;
    background: transparent;
}

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

/* === Puzzle-specific section === */
.puzzle-specific-section {
    margin-bottom: 2rem;
}

.average-times-section {
    margin-top: 2rem;
}

.recent-scores--spaced {
    margin-top: 2rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .leaderboard-container {
        padding: 15px;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1.4rem;
        padding: 1.2rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .filter-form {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .leaderboard-live-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .teaser-stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .teaser-stat__number {
        font-size: 1.7rem;
    }

    .user-rankings {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .leaderboard-table {
        overflow-x: auto;
        border-radius: 10px;
    }

    .leaderboard-table table {
        min-width: 860px;
    }

    .leaderboard-header h1 {
        font-size: 2rem;
    }

    .user-ranking-card {
        padding: 1.2rem;
    }

    .score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .score-value {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {

    .teaser-stat-row {
        grid-template-columns: 1fr;
    }

    .user-rankings {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }

    .filter-buttons-period {
        width: 100%;
    }

    .filter-btn {
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .leaderboard-header h1 {
        font-size: 1.7rem;
    }

    .rank-medal {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* === Animation: new score highlight === */
@keyframes highlightNewScore {
    0% { background-color: color-mix(in srgb, var(--ok) 40%, transparent); }
    100% { background-color: transparent; }
}

.new-score {
    animation: highlightNewScore 2s ease-out;
}

/* === Loading state === */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--brand-2);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Light-mode overrides */
html[data-theme="light"] .filter-group > label,
.filter-group__label {
    color: #3d3d3d;
}

html[data-theme="light"] .filter-btn {
    border-color: color-mix(in srgb, var(--text) 22%, transparent) !important;
    background: rgba(253, 251, 249, 0.9) !important;
    color: #5a5a5a !important;
}

html[data-theme="light"] .filter-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, transparent) !important;
}

html[data-theme="light"] .leaderboard-table th {
    background: rgba(253, 251, 249, 0.9);
    color: #3d3d3d !important;
    border-bottom-color: color-mix(in srgb, var(--text) 16%, transparent) !important;
}

html[data-theme="light"] .leaderboard-table td {
    border-bottom-color: color-mix(in srgb, var(--text) 12%, transparent) !important;
}

html[data-theme="light"] .player-primary {
    color: #3d3d3d;
}

html[data-theme="light"] .country-pill {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--accent);
}

html[data-theme="light"] .user-ranking-card {
    background:
        linear-gradient(135deg, rgba(232, 213, 204, 0.25), rgba(155, 107, 74, 0.06) 60%, rgba(0, 0, 0, 0.02)),
        var(--panel);
    border-color: color-mix(in srgb, var(--text) 16%, transparent);
}

html[data-theme="light"] .user-ranking-card::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--text) 3%, transparent) 0%, transparent 70%);
}

html[data-theme="light"] .user-ranking-card h2 {
    /* Gradient-clipped text removed: two of the four stops were
       near-white, and the technique is the generic "gradient text"
       tell the redesign brief asked to avoid. Solid ink is legible in
       both themes. */
    color: var(--text-strong);
}

html[data-theme="light"] .user-meta-badge {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent);
}

html[data-theme="light"] .user-rank-item {
    background: rgba(253, 251, 249, 0.85);
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
}

html[data-theme="light"] .user-rank-item .rank-number {
    color: var(--accent);
}

html[data-theme="light"] .recent-scores h3,
html[data-theme="light"] .puzzle-specific-title,
html[data-theme="light"] .average-times-title {
    color: #4a4a4a;
    border-bottom-color: color-mix(in srgb, var(--text) 15%, transparent);
}

html[data-theme="light"] .score-puzzle {
    color: #3d3d3d;
}

html[data-theme="light"] .score-value {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

html[data-theme="light"] .leaderboard-live-meta {
    border-color: color-mix(in srgb, var(--text) 12%, transparent);
}

html[data-theme="light"] .leaderboard-scope-pill {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--accent);
}

html[data-theme="light"] .leaderboard-table tbody tr:hover {
    background-color: color-mix(in srgb, var(--accent) 6%, transparent);
}

html[data-theme="light"] .score-item:hover {
    background-color: color-mix(in srgb, var(--accent) 4%, transparent);
}

html[data-theme="light"] .pagination-link {
    border-color: color-mix(in srgb, var(--text) 16%, transparent);
    background: rgba(253, 251, 249, 0.9);
}

html[data-theme="light"] .pagination-link:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    color: var(--accent);
}

html[data-theme="light"] .teaser-stat {
    background: rgba(253, 251, 249, 0.85);
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
}

html[data-theme="light"] .teaser-stat--locked {
    border-color: color-mix(in srgb, var(--text) 22%, transparent);
}

html[data-theme="light"] .teaser-stat__number {
    color: var(--accent);
}

html[data-theme="light"] .teaser-stat__number--masked {
    color: var(--text-muted);
}

/* No light-theme override needed: --panel-soft, --text and --line are already
   theme-aware, which is the entire point of the token layer. */

html[data-theme="light"] .teaser-blurb {
    color: var(--text-muted);
}

html[data-theme="light"] .teaser-section--games {
    border-left-color: #9b6b4a;
    box-shadow:
        var(--shadow-lg),
        var(--edge-glow),
        inset 24px 0 32px -28px rgba(155, 107, 74, 0.12) !important;
}

html[data-theme="light"] .teaser-section--competitions {
    border-left-color: #4a7a9b;
    box-shadow:
        var(--shadow-lg),
        var(--edge-glow),
        inset 24px 0 32px -28px rgba(74, 122, 155, 0.12) !important;
}

html[data-theme="light"] .teaser-section h2 {
    color: #3d3d3d;
    border-bottom-color: color-mix(in srgb, var(--text) 14%, transparent);
}

html[data-theme="light"] .teaser-stat--visible {
    background: rgba(253, 251, 249, 0.9);
}

html[data-theme="light"] .teaser-stat--visible:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* No light-theme override is needed: --accent and --accent-hover are already
   theme-aware, which is the point of the token layer. */
html[data-theme="light"] .teaser-cta--games,
html[data-theme="light"] .teaser-cta--competitions {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-contrast) !important;
}

/* ============================================================================
   SAMPLE STANDINGS (logged-out preview)
   The page's flagship feature made visible before login: the real columns,
   clearly-labelled illustrative rows, and the join CTA sitting where the
   visitor's own row would appear.
   ============================================================================ */
.lb-sample {
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.lb-sample .leaderboard-table {
    margin-top: 0.75rem;
}

.lb-sample__you td {
    border-top: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--text-muted);
    font-style: italic;
}

.lb-sample__you .player-primary::before {
    content: '\2192 ';
    color: var(--accent);
    font-style: normal;
}

.lb-sample__note {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lb-sample__cta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}
