/* TOPICAL Football Ratings - same palette as the main site (styles.css):
   teal #124e66, navy #12355b, gold #ffd166, slate #5b7480. */

:root {
    --teal: #124e66;
    --navy: #12355b;
    --gold: #ffd166;
    --slate: #5b7480;
    --mist: #d5e5e0;
    --bg: #f7fbfc;
    --card: #ffffff;
    --text: #12242d;
    --muted: #5b7480;
    --line: #d5e5e0;
    --rowHover: #eef6f5;
    --good: #2a9d8f;
    --mid: #e9c46a;
    --low: #e76f51;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1b22;
        --card: #13262f;
        --text: #e8f1f2;
        --muted: #93aeb8;
        --line: #23404c;
        --rowHover: #183340;
        --mist: #23404c;
    }
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--teal); }
@media (prefers-color-scheme: dark) { a { color: var(--gold); } }

/* Header */
.siteHeader { background: var(--teal); color: #fff; }
.headerInner {
    max-width: 1100px; margin: 0 auto; padding: 14px 16px 6px;
    display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none; flex-wrap: wrap; }
.brandMark { font-weight: 900; font-size: 1.6rem; letter-spacing: .04em; }
.brandSub { font-weight: 700; font-size: 1rem; color: var(--gold); }
.draftBadge {
    margin-left: auto; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--gold); color: var(--navy); padding: 3px 8px; border-radius: 999px;
}
.positionTabs {
    max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto;
}
.tab {
    background: none; border: 0; color: #cfe3e8; font: inherit; font-weight: 700; font-size: .9rem;
    padding: 10px 12px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.tab.active { color: #fff; border-bottom-color: var(--gold); }
.tab:disabled { opacity: .55; cursor: default; }

/* Page */
.page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.intro h1 { font-size: 1.6rem; color: var(--navy); }
@media (prefers-color-scheme: dark) { .intro h1, .method h2, .method h3 { color: var(--gold); } }
.asOf { color: var(--muted); font-size: .85rem; margin: 2px 0 10px; }
.lede { max-width: 760px; }

.controls { display: flex; gap: 8px; margin: 18px 0 10px; flex-wrap: wrap; }
.controls input, .controls select {
    font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--card); color: var(--text);
}
.controls input { flex: 1 1 240px; }

/* Ratings table */
.tableWrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--card); white-space: nowrap; }
.ratings tbody tr.playerRow { cursor: pointer; }
.ratings tbody tr.playerRow:hover { background: var(--rowHover); }
.colRank { width: 36px; color: var(--muted); }
.playerCell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.headshot { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--mist); flex: 0 0 auto; }
.playerName { font-weight: 700; }
.playerTeam { font-size: .8rem; color: var(--muted); }

.ratingBadge {
    display: inline-block; min-width: 40px; text-align: center; font-weight: 900; font-size: 1rem;
    padding: 4px 8px; border-radius: 8px; color: #fff;
}
.impact { font-weight: 700; white-space: nowrap; }
.impact small { font-weight: 400; color: var(--muted); }

