/* SPORTS BY NIGHT, the shared core (ADR-004): the look every game wears. The tokens, the three faces, the base
   page, the wordmark and the buttons (primary, secondary, chips, the focus ring), moved from slam_session.css in the
   same order (REQ-063). Each game's own stylesheet loads after this one. */
/* BUG-20261102-01: an element's own display rule (#pad flex, #ov grid) beat the hidden attribute, so the touch pad
   showed on desktop and the empty overlay's scrim dimmed the court in play. hidden always wins. */
[hidden]{display:none!important}
/* The three faces ship with the game (SIL Open Font License 1.1; licences in app/assets/stylesheets/fonts), so the page makes
   no network calls and plays the same offline, on itch.io and in tests. Latin and Latin Extended subsets, as Google
   serves them; Teko is one variable file for weights 400-600. */
@font-face{font-family:'Bowlby One';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/bowlby-one-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Teko';font-style:normal;font-weight:300 700;font-display:swap;src:url("fonts/teko-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Teko';font-style:normal;font-weight:300 700;font-display:swap;src:url("fonts/teko-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'VT323';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/vt323-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'VT323';font-style:normal;font-weight:400;font-display:swap;src:url("fonts/vt323-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Layout: one arena screen — a 16:9 canvas fitted to the window, menus float over the live court */
:root{
  --bg:#0a0816; --panel:#16122b; --ink:#f5f0ff; --muted:#8f88b5;
  --hot:#ff6b1a; --gold:#ffcf3a; --cool:#3ce0ff;
  --night:rgba(10,8,22,.55);   /* the night grade over the court (REQ-091): --bg at 55% */
  --ice:#bfe6ff;   /* ice in the veins (REQ-093): pale blue, never the P2/steal cyan */
  --f-display:'Bowlby One', 'Arial Black', Impact, sans-serif;
  --f-ui:'Teko', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-led:'VT323', 'Courier New', monospace;
  color-scheme:dark;
}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-ui);overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.logo{font-family:var(--f-display);line-height:.82;text-align:center;transform:skewX(-8deg);margin-top:4px}
.logo .l1,.logo .l2{display:block;font-size:clamp(30px,6.4vw,72px);color:var(--gold);text-shadow:0 4px 0 #b4361b,0 8px 0 #4a1408,0 14px 30px rgba(255,107,26,.45)}
.logo .l2{color:var(--hot);text-shadow:0 4px 0 #6d1d05,0 8px 0 #2b0b02,0 14px 30px rgba(255,107,26,.35)}
.tag{font-size:22px;letter-spacing:.32em;text-transform:uppercase;color:var(--muted);margin-top:-6px;text-align:center}
.sec{font:inherit;font-size:18px;letter-spacing:.12em;text-transform:uppercase;padding:6px 16px 3px;border-radius:8px;border:1px solid #3a3366;background:#1f1a3b;color:var(--ink);cursor:pointer}
.sec:hover{background:#2b2452}
.chip{font:inherit;font-size:20px;letter-spacing:.12em;text-transform:uppercase;padding:6px 16px 3px;border-radius:999px;border:1px solid #3a3366;background:#15122a;color:var(--muted);cursor:pointer}
.chip[aria-pressed="true"]{color:var(--bg);background:var(--ink);border-color:var(--ink)}
.go{font-family:var(--f-display);font-size:30px;letter-spacing:.04em;padding:14px 46px 12px;border:0;border-radius:12px;cursor:pointer;color:#2b0b02;background:linear-gradient(180deg,var(--gold),var(--hot));box-shadow:0 6px 0 #8a2a0b,0 12px 30px rgba(255,107,26,.35);transform:skewX(-8deg)}
.go:hover{filter:brightness(1.08)}
.go:active{transform:skewX(-8deg) translateY(4px);box-shadow:0 2px 0 #8a2a0b}
button:focus-visible,.chip:focus-visible,.sec:focus-visible{outline:2px solid var(--cool);outline-offset:2px}
/* ADR-004: the ticker and the footer strip, every game's (moved from slam_session.css; each game says when they show) */
/* REQ-089: the ticker, AROUND THE LEAGUE, attached under the court in play, as wide as it (fit() sets the width and
   keeps its height free). The look is the scoreboard's (PO's pick, option B, 2026-11-03): a base-colour band with a
   hairline, the label in its own nested box in gold, the items ink, a typeset dot between them. ticker.js moves the track.
   Its classes all start tk-: a bare .st is the cards' stat block. */
#ticker{flex:none;display:flex;align-items:center;gap:14px;margin-top:8px;padding:7px 14px 7px 0;background:var(--bg);border:1px solid #2a2350;border-radius:8px;font-family:var(--f-ui);font-size:19px;letter-spacing:.06em;color:var(--ink);white-space:nowrap;overflow:hidden;line-height:1.15;max-width:100%;box-sizing:border-box}
/* the night grade over the ticker too (the PO, 2026-11-10: "the ticker is too bright. it needs to have our night tint too"):
   the court's own layer (--night, REQ-091), over the whole strip; it takes no clicks, so the footer's links still work */
#ticker{position:relative}
#ticker::after{content:"";position:absolute;inset:0;border-radius:8px;background:var(--night);pointer-events:none;z-index:1}
#ticker .tk-label{flex:none;align-self:stretch;display:flex;align-items:center;margin:-7px 0;padding:0 14px;background:#1f1a3b;border-right:1px solid #3a3366;border-radius:8px 0 0 8px;color:var(--gold);font-weight:600;letter-spacing:.24em}
#ticker .tk-view{flex:1;min-width:0;overflow:hidden}
#ticker .tk-track{display:inline-block;will-change:transform}
#ticker .tk-item{display:inline-block;padding-right:1.2em}
#ticker .tk-item::after{content:"\00B7";margin-left:1.2em;color:var(--muted)}
#ticker .tk-n{font-family:var(--f-led);font-size:1.15em;letter-spacing:.02em}
#ticker .tk-q{color:var(--muted)}
/* REQ-099: the footer. The SPORTS BY NIGHT wordmark and the Privacy and Terms links: a fixed cap at the
   right of the ticker in play (it never crawls), and a ticker-style strip at the foot of the menu. */
.foot{display:flex;align-items:center;gap:14px;font-family:var(--f-ui);font-size:16px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;line-height:1}
.foot a{color:var(--muted);text-decoration:none;padding:4px 0}
.foot a:hover{color:var(--ink)}
.foot a:focus-visible{outline:2px solid var(--cool);outline-offset:2px;border-radius:4px}
.foot .wm{font-family:var(--f-display);font-weight:400;font-size:15px;letter-spacing:.04em;color:var(--gold);display:inline-block;transform:skewX(-8deg)}
.foot .wm:hover{color:var(--gold);filter:brightness(1.12)}
.foot .wm span{color:var(--hot)}   /* EPIC-029: SPORTS in gold, BY NIGHT in heat, as every game's lockup */
#ticker .tk-foot{flex:none;align-self:stretch;margin:-7px -14px -7px 0;padding:0 14px;gap:12px;font-size:15px;background:#1f1a3b;border-left:1px solid #3a3366;border-radius:0 8px 8px 0}
@media (max-width:1000px){#ticker .tk-foot .wm{display:none}}
@media (max-width:760px){#ticker .tk-foot a:not([href*="privacy"]){display:none}}   /* the crawl keeps its room; the menu strip has the rest (Privacy by name: its address is sportsbynight.com's since REQ-251) */
/* ADR-004: the menu's shared pieces, every game's (moved from slam_session.css in order, REQ-069): the badge lockup, the
   pick grid and team cards (arrows, player rows, YOU, portraits, the five bars), the menu buttons, page heads, grids,
   and the settings rows. Each game's own pages are its own ids. */
.lockup{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,22px);margin-top:4px}
.lockup .badge{flex:none;width:clamp(56px,11.5vw,128px);height:auto;filter:drop-shadow(0 10px 24px rgba(0,0,0,.45))}
.pick{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center;width:100%}
.vs{font-family:var(--f-display);font-size:34px;color:var(--muted);transform:skewX(-8deg)}
.side{display:flex;flex-direction:column;gap:6px;min-width:0}
.side .who{font-size:18px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between;align-items:center}
.side .who .tagp{font-weight:600;color:var(--gold)}
.side.b .who .tagp{color:var(--cool)}
.card{background:var(--panel);border-radius:10px;padding:12px 14px 10px;border-top:6px solid var(--c1);display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden}
.card::after{content:"";position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:50%;background:var(--c1);opacity:.12}
.card .row1{display:flex;align-items:center;justify-content:space-between;gap:8px}
.card .city{font-size:18px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);line-height:1}
.card .tname{font-family:var(--f-display);font-size:30px;line-height:1;color:var(--ink)}
.arrows{display:flex;gap:6px;z-index:1}
.arrows button,.pl{font:inherit;color:inherit;cursor:pointer}
.arrows button{width:38px;height:38px;border-radius:50%;border:1px solid #3a3366;background:#1f1a3b;font-size:22px;line-height:1}
.arrows button:hover{background:#2b2452}
.arrows{align-items:center}
.idx{font-family:var(--f-led);font-size:20px;color:var(--muted);margin-right:2px}
.mbtns{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.sets{background:var(--panel);border-radius:12px;border-top:6px solid var(--gold);padding:8px 18px}
.srow{display:flex;align-items:center;gap:clamp(10px,3vw,16px);padding:14px 0;border-bottom:1px solid #2a2350}
.srow:last-child{border-bottom:0}
.slab{flex:0 0 clamp(88px,26vw,120px);font-size:clamp(14px,3.8vw,18px);letter-spacing:clamp(.12em,.6vw,.24em);text-transform:uppercase;color:var(--muted)}
.srow .opts{display:flex;gap:10px;flex-wrap:wrap;flex:1;min-width:0;justify-content:flex-start}
.rhead{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:2;padding:6px 0;background:rgba(10,8,22,.92)}
.rhead h2{font-family:var(--f-display);font-weight:400;font-size:clamp(26px,5vw,40px);margin:0;color:var(--gold);transform:skewX(-8deg);line-height:1}
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px}
.rp{display:grid;gap:4px;padding:4px 2px}
.pl{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px;padding:6px 8px;border-radius:7px;border:1px solid transparent;background:transparent;text-align:left;width:100%}
.pl:hover{background:#1f1a3b}
.pl[aria-pressed="true"]{border-color:var(--gold);background:#221c40}
.side.b .pl[aria-pressed="true"]{border-color:var(--cool)}
.pl[disabled]{cursor:default}
.pl[disabled]:hover{background:transparent}
.nm{font-size:22px;font-weight:500;line-height:1}
.nm small{color:var(--muted);font-weight:400;font-size:18px;margin-right:4px}
.nm .cel{display:block;margin-top:3px;color:var(--muted);font-weight:500;font-size:13px;letter-spacing:.16em;text-transform:uppercase}   /* REQ-093 */
.nm .qb{color:var(--muted);font-weight:500;font-size:14px;letter-spacing:.22em;margin-left:8px;vertical-align:2px}
.pl .you{font-size:15px;letter-spacing:.14em;color:var(--gold);visibility:hidden}
.side.b .pl .you{color:var(--cool)}
.pl[aria-pressed="true"] .you{visibility:visible}
.stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.por{grid-row:1/3;align-self:center;width:72px;height:96px;border-radius:6px;background:#15122a;border:1px solid #2a2350;display:block}
.pl{grid-template-columns:auto 1fr auto}
.pl .stats{grid-column:2/-1}
.rp{grid-template-columns:auto 1fr;column-gap:10px}
.rp .por{width:60px;height:80px}
.rp .stats{grid-column:2;gap:8px}
@media (max-width:520px){.pl .por{width:54px;height:72px}}
.st{display:flex;flex-direction:column;gap:2px}
.st i{font-style:normal;font-size:14px;letter-spacing:.12em;color:var(--muted);line-height:1;display:flex;justify-content:space-between;align-items:baseline;gap:2px}
.st i b{font-family:var(--f-led);font-weight:400;font-size:17px;letter-spacing:0;color:var(--ink)}
.st .bar{display:grid;grid-template-columns:repeat(9,1fr);gap:1px;height:6px}
.st .bar s{background:#2c2650;text-decoration:none;border-radius:1px}
.st .bar s.on{background:var(--c1)}
.modes,.opts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}

/* REQ-087: the boombox, where the music comes from. In the menu's corner on wide screens, after TIP OFF on narrow ones;
   pressing it switches the music. In play it's drawn in the HUD (cartoon/boombox.js), shared by every game. */
.boombox{padding:0;border:0;background:none;cursor:pointer;width:96px;height:76px;border-radius:8px}
.boombox canvas{width:100%;height:100%;display:block}
.boombox:focus-visible{outline:2px solid var(--cool);outline-offset:2px}
/* REQ-151: pinned in the corner only where the screen is tall enough that it can't land on a team card */
@media (min-width:900px) and (min-height:700px){.boombox{position:fixed;left:16px;bottom:14px;z-index:6}}
/* in play: a clear button over the boombox drawn in the scoreboard row; each game places it, under the overlays */
.courtbox{position:absolute;padding:0;border:0;background:none;cursor:pointer;border-radius:6px;z-index:2}
.courtbox:hover{box-shadow:0 0 0 1px #3a3366}
.courtbox:focus-visible{outline:2px solid var(--cool);outline-offset:2px}

/* REQ-153 (EPIC-018): touch play, Modern or Retro (cartoon/handheld.js sets <html data-pad>), on the layouts agreed on
   the Screen Sizes artifact. "Touch play" is a game whose touch pad (.tpad) shows; the ids keep these rules ahead of each
   game's own #stage. Each game places its own pad (slam_session.css, vball.css). */
.hh-logo{display:none}
/* Modern: upright, the court docked at the top, edge to edge (UP-MODERN); sideways, the full height (SIDE-MODERN) */
@media (orientation:portrait){body:has(.tpad:not([hidden])) :is(#stage,#vstage){justify-content:flex-start;padding:env(safe-area-inset-top,0px) 0 0}}
@media (orientation:landscape){body:has(.tpad:not([hidden])) :is(#stage,#vstage){padding:0 env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px)}}
/* Retro: the handheld. A night-violet body, the court in a screen, the game's badge and wordmark on the body (it never
   slants: only the wordmark leans, REQ-105) */
html[data-pad="retro"] body:has(.tpad:not([hidden])) :is(#app,#vapp){background:linear-gradient(180deg,#1f1a3b,#16122b)}
html[data-pad="retro"] body:has(.tpad:not([hidden])) :is(#wrap,#vwrap){box-shadow:0 0 0 8px #15122a,0 0 0 9px #3a3366}
html[data-pad="retro"] body:has(.tpad:not([hidden])) .hh-logo{display:flex;align-items:center;justify-content:center;gap:12px;flex:none;pointer-events:none}
.hh-logo .badge{width:52px;height:auto}
.hh-logo .logo{margin-top:0}
.hh-logo .logo .l1,.hh-logo .logo .l2{font-size:24px;text-shadow:0 3px 0 #8a2a0b,0 6px 0 #3a0f04}
.hh-logo .logo .l2{text-shadow:0 3px 0 #5a1606}
/* upright (UP-RETRO): the screen at the top, the logo at the foot of the body, the pad between them */
@media (orientation:portrait){
  html[data-pad="retro"] body:has(.tpad:not([hidden])) :is(#stage,#vstage){justify-content:flex-start;padding:calc(env(safe-area-inset-top,0px) + 18px) 18px 0}
  html[data-pad="retro"] body:has(.tpad:not([hidden])) .hh-logo{margin-top:auto;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 14px)}
}
/* sideways (SIDE-RETRO, T-RETRO): two equal 208 px grips, the screen between them, the logo under it */
@media (orientation:landscape){
  html[data-pad="retro"] body:has(.tpad:not([hidden])) :is(#stage,#vstage){justify-content:center;padding:14px calc(208px + env(safe-area-inset-right,0px)) 10px calc(208px + env(safe-area-inset-left,0px))}
  html[data-pad="retro"] body:has(.tpad:not([hidden])) .hh-logo{margin-top:18px}
}

/* REQ-148: the home screen, one template for every game (app/views/shared/_home.html): every piece styled once, here */
.home{position:fixed;inset:0;overflow:auto;background:linear-gradient(180deg,rgba(10,8,22,.62),rgba(10,8,22,.9) 70%);backdrop-filter:blur(2px);z-index:5}
.home .inner{max-width:940px;margin:0 auto;padding:clamp(16px,4vh,40px) max(16px,env(safe-area-inset-right,0px)) 32px max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;align-items:center;gap:clamp(8px,1.8vh,16px)}
.home .pre{font-size:18px;letter-spacing:.28em;text-transform:uppercase;color:var(--muted)}
.home .pick{text-align:left}
.home .chip:disabled{cursor:default}
@media (max-width:480px){.home .tag{font-size:17px;letter-spacing:.16em}}
.optrow{display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:center}
.menu-foot{flex-wrap:wrap;justify-content:center;row-gap:6px;margin-top:4px;padding:8px 18px;background:var(--bg);border:1px solid #2a2350;border-radius:8px}
@media (max-width:640px){.pick{grid-template-columns:1fr}.vs{text-align:center;font-size:26px}}
/* REQ-151 (EPIC-018, BUG-20261112-02): the home screen at every size, either way up; the layouts agreed on the Screen
   Sizes artifact (wayfinders/artifacts/screens), by its IDs. TIP OFF (or SERVE) is on screen when the home screen opens. */
/* every size: the column sits in the middle of the screen top to bottom when it's shorter than the screen (H-TAB-UP) */
.home .inner{box-sizing:border-box;min-height:100%;justify-content:safe center}
/* H-WIDE: a wide screen that isn't tall (a sideways tablet, a laptop): the logo, the portraits and the gaps size by height */
@media (min-width:700px) and (max-height:900px){
  .home .logo .l1,.home .logo .l2{font-size:min(clamp(30px,6.4vw,72px),6.2vh)}
  .home .lockup .badge{width:min(clamp(56px,11.5vw,128px),13vh)}
  .home .inner{gap:min(clamp(8px,1.8vh,16px),1.3vh);padding-top:min(clamp(16px,4vh,40px),2.2vh);padding-bottom:16px}
  .home .pre{font-size:15px}
  .home .tag{font-size:18px}
  .home .pl .por{width:48px;height:64px}
  .home .nm .cel{display:none}
  .home .card{padding:8px 12px 8px;gap:4px}
  .home .pl{padding:4px 8px}
}
/* H-UP: a phone held upright, or any upright screen up to 640 px wide, where the team cards stack (the PO, 2026-11-12, a
   628 × 1023 window: "why do we have scrolling?"): one column, slim cards (ratings as numbers), TIP OFF held at the bottom */
@media (max-width:640px) and (orientation:portrait){
  .home .inner{gap:8px;padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:0;justify-content:safe center}
  .home .pre{display:none}
  .home .lockup{margin-top:0;justify-content:flex-start;align-self:stretch;padding-right:72px}
  .home .logo .l1,.home .logo .l2{font-size:clamp(28px,9vw,40px)}
  .home .lockup .badge{width:clamp(48px,15vw,64px)}
  .home .tag{font-size:14px;letter-spacing:.14em;margin-top:0}
  .home [data-part="modes"]{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
  .home [data-part="modes"] .chip{font-size:16px;padding:6px 8px 3px}
  .home .optrow,.home .optrow .opts,.home #courtBtn{width:100%}
  .home .pick{gap:6px}
  .home .side .who{font-size:14px}
  .home .card{padding:8px 10px 6px;gap:2px}
  .home .card .tname{font-size:24px}
  .home .pl{grid-template-columns:1fr auto;padding:3px 6px;gap:2px 8px}
  .home .pl .por,.home .nm .cel,.home .st .bar{display:none}
  .home .pl .stats{grid-column:1/-1;gap:4px}
  .home .nm{font-size:19px}
  .home .st i{font-size:12px}
  .home .vs{font-size:20px;line-height:1}
  .home .mbtns{gap:6px;flex-wrap:nowrap;width:100%}
  .home .mbtns .sec{flex:1;font-size:14px;letter-spacing:.06em;padding:6px 4px 3px;white-space:nowrap}
  .home [data-part="go"]{position:sticky;bottom:0;z-index:2;width:100%;margin-top:2px;box-shadow:0 -14px 18px 6px var(--bg)}
  .home .boombox{position:fixed;top:max(10px,env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));width:64px;height:51px;z-index:6}
  .home .menu-foot{margin-bottom:max(16px,env(safe-area-inset-bottom,0px))}
}
/* H-UP from 561 to 640 px wide (a big phone, a small tablet upright): room for the players' portraits and the four
   modes in one row */
@media (min-width:561px) and (max-width:640px) and (orientation:portrait){
  .home .pl{grid-template-columns:auto 1fr auto}
  .home .pl .por{display:block;grid-row:1/3;width:42px;height:56px}
  .home .pl .stats{grid-column:2/-1}
  .home [data-part="modes"]{grid-template-columns:repeat(4,auto);justify-content:center}
}
/* H-SIDE as HS-C, the face-off (the PO, 2026-11-12: "faceoff looks the best. let's do that!"): a short screen held
   sideways (a phone, a small tablet, a short window) puts the home team on the left in P1 gold and the away team on the
   right, both full height, with the logo, the picks and TIP OFF in the middle between them, like an arcade versus
   screen. The pick grid steps aside (display:contents) so its two sides are columns of the home screen itself; the
   template's order of parts is untouched (home.mjs). Everything sizes by the screen's height ("we should use more of
   the height"), so a taller screen fills instead of leaving it empty. */
@media (orientation:landscape) and (max-height:620px){
  .home .inner{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) clamp(150px,calc(34vw - 74px),260px) 64px minmax(0,1fr);
    grid-template-rows:1fr repeat(6,auto) 1fr;column-gap:clamp(8px,1.6vw,18px);row-gap:clamp(5px,1.6vh,11px);align-content:stretch;align-items:start;
    padding-top:max(10px,env(safe-area-inset-top,0px));padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}
  .home .inner>*{grid-column:2/4;min-width:0}
  .home .pre,.home .menu-foot,.home .pick .vs{display:none}
  .home [data-part="pick"]{display:contents}
  .home .pick .side{grid-row:1/-1;align-self:stretch;min-width:0}
  .home .pick .side.a{grid-column:1}
  .home .pick .side.b{grid-column:4}
  .home .pick .side .card{flex:1}
  .home .pick .side .card>.pl{margin-block:auto}   /* the players spread evenly down the full-height card, each row kept tight */
  .home .lockup{justify-content:center}
  /* the middle column centred top to bottom between the full-height cards: an empty row above and below it */
  .home [data-part="lockup"]{grid-row:2}
  .home [data-part="tag"]{grid-row:3}
  .home [data-part="modes"]{grid-row:4}
  .home [data-part="row"]{grid-row:5}
  .home [data-part="mbtns"]{grid-row:6}
  .home [data-part="go"],.home [data-part="boombox"]{grid-row:7}
  .home .lockup{margin-top:0}
  .home .logo .l1,.home .logo .l2{font-size:clamp(22px,8.4vh,44px);white-space:nowrap}
  .home .lockup .badge{width:clamp(40px,15vh,76px)}
  .home .tag{font-size:clamp(11px,2.8vh,15px);letter-spacing:.12em;margin-top:0}
  .home [data-part="modes"]{display:grid;grid-template-columns:1fr 1fr;gap:clamp(4px,1.2vh,8px)}
  .home [data-part="modes"] .chip{font-size:clamp(13px,3.6vh,18px);padding:clamp(3px,1.1vh,7px) 6px clamp(1px,.7vh,4px);letter-spacing:.08em;white-space:normal;line-height:1}
  .home .optrow .opts,.home #courtBtn{width:100%}
  .home #courtBtn{font-size:clamp(13px,3.6vh,18px);padding:clamp(3px,1.1vh,7px) 8px clamp(1px,.7vh,4px)}
  .home #vfmts{gap:clamp(4px,1.2vh,8px)}
  .home #vfmts .chip{font-size:clamp(12px,3.2vh,16px);padding:clamp(2px,1vh,6px) 8px clamp(1px,.6vh,4px)}
  .home .mbtns{display:grid;grid-template-columns:1fr 1fr;gap:clamp(4px,1.2vh,8px)}
  .home .mbtns .sec{font-size:clamp(12px,3.4vh,17px);padding:clamp(3px,1.1vh,7px) 4px clamp(1px,.7vh,4px);letter-spacing:.06em;white-space:nowrap}
  .home [data-part="go"]{grid-column:2;width:100%;font-size:clamp(20px,7vh,34px);padding:clamp(8px,2.4vh,14px) 6px clamp(6px,2vh,12px);white-space:nowrap}
  .home [data-part="boombox"]{grid-column:3;width:64px;height:51px;align-self:center;position:static}
  .home .side .who{font-size:clamp(12px,3vh,16px)}
  .home .card{padding:clamp(6px,1.8vh,12px) 10px clamp(5px,1.4vh,10px);gap:clamp(2px,1vh,6px)}
  .home .card .tname{font-size:clamp(17px,5.6vh,28px)}
  .home .card .city{font-size:clamp(12px,3vh,16px)}
  .home .card .row1{gap:4px}
  .home .arrows{gap:4px;flex:none}
  .home .arrows button{width:clamp(26px,7vh,34px);height:clamp(26px,7vh,34px);font-size:17px}
  .home .idx{display:none}
  .home .pl{padding:clamp(2px,.8vh,6px) 5px;gap:2px 8px}
  /* the portrait beside the name, the five ratings on their own row under both, full width, so the labels have room */
  .home .pl{align-content:center}
  .home .pl .por{grid-row:1;width:calc(clamp(44px,17vh,104px) * .75);height:clamp(44px,17vh,104px)}
  .home .nm .cel{display:none}
  .home .pl .stats{grid-column:1/-1;gap:4px}
  .home .nm{font-size:clamp(16px,4.2vh,21px)}
  .home .st i{font-size:clamp(10px,2.6vh,13px);letter-spacing:.04em}
  .home .st i b{font-size:clamp(13px,3.4vh,17px)}
  .home .vs{font-size:clamp(18px,5vh,28px)}
}
/* H-SIDE on a small phone: the five ratings keep their numbers and bars, the names go (the order is the Manual's) */
@media (orientation:landscape) and (max-height:620px) and (max-width:760px){
  .home .st i{font-size:0;justify-content:center}
  .home .st i b{font-size:13px}
  .home .nm{font-size:15px}
  .home .card{padding-inline:8px}
  .home .card .tname{font-size:16px}
  .home .arrows button{width:26px;height:26px;font-size:15px}
}
/* a very short screen (a small phone sideways): the tagline goes, so TIP OFF stays on screen */
@media (orientation:landscape) and (max-height:400px){.home .tag{display:none}.home .inner{row-gap:5px}}
/* Coming soon's cards, on every game (REQ-115, REQ-148) */
.stag{margin:6px 0 0;font-size:16px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.sgrid{display:flex;flex-direction:column;gap:10px;max-width:420px}
.scard{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:rgba(22,18,43,.94);color:var(--ink);border:1px solid #3a3366;border-top:6px solid var(--gold);border-radius:12px;padding:12px 18px 14px;font-family:var(--f-ui);cursor:pointer}
.scard:hover{background:#221c40}
.scard[aria-pressed="true"]{border-color:var(--gold)}
.scard .spre{font-size:15px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.scard .sname{display:flex;flex-direction:column;font-family:var(--f-display);font-size:clamp(26px,3.6vw,40px);line-height:1;transform:skewX(-8deg);transform-origin:left;margin:2px 0 4px 6px}
.scard .sname .l1{color:var(--gold);text-shadow:0 3px 0 #8a2a0b,0 6px 0 #3a0f04}
.scard .sname .l2{color:var(--hot);text-shadow:0 3px 0 #5a1606}
.scard .sline{font-size:20px}
.scard .ssoon{font-size:15px;letter-spacing:.14em;text-transform:uppercase;background:var(--ink);color:var(--bg);border-radius:999px;padding:2px 12px 0;margin-top:4px}

/* REQ-150: the jukebox, every game's (cartoon/jukebox.js) */
.juke{display:flex;flex-direction:column;gap:14px}
/* a sheet laid out as the footer's pages are (Terms, Privacy: pages.css .ph and main): one centred column, 760 px, the
   heading and Back on one row over the content at the same width (the PO, 2026-11-12: "the jukebox needs to be centered.
   please use the same layout pattern as the terms page") */
div.sheet-col .inner{box-sizing:border-box;max-width:760px;width:100%;margin:0 auto}   /* div.: above a game sheet's own width rule */
.sheet-col .sgrid{max-width:none}
.juke .jnow{display:flex;flex-direction:column;gap:6px;background:var(--panel);border:1px solid #3a3366;border-top:6px solid var(--gold);border-radius:12px;padding:12px 16px}
.juke .jlab,.juke .jnext{font-size:15px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.juke .jtitle{font-family:var(--f-display);font-size:clamp(26px,4vw,40px);line-height:1;color:var(--gold);transform:skewX(-8deg);transform-origin:left;min-height:1em}
.juke .jbar{height:6px;background:#2c2650;border-radius:999px;overflow:hidden}
.juke .jbar i{display:block;height:100%;background:var(--gold)}
.juke .jtime{font-family:var(--f-led);font-size:22px;color:var(--ink)}
.juke .opts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.juke .jlist{display:flex;flex-direction:column;gap:6px}
.juke .jsong{display:flex;justify-content:space-between;align-items:baseline;gap:12px;background:#1f1a3b;color:var(--ink);border:1px solid #3a3366;border-radius:8px;padding:8px 14px 6px;font-family:var(--f-ui);font-size:22px;letter-spacing:.06em;text-align:left;cursor:pointer}
.juke .jsong:hover{background:#2b2452}
.juke .jsong[aria-current="true"]{border-color:var(--gold)}
.juke .jsong[aria-current="true"] .jstag{color:var(--gold)}
.juke .jstag{font-size:15px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.juke .jhint{margin:0;font-size:16px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.juke .sec:disabled{cursor:default;opacity:1}


/* REQ-150: BBALL BY NIGHT's jukebox page (#juke), a page like its Settings, above it (it opens from there too).
   VBALL BY NIGHT's is its .vsheet. The sheet inside is the shared .juke above. */
#juke{position:fixed;inset:0;overflow:auto;background:rgba(10,8,22,.97);z-index:7}
#juke .inner{padding:clamp(14px,3vh,28px) 16px 32px;display:flex;flex-direction:column;gap:14px}

/* About, Privacy and Terms in play (BUG-20261118-01, cartoon/info.js): a sheet over the paused game, the page's own text */
.info{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(10,8,22,.82);
  padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.info[hidden]{display:none}
.info .inner{width:min(760px,100%);max-height:100%;display:flex;flex-direction:column;background:var(--panel,#16122b);border:1px solid #3a3366;border-top:6px solid var(--gold,#ffcf3a);border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.info .ihead{display:flex;justify-content:flex-end;padding:10px 12px 0}
.info .ibody{overflow:auto;padding:4px 22px 22px;font-family:var(--f-ui,'Teko',sans-serif);font-size:19px;line-height:1.3;color:var(--ink,#f5f0ff)}
.info .ibody h1{font-family:var(--f-display,'Bowlby One',sans-serif);font-weight:400;font-size:clamp(26px,5vw,40px);color:var(--gold,#ffcf3a);transform:skewX(-8deg);transform-origin:left;margin:4px 0 6px}
.info .ibody h2{font-weight:600;font-size:20px;letter-spacing:.2em;text-transform:uppercase;color:var(--hot,#ff6b1a);margin:16px 0 4px}
.info .ibody p,.info .ibody dd{margin:0 0 8px}
.info .ibody .updated,.info .ibody dt{color:var(--muted,#8f88b5);letter-spacing:.12em;text-transform:uppercase;font-size:16px}
.info .ibody a{color:var(--gold,#ffcf3a)}
.info .ibody a:focus-visible,.info button:focus-visible{outline:2px solid var(--cool,#3ce0ff);outline-offset:2px}

/* ---------- the Booklet (EPIC-033, REQ-233): the Manual as a cartridge-era instruction booklet, in night print ----------
   --panel pages under a faint halftone, gold and hot ink, a hairline staple gutter, page numbers in the scoreboard face.
   A spread of two pages from 820 px; one page below. The page turn cuts under reduced motion. */
/* Day pages (the PO, 2026-11-18: "can you make the booklet actually white?"): paper and print inks, as tokens; the
   page's tokens are re-pointed at them, so everything printed on a page follows. The cover's label keeps the night's. */
:root{--paper:#fbf8f1;--paper-ink:#1d1830;--paper-muted:#5b5478;--paper-gold:#8a5c00;--paper-hot:#c2410c;--paper-cool:#0b7285;--paper-line:#d8d0e8;--paper-key:#ffffff;--paper-tint:#f1ecf8}
.booklet{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;--n-ink:var(--ink);--n-gold:var(--gold);--n-hot:var(--hot);--n-bg:var(--bg)}
.booklet[data-paper="day"] .bpage{--ink:var(--paper-ink);--muted:var(--paper-muted);--gold:var(--paper-gold);--hot:var(--paper-hot);--cool:var(--paper-cool);--panel:var(--paper-tint);
  color:var(--ink);border-color:var(--paper-line);background:radial-gradient(rgba(29,24,48,.07) 1px,transparent 1.4px) 0 0/7px 7px,var(--paper)}
.booklet[data-paper="day"] .bpage kbd{background:var(--paper-key);border-color:var(--paper-line);color:var(--paper-ink)}
.booklet[data-paper="day"] .mrow{border-bottom-color:var(--paper-line)}
.booklet[data-paper="day"] .toc i{border-bottom-color:var(--paper-line)}
.booklet[data-paper="day"] .notes .ruled{background:repeating-linear-gradient(transparent 0 33px,var(--paper-line) 33px 34px)}
.booklet[data-paper="day"].two .bpage:not([hidden]):has(+ .bpage:not([hidden])){border-right-color:var(--paper-line);box-shadow:inset -18px 0 24px -18px rgba(29,24,48,.25),0 20px 60px rgba(0,0,0,.6)}
.booklet[data-paper="day"].two .bpage:not([hidden])+.bpage:not([hidden]){box-shadow:inset 18px 0 24px -18px rgba(29,24,48,.25),0 20px 60px rgba(0,0,0,.6)}
.booklet .spread{display:flex;justify-content:center;width:100%;touch-action:pan-y;perspective:1400px}
.bpage{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:min(100%,520px);height:min(74vh,680px);padding:22px 22px 34px;
  background:radial-gradient(rgba(255,207,58,.05) 1px,transparent 1.4px) 0 0/7px 7px,var(--panel);border:1px solid #3a3366;border-radius:10px;
  box-shadow:0 20px 60px rgba(0,0,0,.6)}
.booklet.two .bpage:not([hidden]):first-child,.booklet.two .bpage:not([hidden])+.bpage{border-radius:0}
.booklet.two .bpage:not([hidden]):has(+ .bpage:not([hidden])){border-radius:10px 0 0 10px;border-right-color:#2a2350;box-shadow:inset -18px 0 24px -18px rgba(0,0,0,.7),0 20px 60px rgba(0,0,0,.6)}
.booklet.two .bpage:not([hidden])+.bpage:not([hidden]){border-radius:0 10px 10px 0;border-left:0;box-shadow:inset 18px 0 24px -18px rgba(0,0,0,.7),0 20px 60px rgba(0,0,0,.6)}
.bpage[hidden]{display:none}
.bh{font-family:var(--f-display);font-weight:400;font-size:clamp(20px,2.4vw,26px);line-height:1;margin:0 0 10px;color:var(--gold);transform:skewX(-8deg);transform-origin:left}
.bbody{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.bbody .card{background:none;border:0;padding:0;box-shadow:none}
.bbody .card::after{display:none}
.bpage.p2 .bh{color:var(--cool)}
.pnum{position:absolute;bottom:8px;font-family:var(--f-led);font-size:22px;color:var(--muted)}
.bpage:nth-child(even) .pnum{left:18px}
.bpage:nth-child(odd) .pnum{right:18px}
.bk-label{--ink:var(--n-ink);--gold:var(--n-gold);--hot:var(--n-hot);background:var(--n-bg);border:2px solid var(--n-gold);border-radius:12px;padding:22px 26px 30px;box-shadow:0 10px 30px rgba(10,8,22,.35)}
.bk-cover{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center}
.bk-cover .logo .l1,.bk-cover .logo .l2{font-size:clamp(40px,7vw,68px)}
.bk-kind{font-family:var(--f-display);font-size:clamp(18px,2.4vw,24px);color:var(--ink);transform:skewX(-8deg);border-top:2px solid var(--gold);border-bottom:2px solid var(--gold);padding:6px 14px 4px}
.bk-for,.bk-house{font-family:var(--f-ui);text-transform:uppercase;letter-spacing:.24em;font-size:16px;color:var(--muted)}
.bk-back .logo .l1,.bk-back .logo .l2{font-size:clamp(28px,4vw,40px)}
.bbody .mmoves .mnote{margin-bottom:4px}
.mcost{display:block;margin-top:2px;letter-spacing:.14em;text-transform:uppercase}
.mrow .mcost b{font-family:var(--f-led);font-weight:400;font-size:20px;letter-spacing:0;color:var(--gold)}
.tocs{display:flex;flex-direction:column;gap:4px}
.toc{display:flex;align-items:baseline;gap:8px;width:100%;background:none;border:0;padding:8px 2px;color:var(--ink);font-family:var(--f-ui);font-size:21px;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;text-align:left}
.toc i{flex:1;border-bottom:2px dotted #3a3366;transform:translateY(-5px)}
.toc .pn{font-family:var(--f-led);font-size:24px;color:var(--gold)}
.toc:hover .tt,.toc:focus-visible .tt{color:var(--gold)}
.notes .ruled{height:100%;background:repeating-linear-gradient(transparent 0 33px,#2a2350 33px 34px)}
.bk-bar{display:flex;align-items:center;gap:14px;font-family:var(--f-ui);text-transform:uppercase;letter-spacing:.2em;color:var(--muted);font-size:16px}
.bk-bar b{font-family:var(--f-led);font-weight:400;font-size:22px;letter-spacing:0;color:var(--ink)}
.spread.turn-next{animation:bk-next .32s ease-out}
.spread.turn-prev{animation:bk-prev .32s ease-out}
@keyframes bk-next{from{transform:rotateY(-14deg) translateX(4%);opacity:.35}to{transform:none;opacity:1}}
@keyframes bk-prev{from{transform:rotateY(14deg) translateX(-4%);opacity:.35}to{transform:none;opacity:1}}
@media (prefers-reduced-motion: reduce){.spread.turn-next,.spread.turn-prev{animation:none}}
@media (max-width: 819px){.bpage{width:100%;height:min(76vh,640px);padding:16px 14px 32px}}
