/* Yarnball Network - the house style (REDESIGN_PLAN R1).
   A local cable sports channel on the air since '88, with a 2006-era website: the chrome is
   mid-2000s (fixed column on a pinstripe backdrop, scores strip, condensed tabs, light bevels),
   the broadcast pieces are 1988 cable graphics. Palette comes from the Codex art.
   This page does not load /style/style.css; the old token names (--card, --line, --navy as
   heading ink, --gloss-*) are mapped onto this palette so the rest of the CSS and the site's
   challenge toasts keep working. */
@font-face {
    font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    src: url("/style/fonts/web/archivo-normal-100-900-wdth-62-125.woff2") format("woff2");
}
@font-face {
    font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("/style/fonts/web/kalam-normal-700.woff2") format("woff2");
}

:root {
    /* channel colors: the same in both themes */
    --night: #121c33;      /* page backdrop */
    --bar: #1f3049;        /* module bars, scoreboards, nav */
    --bar-2: #2a4063;
    --red: #c4372d;        /* yarn red: live, losses, primary action */
    --gold: #f2c14e;       /* chyron mustard: active, highlights, winners */
    --teal: #4f7480;
    --plum: #7d3c5c;       /* kibble */
    --on-bar: #fff6e3;     /* text on navy */
    --on-bar-dim: #b9c6df;
    --stripe: linear-gradient(var(--red) 0 33.4%, var(--gold) 33.4% 66.7%, var(--teal) 66.7% 100%);
    --fd: "Archivo", "Arial Narrow", sans-serif;
    --fb: Verdana, Geneva, "DejaVu Sans", sans-serif;

    /* panels: light theme */
    --paper: #fbf6ea;
    --cream: #f3ead8;
    --ink: #1b2233;
    --muted: #66708a;
    --rule: #ddd1b8;
    --row-hover: #f1e6cc;
    --link: #2a5a9a;
    --navy: #1f3049;       /* heading ink (old site name: flips in dark) */
    --win: #2f7d4a;
    --count: var(--bar);   /* big countdown + scores on paper (gold in the dark) */
    --btn-hi: #fffaf0;     /* top of the light bevel on buttons */
    --plum-ink: #7d3c5c;   /* kibble numbers on paper */

    /* old names, mapped */
    --card: var(--paper); --page: var(--paper); --line: var(--rule); --hover: var(--row-hover); --soft: var(--cream);
    --blue: var(--link); --orange: var(--red); --accent: var(--red); --accent-ink: #fff; --hi: var(--gold); --live: var(--red);
    --sky: #8fb1d6; --ok: var(--win); --bad: var(--red);
    --ui-font: var(--fb); --head-font: var(--fb);
    --gloss-blue: linear-gradient(var(--bar-2), var(--bar));
    --gloss-orange: linear-gradient(#d9463b, #b02e25);
    --gloss-silver: linear-gradient(#fffaf0, var(--cream));
    --tab-hover: linear-gradient(#fff3cf, #f6dc92); --tab-hover-ink: #3a2a00;
    --foot-bg: var(--cream);
    --alert-bg: #fff3c4; --alert-line: #ecd27a; --alert-ink: #6b5512;
    /* the dark "screen" of the watch panel */
    --mast: #0c1326; --mast-2: #1d2a47; --mast-ink: #dfe6f5; --mast-muted: #8ea0c4;
    /* rating tiers, spray chart, win-swing ink */
    --t1: #b9bfb3; --t2: #93b399; --t3: #5c9a6a; --t4: #2f7a48; --t5: #c9971a;
    --sp1: #2a78d6; --sp2: #1baf7a; --sp3: #eb6834; --up: #2f7d3a;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #1c2840; --cream: #24324d; --ink: #e9e2d2; --muted: #9aa6c0; --rule: #34466a; --row-hover: #2a3a5a;
        --link: #9cc0ff; --navy: #f3ead8; --win: #7fcf8a; --count: var(--gold); --btn-hi: #33456a; --plum-ink: #e59ac0;
        --t1: #4a5578; --t2: #6f8c70; --t3: #5fae74; --t4: #93d6a3; --t5: #f2c94c;
        --sp1: #3987e5; --sp2: #199e70; --sp3: #d95926; --up: #7fcf8a;
        --tab-hover: linear-gradient(#4a3a14, #3a2c0c); --tab-hover-ink: #ffe29a;
        --alert-bg: #2b2408; --alert-line: #6b5512; --alert-ink: #e9d48a;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #1c2840; --cream: #24324d; --ink: #e9e2d2; --muted: #9aa6c0; --rule: #34466a; --row-hover: #2a3a5a;
    --link: #9cc0ff; --navy: #f3ead8; --win: #7fcf8a; --count: var(--gold); --btn-hi: #33456a; --plum-ink: #e59ac0;
    --t1: #4a5578; --t2: #6f8c70; --t3: #5fae74; --t4: #93d6a3; --t5: #f2c94c;
    --sp1: #3987e5; --sp2: #199e70; --sp3: #d95926; --up: #7fcf8a;
    --tab-hover: linear-gradient(#4a3a14, #3a2c0c); --tab-hover-ink: #ffe29a;
    --alert-bg: #2b2408; --alert-line: #6b5512; --alert-ink: #e9d48a;
    color-scheme: dark;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; color: var(--ink); font: 12px/1.5 var(--fb); font-variant-numeric: tabular-nums;
    background: var(--night) repeating-linear-gradient(135deg, #ffffff06 0 2px, transparent 2px 7px);
}
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.center { text-align: center; }
.note { color: var(--muted); font-size: 11px; }
.big { font-size: 15px; font-weight: 700; }
[data-go]:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
code { background: var(--cream); padding: 1px 4px; word-break: break-all; }

/* ---- the site's util strip (inlined at build time), kept for cohesion with the main site ---- */
#utilPlaceholder .sh-util { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 6px 12px; color: #9fb0d0; font-size: 11px; }
.sh-util-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.sh-util a { color: #cfdaf0; text-decoration: none; }
.sh-util a:hover { color: var(--gold); }
.sh-util .lights { font: 11px var(--fb); background: none; border: 1px solid #3a4f7a; color: #cfdaf0; border-radius: 10px; padding: 1px 9px; cursor: pointer; }
.sh-util .lights:hover { border-color: var(--gold); color: var(--gold); }

/* ---- the framed site column ---- */
#container { max-width: 1100px; margin: 0 auto 40px; background: var(--paper); box-shadow: 0 0 0 1px #0007, 0 10px 40px #000a; }

/* scores strip: the games around now, always on top */
.scores { display: flex; min-height: 44px; background: #0b1224; border-bottom: 1px solid #000; overflow-x: auto; scrollbar-width: none; }
.scores::-webkit-scrollbar { display: none; }
.scores .sc { flex: 0 0 auto; min-width: 116px; padding: 6px 10px; border-right: 1px solid #1e2a45; color: #dfe6f5; text-decoration: none; }
.scores a.sc:hover { background: #16213b; text-decoration: none; }
.scores .st { font: 700 10px/1.4 var(--fd); font-stretch: 75%; color: #8ea0c4; letter-spacing: .3px; white-space: nowrap; }
.scores .st.live { color: #ff8a80; }
.scores .ln { display: grid; grid-template-columns: 16px 1fr auto; gap: 5px; align-items: center; font: 700 13px/1.35 var(--fd); font-stretch: 80%; }
.scores .ln .tlogo { width: 16px; height: 16px; filter: none; }
.scores .ln.l { color: #8a96b3; font-weight: 500; }
.scores .sc.date { min-width: 0; display: grid; place-items: center; font: 800 11px/1.2 var(--fd); font-stretch: 75%; color: var(--gold); text-align: center; background: #0f1830; text-transform: uppercase; }
.scores .sc.on { box-shadow: inset 0 -3px var(--gold); }

/* masthead */
.mast { display: flex; align-items: center; gap: 14px; padding: 16px 18px 14px; color: var(--on-bar); background: linear-gradient(#24385a, var(--bar) 70%); }
.mast .brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.mast .brand img { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 3px 0 #0006); }
.mast .brand b { display: block; font: 800 38px/0.95 var(--fd); font-stretch: 70%; color: var(--on-bar); letter-spacing: -.3px; text-shadow: 0 2px 0 #0d1830; }
.mast .brand small { display: block; margin-top: 4px; color: var(--on-bar-dim); font-size: 11px; }
.mast .clock { margin-left: auto; text-align: right; color: var(--on-bar-dim); font-size: 11px; line-height: 1.35; white-space: nowrap; }
.mast .clock b { display: block; font: 800 24px/1 var(--fd); font-stretch: 75%; color: var(--gold); }
.stripe { height: 9px; background: var(--stripe); }

/* nav */
nav#nav { display: flex; gap: 2px; padding: 0 12px; background: var(--bar); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
nav#nav::-webkit-scrollbar { display: none; }
nav#nav.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), #0000); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), #0000); }
nav#nav a { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 9px 13px 8px; color: #d4ddef; text-decoration: none; white-space: nowrap;
    font: 700 15px/1 var(--fd); font-stretch: 80%; border-bottom: 4px solid transparent; }
nav#nav a:hover { color: #fff; background: #ffffff10; }
nav#nav a.on { color: #fff; border-bottom-color: var(--gold); background: #ffffff14; }
nav#nav a.mine { margin-left: auto; }
nav#nav a .tlogo { width: 20px; height: 20px; }
.livedot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 6px #ff5a4e; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.35; } }

/* ---- page ---- */
main#yb { padding: 16px; min-height: 60vh; }
h1 { margin: 0; font: 800 34px/1.05 var(--fd); font-stretch: 72%; color: var(--navy); }
h3 { margin: 12px 0 4px; font: bold 12px var(--fb); color: var(--navy); }
h3.sec { display: block; font: 800 17px/1.2 var(--fd); font-stretch: 78%; color: var(--navy); border-bottom: 2px solid var(--rule); padding-bottom: 3px; margin: 16px 0 8px; }
h3.sec:first-child { margin-top: 0; }
.pagehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 14px; }

/* modules: navy title bar + the 3-band stripe, paper body */
.card { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 0 12px 12px; margin: 0 0 16px; min-width: 0; }
.card:not(:has(> h2)) { padding-top: 12px; }
.card > h2, .card h2:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; position: relative; margin: 0 -12px 14px; padding: 7px 12px 6px;
    background: var(--bar); color: var(--on-bar); border-radius: 5px 5px 0 0; font: 800 17px/1.15 var(--fd); font-stretch: 75%; }
.card > h2::after, .card h2:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--stripe); }
.card > h2 a, .card > h2 a:hover { color: var(--on-bar); }
.card > h2 .muted { font: 400 11px var(--fb); color: var(--on-bar-dim); }
.card p { margin: 6px 0; }
.card ul { margin: 4px 0; padding-left: 20px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 16px; align-items: start; }
.cols > * { min-width: 0; }
.champ > h2 { background: linear-gradient(#d9463b, #a92a22); }
.welcome > h2 { background: var(--teal); }

/* ---- tables ---- */
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
td, th { padding: 5px 6px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--rule); }
th { color: var(--muted); font: 700 11px/1.3 var(--fd); font-stretch: 85%; border-bottom-width: 2px; }
td.n, th.n { text-align: right; }
tr[data-go] { cursor: pointer; }
tr[data-go]:hover, tr[data-go]:focus-visible td { background: var(--row-hover); }
tr.dim td { opacity: 0.6; }
tr.cut td { border-bottom: 2px solid var(--red); }
tr.now td { background: #f2c14e33; }
tr.live td { background: #c4372d14; }
tr.champrow td { background: #f2c14e22; }
tr.fav td { background: #f2c14e26; }
tr.fav td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
tr.tot td { font-weight: 700; border-top: 2px solid var(--rule); }
.sched td:first-child { width: 7em; }
table.sort th { cursor: pointer; user-select: none; }
table.sort th:hover { color: var(--ink); }
table.sort th[data-dir="a"]::after { content: " v"; }
table.sort th[data-dir="b"]::after { content: " ^"; }
th[title], abbr[title], .ot[title] { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; cursor: help; }

/* ---- chips, crests, badges ---- */
.chip { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px;
    background: linear-gradient(135deg, var(--c) 55%, var(--c2) 55%); border: 1px solid #0007; border-radius: 2px; }
.chip.logo { width: 18px; height: 18px; margin: -4px 4px -4px 0; vertical-align: middle; background: none; border: 0; border-radius: 0; }
.tlogo { flex: none; vertical-align: middle; }
/* crests keep their size: a percentage max-width makes an image count as zero width when a table sizes its columns */
img.tlogo, img.chip.logo, td img { max-width: none; }
a.tm { white-space: nowrap; font-weight: 700; }
.badge { display: inline-block; font: 800 10px/1.4 var(--fd); font-stretch: 85%; padding: 0 4px; border-radius: 2px; vertical-align: 1px; letter-spacing: 0.3px; }
.badge.cap { background: var(--gold); color: #2a1f00; }
.badge.hof { background: #7a5c12; color: #fbe7a6; }
.badge.mine { background: var(--red); color: #fff; }
.won { font-weight: 700; }
.lost { opacity: 0.75; }
.ot { font-size: 10px; background: var(--cream); border: 1px solid var(--rule); padding: 0 3px; border-radius: 2px; }
.livetag { background: var(--red); color: #fff; font: 800 10px/1.5 var(--fd); font-stretch: 85%; padding: 1px 5px; border-radius: 2px; letter-spacing: 0.4px; text-shadow: none; }
.portrait { vertical-align: middle; background: radial-gradient(circle at 50% 45%, #fff6 0, #0000 70%), #c9b48a; border-radius: 50%; }
td .portrait { margin: -3px 0; }


/* ---- leaders lists (home + leaders page) ---- */
.leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 18px; }
.lead h3 { margin-top: 6px; }
.lead ol { margin: 0; padding-left: 22px; }
.lead li { padding: 1px 0; }
.lead li b { float: right; }
.lead-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 2px 0 6px; margin-bottom: 3px; border-bottom: 1px solid var(--rule); }
.lt-who { min-width: 0; }
.lt-who a { display: block; font: 800 19px/1.1 var(--fd); font-stretch: 75%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-who small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.lead-top > b { font: 800 30px/1 var(--fd); font-stretch: 72%; color: var(--navy); }

/* ---- buttons: light bevels, no pills ---- */
a.btn, button.slip-go, button.favbtn, button.pk, button.chipbtn, .tvs-ctl button, .cardsides button, .cardx {
    display: inline-block; font: 700 13px/16px var(--fd); font-stretch: 82%; padding: 6px 12px; cursor: pointer; border-radius: 4px; text-decoration: none;
    border: 1px solid #0003; background: linear-gradient(var(--btn-hi), var(--cream)); color: var(--ink); box-shadow: inset 0 1px #fff8; text-shadow: none; }
a.btn, button.slip-go { background: linear-gradient(#d9463b, #b02e25); color: #fff !important; border-color: #7d1d17; box-shadow: inset 0 1px #fff4; text-decoration: none !important; }
a.btn:hover, button.slip-go:hover { background: linear-gradient(#e0554a, #bb342a); text-decoration: none; }
button.favbtn:hover, button.pk:hover, button.chipbtn:hover, .tvs-ctl button:hover, .cardsides button:hover, .cardx:hover {
    background: var(--tab-hover); color: var(--tab-hover-ink); }
button.chipbtn.on, .cardsides button.on { background: linear-gradient(var(--bar-2), var(--bar)); color: var(--on-bar); border-color: #0a1224; }
button.pk { border-left: 6px solid var(--c); font-variant-numeric: tabular-nums; }
button.pk.on, button.pk.on:hover { background: var(--gold); color: #2a1f00; border-color: #8a6a00; border-left-color: var(--c); }
button.lnk { font: inherit; font-size: 11px; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; }
.picker, input.stake { font: 12px var(--fb); padding: 3px 6px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px; }
.card > h2 .picker { font: 11px/1.3 var(--fb); padding: 1px 4px; margin-left: 6px; }

/* ---- Watch, the front door (R3): the page under the channel deck ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hgrid { display: grid; gap: 0 16px; align-items: start; }
.hgrid > * { min-width: 0; }
.g-next { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card > h2 .h2r, .card > h2 .h2r:hover { margin-left: auto; font: 400 11px var(--fb); color: #d8e2f5; text-decoration: underline; }
.card > h2 .livetag { align-self: center; }

/* Next game: a pregame card. On the air: the same card with the live score. */
.nx-bd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding-top: 2px; }
.nx-club { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; text-align: center; }
.nx-crest { line-height: 0; }
.nx-crest .tlogo { width: 72px; height: 72px; filter: drop-shadow(0 2px 0 #0003); }
a.nx-name { color: var(--ink); font: 800 22px/1 var(--fd); font-stretch: 72%; }
.nx-rec { font: 700 15px/1.2 var(--fd); font-stretch: 80%; color: var(--muted); }
.nx-sub { font-size: 11px; line-height: 1.35; color: var(--muted); }
.nx-sub a { font-weight: 700; }
.nx-score { font: 800 56px/1 var(--fd); font-stretch: 70%; color: var(--count); }
.nx-club .pips { margin-top: 3px; }
.nx-vs { text-align: center; }
.nx-vs small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.nx-cd { font: 800 44px/1.05 var(--fd); font-stretch: 70%; color: var(--count); white-space: nowrap; }
.air .nx-cd { font-size: 32px; }
.nx-tbd { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--muted); }
.nx-odds { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font: 700 13px var(--fd); font-stretch: 80%; }
.nx-odds .bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--a) 0 var(--p), var(--h) var(--p)); box-shadow: inset 0 0 0 1px #0003; }
.nx-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; align-items: center; }
.nx-act a.btn { font-size: 14px; padding: 8px 14px; }
.nx-act .ticket { margin: 0; flex: 1 1 100%; text-align: center; }
.nx-others { grid-column: 1 / -1; margin: 0 !important; text-align: center; font-size: 11px; }
.nx-others a { margin: 0 6px; white-space: nowrap; }
a.btn.sec { background: var(--cream); color: var(--ink) !important; border-color: var(--rule); box-shadow: inset 0 1px #fff4; }
a.btn.sec:hover { background: var(--tab-hover); color: var(--tab-hover-ink) !important; }

/* headlines: recaps, newest first */
.card ul.heads { list-style: none; margin: 0; padding: 0; }
.heads li { padding: 7px 4px; border-bottom: 1px dotted var(--rule); cursor: pointer; }
.heads li:last-child { border-bottom: 0; }
.heads li:hover { background: var(--row-hover); }
.heads b { display: block; font: 700 14px/1.25 var(--fd); font-stretch: 85%; }
.heads .muted { font-size: 10.5px; }

/* compact standings: the favourite's row wears its club color */
.ministand tr.fav td { background: color-mix(in srgb, var(--fc) 18%, transparent); }
.ministand tr.fav td:first-child { box-shadow: inset 4px 0 0 var(--fc); }
.ministand a.tm { color: var(--ink); }

/* leaders: big number + the leader, two runners-up (no portraits on the home page) */
.mlead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ml { min-width: 0; }
.ml h3 { margin: 0 0 3px; font: 700 11px var(--fb); color: var(--muted); }
.ml-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ml-top b { font: 800 28px/1 var(--fd); font-stretch: 72%; color: var(--ink); }
.ml-top a { min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml ol { margin: 3px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.ml li { display: flex; justify-content: space-between; gap: 6px; }
.ml li a { min-width: 0; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml p { margin: 0; }

@media (max-width: 900px) {
    .g-next { grid-template-columns: minmax(0, 1fr); }
    .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; align-items: start; }
}
@media (max-width: 600px) {
    .g-3 { grid-template-columns: minmax(0, 1fr); }
    .home-side:has(.welcome) { order: -1; }   /* a first visit reads New here? before the tables */
    .nx-bd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .nx-vs { grid-column: 1 / -1; order: -1; }
    .nx-crest .tlogo { width: 56px; height: 56px; }
    a.nx-name { font-size: 19px; }
    .nx-cd { font-size: 38px; }
    .nx-score { font-size: 46px; }
}

/* ---- footer ---- */
footer.yb-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 16px 18px; border-top: 1px solid var(--rule); background: var(--paper); color: var(--muted); font-size: 11px; border-radius: 0 0 2px 2px; }

/* ---- standings page ---- */
.pocards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pocard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--cream); border-left: 6px solid var(--c); border-radius: 0 4px 4px 0; color: var(--ink); }
.pocard b { display: block; font: 800 17px/1.1 var(--fd); font-stretch: 78%; }
.pocard small { color: var(--muted); }

/* ---- team + player pages (R4) ----
   Pages wear their club in the banner only; everything below is the house style. clubStyle() in
   pages.js sets --tc1 (ground), --tc2 (second color), --tink (white or ink by contrast), --tacc
   (second color where it reads, else the ink), --tbtn (ink on --tc2), --tsh / --tdim. */
.tbanner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; margin: 0 0 14px;
    padding: 18px 20px 26px; border-radius: 8px; overflow: hidden; color: var(--tink); background: var(--tc1); box-shadow: inset 0 0 0 1px #0000001f; }
.tbanner::before { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: linear-gradient(var(--tc2) 0 50%, #0004 50%); }
.tbanner > * { position: relative; min-width: 0; }
.tbanner h1, .tbanner .tb-name { margin: 0; color: var(--tink); font: 800 46px/0.92 var(--fd); font-stretch: 68%; text-shadow: 0 3px 0 var(--tsh); overflow-wrap: anywhere; }
.tbanner h1 small, .tbanner .tb-name small { display: block; margin-bottom: 2px; font-size: 22px; color: var(--tacc); text-shadow: none; }
.tbanner h1 .badge { font-size: 12px; vertical-align: 8px; text-shadow: none; }
.tbanner p { margin: 8px 0 0; font-size: 12px; color: var(--tdim); }
.tbanner a, .tbanner a:hover { color: var(--tink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tink) 45%, transparent); text-underline-offset: 2px; }
.tbanner a.tm { text-decoration: none; }
.tbanner .tb-dim { color: var(--tdim); }
.tbanner button.tb-btn { background: var(--tc2); color: var(--tbtn); border-color: #0005; box-shadow: inset 0 1px #fff5, 0 2px 0 #0003; }
.tbanner button.tb-btn:hover { background: var(--tc2); color: var(--tbtn); filter: brightness(1.08); }
.tbanner .tb-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.tbanner .tb-act .badge { font-size: 12px; padding: 2px 6px; background: var(--tink); color: var(--tc1); }
.tbanner.heel .tb-act .badge { background: #d4202a; color: #fff; }
.tb-big { text-align: right; }
.tb-big small { display: block; font: 700 12px var(--fd); font-stretch: 85%; color: var(--tdim); letter-spacing: .4px; text-transform: uppercase; }
.tb-big b { display: block; font: 800 54px/1 var(--fd); font-stretch: 70%; text-shadow: 0 3px 0 var(--tsh); white-space: nowrap; }
.tb-big span { color: var(--tacc); font: 700 15px var(--fd); font-stretch: 80%; }
.crestwrap { position: relative; flex: none; display: block; width: 110px; height: 110px; line-height: 0; }
.crestwrap .tlogo { width: 110px; height: 110px; filter: drop-shadow(0 4px 0 #0005); }
.crestwrap .capinset { position: absolute; right: -8px; bottom: -6px; }
.crestwrap .capinset .portrait { box-shadow: 0 0 0 2px var(--tc2), 0 2px 4px #0008; }
/* the Empire: black and red, and properly villainous */
.tbanner.heel { background: radial-gradient(ellipse at 12% 40%, #d4202a66, transparent 55%), repeating-linear-gradient(135deg, #d4202a14 0 2px, transparent 2px 9px), #0f0b0b;
    box-shadow: inset 0 0 0 1px #d4202a55, inset 0 -40px 60px -30px #d4202a44; }
.tbanner.heel::before { background: repeating-linear-gradient(135deg, #d4202a 0 12px, #0f0b0b 12px 24px); }
.tbanner.heel h1 { text-shadow: 0 3px 0 #7a0d12, 0 0 22px #d4202a99; letter-spacing: .5px; }
.tbanner.heel h1 small { letter-spacing: 4px; text-transform: uppercase; font-size: 18px; }
.tbanner.heel .crestwrap .tlogo { filter: drop-shadow(0 0 14px #d4202aaa) drop-shadow(0 4px 0 #000); }
.tbanner .tb-boo { margin-top: 4px; color: #ff8a80; font: italic 700 13px var(--fd); font-stretch: 85%; letter-spacing: .3px; }
/* player header: portrait | name, facts, trait, rating tiers | OVR */
.pfig { flex: none; line-height: 0; }
.pfig .portrait { box-shadow: 0 0 0 4px var(--tc2), 0 4px 0 4px #0004; }
.tb-trait .trait { display: inline-block; padding: 1px 7px; margin-right: 4px; border-radius: 3px; background: var(--tc2); color: var(--tbtn); font: 800 12px/1.5 var(--fd); font-stretch: 85%; text-transform: uppercase; letter-spacing: .4px; }
.tb-tiers { display: flex; flex-wrap: wrap; gap: 4px; }
.tb-tiers .tier { padding: 1px 6px; box-shadow: 0 0 0 1px #0003; }
.tb-tiers .lean { padding: 1px 7px; border-radius: 3px; background: #0002; box-shadow: 0 0 0 1px #0003; font: 700 12px/1.5 var(--fd); font-stretch: 85%; }
.tb-ovr { min-width: 96px; text-align: center; padding: 8px 14px 9px; border-radius: 6px; background: var(--tierbg); color: var(--tierink); box-shadow: 0 0 0 2px #0002, 0 3px 0 #0003; }
.tb-ovr b { display: block; font: 800 46px/1 var(--fd); font-stretch: 70%; }
.tb-ovr span { display: block; font: 800 12px var(--fd); font-stretch: 85%; letter-spacing: 1.5px; }
.tb-ovr small { display: block; font-size: 11px; opacity: .85; }

/* rating tier chips: fixed colors in both themes (the chips sit on the paper lineup card too) */
.tier { --tierbg: #c9cdc2; --tierink: #1b2233; display: inline-block; min-width: 28px; padding: 1px 4px; border-radius: 3px; text-align: center; white-space: nowrap;
    background: var(--tierbg); color: var(--tierink); font: 800 12px/1.4 var(--fd); font-stretch: 85%; }
.t1 { --tierbg: #c9cdc2; --tierink: #1b2233; }
.t2 { --tierbg: #a9c4ae; --tierink: #1b2233; }
.t3 { --tierbg: #4c8a5a; --tierink: #fff; }
.t4 { --tierbg: #2a6e41; --tierink: #fff; }
.t5 { --tierbg: #e2ad2b; --tierink: #2a1f00; }

/* section tabs under the banner (sub-routes) */
.subtabs { display: flex; gap: 2px; margin: 0 0 14px; border-bottom: 2px solid var(--bar-2); overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: none; padding: 8px 16px 7px; font: 700 15px/1 var(--fd); font-stretch: 80%; color: var(--muted); border-radius: 5px 5px 0 0; text-decoration: none; }
.subtabs a:hover { color: var(--ink); background: var(--row-hover); text-decoration: none; }
.subtabs a.on { background: var(--bar-2); color: var(--on-bar); box-shadow: inset 0 -3px var(--gold); }
.g-team { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

/* the lineup card: a dugout card, the one place the paper metaphor is literal (same in both themes) */
.lineup { margin: 0 0 16px; padding: 10px 12px 10px; color: #1b2233; border: 1px solid #c9b994; border-radius: 3px; box-shadow: 2px 3px 0 #0000001a;
    background: #fffaf0; }
.lineup h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid #e0574d88;
    font: 800 19px/1.2 var(--fd); font-stretch: 75%; color: var(--red); }
.lineup h3 small { font: 400 11px var(--fb); color: #66708a; }
.lineup h4 { margin: 6px 0 0; font: 700 17px/1.4 "Kalam", "Comic Sans MS", cursive; color: #66708a; }
.lineup table { font-size: 12px; }
.lineup td { height: 30px; padding: 0 6px; border: 0; border-bottom: 1px solid #8fb1d670; vertical-align: middle; }
.lineup tr:hover td { background: none; }
.lineup .no { width: 22px; font: 800 18px/1 var(--fd); font-stretch: 80%; color: var(--red); text-align: center; }
.lineup .pos { width: 30px; font: 700 12px var(--fd); font-stretch: 85%; color: #5a6680; }
.lineup .nm { width: 99%; }
.lineup .nm a { color: #1b2233; font: 700 17px/1 "Kalam", "Comic Sans MS", cursive; }
.lineup .nm a:hover { color: var(--red); text-decoration: none; }
.lineup .bt { color: #66708a; font-size: 11px; }
.lineup .ln { color: #4a5570; font-size: 11px; text-align: right; }
.lineup tr.bench td { opacity: .78; }
.lineup tr.bhead td { height: auto; padding: 0; }
.lineup .lnote { margin: 8px 0 0; font-size: 10.5px; color: #66708a; line-height: 1.4; }
table.staff td.role { font: 700 12px var(--fd); font-stretch: 85%; color: var(--muted); }

/* last 10: one tile per game, oldest first */
.results { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; max-width: 420px; }
.results a { padding: 4px 0 3px; border-radius: 3px; text-align: center; text-decoration: none; color: #fff; font: 800 13px/1.15 var(--fd); font-stretch: 80%; background: var(--red); }
.results a.w { background: #2f7d4a; }
.results a:hover { filter: brightness(1.12); text-decoration: none; }
.results a small { display: block; font-size: 11px; font-weight: 600; opacity: .9; }
.nextln { margin-top: 10px !important; line-height: 1.5; }

/* last-5 pips (Watch, My team, Teams) */
.pips { display: inline-flex; gap: 2px; vertical-align: -2px; }
.pips i { display: inline-block; width: 15px; height: 15px; border-radius: 3px; font: 700 10px/15px var(--fb); text-align: center; font-style: normal; color: #fff; text-shadow: none; }
.pips i.w { background: #2f7d4a; }
.pips i.l { background: #b0352b; }

/* depth chart: the spots laid out like the diamond, on a little field */
.depth { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-areas: 'lf . cf . rf' '. ss . b2 .' 'b3 . p . b1' 'dh . c . .';
    padding: 12px; border-radius: 6px; background: radial-gradient(ellipse at 50% 100%, #b0805030 0 30%, transparent 31%), #4f8a3a1f; }
.dc-spot { min-width: 0; padding: 5px 8px 6px; font-size: 11px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--bar); border-radius: 4px; }
.dc-spot a { display: inline-block; max-width: calc(100% - 28px); vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-pos { display: block; font: 800 12px/1.2 var(--fd); font-stretch: 85%; color: var(--navy); }
.dc-1 a { font-weight: 700; }
.dc-1 b { float: right; font: 800 14px var(--fd); font-stretch: 85%; }
.dc-2, .dc-2 a { color: var(--muted); font-size: 10.5px; }
.dc-2 span { float: right; }
.dc-lf { grid-area: lf; } .dc-cf { grid-area: cf; } .dc-rf { grid-area: rf; } .dc-ss { grid-area: ss; } .dc-2b { grid-area: b2; }
.dc-3b { grid-area: b3; } .dc-p { grid-area: p; } .dc-1b { grid-area: b1; } .dc-c { grid-area: c; } .dc-dh { grid-area: dh; }

/* player ratings: bars by tier, OVR sparkline */
.rbar { display: grid; grid-template-columns: 70px 1fr 32px; align-items: center; gap: 8px; margin: 3px 0; font-size: 11px; }
.rbar.t1 { --tc: var(--t1); } .rbar.t2 { --tc: var(--t2); } .rbar.t3 { --tc: var(--t3); } .rbar.t4 { --tc: var(--t4); } .rbar.t5 { --tc: var(--t5); }
.rbar i { height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--tc, var(--accent)) var(--v), var(--cream) var(--v)); border: 1px solid var(--rule); }
.rbar b { text-align: right; font: 800 14px var(--fd); font-stretch: 85%; }
.spark { margin-top: 8px; max-width: 100%; }
.spark polyline { fill: none; stroke: var(--red); stroke-width: 2; }
.spark circle { fill: var(--paper); stroke: var(--red); stroke-width: 1.5; }
.spark text { font-size: 12px; fill: var(--muted); }

/* spray chart - dataviz palette slots 1/3/2, validated on --paper both modes */
.logspray { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); }
.pbp { max-height: 460px; overflow-y: auto; }
.spray { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.spray .sp-grass { fill: #4f8a3a22; }
.spray .sp-dirt { fill: #b0805033; }
.spray .sp-line, .spray .sp-base { fill: none; stroke: var(--muted); stroke-width: 2; }
.spray circle { stroke: var(--paper); stroke-width: 2; }
.spray .sp-out { fill: none; stroke: var(--muted); stroke-width: 2; opacity: 0.7; }
.spray .sp-1b, .sp-legend .sp-1b { fill: var(--sp1); background: var(--sp1); }
.spray .sp-xbh, .sp-legend .sp-xbh { fill: var(--sp2); background: var(--sp2); }
.spray .sp-hr, .sp-legend .sp-hr { fill: var(--sp3); background: var(--sp3); }
.sp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; font-size: 11px; margin-top: 6px; }
.sp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.sp-legend .sp-out { border: 2px solid var(--muted); box-sizing: border-box; }
.sp-legend .sp-hr { width: 13px; height: 13px; vertical-align: -2px; }

/* Teams: one card per club, a little banner on top */
.clubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.club { cursor: pointer; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none; }
.club:hover { text-decoration: none; border-color: var(--bar); }
.club:hover .club-top { filter: brightness(1.06); }
.club-top { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 18px; background: var(--tc1); color: var(--tink); }
.club-top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(var(--tc2) 0 50%, #0004 50%); }
.club.heel .club-top { background: radial-gradient(ellipse at 15% 40%, #d4202a55, transparent 60%), #0f0b0b; }
.club.heel .club-top::after { background: repeating-linear-gradient(135deg, #d4202a 0 8px, #0f0b0b 8px 16px); }
.club-top .tlogo { width: 64px; height: 64px; filter: drop-shadow(0 3px 0 #0005); }
.club-nm { flex: 1; min-width: 0; font: 800 28px/0.95 var(--fd); font-stretch: 70%; text-shadow: 0 2px 0 var(--tsh); }
.club-nm small { display: block; font-size: 16px; color: var(--tacc); text-shadow: none; }
.club-top .badge { align-self: flex-start; }
.club-bd { display: grid; justify-items: start; gap: 4px; padding: 10px 14px 12px; }
.club-rec { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font: 700 14px var(--fd); font-stretch: 82%; }
.club-rec b { font: 800 26px/1 var(--fd); font-stretch: 72%; color: var(--count); }
.club-ln { font-size: 11px; color: var(--muted); }
.club-ln b { color: var(--ink); }

/* baseball card dialog (js/card.js draws, pages.js opens it): a module on a dimmed page */
body.cardopen { overflow: hidden; }
.cardbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 12px; background: #070b16cc; }
.cardbox[hidden] { display: none; }
.cardpanel { display: flex; flex-direction: column; gap: 8px; width: min(440px, 100%); max-height: 100%; padding: 0 12px 10px; color: var(--ink); background: var(--paper);
    border: 1px solid #000; border-radius: 6px; box-shadow: 0 12px 40px #000a; }
.cardhd { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -12px 6px; padding: 7px 8px 6px 12px;
    background: var(--bar); color: var(--on-bar); border-radius: 5px 5px 0 0; font: 800 17px/1.15 var(--fd); font-stretch: 75%; }
.cardhd::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--stripe); }
.cardhd small { margin-left: 6px; font: 400 11px var(--fb); color: var(--on-bar-dim); }
.cardbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cardsides { display: inline-flex; margin-left: auto; }
.cardsides button:first-child { border-radius: 4px 0 0 4px; }
.cardsides button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.cardhd .cardx { width: 28px; height: 28px; padding: 0; background: #ffffff14; color: var(--on-bar); border-color: #ffffff33; box-shadow: none; }
.cardhd .cardx:hover { background: var(--red); color: #fff; }
.cardstage { min-height: 0; flex: 1 1 auto; display: flex; justify-content: center; }
.cardcv { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 200px); aspect-ratio: 750 / 1050; cursor: pointer; border-radius: 10px; box-shadow: 0 4px 14px #0006; }
.cardbar.dl { justify-content: center; }
.cardbar.dl button { font-size: 12px; padding: 5px 12px; }
.cardpanel .note { margin: 0; text-align: center; }

@media (max-width: 900px) {
    .g-team { grid-template-columns: minmax(0, 1fr); }
    .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) { .logspray { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .depth { grid-template-columns: 1fr 1fr; grid-template-areas: 'lf rf' 'cf ss' 'b3 b2' 'p b1' 'c dh'; } }
@media (max-width: 600px) {
    .tbanner { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 14px 14px 22px; }
    .crestwrap, .crestwrap .tlogo { width: 72px; height: 72px; }
    .crestwrap .capinset .portrait { width: 30px !important; height: 30px !important; }
    .tbanner h1 { font-size: 34px; }
    .tbanner h1 small { font-size: 17px; }
    .tb-big { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; text-align: left; }
    .tb-big small { flex-basis: 100%; }
    .tb-big b { font-size: 38px; }
    .pfig .portrait { width: 72px !important; height: 72px !important; }
    .pbanner .tb-main { grid-column: 1 / -1; grid-row: 2; }
    .pbanner .tb-ovr { grid-column: 2; grid-row: 1; justify-self: start; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; min-width: 0; padding: 6px 12px; }
    .pbanner .tb-ovr b { grid-row: 1 / span 2; font-size: 40px; }
    .pbanner .tb-ovr span, .pbanner .tb-ovr small { text-align: left; }
    .subtabs a { padding: 8px 12px 7px; font-size: 14px; }
    .lineup td { padding: 0 4px; }
    .lineup .bt, .staff .xn { display: none; }
    .lineup .nm a { font-size: 16px; }
    .clubs { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the game page (R5) ----
   Opens on the broadcast scoreboard (navy in both themes, like the deck): the top bar says what
   game and the status, then the line score with big numbers and R/H/E in gold, the decisions, and
   a cream lower third with the recap and the stars. Then win chance + lineups | the replay (the
   watch panel docks into .gm-rp), the box score, play-by-play | scoring plays. */
.gboard { margin: 0 0 16px; overflow: hidden; color: var(--on-bar); background: var(--bar); border-radius: 8px; box-shadow: inset 0 0 0 1px #0006; }
.gboard a { color: inherit; }
.gboard .muted, .gboard small { color: #93a2c2; }
.gb-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 8px 14px; background: #16243c;
    color: var(--on-bar-dim); font: 700 13px/1.35 var(--fd); font-stretch: 80%; }
.gb-st { color: var(--gold); font: 800 16px/1.2 var(--fd); font-stretch: 78%; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.gb-st b { font-size: 22px; letter-spacing: 0; }
.gb-st .livetag { margin-right: 4px; font-size: 11px; vertical-align: 2px; }
.gb-po { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 2px; background: var(--gold); color: #1f3049; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.gb-ls { width: 100%; font-variant-numeric: tabular-nums; }
.gb-ls th, .gb-ls td { padding: 6px 4px; border: 0; text-align: center; white-space: nowrap; }
.gb-ls th { padding-top: 10px; color: #8ea0c4; font: 700 12px/1 var(--fd); font-stretch: 85%; }
.gb-ls td { min-width: 1.15em; font: 800 24px/1 var(--fd); font-stretch: 78%; }
.gb-ls tr + tr td { border-top: 1px solid #ffffff12; }
.gb-ls .tmn { width: 36%; padding-left: 14px; text-align: left; }
.gb-ls td.tmn a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.gb-ls td.tmn a:hover .nk { text-decoration: underline; }
.gb-ls td.tmn .tlogo { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 #0006); }
.gb-ls .ab { display: none; }
.gb-ls .rhe { min-width: 1.6em; background: #ffffff0b; }
.gb-ls th.rhe { color: var(--gold); }
.gb-ls td.rhe { color: var(--gold); }
.gb-ls td.r { font-size: 30px; }
.gb-ls tr.l td { color: #9fb0d0; }
.gb-ls tr.l td.rhe { color: #c9b780; }
.gb-ls tr.bat .nk::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--gold); vertical-align: 4px; }
.gb-dec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 9px 14px 10px; border-top: 1px solid #ffffff1a; color: #c3cee6; font-size: 11px; }
.gb-dec i { display: inline-block; min-width: 17px; margin-right: 3px; padding: 1px 3px; border-radius: 2px; background: var(--gold); color: #1f3049; font: 800 12px/1.2 var(--fd); font-style: normal; text-align: center; }
.gb-dec a { color: #fff6e3; font-weight: 700; }
.gb-ser { margin-left: auto; color: var(--gold); font: 700 14px/1.2 var(--fd); font-stretch: 80%; }
.gb-foot { padding: 10px 14px 11px; color: var(--ink); background: var(--cream); border-top: 4px solid var(--gold); }
.gb-foot small { color: var(--muted); }
.gb-recap { margin: 0 0 6px; font: 700 17px/1.25 var(--fd); font-stretch: 85%; }
.gb-feat { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 2px; background: var(--red); color: #fff; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; vertical-align: 2px; }
.gb-stars { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 16px; font-size: 11px; }
.gb-lab { color: var(--red); font: 800 12px/1 var(--fd); font-stretch: 85%; letter-spacing: .6px; text-transform: uppercase; }
.gb-star i { color: var(--red); font-style: normal; font-weight: 700; letter-spacing: -1px; }
.gb-star a { font-weight: 700; }
/* upcoming: the board as a tale of the tape */
.gb-pre { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 16px 14px 8px; }
a.gb-club { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
a.gb-club:last-child { flex-direction: row-reverse; text-align: right; }
a.gb-club:hover b { text-decoration: underline; }
.gb-club .tlogo { width: 64px; height: 64px; filter: drop-shadow(0 3px 0 #0006); }
.gb-club span { min-width: 0; }
.gb-club small { display: block; font: 700 13px/1.1 var(--fd); font-stretch: 85%; }
.gb-club b { display: block; color: #fff6e3; font: 800 30px/0.95 var(--fd); font-stretch: 70%; overflow-wrap: anywhere; }
.gb-club em { display: block; color: var(--gold); font: 700 18px/1.25 var(--fd); font-stretch: 80%; font-style: normal; }
.gb-at { color: #8ea0c4; font: 800 16px var(--fd); font-stretch: 85%; text-transform: uppercase; }
.gb-tape { width: 100%; margin-top: 4px; font-size: 12px; }
.gb-tape td, .gb-tape th { padding: 7px 14px; border: 0; border-top: 1px solid #ffffff14; white-space: normal; }
.gb-tape th { width: 1%; color: #8ea0c4; font: 700 11px var(--fd); font-stretch: 85%; letter-spacing: .5px; text-align: center; text-transform: uppercase; white-space: nowrap; }
.gb-tape td:first-child { width: 50%; text-align: right; }
.gb-tape td:last-child { width: 50%; text-align: left; }
.gb-tape a { color: #fff6e3; font-weight: 700; }
.gb-odds { padding: 10px 14px 14px; border-top: 1px solid #ffffff14; color: #fff6e3; }
.gb-tbd { margin: 0; padding: 22px 14px; color: var(--on-bar-dim); text-align: center; }

/* win chance + lineups | replay; phones stack the replay first */
.ggrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
.gcol { min-width: 0; }
.card.gm-rp { padding: 0; overflow: hidden; background: #0c1326; border-color: #000; }
.card.gm-rp > h2 { margin: 0; }
.gm-rp > h2 .livetag { margin-left: 2px; }
.gm-lus .yb-stats { display: block; margin: 0; padding: 0; background: none; color: var(--ink); border: 0; }
.gm-lus .yb-stats[hidden] { display: none; }
.gm-lus .yb-ls { display: none; }
.gm-lus .yb-lu { padding: 2px 0 0; background: none; border-radius: 0; }
.gm-lus .yb-lu h4 { color: var(--navy); font: 800 15px/1.3 var(--fd); font-stretch: 80%; }
.gm-lus .yb-lu td { border-top-color: var(--rule); }
.gm-lus .yb-lu :is(td.n, td.ps, td.ln) { color: var(--muted); }
.gm-lus .yb-lu tr.pit td { border-top: 2px solid var(--rule); }
.gm-lus .yb-lu tr.up td { background: #f2c14e33; }
.gm-lus .yb-lu tr.up td.nm { color: var(--ink); }
.gm-row .card { min-width: 0; }
.scoring td.wrap { white-space: normal; }
.boxhd { margin: 2px 0 6px; padding-bottom: 4px; border-bottom: 3px solid var(--c); font: 800 19px/1.15 var(--fd); font-stretch: 78%; }
.boxhd a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.boxhd .tlogo { width: 26px; height: 26px; }
table.box tr.subrow td:first-child { padding-left: 22px; color: var(--muted); }
.boxnote { margin: 4px 0 12px !important; color: var(--muted); font-size: 11px; }
.boxnote b { color: var(--ink); }
.card ol.bigplays { margin: 4px 0; padding-left: 22px; }
.bigplays li { margin: 4px 0; cursor: pointer; }
.bigplays li::marker { color: var(--red); font: 800 14px var(--fd); }
.bigplays li:hover { text-decoration: underline; }
.wpbox h3.sec { margin-top: 10px; }
.pv-side { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-left: 6px solid var(--c); border-radius: 0 6px 6px 0; background: var(--cream); }

/* win chance graph + the synced feed */
.wpg { position: relative; margin: 4px 0 2px; }
.wpg svg { display: block; width: 100%; height: auto; cursor: pointer; touch-action: pan-y; }
.wpg .g { stroke: var(--rule); stroke-width: 1; }
.wpg .mid { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.wpg .ln { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.wpg .ax { fill: var(--muted); font-size: 12px; }
.wpg .lb { fill: var(--ink); font: 700 13px var(--fd); font-stretch: 85%; }
.wpg .dot { fill: var(--red); stroke: var(--paper); stroke-width: 2; }
.wpg .dn { fill: var(--ink); font: 800 13px var(--fd); }
.wpg .xh { stroke: var(--muted); stroke-width: 1; }
.wpg .xd { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.wptip { position: absolute; top: 0; z-index: 2; max-width: 320px; padding: 6px 9px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold);
    border-radius: 4px; box-shadow: 0 2px 8px #0003; font-size: 11px; white-space: normal; pointer-events: none; }
.wptip b { font: 800 14px var(--fd); font-stretch: 85%; }
.wpnow { margin: 0 0 4px; }
.wpnow b { color: var(--count); font: 800 24px/1 var(--fd); font-stretch: 75%; }
.feedtog { display: inline-flex; gap: 2px; }
.card > h2 .feedtog { margin-left: auto; align-self: center; }
.feedtog button { padding: 2px 9px; border: 1px solid #ffffff40; border-radius: 3px; background: transparent; color: var(--on-bar); font: 700 12px/16px var(--fd); font-stretch: 85%; cursor: pointer; }
.feedtog button:hover { background: #ffffff14; }
.feedtog button.on { background: var(--gold); border-color: var(--gold); color: #1f3049; }
.feed.keyonly tr[data-seek]:not(.key) { display: none; }
.feed tr[data-seek] { cursor: pointer; }
.feed tr[data-seek]:hover td { background: var(--row-hover); }
.feed tr.now td { background: var(--cream); box-shadow: inset 3px 0 0 var(--red); }
.feed tr.inn td { background: var(--bar); color: var(--on-bar); font: 700 12px/1.2 var(--fd); font-stretch: 85%; letter-spacing: .3px; }
.feed td:first-child { white-space: normal; }
.feed .sw .up { color: var(--up); font-weight: 700; }
.feed .sw .dn { color: var(--muted); }
.pbp tr.scored td { font-weight: 700; background: #f2c14e2e; }
.pbp tr.half td, .pbp tr.sub td { color: var(--muted); }
.pbp tr.half td { font-size: 11px; }

/* the pick slip (preview page, Picks): tap a club, a slip with stake chips, one button */
.pickbox { margin: 6px 0 2px; }
.pickbox .pks, .pks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0; }
.pickbox button.pk { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; }
.pickbox.big button.pk { flex: 1 1 140px; justify-content: space-between; padding: 10px 16px; font-size: 19px; line-height: 1.1; }
.pickbox.big button.pk .pk-pay { color: var(--ink); font-size: 19px; font-weight: 700; }
.pk-t { font-weight: 700; }
.pk-pay { color: var(--muted); font-size: 11px; font-weight: normal; }
button.pk.on .pk-pay, .pickbox button.pk.on .pk-pay { color: #2a1f00; }
.slip { margin-top: 8px; padding: 8px 10px; background: var(--cream); border: 1px dashed var(--rule); border-left: 4px solid var(--plum); border-radius: 0 6px 6px 0; }
.slip p { margin: 6px 0 0; }
.slip-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ticket { margin: 6px 0; padding: 6px 10px; background: var(--cream); border-left: 4px solid var(--plum); border-radius: 0 6px 6px 0; }

/* ---- the watch panel (R5): the diamond, scorebug and remote, in the deck's broadcast look.
   pages.js docks it: into the channel deck on Watch (tv.css .tvs-feed rules take over the scorebug
   there), under the deck on phones (strip mode), into the Replay module on a game page. The layout
   follows the panel's own width (container ybw), not the window. ---- */
#watch { margin: 0 0 14px; container: ybw / inline-size; }
#watch[hidden] { display: none; }
#watch.docked:not(.docked-tv) { display: flex; flex-direction: column; overflow: hidden; color: var(--mast-ink); background: #0c1326; border: 1px solid #000; border-radius: 6px; }
#watch.ingame { margin: 0; padding-top: 4px; border: 0; border-radius: 0; }
#watch.docked:not(.docked-tv) .yb-main { order: 1; }
#watch.docked:not(.docked-tv) .yb-scrub { order: 2; width: auto; margin: 8px 10px 0; }
#watch.docked:not(.docked-tv) .yb-ctl { order: 3; margin: 0; padding: 8px 10px 10px; }
#watch.docked:not(.docked-tv) .yb-stats { order: 4; }
/* game minis: tiles like the scores strip */
.yb-board { display: flex; margin: 0; overflow-x: auto; background: #0b1224; border-bottom: 1px solid #000; scrollbar-width: none; }
.yb-board::-webkit-scrollbar { display: none; }
.yb-board[hidden] { display: none; }
.yb-mini { flex: 1 0 104px; display: grid; gap: 1px; padding: 6px 10px 7px; text-align: left; color: #dfe6f5; background: transparent; border: 0; border-right: 1px solid #1e2a45;
    border-radius: 0; font: 700 13px/1.3 var(--fd); font-stretch: 80%; cursor: pointer; }
.yb-mini:hover:not(:disabled) { background: #16213b; }
.yb-mini.on { background: #16213b; box-shadow: inset 0 -3px var(--gold); }
.yb-mini.up { cursor: default; opacity: .7; }
.yb-mst { color: #8ea0c4; font: 700 10px/1.5 var(--fd); font-stretch: 80%; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.yb-mst.live { color: #ff8a80; }
.yb-mst .yb-live { padding: 0 4px; font-size: 9.5px; }
.yb-mt { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-left: 6px; border-left: 4px solid var(--c); }
.yb-mt.l { color: #8a96b3; font-weight: 500; }
/* the diamond + scorebug: stacked when narrow, side by side when the panel is wide */
.yb-main { display: grid; grid-template-columns: minmax(0, 1fr); background: #101a31; }
.yb-stage { position: relative; background: #5c3d24; line-height: 0; }
.yb-under { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.yb-court { position: relative; display: block; width: 100%; cursor: pointer; }
.yb-side { display: flex; flex-direction: column; min-width: 0; color: #e9eefa; background: linear-gradient(180deg, #2a4063, #1f3049 55%, #101a31); border-top: 3px solid var(--gold); }
.yb-bug { padding: 10px 12px; border-bottom: 1px solid #ffffff26; }
.yb-bugtop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 7px; font-size: 11px; }
.yb-inn { color: var(--gold); font: 800 18px/1 var(--fd); font-stretch: 78%; letter-spacing: .5px; }
.yb-teams { display: grid; gap: 3px; }
.yb-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 10px; background: #0c13268c; border-left: 6px solid var(--c); }
.yb-row b { font: 800 20px/1.15 var(--fd); font-stretch: 78%; }
.yb-row .yb-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yb-row em { min-width: 1.3em; color: #fff; font: 800 26px/1 var(--fd); font-stretch: 75%; font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.yb-row em small { color: var(--mast-muted); font-size: 11px; }
.yb-row.bat { background: #f4ecd81f; }
.yb-row.bat b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--gold); vertical-align: 3px; }
.yb-sit { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.yb-bases rect { fill: #ffffff14; stroke: var(--mast-muted); stroke-width: 1; }
.yb-bases rect.on { fill: var(--gold); stroke: var(--gold); }
.yb-cnt { display: flex; align-items: center; gap: 4px; color: var(--mast-muted); font: 700 12px var(--fd); font-stretch: 85%; }
.yb-cnt span { margin-left: 4px; }
.yb-cnt i { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--mast-muted); border-radius: 50%; }
.yb-cnt i.b { background: #4caf7a; border-color: #4caf7a; }
.yb-cnt i.s { background: #e2574c; border-color: #e2574c; }
.yb-cnt i.o { background: var(--gold); border-color: var(--gold); }
.yb-duel { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 12px; background: #0c132659; border-bottom: 1px solid #ffffff26; font-size: 11px; }
.yb-duel:empty { display: none; }
.yb-duelrows { flex: 1; display: grid; gap: 6px; min-width: 0; }
.yb-duelrows > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yb-role { display: inline-block; min-width: 2.2em; padding: 1px 3px; border-radius: 2px; background: var(--gold); color: #1f3049; font: 800 10px/1.4 var(--fd); text-align: center; }
.yb-line { padding-left: 2.6em; color: #c3cee6; font-variant-numeric: tabular-nums; }
.yb-zone { flex: none; }
.yb-zone rect { fill: #ffffff0d; stroke: var(--mast-muted); stroke-width: 0.06; }
.yb-zone text { fill: #000; font: bold 0.36px system-ui, sans-serif; text-anchor: middle; }
.yb-muted { color: #93a2c2; }
.yb-live, .yb-tag { padding: 1px 6px; border-radius: 2px; color: #fff; font: 800 11px/1.4 var(--fd); font-stretch: 85%; letter-spacing: .06em; }
.yb-live { background: var(--red); }
.yb-tag { background: var(--bar-2); box-shadow: inset 0 0 0 1px #ffffff2a; }
/* the ticker: one fixed line for the at-bat in progress, then finished plays, newest first
   (rows only enter at the top); the newest gets a marker for a few seconds */
.yb-ticker { flex: 1; display: flex; flex-direction: column; min-height: 8em; padding: 6px 12px 8px; overflow: hidden; font-size: 11px; line-height: 1.35; }
.yb-now { flex: none; margin: 0 0 4px; padding: 3px 7px; overflow: hidden; border-radius: 3px; background: #0c13268c; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.yb-now::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.yb-now.idle { color: var(--mast-muted); }
.yb-now.idle::before { background: var(--mast-muted); }
.yb-plays { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.yb-plays div { padding: 2px 0 2px 7px; color: var(--mast-ink); border-left: 3px solid transparent; border-bottom: 1px solid #ffffff10; }
.yb-plays .run { color: var(--gold); }
.yb-plays .inn { color: var(--sky); font-size: 0.92em; }
.yb-plays .sub { color: var(--mast-muted); }
.yb-plays .new { color: #fff; font-weight: 700; border-left-color: var(--gold); animation: yb-new 1.2s ease-out; }
.yb-plays .run.new { color: var(--gold); }
@keyframes yb-new { from { background: #f2c14e40; } to { background: transparent; } }
@container ybw (min-width: 520px) {
    .yb-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .yb-bug { border-right: 1px solid #ffffff26; }
    .yb-ticker { grid-column: 1 / -1; min-height: 6em; max-height: 9em; }
}
@container ybw (min-width: 600px) {
    .yb-main { grid-template-columns: minmax(0, 1fr) clamp(260px, 40%, 320px); }
    .yb-side { display: flex; border-top: 0; border-left: 3px solid var(--gold); }
    .yb-bug { border-right: 0; }
    .yb-ticker { max-height: none; }
}
/* the remote: knobs like the deck bar */
.yb-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.yb-ctl button, .yb-ctl select { padding: 6px 11px; color: #e5ebf7; background: linear-gradient(#34496f, #22324f); border: 1px solid #0a1224; border-radius: 4px;
    box-shadow: inset 0 1px #ffffff2a; font: 700 13px/16px var(--fd); font-stretch: 80%; text-shadow: none; cursor: pointer; color-scheme: dark; }
.yb-ctl select { padding: 5px 6px; }
.yb-ctl button:hover:not(:disabled), .yb-ctl select:hover:not(:disabled) { color: #fff; background: linear-gradient(#3e5784, #283a5d); }
.yb-ctl button.yb-golive, .yb-ctl button.yb-golive:hover { color: #fff; background: linear-gradient(#d9463b, #b02e25); border-color: #7d1d17; }
.yb-ctl button:disabled, .yb-ctl select:disabled { opacity: 0.4; cursor: default; }
.yb-ctl label { display: inline-flex; align-items: center; gap: 4px; color: var(--on-bar-dim); font-size: 11px; cursor: pointer; }
.yb-scrub { width: 100%; margin: 6px 0 4px; accent-color: var(--gold);
    background: linear-gradient(90deg, #c4372d66 var(--avail, 100%), transparent var(--avail, 100%)); }
/* linescore + both lineups (the second screen on Watch; lineups only on a game page) */
.yb-stats { display: grid; gap: 10px; margin-top: 8px; padding: 10px; color: var(--mast-ink); background: #0c1326; border: 1px solid #000; border-radius: 6px; font-size: 11px; }
.yb-stats[hidden] { display: none; }
.yb-stats table { width: 100%; border-collapse: collapse; }
.yb-stats td, .yb-stats th { padding: 2px 5px; border: 0; }
.yb-ls { overflow-x: auto; }
.yb-ls table { width: auto; min-width: 100%; }
.yb-ls th { color: #8ea0c4; font: 700 11px var(--fd); font-stretch: 85%; text-align: center; }
.yb-ls th.rhe { color: var(--gold); }
.yb-ls td { min-width: 1.4em; color: #fff6e3; font: 800 20px/1.3 var(--fd); font-stretch: 78%; text-align: center; }
.yb-ls td.tm { padding-left: 8px; font-size: 18px; text-align: left; border-left: 5px solid var(--c); }
.yb-ls :is(td, th):nth-last-child(-n+3) { background: #ffffff0b; }
.yb-ls .rhe { border-left: 2px solid #ffffff30; }
.yb-ls td.rhe b { color: var(--gold); }
.yb-ls tr + tr td { border-top: 1px solid #ffffff12; }
.yb-lus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yb-lu { min-width: 0; padding: 4px 6px 6px; background: #ffffff08; border-top: 3px solid var(--c); border-radius: 0 0 6px 6px; }
.yb-lu h4 { margin: 2px 0 4px; color: #fff6e3; font: 800 14px/1.3 var(--fd); font-stretch: 82%; }
.yb-lu td { border-top: 1px solid #ffffff10; white-space: nowrap; }
.yb-lu td.n { width: 1.6em; color: var(--mast-muted); text-align: right; }
.yb-lu td.nm { max-width: 9em; overflow: hidden; font-weight: bold; text-overflow: ellipsis; }
.yb-lu td.ps { width: 2.4em; color: var(--mast-muted); }
.yb-lu td.ln { max-width: 14em; overflow: hidden; color: #c3cee6; text-align: right; text-overflow: ellipsis; }
.yb-lu tr.pit td { border-top: 1px solid #ffffff30; }
.yb-lu tr.up td { background: #f2c14e22; }
.yb-lu tr.up td.nm { color: var(--gold); }

@media (max-width: 900px) {
    .ggrid { display: flex; flex-direction: column; align-items: stretch; }
    .gcol { display: contents; }
    .gm-rp { order: -1; }
}
@media (max-width: 640px) {
    .yb-lus { grid-template-columns: 1fr; }
    .yb-stats { padding: 8px 6px; }
    .yb-ls td, .yb-ls th { min-width: 0; padding: 1px 2px; }
    .yb-ls td { font-size: 16px; }
    .yb-ls td.tm { padding-left: 4px; font-size: 14px; border-left-width: 4px; }
    .yb-ctl { gap: 4px; }
    .yb-ctl button, .yb-ctl select { padding: 6px 9px; }
}
@media (max-width: 600px) {
    .gb-top { padding: 7px 10px; font-size: 12px; }
    .gb-ls th, .gb-ls td { padding-left: 1px; padding-right: 1px; }
    .gb-ls td { min-width: 0; font-size: 19px; }
    .gb-ls td.r { font-size: 23px; }
    .gb-ls .rhe { min-width: 1.5em; }
    .gb-ls .tmn { width: auto; padding-left: 10px; padding-right: 4px; }
    .gb-ls:has(.xinn) td { font-size: 16px; }
    .gb-ls:has(.xinn) td.r { font-size: 20px; }
    .gb-ls:has(.xinn) td.tmn .tlogo { display: none; }
    .gb-ls td.tmn a { gap: 6px; }
    .gb-ls td.tmn .tlogo { width: 24px; height: 24px; }
    .gb-ls .nk { display: none; }
    .gb-ls .ab { display: inline; }
    .gb-ls .xi { display: none; }
    .gb-dec, .gb-foot { padding-left: 10px; padding-right: 10px; }
    .gb-ser { margin-left: 0; flex-basis: 100%; }
    .gb-recap { font-size: 15px; }
    .gb-pre { gap: 6px; padding: 12px 10px 6px; }
    a.gb-club { flex-direction: column; gap: 4px; text-align: center; }
    a.gb-club:last-child { flex-direction: column; text-align: center; }
    .gb-club .tlogo { width: 48px; height: 48px; }
    .gb-club b { font-size: 24px; }
    .gb-tape td, .gb-tape th { padding: 6px 8px; }
    .pickbox.big button.pk { font-size: 17px; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) { .yb-plays .new { animation: none; } }

@media (max-width: 600px) {
    #utilPlaceholder .sh-util .sh-util-hi { display: none; }
    .mast { padding: 12px; gap: 10px; }
    .mast .brand { gap: 10px; }
    .mast .brand img { width: 44px; height: 44px; }
    .mast .brand b { font-size: 28px; }
    .mast .brand small { display: none; }
    .mast .clock { font-size: 10px; }
    .mast .clock b { font-size: 18px; }
    .mast .clock .long { display: none; }
    main#yb { padding: 10px 10px 18px; }
    .cols { grid-template-columns: 1fr; }
    h1 { font-size: 28px; }
    td, th { padding: 4px 5px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .livedot { animation: none; }
}

/* ---- the rest of the site (R6) ---- */
.h2logo { align-self: center; width: 22px; height: 22px; margin: -4px 0 -3px; }

/* Scores: the month at a glance (one season = one calendar month), then a date bar per league
   day over the day's games as scoreboard tiles. The current season opens on today. */
.sched-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 0 16px; align-items: end; }
.sched-top > .note { margin: 0 0 16px; }
.ycal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ycal .wd { font: 700 10px/1.6 var(--fd); font-stretch: 85%; color: var(--muted); text-align: center; text-transform: uppercase; }
.ycal .cd { display: grid; place-items: center; align-content: center; min-height: 38px; padding: 2px 0; font: inherit; color: var(--ink);
    background: linear-gradient(var(--btn-hi), var(--cream)); border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; }
.ycal .cd b { font: 800 17px/1 var(--fd); font-stretch: 75%; }
.ycal .cd small { min-height: 11px; font: 800 9px/1.3 var(--fd); font-stretch: 85%; letter-spacing: .3px; color: var(--muted); }
.ycal .cd.done { background: var(--paper); color: var(--muted); }
.ycal .cd.po { border-color: var(--gold); box-shadow: inset 0 -3px var(--gold); }
.ycal .cd.today { background: var(--bar); color: var(--gold); border-color: #0a1224; }
.ycal .cd.today small { color: var(--on-bar); }
.ycal .cd.off { opacity: .4; cursor: default; background: none; }
.ycal button.cd:hover { background: var(--tab-hover); color: var(--tab-hover-ink); }
section.day { margin: 0 0 18px; scroll-margin-top: 10px; }
.daybar { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 12px; padding: 7px 12px 6px;
    background: var(--bar); color: var(--on-bar); border-radius: 5px 5px 0 0; font: 700 15px/1.2 var(--fd); font-stretch: 80%; }
.daybar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--stripe); }
.daybar b { font-size: 19px; font-weight: 800; color: var(--gold); }
.daybar .dph { color: var(--on-bar-dim); font-weight: 500; }
.daybar .todaytag { align-self: center; padding: 0 6px; background: var(--gold); color: #2a1f00; border-radius: 2px; font: 800 10px/1.6 var(--fd); letter-spacing: .5px; }
.daybar .drec { margin-left: auto; }
.gtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.gt { display: block; min-width: 0; padding: 4px 8px 6px; background: var(--cream); border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); text-decoration: none !important; }
a.gt:hover { background: var(--row-hover); }
.gt .st { font: 700 11px/1.6 var(--fd); font-stretch: 80%; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.gt .k { float: right; margin-top: 2px; padding: 0 4px; background: var(--gold); color: #2a1f00; border-radius: 2px; font: 800 10px/1.5 var(--fd); font-stretch: 85%; }
.gt .ln { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; align-items: center; font: 700 15px/1.45 var(--fd); font-stretch: 80%; }
.gt .ln b { font-size: 18px; font-weight: 800; }
.gt .ln.l { color: var(--muted); font-weight: 500; }
.gt .ln.l b { font-weight: 600; }
.gt small { color: var(--muted); font-size: 10px; }
.gt.live { border-color: var(--red); box-shadow: inset 0 3px var(--red); }
.gt.live .st { color: var(--red); }
.gt.fav { box-shadow: inset 4px 0 var(--gold); }
.gt.live.fav { box-shadow: inset 0 3px var(--red), inset 4px 0 var(--gold); }
.gt.tbd .tbdl { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
@media (max-width: 1000px) { .gtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sched-top { grid-template-columns: minmax(0, 1fr); } .sched-top > .note { margin-top: -8px; } }
@media (max-width: 420px) { .gtiles { gap: 4px; } .gt { padding: 3px 6px 5px; } .gt .ln { gap: 4px; font-size: 14px; } .gt .ln b { font-size: 16px; } }

/* History: the title count per club */
.cups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.cup { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; color: var(--ink); text-decoration: none !important;
    background: var(--cream); border: 1px solid var(--rule); border-left: 6px solid var(--c); border-radius: 0 4px 4px 0; }
.cup:hover { background: var(--row-hover); }
.cup .cn { display: block; font: 800 18px/1.1 var(--fd); font-stretch: 78%; }
.cup small { color: var(--muted); font-size: 10.5px; }
.cup > b { font: 800 36px/1 var(--fd); font-stretch: 70%; color: var(--count); }
.cup.none > b { color: var(--muted); }
.cup.none .tlogo { opacity: .7; }

/* Season: the champion's banner (team banner markup); home: the champions card */
.champbar a.crestwrap { text-decoration: none; }
.champ { background: linear-gradient(180deg, #f2c14e22, var(--paper) 70%); }
.moves { columns: 2 300px; }
.moves li { break-inside: avoid; }

/* Picks: the kibble wallet in plum, the one place that color lives (with the slip and tickets) */
.kibstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 16px; padding: 10px 16px; color: #fbeef3;
    background: linear-gradient(#91496b, var(--plum)); border: 1px solid #4d1f36; border-radius: 6px; box-shadow: inset 0 1px #ffffff2e, inset 0 -3px #0003; }
.kibstrip small { display: block; color: #e8c3d4; font: 700 10px/1.4 var(--fd); font-stretch: 85%; letter-spacing: .5px; text-transform: uppercase; }
.kibstrip .kbal { padding-right: 22px; border-right: 1px solid #ffffff38; }
.kibstrip .kbal .kib { font-size: 42px; color: #fff; text-shadow: 0 2px 0 #4d1f36; }
.kibstrip .kst b { font: 800 22px/1 var(--fd); font-stretch: 75%; }
.kibstrip .kst i { font-style: normal; font-size: 14px; color: #e8c3d4; }
.kibstrip button.favbtn { margin-left: auto; }
.kib { font: 800 30px/1 var(--fd); font-stretch: 72%; color: var(--plum-ink); }
.pickmsg { margin: -6px 0 14px; padding: 6px 12px; background: var(--cream); border-left: 4px solid var(--plum); border-radius: 0 4px 4px 0; }
.pknext { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.pkhead a { font-weight: 700; }
.pkrow { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.pkrow:last-child { border-bottom: 0; }
.pkhist { margin-top: 12px; }
.pkhist summary { cursor: pointer; color: var(--link); font-weight: 700; }
ul.tickets { list-style: none; margin: 4px 0; padding: 0; }
ul.tickets li { padding: 4px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.myteam .pv-side { margin-bottom: 6px; }

/* Guide: every abbreviation on a key cap */
.welcome ol { margin: 6px 0; padding-left: 22px; }
.welcome li { margin: 3px 0; }
.guide p, .guide li { line-height: 1.55; }
.gloss { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; align-items: baseline; margin: 6px 0; }
.gloss dt { justify-self: start; min-width: 2.4em; padding: 1px 7px; text-align: center; color: var(--ink); font: 800 12px/1.5 var(--fd); font-stretch: 85%;
    background: linear-gradient(var(--btn-hi), var(--cream)); border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 4px; }
.gloss dd { margin: 0; }
.ybncard > h2 { background: linear-gradient(90deg, var(--bar), var(--bar-2)); }

/* ---- playoff bracket (js/bracket.js): semis on the left, the Yarn Series on the right ---- */
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 22px; align-items: center; margin: 10px 0; }
.bk-semis { display: grid; gap: 12px; position: relative; }
.bk-box { border: 1px solid var(--rule); border-radius: 6px; background: var(--cream); padding: 0 8px 8px; position: relative; }
.bk-box h4 { margin: 0 -8px 8px; padding: 5px 8px; background: var(--bar); color: var(--on-bar); border-radius: 5px 5px 0 0;
    font: 800 13px/1.2 var(--fd); font-stretch: 85%; letter-spacing: .4px; text-transform: uppercase; }
.bk-box h4 small { color: var(--gold); font-size: 11px; margin-left: 4px; }
.bk-semis .bk-box::after { content: ""; position: absolute; right: -23px; top: 50%; width: 22px; border-top: 2px solid var(--rule); }
.bk-final { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.bk-t { display: flex; align-items: center; gap: 7px; width: 100%; margin: 4px 0 0; padding: 6px 9px; box-sizing: border-box;
    background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-left: 6px solid var(--c); border-radius: 4px;
    font: 700 15px/1.2 var(--fb); text-align: left; }
button.bk-t { cursor: pointer; }
button.bk-t:hover { background: var(--row-hover); }
.bk-t.on { outline: 3px solid var(--gold); outline-offset: -1px; }
button.bk-t.on, button.bk-t.on:hover { background: var(--gold); color: #2a1f00; }
.bk-t.out { opacity: .55; }
.bk-t.out .bk-n { text-decoration: line-through; }
.bk-seed { min-width: 1.4em; color: var(--muted); font: 800 13px/1 var(--fd); }
button.bk-t.on .bk-seed { color: #2a1f00; }
.bk-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-w { font: 800 18px/1 var(--fd); color: var(--count); font-variant-numeric: tabular-nums; }
.bk-wait { margin: 8px 0 4px; }
.bk-len { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.bk-len small { color: var(--muted); font: 700 11px/1 var(--fd); text-transform: uppercase; letter-spacing: .4px; }
.bk-len button.chipbtn { min-width: 2.4em; }
.bk-champ { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.bk-go { margin: 12px 0 4px; }
button.slip-go[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.bk-moved { padding: 6px 10px; background: var(--alert-bg); border: 1px solid var(--alert-line); color: var(--alert-ink); border-radius: 4px; }
ul.bk-picks { list-style: none; margin: 8px 0; padding: 0; border-top: 1px solid var(--rule); }
ul.bk-picks li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--rule); }
.bk-l { flex: 0 0 9.5em; color: var(--muted); font-size: 12px; }
.bk-v { flex: 1; display: flex; align-items: center; gap: 6px; font-weight: 700; }
ul.bk-picks li.bust .bk-v { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red); opacity: .65; }
.bk-tag { font: 800 12px/1 var(--fd); letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.bk-tag.ok { color: var(--win); font-size: 15px; }
.bk-tag.bust { color: var(--red); }
.bk-sum { margin: 6px 0; }
@media (max-width: 600px) {
    .bk-grid { grid-template-columns: 1fr; }
    .bk-semis .bk-box::after { display: none; }
    .bk-l { flex-basis: 7.5em; }
}

/* ---- Team trophy room (team page Trophies tab, js/trophies.js) ----
   Art slots show an inline SVG drawing; Codex art (art/trophy-v1/) sits on top when it exists.
   Backdrops (shelf, plaques) layer the image over --tro-fb, so a missing file shows the CSS. */
.tro-art { position: relative; display: inline-block; flex: none; }
.tro-art > svg, .tro-art > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tro-art.has-img > svg { visibility: hidden; }
.tro-shelf { --tro-fb: linear-gradient(transparent calc(100% - 18px), #6b4423 calc(100% - 18px), #8a5a30 calc(100% - 12px), #4a2e16 100%);
    background: var(--tro-fb); background-size: 100% 100%; background-repeat: no-repeat;
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: flex-end; padding: 8px 10px 22px; border-radius: 4px; }
.tro-shelf[data-art] { padding-bottom: 30px; background-size: auto 120px, 100% 100%; background-repeat: repeat-x, no-repeat; background-position: left bottom; }
.tro-cup { margin: 0; width: 132px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tro-cup figcaption { display: flex; flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.35; margin-top: 2px; }
.tro-cup figcaption b { font: 800 16px/1.1 var(--fd); font-stretch: 80%; }
.tro-cup.none .tro-art { opacity: .6; }
.tro-pens { display: flex; flex-wrap: wrap; gap: 8px; }
.tro-pen { position: relative; display: flex; flex-direction: column; justify-content: center; width: 132px; height: 50px; padding: 0 44px 0 10px;
    background: var(--tc1); color: var(--tink) !important; text-decoration: none !important; border-left: 5px solid var(--tacc);
    clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tro-pen b { font: 800 16px/1 var(--fd); font-stretch: 78%; }
.tro-pen span { font-size: 10px; line-height: 1.1; color: var(--tdim); white-space: nowrap; }
.tro-pens > a { filter: drop-shadow(0 0 1px var(--muted)); }
.tro-pens > a:hover { filter: drop-shadow(0 0 1px var(--muted)) brightness(1.15); }
.tro-plaque { --tro-fb: linear-gradient(135deg, #8a5a2b, #d8a465 38%, #a8753e 62%, #6e4420);
    background: var(--tro-fb); background-size: 100% 100%; color: #2a1708; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
    padding: 18px; border-radius: 6px; border: 6px solid #4a2e16; box-shadow: inset 0 0 0 2px #f4d49a, inset 0 0 0 5px #6e4420; }
.tro-plaque.heel { --tro-fb: linear-gradient(135deg, #3a3a3e, #a7a9b0 38%, #6c6e75 62%, #26262a); border-color: #1a1a1a; box-shadow: inset 0 0 0 2px #d4202a, inset 0 0 0 5px #26262a; color: #121214; }
.tro-plaque a { color: inherit; }
.tp-fig { border-radius: 50%; overflow: hidden; width: 96px; height: 96px; background: #00000026; box-shadow: 0 0 0 3px #4a2e16; }
.tro-plaque.heel .tp-fig { box-shadow: 0 0 0 3px #d4202a; }
.tp-txt small { display: block; font: 700 11px/1.2 var(--fd); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tp-txt h3 { margin: 2px 0 4px; font: 800 26px/1 var(--fd); font-stretch: 78%; }
.tp-txt p { margin: 0 0 6px; font-size: 12px; line-height: 1.45; }
.tp-story { font-style: italic; }
.tp-sub, .tp-line { font-weight: 700; }
.tro-awards { display: grid; gap: 10px; }
.tro-aw { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.tro-aw:last-child { border-bottom: 0; padding-bottom: 0; }
.tro-aw h4 { margin: 0; font: 800 17px/1.1 var(--fd); font-stretch: 80%; color: var(--navy); }
.tro-aw h4 b { color: var(--count); margin-left: 4px; }
.tro-aw small { display: block; color: var(--muted); font-size: 10.5px; }
.tro-aw p { margin: 3px 0 0; font-size: 12px; }
.tro-hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tro-hp { --tro-fb: linear-gradient(135deg, #5b4210, #b98d2e 45%, #7a5c12);
    background: var(--tro-fb); background-size: 100% 100%; color: #fbe7a6; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 5px; border: 3px solid #3d2c08; }
.tro-hp a { color: #fff6d8; }
.tro-hp small { display: block; font-size: 10.5px; opacity: .9; }
.tro-hp .portrait { border-radius: 50%; background: #00000033; flex: none; }
.tro-balls { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tro-balls li { display: flex; gap: 8px; align-items: center; font-size: 12px; }
@media (max-width: 600px) {
    .tro-cup { width: calc(50% - 7px); }
    .tro-plaque { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 14px; }
}
/* Codex art carries its own frame: drop the CSS border, pad inside the art's border band. */
.tro-plaque[data-art] { border: 0; box-shadow: none; padding: 7% 8%; }
.tro-hp[data-art] { border: 0; padding: 12px 16px; }
@media (max-width: 600px) { .tro-plaque[data-art] { padding: 34px 26px; } }
