/* GENERATED by tools/title-race/build.mjs: tools/title-race/css/10-page.css, then 20-board.css.
   Do not edit this file. Edit the parts, then run: node tools/title-race/build.mjs --css */

/* ---------- 10-page.css ---------- */
:root{--g-bg:#1E88E5;--g-on-white:#0D47A1;--g-accent:#1E88E5;--g-on-accent:#0E0D12;--g-ink:#0E0D12;--g-ink-soft:rgba(14,13,18,0.75);--g-fill:#081A33;--g-tint:rgba(6,40,92,0.16);--g-line:rgba(30,136,229,0.6);--g-shadow:rgba(6,40,92,0.26);--g-shadow-deep:rgba(6,40,92,0.44)}
/* ==========================================================================
   Title Race (games/title-race/), part 1 of 2: the page and the light side.
   The rule above is switch T4: the page colour and the text on every white button, chip and pill
   (--g-on-white). That navy is written only there and on the icon tile below.
   Light style: on the blue, white text, white outlined cards, white panels at 0.14, white main
   buttons with navy text, white outline buttons and chips, white bars. The league table
   (part 2, 20-board.css) is the one dark window. Colour only in the two small ink chips of the
   crowd card; the share card and the dialog sit on a dimmed backdrop and stay dark.
   Class prefix tr- (the board's is trb-).
   ========================================================================== */
[data-pix-game="tr"]{--pixa-accent:#1E88E5;--pixa-accent-hi:#4AA3F0;--pixa-accent-soft:rgba(30,136,229,0.14);--pixa-accent-ring:rgba(30,136,229,0.28)}

/* ---------- the kit, overridden for this page only (each rule beats it by specificity) ---------- */
#pxg-hero.tr-hero:not([data-mode=intro]){overflow:visible;overflow-x:clip}
#pxg-hero.tr-hero[data-mode=intro] .pxg-row{align-items:flex-start}
#pxg-hero.tr-hero .pxg-tablet{max-width:440px}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-tablet{max-width:min(100%,600px)}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-row{grid-template-areas:"brand" "strip" "honesty" "device" "game";padding-top:8px}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-kicker{color:#5DB0F5}
@media (min-width:760px){
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-row{grid-template-columns:minmax(0,1fr) minmax(0,440px);grid-template-areas:"brand brand" "honesty device" "game device";grid-template-rows:auto auto 1fr;column-gap:24px;row-gap:18px;padding-bottom:14px}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-device{position:sticky;top:16px;align-self:start}
#pxg-hero.tr-hero:not([data-mode=intro]) .tr-strip{display:none}
}
.tr-strip{grid-area:strip;display:none}
.tr-strip[hidden]{display:none!important}
.tr-honesty{grid-area:honesty;margin:0;font-weight:500;font-size:14px;line-height:1.45;color:rgba(255,255,255,0.92)}
/* one line under the board, from 760 px (on phones the sticky strip says it) */
.tr-under{max-width:1280px;margin:0 auto;padding:0 32px 32px;font-weight:500;font-size:13px;line-height:1.4;text-align:right;color:rgba(255,255,255,0.92)}
#pxg-hero[data-mode=intro] .tr-under,.tr-under[hidden]{display:none}
@media (min-width:900px){
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-row{grid-template-columns:minmax(0,1fr) minmax(0,600px);column-gap:40px}
}

/* the kit's toast is placed at left:50%, so it is never wider than half the screen: this page's toasts are whole sentences */
[data-pix-game="tr"] .pxg-toast{width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;border-radius:24px;text-align:center;line-height:1.3}

/* ---------- the icon tile: a white mark on the navy ---------- */
.tr-icon{background:#0D47A1;border-radius:28px;padding:18px;box-sizing:border-box;object-fit:contain}
#pxg-hero:not([data-mode=intro]) .tr-icon{border-radius:13px;padding:9px}

/* ---------- intro copy ---------- */
.tr-pitch{margin:0;font-weight:500;font-size:22px;line-height:1.4;max-width:520px}
.tr-meta{display:flex;flex-wrap:wrap;gap:8px;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:17px;letter-spacing:1.6px;text-transform:uppercase}
.tr-go{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px}
.tr-go span{font-weight:600;font-size:16px}
a.tr-playnow{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:64px;padding:16px 44px;border-radius:100px;background:#FFFFFF;color:var(--g-on-white);font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:26px;letter-spacing:1px;line-height:1;text-transform:uppercase;text-decoration:none}
a.tr-playnow:hover{background:rgba(255,255,255,0.88);color:var(--g-on-white)}
.tr-proof{margin:0;font-weight:600;font-size:16px;line-height:1.45;color:rgba(255,255,255,0.92);max-width:500px}
a.tr-playnow:focus-visible,.tr-chip:focus-visible{outline:3px solid var(--g-ink);outline-offset:2px}

/* ---------- the left column: cards on the blue ---------- */
.tr-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.pxg-card.tr-card{padding:18px 20px;gap:14px}
.tr-lab{margin:0;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:14px;letter-spacing:2px;line-height:1.2;text-transform:uppercase;color:#FFFFFF}
.tr-lab[tabindex]:focus{outline:none}
.tr-sc{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}
.tr-big{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:104px;line-height:0.8;letter-spacing:-1px;white-space:nowrap;font-variant-numeric:tabular-nums}
.tr-big small{font-size:34px;letter-spacing:1px;margin-left:6px}
.tr-when{margin:0 0 2px;font-weight:600;font-size:15px;line-height:1.4;color:rgba(255,255,255,0.92);min-width:0}
.tr-when b{display:block;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:19px;letter-spacing:1.4px;color:#FFFFFF}
.tr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tr-stat{background:rgba(255,255,255,0.14);border-radius:12px;padding:10px 8px 8px;text-align:center;min-width:0}
.tr-stat b{display:block;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:30px;line-height:1}
.tr-stat b small{font-size:16px;opacity:.9}
.tr-stat>span{display:block;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:12px;letter-spacing:1.3px;margin-top:3px}
.tr-stat em{display:block;font-style:normal;font-weight:600;font-size:11.5px;color:rgba(255,255,255,0.88)}

/* how that stacks up: white bars on a white 0.14 track, no colour */
.tr-bars{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(48px,auto);gap:9px 12px;align-items:center}
.tr-bar{display:contents}
.tr-bar[hidden]{display:none}
.tr-bar-l{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:14px;letter-spacing:1.3px;white-space:nowrap}
.tr-bar.is-me .tr-bar-l{font-weight:900}
.tr-bar i{display:block;height:14px;border-radius:7px;background:rgba(255,255,255,0.14);position:relative;overflow:hidden}
.tr-bar u{position:absolute;top:0;bottom:0;left:0;width:0;border-radius:7px;background:rgba(255,255,255,0.6);text-decoration:none;transition:width .45s cubic-bezier(.2,.7,.2,1)}
.tr-bar.is-me u{background:#FFFFFF}
.tr-bar.is-rng u{background:repeating-linear-gradient(135deg,rgba(255,255,255,0.6) 0 5px,rgba(255,255,255,0.25) 5px 10px)}
.tr-bar>b{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:19px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.tr-note{margin:0;font-weight:500;font-size:14px;line-height:1.5;color:rgba(255,255,255,0.92)}

/* buttons and START FROM */
.tr-acts{display:flex;flex-direction:column;gap:14px}
.pxg-btns.tr-acts{flex-direction:row}
.tr-from{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tr-chip{border:2px solid #FFFFFF;background:transparent;color:#FFFFFF;border-radius:100px;padding:6px 14px;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:14px;letter-spacing:1.3px;line-height:1.2;cursor:pointer}
.tr-chip:hover{background:rgba(255,255,255,0.14)}
.tr-chip[aria-pressed=true]{background:#FFFFFF;color:var(--g-on-white)}

/* what the August crowd called: three lines, each led by a small ink chip */
.tr-facts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.tr-facts li{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,0.14);border-radius:12px;padding:10px 12px;font-weight:500;font-size:15px;line-height:1.4}
.tr-facts li b{font-weight:700}
.tr-tag{flex:none;margin-top:1px;background:var(--g-ink);border-radius:100px;padding:3px 9px;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:12px;letter-spacing:1.2px;line-height:1.3;white-space:nowrap}
.tr-tag.is-y{color:#22C55E}
.tr-tag.is-n{color:#F87171}

/* the account card */
.tr-h{font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:26px;letter-spacing:1px;line-height:1}
.tr-acct:empty{display:none}

/* ---------- the share card (dark, on the dimmed backdrop) and SAVE IMAGE ---------- */
.tr-share{background:#050505;border:1px solid rgba(255,255,255,0.12);border-radius:20px;padding:18px 18px 14px;color:#FFFFFF;max-width:100%;font-family:'Barlow Condensed',sans-serif}
.tr-sh-t{font-weight:900;font-size:26px;letter-spacing:3px;line-height:1.1}
.tr-sh-s{margin-top:2px;font-weight:800;font-size:13px;letter-spacing:2px;color:#A1A1AA}
.tr-sh-p{margin:10px 0;font-weight:900;font-size:14.5px;letter-spacing:1px;line-height:1.2;color:#22C55E}
.tr-sh-l{list-style:none;margin:0;padding:0;columns:2;column-gap:14px}
.tr-sh-l li{display:flex;align-items:center;gap:6px;height:25px;margin-bottom:2px;padding-left:6px;border-left:3px solid rgba(255,255,255,0.18);font-weight:700;font-size:13px;letter-spacing:1px;white-space:nowrap;break-inside:avoid}
.tr-sh-l li.is-top{border-left-color:#5DB0F5}
.tr-sh-l li.is-drop{border-left-color:#DC2626}
.tr-sh-l li span{flex:none;width:15px;text-align:right;font-weight:900;color:#A1A1AA}
.tr-sh-l li i{flex:none;width:18px;height:18px;background-image:var(--tr-shirts);background-repeat:no-repeat;background-size:2000% 100%;background-position:calc(var(--cell) * 100% / 19) 0}
.tr-sh-l li i.is-none{background:#3A3A44;border-radius:50%}
.tr-sh-l li b{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tr-sh-f{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:4px 8px;margin-top:10px}
.tr-sh-f em{font-style:normal;font-weight:800;font-size:11.5px;letter-spacing:.3px;line-height:1.3;color:#F5A623;white-space:nowrap}
.tr-sh-f span{margin-left:auto;text-align:right;white-space:nowrap}
.tr-sh-f i{display:block;font-family:Barlow,system-ui,sans-serif;font-style:italic;font-weight:500;font-size:12px;line-height:1.3;color:#D4D4D8}
.tr-sh-f b{display:block;font-weight:900;font-size:14px;letter-spacing:1.2px;line-height:1.3}
.pxg-ov .tr-save{width:100%}
.pxg-ov .tr-save:disabled{opacity:.7}
@media (max-width:371px){
.tr-share{padding:16px 14px 12px}
.tr-sh-t{font-size:24px}
.tr-sh-s{font-size:11px;letter-spacing:1.2px}
.tr-sh-p{font-size:13px;letter-spacing:.6px}
.tr-sh-l{column-gap:10px}
.tr-sh-l li{font-size:11px;letter-spacing:.3px;gap:5px}
}

/* ---------- short laptop screens: Play Now and LOCK IN MY CALL stay above the fold ---------- */
@media (min-width:760px) and (max-height:830px){
#pxg-hero.tr-hero .pxn-in{height:72px}
#pxg-hero.tr-hero[data-mode=intro] .pxg-title{font-size:112px}
#pxg-hero.tr-hero[data-mode=intro] .pxg-icon{width:92px;height:92px;border-radius:22px;padding:14px}
#pxg-hero.tr-hero[data-mode=intro] .pxg-left,#pxg-hero.tr-hero[data-mode=intro] .pxg-brand,#pxg-hero.tr-hero[data-mode=intro] .pxg-intro-copy{gap:18px}
#pxg-hero.tr-hero[data-mode=intro] .tr-pitch{font-size:20px}
#pxg-hero.tr-hero[data-mode=intro] .pxg-row{padding-top:16px}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-row{row-gap:14px}
.tr-col{gap:14px}
.pxg-card.tr-card{padding:14px 16px;gap:10px}
.tr-big{font-size:84px}
.tr-big small{font-size:28px}
.tr-acts{gap:10px}
}

/* the kit's intro row wraps under 1032 px (520 + 400 + the gap + the gutters): the copy needs no 96 px foot above the board then */
@media (min-width:760px) and (max-width:1031.98px){#pxg-hero.tr-hero[data-mode=intro] .pxg-left{padding-bottom:8px}}

/* ---------- 760 to 899: two columns, a 440 px board; the panels 2 x 2, the labels above their bars ---------- */
@media (max-width:899.98px){
.tr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.tr-bars{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}
.tr-bar-l{grid-column:1/-1;margin-top:5px;white-space:normal}
.tr-bar:first-child .tr-bar-l{margin-top:0}
}

/* ---------- phones: stacked (brand, strip, honesty line, board, cards) ---------- */
@media (max-width:759.98px){
#pxg-hero.tr-hero[data-mode=intro] .pxg-row{padding:12px 16px 0;gap:22px}
#pxg-hero.tr-hero[data-mode=intro] .pxg-left{flex-basis:100%;padding-bottom:0;gap:14px}
#pxg-hero.tr-hero[data-mode=intro] .pxg-brand,#pxg-hero.tr-hero[data-mode=intro] .pxg-intro-copy{gap:14px}
#pxg-hero.tr-hero[data-mode=intro] .pxg-icon{width:72px;height:72px;border-radius:18px;padding:11px}
#pxg-hero.tr-hero[data-mode=intro] h1.pxg-title{font-size:clamp(64px,23.5vw,88px)!important}
#pxg-hero.tr-hero[data-mode=intro] .pxg-device{flex-basis:100%;padding-bottom:36px}
.tr-pitch{font-size:18px}
.tr-meta{font-size:14px;letter-spacing:1.2px;gap:6px}
a.tr-playnow{width:100%;min-height:56px;padding:12px 24px;font-size:22px}
.tr-go span{width:100%;text-align:center;font-size:14.5px}
.tr-proof{font-size:14.5px}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-row{padding:4px 16px 40px;gap:12px}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-kicker,.tr-under{display:none}
#pxg-hero.tr-hero:not([data-mode=intro]) .pxg-tablet{max-width:none}
.tr-honesty{font-size:13px;line-height:1.4}
#pxg-hero.tr-hero:not([data-mode=intro]) .tr-strip{position:sticky;top:8px;z-index:20;display:flex;align-items:center;gap:10px;background:var(--g-bg);border:2px solid #FFFFFF;border-radius:16px;padding:8px 8px 8px 12px;box-shadow:0 8px 20px var(--g-shadow-deep)}
.tr-s-pts{flex:none;min-width:0;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:30px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.tr-s-pts small{font-size:15px;margin-left:3px}
.tr-s-lines{flex:1;min-width:0;display:flex;flex-direction:column;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:13px;letter-spacing:.6px;line-height:1.12}
/* two lines ("PRACTICE TABLE", "3 EXACT · AFTER 10 GAMES") from 375 px; where the second one breaks (320 px, or "10 TO 11 GAMES")
   the three lines still fit inside the 44 px button's height, so the strip is 64 px either way */
.tr-s-lines{overflow:hidden}
.tr-s-lines>span:first-child,.tr-s-lines [data-s=ex]{white-space:nowrap}
/* "3 EXACT · AFTER 10 GAMES": when it does not fit on one line it breaks at the dot, and the dot (in the second part's left padding) is cut off with the line start */
.tr-s-lines [data-s=line]{display:flex;flex-wrap:wrap;margin-left:-.8em}
.tr-s-lines [data-s=line]>span{position:relative;padding-left:.8em}
.tr-s-lines [data-s=line] i{position:absolute;left:0;width:.8em;text-align:center;font-style:normal}
.tr-strip .pxg-btn.tr-s-btn{flex:none;min-height:44px;padding:10px 12px;font-size:16px}
.tr-col{gap:12px}
.pxg-card.tr-card{padding:14px;gap:12px}
.tr-big{font-size:84px}
.tr-big small{font-size:28px}
.tr-chip{padding:9px 14px}
.tr-facts li{font-size:14.5px}
}
@media (max-width:359.98px){
.tr-s-lines{font-size:11.5px;letter-spacing:.6px}
.tr-s-pts{font-size:26px}
.tr-s-pts small{font-size:13px}
.tr-strip .pxg-btn.tr-s-btn{padding:10px 12px;font-size:15px}
#pxg-hero.tr-hero:not([data-mode=intro]) .tr-strip{gap:8px;padding-left:10px}
.tr-facts li{flex-direction:column;gap:6px}
}
@media (prefers-reduced-motion:reduce){.tr-bar u{transition:none}}
/* forced colours (Windows High Contrast): a pressed chip, the white buttons and the yardsticks keep a shape of their own,
   and the score card's label sits above the big number's text backplate */
@media (forced-colors:active){
.tr-chip[aria-pressed=true]{forced-color-adjust:none;background:Highlight;color:HighlightText;border-color:Highlight}
#pxg-hero.tr-hero .pxg-btn,.tr-share .pxg-btn{border:2px solid ButtonText}
.tr-bar i{border:1px solid CanvasText}
.tr-bar u,.tr-bar.is-me u{forced-color-adjust:none;background:CanvasText}
.tr-bar.is-rng u{forced-color-adjust:none;background:repeating-linear-gradient(135deg,CanvasText 0 5px,transparent 5px 10px)}
.tr-score .tr-lab{position:relative;z-index:1}
}

/* ---------- 20-board.css ---------- */
/* ==========================================================================
   Title Race: the board (B1). Everything inside #pxg-tablet.trb, drawn by scripts/title-race-board.js.
   The one dark window on the page: white or #A1A1AA text, blue for the top band, red for relegation,
   green only for an exact place, points and SEASON LIVE. Classes are trb-; there are no keyframes.
   Rows are positioned absolutely and move with transform only (--i the place, --z the zone gaps above it).
   --trb-rh is a row's pitch and --trb-gap a zone line's height: set per view and size at the foot of this file.
   ========================================================================== */
.trb{--trb-rh:25px;--trb-gap:6px;--trb-n:20;gap:12px;font-family:Barlow,system-ui,sans-serif}
.trb *,.trb *::before,.trb *::after{box-sizing:border-box}
.trb [hidden]{display:none!important}
.trb-msg{margin:auto 0;padding:32px 8px;text-align:center;font-weight:500;font-size:16px;line-height:1.5;color:#FFFFFF}
.trb-msg a,.trb-msg a:hover{color:#FFFFFF;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.trb-msg a:focus-visible{outline:2px solid #FFFFFF;outline-offset:2px}

/* ---------- head: title, PRACTICE TABLE (from 760 px), SEASON LIVE ---------- */
.trb-head{display:flex;align-items:center;gap:8px;min-height:26px}
.trb-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:18px;letter-spacing:2px;line-height:1.1;text-transform:uppercase}
.trb-chip,.trb-live{flex:none;display:inline-flex;align-items:center;gap:6px;border:1.5px solid;border-radius:100px;padding:3px 10px;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:13px;letter-spacing:1.6px;line-height:1.25;white-space:nowrap;text-transform:uppercase}
.trb-chip{display:none;border-color:rgba(255,255,255,.45);color:#FFFFFF}
.trb-live{border-color:#22C55E;color:#22C55E}
.trb-live i{width:7px;height:7px;border-radius:50%;background:#22C55E}

/* ---------- MY CALL | LIVE TABLE ---------- */
.trb-tog{display:flex;background:#242424;border-radius:100px;padding:3px}
.trb-tog button{flex:1;border:0;border-radius:100px;background:transparent;color:#A1A1AA;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:15px;letter-spacing:1.5px;line-height:1.2;text-transform:uppercase;padding:7px 10px;cursor:pointer}
.trb-tog button[aria-pressed=true]{background:#1E88E5;color:#FFFFFF}
.trb-tog button:focus-visible,.trb-pp:focus-visible,.trb-track:focus-visible{outline:2px solid #FFFFFF;outline-offset:2px}
/* S2: a third state, MY AUGUST TABLE, only for a member with a table of their own from August */
.trb-tog.is-3 button{padding:7px 6px;letter-spacing:1px}
.trb-tog.is-3 button[data-view=august]{flex:1.45}
@media (max-width:759.98px){.trb-tog.is-3 button{font-size:13px;letter-spacing:.4px;padding:7px 4px}}

/* ---------- sub-line, hint, column heads ---------- */
.trb-sub,.trb-wk{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:13px;letter-spacing:1.6px;line-height:1.2;color:#A1A1AA;text-transform:uppercase}
.trb-sub strong,.trb-wk b{flex:none;color:#FFFFFF;font-weight:900;white-space:nowrap}
.trb-wk{font-size:12px;margin:2px 0 -6px}
.trb-hint{margin:0;display:grid;font-weight:500;font-size:13.5px;line-height:1.4;color:#A1A1AA}
.trb-hint span{grid-area:1/1}
.trb-hint.is-own span:first-child,.trb-hint:not(.is-own) span:last-child{visibility:hidden}
.trb-hint.is-own span:last-child{color:#FFFFFF}
.trb-cols{display:grid;align-items:center;gap:0 8px;padding:0 8px 4px;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:11px;letter-spacing:1.4px;line-height:1.2;color:#A1A1AA;text-transform:uppercase;white-space:nowrap}
.trb-cols span{text-align:center}
.trb-cols .trb-c-l{text-align:left}
.trb-cols i{font-style:normal}

/* ---------- the rows ---------- */
.trb-list{position:relative;height:calc(var(--trb-n) * var(--trb-rh) + 2 * var(--trb-gap))}
.trb-r{position:absolute;left:0;right:0;top:0;height:calc(var(--trb-rh) - 2px);display:grid;align-items:center;gap:0 8px;padding:0 8px;border-radius:6px;
  transform:translateY(calc(var(--i,0) * var(--trb-rh) + var(--z,0) * var(--trb-gap)));transition:transform .45s cubic-bezier(.2,.7,.2,1),background-color .2s;
  font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:15px;letter-spacing:1.1px;line-height:1;text-transform:uppercase;white-space:nowrap;color:#FFFFFF}
.trb-snap .trb-r,.trb-still .trb-r,.trb-still .trb-bar{transition:none}
.trb-r.is-top{background:rgba(30,136,229,.16)}
.trb-r.is-drop{background:rgba(220,38,38,.14)}
.trb-p{color:#A1A1AA;font-weight:900;text-align:center}
.trb-r.is-top .trb-p{color:#5DB0F5}
.trb-r.is-drop .trb-p{color:#F87171}
.trb-s{justify-self:center;width:calc(var(--trb-rh) - 3px);height:calc(var(--trb-rh) - 3px);max-width:26px;max-height:26px;background-image:var(--trb-sprite);background-repeat:no-repeat;background-size:2000% 100%;background-position:calc(var(--cell,0) * 100% / 19) 0}
.trb-s.is-none{background:#3A3A44;border-radius:50%}
.trb-n{min-width:0;overflow:hidden;text-overflow:ellipsis}
.trb-pl,.trb-pt,.trb-o,.trb-e{text-align:center;font-variant-numeric:tabular-nums}
.trb-pl{color:#A1A1AA}
.trb-pt{font-weight:900}
.trb-o{color:#A1A1AA;font-size:13px;letter-spacing:.8px}
.trb-e{font-weight:900;color:#A1A1AA}
.trb-e.is-plus{color:#22C55E}
.trb-mv{display:grid;place-items:center;line-height:0}
.trb-mv.is-up{color:#FFFFFF}
.trb-mv.is-down{color:#F87171}
/* the spot pill: a tick for exact, else an arrow (up = higher in the real table than called) and the places out */
.trb-pill{justify-self:center;min-width:40px;height:18px;display:inline-flex;align-items:center;justify-content:center;gap:2px;border:1.5px solid rgba(255,255,255,.3);border-radius:100px;color:#FFFFFF;font-weight:900;font-size:12px;letter-spacing:.5px;line-height:1}
.trb-pill.is-ok{border-color:#22C55E;color:#22C55E;background:rgba(34,197,94,.12)}
.trb-pill.is-far{border-color:rgba(248,113,113,.7);color:#F87171}
.trb-pill svg{flex:none}
/* zone lines: plain in the table, with their words in edit and result */
.trb-z{position:absolute;left:0;right:0;top:0;height:var(--trb-gap);transform:translateY(calc(var(--at,0) * var(--trb-rh) + var(--zb,0) * var(--trb-gap) - 1px));display:flex;align-items:center;gap:8px;pointer-events:none;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:10.5px;letter-spacing:1.6px;line-height:1;white-space:nowrap;text-transform:uppercase}
.trb-z::before,.trb-z::after{content:"";flex:1;height:1px}
.trb-z-top{color:#5DB0F5}
.trb-z-top::before,.trb-z-top::after{background:rgba(93,176,245,.5)}
.trb-z-drop{color:#F87171}
.trb-z-drop::before,.trb-z-drop::after{background:rgba(248,113,113,.5)}
.trb-z span:empty{display:none}
.trb-z:has(span:empty){gap:0}
.trb-probe{position:absolute;left:0;top:0;width:var(--trb-gap);height:var(--trb-rh);visibility:hidden;pointer-events:none}

/* ---------- column sets ---------- */
.trb[data-kind=table] :is(.trb-r,.trb-cols){grid-template-columns:22px 22px minmax(0,1fr) 12px 26px 30px}
.trb[data-kind=table] :is(.trb-h,.trb-o,.trb-pill,.trb-e){display:none}
.trb[data-kind=edit] :is(.trb-r,.trb-cols){grid-template-columns:16px 24px 26px minmax(0,1fr) 58px 46px 36px}
.trb[data-kind=edit] :is(.trb-mv,.trb-pl,.trb-pt){display:none}
.trb[data-kind=result] :is(.trb-r,.trb-cols){grid-template-columns:24px 26px minmax(0,1fr) 62px 46px 36px}
.trb[data-kind=result] :is(.trb-h,.trb-mv,.trb-pl,.trb-pt){display:none}

/* ---------- edit: one button fills each row; the handle sits above it and is the only place a finger drags ---------- */
.trb[data-kind=edit] .trb-r{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:pan-y}
.trb-rb{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:inherit;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.trb-rb:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px}
.trb-h{position:relative;z-index:2;display:grid;place-items:center;align-self:stretch;color:#8B8B95;cursor:grab;touch-action:none;-webkit-touch-callout:none}
@media (hover:hover){.trb[data-kind=edit] .trb-r:hover{background:rgba(255,255,255,.08)}}
.trb[data-kind=edit] .trb-r.is-sel{background:rgba(30,136,229,.42);box-shadow:inset 0 0 0 1.5px #5DB0F5}
.trb[data-kind=edit] .trb-r.is-drag{transition:none;z-index:5;background:#2D2D2D;box-shadow:0 10px 24px rgba(0,0,0,.6);cursor:grabbing}
.trb-busy,.trb-busy .trb-r{cursor:grabbing}

/* ---------- the scrubber and the footer ---------- */
.trb-scrub{display:flex;align-items:center;gap:8px}
.trb-pp{position:relative;flex:none;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#242424;color:#FFFFFF;display:grid;place-items:center;cursor:pointer}
.trb-pp:hover{background:#33333B}
.trb-track{flex:1;min-width:0;height:30px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(2px,1fr);gap:2px;align-items:end;border-radius:4px;cursor:pointer;touch-action:manipulation}
.trb-bar{display:block;height:var(--h,6px);min-height:6px;border-radius:3px;background:#3A3A44;transition:background-color .2s}
.trb-bar.is-past{background:#1E88E5}
.trb-bar.is-now{background:#FFFFFF}
.trb-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 10px;font-weight:500;font-size:12.5px;line-height:1.35;color:#A1A1AA}
.trb-foot b{color:#FFFFFF;font-weight:600}

/* ==========================================================================
   Sizes. The hero's data-mode is the kit's (intro | play | done); data-kind is the board's own.
   ========================================================================== */
/* before the script has drawn it, the intro's tablet already has its height */
#pxg-hero[data-mode=intro] .trb:not(.trb-on){min-height:calc(var(--trb-n) * var(--trb-rh) + 2 * var(--trb-gap) + 195px)}
#pxg-hero:not([data-mode=intro]) .trb[data-kind=edit]{--trb-gap:20px}
#pxg-hero:not([data-mode=intro]) .trb[data-kind=result]{--trb-gap:16px}

/* ---------- two columns: 760 px and wider ---------- */
@media (min-width:760px){
.trb-chip{display:inline-flex}
#pxg-hero:not([data-mode=intro]) .trb{--trb-rh:clamp(30px,calc((100vh - 300px) / 20),40px)}
@supports (height:100svh){#pxg-hero:not([data-mode=intro]) .trb{--trb-rh:clamp(30px,calc((100svh - 300px) / 20),40px)}}
#pxg-hero:not([data-mode=intro]) .trb:not([data-kind=edit]){--trb-rh:clamp(28px,calc((100vh - 370px) / 20),40px)}
@supports (height:100svh){#pxg-hero:not([data-mode=intro]) .trb:not([data-kind=edit]){--trb-rh:clamp(28px,calc((100svh - 370px) / 20),40px)}}
}
@media (min-width:760px) and (max-width:899.98px){
.trb-title{font-size:15px;letter-spacing:1.2px}
.trb-chip,.trb-live{font-size:11px;letter-spacing:1.2px;padding:3px 8px}
.trb[data-kind=edit] :is(.trb-r,.trb-cols){grid-template-columns:16px 22px 24px minmax(0,1fr) 44px 34px}
.trb[data-kind=result] :is(.trb-r,.trb-cols){grid-template-columns:22px 24px minmax(0,1fr) 44px 34px}
.trb:is([data-kind=edit],[data-kind=result]) :is(.trb-o,.trb-c-o){display:none}
}
/* short laptop screens: the intro keeps Play Now above the fold */
@media (min-width:760px) and (max-height:830px){
#pxg-hero[data-mode=intro] .trb{--trb-rh:20px;padding:18px;gap:9px}
#pxg-hero[data-mode=intro] .trb:not(.trb-on){min-height:calc(var(--trb-n) * var(--trb-rh) + 2 * var(--trb-gap) + 175px)}
#pxg-hero[data-mode=intro] .trb-r{font-size:13.5px}
}
/* ---------- the 600 px board: 900 px and wider. Its outer height stays inside the viewport less 32 px, and where the
   screen is tall enough the whole board is inside the first viewport: it starts 168 px down and carries about 248 px
   (edit, with its two-line hint) or 296 px (result) around its 20 rows, so the rows share the height less 440 / 490 px. ---------- */
@media (min-width:900px){
#pxg-hero:not([data-mode=intro]) .trb[data-kind=edit]{--trb-rh:clamp(24px,calc((100vh - 440px) / 20),31px)}
#pxg-hero:not([data-mode=intro]) .trb:not([data-kind=edit]){--trb-rh:clamp(21px,calc((100vh - 490px) / 20),30px);padding:18px 22px}
@supports (height:100svh){
#pxg-hero:not([data-mode=intro]) .trb[data-kind=edit]{--trb-rh:clamp(24px,calc((100svh - 440px) / 20),31px)}
#pxg-hero:not([data-mode=intro]) .trb:not([data-kind=edit]){--trb-rh:clamp(21px,calc((100svh - 490px) / 20),30px)}
}
}
@media (min-width:900px) and (max-height:800px){
#pxg-hero:not([data-mode=intro]) .trb:not([data-kind=edit]){padding:16px 22px;gap:10px}
}
/* the hint (and its "Now tap the place for ..." line) hides only where the board cannot fit with it: 1280 x 800 and
   1366 x 768 keep it (DESIGN-TR 9's lever is for a failed measurement only); 1280 x 720 and a laptop with its bars do not */
@media (min-width:900px) and (max-height:760px){
#pxg-hero:not([data-mode=intro]) .trb .trb-hint{display:none}
}
/* a laptop with its browser bars (about 650 px of viewport): the result board's chip and its practice footer are never
   both out of view, so whenever part of the board is on screen one of them is (DESIGN-TR 5.7 b) */
@media (min-width:900px) and (max-height:700px){
#pxg-hero:not([data-mode=intro]) .trb:not([data-kind=edit]){padding:12px 22px;gap:7px}
}

/* ---------- phones: under 760 px ---------- */
@media (max-width:759.98px){
#pxg-hero.tr-hero .trb{--trb-rh:24px;padding:14px;border-radius:22px;gap:10px}
#pxg-hero[data-mode=intro] .trb:not(.trb-on){min-height:calc(var(--trb-n) * var(--trb-rh) + 2 * var(--trb-gap) + 165px)}
#pxg-hero.tr-hero:not([data-mode=intro]) .trb{--trb-rh:30px}
#pxg-hero.tr-hero:not([data-mode=intro]) .trb[data-kind=edit]{--trb-rh:44px}
.trb-title{font-size:16px;letter-spacing:1.4px}
.trb-tail{display:none}  /* the August title on phones: YOUR AUGUST TABLE, without its season */
.trb-live{font-size:11.5px;padding:3px 8px}
.trb-sub{font-size:11.5px;letter-spacing:1.1px}
.trb-hint{font-size:13px}
.trb[data-kind=edit] :is(.trb-r,.trb-cols){grid-template-columns:28px 20px 26px minmax(0,1fr) 44px 30px}
.trb[data-kind=edit] :is(.trb-o,.trb-c-o){display:none}
.trb[data-kind=result] :is(.trb-r,.trb-cols){grid-template-columns:20px 24px minmax(0,1fr) 34px 44px 30px;gap:0 6px}
.trb[data-kind=result] .trb-o{font-size:12px;letter-spacing:.4px}
.trb-cols i{display:none}
/* the handle's hit area is 44 x 44 */
.trb-h{align-self:center;justify-self:center;width:44px;height:44px}
.trb-h svg{width:16px;height:16px}
.trb-pp::before{content:"";position:absolute;top:-7px;right:-7px;bottom:-7px;left:-7px}
}
@media (max-width:359.98px){
#pxg-hero.tr-hero .trb{padding:12px}
.trb-title{font-size:14.5px;letter-spacing:1px}
.trb-live{font-size:10.5px;letter-spacing:1.2px;padding:3px 7px}
.trb-sub{font-size:10.5px;letter-spacing:.8px}
.trb-r{letter-spacing:.6px}
.trb[data-kind=edit] :is(.trb-r,.trb-cols){grid-template-columns:28px 20px 26px minmax(0,1fr) 44px}
.trb[data-kind=edit] :is(.trb-e,.trb-c-e){display:none}
.trb[data-kind=result] :is(.trb-r,.trb-cols){grid-template-columns:20px 24px minmax(0,1fr) 44px 30px}
.trb[data-kind=result] :is(.trb-o,.trb-c-o){display:none}
}
@media (prefers-reduced-motion:reduce){.trb-r,.trb-bar{transition:none}}
/* forced colours (Windows High Contrast): states shown by a fill alone get system colours, so they do not vanish */
@media (forced-colors:active){
.trb-bar{forced-color-adjust:none;background:GrayText}
.trb-bar.is-past{background:CanvasText}
.trb-bar.is-now{background:Highlight;outline:2px solid CanvasText;outline-offset:1px}
.trb-tog button{border:1px solid ButtonText}
.trb-tog button[aria-pressed=true]{forced-color-adjust:none;background:Highlight;color:HighlightText}
}