.catCell { min-width: 74px; }
.catValue { font-weight: 700; font-size: .9rem; }
.catBar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 4px; overflow: hidden; }
.catBar span { display: block; height: 100%; }
.tableHint { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* Expanded player detail */
.detailRow td { background: var(--rowHover); padding: 14px 12px 18px; }
.detailGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.detailCard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.detailCard h4 { font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; }
.detailCard h4 .score { color: var(--muted); font-weight: 400; }
.detailCard .est { font-size: 1.4rem; font-weight: 900; color: var(--teal); margin: 2px 0 6px; }
@media (prefers-color-scheme: dark) { .detailCard .est { color: var(--gold); } }
.detailCard .zeroWeight { font-size: .75rem; color: var(--muted); }
.parts { font-size: .82rem; }
.parts div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.parts .src { color: var(--muted); }
.shareBar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 8px; background: var(--line); }
.shareBar span { display: block; height: 100%; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.srcProjection { background: var(--teal); }
.srcSeason { background: var(--slate); }
.srcRecent { background: var(--gold); }
@media (prefers-color-scheme: dark) { .srcProjection { background: #3aa3c2; } }

/* Methodology */
.method { margin-top: 40px; max-width: 860px; }
.method h2 { font-size: 1.35rem; color: var(--navy); margin-bottom: 8px; }
.method h3 { font-size: 1.05rem; color: var(--navy); margin: 22px 0 6px; }
.method p { margin-bottom: 8px; }
.findings { margin: 8px 0 0 20px; }
.findings li { margin-bottom: 6px; }
.methodTable td, .methodTable th { font-size: .88rem; }
.exampleCard {
    background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
    border-radius: 10px; padding: 14px; margin: 14px 0;
}
.exampleCard h4 { margin-bottom: 6px; }
.exampleCard .exampleRows { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }

.siteFooter { text-align: center; font-size: .8rem; color: var(--muted); padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.siteFooter p { margin-bottom: 4px; }

/* Phone: keep the essentials, drop the per-stat columns into the detail view */
@media (max-width: 640px) {
    .ratings .colCat, .ratings .catCell { display: none; }
    th, td { padding: 8px 6px; }
    .playerCell { min-width: 0; }
    .headshot { width: 32px; height: 32px; }
}

/* Grouped stats (Role / Rushing / Receiving / Scoring) */
.groupHeading { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.methodTable .groupRow td { background: var(--rowHover); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.tier { font-size: .7rem; color: var(--muted); margin-top: 3px; white-space: nowrap; }

/* "Best categories" cell: each player's own top four stats, labeled */
.bestCell { min-width: 220px; }
.bestGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.bestLabel { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chipScore { font-size: .75rem; font-weight: 900; margin-left: 2px; }

/* Effectiveness / usage / team-impact cells */
.metricCell { white-space: nowrap; }
.confidence { font-size: .68rem; margin-top: 2px; color: var(--muted); }
.confidence.confLow::before { content: "● "; color: var(--low); }
.confidence.confMedium::before { content: "● "; color: var(--mid); }
.confidence.confHigh::before { content: "● "; color: var(--good); }
.trend { font-size: .68rem; margin-top: 2px; color: var(--muted); }
.trend.up { color: var(--good); font-weight: 700; }
.trend.up::before { content: "▲ "; }
.trend.down { color: var(--low); font-weight: 700; }
.trend.down::before { content: "▼ "; }
.impactCell .impact { font-size: .95rem; }
.impactBox { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .85rem; max-width: 720px; }
.impactBox > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; flex-wrap: wrap; }
.impactBox .src { color: var(--muted); }
.impactBox .impactTotal { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.controls select#sortBy { flex: 0 0 auto; }

/* Header: back to TOPICAL + logo */
.backLink {
    color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem;
    border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.backLink:hover { background: rgba(255,255,255,.12); }
.brandLogo { width: 53px; height: 32px; align-self: center; } /* the TOPICAL T as a football - this site only */
.brand { align-items: center; }
.limitedNote { margin-top: 8px; padding: 8px 12px; border-left: 4px solid var(--mid); background: var(--card); font-size: .88rem; max-width: 760px; }
.srcHistory { background: #a3b8c2; }

.page { max-width: 1240px; }
.headerInner, .positionTabs { max-width: 1240px; }
.metricCell .tier, .impactCell .tier { white-space: normal; max-width: 130px; }

/* Labels shown inside each rating box on phones (the table header is hidden there). */
.mLabel { display: none; }

/* ---------------------------------------------------------------------
   Phones: every player is a card.
     [rank] photo  Name
                   TEAM · slot
            [Overall] [Effectiveness] [Usage]      <- labeled boxes
            If he's out: Costs X pts/g · Next: Y
            best-at stats, 2 x 2
   --------------------------------------------------------------------- */
@media (max-width: 700px) {
    .headerInner { padding: 10px 12px 4px; gap: 8px; }
    .backLink { font-size: .78rem; padding: 4px 10px; }
    .brandMark { font-size: 1.25rem; }
    .brandLogo { width: 43px; height: 26px; }
    .brandSub, .draftBadge { display: none; }
    .positionTabs { padding: 0 8px; scrollbar-width: none; }
    .positionTabs::-webkit-scrollbar { display: none; }
    .tab { padding: 10px 10px; font-size: .85rem; }

    .page { padding: 14px 12px 32px; }
    .intro h1 { font-size: 1.35rem; }
    .lede { font-size: .92rem; }
    .controls { gap: 6px; }
    .controls input { flex: 1 1 100%; }
    .controls select { flex: 1 1 0; min-width: 0; }

    section.tableWrap { overflow: visible; } /* the ratings list, shown as cards - other tables keep scrolling inside their own box */
    .ratings, .ratings tbody { display: block; background: none; }
    .ratings thead { display: none; }
    .ratings tr.playerRow {
        display: grid;
        grid-template-columns: 24px repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "rank player player player"
            ".    overall eff   usage"
            ".    impact  impact impact"
            ".    best    best  best";
        gap: 8px 8px;
        background: var(--card); border: 1px solid var(--line); border-radius: 12px;
        padding: 12px 12px 12px 8px; margin-bottom: 10px;
    }
    .ratings tr.playerRow td { border: 0; padding: 0; min-width: 0; }
    .ratings tr.playerRow .colRank { grid-area: rank; align-self: center; font-weight: 700; }
    .ratings tr.playerRow .playerTd { grid-area: player; }
    .ratings tr.playerRow .overallCell { grid-area: overall; }
    .ratings tr.playerRow .effCell { grid-area: eff; }
    .ratings tr.playerRow .usageCell { grid-area: usage; }
    .ratings tr.playerRow .impactCell { grid-area: impact; }
    .ratings tr.playerRow .bestCell { grid-area: best; min-width: 0; }

    .metricCell {
        white-space: normal; background: var(--rowHover); border-radius: 10px; padding: 8px 6px !important;
        text-align: center; display: flex; flex-direction: column; align-items: center;
    }
    .mLabel { display: block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
    .metricCell .tier, .metricCell .confidence, .metricCell .trend { max-width: none; text-align: center; line-height: 1.25; }
    .ratingBadge { min-width: 38px; font-size: .95rem; padding: 3px 6px; }

    .impactCell { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
    .impactCell .mLabel { display: inline; margin: 0; }
    .impactCell .impact { font-size: .9rem; }
    .impactCell .tier { max-width: none; margin: 0; }

    .bestGrid { gap: 8px 12px; }
    .playerCell { min-width: 0; }
    .headshot { width: 36px; height: 36px; }

    .ratings tr.detailRow { display: block; margin: -4px 0 12px; }
    .ratings tr.detailRow > td { display: block; border-radius: 12px; padding: 12px 10px; }
    .detailGrid { grid-template-columns: 1fr; }
    .impactBox > div { flex-direction: column; gap: 2px; }

    .method { margin-top: 28px; }
    .methodTable td, .methodTable th { font-size: .8rem; padding: 7px 6px; }
    .tableHint { margin-top: 2px; }
}

/* Effectiveness this season alone, under the (cautious) rating. */
.thisSeason { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.thisSeason strong { font-size: .85rem; }
.subLine { font-size: .78rem; color: var(--muted); padding-left: 10px; }
.catAbout { font-size: .78rem; color: var(--muted); margin: 2px 0 6px; line-height: 1.35; }

/* Injury status beside a player's name. */
.injuryTag { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; font-size: .68rem; font-weight: 700; vertical-align: middle; color: #fff; }
.injuryOut { background: #c0392b; }
.injuryQ { background: #d68910; }
.injuryNote { margin: 8px 0 4px; padding: 8px 10px; border-left: 3px solid #c0392b; background: var(--rowHover); font-size: .85rem; }
.confidenceList { margin: 6px 0 10px 18px; line-height: 1.5; }
/* Beginner guide: plain lists and the glossary. */
.plainList { margin: 6px 0 12px 18px; line-height: 1.55; }
.plainList li { margin-bottom: 4px; }
.glossary { margin: 6px 0 12px; }
.glossary dt { font-weight: 700; margin-top: 8px; }
.glossary dd { margin: 2px 0 0 0; line-height: 1.5; color: var(--text, inherit); }

/* Rating week by week (app.js ratingGraph). */
.graphWrap { max-width: 680px; }
.ratingGraph { width: 100%; height: auto; display: block; }
.graphGrid { stroke: var(--line, #d7e3e8); stroke-width: 1; }
.graphAxis { font-size: 11px; fill: var(--muted, #6b7c85); }
.graphLine { fill: none; stroke-width: 2.5; }
.graphOverall { stroke: #1f8a70; fill: #1f8a70; }
.graphEff { stroke: #d68910; fill: #d68910; }
.graphLine.graphOverall, .graphLine.graphEff { fill: none; }
.graphKeyOverall, .graphKeyEff { display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; }
.graphKeyOverall { background: #1f8a70; }
.graphKeyEff { background: #d68910; }

/* Sign-in and follow (shared with topical.live). */
.account { margin-left: auto; }
.accountLink {
    color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap;
    border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 5px 12px;
}
.accountLink:hover { background: rgba(255,255,255,.12); }
@media (max-width: 700px) { .accountLink { font-size: .78rem; padding: 4px 10px; } }
.followRow { margin: 4px 0 8px; }
.followButton { display: inline-block; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; padding: 6px 12px; border-radius: 6px; border: 1px solid #1f8a70; background: transparent; color: #1f8a70; text-decoration: none; }
.followButton.following { background: #1f8a70; color: #fff; }

/* Draft game (game.js). */
.account { display: flex; gap: 8px; }
.gameView { padding: 8px 0 40px; }
.gameIntro h1 { margin: 8px 0; }
.gameIntro p { line-height: 1.55; max-width: 820px; }
.gameSmall { color: var(--muted); font-size: .88rem; }
.draftSummary { position: sticky; top: 0; z-index: 5; display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 14px; margin: 12px 0; border-radius: 10px; background: var(--teal); color: #fff; font-size: .95rem; }
.draftSummary strong { font-size: 1.1rem; }
.draftBoard { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.draftGroup h3, .draftPicker h3 { margin: 6px 0 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.draftSlot { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; font: inherit; cursor: pointer; margin-bottom: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line, #d7e3e8); background: #fff; }
.draftSlot.active { border-color: #1f8a70; box-shadow: 0 0 0 2px rgba(31,138,112,.25); }
.draftSlot.filled { background: #f1f8f5; }
.draftSlotName { min-width: 62px; font-weight: 800; display: flex; flex-direction: column; }
.draftSlotName small, .draftPick small, .pickerName small, .pickerNum small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.draftPick { display: flex; flex-direction: column; }
.draftPick.empty { color: var(--muted); font-style: italic; }
.draftPicker {
    position: fixed; z-index: 20; right: 16px; top: 120px; width: 380px; max-height: calc(100vh - 140px);
    display: flex; flex-direction: column; padding: 10px; border: 1px solid #1f8a70; border-radius: 10px; background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.pickerHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pickerClose { font: inherit; font-size: 1.4rem; line-height: 1; border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 4px; }
.draftPicker input { width: 100%; box-sizing: border-box; padding: 8px 10px; margin-bottom: 8px; font: inherit; border: 1px solid var(--line, #d7e3e8); border-radius: 8px; }
.pickerList { overflow-y: auto; flex: 1; min-height: 0; }
.pickerRow { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; font: inherit; cursor: pointer; padding: 7px 8px; border: 0; border-bottom: 1px solid var(--line, #eef3f5); background: transparent; }
.pickerRow:hover { background: #f1f8f5; }
.pickerRow[disabled] { opacity: .4; cursor: default; }
.pickerName { flex: 1; display: flex; flex-direction: column; }
.pickerNum { min-width: 52px; text-align: center; display: flex; flex-direction: column; }
.draftLock { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.draftLock input { flex: 1; min-width: 200px; padding: 8px 10px; font: inherit; border: 1px solid var(--line, #d7e3e8); border-radius: 8px; }
.draftLock button[disabled] { opacity: .5; cursor: default; }
.teamScore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 18px; max-width: 640px; }
.teamScore div { background: #f1f7f8; border-radius: 10px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.teamScore strong { font-size: 1.5rem; color: #0f4c5c; }
.teamScore small { color: var(--muted); }
.up { color: #1f8a70 !important; }
.down { color: #c0392b !important; }
.changeChart { width: 100%; max-width: 640px; height: auto; display: block; margin-bottom: 14px; }
.barUp { fill: #1f8a70; }
.barDown { fill: #c0392b; }
.teamTable td a { font-weight: 700; }
@media (max-width: 700px) {
    .teamScore { grid-template-columns: repeat(2, 1fr); }
    .draftPicker { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 72vh; border-radius: 14px 14px 0 0; }
}

/* Elements the draft game hides (setView) - some have display rules of
   their own that would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

/* Phone header: the football logo carries the brand, and "Draft a team"
   shortens to "Draft" so everything fits on one line. */
.shortLabel { display: none; }
@media (max-width: 520px) {
    .brandMark { display: none; }
    .longLabel { display: none; }
    .shortLabel { display: inline; }
    .account { gap: 6px; }
}

.pickerSort { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; font-size: .85rem; }
.pickerSort button { font: inherit; font-size: .82rem; padding: 4px 10px; border-radius: 999px; border: 1px solid #1f8a70; background: #fff; color: #1f8a70; cursor: pointer; }
.pickerSort button.on { background: #1f8a70; color: #fff; }
.pickerSort span { margin-left: auto; color: var(--muted); }

/* My teams list (game.js showTeams). */
.teamList { display: grid; gap: 10px; max-width: 720px; }
.teamListCard { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line, #d7e3e8); background: #fff; text-decoration: none; color: inherit; }
.teamListCard:hover { border-color: #1f8a70; }
.teamListCard strong { font-size: 1.05rem; color: #0f4c5c; }
.teamListCard span { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   TOPICAL look (per user request 2026-09-27: "the plain white can look a bit
   boring - make it look more like topical"). Matches topical.live's
   frontend/styles.css: the navy-to-teal page gradient, gold (#ffd166)
   accents and pill buttons, off-white rounded cards with soft shadows, and
   big white section headings with gold rules. Like topical.live it looks
   the same in light and dark mode - the cards stay light.
   ========================================================================== */

:root, :root:is(*) {
    --bg: #f7fbfc;
    --card: #ffffff;
    --text: #12242d;
    --muted: #5b7480;
    --line: #d5e5e0;
    --rowHover: #eef6f5;
    --mist: #d5e5e0;
    --pageText: #e8f1f4;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #f7fbfc; --card: #ffffff; --text: #12242d; --muted: #5b7480;
        --line: #d5e5e0; --rowHover: #eef6f5; --mist: #d5e5e0;
    }
    a { color: var(--teal); }
    .intro h1, .method h2, .method h3 { color: inherit; }
}

body {
    background: linear-gradient(180deg, #0f2740 0%, #163a4f 25%, #24576a 55%, #3a7180 100%) fixed;
    color: var(--pageText);
    min-height: 100vh;
}

/* Header: dark navy glass, gold highlights. */
.siteHeader { background: rgba(8, 31, 48, .92); border-bottom: 1px solid rgba(255, 209, 102, .25); }
.brandSub { color: var(--gold); }
.positionTabs { gap: 6px; padding-bottom: 10px; }
.tab {
    border: 1px solid rgba(255, 209, 102, .45); border-radius: 999px; padding: 6px 14px;
    color: var(--gold); background: rgba(255, 255, 255, .04); font-weight: 700;
}
.tab:hover { background: rgba(255, 209, 102, .12); }
.tab.active { background: var(--gold); color: #081f30; border-color: var(--gold); box-shadow: 0 -3px 0 #fff0bd inset, 0 4px 14px rgba(255, 209, 102, .24); }
.accountLink { border-color: rgba(255, 209, 102, .6); color: var(--gold); }
.accountLink:hover { background: rgba(255, 209, 102, .14); }

/* Page heading, like topical.live's "-- TRENDING --". */
.intro { text-align: center; padding: 10px 0 6px; }
.intro h1, .gameIntro h1 {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 900; letter-spacing: .06em;
    text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}
.intro h1::before, .intro h1::after, .gameIntro h1::before, .gameIntro h1::after {
    content: ''; flex: 0 0 clamp(24px, 7vw, 60px); height: 3px; border-radius: 2px; background: var(--gold);
}
.asOf { color: #cfe3e8; display: inline-block; margin: 8px 0 12px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 700; }
.lede { margin: 0 auto; color: var(--pageText); font-weight: 600; }
.lede a, .siteFooter a { color: var(--gold); }
.limitedNote { margin: 10px auto 0; color: var(--text); border-radius: 8px; text-align: left; }

/* Controls: white search field, gold-outlined pill selects - in a glass bar
   like topical.live's search row. */
.controls {
    padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.controls input { border-radius: 10px; }
.controls select { border-radius: 999px; border: 1px solid var(--gold); background: rgba(8, 31, 48, .6); color: var(--gold); font-weight: 700; }
.controls select option { color: #12242d; background: #fff; }

/* The ratings table sits in a card. */
section.tableWrap {
    background: var(--card); color: var(--text); border-radius: 16px; padding: 6px 10px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-top: 4px solid var(--gold);
}
.tableHint { color: var(--muted); padding: 0 4px; }

/* "How it works" as a card, with gold section rules. */
.method {
    max-width: none; background: var(--card); color: var(--text); border-radius: 16px; padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.method h2 { color: var(--navy); font-size: 1.5rem; }
.method h3 { color: var(--navy); padding-left: 10px; border-left: 4px solid var(--gold); }
.method > p, .method > ul, .method > dl, .method > .tableWrap { max-width: 900px; }

/* Draft, team and My teams pages: content in cards on the gradient. */
.gameView { color: var(--pageText); }
.gameIntro { text-align: center; }
.gameIntro p { margin: 0 auto 10px; color: var(--pageText); }
.gameIntro .gameSmall, .gameView > .gameSmall { color: #cfe3e8; }
.gameView > h3 { color: #fff; margin-top: 18px; }
.gameView > p:not(.gameSmall) { color: var(--pageText); }
.draftSummary { background: rgba(8, 31, 48, .92); border: 1px solid rgba(255, 209, 102, .5); }
.draftSummary strong { color: var(--gold); }
.draftGroup h3 { color: var(--gold); }
.draftSlot { color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.draftPicker { color: var(--text); }
.draftPicker h3 { color: var(--navy); }
.teamScore div { background: var(--card); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.gameView .tableWrap { background: var(--card); color: var(--text); border-radius: 14px; padding: 4px 8px; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.changeChart { background: var(--card); border-radius: 14px; padding: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.teamListCard { box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.teamListCard span { color: var(--muted); }
.followButton.following { background: var(--gold); border-color: var(--gold); color: #081f30; }
.gameView .followButton:not(.following) { border-color: var(--gold); color: var(--gold); background: rgba(8, 31, 48, .5); }

/* Footer on the gradient. */
.siteFooter { color: #cfe3e8; border-top-color: rgba(255, 255, 255, .15); }
@media (max-width: 700px) {
    .controls select, .controls select#sortBy { flex: 1 1 45%; min-width: 0; }
}

/* Heat meter - same look as topical.live's (frontend/styles.css .heatMeter). */
.heatMeter { display: inline-flex; align-items: center; gap: 7px; min-width: 150px; padding: 5px 8px; border: 1px solid #d4e4e1; border-radius: 6px; background: #eef6f4; }
.heatMeterLabel { min-width: 58px; color: #315d68; font-size: .68rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.heatMeterTrack { display: block; flex: 1; height: 9px; overflow: hidden; border: 1px solid #b8ccc8; border-radius: 999px; background: #dce8e5; }
.heatMeterFill { display: block; height: 100%; border-radius: inherit; background: #6aa886; }
.heatMeterStageWarm .heatMeterFill { background: #2a9d67; }
.heatMeterStageHeatingUp .heatMeterFill { background: linear-gradient(90deg, #2a9d67, #e9c46a); }
.heatMeterStageHot .heatMeterFill { background: linear-gradient(90deg, #2a9d67, #e9c46a 55%, #f07f3c); }
.heatMeterStageOnFire .heatMeterFill { background: linear-gradient(90deg, #2a9d67, #e9c46a 42%, #ef6a32 70%, #c81d25); box-shadow: 0 0 8px rgba(200, 29, 37, .45); }
.heatMeterCompact { min-width: 130px; padding: 2px 6px; }
.heatBox { background: var(--card); color: var(--text); border-radius: 14px; padding: 14px 16px; margin: 6px 0 16px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); max-width: 760px; }
.heatBoxHead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.heatBoxHead h3 { color: var(--navy); margin: 0; font-size: 1.05rem; }
.heatScore { font-size: 1.2rem; color: var(--navy); }
.heatBox .gameSmall { color: var(--muted); margin-bottom: 10px; }
.heatParts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.heatPart { background: #f1f7f8; border-radius: 10px; padding: 8px 10px; }
.heatPartTop { display: flex; justify-content: space-between; font-size: .85rem; }
.heatPartTop strong { color: var(--navy); }
.heatPartBar { height: 6px; border-radius: 999px; background: #dce8e5; margin: 5px 0; overflow: hidden; }
.heatPartBar span { display: block; height: 100%; background: linear-gradient(90deg, #2a9d67, #e9c46a, #ef6a32); border-radius: inherit; }
.heatPart small { color: var(--muted); font-size: .75rem; }
.teamListTop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Game modes (2026-09-28): hard cap / open bid. */
.modeHeading { color: #fff; text-align: center; margin: 14px 0 10px; }
.modeChooser { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; max-width: 820px; margin: 0 auto 16px; }
.modeCard { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; cursor: pointer; padding: 16px; border-radius: 14px; border: 2px solid transparent; background: var(--card); color: var(--text); box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.modeCard strong { font-size: 1.15rem; color: var(--navy); }
.modeCard span { font-size: .9rem; color: var(--muted); }
.modeCard:hover, .modeCard.on { border-color: var(--gold); }
.linkButton { font: inherit; font-size: .8rem; background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; }
.overBudget { color: #ff8f7a !important; }
.pickerRow.dear { opacity: .45; }
.modeBadge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.mode-cap { background: #0f4c5c; color: var(--gold); }
.mode-open { background: var(--gold); color: #081f30; }
.teamScore5 { grid-template-columns: repeat(5, 1fr); max-width: 820px; }
.tradeButton { font: inherit; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid #1f8a70; background: #fff; color: #1f8a70; cursor: pointer; }
.tradeSums { color: var(--muted) !important; margin: 0 0 8px !important; }
@media (max-width: 700px) { .teamScore5 { grid-template-columns: repeat(2, 1fr); } }
.keepNote { font-size: .78rem; opacity: .85; }

.lockNote { font-size: .78rem; font-weight: 700; color: #b9770e; white-space: nowrap; }
.lockBanner { background: #fff8e6; color: #7a5400 !important; border-left: 4px solid var(--gold); border-radius: 8px; padding: 10px 12px; max-width: 820px; }
.renameButton { font-size: .85rem; }

.emptySpot td { background: #fff8e6; color: #7a5400; }
.tradeButton.buy { background: #1f8a70; color: #fff; }

/* Inline sell/buy confirm (no pop-ups). */
.inlineConfirm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .82rem; font-weight: 700; color: var(--navy); }
.tradeButton.confirm { background: #1f8a70; color: #fff; }
.tradeButton.cancel { border-color: var(--muted); color: var(--muted); }
.pickerRow.confirming { background: #f1f8f5; cursor: default; }
.pickerRow.confirming .tradeButton { flex: 0 0 auto; }
.pickerRow[aria-disabled="true"] { opacity: .45; cursor: default; }

/* The draft game's entry point in the header (2026-09-28). */
.draftGameButton {
    margin-left: auto; white-space: nowrap; text-decoration: none; font-weight: 900; font-size: 1rem; letter-spacing: .02em;
    padding: 9px 18px; border-radius: 999px; background: var(--gold); color: #081f30;
    box-shadow: 0 -3px 0 #fff0bd inset, 0 4px 14px rgba(255, 209, 102, .3);
}
.draftGameButton:hover { filter: brightness(1.05); }
.account { margin-left: auto; align-items: center; }
.myTeamsHeading { color: #fff; margin: 4px 0 8px; }
@media (max-width: 520px) { .draftGameButton { font-size: .85rem; padding: 7px 12px; } }

/* Leagues (2026-09-28): standings, invites, chat. */
.leagueStandings { display: grid; gap: 8px; max-width: 760px; }
.leagueRow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line, #d7e3e8); background: #fff; text-decoration: none; color: inherit; }
a.leagueRow:hover { border-color: #1f8a70; }
.leagueRowMine { border-color: #ffd166; box-shadow: 0 0 0 2px rgba(255, 209, 102, .35); }
.leagueRowEmpty { grid-template-columns: 34px minmax(0, 1fr); opacity: .7; }
.leagueRank { font-size: 1.2rem; font-weight: 800; text-align: center; color: #124e66; }
.leagueTeam { display: flex; flex-direction: column; min-width: 0; }
.leagueTeam strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leagueTeam small { color: #5b7480; }
.leagueScore { font-size: .9rem; white-space: nowrap; }
.leagueEnter { max-width: 760px; margin: 16px 0; padding: 14px 16px; border-radius: 10px; border: 2px dashed #ffd166; background: #fffaf0; }
.leagueEnterList { display: flex; flex-wrap: wrap; gap: 8px; }
.leagueInvite, .leagueChat { max-width: 760px; margin-top: 24px; }
.leagueInviteRow { display: flex; gap: 8px; align-items: stretch; }
.leagueInput { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #bfd6d0; border-radius: 8px; font: inherit; }
.leagueStatus:empty { display: none; }
.leagueChatLog { height: 280px; overflow-y: auto; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line, #d7e3e8); border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.leagueChatLine { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.leagueChatLine small { color: #5b7480; align-self: center; font-size: .72rem; }
.leagueChatLine span { grid-column: 1 / -1; white-space: pre-wrap; overflow-wrap: anywhere; }
.leagueChatLine.mine strong { color: #1f8a70; }
.leagueLeave { margin-top: 24px; }
@media (max-width: 600px) {
    .leagueRow { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .leagueRow .heatMeter { display: none; }
    .leagueScore { grid-column: 2 / -1; white-space: normal; }
}
.leagueRow, .leagueChatLog, .leagueEnter { color: var(--text); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.leagueTeam strong { color: #0f4c5c; }
.leagueEnter h3 { margin-top: 0; color: #0f4c5c; }
.leagueEnter .gameSmall { color: var(--muted); }
.leagueInvite h3, .leagueChat h3 { color: #fff; }
.leagueInvite .gameSmall, .leagueChat .gameSmall, .leagueLeave .linkButton { color: #cfe3e8; }
.leagueChatLog .gameSmall { color: var(--muted); }
.gameView .gameSmall > a:only-child { color: var(--gold); }
.leaguePicker { position: relative; }
.leaguePicker .leagueInput { width: 100%; box-sizing: border-box; }
.leagueResults { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 260px; overflow-y: auto; background: #fff; color: var(--text); border: 1px solid #d5e5e0; border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.leagueResult { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid #eef3f2; background: #fff; color: #12355b; text-align: left; font: inherit; cursor: pointer; }
.leagueResult:hover:not([disabled]) { background: #eef8f5; }
.leagueResult[disabled] { cursor: default; opacity: .55; }
.leagueResult small { color: #5b7480; font-size: .78rem; font-weight: 700; }
.leagueNoResults { margin: 0; padding: 10px 12px; color: #5b7480; font-size: .85rem; }

/* ---------------------------------------------------------------------
   Phones (2026-09-28): the draft game's team table as one card per
   player - no sideways scrolling to reach Sell / Buy.
     QB  Aaron Rodgers (PIT)                 [Sell]
         Paid  Worth  Bought  Now  Change
         $6    $6     48      50   +2
   --------------------------------------------------------------------- */
@media (max-width: 700px) {
    .gameView .tableWrap { padding: 4px 10px; }
    .teamTable, .teamTable tbody { display: block; }
    .teamTable thead tr { display: block; }
    .teamTable thead th { display: none; }
    .teamTable thead th:first-child { display: block; padding: 10px 0 6px; border: 0; }
    .teamTable tr:not(:first-child) { }
    .teamTable tbody tr {
        display: grid;
        grid-template-columns: 34px repeat(5, minmax(0, 1fr));
        align-items: center;
        column-gap: 6px;
        row-gap: 4px;
        padding: 10px 0;
        border-top: 1px solid var(--line, #d7e3e8);
    }
    .teamTable tbody td { display: block; padding: 0; border: 0; background: none; }
    .teamTable .cSlot { grid-column: 1; grid-row: 1 / span 2; align-self: start; font-weight: 800; color: var(--muted); padding-top: 2px; }
    .teamTable .cPlayer { grid-column: 2 / 5; grid-row: 1; min-width: 0; }
    .teamTable .cAction { grid-column: 5 / -1; grid-row: 1; justify-self: end; text-align: right; }
    .teamTable .cNum { grid-row: 2; font-weight: 700; font-size: .9rem; }
    .teamTable .cNum::before { content: attr(data-label); display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--muted); }
    .teamTable .cNum:nth-child(3) { grid-column: 2; }
    .teamTable .cNum:nth-child(4) { grid-column: 3; }
    .teamTable .cNum:nth-child(5) { grid-column: 4; }
    .teamTable .cNum:nth-child(6) { grid-column: 5; }
    .teamTable .cNum:nth-child(7) { grid-column: 6; }
    .teamTable .lockNote { white-space: normal; display: inline-block; max-width: 120px; font-size: .72rem; line-height: 1.25; }
    /* Sell -> "Sell for $6? Confirm Cancel" takes its own line. */
    .teamTable tr.confirmingRow .cAction { grid-column: 2 / -1; grid-row: 3; justify-self: stretch; text-align: left; }
    .teamTable .inlineConfirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .teamTable .emptySpot { background: #fff8e6; border-radius: 8px; padding: 10px 6px; }
    .teamTable .emptySpot .cEmpty { grid-column: 2 / 5; grid-row: 1 / span 2; font-size: .85rem; }

    /* Header: everything on one line, long usernames shortened. */
    .headerInner { gap: 6px; }
    .accountLink { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 400px) {
    .backLink { padding: 4px 8px; }
    .brandLogo { width: 38px; height: 23px; }
    .draftGameButton { padding: 7px 10px; }
}
@media (max-width: 700px) {
    .stackTable, .stackTable tbody, .stackTable tr { display: block; }
    .stackTable thead { display: none; }
    .stackTable tbody tr { padding: 8px 0; border-top: 1px solid var(--line, #d7e3e8); }
    .stackTable tbody tr:first-child { border-top: 0; }
    .stackTable tbody td { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; gap: 10px; padding: 3px 2px; border: 0; background: none; text-align: left; }
    .stackTable tbody td::before { content: attr(data-label); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); padding-top: 2px; }
    .stackTable tbody td:not([data-label]) { display: block; }
    .stackTable tbody td:not([data-label])::before { content: none; }
    .stackTable .groupRow td { display: block; border-radius: 6px; }
    .stackTable .groupRow td::before { content: none; }
}
@media (max-width: 700px) {
    /* A row whose first cell is a titled description (stat name + what it means) leads its card full-width. */
    .stackTable tbody td:first-child:has(strong) { display: block; padding-bottom: 6px; }
    .stackTable tbody td:first-child:has(strong)::before { content: none; }
}
.mode-xcap { background: #7a1f2b; color: #ffd166; }
.pickerName .injuryTag { align-self: flex-start; margin: 2px 0; }
/* The player list's scrolling stays in the list (2026-09-28). */
.pickerList, .draftPicker { overscroll-behavior: contain; }

/* Sell whole team + redraft board (2026-09-28). */
.sellAllBox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 14px; max-width: 820px; }
.sellAllBox .gameSmall { flex-basis: 100%; margin: 0; color: #cfe3e8; }
.sellAllBox .inlineConfirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--card); color: var(--text); }
.rebuildBoard { margin: 8px 0 18px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--gold); background: rgba(8, 31, 48, .35); }
.rebuildBoard > h3 { color: #fff; margin-top: 0; }
.rebuildBoard > .gameSmall { color: #cfe3e8; }
.rebuildBoard .draftLock { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Player quick info (2026-09-28). */
.playerPop { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 16, 26, .6); }
.playerPopCard { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; border-radius: 16px; background: var(--card, #fff); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.playerPopClose { position: absolute; top: 8px; right: 10px; }
.playerPopHead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding-right: 28px; }
.playerPopHead .headshot { width: 56px; height: 56px; }
.playerPopHead h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.popBoxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.popBox { text-align: center; padding: 8px 4px; border-radius: 10px; background: #f1f7f8; }
.popBox small { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 4px; }
.popBox .tier { white-space: normal; }
.popFacts > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line, #eef3f5); font-size: .9rem; }
.popFacts span { color: var(--muted); }
.popFacts strong { text-align: right; }
.popExplain { margin: 10px 0; color: var(--muted) !important; }
.popActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.popActions .followButton[disabled] { opacity: .5; cursor: default; }
.playerPopCard .ratingGraph { margin-top: 10px; }
@media (max-width: 700px) {
    .playerPop { align-items: flex-end; padding: 0; }
    .playerPopCard { width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; }
}
.infoButton { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 1.1rem; color: #1f8a70; cursor: pointer; }
.infoButton:hover, .infoButton:focus-visible { background: #e3f3ee; }
/* Faded rows keep their ⓘ at full strength. */
.pickerRow.dear, .pickerRow[aria-disabled="true"] { opacity: 1; }
.pickerRow.dear > :not(.infoButton), .pickerRow[aria-disabled="true"] > :not(.infoButton) { opacity: .45; }
.backBar { margin: 0 0 8px; }
.backBar a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: #081f30 !important; font-weight: 800; text-decoration: none; }
.popStats { margin-top: 14px; }
.popStats h4 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.popTabs { display: flex; gap: 6px; margin-bottom: 10px; }
.popTabs button { font: inherit; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid #1f8a70; background: #fff; color: #1f8a70; cursor: pointer; }
.popTabs button.on { background: #1f8a70; color: #fff; }
.popTotals { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.popTotals div { text-align: center; padding: 6px 4px; border-radius: 8px; background: #f1f7f8; }
.popTotals strong { display: block; font-size: 1.05rem; color: var(--navy); }
.popTotals small { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.popLast { margin: 10px 0 8px; font-size: .9rem; }
.popLast span { color: var(--muted); }
.popGameTable { overflow-x: auto; }
.popGameTable table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.popGameTable th { text-align: left; font-size: .68rem; text-transform: uppercase; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line, #d7e3e8); white-space: nowrap; }
.popGameTable td { padding: 4px 6px; border-bottom: 1px solid var(--line, #eef3f5); white-space: nowrap; }
.detailStats { max-width: 720px; margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, #d7e3e8); }
.detailStats .popStats { margin-top: 0; }
/* The game log inside a player's breakdown sits inside the ratings table -
   keep it a normal table (the ratings list turns its own rows into cards on phones). */
.ratings .popGameTable table { display: table; width: 100%; background: none; }
.ratings .popGameTable thead { display: table-header-group; }
.ratings .popGameTable tbody { display: table-row-group; }
.ratings .popGameTable tr { display: table-row; background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.ratings .popGameTable th, .ratings .popGameTable td { display: table-cell; background: none; border-radius: 0; padding: 4px 6px; box-shadow: none; }
