/* World Cricket 3D - the interface skin. UI direction C: MATCH DAY, CONSOLE FRONT END.
   Owner: system E (ui). The rules are in lab/ui-directions/README.md, "Direction C"; docs/ui.md describes
   how src/ui uses this file.

   - Graphite neutrals and white. A side's kit colour floods a whole region; its second colour is
     the stripe on the leading edge. Kit colours arrive as custom properties from src/ui/kit.js:
       --kf flood  --ks stripe  --ki text on the flood  --kq quiet text on the flood
       --ka the side's colour as text on graphite  --ksi text on the stripe  --km a mark on white  --kb backing slab
     and, on the HUD, the same eight for the batting side (--bf ...) and the bowling side (--wf ...).
   - Archivo Expanded Black Italic, set big, for names, scores and verdicts (.wc-x). Archivo Semi
     Condensed for data.
   - One skew, 12 degrees (.wc-sk; its child is skewed back). One ride, 5 degrees (the title column,
     the stamps). Slabs overlap, bleed off the screen edge and stack in staircases. No boxes.
   - Motion: slabs slam in along the diagonal and settle, the kit pops, OUT stamps down. Only
     transform and opacity are animated. Nothing is blurred or filtered, behind a slab or on it.
   - Pad colours (--pa green, --pb red, --px blue, --py yellow) belong to the button glyphs only.

   Sizes are in rem and 1rem is 10 px of a 1440 x 900 design: the root font size follows the
   window, so every screen keeps its proportions from a phone on its side to a 4K monitor. */
@font-face { font-family: "Archivo X"; src: url("fonts/Archivo-ExpandedBlackItalic.woff2?v=34b3ba3b") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo SC"; src: url("fonts/Archivo-SemiCondensed-Medium.woff2?v=2902e91b") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo SC"; src: url("fonts/Archivo-SemiCondensed-Bold.woff2?v=b23b4415") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --g0: #0e1114; --g1: #171b20; --g2: #252b33; --g3: #3a424c; --txt: #ffffff; --soft: #aab3bd;
  --red: #e0252b; --amber: #f5a300; --ok: #1fa457; --okt: #58d68a; --redt: #ff5a5f;
  --pa: #2fb457; --pb: #e0252b; --px: #2f7de1; --py: #f2c21a; --cap: #dfe4e8;
  --font-x: "Archivo X", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-d: "Archivo SC", "Arial Narrow", Arial, sans-serif;
  /* a side with no colours yet (the page before a match): graphite and white */
  --kf: var(--g2); --ks: #ffffff; --ki: #ffffff; --kq: var(--soft); --ka: #ffffff; --ksi: var(--g0); --kb: transparent;
  /* phone safe areas (notch, home bar) */
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
}
html { font-size: clamp(6.25px, min(100vw / 144, 100vh / 90), 16px); }

/* ============================================================ base */
.wc-ui { font: 500 1.7rem/1.15 var(--font-d); color: var(--txt); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; overflow: hidden; -webkit-touch-callout: none; touch-action: manipulation; }
/* lists that scroll under a finger keep the scroll to themselves */
.wc-ui.is-touch .wc-sheet, .wc-ui.is-touch .wc-rows, .wc-ui.is-touch .wc-credits, .wc-ui.is-touch .wc-tbl, .wc-ui.is-touch .wc-how-cols, .wc-ui.is-touch .wc-pk-list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
:where(.wc-ui) *, :where(.wc-ui) *::before, :where(.wc-ui) *::after { box-sizing: border-box; }
:where(.wc-ui) ul, :where(.wc-ui) ol, :where(.wc-ui) p, :where(.wc-ui) h1, :where(.wc-ui) h2, :where(.wc-ui) h3, :where(.wc-ui) h4, :where(.wc-ui) figure { margin: 0; padding: 0; list-style: none; font: inherit; }
:where(.wc-ui) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; border-radius: 0; -webkit-appearance: none; appearance: none; }
:where(.wc-ui) button:disabled { cursor: default; }
:where(.wc-ui) b, :where(.wc-ui) strong { font-weight: 700; }
:where(.wc-ui) i, :where(.wc-ui) em { font-style: normal; }
:where(.wc-ui) :focus { outline: none; }
.wc-ui [hidden] { display: none !important; }
/* the full-size layers let the ground take the clicks; what is drawn on them opts back in */
.wc-ui > .wc-hud, .wc-ui > .wc-touch, .wc-ui > .wc-layer, .wc-hud > .wc-drs { pointer-events: none !important; }
.wc-hud button, .wc-touch > *, .wc-screen { pointer-events: auto; }
.wc-screen.is-overlay { pointer-events: none; } .wc-screen.is-overlay > * { pointer-events: auto; }

/* display type: names, scores, verdicts */
.wc-x { font: italic 900 1em/0.9 var(--font-x); text-transform: uppercase; letter-spacing: -.015em; }
/* the one skew. The child is skewed back so type and glyphs stay upright. */
.wc-sk { transform: skewX(-12deg); } .wc-sk > * { transform: skewX(12deg); }
/* a name that has been shrunk to fit its slot (src/ui/parts.js, fit) never wraps */
.wc-fit { white-space: nowrap; }

/* motion */
.wc-slam { animation: wc-slam .42s cubic-bezier(.16,.9,.3,1) both; animation-delay: var(--d, 0s); }
@keyframes wc-slam { from { transform: translate(-9rem, 2rem) skewX(-12deg); opacity: 0; } to { opacity: 1; } }
.wc-slamr { animation: wc-slamr .42s cubic-bezier(.16,.9,.3,1) both; animation-delay: var(--d, 0s); }
@keyframes wc-slamr { from { transform: translate(11rem, -2.4rem) skewX(-12deg); opacity: 0; } to { opacity: 1; } }
.wc-pop { animation: wc-pop .3s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--d, 0s); }
@keyframes wc-pop { from { transform: scale(.6); opacity: 0; } to { opacity: 1; } }
@keyframes wc-stamp { from { transform: rotate(-5deg) scale(1.5); opacity: 0; } to { transform: rotate(-5deg); opacity: 1; } }
@keyframes wc-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================ pad glyphs: the prompts */
.wc-gl { display: inline-flex; align-items: center; gap: .9rem; font: italic 900 1.5rem/1 var(--font-x); text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
.wc-fb { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--c, var(--pa)); color: #fff; display: inline-grid; place-items: center; font: 700 1.7rem/1 var(--font-d); box-shadow: inset 0 -.4rem 0 rgba(0,0,0,.28), 0 0 0 .3rem var(--g0); flex: none; text-transform: uppercase; }
.wc-fb.is-y { --c: var(--py); color: #111; } .wc-fb.is-b { --c: var(--pb); } .wc-fb.is-x { --c: var(--px); } .wc-fb.is-a { --c: var(--pa); }
.wc-sh { height: 2.6rem; min-width: 3.6rem; padding: 0 1.4rem; border-radius: 1.3rem 1.3rem .5rem .5rem; background: var(--cap); color: #111; display: inline-grid; place-items: center; font: 700 1.3rem/1 var(--font-d); letter-spacing: .04em; box-shadow: inset 0 -.3rem 0 rgba(0,0,0,.25), 0 0 0 .3rem var(--g0); flex: none; text-transform: uppercase; white-space: nowrap; }
.wc-dp { width: 3.4rem; height: 3.4rem; position: relative; flex: none; display: inline-block; }
.wc-dp::before, .wc-dp::after { content: ""; position: absolute; background: var(--cap); box-shadow: 0 0 0 .3rem var(--g0); }
.wc-dp::before { left: 1.1rem; top: 0; width: 1.2rem; height: 3.4rem; } .wc-dp::after { left: 0; top: 1.1rem; width: 3.4rem; height: 1.2rem; }
.wc-dp i { position: absolute; z-index: 1; left: 1.1rem; top: 1.1rem; width: 1.2rem; height: 1.2rem; background: var(--cap); }
.wc-dp.is-lr::after { background: var(--ka); } .wc-dp.is-ud::before { background: var(--ka); }
.wc-fb[data-k]::before, .wc-sh[data-k]::before, .wc-nk[data-k]::before { content: attr(data-k); }
/* a number key: the delivery slots */
.wc-nk { width: 2.8rem; height: 2.6rem; background: var(--cap); color: #111; display: inline-grid; place-items: center; font: 700 1.6rem/1 var(--font-d); transform: skewX(-12deg); box-shadow: inset 0 -.3rem 0 rgba(0,0,0,.25); flex: none; }

/* the help bar: what the keys do on this screen, bottom left, edged in the kit colour */
.wc-help { position: absolute; left: 0; bottom: 0; z-index: 5; min-height: 5.8rem; padding: 0 6rem calc(var(--sb) * .6) calc(4.4rem + var(--sl)); display: flex; align-items: center; gap: 3rem; background: var(--g0); clip-path: polygon(0 0, 100% 0, calc(100% - 1.3rem) 100%, 0 100%); }
.wc-help::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .5rem; background: var(--ka); }
.wc-help small { font: 500 1.4rem/1 var(--font-d); color: var(--soft); text-transform: none; }
.wc-help-mid { left: 50%; transform: translateX(-50%); clip-path: none; padding: 0 3.4rem; }
.wc-help button.wc-gl:focus { outline: .3rem solid #fff; outline-offset: .5rem; }

/* buttons: skewed slabs. The one with the focus is the white slab with dark type. */
.wc-btn { display: inline-block; position: relative; font: italic 900 2rem/1 var(--font-x); text-transform: uppercase; padding: 1.2rem 2.4rem 1rem 2rem; transform: skewX(-12deg); background: var(--btn, var(--g2)); color: var(--btn-ink, #fff); white-space: nowrap; }
.wc-btn > span { display: block; transform: skewX(12deg); }
.wc-btn-main { background: var(--btn-main, var(--ks)); color: var(--btn-main-ink, var(--ksi)); font-size: 2.6rem; padding: 1.4rem 3rem 1.1rem 2.4rem; }
.wc-btn:disabled { opacity: .4; }
.wc-btn:focus, .wc-ui.is-touch .wc-btn:active { background: #fff; color: var(--g0); box-shadow: 1.2rem 0 0 var(--ka); }
.wc-actions { display: flex; gap: 1.6rem; align-items: flex-end; }
/* a clock that runs out along the bottom of a button or a prompt (scaleX from the script) */
.wc-clock { position: absolute; left: 0; right: 0; bottom: -.7rem; height: .7rem; background: rgba(255,255,255,.22); overflow: hidden; }
.wc-clock > i { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; }

/* ============================================================ screens: the frame */
.wc-layer, .wc-screen { position: absolute; inset: 0; overflow: hidden; }
.wc-scrim { position: absolute; inset: 0; background: rgba(10,13,16,.78); }
/* (QA N6) a table over a lit picture (the big screen behind the result screen read through the rows): nearly solid */
.wc-scrim.wc-scrim-deep { background: rgb(10,13,16); }   /* (owner note 84) the big screen behind still read through at .94: a table is read on solid graphite */
.wc-scrim-left { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,13,16,.86) 0, rgba(10,13,16,.6) 34%, rgba(10,13,16,0) 58%); }
.wc-keys { position: absolute; right: calc(4.4rem + var(--sr)); top: calc(1.4rem + var(--st)); display: flex; gap: 2.2rem; z-index: 5; }
.wc-keys button.wc-gl:focus { outline: .3rem solid #fff; outline-offset: .5rem; }
.wc-toast { position: absolute; left: 50%; top: 2.6rem; z-index: 40; transform: translateX(-50%) skewX(-12deg); background: #fff; color: var(--g0); font: italic 900 1.8rem/1 var(--font-x); text-transform: uppercase; padding: 1.2rem 2.6rem 1rem; white-space: nowrap; }
.wc-toast-in { animation: wc-fade .18s both; }

/* ============================================================ 1 TITLE: out in the middle */
.wc-ride { position: absolute; left: 0; top: 0; width: 90rem; transform: rotate(-5deg); transform-origin: 0 0; }
.wc-band { position: absolute; left: -4rem; top: 15rem; width: 88rem; height: 19.6rem; background: var(--kf); clip-path: polygon(0 0, 100% 0, calc(100% - 4.2rem) 100%, 0 100%); }
.wc-band2 { position: absolute; left: -4rem; top: 34.6rem; width: 83.8rem; height: 1.8rem; background: var(--ks); clip-path: polygon(0 0, 100% 0, calc(100% - .4rem) 100%, 0 100%); }
.wc-band3 { position: absolute; left: -4rem; top: 37.2rem; width: 60rem; height: .6rem; background: #fff; }
.wc-logo { position: absolute; left: 7.6rem; top: 17.2rem; font-size: 9.6rem; line-height: .86; color: var(--ki); }
.wc-logo small { display: block; font: 700 2.2rem/1.15 var(--font-d); letter-spacing: .02em; margin-bottom: .8rem; color: var(--kq); text-transform: none; }
.wc-logo em { font-style: inherit; color: var(--ks); }
.wc-menu { position: absolute; left: 7.6rem; top: 42rem; display: flex; flex-direction: column; align-items: flex-start; }
.wc-menu-item { display: block; position: relative; z-index: 0; font: italic 900 3.6rem/5.4rem var(--font-x); text-transform: uppercase; letter-spacing: -.015em; color: #fff; opacity: .82; white-space: nowrap; }
.wc-menu-item small { font: 500 1.7rem/1 var(--font-d); text-transform: none; letter-spacing: 0; margin-left: 1.8rem; opacity: .8; vertical-align: .5rem; }
.wc-menu-item:disabled { opacity: .38; }
.wc-menu-item:focus, .wc-menu-item.is-on { font-size: 6.2rem; line-height: 8.4rem; height: 10.4rem; opacity: 1; color: var(--g0); margin: .2rem 0 .6rem; }
.wc-menu-item:focus::before, .wc-menu-item.is-on::before { content: ""; position: absolute; left: -14rem; right: -7rem; top: .2rem; bottom: .2rem; background: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 1.7rem) 100%, 0 100%); z-index: -1; }
.wc-menu-item:focus::after, .wc-menu-item.is-on::after { content: ""; position: absolute; left: calc(100% + 6.2rem); top: .2rem; bottom: .2rem; width: 2.6rem; background: var(--ks); clip-path: polygon(1.7rem 0, 100% 0, calc(100% - 1.7rem) 100%, 0 100%); }
.wc-menu-item:focus small, .wc-menu-item.is-on small { display: block; margin: -1.8rem 0 0 .4rem; font-size: 1.8rem; line-height: 2.2rem; opacity: 1; color: #2a3038; font-weight: 700; vertical-align: 0; }
.wc-menu-item:focus:not(:has(small)), .wc-menu-item.is-on:not(:has(small)) { height: 8.8rem; }
/* the lesser entries (how to play, options, credits, full screen) are set smaller: unequal things, unequal sizes */
.wc-menu-item.wc-menu-small { font-size: 2.4rem; line-height: 3.8rem; opacity: .7; }
.wc-menu-item.wc-menu-small:focus, .wc-menu-item.wc-menu-small.is-on { font-size: 4.2rem; line-height: 6.2rem; height: 6.6rem; opacity: 1; }
.wc-menu-danger { color: var(--redt); }
.wc-star { position: absolute; right: calc(4.4rem + var(--sr)); bottom: 3.4rem; text-align: right; }
.wc-star .wc-x { font-size: 4.4rem; display: block; }
.wc-star > span { display: inline-block; margin-top: .8rem; background: var(--kf); color: var(--ki); padding: .6rem 1.4rem .5rem; font-weight: 700; font-size: 1.6rem; transform: skewX(-12deg); }
.wc-star > span i { display: inline-block; transform: skewX(12deg); white-space: pre; }
.wc-foot { position: absolute; right: calc(4.4rem + var(--sr)); top: calc(3rem + var(--st)); font-size: 1.5rem; background: rgba(14,17,20,.8); padding: .7rem 1.4rem .6rem; }
.wc-install-hint { position: absolute; left: 50%; top: calc(2.4rem + var(--st)); z-index: 45; transform: translateX(-50%); width: max-content; max-width: min(64rem, calc(100% - 32px)); display: flex; align-items: center; gap: 1.6rem; font-size: max(1.5rem, 13px); font-weight: 700; background: #fff; color: var(--g0); padding: .6rem .8rem .6rem 1.8rem; border-left: .8rem solid var(--ks); }
.wc-install-hint p { margin: 0; }
.wc-install-hint .wc-btn { flex: none; min-height: 44px; min-width: 44px; --btn: var(--g0); }
/* loading: the pitch (owner, 2026-11-16; src/ui/loadscreen.js, the same strip in index.html from the first paint).
   A 22-yard strip from above; the ball rolls from the bowler's end to the batter's as the first visit arrives. */
.wc-loading { position: absolute; left: 7.6rem; top: 38.6rem; width: clamp(300px, max(60rem, 56vw), 640px); max-width: calc(100% - 7.6rem - 16px); white-space: normal; }
.wc-pitch { position: relative; aspect-ratio: 10 / 1; background: #c4ab74; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 3px 0 rgba(0,0,0,.35); }
.wc-pitch > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wc-pitch-ball { position: absolute; top: 50%; left: calc(var(--x, .1536) * 100%); height: 30%; aspect-ratio: 1; border-radius: 50%; background: #b3121b; box-shadow: inset -2px -2px 0 rgba(0,0,0,.28), 0 2px 0 rgba(0,0,0,.25); transform: translate(-50%, -50%) rotate(calc(var(--x, 0) * 1440deg)); }
.wc-pitch-ball::after { content: ""; position: absolute; left: 46%; top: 8%; bottom: 8%; border-left: 2px dotted #f3e3c0; }
.wc-pitch-bail { position: absolute; left: 94.6%; top: 37%; width: .9%; height: 12%; margin-left: -.45%; background: #e8d9b0; border-radius: 1px; transform-origin: 50% 100%; }
.wc-pitch-bail + .wc-pitch-bail { top: 51%; }
.wc-loading.is-ready .wc-pitch-bail { animation: wc-bail .7s cubic-bezier(.2,.7,.4,1) forwards; }
.wc-loading.is-ready .wc-pitch-bail + .wc-pitch-bail { animation-delay: .05s; }
@keyframes wc-bail { 60% { transform: translate(260%, -260%) rotate(160deg); } 100% { transform: translate(420%, -90%) rotate(250deg); } }
.wc-loading-row { display: flex; align-items: center; gap: max(2rem, 12px); margin: max(1.2rem, 8px) 0 0; }
.wc-loading-pc { flex: none; min-width: 3.2em; font-size: max(4.4rem, 26px); line-height: 1; font-variant-numeric: tabular-nums; }
.wc-loading-text { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: max(2rem, 14px); line-height: 1.15; }
.wc-loading-text small { font-weight: 500; font-size: max(1.5rem, 12px); color: #c9d0d7; }
.wc-loading-tip { margin: max(1.4rem, 10px) 0 0; max-width: 38em; min-height: 2.6em; font-size: max(1.6rem, 13px); line-height: 1.3; color: #e3e7eb; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.wc-loading.is-failed .wc-pitch-ball { background: var(--g3); }
.wc-loading-retry { margin-top: max(1.2rem, 8px); font-size: max(1.8rem, 14px); min-height: 44px; padding: .9rem 1.8rem .7rem 1.5rem; }
.wc-loading.is-failed .wc-loading-tip { display: none; }
/* while the first visit loads the menu is not drawn: it slams in at Ready (and on a phone Play comes in, tapstart.js) */
.wc-screen-title:has(.wc-loading:not([hidden]):not(.is-leaving)) :is(.wc-menu, .wc-star, .wc-band3) { display: none; }
.wc-loading.is-leaving { opacity: 0; transition: opacity .4s .45s; pointer-events: none; }

/* ============================================================ 2 TEAMS: the dressing room */
.wc-room { position: absolute; inset: 0; background: #1b2026;
  background-image: linear-gradient(rgba(0,0,0,0) 0 calc(100% - 12rem), #5f4630 calc(100% - 12rem) calc(100% - 10rem), #3f2e20 calc(100% - 10rem) calc(100% - 9.4rem), #101316 calc(100% - 9.4rem)),
    repeating-linear-gradient(90deg, #232a31 0 .4rem, #1b2026 .4rem 12.8rem, #161a1f 12.8rem 13.1rem); }
.wc-room::before { content: ""; position: absolute; left: 0; right: 0; top: 5.6rem; height: 1rem; background: #8d969e; box-shadow: 0 .3rem 0 #4d555c; }
.wc-room::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3.4rem; background: #12161a; box-shadow: 0 .4rem 0 #2b323a; }
.wc-pegs { position: absolute; left: calc(3.4rem + var(--sl)); right: calc(2rem + var(--sr)); top: 4rem; display: flex; }
.wc-peg { flex: 0 1 12.2rem; min-width: 0; text-align: center; position: relative; display: block; }
.wc-peg svg { width: 10.4rem; max-width: 86%; height: 12.8rem; display: block; margin: 0 auto; }
.wc-peg b { display: block; font: italic 900 1.9rem/1 var(--font-x); margin-top: .6rem; }
.wc-peg span { font-size: 1.4rem; color: var(--soft); }
.wc-peg:disabled { opacity: .45; }
/* the chosen side: its shirt is off the rail (the big one below), an empty hanger and a white label are left */
.wc-peg:focus svg, .wc-peg.is-on svg { opacity: 0; }
.wc-peg:focus::before, .wc-peg.is-on::before { content: ""; position: absolute; left: 50%; margin-left: -2.7rem; top: 1.4rem; width: 5.4rem; height: 1.6rem; border: .4rem solid #8d969e; border-top: 0; border-radius: 0 0 4rem 4rem; opacity: .8; }
.wc-peg:focus b, .wc-peg.is-on b { color: var(--g0); background: #fff; display: inline-block; padding: .6rem 1.2rem .4rem; transform: skewX(-12deg); font-size: 2.2rem; margin-top: .2rem; }
.wc-peg:focus span, .wc-peg.is-on span { display: block; color: #fff; margin-top: .4rem; }
.wc-kit { position: absolute; left: calc(7rem + var(--sl)); top: 26.2rem; width: 43rem; }
.wc-kit svg { width: 43rem; height: 50rem; display: block; }
.wc-flood { position: absolute; left: 52rem; right: 0; top: 24.8rem; bottom: 0; background: var(--kf); clip-path: polygon(13.8rem 0, 100% 0, 100% 100%, 0 100%); }
.wc-flood-edge { position: absolute; left: 49.6rem; top: 24.8rem; bottom: 0; width: 17rem; background: var(--ks); clip-path: polygon(13.8rem 0, 16.2rem 0, 2.4rem 100%, 0 100%); }
.wc-sheet { position: absolute; left: 70rem; right: calc(4.4rem + var(--sr)); top: 26.8rem; color: var(--ki); }
.wc-sheet h2 { font-size: 10.8rem; margin-left: -1.8rem; white-space: nowrap; max-width: calc(100% - 30rem); line-height: 9.8rem; height: 9.8rem; }
.wc-sheet .wc-rt { position: absolute; right: 0; top: .6rem; display: flex; gap: 2.6rem; text-align: right; }
.wc-sheet .wc-rt div { font-weight: 700; font-size: 1.4rem; }
.wc-sheet .wc-rt b { display: block; font: italic 900 5rem/.9 var(--font-x); }
.wc-sheet .wc-cap { margin: .8rem 0 1.4rem 0; font-size: 1.8rem; word-spacing: .12em; }
.wc-sheet .wc-cap b { margin-right: 1.2rem; }
.wc-sq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; margin-left: -6rem; }
.wc-sq li, .wc-sq .wc-pick { display: grid; grid-template-columns: minmax(0, 1fr) 4rem 4rem; align-items: baseline; height: 3.7rem; border-bottom: .2rem solid color-mix(in srgb, var(--ki) 16%, transparent); white-space: nowrap; margin-left: calc(var(--i, 0) * -.79rem); width: 100%; }
.wc-sq .wc-n { font-weight: 700; font-size: 2.1rem; overflow: hidden; min-width: 0; }
.wc-sq .wc-n small { font-weight: 500; font-size: 1.4rem; opacity: .78; margin-left: .8rem; } .wc-sq .wc-n.is-tight small { display: none; }
.wc-sheet.is-long h2 { max-width: 100%; } .wc-sheet.is-long .wc-cap-n { display: none; } .wc-sheet.is-long .wc-rt { top: 10.2rem; gap: 1.8rem; align-items: baseline; } .wc-sheet.is-long .wc-rt div { display: flex; align-items: baseline; gap: .5rem; } .wc-sheet.is-long .wc-rt b { font-size: 3rem; display: inline; }
.wc-sq .wc-n em { font-size: 1.2rem; font-weight: 700; background: var(--ks); color: var(--ksi); padding: .2rem .5rem .1rem; margin-left: .6rem; vertical-align: .3rem; text-transform: uppercase; }
.wc-sq .wc-v { text-align: right; font-weight: 700; font-size: 2.1rem; } .wc-sq .wc-v.is-lo { opacity: .5; font-weight: 500; }
.wc-sq .wc-hd { height: 2.6rem; border: 0; font-size: 1.3rem; font-weight: 700; opacity: .8; align-items: end; }
.wc-sq .wc-hd span:nth-child(n+2) { text-align: right; }
.wc-sq .is-bench { opacity: .72; }
.wc-step { font: 500 1.4rem/1 var(--font-d); color: var(--soft); text-transform: none; }
.wc-sheet-box, .wc-card, .wc-card-col { display: contents; }

/* ---- playing XI: the same sheet, every row a control */
.wc-screen-squad .wc-sq li { display: block; height: auto; border: 0; margin-left: 0; }
.wc-screen-squad .wc-sq .wc-hd { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 4rem 4rem; height: 2.6rem; margin-left: calc(var(--i, 0) * -.79rem); }
.wc-screen-squad .wc-sq .wc-hd span:nth-child(2) { text-align: left; }
.wc-screen-squad .wc-flood { left: 40rem; } .wc-screen-squad .wc-flood-edge { left: 37.6rem; } .wc-screen-squad .wc-sheet { left: 58rem; } .wc-screen-squad .wc-sq .wc-n { font-size: 2rem; }
.wc-sq .wc-pick { grid-template-columns: 2.6rem minmax(0, 1fr) 4rem 4rem; text-align: left; color: inherit; position: relative; z-index: 0; }
.wc-sq .wc-pick .wc-no { font-weight: 700; font-size: 1.4rem; opacity: .7; }
.wc-sq .wc-pick:focus { color: var(--g0); border-bottom-color: transparent; }
.wc-sq .wc-pick:focus::before { content: ""; position: absolute; left: -3rem; right: -1.2rem; top: -.2rem; bottom: -.2rem; background: #fff; transform: skewX(-12deg); z-index: -1; }
.wc-sq .wc-pick.is-held { color: var(--ksi); border-bottom-color: transparent; }
.wc-sq .wc-pick.is-held::before { content: ""; position: absolute; left: -3rem; right: -1.2rem; top: -.2rem; bottom: -.2rem; background: var(--ks); transform: skewX(-12deg); z-index: -1; }
.wc-sq .wc-pick.is-held:focus::before { box-shadow: -1.2rem 0 0 #fff; }
.wc-sq .wc-pick.is-held em, .wc-sq .wc-pick:focus em { background: var(--g0); color: #fff; }
.wc-wall { position: absolute; left: calc(7rem + var(--sl)); top: 8.6rem; right: 4.4rem; }
.wc-wall h2 { font-size: 7.2rem; white-space: nowrap; }
.wc-wall p { font-size: 1.8rem; color: var(--soft); margin-top: .8rem; max-width: 80rem; }
.wc-status { font-weight: 700; font-size: 1.8rem; color: var(--ki); margin: 1.6rem 0 0 -6rem; min-height: 2.2rem; }
.wc-status.is-bad { background: var(--red); color: #fff; display: inline-block; padding: .5rem 1.2rem .4rem; }
.wc-sheet-actions { position: absolute; right: calc(4.4rem + var(--sr)); bottom: 3rem; z-index: 6; --btn: var(--g0); --btn-main: #fff; --btn-main-ink: var(--g0); }
.wc-screen-squad .wc-kit { top: 32rem; left: calc(4rem + var(--sl)); width: 32rem; } .wc-screen-squad .wc-kit svg { width: 32rem; height: 37rem; }

/* ============================================================ the kit column (scorecard, break, result, settings, options, credits) */
.wc-col { position: absolute; left: 0; top: 0; bottom: 0; width: 47rem; background: var(--kf); color: var(--ki); clip-path: polygon(0 0, 100% 0, calc(100% - 15rem) 100%, 0 100%); padding: 5.4rem 0 0 calc(5rem + var(--sl)); }
.wc-col-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 50rem; background: var(--ks); clip-path: polygon(calc(100% - 2.6rem) 0, 100% 0, calc(100% - 15rem) 100%, calc(100% - 17.6rem) 100%); }
.wc-col .wc-k { font-weight: 700; font-size: 1.6rem; display: block; text-transform: uppercase; }
.wc-col h2 { font-size: 5rem; margin: .6rem 0 0 -.3rem; max-width: 40rem; }
.wc-col .wc-tot { font-size: 9.8rem; margin: 2.2rem 0 0 -.6rem; line-height: 7.9rem; height: 7.9rem; white-space: nowrap; max-width: 36rem; }
.wc-col .wc-ov { font-weight: 700; font-size: 2rem; margin-top: 1.4rem; max-width: 33rem; }
.wc-col .wc-best { margin-top: 4.4rem; width: 25rem; }
.wc-col .wc-best li { padding: 1rem 0 .8rem; border-top: .3rem solid var(--ki); }
.wc-col .wc-best .wc-x { font-size: 2.7rem; display: block; white-space: nowrap; } .wc-col .wc-best span { font-weight: 700; font-size: 1.6rem; }
/* tabs: skewed slabs on the column; the chosen one is filled, the focus is a thick white outline */
.wc-tabs { position: absolute; left: calc(5rem + var(--sl)); bottom: 9rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; z-index: 2; }
.wc-tab { display: block; font: italic 900 2rem/1 var(--font-x); text-transform: uppercase; padding: 1rem 2.2rem .8rem 1.6rem; transform: skewX(-12deg); background: color-mix(in srgb, var(--ki) 16%, transparent); color: var(--ki); white-space: nowrap; }
.wc-tab > span { display: block; transform: skewX(12deg); }
.wc-tab[aria-pressed="true"], .wc-tab.is-on { background: var(--ki); color: var(--kf); }
.wc-tab:focus { outline: .4rem solid #fff; outline-offset: .3rem; }

/* ============================================================ 5 SCORECARD */
.wc-tbl { position: absolute; left: 52rem; right: calc(4.4rem + var(--sr)); top: 4.4rem; }
.wc-tbl li { display: grid; grid-template-columns: 24rem minmax(0, 1fr) 7.6rem 5rem 4.4rem 4.4rem 7rem; align-items: baseline; height: 5rem; padding-top: 1.1rem; border-bottom: .2rem solid rgba(255,255,255,.14); margin-left: calc(var(--i, 0) * -1.06rem); white-space: nowrap; }
.wc-tbl li span:nth-child(n+3) { text-align: right; }
.wc-tbl .wc-n { font-size: 2.5rem; overflow: hidden; margin-right: 1.4rem; } .wc-tbl .wc-how { color: var(--soft); font-size: 1.7rem; overflow: hidden; text-overflow: ellipsis; }
.wc-tbl .wc-R { font: italic 900 3.2rem/.9 var(--font-x); } .wc-tbl .wc-sr { color: var(--soft); font-size: 1.6rem; }
.wc-tbl li.is-notout .wc-n, .wc-tbl li.is-notout .wc-R { color: var(--ka); } .wc-tbl li.is-notout .wc-how { color: #fff; font-weight: 700; }
.wc-tbl .wc-hd { height: 2.8rem; padding-top: 0; font-size: 1.3rem; font-weight: 700; color: var(--soft); align-items: end; padding-bottom: .5rem; }
.wc-tbl .wc-ex { height: 4rem; padding-top: .9rem; border-bottom: 0; color: #d5dbe1; font-weight: 700; } .wc-tbl .wc-ex .wc-R { font-size: 2.2rem; color: #fff; }
.wc-tbl li.wc-dnb { display: block; height: auto; padding: .2rem 0 .6rem; border-bottom: 0; color: var(--soft); font-size: 1.5rem; white-space: normal; line-height: 1.3; }
/* eleven batters: the rows close up so the bowling still fits under them */
.wc-tbl.is-long li { height: 4.1rem; padding-top: .7rem; margin-left: calc(var(--i, 0) * -.87rem); } .wc-tbl.is-long .wc-n { font-size: 2.2rem; } .wc-tbl.is-long .wc-R { font-size: 2.7rem; }
.wc-tbl.is-long .wc-hd { height: 2.6rem; padding-top: 0; } .wc-tbl.is-long .wc-ex { height: 3.4rem; }
.wc-bw { position: absolute; left: 33rem; right: calc(4.4rem + var(--sr)); bottom: 8.2rem; }
.wc-bw h3 { display: inline-block; background: var(--wf); color: var(--wi); padding: .8rem 2rem .6rem 1.6rem; transform: skewX(-12deg); font: italic 900 2rem/1 var(--font-x); text-transform: uppercase; margin: 0 0 1rem 3rem; }
.wc-bw h3 span { display: block; transform: skewX(12deg); }
.wc-bw ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem 1.2rem; }
.wc-bw li { transform: skewX(-12deg); background: var(--g1); border-left: .8rem solid var(--wf); padding: .9rem 1.8rem .7rem 1.6rem; min-width: 0; }
.wc-bw li > div { transform: skewX(12deg); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; white-space: nowrap; }
.wc-bw li:nth-child(n+4) { margin-left: -1.4rem; margin-right: 1.4rem; } .wc-bw li:nth-child(n+7) { margin-left: -2.8rem; margin-right: 2.8rem; }
.wc-bw .wc-x { font-size: 2rem; min-width: 0; overflow: hidden; } .wc-bw .wc-f { font-weight: 700; font-size: 2.1rem; } .wc-bw .wc-f small { font-weight: 500; font-size: 1.5rem; color: var(--soft); margin-left: .8rem; }
.wc-fowc { position: absolute; left: 31.6rem; right: calc(4.4rem + var(--sr)); bottom: 3rem; font-size: 1.6rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-fowc b { color: #fff; margin: 0 .4rem 0 1.6rem; } .wc-fowc strong { font: italic 900 1.5rem/1 var(--font-x); color: #fff; text-transform: uppercase; }

/* ============================================================ innings break and result */
.wc-figs { position: absolute; left: 52rem; right: calc(4.4rem + var(--sr)); top: 5.4rem; bottom: 12rem; display: grid; grid-template-columns: 32rem minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 2.4rem 4.4rem; }
.wc-fig { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.wc-fig figcaption { display: inline-block; align-self: flex-start; background: var(--g0); padding: .7rem 1.8rem .5rem 1.4rem; transform: skewX(-12deg); font: italic 900 1.7rem/1 var(--font-x); text-transform: uppercase; margin: 0 0 1rem -.6rem; }
.wc-fig figcaption span { display: block; transform: skewX(12deg); }
.wc-fig-wide { grid-column: 2; } .wc-fig-tall { grid-row: 1 / span 2; }
.wc-fig > div { min-height: 0; flex: 1; } .wc-fig svg { display: block; width: 100%; height: 100%; max-height: 100%; }
.wc-chart-key { display: flex; gap: 1.8rem; font-size: 1.4rem; font-weight: 700; color: var(--soft); margin-top: .8rem; }
.wc-chart-key i { display: inline-block; width: 2rem; height: .8rem; margin-right: .6rem; transform: skewX(-12deg); background: #fff; vertical-align: .1rem; }
.wc-chart-key .is-four { background: var(--ka); } .wc-chart-key .is-six { background: #fff; height: 1.2rem; } .wc-chart-key .is-run { background: var(--soft); height: .4rem; } .wc-chart-key .is-wicket { width: 1rem; height: 1rem; background: var(--red); } .wc-chart-key .is-s0 { background: var(--c0, #fff); } .wc-chart-key .is-s1 { background: var(--c1, var(--soft)); }
/* the charts (src/ui/charts.js): recoloured for graphite */
.wc-chart text { font: 700 11px var(--font-d); fill: var(--soft); }
.wc-wagon-field { fill: #1d3a26; stroke: rgba(255,255,255,.5); stroke-width: 1.5; }
.wc-wagon-ring { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 4 5; }
.wc-wagon-pitch { fill: #d9c391; }
.wc-wagon-run { stroke: var(--soft); stroke-width: 1.2; opacity: .8; } .wc-wagon-four { stroke: var(--ka); stroke-width: 2.4; } .wc-wagon-six { stroke: #fff; stroke-width: 3.4; }
.wc-wagon-origin { fill: #fff; }
.wc-worm-grid { stroke: rgba(255,255,255,.12); stroke-width: 1; } .wc-worm-axis { stroke: rgba(255,255,255,.5); stroke-width: 1.5; }
.wc-worm-target { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 6 5; }
.wc-worm-line { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke: #fff; } .wc-worm-wicket { fill: var(--red); stroke: var(--g0); stroke-width: 2; }
.wc-worm-line.wc-worm-s0 { stroke: var(--c0, #fff); } .wc-worm-line.wc-worm-s1 { stroke: var(--c1, var(--soft)); }
.wc-manhattan-bar { fill: var(--ka); } .wc-manhattan-wicket { fill: var(--red); stroke: var(--g0); stroke-width: 1.5; }
.wc-foot-actions { position: absolute; right: calc(4.4rem + var(--sr)); bottom: 3rem; z-index: 6; }
.wc-btn .wc-clock { bottom: 0; height: .6rem; background: rgba(14,17,20,.18); }
/* the result: a verdict, so it stamps down on the ride */
.wc-verdict-edge { position: absolute; right: -6rem; bottom: 8.2rem; width: 104rem; height: 1.4rem; background: #fff; transform: rotate(-5deg); transform-origin: 100% 100%; }
.wc-verdict { position: absolute; right: -6rem; bottom: 9.6rem; width: 101rem; min-height: 21.6rem; background: var(--red); color: #fff; transform: rotate(-5deg); clip-path: polygon(5.2rem 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; gap: 3rem; padding: 1rem 11rem 1rem 9.6rem; animation: wc-stamp .5s cubic-bezier(.2,1.3,.4,1) both; animation-delay: var(--d, 0s); }
.wc-verdict > .wc-x { font-size: 19.6rem; line-height: .8; margin-top: .8rem; white-space: nowrap; }
.wc-verdict p { font-weight: 700; font-size: 2.1rem; line-height: 1.25; } .wc-verdict p b { display: block; font: italic 900 3rem/1 var(--font-x); text-transform: uppercase; margin-bottom: .8rem; }
/* (QA P1-20) NOT OUT on one line ran off the right edge: NOT over OUT */
.wc-verdict.is-notout { background: var(--ok); } .wc-verdict.is-notout > .wc-x { font-size: 11.6rem; line-height: .8; white-space: normal; width: min-content; }
.wc-verdict.is-team { background: var(--kf); color: var(--ki); } .wc-verdict.is-team > .wc-x { font-size: 9.6rem; line-height: .86; white-space: normal; max-width: 62rem; }
.wc-verdict.is-tie { background: #fff; color: var(--g0); } .wc-verdict.is-tie > .wc-x { font-size: 13rem; }
.wc-result-lines { margin-top: 3.4rem; width: 31rem; }
.wc-result-lines li { padding: 1rem 0 .8rem; border-top: .3rem solid var(--ki); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 1rem; }
.wc-result-lines .wc-x { font-size: 2.2rem; min-width: 0; overflow: hidden; } .wc-result-lines .wc-x + .wc-x { font-size: 3.4rem; text-align: right; overflow: visible; } .wc-result-lines small { font-weight: 700; font-size: 1.5rem; grid-column: 1 / -1; }
.wc-pom { position: absolute; left: 52rem; top: 5.4rem; }
.wc-pom small { display: block; font-weight: 700; font-size: 1.6rem; color: var(--soft); text-transform: uppercase; margin-bottom: .6rem; }
.wc-pom .wc-x { font-size: 6.4rem; display: block; white-space: nowrap; }
.wc-pom > span { display: inline-block; margin-top: 1rem; background: var(--kf); color: var(--ki); padding: .6rem 1.4rem .5rem; font-weight: 700; font-size: 1.7rem; transform: skewX(-12deg); }
.wc-pom > span i { display: inline-block; transform: skewX(12deg); }
.wc-screen-result .wc-figs { top: 21rem; bottom: 45rem; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); right: 34rem; }
.wc-screen-result .wc-verdict { bottom: 13rem; min-height: 17rem; width: 96rem; } .wc-screen-result .wc-verdict-edge { bottom: 11.6rem; width: 99rem; }
.wc-screen-result .wc-verdict.is-team > .wc-x { font-size: 7.4rem; max-width: 58rem; } .wc-screen-result .wc-verdict.is-tie > .wc-x { font-size: 11rem; }

/* ============================================================ option rows (match settings, options) */
.wc-rows { position: absolute; left: 52rem; right: calc(4.4rem + var(--sr)); top: 5.4rem; bottom: 11rem; display: flex; flex-direction: column; gap: 0; }
.wc-rows.is-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 5rem; align-content: start; }
.wc-rows.is-two .wc-seg-row { grid-template-columns: 12.5rem minmax(0, 1fr); margin-left: 0; padding: .8rem 0 .7rem; } .wc-rows.is-two .wc-seg-btn { font-size: 1.6rem; padding: .9rem 1.5rem .7rem 1.2rem; } .wc-rows.is-two .wc-seg { gap: .6rem; } .wc-rows.is-two .wc-opt-group { margin-bottom: 1.6rem; }
.wc-opt-group { display: flex; flex-direction: column; margin-bottom: 2rem; min-width: 0; }
.wc-opt-group > h3 { display: inline-block; align-self: flex-start; background: #fff; color: var(--g0); padding: .7rem 1.8rem .5rem 1.4rem; transform: skewX(-12deg); font: italic 900 1.8rem/1 var(--font-x); text-transform: uppercase; margin: 0 0 .4rem -.6rem; }
.wc-opt-group > h3 span { display: block; transform: skewX(12deg); }
.wc-seg-row { display: grid; grid-template-columns: 16rem minmax(0, 1fr); align-items: center; gap: .2rem 1.6rem; padding: 1.1rem 0 1rem; border-bottom: .2rem solid rgba(255,255,255,.14); margin-left: calc(var(--i, 0) * -1.06rem); }
.wc-seg-label { font-weight: 700; font-size: 1.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-seg { display: flex; flex-wrap: wrap; gap: .8rem; }
.wc-seg-btn { font: italic 900 1.9rem/1 var(--font-x); text-transform: uppercase; padding: 1rem 1.9rem .8rem 1.5rem; transform: skewX(-12deg); background: var(--g2); color: #fff; white-space: nowrap; }
.wc-seg-btn > span { display: block; transform: skewX(12deg); }
.wc-seg-btn[aria-pressed="true"] { background: var(--ka); color: var(--g0); }
.wc-seg-btn:focus { outline: .4rem solid #fff; outline-offset: .3rem; }
.wc-seg-btn:disabled { opacity: .4; }
.wc-seg-note { grid-column: 2; font-size: 1.5rem; color: var(--soft); min-height: 1.7rem; }
.wc-seg-note-only { grid-column: 2; grid-row: 1; }
/* a level from 0 to 100: a skewed track that fills, the number in display type */
.wc-level-wrap { display: flex; align-items: center; gap: 1.6rem; }
.wc-level { flex: 1; max-width: 30rem; height: 3.6rem; display: flex; align-items: center; cursor: pointer; touch-action: none; }   /* a drag on a level never pans the panel: the tap after it was spent stopping the scroll */
.wc-level-track { position: relative; display: block; width: 100%; height: 1.6rem; background: var(--g2); transform: skewX(-12deg); overflow: hidden; }
.wc-level-track > i { position: absolute; inset: 0; background: var(--ka); transform-origin: 0 50%; transform: scaleX(var(--v, 0)); }
.wc-level:focus .wc-level-track { outline: .4rem solid #fff; outline-offset: .3rem; }
.wc-level-num { font: italic 900 2.4rem/1 var(--font-x); min-width: 5rem; text-align: right; }
.wc-screen-settings .wc-rows { top: 8rem; } .wc-screen-settings .wc-seg-row { grid-template-columns: 14rem minmax(0, 1fr); padding: 1.5rem 0 1.3rem; }
.wc-versus { font-size: 4.2rem; line-height: .95; margin-top: 1rem; } .wc-versus small { display: block; font: 700 1.8rem/1.6 var(--font-d); text-transform: none; }
.wc-facts { margin-top: 4.4rem; width: 26rem; } .wc-facts li { padding: 1rem 0 .8rem; border-top: .3rem solid var(--ki); font-weight: 700; font-size: 1.6rem; } .wc-facts .wc-x { display: block; font-size: 2.7rem; }

/* ============================================================ toss */
.wc-toss-a, .wc-toss-b { position: absolute; top: 0; bottom: 0; width: 38rem; background: var(--kf); color: var(--ki); padding-top: 9rem; }
.wc-toss-a { left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 15rem) 100%, 0 100%); padding-left: calc(5rem + var(--sl)); }
.wc-toss-b { right: 0; clip-path: polygon(15rem 0, 100% 0, 100% 100%, 0 100%); padding-right: calc(5rem + var(--sr)); text-align: right; padding-top: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12rem; }
.wc-toss-a-edge, .wc-toss-b-edge { position: absolute; top: 0; bottom: 0; width: 41rem; background: var(--ks); }
.wc-toss-a-edge { left: 0; clip-path: polygon(calc(100% - 2.6rem) 0, 100% 0, calc(100% - 15rem) 100%, calc(100% - 17.6rem) 100%); }
.wc-toss-b-edge { right: 0; clip-path: polygon(15rem 0, 17.6rem 0, 2.6rem 100%, 0 100%); }
.wc-toss-a small, .wc-toss-b small { font-weight: 700; font-size: 1.6rem; display: block; text-transform: uppercase; }
.wc-toss-a .wc-x, .wc-toss-b .wc-x { font-size: 5.6rem; display: block; margin-top: .6rem; }
.wc-toss-a p, .wc-toss-b p { font-weight: 700; font-size: 1.7rem; margin-top: 1.2rem; } .wc-toss-a p b, .wc-toss-b p b { font: italic 900 4.4rem/1 var(--font-x); display: block; }
.wc-toss-a .wc-x, .wc-toss-b .wc-x { max-width: 27rem; white-space: nowrap; } .wc-toss-b .wc-x { margin-left: auto; }
.wc-toss-mid { position: absolute; left: 34rem; right: 34rem; top: 9rem; bottom: 9rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2.4rem; text-align: center; }
.wc-toss-line { background: var(--g0); padding: 1.2rem 2.6rem 1rem; transform: skewX(-12deg); font: italic 900 3rem/1.05 var(--font-x); text-transform: uppercase; max-width: 64rem; }
.wc-toss-line > span { display: block; transform: skewX(12deg); }
.wc-toss-body { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; }
.wc-toss-mid .wc-actions { --btn-main: #fff; --btn-main-ink: var(--g0); }
.wc-coin { width: 15rem; height: 15rem; border-radius: 50%; background: #dfe4e8; color: var(--g0); display: grid; place-items: center; box-shadow: inset 0 -.9rem 0 rgba(0,0,0,.25), 0 0 0 .6rem var(--g0); margin-bottom: auto; margin-top: 6rem; }
.wc-coin b { font: italic 900 9rem/1 var(--font-x); }
.wc-coin.is-flip { animation: wc-coin .9s cubic-bezier(.2,.8,.3,1) both; }
@keyframes wc-coin { from { transform: translateY(-16rem) rotateX(1440deg) scale(.7); } to { transform: none; } }
.wc-countdown { font-weight: 700; font-size: 1.7rem; min-height: 2rem; background: rgba(14,17,20,.8); padding: .5rem 1.2rem .4rem; } .wc-countdown:empty { visibility: hidden; }

/* ============================================================ pause, field: the title column again, over the ground */
.wc-screen-pause .wc-band, .wc-screen-field .wc-band { top: 13rem; height: 13.6rem; } .wc-screen-pause .wc-band2, .wc-screen-field .wc-band2 { top: 26.6rem; } .wc-screen-pause .wc-band3, .wc-screen-field .wc-band3 { top: 29.2rem; }
.wc-screen-pause .wc-logo, .wc-screen-field .wc-logo { top: 15rem; font-size: 6.8rem; white-space: nowrap; } .wc-screen-pause .wc-logo small, .wc-screen-field .wc-logo small { font-size: 2rem; }
.wc-screen-pause .wc-menu, .wc-screen-field .wc-menu { top: 33rem; }
.wc-screen-pause .wc-menu-item, .wc-screen-field .wc-menu-item { font-size: 3rem; line-height: 4.8rem; }
.wc-screen-pause .wc-menu-item:focus, .wc-screen-pause .wc-menu-item.is-on, .wc-screen-field .wc-menu-item:focus, .wc-screen-field .wc-menu-item.is-on { font-size: 5rem; line-height: 7rem; height: 7.4rem; }
.wc-screen-field .wc-menu-item:focus, .wc-screen-field .wc-menu-item.is-on { height: 9.2rem; }
.wc-screen-field .wc-menu-item[aria-pressed="true"]:not(:focus):not(.is-on) { opacity: 1; color: var(--ka); }
.wc-note { font-size: 1.6rem; color: var(--soft); }
.wc-screen-pause .wc-note { position: absolute; right: calc(4.4rem + var(--sr)); bottom: 3rem; background: rgba(14,17,20,.8); padding: .7rem 1.4rem .6rem; color: #fff; }

/* ============================================================ how to play, credits */
.wc-how-cols { position: absolute; left: 52rem; right: calc(4.4rem + var(--sr)); top: 5.4rem; bottom: 11rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 5rem; align-content: start; }
.wc-how-cols h3 { display: inline-block; background: #fff; color: var(--g0); padding: .7rem 1.8rem .5rem 1.4rem; transform: skewX(-12deg); font: italic 900 1.8rem/1 var(--font-x); text-transform: uppercase; margin: 0 0 .6rem -.6rem; }
.wc-how-cols h3 span { display: block; transform: skewX(12deg); }
.wc-how li { display: grid; grid-template-columns: 9.6rem minmax(0, 1fr); gap: 0 1.4rem; align-items: center; min-height: 4.4rem; padding: .5rem 0 .4rem; border-bottom: .2rem solid rgba(255,255,255,.14); font-size: 1.6rem; line-height: 1.2; margin-left: calc(var(--i, 0) * -.9rem); }
.wc-how li b { font: italic 900 1.6rem/1 var(--font-x); text-transform: uppercase; margin-right: .4rem; }
.wc-how-keys { display: flex; gap: .6rem; align-items: center; justify-content: flex-end; }
.wc-how + h3 { margin-top: 2.2rem; }
.wc-how-cols .wc-note { margin-top: 1rem; color: #d5dbe1; line-height: 1.3; }
.wc-screen-howto .wc-diamond { position: relative; right: auto; bottom: auto; margin: 3.4rem 0 0 1rem; }
.wc-credits { position: absolute; left: 52rem; right: calc(4.4rem + var(--sr)); top: 4.4rem; bottom: 10rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #fff var(--g2); }
.wc-credits h3 { display: inline-block; background: #fff; color: var(--g0); padding: .7rem 1.8rem .5rem 1.4rem; transform: skewX(-12deg); font: italic 900 1.8rem/1 var(--font-x); text-transform: uppercase; margin: 2.4rem 0 .4rem -.6rem; } .wc-credits h3:first-child { margin-top: 0; }
.wc-credits h3 span { display: block; transform: skewX(12deg); }
.wc-credits li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 16rem; gap: 0 2rem; align-items: baseline; min-height: 4.2rem; padding: .9rem 0 .7rem; border-bottom: .2rem solid rgba(255,255,255,.14); }
.wc-credits .wc-x { font-size: 2rem; line-height: 1.05; } .wc-credits li span { font-size: 1.6rem; } .wc-credits li small { font-size: 1.4rem; font-weight: 700; color: var(--soft); text-align: right; }
.wc-credits p { font-size: 1.6rem; color: var(--soft); padding: 1rem 0; }
.wc-credits:focus { outline: .3rem solid #fff; outline-offset: 1rem; }

/* ============================================================ pickers: over the ground, a staircase off the right edge */
.wc-pk-head { position: absolute; left: -2.4rem; top: 2.6rem; }
.wc-pk-list { position: absolute; right: -2.4rem; top: 4rem; bottom: 8rem; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.wc-pk-row { display: flex; transform: skewX(-12deg); background: var(--g0); color: #fff; }
.wc-pk-row > div { transform: skewX(12deg); display: grid; grid-template-columns: 22rem 17rem 6.4rem 10.5rem 4.4rem; align-items: baseline; gap: 0 1.4rem; padding: 1rem 5.6rem .8rem 2rem; white-space: nowrap; }
.wc-pk-row:nth-child(n) { margin-right: calc(var(--i, 0) * .9rem - 6rem); } .wc-pk-row > div { padding-right: 11rem; }
.wc-pk-name { font: italic 900 2.2rem/1 var(--font-x); text-transform: uppercase; overflow: hidden; }
.wc-pk-sub { font-size: 1.5rem; color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.wc-pk-quota { display: flex; gap: .3rem; } .wc-pk-quota i { width: .9rem; height: 1.3rem; background: var(--amber); transform: skewX(-12deg); } .wc-pk-quota i.is-used { background: var(--g3); }
.wc-pk-fig { font-weight: 700; font-size: 1.8rem; text-align: right; } .wc-pk-rate { font: italic 900 2.2rem/1 var(--font-x); text-align: right; }
.wc-pk-row:disabled { opacity: .5; } .wc-pk-row:disabled .wc-pk-sub { color: var(--redt); }
.wc-pk-row:focus { background: #fff; color: var(--g0); } .wc-pk-row:focus .wc-pk-sub { color: #2a3038; font-weight: 700; }
.wc-pk-row:focus > div { padding-left: 4.4rem; }
.wc-pk-cols { display: grid; grid-template-columns: 22rem 17rem 6.4rem 10.5rem 4.4rem; gap: 0 1.4rem; padding: 0 5.6rem 0 2rem; font-size: 1.3rem; font-weight: 700; color: #fff; background: rgba(14,17,20,.8); margin-right: 1rem; height: 2.4rem; align-items: center; }
.wc-pk-cols span:nth-child(n+4) { text-align: right; }

/* (owner, 2026-11-13: "The pause button on the change bowler screen has a lot of accidental taps. move it to left")
   the pickers' help bar, with Pause, sits bottom left, away from the rows down the right (on a phone, top right, with
   the rows down the left: see the end of this file) */
.wc-help-pick { left: 0; right: auto; }
.wc-ui.wc-picking .wc-flags, .wc-ui.wc-picking .wc-ticker, .wc-ui.wc-picking .wc-corner, .wc-ui.wc-picking .wc-banner, .wc-ui.wc-picking .wc-controls, .wc-ui.wc-picking .wc-stamp, .wc-ui.wc-picking .wc-touch { display: none; }
.wc-screen.is-overlay .wc-pk-list { bottom: 7rem; }

/* ============================================================ 3 HUD */
.wc-hud { position: absolute; inset: 0; --kf: var(--bf); --ks: var(--bs); --ki: var(--bi); --kq: var(--bq); --ka: var(--ba); --ksi: var(--bsi); --kb: var(--bb); }
.wc-hud.is-dimmed { opacity: 0; }
/* top left: the fixture, then what is special about this ball */
.wc-flags { position: absolute; left: calc(-2.4rem + var(--sl)); top: calc(2.6rem + var(--st)); display: flex; align-items: flex-start; }
.wc-strip { display: flex; }
.wc-strip > div { background: var(--g0); padding: .9rem 2.2rem .7rem 6rem; font-weight: 700; font-size: 1.5rem; display: flex; gap: 1.8rem; align-items: center; white-space: nowrap; min-height: 3.6rem; }
.wc-strip .wc-x { font-size: 1.7rem; } .wc-strip em { color: var(--soft); font-weight: 500; }
.wc-rev { display: inline-flex; align-items: center; gap: .6rem; }
.wc-pips { display: inline-flex; gap: .4rem; } .wc-pips i { width: .9rem; height: 1.3rem; background: var(--g3); transform: skewX(-12deg); } .wc-pips i.is-on { background: var(--amber); }
.wc-flag { font: italic 900 1.7rem/1 var(--font-x); text-transform: uppercase; padding: .95rem 1.8rem .75rem 1.6rem; transform: skewX(-12deg); background: #fff; color: var(--g0); white-space: nowrap; min-height: 3.6rem; margin-left: -.1rem; }
.wc-flag > span { display: block; transform: skewX(12deg); }
.wc-flag-fh { background: var(--amber); } .wc-flag-so { background: var(--red); color: #fff; }
.wc-ticker { position: absolute; left: calc(-2.4rem + var(--sl)); top: calc(7.2rem + var(--st)); max-width: 50rem; font-size: 1.8rem; font-weight: 700; line-height: 1.25; background: rgba(14,17,20,.86); padding: .8rem 1.8rem .7rem 5rem; transform: skewX(-12deg); }
.wc-ticker > p { transform: skewX(12deg); } .wc-ticker b { color: var(--wa); margin-right: .5rem; }
.wc-ticker.is-in { animation: wc-slam .32s cubic-bezier(.16,.9,.3,1) both; }
/* the over.ball prefix takes the colour of the moment: the batting side's for a boundary, red for a wicket */
.wc-ticker-boundary b, .wc-ticker-excited b { color: var(--ba); } .wc-ticker-wicket b { color: var(--redt); } .wc-ticker-info b { color: #fff; }
/* top right: pause and sound, the field */
.wc-corner { position: absolute; right: calc(3.4rem + var(--sr)); top: calc(2.6rem + var(--st)); display: flex; align-items: flex-start; gap: 3rem; }
.wc-corner-btns { display: flex; gap: 1.6rem; margin-top: .4rem; }
.wc-hud-btn { font-size: 1.3rem; } .wc-hud-btn:focus { outline: .3rem solid #fff; outline-offset: .4rem; }
.wc-radar-box { width: 19rem; position: relative; }
.wc-radar-tab { display: inline-block; position: relative; z-index: 1; background: var(--wf); color: var(--wi); font: italic 900 1.5rem/1 var(--font-x); text-transform: uppercase; padding: .7rem 1.4rem .5rem; transform: skewX(-12deg); margin-left: .8rem; white-space: nowrap; }
.wc-radar-tab > span { display: block; transform: skewX(12deg); }
.wc-radar { display: block; width: 19rem; height: 19rem; margin-top: -.6rem; }
.wc-radar-label { display: block; text-align: right; font-weight: 700; font-size: 1.4rem; margin-top: -.8rem; min-height: 1.6rem; }
/* a background download: under Pause and Sound, left of the field, out of every lane */
.wc-loadchip { position: absolute; right: 22.4rem; top: 4.6rem; justify-content: center; display: flex; flex-direction: column; align-items: stretch; gap: .4rem; background: var(--g0); padding: .7rem 1.4rem .6rem; transform: skewX(-12deg); font-weight: 700; font-size: 1.3rem; white-space: nowrap; color: #fff; }
.wc-loadchip small { transform: skewX(12deg); font-size: inherit; } .wc-loadchip-bar { height: .4rem; background: var(--g3); overflow: hidden; } .wc-loadchip-bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.wc-loadchip.is-failed { background: var(--red); }

/* bottom left: the staircase. Bowler on top in the bowling side's colour, the batters, the score in the batting side's. */
.wc-bug { position: absolute; left: calc(-2.4rem + var(--sl)); bottom: calc(2.6rem + var(--sb)); display: flex; flex-direction: column; align-items: flex-start; }
.wc-score { display: flex; align-items: flex-end; margin-top: 2.1rem; }
.wc-score-main { background: var(--bf); color: var(--bi); padding: 1.2rem 3rem 1rem 6rem; position: relative; }
.wc-score-main::before { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; background: var(--bs); }
.wc-score-main::after, .wc-bowler > div::after { content: ""; position: absolute; left: .9rem; right: -.9rem; bottom: -.7rem; height: .7rem; background: var(--bb); }
.wc-score-main > div { display: flex; align-items: flex-end; gap: 1.4rem; }
.wc-score-main .wc-t { font-size: 2.4rem; padding-bottom: .6rem; }
.wc-score-main .wc-s { font-size: 7.6rem; line-height: .82; white-space: nowrap; } .wc-score-main .wc-s.is-long { font-size: 6.2rem; }
.wc-score-side { background: var(--g0); padding: .9rem 2.6rem .8rem 2.2rem; margin-left: -.1rem; }
.wc-score-side > div { line-height: 1.1; }
.wc-score-side .wc-o { font-size: 2.8rem; white-space: nowrap; } .wc-score-side .wc-o small { font: 700 1.4rem var(--font-d); letter-spacing: 0; margin-left: .5rem; color: var(--soft); text-transform: none; }
/* (playtest 11b) the difficulty beside the overs: quiet, but big enough to read on a phone, where the bug is drawn at .66 */
.wc-score-side .wc-o small.wc-diff { margin-left: 1.2rem; padding-left: 1.2rem; border-left: .2rem solid rgba(255, 255, 255, .25); font-size: 2rem; }
.wc-score-side .wc-need { font-weight: 700; font-size: 1.7rem; color: var(--ba); margin-top: .3rem; white-space: nowrap; }
.wc-score-side .wc-rates { font-weight: 700; font-size: 1.3rem; color: var(--soft); margin-top: .2rem; white-space: nowrap; }
.wc-bats { display: block; }
.wc-bat { display: flex; width: max-content; margin-top: .5rem; }
.wc-bat > div { display: flex; align-items: baseline; gap: 1.2rem; padding: .7rem 2.4rem .5rem 6rem; background: var(--g0); white-space: nowrap; }
.wc-bat .wc-nm { font-size: 2.1rem; } .wc-bat .wc-r { font-size: 2.6rem; } .wc-bat small { font-size: 1.5rem; color: var(--soft); font-weight: 700; }
.wc-bat.is-strike > div { background: #fff; color: var(--g0); } .wc-bat.is-strike small { color: #4a525c; }
.wc-bat.is-strike .wc-nm { font-size: 2.8rem; } .wc-bat.is-strike .wc-r { font-size: 3.4rem; }
.wc-bat.is-strike > div::before { content: ""; width: 0; height: 0; border-left: 1.4rem solid var(--bm); border-top: 1rem solid transparent; border-bottom: 1rem solid transparent; align-self: center; margin-right: -.2rem; }
.wc-bat:not(.is-strike) { margin-left: -.8rem; }
.wc-bowler { display: flex; margin: 0 0 .9rem 1.2rem; }
.wc-bowler > div { background: var(--wf); color: var(--wi); padding: .9rem 2.6rem .8rem 4.8rem; position: relative; }
.wc-bowler > div::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; background: var(--ws); }
.wc-bowler > div::after { background: var(--wb); }
.wc-bowler .wc-l1 { display: flex; align-items: baseline; gap: 1.2rem; white-space: nowrap; }
.wc-bowler .wc-nm { font-size: 2.4rem; } .wc-bowler .wc-f { font-size: 2.6rem; } .wc-bowler small { font-weight: 700; font-size: 1.5rem; color: var(--wq); }
.wc-chips { display: flex; gap: .5rem; margin-top: .6rem; }
.wc-chip { min-width: 3rem; height: 2.4rem; padding: 0 .4rem; background: var(--wi); color: var(--wf); font: 700 1.7rem/2.5rem var(--font-d); text-align: center; transform: skewX(-12deg); }
.wc-chip-dot { opacity: .75; } .wc-chip-four, .wc-chip-six { background: var(--bf); color: var(--bi); box-shadow: inset 0 -.4rem 0 var(--bs); } .wc-chip-wicket { background: var(--red); color: #fff; }
.wc-chip-extra { background: var(--amber); color: var(--g0); }
.wc-chip-now { background: none; box-shadow: inset 0 0 0 .3rem var(--wi); } .wc-chip-empty { background: color-mix(in srgb, var(--wi) 22%, transparent); }

/* When the player bowls the camera sits low behind the bowler (or behind the keeper) and the pitch fans
   out across the bottom of the screen: the overs slab goes on top of the score so the stack stays narrow. */
.wc-hud.is-bowling .wc-score { flex-direction: column-reverse; align-items: flex-start; } .wc-hud.is-bowling .wc-score-side { margin: 0 0 1.5rem 1.2rem; }
.wc-hud.is-bowling .wc-score-side > div { display: flex; align-items: baseline; gap: 1.6rem; } .wc-hud.is-bowling .wc-score-side .wc-need { margin-top: 0; }
.wc-hud.is-bowling .wc-bowler small, .wc-hud.is-bowling .wc-score-side .wc-rates { display: none; }
.wc-bat .wc-nm { max-width: 27rem; } .wc-bowler .wc-nm { max-width: 22rem; }
/* compact (a live ball, a close shot): the stack is scaled from the corner, so the overs slab lines up with the score or its first figure leaves the screen */
.wc-ui:not(.is-touch) .wc-hud.is-bowling.is-live .wc-score-side, .wc-ui:not(.is-touch) .wc-hud.is-bowling.is-tight .wc-score-side { margin-left: 0; padding-left: 6rem; }
/* bottom right: your hands. The diamond is W A S D; shoulder shapes are Shift and Q; the d-pad is the aim. */
.wc-controls { position: absolute; right: calc(3.4rem + var(--sr)); bottom: calc(2.6rem + var(--sb)); display: flex; flex-direction: column; align-items: flex-end; gap: 1.2rem; }
.wc-diamond { position: relative; width: 31.8rem; height: 21.4rem; }
.wc-diamond .wc-fb { position: absolute; width: 4.6rem; height: 4.6rem; font-size: 2.2rem; }
.wc-lab { position: absolute; font: italic 900 1.6rem/1 var(--font-x); text-transform: uppercase; background: var(--g0); padding: .6rem 1rem .5rem; transform: skewX(-12deg); white-space: nowrap; }
.wc-lab > i { display: block; transform: skewX(12deg); }
.wc-diamond .wc-fb.is-w { right: 11rem; top: 3rem; } .wc-lab.is-w { right: 16.2rem; top: 4rem; }
.wc-diamond .wc-fb.is-l { right: 16.4rem; top: 8.4rem; } .wc-lab.is-l { right: 21.6rem; top: 9.4rem; }
.wc-diamond .wc-fb.is-r { right: 5.6rem; top: 8.4rem; } .wc-lab.is-r { right: 0; top: 6rem; }
.wc-diamond .wc-fb.is-s { right: 10.4rem; top: 13.8rem; width: 5.8rem; height: 5.8rem; font-size: 2.7rem; } .wc-lab.is-s { right: 17rem; top: 15.4rem; background: #fff; color: var(--g0); font-size: 2rem; }
.wc-diamond .wc-sh { position: absolute; top: 0; } .wc-diamond .wc-sh.is-q { right: 0; } .wc-diamond .wc-sh.is-mod { right: 20rem; }
.wc-diamond .wc-slab { position: absolute; font-weight: 700; font-size: 1.4rem; top: .6rem; white-space: nowrap; }
.wc-diamond .wc-slab.is-q { right: 4.4rem; } .wc-diamond .wc-slab.is-mod { right: 12.6rem; }
.wc-aim { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: .8rem; font: italic 900 1.4rem/1 var(--font-x); text-transform: uppercase; }
.wc-aim .wc-dp.is-ud::before, .wc-aim .wc-dp.is-lr::after { background: var(--ba); }
.wc-hint-tip { font-weight: 700; font-size: 1.5rem; background: rgba(14,17,20,.86); padding: .6rem 1.4rem .5rem; max-width: 34rem; text-align: right; line-height: 1.25; }
.wc-hud:has(.wc-banner:not([hidden])) .wc-hint-tip, .wc-hud:has(.wc-prompt:not([hidden])) .wc-hint-tip, .wc-controls[data-level="compact"] .wc-hint-tip, .wc-controls[data-level="compact"] .wc-slab { display: none; }
.wc-controls[data-level="off"] .wc-hints { display: none; }
/* glyph rows: running, the next ball, the review */
.wc-hints { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.wc-hint { display: flex; align-items: center; gap: 1rem; }
.wc-hint .wc-lab { position: static; } .wc-hint.is-main .wc-lab { background: #fff; color: var(--g0); font-size: 2rem; }
.wc-hint.is-main .wc-fb { width: 5.8rem; height: 5.8rem; font-size: 2.2rem; } .wc-hint .wc-fb { width: 4.6rem; height: 4.6rem; font-size: 2rem; }
.wc-hints-quiet .wc-lab { background: rgba(14,17,20,.86); }
.wc-risk { font: italic 900 1.8rem/1 var(--font-x); text-transform: uppercase; padding: .8rem 1.6rem .6rem; transform: skewX(-12deg); background: var(--ok); color: #fff; } .wc-risk > span { display: block; transform: skewX(12deg); }
.wc-hints[data-risk="none"] .wc-risk { display: none; } .wc-hints[data-risk="tight"] .wc-risk, .wc-hints[data-risk="medium"] .wc-risk { background: var(--amber); color: var(--g0); } .wc-hints[data-risk="risky"] .wc-risk, .wc-hints[data-risk="high"] .wc-risk { background: var(--red); }
/* bowling: the delivery chips are a staircase, the chosen one is the white slab */
.wc-bowl { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.wc-vars { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; margin-right: -5.8rem; }
.wc-var { display: flex; touch-action: none; transform: skewX(-12deg); background: var(--g0); color: #fff; margin-right: calc(var(--i, 0) * -.76rem); }
.wc-var > span { transform: skewX(12deg); display: flex; align-items: center; gap: 1rem; padding: .5rem 6.4rem .4rem 1rem; font: italic 900 1.6rem/1 var(--font-x); text-transform: uppercase; white-space: nowrap; }
.wc-var .wc-nk { width: 2.4rem; height: 2.2rem; font-size: 1.4rem; transform: none; }
.wc-var.is-on { background: #fff; color: var(--g0); } .wc-var.is-on > span { font-size: 2rem; padding-top: .7rem; padding-bottom: .6rem; padding-left: 2.2rem; } .wc-var.is-on .wc-nk { background: var(--g0); color: #fff; box-shadow: none; }
.wc-aimline { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: baseline; gap: 0 1.2rem; background: var(--wf); color: var(--wi); padding: .8rem 1.8rem .6rem; transform: skewX(-12deg); white-space: nowrap; font-weight: 700; font-size: 1.5rem; position: relative; }
.wc-aimline::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; background: var(--ws); }
.wc-aimline > * { transform: skewX(12deg); display: inline-block; } .wc-aimline .wc-aimk { font: 700 .62em/1 var(--font-d); opacity: .8; vertical-align: .15em; } .wc-ui.is-touch .wc-aimline .wc-aimk { font-size: 9.5px; } .wc-aimline b { font: italic 900 2.4rem/1 var(--font-x); text-transform: uppercase; grid-column: 1 / -1; }
.wc-effort { grid-column: 1 / -1; justify-self: end; margin-top: .3rem; background: var(--red); color: #fff; padding: .3rem .8rem .2rem; font: italic 900 1.4rem/1 var(--font-x); text-transform: uppercase; }
.wc-bowlkeys { display: grid; grid-template-columns: auto auto; gap: .9rem 2rem; justify-items: end; align-items: center; }
.wc-bowlkeys .wc-gl { font-size: 1.4rem; flex-direction: row-reverse; } .wc-bowlkeys .wc-hint { grid-column: 1 / -1; }
/* the two meters: where the ball is on its way to you, and how the run-up is going */
.wc-mt { position: relative; width: 31.8rem; height: 2.4rem; background: var(--g0); transform: skewX(-12deg); overflow: hidden; }
.wc-mt i { position: absolute; top: 0; bottom: 0; display: block; }
.wc-mt-zone { background: var(--ok); } .wc-mt-perfect { background: #fff; } .wc-mt-over { background: var(--red); }
.wc-mt-mark { left: 0; width: .8rem; margin-left: -.4rem; background: #fff; box-shadow: 0 0 0 .3rem var(--g0); z-index: 2; transform: translateX(calc(var(--at, 0) * var(--mw, 31.8rem))); will-change: transform; }
/* ---- the release meter, standing (owner note 89, 2026-11-12: "The release meter is also not visible. Maybe instead of
   our horizontal one we make it a vertical."). It was a 14 px strip at the top of the right-hand column (the touch
   HUD drew it at 70 per cent, 105 x 14 px, among the stands). Now a column of its own, 32 px wide and 60 per cent of
   the screen tall, on the right third, out from under the thumb on Run in: filling upwards through too early (dark),
   the good zone (green), its best (white), late (amber) and the no ball (red); a yellow needle across it that stops
   where the press was. The kicker above says what it is. */
.wc-ui .wc-hud .wc-mt.wc-mt-v { position: absolute; z-index: 3; right: calc(26vw + var(--sr)); top: 20vh; width: 32px; height: 60vh; background: none; transform: none; overflow: visible; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.wc-mt-v .wc-mt-k { position: absolute; bottom: 100%; margin-bottom: 4px; left: 50%; transform: translateX(-50%) skewX(-12deg); background: var(--g0); color: #fff; font: italic 900 12px/1 var(--font-x); text-transform: uppercase; padding: 3px 6px 2px; white-space: nowrap; }
.wc-mt-v .wc-mt-track { position: relative; display: block; width: 100%; height: 100%; background: var(--g2); box-shadow: 0 0 0 3px var(--g0), 0 0 0 5px rgba(255,255,255,.85); }
.wc-mt-v .wc-mt-track > i { position: absolute; left: 0; right: 0; top: auto; bottom: 0; height: 0; display: block; }
.wc-mt-v .wc-mt-zone { background: var(--ok); } .wc-mt-v .wc-mt-perfect { background: #fff; } .wc-mt-v .wc-mt-late { background: var(--amber); } .wc-mt-v .wc-mt-over { background: var(--red); }
.wc-mt-v .wc-mt-track > .wc-mt-mark { left: -7px; right: -7px; width: auto; height: 6px; margin: 0 0 -3px; bottom: calc(var(--at, 0) * 100%); background: #ffe14d; box-shadow: 0 0 0 2px var(--g0); transform: none; z-index: 2; will-change: bottom; }
/* while the meter runs the delivery options step aside (they share the right third) */
.wc-hud.is-meter .wc-vars { display: none; }
.wc-timing { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.wc-timing p { font-weight: 700; font-size: 1.5rem; background: rgba(14,17,20,.86); padding: .5rem 1.2rem .4rem; } .wc-timing p b { font: italic 900 1.5rem/1 var(--font-x); text-transform: uppercase; margin-right: .8rem; }
/* what the press was worth: a small stamp over your hands, never over the pitch */
.wc-stamp { margin-bottom: 1rem; transform: rotate(-5deg); transform-origin: 100% 100%; background: #fff; color: var(--g0); font: italic 900 3.8rem/1 var(--font-x); text-transform: uppercase; padding: 1.2rem 2.4rem .9rem 3.4rem; clip-path: polygon(1.6rem 0, 100% 0, 100% 100%, 0 100%); white-space: nowrap; }
.wc-stamp small { display: block; font: 700 1.5rem/1.2 var(--font-d); text-transform: none; }
.wc-stamp.is-in { animation: wc-stamp .28s cubic-bezier(.2,1.3,.4,1) both; }
.wc-stamp-good { background: var(--ok); color: #fff; } .wc-stamp-poor { background: var(--amber); } .wc-stamp-bad { background: var(--red); color: #fff; }
/* the event lane, right edge under the field: four, six, out, the over, the innings */
.wc-banner { position: absolute; right: calc(-2.4rem + var(--sr)); top: calc(26.4rem + var(--st)); display: flex; flex-direction: column; align-items: flex-end; }
.wc-banner > b { display: block; background: var(--g0); color: #fff; padding: 1.1rem 6rem .8rem 2.8rem; transform: skewX(-12deg); font: italic 900 4.4rem/.9 var(--font-x); text-transform: uppercase; white-space: nowrap; position: relative; }
.wc-banner > b > i, .wc-banner > span > i { display: block; transform: skewX(12deg); }
/* the lane is the right edge: a long title (SOUTH AFRICA INNINGS) is set a size down rather than reach for the middle */
.wc-banner.is-long > b { font-size: 3.2rem; padding: 1.2rem 4.4rem .8rem 2rem; } .wc-banner.is-longer > b { font-size: 2.5rem; } .wc-banner > span, .wc-prompt > span { max-width: 42rem; white-space: normal; }
.wc-banner > span { display: block; background: var(--g0); padding: .8rem 5.2rem .6rem 2rem; transform: skewX(-12deg); font-weight: 700; font-size: 1.8rem; line-height: 1.2; white-space: normal; margin: .6rem 1.2rem 0 0; }
.wc-banner > span:empty, .wc-banner > span:has(> i:empty) { display: none; }
.wc-banner.is-in > b { animation: wc-slamr .34s cubic-bezier(.16,.9,.3,1) both; } .wc-banner.is-in > span { animation: wc-slamr .34s cubic-bezier(.16,.9,.3,1) .08s both; }
.wc-banner-four > b, .wc-banner-six > b, .wc-banner-innings > b { background: var(--bf); color: var(--bi); box-shadow: 0 .9rem 0 var(--bs); } .wc-banner-four > span, .wc-banner-six > span, .wc-banner-innings > span { margin-top: 1.5rem; }
.wc-banner-four > b, .wc-banner-six > b { font-size: 9.6rem; padding: 1.4rem 7rem .6rem 3.4rem; }
.wc-banner-mile > b { background: #fff; color: var(--g0); } .wc-banner-extra > b { background: var(--amber); color: var(--g0); }
.wc-banner-out { top: calc(26.4rem + var(--st)); } .wc-banner-out > b { background: var(--red); font-size: 8.4rem; padding: 1.8rem 6.4rem 1rem 4.4rem; transform: rotate(-5deg); transform-origin: 100% 100%; clip-path: polygon(2.6rem 0, 100% 0, 100% 100%, 0 100%); box-shadow: none; }
.wc-banner-out > b > i { transform: none; } .wc-banner-out.is-in > b { animation: wc-stamp .4s cubic-bezier(.2,1.3,.4,1) both; }
.wc-banner-out > span { margin-top: 1rem; }
/* the review question: the same lane */
.wc-prompt { position: absolute; right: calc(-2.4rem + var(--sr)); top: calc(26.4rem + var(--st)); display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.wc-prompt > b { display: block; background: var(--red); color: #fff; padding: 1.1rem 6rem .8rem 2.8rem; transform: skewX(-12deg); font: italic 900 3.6rem/.9 var(--font-x); text-transform: uppercase; white-space: nowrap; }
.wc-prompt.is-notout > b { background: var(--ok); }
.wc-hud:has(.wc-prompt:not([hidden])) .wc-banner { display: none; }
/* bowling: the cluster of chips reaches up to the event lane, so a banner takes the stamp's place */
.wc-hud.is-bowling:not(.is-live):has(.wc-banner:not([hidden])) .wc-stamp { display: none; }
.wc-prompt > b > i, .wc-prompt > span > i { display: block; transform: skewX(12deg); }
.wc-prompt > span { display: block; background: var(--g0); padding: .8rem 5.2rem .6rem 2rem; transform: skewX(-12deg); font-weight: 700; font-size: 1.8rem; white-space: nowrap; margin-right: 1.2rem; position: relative; }
.wc-prompt-actions { display: flex; gap: 2.4rem; margin: 1rem 5.8rem 0 0; }
.wc-prompt-actions button { display: flex; align-items: center; gap: 1rem; } .wc-prompt-actions .wc-lab { position: static; font-size: 2rem; } .wc-prompt-actions button:first-child .wc-lab { background: #fff; color: var(--g0); }
.wc-prompt-actions .wc-fb { width: 5rem; height: 5rem; font-size: 2.2rem; }

/* ============================================================ on air (src/ui/onair.js): what the telecast sends
   A name strap or a caption stands in the staircase where the bowler's slab is, in the colours of the side the
   man plays for (white for a caption about nobody). REPLAY takes the fixture strip's place. Neither is ever up
   while the ball is live. */
.wc-strap { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 .9rem 1.2rem; }
.wc-strap-a > div { background: #fff; color: var(--g0); padding: 1rem 3.4rem .8rem 4.8rem; position: relative; }
.wc-strap-a small { display: block; font: 700 1.4rem/1.1 var(--font-d); color: #4a525c; margin-bottom: .4rem; white-space: nowrap; }
.wc-strap-a .wc-x { display: block; font-size: 3.6rem; max-width: 44rem; white-space: nowrap; }
.wc-strap.is-long .wc-strap-a .wc-x { font-size: 2.4rem; max-width: 52rem; }
.wc-strap.is-team .wc-strap-a > div { background: var(--kf); color: var(--ki); } .wc-strap.is-team .wc-strap-a small { color: var(--kq); }
.wc-strap.is-team .wc-strap-a > div::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; background: var(--ks); }
.wc-strap.is-team .wc-strap-a > div::after { content: ""; position: absolute; left: .9rem; right: -.9rem; bottom: -.7rem; height: .7rem; background: var(--kb); }
.wc-strap-b { margin: .2rem 0 0 -.9rem; } .wc-strap-b > div { background: var(--g0); color: #fff; padding: .7rem 2.4rem .6rem 5.6rem; font-weight: 700; font-size: 1.6rem; white-space: nowrap; }
.wc-strap.is-in .wc-strap-a { animation: wc-slam .36s cubic-bezier(.16,.9,.3,1) both; } .wc-strap.is-in .wc-strap-b { animation: wc-slam .36s cubic-bezier(.16,.9,.3,1) .08s both; }
.wc-bug:has(.wc-strap:not([hidden])) .wc-bowler, .wc-hud.is-live .wc-strap, .wc-hud.is-review .wc-replay, .wc-hud.is-live .wc-replay, .wc-hud.is-live .wc-skip { display: none; }
.wc-replay { position: absolute; left: calc(-2.4rem + var(--sl)); top: calc(2.6rem + var(--st)); background: var(--red); color: #fff; transform: skewX(-12deg); padding: 1rem 2.8rem .8rem 6rem; font: italic 900 3rem/1 var(--font-x); text-transform: uppercase; white-space: nowrap; }
.wc-replay > span { display: flex; align-items: baseline; gap: 1.2rem; transform: skewX(12deg); } .wc-replay small { font: 700 1.7rem/1 var(--font-d); } .wc-replay small:empty { display: none; }
.wc-replay.is-in { animation: wc-slam .32s cubic-bezier(.16,.9,.3,1) both; }
.wc-hud:has(.wc-replay:not([hidden])) .wc-flags, .wc-hud:has(.wc-replay:not([hidden])) .wc-ticker { display: none; }
/* a scene or a replay has the picture: one prompt, Skip, where Next ball is */
.wc-skip { font-size: 1.6rem; font-weight: 700; background: rgba(14,17,20,.86); padding: .7rem 1.6rem .6rem 1rem; }
.wc-skip:focus { outline: .3rem solid #fff; outline-offset: .4rem; }
.wc-hud.is-scene .wc-hints { display: none; }
/* (presentation) the end of the match: the celebration has the whole picture; the score, the batters, the bowler, the
   radar, Pause and Sound step away and only Skip and the caption strap (the result, Player of the match) stay */
.wc-hud.is-ending .wc-bug > :not(.wc-strap), .wc-hud.is-ending .wc-corner, .wc-hud.is-ending .wc-flags, .wc-hud.is-ending .wc-ticker,
.wc-hud.is-ending .wc-banner, .wc-hud.is-ending .wc-stamp, .wc-hud.is-ending .wc-runner, .wc-hud.is-ending .wc-face, .wc-hud.is-ending .wc-controls > :not(.wc-skip) { display: none !important; }
.wc-hud.is-intro .wc-bug > :not(.wc-strap), .wc-hud.is-intro .wc-corner, .wc-hud.is-intro .wc-flags, .wc-hud.is-intro .wc-ticker,
.wc-hud.is-intro .wc-stamp, .wc-hud.is-intro .wc-runner, .wc-hud.is-intro .wc-face, .wc-hud.is-intro .wc-controls > :not(.wc-skip) { display: none !important; }
.wc-hud.is-aerial .wc-bug > :not(.wc-strap), .wc-hud.is-aerial .wc-corner, .wc-hud.is-aerial .wc-flags, .wc-hud.is-aerial .wc-ticker { display: none !important; }
.wc-ui.is-touch .wc-skip { min-height: 44px; min-width: 88px; padding: 0 18px; background: var(--cap); color: #111; border-radius: 22px 22px 8px 8px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 0 0 3px var(--g0); font-size: 13px; justify-content: center; }
.wc-ui.is-touch .wc-skip .wc-sh { display: none; }
/* fingers already have Next ball in that corner, and it does the same thing */
.wc-ui.is-touch:has(.wc-touch:not([hidden]) .wc-tbtns[data-set="next"]) .wc-skip { display: none; }

/* ============================================================ 4 DRS */
.wc-drs { position: absolute; inset: 0; }
.wc-drs-head { position: absolute; left: calc(-2.4rem + var(--sl)); top: calc(2.6rem + var(--st)); }
.wc-drs-a, .wc-pk-a { background: var(--kf); color: var(--ki); padding: 1.2rem 3.4rem .9rem 6rem; width: max-content; position: relative; }
.wc-drs-a::after, .wc-pk-a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.8rem; height: .8rem; background: var(--ks); }
.wc-drs-a .wc-x, .wc-pk-a .wc-x { font-size: 4rem; display: block; white-space: nowrap; } .wc-drs-a small, .wc-pk-a small { display: block; font-weight: 700; font-size: 1.5rem; margin-bottom: .4rem; color: var(--kq); text-transform: uppercase; }
.wc-drs-b, .wc-pk-b { background: var(--g0); padding: .9rem 2.6rem .8rem 6rem; width: max-content; margin-top: 1.4rem; margin-left: -.4rem; font-weight: 700; font-size: 1.7rem; position: relative; }
.wc-drs-b em { color: var(--redt); text-transform: uppercase; } .wc-drs-b em.is-notout { color: var(--okt); }
.wc-drs-rows { position: absolute; right: calc(-2.4rem + var(--sr)); top: calc(11rem + var(--st)); display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.wc-chk { display: flex; }
.wc-chk > div { display: flex; align-items: baseline; gap: 1.6rem; background: var(--g0); padding: .8rem 5.6rem .6rem 2rem; }
.wc-chk small { font-weight: 700; font-size: 1.4rem; color: var(--soft); min-width: 8.6rem; text-transform: uppercase; }
.wc-chk .wc-x { font-size: 2rem; white-space: nowrap; } .wc-chk.is-good .wc-x { color: var(--okt); } .wc-chk.is-bad .wc-x { color: #fff; } .wc-chk.is-call .wc-x { color: var(--amber); }
.wc-tile { display: flex; }
.wc-tile > div { padding: 1.1rem 6.4rem .9rem 2.6rem; background: var(--red); color: #fff; min-width: calc(40rem + var(--n, 0) * 7rem); }
.wc-tile small { display: block; font-weight: 700; font-size: 1.5rem; opacity: .9; margin-bottom: .5rem; text-transform: uppercase; }
.wc-tile .wc-x { font-size: 4.4rem; white-space: nowrap; }
.wc-tile.is-call > div { background: var(--amber); color: var(--g0); } .wc-tile.is-good > div { background: var(--ok); }
.wc-drs-wave { display: block; width: 30rem; height: 6.8rem; background: var(--g0); margin-right: 3.4rem; }
.wc-drs .wc-verdict { bottom: 9.6rem; } .wc-drs .wc-verdict p { max-width: 28rem; } .wc-drs .wc-verdict p b { font-size: 2.5rem; }   /* "DECISION OVERTURNED" is the widest heading */   /* (QA P1-20) the line under OUT wraps inside the slab */ .wc-drs .wc-help { --ka: #fff; }
/* while the third umpire has the screen, the scoreboard stands down */
.wc-hud.is-review .wc-flags, .wc-hud.is-review .wc-ticker, .wc-hud.is-review .wc-bug, .wc-hud.is-review .wc-radar-box, .wc-hud.is-review .wc-banner { display: none; }


/* ============================================================ the two HUD states (owner note 22)
   Between balls the full staircase is up. While the ball is live (run-up to ball dead, .is-live) only
   what that ball needs stays, small and still: score, overs, the chase line, the timing bar or the
   meter, the run prompt. Nothing slams or stamps during a ball. */
.wc-hud.is-live .wc-bowler, .wc-hud.is-live .wc-bats, .wc-hud.is-live .wc-ticker, .wc-hud.is-live .wc-strip, .wc-hud.is-live .wc-hint-tip,
.wc-hud.is-live:not(.is-desk) .wc-diamond .wc-lab, .wc-hud.is-live:not(.is-desk) .wc-diamond .wc-slab, .wc-hud.is-live:not(.is-desk) .wc-aim, .wc-hud.is-live .wc-radar-tab, .wc-hud.is-live .wc-radar-label,
.wc-hud.is-live:not(.is-desk) .wc-vars, .wc-hud.is-live:not(.is-desk) .wc-bowlkeys, .wc-hud.is-live .wc-corner-btns, .wc-hud.is-live .wc-score-side .wc-rates, .wc-hud.is-live .wc-loadchip:not(.is-failed) { display: none; }
.wc-hud.is-live .wc-score { transform: scale(.6); transform-origin: 0 100%; margin-top: 0; }
/* a camera that has come in close on a batter or the bowler (hud.js, checkTight): the same compact form, so the
   slabs are never over the people the shot is about. The bowling cluster stays: it is only up on the playing cameras. */
.wc-hud.is-tight .wc-bowler, .wc-hud.is-tight .wc-bats, .wc-hud.is-tight .wc-hint-tip, .wc-hud.is-tight:not(.is-desk) .wc-diamond .wc-lab, .wc-hud.is-tight:not(.is-desk) .wc-diamond .wc-slab, .wc-hud.is-tight:not(.is-desk) .wc-aim, .wc-hud.is-tight .wc-score-side .wc-rates, .wc-hud.is-tight .wc-hints-quiet { display: none; }
.wc-hud.is-tight .wc-score { transform: scale(.6); transform-origin: 0 100%; margin-top: 0; }
.wc-hud.is-tight:not(.is-desk) .wc-diamond { opacity: .45; zoom: .7; }
.wc-hud.is-tight .wc-stamp { font-size: 2.2rem; padding: .7rem 1.6rem .5rem; margin-bottom: 0; transform: none; clip-path: none; } .wc-hud.is-tight .wc-stamp small { display: inline; margin-left: 1rem; font-size: 1.4rem; }
.wc-hud.is-live .wc-mt { width: 24rem; --mw: 24rem; }
.wc-hud.is-live:not(.is-desk) .wc-aimline { font-size: 1.3rem; padding: .5rem 1.2rem .4rem; } .wc-hud.is-live:not(.is-desk) .wc-aimline b { font-size: 1.7rem; }
.wc-hud.is-live:not(.is-desk) .wc-diamond { opacity: .45; zoom: .7; }
.wc-hud.is-live .wc-radar-box { opacity: .8; transform: scale(.7); transform-origin: 100% 0; }
.wc-hud.is-live .wc-flags { left: calc(1.6rem + var(--sl)); } .wc-hud.is-live .wc-flag { transform: skewX(-12deg) scale(.8); transform-origin: 0 0; }
.wc-hud.is-live .wc-stamp { font-size: 2.2rem; padding: .7rem 1.6rem .5rem; margin-bottom: 0; transform: none; clip-path: none; }
.wc-hud.is-live .wc-stamp small { display: inline; margin-left: 1rem; font-size: 1.4rem; }
.wc-hud.is-live *, .wc-hud.is-live *::before { animation: none !important; transition: none !important; }
.wc-hud.is-live .wc-banner > b { font-size: 3rem; padding: .8rem 4.4rem .6rem 2rem; transform: skewX(-12deg); clip-path: none; box-shadow: none; } .wc-hud.is-live .wc-banner > span { display: none; }
.wc-hud.is-live .wc-banner { top: calc(19rem + var(--st)); }
/* a close shot with a batter or the bowler standing in the event lane (hud.js, is-lane): the banner takes the same small still form, up beside the field */
.wc-hud.is-lane .wc-banner > b { font-size: 3rem; padding: .8rem 4.4rem .6rem 2rem; transform: skewX(-12deg); clip-path: none; box-shadow: none; animation: none; } .wc-hud.is-lane .wc-banner > span { display: none; }
.wc-hud.is-lane .wc-banner { top: calc(19rem + var(--st)); }

/* ============================================================ between balls, trimmed (owner, 11 Nov: "trim it")
   Between balls the HUD is one compact group, bottom left: the bowler's figures with this over, the two batters,
   the score. The fixture strip is up only at the innings intro and the end of an over (.is-break). The line about
   the last ball is said and leaves (hud.js). The field is drawn smaller. The key diamond is full size for a new
   player's first balls, then small and dim, then gone (data-level from the hints counter in prefs); the bowling
   cluster keeps its delivery chips and the length readout, small, at the edge. */
.wc-hud:not(.is-break) .wc-strip, .wc-hud .wc-score-side .wc-rates, .wc-hud .wc-radar-label, .wc-hints-quiet .wc-hint + .wc-hint { display: none; }
.wc-hud:not(.is-live):not(.is-break) .wc-flags { left: calc(1.6rem + var(--sl)); } .wc-hud:not(.is-live):not(.is-break) .wc-flag { transform: skewX(-12deg) scale(.8); transform-origin: 0 0; }
.wc-hud:not(.is-live) .wc-radar-box { transform: scale(.76); transform-origin: 100% 0; }
.wc-ticker { top: calc(2.6rem + var(--st)); max-width: 44rem; font-size: 1.6rem; } .wc-hud.is-break .wc-ticker, .wc-hud:has(.wc-flag:not([hidden])) .wc-ticker { top: calc(7.2rem + var(--st)); }
.wc-hints-quiet { zoom: .8; }
.wc-controls[data-level="compact"] .wc-diamond { zoom: .6; opacity: .6; } .wc-controls[data-level="compact"] .wc-aim { display: none; }
.wc-controls:not([data-level="full"]):not([data-level="desk"]) .wc-bowlkeys .wc-gl { display: none; }
.wc-ui:not(.is-touch) .wc-hud:not(.is-live) .wc-vars { zoom: .8; margin-right: -7.2rem; } .wc-ui:not(.is-touch) .wc-hud:not(.is-live) .wc-aimline { zoom: .86; }
@media (min-height: 481px) {
  .wc-ui:not(.is-touch) .wc-hud:not(.is-live):not(.is-tight) .wc-bug { zoom: .8; }
}

/* ============================================================ touch: the same diamond under the right thumb */
.wc-touch { position: absolute; inset: 0; } /* over the establishing aerial only the main button stays (Play, when the bowler waits for the batter) */
.wc-touch.is-cutaway .wc-pad, .wc-touch.is-cutaway .wc-tbtn:not(.wc-tbtn-main) { visibility: hidden; }
.wc-pad { position: absolute; left: calc(2rem + var(--sl)); bottom: calc(1.6rem + var(--sb)); width: 12.8rem; height: 12.8rem; min-width: 128px; min-height: 128px; border-radius: 50%; background: rgba(14,17,20,.8); box-shadow: inset 0 0 0 .4rem var(--cap); touch-action: none; }
.wc-pad-knob { position: absolute; left: 31.25%; top: 31.25%; width: 37.5%; height: 37.5%; border-radius: 50%; background: var(--cap); box-shadow: inset 0 -.5rem 0 rgba(0,0,0,.25); }
.wc-pad > span { position: absolute; width: 0; height: 0; border: .7rem solid transparent; opacity: .7; }
.wc-pad-n { left: 50%; top: 7%; margin-left: -.7rem; border-bottom-color: var(--cap) !important; border-top-width: 0 !important; }
.wc-pad-s { left: 50%; bottom: 7%; margin-left: -.7rem; border-top-color: var(--cap) !important; border-bottom-width: 0 !important; }
.wc-pad-w { top: 50%; left: 7%; margin-top: -.7rem; border-right-color: var(--cap) !important; border-left-width: 0 !important; }
.wc-pad-e { top: 50%; right: 7%; margin-top: -.7rem; border-left-color: var(--cap) !important; border-right-width: 0 !important; }
.wc-tbtns { position: absolute; right: calc(10px + var(--sr)); bottom: calc(8px + var(--sb)); width: 240px; height: 200px; }
/* (owner note 88, 2026-11-12: "Tapping on four and five however didn't work") the 240 x 200 box that places the buttons
   is only a frame: it took every tap in its rectangle (".wc-touch > *" above), and on a phone on its side the delivery
   options 4 and 5 sit inside it. Only the buttons themselves take a finger. */
.wc-ui .wc-touch > .wc-tbtns { pointer-events: none; } .wc-ui .wc-touch > .wc-tbtns > .wc-tbtn { pointer-events: auto; }
.wc-tbtn { position: absolute; width: 62px; height: 62px; border-radius: 50%; background: var(--c, var(--cap)); color: #111; display: grid; place-items: center; text-align: center; font: italic 900 12px/1 var(--font-x); text-transform: uppercase; box-shadow: inset 0 -5px 0 rgba(0,0,0,.28), 0 0 0 3px var(--g0); touch-action: none; }
.wc-tbtn.is-down { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.28), 0 0 0 3px var(--g0); }
.wc-tbtn-main { width: 82px; height: 82px; font-size: 15px; --c: var(--pa); color: #fff; }
/* shoulder shapes: the latches and the lesser actions */
.wc-tbtn.is-sh { width: auto; min-width: 84px; height: 44px; padding: 0 14px; border-radius: 22px 22px 8px 8px; }
.wc-tbtn-latch.is-latched { background: #fff; box-shadow: inset 0 -5px 0 var(--pa), 0 0 0 3px var(--g0); }
/* the stroke names fade once the thumbs know them (the hints counter in prefs) */
/* (owner notes 85 and 86, 2026-11-12: "Batting control only shows colors and not the shot types", "Bowling labels
   missing") a button always says what it does: the hints counter fades the hint sentences, never a button's name */
.wc-touch.is-live .wc-tbtn.is-sh:not(.is-latched) { opacity: .6; }
/* batting: W top, A left, D right, S at the bottom, as on the keyboard */
[data-set="bat"] [data-act="primary"] { right: 74px; top: 112px; }
[data-set="bat"] [data-act="special"] { right: 84px; top: 42px; --c: var(--py); }
/* (owner note 85) the shot names inside their buttons: the three round ones 70 px, Stroke a little tighter */
[data-set="bat"] .wc-tbtn:not(.is-sh):not(.wc-tbtn-main) { width: 70px; height: 70px; font-size: 12px; letter-spacing: -.03em; }
[data-set="bat"] .wc-tbtn-main { font-size: 13px; letter-spacing: -.02em; }
[data-set="bat"] [data-act="defend"] { right: 162px; top: 96px; --c: var(--px); color: #fff; }
[data-set="bat"] [data-act="loft"] { right: 4px; top: 96px; --c: var(--pb); color: #fff; }
[data-set="bat"] [data-act="switch"], [data-set="face"] [data-act="switch"] { right: 0; top: -4px; } [data-set="bat"] [data-act="mod"], [data-set="face"] [data-act="mod"] { right: 150px; top: -4px; }
/* running: Run where Stroke was, Send back where Loft was */
[data-set="run"] [data-act="confirm"], [data-set="next"] [data-act="confirm"], [data-set="face"] [data-act="confirm"], [data-set="drs"] [data-act="confirm"], [data-set="review"] [data-act="review"] { right: 74px; top: 112px; }
[data-set="meter"] [data-act="confirm"], [data-set="aim"] [data-act="confirm"] { right: 0; top: 118px; }
[data-set="run"] [data-act="back"], [data-set="review"] [data-act="back"] { right: 0; top: 36px; --c: var(--pb); color: #fff; width: 72px; height: 72px; }
[data-set="next"] [data-act="confirm"], [data-set="drs"] [data-act="confirm"] { --c: var(--cap); color: #111; }
[data-set="review"] [data-act="review"] { right: 96px; }
/* bowling: Run in and Release where Stroke was; Effort, Side, Field and View are shoulder shapes */
[data-set="aim"] [data-act="mod"], [data-set="meter"] [data-act="mod"] { right: 90px; top: 150px; }
[data-set="aim"] [data-act="switch"] { right: 0; top: 62px; } [data-set="aim"] [data-act="field"] { right: 0; top: 12px; } [data-set="aim"] [data-act="camera"] { right: 0; top: -38px; }
[data-set="aim"] .wc-tbtn.is-sh { min-width: 84px; }
.wc-ui.is-touch .wc-hint-tip, .wc-ui.is-touch .wc-diamond, .wc-ui.is-touch .wc-hints, .wc-ui.is-touch .wc-bowlkeys, .wc-ui.is-touch .wc-prompt-actions, .wc-hud.wc-touch-on .wc-diamond, .wc-hud.wc-touch-on .wc-hints, .wc-hud.wc-touch-on .wc-bowlkeys { display: none; }
.wc-ui.is-touch .wc-help .wc-gl:not(button), .wc-ui.is-touch .wc-keys .wc-gl:not(button) { display: none; }
.wc-ui.is-touch .wc-help button.wc-gl, .wc-ui.is-touch .wc-keys button.wc-gl { min-height: 44px; min-width: 44px; font-size: max(1.5rem, 13px); }
/* fingers own the two bottom corners: the scoreboard hangs from the top left instead (score first), and the
   bowling cluster sits above the buttons */
.wc-ui.is-touch .wc-bug { top: calc(13rem + var(--st)); bottom: auto; flex-direction: column-reverse; }
.wc-ui.is-touch .wc-score { margin-top: .9rem; margin-bottom: .2rem; } .wc-ui.is-touch .wc-bowler { margin: 1.4rem 0 0 0; }
.wc-ui.is-touch .wc-hud.is-bowling .wc-score { flex-direction: row; align-items: flex-end; } .wc-ui.is-touch .wc-hud.is-bowling .wc-score-side { margin: 0 0 0 -.1rem; } .wc-ui.is-touch .wc-hud.is-bowling .wc-score-side > div { display: block; }
.wc-ui.is-touch .wc-hud.is-live .wc-score, .wc-ui.is-touch .wc-hud.is-tight .wc-score { transform-origin: 0 0; }
.wc-ui.is-touch .wc-controls { bottom: calc(266px + var(--sb)); }
.wc-ui.is-touch .wc-hud-btn { min-height: 44px; min-width: 44px; } .wc-ui.is-touch .wc-hud-btn .wc-sh { display: none; }
/* a finger has no Esc: Pause stays up while the ball is live (Sound can wait for the ball to be dead) */
.wc-ui.is-touch .wc-hud.is-live .wc-corner-btns { display: flex; } .wc-ui.is-touch .wc-hud.is-live .wc-corner-btns .wc-hud-btn:not([data-quiet]) { display: none; }
.wc-ui.is-touch .wc-hud-btn { background: var(--cap); color: #111; padding: 0 14px; border-radius: 22px 22px 8px 8px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 0 0 3px var(--g0); font-size: 12px; justify-content: center; }
.wc-ui.is-touch .wc-btn, .wc-ui.is-touch .wc-seg-btn, .wc-ui.is-touch .wc-tab, .wc-ui.is-touch .wc-menu-item, .wc-ui.is-touch .wc-pk-row, .wc-ui.is-touch .wc-sq .wc-pick, .wc-ui.is-touch .wc-var, .wc-ui.is-touch .wc-prompt-actions button, .wc-ui.is-touch .wc-level { min-height: 44px; }
/* a volume level stays a finger wide on the narrowest phone on its side (667 x 375) */
.wc-ui.is-touch .wc-level { min-width: 72px; }
.wc-ui.is-touch .wc-seg-btn, .wc-ui.is-touch .wc-tab, .wc-ui.is-touch .wc-btn { min-width: 44px; display: inline-grid; align-items: center; }

/* ============================================================ the rotate prompt, the first-load board */
.wc-rotate { position: absolute; inset: 0; z-index: 50; background: var(--g0); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.4rem; padding: 0 3.4rem; pointer-events: auto; overflow: hidden; }
.wc-rotate::before { content: ""; position: absolute; left: -10%; right: -10%; top: 12%; height: 22%; background: var(--kf); transform: rotate(-5deg); box-shadow: 0 1.8rem 0 var(--ks); }
.wc-rotate h2 { position: relative; font: italic 900 max(4.4rem, 30px)/.92 var(--font-x); text-transform: uppercase; }
.wc-rotate p { position: relative; font-size: max(1.8rem, 15px); font-weight: 700; max-width: 30em; }
.wc-rotate .wc-btn { font-size: max(2rem, 14px); min-height: 44px; }
/* the loading pitch, small, on the cover while the first visit loads */
.wc-rotate-load { position: relative; width: min(100%, 320px); }
.wc-rotate-load[hidden] { display: none; }
.wc-rotate-load p { margin-top: 8px; font-size: max(1.6rem, 14px); }
.wc-phone { position: relative; width: max(9rem, 60px); height: max(15rem, 100px); margin-left: max(3rem, 20px); /* turned, it is wider: room on the left */ border: max(.6rem, 4px) solid #fff; border-radius: max(1.4rem, 9px); animation: wc-turn 2.4s cubic-bezier(.6,0,.3,1) infinite; }
.wc-phone::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: 30%; height: max(.4rem, 3px); margin-left: -15%; background: #fff; }
@keyframes wc-turn { 0%, 25% { transform: none; } 60%, 100% { transform: rotate(-90deg); } }
#boot .wc-band, #boot .wc-band2, #boot .wc-logo { animation: none; }
/* before the scripts arrive: the same cover over the first-load board, for a touch screen held upright */
#boot .wc-rotate { display: none; }
@media (orientation: portrait) and (pointer: coarse) { #boot .wc-rotate { display: flex; } }

/* ============================================================ a phone on its side */
@media (max-height: 480px) {
  .wc-flags .wc-strip, .wc-ticker { display: none; }
  .wc-flags { top: calc(46px + var(--st)); left: calc(-1.4rem + var(--sl)); } .wc-flag { font-size: 11px; min-height: 0; padding: 5px 10px 4px; }
  /* the HUD is drawn smaller on a phone, not just laid out again: the same staircase, hung from the top
     left corner (the pad owns the bottom left), score first */
  /* (release gate: shell) with a notch the slab comes all the way out of it, its words no longer under the notch */
  .wc-ui .wc-bug, .wc-ui.is-touch .wc-bug { left: calc(-1.4rem + var(--sl) + min(var(--sl), 1.4rem)); top: calc(.8rem + var(--st)); bottom: auto; flex-direction: column-reverse; transform: scale(.66); transform-origin: 0 0; }
  .wc-score { margin-top: .9rem; margin-bottom: .2rem; } .wc-bowler { margin: 1.4rem 0 0 0; } .wc-bat:not(.is-strike) small { display: none; }
  .wc-hud.is-bowling .wc-score { flex-direction: row; align-items: flex-end; } .wc-hud.is-bowling .wc-score-side { margin: 0 0 0 -.1rem; } .wc-hud.is-bowling .wc-score-side > div { display: block; }
  .wc-hud.is-live .wc-score, .wc-ui.is-touch .wc-hud.is-live .wc-score, .wc-hud.is-tight .wc-score, .wc-ui.is-touch .wc-hud.is-tight .wc-score { transform: scale(.9); transform-origin: 0 0; }
  .wc-corner { right: calc(.8rem + var(--sr)); top: calc(.6rem + var(--st)); gap: 1rem; }
  .wc-loadchip { right: calc(100% + 1rem); top: .4rem; font-size: 10px; padding: 4px 8px; }
  .wc-radar-box { width: 15rem; } .wc-radar { width: 15rem; height: 15rem; } .wc-radar-tab { font-size: 1.2rem; padding: .5rem 1rem .4rem; } .wc-radar-label { font-size: 1.3rem; margin-top: -.4rem; }
  .wc-hud.is-live .wc-radar-box { transform: scale(.8); }
  .wc-controls { right: calc(270px + var(--sr)); bottom: calc(1.6rem + var(--sb)); }
  .wc-ui.is-touch .wc-controls { bottom: auto; top: calc(54px + var(--st)); right: auto; left: calc(50% + 112px); align-items: flex-start; gap: 4px; }
  /* (owner, 2026-11-13, accidental Pause taps) batting, Skip came up right under Pause, 4 px apart: it moves left and up
     into the top band, beside the Pause and Sound row (and clear of where the pickers' rows are) (the bowling layout moves it in its own block below) */
  .wc-ui.is-touch .wc-hud:not(.is-bowling) .wc-skip { position: relative; left: calc(-130px - var(--sr)); top: -50px; }
  .wc-ui.is-touch .wc-vars { margin-right: 0; align-items: flex-start; gap: 3px; } .wc-ui.is-touch .wc-var { margin-right: 0; width: 150px; transform: none; } .wc-ui.is-touch .wc-var > span { transform: none; padding: 0 6px; font-size: 12px; gap: 6px; letter-spacing: -.02em; } .wc-ui.is-touch .wc-var.is-on > span { font-size: 12px; padding: 0 6px; }
  .wc-ui.is-touch .wc-var .wc-nk { width: 18px; height: 18px; font-size: 12px; }
  .wc-ui.is-touch .wc-aimline { display: flex; font-size: 9.5px; padding: 4px 8px 3px; gap: 5px; order: -1; max-width: 200px; overflow: hidden; transform: none; } .wc-ui.is-touch .wc-aimline > * { transform: none; } .wc-ui.is-touch .wc-aimline b { font-size: 11px; } .wc-ui.is-touch .wc-aimline span:nth-child(3) { display: none; } .wc-ui.is-touch .wc-effort { margin: 0; font-size: 9px; }
  .wc-ui.is-touch .wc-bowl { align-items: flex-start; gap: 5px; }
  .wc-ui.is-touch .wc-mt { width: 150px; height: 20px; --mw: 150px; } .wc-ui.is-touch .wc-timing { position: fixed; left: calc(50% + 112px); top: calc(56px + var(--st)); }
  .wc-ui.is-touch .wc-stamp, .wc-ui.is-touch .wc-hud.is-live .wc-stamp { order: 9; margin: 0; font-size: 14px; padding: 5px 12px 4px; transform: none; clip-path: none; }
  .wc-ui.is-touch .wc-stamp small { display: inline; margin-left: 6px; font-size: 10px; }
  .wc-banner, .wc-prompt, .wc-banner-out { right: auto; left: calc(-1.4rem + var(--sl)); top: calc(138px + var(--st)); align-items: flex-start; transform: scale(.62); transform-origin: 0 0; }
  .wc-banner > b, .wc-prompt > b { padding-left: 4.4rem; padding-right: 3rem; } .wc-banner > span, .wc-prompt > span { margin: .6rem 0 0 1.2rem; padding-left: 3.4rem; padding-right: 2.4rem; }
  .wc-banner.is-in > b, .wc-banner.is-in > span { animation-name: wc-slam; }
  .wc-banner-four > b, .wc-banner-six > b { font-size: 7rem; } .wc-banner-out > b { font-size: 7rem; transform: skewX(-12deg); clip-path: none; } .wc-banner-out.is-in > b { animation: wc-slam .34s cubic-bezier(.16,.9,.3,1) both; }
  .wc-hud.is-live .wc-banner { top: calc(52px + var(--st)); }
  [data-set="drs"] [data-act="confirm"] { position: fixed; right: auto; top: auto; left: calc(16px + var(--sl)); bottom: calc(52px + var(--sb)); width: 66px; height: 66px; }
  .wc-drs .wc-help { display: none; }
  .wc-screen-squad .wc-wall { top: 4.6rem; left: calc(3rem + var(--sl)); } .wc-screen-squad .wc-wall h2 { font-size: 4rem; } .wc-screen-squad .wc-wall p { display: none; }
  .wc-screen-squad .wc-kit { display: none; } .wc-screen-squad .wc-flood { left: 4rem; top: 10rem; } .wc-screen-squad .wc-flood-edge { left: 1.6rem; top: 10rem; } .wc-screen-squad .wc-sheet { left: 20rem; top: 11rem; bottom: 9rem; }
  .wc-screen-squad .wc-sheet h2 { font-size: 4.4rem; height: 4.4rem; line-height: 4.4rem; } .wc-sheet .wc-cap { margin: .4rem 0 .8rem; }
  .wc-drs-rows { top: calc(54px + var(--st)); gap: .4rem; }
  .wc-chk > div { padding-top: .5rem; padding-bottom: .4rem; }
  .wc-ui.wc-picking .wc-bug { display: none; }
  .wc-pk-head { top: calc(1rem + var(--st)); transform: scale(.8); transform-origin: 0 0; }
  .wc-screen.is-overlay .wc-pk-list { top: calc(.8rem + var(--st)); bottom: calc(8px + var(--sb)); right: 0; left: 40%; overflow-y: auto; align-items: stretch; gap: 3px; pointer-events: auto; }
  .wc-pk-row, .wc-pk-row > div { transform: none; } .wc-pk-row:nth-child(n) { margin-right: 0; flex: none; } .wc-pk-row > div, .wc-pk-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 4.4rem 9.5rem 3.6rem; padding-right: calc(1.6rem + var(--sr)); width: 100%; } .wc-pk-cols { margin-right: 0; flex: none; }
  .wc-help-pick { min-height: 48px; } .wc-tile .wc-x { font-size: 3rem; } .wc-tile small { margin-bottom: .2rem; font-size: 1.3rem; } .wc-tile > div { padding-top: .6rem; padding-bottom: .4rem; min-width: calc(34rem + var(--n, 0) * 6rem); }
  .wc-verdict { min-height: 12rem; bottom: 4rem; width: 82rem; gap: 2rem; } .wc-verdict-edge { bottom: 2.6rem; width: 85rem; } .wc-verdict > .wc-x { font-size: 11rem; } .wc-verdict.is-notout > .wc-x { font-size: 7rem; } .wc-verdict p { font-size: 1.8rem; } .wc-verdict p b { font-size: 2.4rem; margin-bottom: .4rem; }
  /* menus: the same places, closed up to the height of a phone */
  .wc-band { top: 7rem; height: 16rem; } .wc-band2 { top: 23rem; } .wc-band3 { top: 25.6rem; }
  .wc-logo { top: 8.6rem; font-size: 7.6rem; } .wc-logo small { font-size: 1.9rem; }
  .wc-menu { top: 29rem; } .wc-loading { top: 26.4rem; }
  .wc-menu-item { font-size: 3rem; line-height: 4.6rem; } .wc-menu-item:focus, .wc-menu-item.is-on { font-size: 4.6rem; line-height: 6.4rem; height: 8.4rem; }
  .wc-menu-item.wc-menu-small { font-size: 2.4rem; line-height: 4.4rem; }
  .wc-ui.is-touch .wc-menu { display: grid; grid-template-columns: auto auto; grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 0 12rem; align-items: center; }
  .wc-ui.is-touch .wc-menu-item.wc-menu-small { grid-column: 2; }
  .wc-ui.is-touch .wc-menu-item { min-height: 44px; display: flex; align-items: center; } .wc-ui.is-touch .wc-menu-item small { display: none; }
  .wc-ui.is-touch .wc-menu-item:focus, .wc-ui.is-touch .wc-menu-item.is-on { height: auto; margin: 0; font-size: 3.6rem; }
  .wc-star .wc-x { font-size: 3.4rem; }
  .wc-screen-pause .wc-band, .wc-screen-field .wc-band { top: 4rem; height: 11rem; } .wc-screen-pause .wc-band2, .wc-screen-field .wc-band2 { top: 15rem; } .wc-screen-pause .wc-band3, .wc-screen-field .wc-band3 { top: 17.6rem; }
  .wc-screen-pause .wc-logo, .wc-screen-field .wc-logo { top: 5.4rem; font-size: 5.2rem; } .wc-screen-pause .wc-menu, .wc-screen-field .wc-menu { top: 20.4rem; }
  .wc-kit { top: 24rem; width: 30rem; } .wc-kit svg { width: 30rem; height: 35rem; }
  .wc-flood { left: 38rem; top: 22.6rem; } .wc-flood-edge { left: 35.6rem; top: 22.6rem; } .wc-sheet { left: 55rem; top: 24rem; bottom: 7rem; overflow-y: auto; }
  .wc-sheet h2 { font-size: 7rem; margin-left: 0; } .wc-sq { margin-left: 0; } .wc-sq li, .wc-sq .wc-pick { margin-left: 0; }
  .wc-peg svg { height: 10.4rem; } .wc-pegs { top: 3.6rem; }
  .wc-col { width: 40rem; padding-top: 3rem; } .wc-col-edge { width: 43rem; } .wc-col h2 { font-size: 4.2rem; } .wc-col .wc-tot { font-size: 7.6rem; margin-top: 1.2rem; } .wc-col .wc-best { margin-top: 2rem; }
  .wc-rows, .wc-how-cols, .wc-credits, .wc-figs { left: 44rem; top: 3rem; }
  /* the scorecard becomes one list that scrolls: batting, bowling, fall of wickets */
  .wc-card { display: block; position: absolute; left: 44rem; right: calc(2rem + var(--sr)); top: 7rem; bottom: 2rem; overflow-y: auto; overscroll-behavior: contain; }
  .wc-card .wc-tbl, .wc-card .wc-bw, .wc-card .wc-fowc { position: static; } .wc-tbl li { margin-left: 0; grid-template-columns: 18rem minmax(0, 1fr) 6rem 4.4rem 4rem 4rem 6.4rem; } .wc-bw { margin: 2.4rem 0 0; } .wc-bw li:nth-child(n) { margin-left: 0; margin-right: 0; } .wc-bw h3 { margin-left: .6rem; } .wc-fowc { margin: 1.4rem 0 0; white-space: normal; }
  .wc-col .wc-best { display: none; } .wc-tabs { bottom: 2rem; }
  .wc-result-lines { width: 26rem; margin-top: 2rem; } .wc-result-lines .wc-x + .wc-x { font-size: 2.8rem; } .wc-screen-result .wc-figs { display: none; } .wc-pom { left: 46rem; top: 4rem; } .wc-pom .wc-x { font-size: 4.6rem; }
  .wc-screen-result .wc-verdict { bottom: 11rem; min-height: 13rem; } .wc-screen-result .wc-verdict-edge { bottom: 9.6rem; } .wc-screen-result .wc-verdict.is-team > .wc-x { font-size: 6rem; }
  .wc-rows, .wc-how-cols { bottom: 8rem; overflow-y: auto; } .wc-seg-row, .wc-how li { margin-left: 0; }
  /* (QA P1-19) on a phone the rows ran under Credits and Done and hid Graphics High: they now end above the buttons */
  .wc-screen-options .wc-rows { bottom: 12.5rem; }
  .wc-tabs { bottom: 2rem; }
}
/* a phone held upright (the rotate prompt covers a match; the menus still have to work) */
@media (orientation: portrait) and (max-width: 600px) {
  html { font-size: 5.2px; }
  .wc-ride { width: 72rem; } .wc-band { width: 70rem; } .wc-band2 { width: 66rem; } .wc-logo { font-size: 7rem; left: 4rem; } .wc-menu { left: 4rem; }
  .wc-star { display: none; }
  .wc-col { width: 100%; height: 30rem; bottom: auto; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6rem), 0 100%); padding-top: 3rem; } .wc-col-edge { width: 100%; height: 31.6rem; bottom: auto; clip-path: polygon(0 calc(100% - 1.6rem), 100% calc(100% - 7.6rem), 100% calc(100% - 6rem), 0 100%); }
  .wc-col .wc-best, .wc-col .wc-facts { display: none; } .wc-col .wc-tot { font-size: 7rem; margin-top: 1rem; }
  .wc-card, .wc-rows, .wc-how-cols, .wc-credits, .wc-figs { left: 3rem; right: 3rem; top: 34rem; bottom: 12rem; overflow-y: auto; }
  .wc-card { display: block; position: absolute; } .wc-card .wc-tbl { position: static; }
  .wc-rows.is-two, .wc-how-cols, .wc-figs { display: block; } .wc-tabs { left: auto; right: 3rem; top: 4rem; bottom: auto; }
  .wc-tbl li { grid-template-columns: 17rem minmax(0, 1fr) 6rem 4.4rem 0 0 0; margin-left: 0; } .wc-tbl li span:nth-child(n+5) { display: none; }
  .wc-bw, .wc-fowc { position: static; margin-top: 2rem; white-space: normal; } .wc-bw ul { grid-template-columns: 1fr 1fr; }
  .wc-bug { transform: scale(.8); } .wc-corner-btns { flex-direction: column; }
  .wc-pegs { flex-wrap: wrap; } .wc-peg { flex-basis: 16.6%; } .wc-kit { display: none; } .wc-flood { left: 0; top: 40rem; clip-path: none; } .wc-flood-edge { left: 0; right: 0; width: auto; top: 39rem; height: 1rem; clip-path: none; } .wc-sheet { left: 3rem; right: 3rem; top: 42rem; bottom: 8rem; overflow-y: auto; } .wc-sheet h2 { font-size: 6rem; margin-left: 0; } .wc-sq { margin-left: 0; grid-template-columns: 1fr; } .wc-sq li, .wc-sq .wc-pick { margin-left: 0; }
  .wc-toss-a, .wc-toss-b, .wc-toss-a-edge, .wc-toss-b-edge { width: 26rem; } .wc-toss-mid { left: 4rem; right: 4rem; }
  .wc-pk-list { left: 0; overflow-y: auto; } .wc-pk-row > div, .wc-pk-cols { grid-template-columns: 18rem 0 5rem 9rem 4rem; } .wc-pk-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wc-slam, .wc-slamr, .wc-pop, .wc-verdict, .wc-stamp.is-in, .wc-banner.is-in > b, .wc-banner.is-in > span, .wc-ticker.is-in, .wc-coin.is-flip { animation: wc-fade .2s both !important; }
  .wc-phone { animation: none; transform: rotate(-90deg); }
  .wc-pitch-ball { transform: translate(-50%, -50%); } .wc-loading.is-ready .wc-pitch-bail { animation: none; opacity: 0; } .wc-loading.is-leaving { transition: none; }
}

/* ============================================================ screens that sit over a staged scene
   The toss, the two pickers, the innings break and the result are shown while the telecast stages something
   behind them (the coin, the new batter walking out, the bowler at his mark, the walk-off, the handshakes).
   They are slabs at the edges: nothing is dimmed and the middle of the picture is left alone. A full-screen
   dimmed card is for real menus only (pause, options, scorecard, charts, how to play).
   tools/hud-zones.mjs --scenes measures the middle of each. These rules come last so they also hold on a phone. */
/* ---- toss: the two sides in the top corners, the question along the bottom edge */
.wc-ui .wc-screen-toss .wc-toss-a, .wc-ui .wc-screen-toss .wc-toss-b { top: calc(2.6rem + var(--st)); bottom: auto; height: 12.4rem; width: 36rem; padding: 1.5rem 0 0; display: flex; flex-direction: row; flex-wrap: wrap; align-content: flex-start; align-items: baseline; gap: 0 1.6rem; text-align: left; }
.wc-ui .wc-screen-toss .wc-toss-a { left: 0; padding-left: calc(4.4rem + var(--sl)); padding-right: 4rem; clip-path: polygon(0 0, 100% 0, calc(100% - 2.64rem) 100%, 0 100%); }
.wc-ui .wc-screen-toss .wc-toss-b { right: 0; padding-right: calc(4.4rem + var(--sr)); padding-left: 4rem; justify-content: flex-end; text-align: right; clip-path: polygon(2.64rem 0, 100% 0, 100% 100%, 0 100%); }
.wc-ui .wc-screen-toss .wc-toss-a-edge, .wc-ui .wc-screen-toss .wc-toss-b-edge { top: calc(15rem + var(--st)); bottom: auto; height: .9rem; width: 33.2rem; clip-path: none; }
.wc-ui .wc-screen-toss .wc-toss-a small, .wc-ui .wc-screen-toss .wc-toss-b small { order: 1; flex: 0 0 100%; font-size: 1.4rem; }
.wc-ui .wc-screen-toss .wc-toss-a .wc-x, .wc-ui .wc-screen-toss .wc-toss-b .wc-x { order: 2; flex: 0 0 100%; font-size: 3.6rem; margin: .3rem 0 0; max-width: none; min-width: 0; overflow: hidden; }
.wc-ui .wc-screen-toss .wc-toss-a p, .wc-ui .wc-screen-toss .wc-toss-b p { order: 3; margin: .7rem 0 0; font-size: 1.4rem; white-space: nowrap; }
.wc-ui .wc-screen-toss .wc-toss-a p b, .wc-ui .wc-screen-toss .wc-toss-b p b { display: inline; font-size: 2.2rem; margin-right: .5rem; }
.wc-ui .wc-screen-toss .wc-toss-mid { left: calc(4.4rem + var(--sl)); right: auto; top: auto; bottom: calc(8rem + var(--sb)); flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 1.8rem; text-align: left; }
.wc-ui .wc-screen-toss .wc-coin { width: 7.6rem; height: 7.6rem; margin: 0; flex: none; box-shadow: inset 0 -.5rem 0 rgba(0,0,0,.25), 0 0 0 .4rem var(--g0); }
.wc-ui .wc-screen-toss .wc-coin b { font-size: 4.4rem; }
.wc-ui .wc-screen-toss .wc-toss-body { flex-direction: row; align-items: flex-end; gap: 1.8rem; }
.wc-ui .wc-screen-toss .wc-toss-line { font-size: 2.4rem; max-width: 52rem; padding: 1rem 2.2rem .8rem; }
/* ---- innings break and result: the score is a slab in the top left corner; the choices are bottom right */
.wc-ui .wc-screen-inningsBreak { --h: 48rem; }
.wc-ui .wc-screen-result { --h: calc(14.6rem + var(--lines, 2) * 7.2rem); }
.wc-ui .wc-screen-inningsBreak .wc-col, .wc-ui .wc-screen-result .wc-col { bottom: auto; height: var(--h); width: 39.6rem; padding-top: calc(3.4rem + var(--st)); clip-path: polygon(0 0, 100% 0, calc(100% - var(--h) * .2126) 100%, 0 100%); }
.wc-ui .wc-screen-inningsBreak .wc-col-edge, .wc-ui .wc-screen-result .wc-col-edge { bottom: auto; height: var(--h); width: 42.6rem; clip-path: polygon(calc(100% - 2.6rem) 0, 100% 0, calc(100% - var(--h) * .2126) 100%, calc(100% - var(--h) * .2126 - 2.6rem) 100%); }
.wc-ui .wc-screen-inningsBreak .wc-col h2, .wc-ui .wc-screen-result .wc-col h2 { font-size: 4.2rem; max-width: 31rem; }
.wc-ui .wc-screen-inningsBreak .wc-col .wc-tot { font-size: 7.6rem; line-height: 6.2rem; height: 6.2rem; margin-top: 1.6rem; max-width: 29rem; }
.wc-ui .wc-screen-inningsBreak .wc-col .wc-ov { font-size: 1.7rem; margin-top: 1.2rem; max-width: 27rem; }
.wc-ui .wc-screen-inningsBreak .wc-col .wc-best { margin-top: 2.2rem; width: 24rem; } .wc-ui .wc-screen-inningsBreak .wc-col .wc-best .wc-x { font-size: 2.3rem; } .wc-ui .wc-screen-inningsBreak .wc-col .wc-best li { padding: .8rem 0 .6rem; }
.wc-ui .wc-screen-result .wc-result-lines { width: 25rem; margin-top: 2rem; }
.wc-ui .wc-screen-result .wc-pom { left: 0; top: calc(var(--h) + 2.6rem); background: var(--g0); padding: 1.1rem 4.6rem 1.2rem calc(4.4rem + var(--sl)); clip-path: polygon(0 0, 100% 0, calc(100% - 2.2rem) 100%, 0 100%); }
.wc-ui .wc-screen-result .wc-pom small { font-size: 1.4rem; margin-bottom: .4rem; } .wc-ui .wc-screen-result .wc-pom .wc-x { font-size: 3.2rem; max-width: 40rem; }
.wc-ui .wc-screen-result .wc-pom > span { margin-top: .8rem; font-size: 1.5rem; }
/* the verdict stamps down in the bottom left corner, stacked, so it stays out of the middle; the column already says who won */
.wc-ui .wc-screen-result .wc-verdict { left: -4rem; right: auto; bottom: calc(9rem + var(--sb)); width: auto; max-width: 45.6rem; min-height: 0; height: auto; display: block; padding: 1.6rem 4.2rem 1.5rem 8.4rem; transform-origin: 0 100%; clip-path: polygon(0 0, 100% 0, calc(100% - 2.2rem) 100%, 0 100%); }
.wc-ui .wc-screen-result .wc-verdict.is-team > .wc-x, .wc-ui .wc-screen-result .wc-verdict.is-tie > .wc-x { font-size: 3.4rem; line-height: .95; max-width: 33rem; white-space: normal; margin: 0; display: block; }
.wc-ui .wc-screen-result .wc-verdict p { display: none; }
.wc-ui .wc-screen-result .wc-verdict-edge { left: -4rem; right: auto; bottom: calc(7.2rem + var(--sb)); width: 40rem; height: .9rem; transform-origin: 0 100%; }
/* ---- pickers: a narrow staircase down the right edge, two lines a row, so the man walking out is in the clear */
.wc-ui .wc-pk-cols { display: none; }
.wc-ui .wc-pk-row:nth-child(n) { margin-right: calc(var(--i, 0) * .5rem - 6rem); }
.wc-ui .wc-pk-row > div { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n n r" "s q f"; width: 43rem; gap: .3rem 1.2rem; padding: .8rem 9rem .6rem 2rem; }
.wc-ui .wc-pk-name { grid-area: n; } .wc-ui .wc-pk-rate { grid-area: r; } .wc-ui .wc-pk-sub { grid-area: s; font-size: 1.4rem; } .wc-ui .wc-pk-quota { grid-area: q; align-self: center; } .wc-ui .wc-pk-fig { grid-area: f; font-size: 1.5rem; }
@media (max-height: 480px) {
  .wc-ui .wc-screen-inningsBreak { --h: 27rem; } .wc-ui .wc-screen-inningsBreak .wc-col .wc-tot { font-size: 6.4rem; line-height: 5.2rem; height: 5.2rem; margin-top: 1rem; }
  .wc-ui .wc-screen.is-overlay .wc-pk-list { left: 71%; }
  .wc-ui .wc-pk-sub { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .wc-ui .wc-screen-inningsBreak .wc-col, .wc-ui .wc-screen-result .wc-col { width: 36rem; } .wc-ui .wc-screen-inningsBreak .wc-col-edge, .wc-ui .wc-screen-result .wc-col-edge { width: 39rem; }
  .wc-ui .wc-screen-result .wc-verdict { max-width: 42rem; bottom: calc(7.6rem + var(--sb)); } .wc-ui .wc-screen-result .wc-verdict-edge { width: 36rem; bottom: calc(5.8rem + var(--sb)); }
  .wc-ui .wc-screen-result .wc-verdict.is-team > .wc-x, .wc-ui .wc-screen-result .wc-verdict.is-tie > .wc-x { font-size: 3.1rem; max-width: 30rem; }
  .wc-ui .wc-pk-row:nth-child(n) { margin-right: 0; }
  .wc-ui .wc-pk-row > div { width: 100%; padding: .6rem calc(1.6rem + var(--sr)) .5rem 1.6rem; }
  /* thumbs: the question sits on the bottom edge itself (the step note steps aside) */
  .wc-ui.is-touch .wc-screen-toss .wc-help { display: none; }
  .wc-ui .wc-screen-toss .wc-toss-mid { bottom: calc(5.8rem + 1rem + var(--sb)); } .wc-ui.is-touch .wc-screen-toss .wc-toss-mid { bottom: calc(8px + var(--sb)); }
  /* a phone is short: the man of the match takes the top right corner so the verdict has the bottom edge to itself */
  .wc-ui .wc-screen-result .wc-pom { left: auto; right: 0; top: calc(2.6rem + var(--st)); padding: 1.1rem calc(3rem + var(--sr)) 1.2rem 4.6rem; clip-path: polygon(2.2rem 0, 100% 0, 100% 100%, 0 100%); text-align: right; }
}
/* fingers: Pause and Sound are as small as a finger allows (the trimmed HUD) */
.wc-ui.is-touch .wc-hud .wc-hud-btn { padding: 0 9px; font-size: 12px; }

/* ---- the graphics card notice (docs/ui.md, "Graphics card"): a small slab on the title, the How to fix screen, the Options line */
.wc-gpu-slab { position: absolute; right: calc(4.4rem + var(--sr)); top: calc(7.6rem + var(--st)); width: 40rem; max-width: 42vw; background: #fff; color: var(--g0); padding: 1.2rem 1.6rem 1.2rem; border-left: .8rem solid #f2b811; z-index: 2; }
.wc-gpu-slab .wc-x { display: block; font-size: 1.9rem; line-height: 1.05; }
.wc-gpu-slab p { font-size: 1.5rem; line-height: 1.25; margin: .5rem 0 .9rem; font-weight: 600; }
.wc-gpu-slab-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.wc-gpu-slab .wc-btn { font-size: 1.5rem; padding: .8rem 1.6rem .6rem 1.4rem; --btn: var(--g0); --btn-ink: #fff; }
.wc-gpu-slab .wc-gpu-dismiss { --btn: #d5dbe1; --btn-ink: var(--g0); }
.wc-gpu-help p, .wc-gpu-help li { font-size: 1.7rem; line-height: 1.35; color: #fff; }
.wc-gpu-help p { padding: .6rem 0; } .wc-gpu-help .wc-gpu-using { color: var(--soft); font-weight: 700; }
.wc-gpu-help ol, .wc-gpu-help ul { margin: .4rem 0 0 2.4rem; padding: 0; } .wc-gpu-help ol { list-style: decimal; } .wc-gpu-help ul { list-style: square; }
.wc-gpu-help li { display: list-item; min-height: 0; padding: .7rem 0 .5rem; border-bottom: 0; }
.wc-gpu-address { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin: .6rem 0 1rem; }
.wc-gpu-url { font: 700 2rem/1 ui-monospace, Menlo, Consolas, monospace; background: #fff; color: var(--g0); padding: 1rem 1.4rem .9rem; user-select: all; -webkit-user-select: all; cursor: text; }
.wc-gpu-copied { font-size: 1.5rem; font-weight: 700; color: #f2b811; }
.wc-gpu-row .wc-gpu-line { color: #fff; font-weight: 700; } .wc-gpu-row-fix { grid-column: 2; grid-row: 2; }
.wc-gpu-row .wc-btn { font-size: 1.5rem; padding: .8rem 1.6rem .6rem 1.4rem; }
@media (max-height: 520px) { .wc-gpu-slab { top: calc(5.6rem + var(--st)); width: 34rem; padding: .9rem 1.2rem; } }

/* the title's sound note: quiet, bottom right above the named player, gone once the sound runs */
.wc-sound-hint { position: absolute; right: calc(4.4rem + var(--sr)); top: calc(7.6rem + var(--st)); display: flex; align-items: center; gap: .8rem; font-size: 1.4rem; font-weight: 700; color: #fff; background: rgba(14,17,20,.72); padding: .6rem 1.2rem .5rem; opacity: .85; }
.wc-sound-ico { width: 1.6rem; height: 1.4rem; background: #fff; clip-path: polygon(0 30%, 30% 30%, 65% 0, 65% 100%, 30% 70%, 0 70%); }
.wc-ui.is-touch .wc-sound-hint { min-height: 40px; }
@media (max-height: 520px) { .wc-sound-hint { bottom: auto; top: calc(3rem + var(--st)); right: calc(22rem + var(--sr)); } }

/* ================================================================ owner note 31 (2026-11-11): a quieter, smaller HUD
   Every standing HUD group is drawn at 70 percent of its size. On a desktop that is the whole HUD; on touch it is
   everything but the controls a finger uses (those keep their 44 px and go half see-through when idle). */
.wc-ui:not(.is-touch) .wc-hud > :is(.wc-flags, .wc-replay, .wc-ticker, .wc-corner, .wc-bug, .wc-controls, .wc-banner) { zoom: .7; }
.wc-ui.is-touch .wc-hud > :is(.wc-flags, .wc-replay, .wc-ticker, .wc-bug, .wc-banner), .wc-ui.is-touch .wc-radar-box,
.wc-ui.is-touch .wc-controls :is(.wc-stamp, .wc-timing, .wc-aimline, .wc-mt) { zoom: .7; }
/* calmer while the ball is live: no slab flooded with the kit colour, the colour stays as the edge */
.wc-hud.is-live .wc-score-main { background: rgba(14,17,20,.78); color: #fff; box-shadow: inset .7rem 0 0 var(--bf); }
.wc-hud.is-live .wc-score-main::after { display: none; }
.wc-hud.is-live .wc-radar-box, .wc-hud.is-live .wc-flags { opacity: .62; }
.wc-hud .wc-ticker { opacity: .9; }
/* the banners: smaller, and gone sooner (hud.js) */
.wc-banner-four > b, .wc-banner-six > b { font-size: 6.4rem; padding: 1rem 4.6rem .4rem 2.4rem; }
.wc-banner-out > b { font-size: 5.8rem; padding: 1.2rem 4.4rem .7rem 3rem; }
.wc-banner > span { opacity: .85; }
/* touch: the pad and the buttons see-through until a finger is on them */
.wc-ui.is-touch .wc-tbtn { opacity: .66; transition: opacity .12s; } .wc-ui.is-touch .wc-tbtn:active, .wc-ui.is-touch .wc-tbtn.is-down, .wc-ui.is-touch .wc-tbtn[aria-pressed="true"] { opacity: 1; }
.wc-ui.is-touch .wc-pad { opacity: .55; } .wc-ui.is-touch .wc-pad:active, .wc-ui.is-touch .wc-pad.is-down { opacity: .9; }
.wc-ui.is-touch .wc-hud .wc-hud-btn { opacity: .62; }

/* ---- desktop: the keys stay while you bat or bowl (owner, 2026-11-11), calm, and the key just pressed lights */
.wc-runkeys { display: none; }
.wc-hud.is-desk .wc-runkeys { display: flex; gap: 2.4rem; justify-content: flex-end; margin-top: 1rem; }
.wc-hud.is-desk .wc-hints .wc-diamond, .wc-hud.is-desk .wc-bowlkeys, .wc-hud.is-desk .wc-runkeys { opacity: .78; }
.wc-hud.is-desk.is-live .wc-hints .wc-diamond, .wc-hud.is-desk.is-live .wc-bowlkeys, .wc-hud.is-desk.is-live .wc-runkeys { opacity: .6; }
.wc-hud.is-desk .wc-hint-tip { display: none; }
.wc-diamond .is-hit { outline: .4rem solid #fff; outline-offset: .2rem; background: #fff; color: var(--g0); }
.wc-hud.is-desk.is-live .wc-diamond:has(.is-hit), .wc-hud.is-desk .wc-diamond:has(.is-hit) { opacity: 1; }

/* ---- the running tracker: top left, only while the batters run */
.wc-runner { position: absolute; left: calc(2rem + var(--sl)); top: calc(7.4rem + var(--st)); display: flex; align-items: center; gap: 1.2rem; background: rgba(14,17,20,.82); padding: .8rem 1.4rem .8rem 1.2rem; box-shadow: inset .6rem 0 0 var(--bf); }
.wc-run-lane { position: relative; width: 22rem; height: 3.2rem; background: #c9b48a; border-radius: .3rem; }
.wc-run-crease { position: absolute; top: .3rem; bottom: .3rem; width: .3rem; background: #fff; } .wc-run-crease.is-l { left: 1.4rem; } .wc-run-crease.is-r { right: 1.4rem; }
.wc-run-man { position: absolute; top: 50%; width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem; border-radius: 50%; display: grid; place-items: center; transition: left .06s linear; }
.wc-run-lane .wc-run-man { left: 0; }
.wc-run-man.is-striker { background: var(--bf); color: var(--bi); box-shadow: 0 0 0 .3rem #fff; z-index: 2; }
.wc-run-man.is-non { background: #fff; color: var(--g0); box-shadow: 0 0 0 .3rem var(--bf); }
.wc-run-man b { font: italic 900 1.2rem/1 var(--font-x); letter-spacing: -.02em; }
.wc-run-throw { position: absolute; top: -1.3rem; width: 0; height: 0; border-left: .9rem solid transparent; border-right: .9rem solid transparent; border-top: 1.1rem solid #ff4d3a; }
.wc-run-throw.is-l { left: .6rem; } .wc-run-throw.is-r { right: .6rem; }
.wc-run-side { display: flex; flex-direction: column; align-items: flex-start; min-width: 6.4rem; }
.wc-run-count { font-size: 3rem; line-height: .9; color: #fff; }
.wc-run-read { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; color: #9fe39a; }
.wc-runner[data-risk="tight"] .wc-run-read, .wc-runner[data-risk="medium"] .wc-run-read { color: #f2b811; }
.wc-runner[data-risk="risky"] .wc-run-read, .wc-runner[data-risk="high"] .wc-run-read { color: #ff6a55; }
.wc-ui.is-touch .wc-runner { top: calc(1.2rem + var(--st)); left: calc(42rem + var(--sl)); }

/* the ready line (owner, 2026-11-11: "hard to read"): bottom centre over the score line, solid, full white, a key cap,
   a slow pulse; it leaves the instant the ball goes live (hud.js). Not part of the 70 percent HUD and never dimmed. */
.wc-face { position: absolute; left: 50%; bottom: calc(9.6rem + var(--sb)); transform: translateX(-50%); display: flex; align-items: center; gap: 1.2rem; padding: 1rem 2.2rem .9rem 1.4rem; background: #0e1114; box-shadow: inset .7rem 0 0 var(--bf); color: #fff; font: italic 900 2.6rem/1 var(--font-x); text-transform: uppercase; white-space: nowrap; animation: wc-face-pulse 1.6s ease-in-out infinite; z-index: 3; }
.wc-face-key { display: inline-block; font: 800 1.8rem/1 var(--font-x); font-style: normal; letter-spacing: .04em; color: var(--g0); background: #fff; padding: .7rem 1.2rem .5rem; border-radius: .5rem; box-shadow: 0 .35rem 0 #8d969e; }
@keyframes wc-face-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@media (prefers-reduced-motion: reduce) { .wc-face { animation: none; } }
/* touch: Play and Run in at full strength with a label, whatever the idle see-through */
.wc-ui.is-touch [data-set="face"] [data-act="confirm"], .wc-ui.is-touch [data-set="aim"] [data-act="confirm"] { opacity: 1; font-size: 15px; box-shadow: 0 0 0 3px #fff; }

/* match settings fit on one screen (six rows, the Ground row second): tighter rows, and on a phone no notes */
.wc-screen-settings .wc-seg-row { padding: 1rem 0 .9rem; }
@media (max-height: 520px) { .wc-screen-settings .wc-rows { top: 2.4rem; bottom: 7rem; } .wc-screen-settings .wc-seg-row { padding: .45rem 0 .35rem; } .wc-screen-settings .wc-seg-note { display: none; } }

/* ============================================================ What's new (src/ui/whatsnew.js, src/data/changelog.js)
   The title's top right corner: the squads date, and under it a quiet "v1.0 - What's new" line, far from Play.
   On a phone the line is a 44 px target but only the small chip inside it is drawn. */
.wc-title-corner { position: absolute; right: calc(4.4rem + var(--sr)); top: calc(3rem + var(--st)); display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.wc-title-corner .wc-foot { position: static; }
.wc-whatsnew { display: flex; align-items: center; justify-content: flex-end; padding: 0; background: none; color: #fff; }
.wc-whatsnew > span { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; background: rgba(14,17,20,.8); padding: .6rem 1.4rem .5rem; opacity: .85; white-space: nowrap; }
.wc-whatsnew:focus { outline: none; } .wc-whatsnew:focus > span, .wc-whatsnew:hover > span { background: #fff; color: var(--g0); opacity: 1; }
.wc-whatsnew:focus-visible > span { outline: .3rem solid var(--ks); outline-offset: .2rem; }
.wc-whatsnew b { font-weight: 700; }
.wc-new-dot { flex: none; width: 1rem; height: 1rem; min-width: 8px; min-height: 8px; margin-right: .8rem; border-radius: 50%; background: var(--amber); }
.wc-new-dot[hidden] { display: none; }
.wc-whatsnew.has-new > span { opacity: 1; }
/* the notes that share the corner stand below the line now */
.wc-screen-title .wc-sound-hint, .wc-screen-title .wc-gpu-slab { top: calc(11.2rem + var(--st)); }
.wc-ui.is-touch .wc-whatsnew { min-height: 44px; min-width: 44px; }
.wc-ui.is-touch .wc-title-corner { gap: 0; }
@media (max-height: 520px) {
  .wc-title-corner .wc-foot, .wc-whatsnew > span { font-size: max(1.5rem, 11px); }
  /* on a phone the sound note stands left of the corner, clear of both lines; the graphics notice under them */
  .wc-screen-title .wc-sound-hint { top: calc(3rem + var(--st)); right: calc(35rem + var(--sr)); }
  .wc-screen-title .wc-gpu-slab { top: calc(3rem + 76px + var(--st)); }
  }

/* the card: one slab over the ground, the side's flood on its head, two lists side by side, Close at the foot */
.wc-wn { position: absolute; left: 0; right: 0; top: calc(3rem + var(--st)); bottom: calc(8rem + var(--sb)); margin: auto; z-index: 6; width: min(100rem, calc(100% - 32px - var(--sl) - var(--sr))); height: fit-content; max-height: calc(100% - 11rem - var(--st) - var(--sb)); display: flex; flex-direction: column; background: var(--g1); border-left: .8rem solid var(--ks); }
.wc-wn-head { background: var(--kf); color: var(--ki); padding: 2rem 3rem 1.6rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .4rem 2rem; }
.wc-wn-head .wc-k { grid-column: 1 / -1; font-weight: 700; font-size: max(1.4rem, 11px); text-transform: uppercase; }
.wc-wn-head h2 { font-size: max(4.4rem, 22px); line-height: .95; }
.wc-wn-ver { font-weight: 700; font-size: max(1.6rem, 12px); color: var(--kq); text-align: right; }
.wc-wn-body { min-height: 0; overflow-y: auto; padding: 2.2rem 3rem 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem 4rem; scrollbar-width: thin; scrollbar-color: #fff var(--g2); }
.wc-wn-body:focus { outline: none; }
.wc-wn h3 { display: inline-block; background: #fff; color: var(--g0); padding: .7rem 1.8rem .5rem 1.4rem; transform: skewX(-12deg); font: italic 900 max(1.8rem, 12px)/1 var(--font-x); text-transform: uppercase; margin: 0 0 .6rem -.6rem; }
.wc-wn h3 span { display: block; transform: skewX(12deg); }
.wc-wn li { position: relative; font-size: max(1.8rem, 13px); line-height: 1.3; padding: .8rem 0 .7rem 2.2rem; border-bottom: .2rem solid rgba(255,255,255,.1); }
.wc-wn li::before { content: ""; position: absolute; left: 0; top: calc(.8rem + .45em); width: .9rem; height: .9rem; min-width: 6px; min-height: 6px; background: var(--ks); transform: skewX(-12deg); }
.wc-wn .is-next li { color: var(--soft); } .wc-wn .is-next li::before { background: none; box-shadow: inset 0 0 0 .2rem var(--soft); }
.wc-wn-actions { display: flex; justify-content: flex-end; padding: 1.2rem 3rem 2rem; }
.wc-ui.is-touch .wc-screen-whatsNew .wc-help { display: none; }
.wc-ui.is-touch .wc-wn { top: calc(8px + var(--st)); bottom: calc(8px + var(--sb)); max-height: calc(100% - 16px - var(--st) - var(--sb)); }
@media (max-height: 520px) {
  .wc-wn-head { padding: 8px 16px 6px; } .wc-wn-head .wc-k { display: none; }
  .wc-wn-body { padding: 8px 16px 4px; gap: 4px 20px; }
  .wc-wn li { line-height: 1.25; padding: 4px 0 4px 14px; }
  .wc-wn li::before { top: calc(4px + .4em); }
  .wc-wn h3 { margin-bottom: 2px; }
  .wc-wn-actions { padding: 4px 16px 8px; }
}
@media (orientation: portrait) and (max-width: 600px) { .wc-wn-body { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================ Tap to start (src/ui/tapstart.js, owner 2026-11-12)
   A phone or tablet on its side: one tap over the title says what it does (full screen, sound), then the layer
   fades and the menu takes the next tap. The kit band of the title runs behind the words. Under the rotate cover. */
.wc-tapstart { position: absolute; inset: 0; z-index: 48; pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: max(1.2rem, 8px); padding: 16px calc(16px + var(--sr)) calc(16px + var(--sb)) calc(16px + var(--sl)); background: rgba(10,13,16,.74); text-align: center; cursor: pointer; animation: wc-fade .25s backwards; transition: opacity .25s; touch-action: manipulation; }
.wc-tapstart.is-out { opacity: 0; pointer-events: none !important; }
.wc-tapstart-band { position: absolute; left: -10%; right: -10%; top: 50%; height: max(13rem, 84px); margin-top: max(-9rem, -58px); background: var(--kf); transform: rotate(-5deg); box-shadow: 0 max(1rem, 7px) 0 var(--ks); }
.wc-tapstart-go { position: relative; display: block; color: var(--ki); font-size: clamp(36px, 9rem, 72px); line-height: .9; animation: wc-tap-pulse 1.8s ease-in-out infinite; white-space: nowrap; }
.wc-tapstart-line { position: relative; margin-top: max(2.4rem, 16px); font: 700 max(2rem, 15px)/1.2 var(--font-d); color: #fff; background: var(--g0); padding: 6px 14px 5px; }
.wc-tapstart-tip { position: relative; font: 500 max(1.5rem, 12px)/1.25 var(--font-d); color: #d5dbe1; background: rgba(14,17,20,.86); padding: 4px 10px; max-width: 36em; }
.wc-tapstart-line[hidden], .wc-tapstart-tip[hidden] { display: none; }
@keyframes wc-tap-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: .82; } }
/* after the system gesture took the game out of full screen: what the next tap does, small and out of the way */
.wc-fschip { position: absolute; left: 50%; top: calc(6px + var(--st)); z-index: 44; transform: translateX(-50%); min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; font: 700 13px/1 var(--font-d); color: #fff; background: rgba(14,17,20,.82); box-shadow: inset 4px 0 0 var(--ks); white-space: nowrap; pointer-events: auto; opacity: .9; }
.wc-fschip { gap: 10px; transition: padding .3s, opacity .3s; }
/* four white corners: the full screen sign */
.wc-fschip-ico { flex: none; position: relative; width: 16px; height: 16px; }
.wc-fschip-ico b { position: absolute; width: 6px; height: 6px; border: 0 solid #fff; }
.wc-fschip-ico b:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .wc-fschip-ico b:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.wc-fschip-ico b:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .wc-fschip-ico b:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
/* after a few seconds only the sign is left, still a finger-sized target */
.wc-fschip.is-small { min-width: 44px; padding: 0 14px; justify-content: center; opacity: .75; }
.wc-fschip.is-small .wc-fschip-text { display: none; }
@media (prefers-reduced-motion: reduce) { .wc-tapstart-go { animation: none; } .wc-tapstart { transition: none; } }

/* ============================================================ a phone on its side with the browser bars showing (owner, 2026-11-12)
   "In landscape mode I am unable to scroll to even find the option for fullscreen." A real Android phone in Chrome
   with the address bar up is 740 to 915 wide but only 280 to 360 tall. On touch, at those heights: the title is
   compacted (a smaller logo band, no kicker, the menu in two columns of four rows so Quick match, New match and every lesser entry
   are on screen without scrolling), the pause menu likewise, and every panel that can run long scrolls under a
   finger (pan-y, overflow auto, its own overscroll). Above 360 px tall nothing here applies. */
@media (orientation: landscape) and (max-height: 360px) {
  .wc-ui.is-touch .wc-screen-title .wc-band { top: 1.2rem; height: 10.6rem; } .wc-ui.is-touch .wc-screen-title .wc-band2 { top: 11.8rem; height: 1.2rem; } .wc-ui.is-touch .wc-screen-title .wc-band3 { display: none; }
  .wc-ui.is-touch .wc-screen-title .wc-logo { top: 2rem; font-size: 5rem; } .wc-ui.is-touch .wc-screen-title .wc-logo small { display: none; }
  .wc-ui.is-touch .wc-screen-title .wc-menu { top: 13.6rem; } .wc-ui.is-touch .wc-screen-title .wc-loading { top: 13.4rem; }
  .wc-ui.is-touch .wc-menu { grid-template-rows: repeat(4, auto); gap: 0 8rem; }
  /* the white slab of the chosen entry stops short of the next column */
  .wc-ui.is-touch .wc-menu-item:focus::before, .wc-ui.is-touch .wc-menu-item.is-on::before { right: -3rem; }
  .wc-ui.is-touch .wc-menu-item:focus::after, .wc-ui.is-touch .wc-menu-item.is-on::after { left: calc(100% + 2.4rem); width: 2rem; }
  .wc-ui.is-touch .wc-menu-item, .wc-ui.is-touch .wc-menu-item.wc-menu-small { font-size: 2.6rem; line-height: 1; }
  .wc-ui.is-touch .wc-menu-item:focus, .wc-ui.is-touch .wc-menu-item.is-on { font-size: 3.4rem; }
  /* the title: the main entries in the first column; How to play, Options, Credits and Full screen in the second */
  .wc-ui.is-touch .wc-screen-title .wc-star { display: none; }
  /* pause (up to eight entries) and the field: a thin band, the menu in two columns of four, the note about saving left
     out (it sat on Quit to menu) */
  .wc-ui.is-touch :is(.wc-screen-pause, .wc-screen-field) .wc-band { top: 1.6rem; height: 9.4rem; } .wc-ui.is-touch :is(.wc-screen-pause, .wc-screen-field) .wc-band2 { top: 11rem; height: 1.2rem; } .wc-ui.is-touch :is(.wc-screen-pause, .wc-screen-field) .wc-band3 { display: none; }
  .wc-ui.is-touch :is(.wc-screen-pause, .wc-screen-field) .wc-logo { top: 2.6rem; font-size: 4.4rem; } .wc-ui.is-touch :is(.wc-screen-pause, .wc-screen-field) .wc-logo small { font-size: 1.8rem; margin-bottom: .4rem; }
  .wc-ui.is-touch :is(.wc-screen-pause, .wc-screen-field) .wc-menu { top: 14.4rem; grid-template-rows: repeat(4, auto); }
  .wc-ui.is-touch .wc-screen-pause .wc-note, .wc-ui.is-touch .wc-screen-pause .wc-help { display: none; }   /* Resume is the first entry */
}
/* ---- the touch HUD on a phone on its side, 280 to 430 px tall and up to 960 px wide (iPhone Safari with its bars,
   an iPhone SE at 667 x 375, a big phone at 932 x 430; 2026-11-12: Pause and Sound over
   the board, View, Field and Side stacked over the mini-map, the delivery picker, Effort and Run in crowding the right
   half). Nothing overlaps and every control keeps 44 px:
   - the top right corner is one column: the mini-map (smaller), then Pause and Sound, each 100 px wide
   - bowling: the picker is a column of its own left of that, from the top; Run in alone at the bottom right; View,
     Field, Side and Effort a column of four just right of the pad (the left thumb aims and changes the field)
   - batting: Pause sits left of the mini-map, the stroke buttons stay in the bottom right */
@media (orientation: landscape) and (max-height: 430px) and (max-width: 960px) {
  /* the mini-map in plain pixels (a zoom on it measured and drew differently in WebKit): 60 px, its tab small */
  .wc-ui.is-touch .wc-radar-box, .wc-ui.is-touch .wc-hud:is(.is-live, :not(.is-live)) .wc-radar-box { zoom: 1; transform: none; width: 60px; }
  .wc-ui.is-touch .wc-radar { width: 60px; height: 60px; margin-top: -2px; } .wc-ui.is-touch .wc-radar-tab { font-size: 8px; padding: 2px 5px 1px; margin-left: 2px; } .wc-ui.is-touch .wc-radar-label { display: none; }
  .wc-ui.is-touch .wc-var { align-items: center; }
  .wc-ui.is-touch .wc-hud .wc-hud-btn { width: 100px; padding: 0 4px; letter-spacing: -.02em; }
  .wc-ui.is-touch .wc-hud.is-bowling .wc-corner { flex-direction: column; align-items: flex-end; gap: 6px; top: calc(4px + var(--st)); right: calc(10px + var(--sr)); }
  .wc-ui.is-touch .wc-hud.is-bowling .wc-radar-box { order: -1; }
  /* (owner, 2026-11-13, accidental Pause taps) Skip, tapped on every replay, stays a thumb's width clear of the Pause
     column: 7 px apart at right 120 px, 37 px at 150 px; Pause and Sound a little further apart too */
  .wc-ui.is-touch .wc-hud.is-bowling .wc-corner-btns { flex-direction: column; gap: 12px; margin: 0; }
  .wc-ui.is-touch .wc-hud.is-bowling .wc-controls { top: calc(4px + var(--st)); left: auto; right: calc(150px + var(--sr)); }
  .wc-ui.is-touch .wc-hud.is-bowling .wc-vars { gap: 4px; }
  .wc-ui.is-touch .wc-hud.is-bowling .wc-var { min-height: 44px; height: 44px; }
  :is([data-set="aim"], [data-set="meter"]) [data-act="confirm"] { right: 0; top: auto; bottom: 0; }
  :is([data-set="aim"], [data-set="meter"]) :is([data-act="camera"], [data-act="field"], [data-act="switch"], [data-act="mod"]) {
    top: auto; width: 84px; min-width: 84px; padding: 0 6px;
    right: calc(100vw - 10px - var(--sr) - var(--sl) - 2rem - max(12.8rem, 128px) - 22px - 84px);
  }
  [data-set="aim"] [data-act="camera"] { bottom: 150px; } [data-set="aim"] [data-act="field"] { bottom: 100px; } [data-set="aim"] [data-act="switch"] { bottom: 50px; }
  :is([data-set="aim"], [data-set="meter"]) [data-act="mod"] { bottom: 0; }
  /* the release meter just left of the right-hand column (the mini-map, Pause, Run in), from under the aim chip down to
     well above the thumb on Run in */
  .wc-ui.is-touch .wc-hud .wc-mt.wc-mt-v { right: calc(130px + var(--sr)); top: calc(44px + var(--st)); height: 60vh; }
}
/* the big round button's longest word (Release) inside its 82 px circle */
.wc-ui.is-touch [data-set="meter"] [data-act="confirm"] { font-size: 12px; letter-spacing: -.03em; }
@media (orientation: landscape) and (max-height: 300px) {
  /* the batting buttons' top row (Step out, Leave) starts 68 px down at 280 px tall: the mini-map ends above it */
  .wc-ui.is-touch .wc-radar-box, .wc-ui.is-touch .wc-hud:is(.is-live, :not(.is-live)) .wc-radar-box { width: 48px; } .wc-ui.is-touch .wc-radar { width: 48px; height: 48px; }
}
/* every panel that can run long, at any height on touch: a finger pans it, the page and the ground do not take the drag */
.wc-ui.is-touch :is(.wc-rows, .wc-how-cols, .wc-credits, .wc-card, .wc-sheet, .wc-pk-list, .wc-wn-body) { touch-action: pan-y; }
@media (max-height: 480px) {
  .wc-ui.is-touch :is(.wc-rows, .wc-how-cols, .wc-credits, .wc-card, .wc-sheet, .wc-wn-body) { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
}

/* ============================================================ (owner note 84) a phone has no keys
   "On phone it says X back but there is no X key really to press." On touch no key cap is drawn anywhere: not the
   pad face buttons, the shoulder shapes, the d-pad, the number keys of How to play, the key on the ready line.
   The help bars keep only what a finger can press, and a Back is "‹ Back", a slab that says what it does.
   The delivery chips keep their slot numbers (they are the chips, not keys). Desktop is unchanged. */
.wc-ui.is-touch :is(.wc-fb, .wc-sh, .wc-dp, .wc-face-key):not(.wc-touch *), .wc-ui.is-touch .wc-nk:not(.wc-var .wc-nk), .wc-ui.is-touch .wc-gl:not(button), .wc-ui.is-touch .wc-diamond { display: none !important; }
/* a help bar with nothing left to press goes */
.wc-ui.is-touch .wc-help:not(:has(button)) { display: none; }
/* the buttons that were key prompts: a skewed slab with the words, finger sized */
.wc-ui.is-touch :is(.wc-help, .wc-keys) button.wc-gl { min-height: 44px; min-width: 64px; padding: 0 18px 0 14px; gap: 6px; justify-content: center; background: #fff; color: var(--g0); font: italic 900 max(1.7rem, 14px)/1 var(--font-x); text-transform: uppercase; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.wc-ui.is-touch :is(.wc-help, .wc-keys) button.wc-gl:active { background: var(--cap); }
.wc-ui.is-touch button.wc-back::before { content: "\2039"; font: 900 max(2.6rem, 22px)/.8 var(--font-d); margin-top: -2px; }
/* the options column lists keys (M, G, Esc): not on a phone */
.wc-ui.is-touch .wc-screen-options .wc-facts:not(.wc-facts-touch) { display: none; }
/* How to play on a phone: the buttons as a finger sees them */
.wc-tg { display: inline-grid; place-items: center; min-width: 4.6rem; height: 3.2rem; padding: 0 1rem; border-radius: 1.6rem 1.6rem .6rem .6rem; background: var(--c, var(--cap)); color: #111; font: italic 900 max(1.1rem, 9px)/1 var(--font-x); text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 -.3rem 0 rgba(0,0,0,.25), 0 0 0 .2rem var(--g0); }
.wc-tg.is-a, .wc-tg.is-b, .wc-tg.is-x, .wc-tg.is-y { border-radius: 1.6rem; color: #fff; }
.wc-tg.is-a { --c: var(--pa); } .wc-tg.is-b { --c: var(--pb); } .wc-tg.is-x { --c: var(--px); } .wc-tg.is-y { --c: var(--py); color: #111; }
.wc-tg.is-pad { width: 3.6rem; min-width: 0; height: 3.6rem; padding: 0; border-radius: 50%; background: rgba(14,17,20,.8); box-shadow: inset 0 0 0 .3rem var(--cap); position: relative; }
.wc-tg.is-pad::after { content: ""; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--cap); }
.wc-screen-howto .wc-how-keys:has(.wc-tg) { gap: .4rem; flex-wrap: wrap; }
.wc-screen-howto .wc-how:has(.wc-tg) li { grid-template-columns: 11rem minmax(0, 1fr); }
/* the scorecard on a phone (the screenshot with note 84): the strike rate was cut by the scrollbar at the right edge.
   The list keeps clear of the bar, and the last column is wide enough for 200.0. */
@media (max-height: 480px) {
  .wc-card { padding-right: max(2rem, 14px); scrollbar-width: thin; scrollbar-color: #fff var(--g2); }
  .wc-tbl li { grid-template-columns: 17rem minmax(0, 1fr) 5.6rem 4.4rem 4rem 4rem 7.6rem; }
}
/* while there is more list below (screens.js, has-more), a solid foot says so: the next section cut by the bottom edge
   (the bowling side's coloured heading, which read as a stray red bar) is covered and named as more to scroll to */
@media (max-height: 480px) {
  .wc-card.has-more::after { content: "More below"; position: sticky; bottom: 0; display: block; margin-top: -1px; padding: 6px 0 4px; background: rgb(10,13,16); border-top: .2rem solid rgba(255,255,255,.14); font: 700 max(1.4rem, 11px)/1.2 var(--font-d); color: var(--soft); text-align: right; }
}
/* the "‹ Back" slab in the top right corner (scorecard, charts) is finger sized: the list starts under it */
@media (max-height: 480px) {
  .wc-ui.is-touch .wc-keys { top: calc(6px + var(--st)); }
  .wc-ui.is-touch .wc-screen-scorecard .wc-card { top: calc(56px + var(--st)); }
  .wc-ui.is-touch .wc-screen-charts .wc-figs { top: calc(58px + var(--st)); }
}
@media (max-height: 480px) { .wc-screen-howto .wc-col h2 { font-size: 3.6rem; } .wc-screen-howto .wc-col .wc-ov { max-width: 28rem; } }
/* (owner note 87) Options on a phone: each row's name on its own line, the chips under it in an even grid of equal
   cells (two to a line), so Auto Full / Short Off and Broadcast Calm / Play only no longer wrap ragged */
@media (max-height: 480px) {
  .wc-ui.is-touch .wc-rows.is-two .wc-seg-row:not(.wc-level-row) { grid-template-columns: minmax(0, 1fr); gap: .6rem 0; }
  /* a narrow column (667 wide): the level's name column and its number close up, so the track keeps the width a finger
     needs and the names stay a place to drag the panel from */
  @media (max-width: 760px) { .wc-ui.is-touch .wc-rows.is-two .wc-level-row { grid-template-columns: 8.4rem minmax(0, 1fr); gap: .2rem 1rem; } .wc-ui.is-touch .wc-rows.is-two .wc-level-wrap { gap: .8rem; } .wc-ui.is-touch .wc-rows.is-two .wc-level-num { min-width: 3.4rem; font-size: 2rem; } }
  .wc-ui.is-touch .wc-rows.is-two .wc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.2rem; padding-left: 1rem; }
  .wc-ui.is-touch .wc-rows.is-two .wc-seg:has(> :only-child) { grid-template-columns: minmax(0, max-content); }
  .wc-ui.is-touch .wc-rows.is-two .wc-seg-btn { justify-content: center; text-align: center; }
  .wc-ui.is-touch .wc-rows.is-two .wc-seg-btn { padding-left: .8rem; padding-right: .8rem; white-space: normal; }
  .wc-ui.is-touch .wc-rows.is-two .wc-seg-btn > span { line-height: 1.05; }
  .wc-ui.is-touch .wc-rows.is-two .wc-seg-row:not(.wc-level-row) :is(.wc-seg-note, .wc-seg-note-only, .wc-gpu-row-fix) { grid-column: 1; grid-row: auto; }
  .wc-ui.is-touch .wc-facts-touch .wc-x { font-size: 2.2rem; }
}

/* ============================================================ team pick (owner note 90, 2026-11-12)
   "Why is the selected team, in this case India, not visible? Go for a better UX." The chosen side's shirt stays on
   the rail: lifted, a size up, ringed in white with a tick, its tag inverted. The rest stay tappable and step back.
   "Play as India" at the bottom right goes on (screens.js teams). On a phone the big shirt gives its room to the
   sheet, which scrolls with a "More below" foot and keeps its columns clear of the scrollbar. */
.wc-peg { transition: transform .15s, opacity .15s; }
.wc-ui .wc-peg:focus svg, .wc-ui .wc-peg.is-on svg { opacity: 1; }
.wc-ui .wc-peg:focus::before, .wc-ui .wc-peg.is-on::before { display: none; }
.wc-ui .wc-peg:focus:not(.is-on) b { color: inherit; background: none; padding: 0; transform: none; font-size: 1.9rem; margin-top: .6rem; }
.wc-ui .wc-peg:focus:not(.is-on) span { display: inline; color: var(--soft); margin-top: 0; }
.wc-peg.is-on { transform: translateY(-.6rem) scale(1.1); z-index: 2; opacity: 1; }
.wc-peg.is-on svg { outline: .4rem solid #fff; outline-offset: .2rem; border-radius: .8rem; background: rgba(255,255,255,.08); }
.wc-peg-tick { display: none; }
.wc-peg.is-on .wc-peg-tick { display: block; position: absolute; left: 50%; top: -.4rem; margin-left: 3.2rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ok); border: .3rem solid #fff; z-index: 3; }
.wc-peg.is-on .wc-peg-tick::after { content: ""; position: absolute; left: .75rem; top: .35rem; width: .7rem; height: 1.3rem; border: solid #fff; border-width: 0 .35rem .35rem 0; transform: rotate(45deg); }
.wc-pegs:has(.is-on) .wc-peg:not(.is-on):not(:disabled) { opacity: .72; }
.wc-pegs:has(.is-on) .wc-peg:not(.is-on):not(:disabled):hover { opacity: 1; }
.wc-team-actions { --btn: var(--g0); --btn-main: #fff; --btn-main-ink: var(--g0); }
.wc-team-go { min-height: 44px; }
.wc-sheet.has-more::after { content: "More below"; position: sticky; bottom: 0; display: block; margin-top: -1px; padding: 6px 0 4px; background: var(--kf); border-top: .2rem solid color-mix(in srgb, var(--ki) 24%, transparent); font: 700 max(1.4rem, 11px)/1.2 var(--font-d); color: var(--ki); text-align: right; }
@media (max-height: 480px) {
  .wc-screen-teams .wc-kit { display: none; }
  .wc-screen-teams .wc-flood { left: 4rem; } .wc-screen-teams .wc-flood-edge { left: 1.6rem; }
  .wc-screen-teams .wc-sheet { left: 20rem; right: calc(2rem + var(--sr)); bottom: calc(58px + var(--sb)); }
  /* the squad sheets (the pick and the playing XI) keep their columns and ratings clear of the scrollbar */
  .wc-sheet { padding-right: max(2rem, 14px); scrollbar-width: thin; scrollbar-color: #fff color-mix(in srgb, var(--kf) 70%, #000); }
  .wc-sheet .wc-rt { right: max(2rem, 14px); }
  .wc-screen-teams .wc-sheet h2 { font-size: 4.8rem; height: 4.8rem; line-height: 4.8rem; }
  /* a lower rail, so the sheet under it shows more of the squad */
  .wc-screen-teams .wc-peg svg { height: 8.4rem; } .wc-screen-teams .wc-peg b { margin-top: .3rem; }
  .wc-screen-teams .wc-flood, .wc-screen-teams .wc-flood-edge { top: 19.4rem; } .wc-screen-teams .wc-sheet { top: 20.6rem; }
  .wc-screen-teams .wc-team-actions { bottom: calc(6px + var(--sb)); right: calc(2rem + var(--sr)); }
  .wc-peg.is-on .wc-peg-tick { margin-left: 2.4rem; }
}

/* ============================================================ names and scores inside their slabs (owner note 94, 2026-11-13)
   "New Zealand score is cutting off a little": on a phone with a notch the column's text starts the notch's width
   further in (padding-left takes --sl) while the slab kept its width, and the skewed edge cut the score. Every kit
   column is now as much wider as the notch, and what it holds stops short of the slab's edge where it is lowest
   (the edge leans in going down: the result and innings break slabs by .2126 of their height, the full height ones
   by 15rem). A long name or score is then set smaller by the name fitting (data-fit), never cut. */
.wc-col { width: calc(47rem + var(--sl)); } .wc-col-edge { width: calc(50rem + var(--sl)); }
.wc-col > :is(h2, small, p, ul, div, .wc-tot) { max-width: calc(47rem - 5rem - 15rem * .55 - 1.5rem); }
.wc-ui .wc-screen-inningsBreak .wc-col, .wc-ui .wc-screen-result .wc-col { width: calc(39.6rem + var(--sl)); }
.wc-ui .wc-screen-inningsBreak .wc-col-edge, .wc-ui .wc-screen-result .wc-col-edge { width: calc(42.6rem + var(--sl)); }
.wc-ui :is(.wc-screen-inningsBreak, .wc-screen-result) .wc-col > :is(h2, small, p, ul, div, .wc-tot) { max-width: calc(39.6rem - 5rem - var(--h) * .2126 - 1.5rem); }
.wc-ui .wc-screen-result .wc-result-lines { width: min(25rem, calc(39.6rem - 5rem - var(--h) * .2126 - 1.5rem)); }
@media (max-height: 480px) {
  .wc-col { width: calc(40rem + var(--sl)); } .wc-col-edge { width: calc(43rem + var(--sl)); }
  .wc-col > :is(h2, small, p, ul, div, .wc-tot) { max-width: calc(40rem - 5rem - 15rem * .6 - 1rem); }
  .wc-ui .wc-screen-inningsBreak .wc-col, .wc-ui .wc-screen-result .wc-col { width: calc(36rem + var(--sl)); }
  .wc-ui .wc-screen-inningsBreak .wc-col-edge, .wc-ui .wc-screen-result .wc-col-edge { width: calc(39rem + var(--sl)); }
  .wc-ui :is(.wc-screen-inningsBreak, .wc-screen-result) .wc-col > :is(h2, small, p, ul, div, .wc-tot) { max-width: calc(36rem - 5rem - var(--h) * .2126 - 1rem); }
  .wc-ui .wc-screen-result .wc-result-lines { width: calc(36rem - 5rem - var(--h) * .2126 - 1rem); }
}
/* a phone with its bars up (320 px tall or less): the result column closes up and the verdict under it is set a size
   down and wider, so the verdict no longer lies over the second side's score */
@media (max-height: 320px) {
  .wc-ui .wc-screen-result { --h: calc(12rem + var(--lines, 2) * 6.2rem); }
  .wc-ui .wc-screen-result .wc-col { padding-top: calc(2rem + var(--st)); }
  .wc-ui .wc-screen-result .wc-result-lines { margin-top: 1.2rem; } .wc-ui .wc-screen-result .wc-result-lines li { padding: .7rem 0 .5rem; }
  .wc-ui .wc-screen-result .wc-verdict { max-width: 48rem; padding: 1.1rem 3.6rem 1rem 8rem; }
  .wc-ui .wc-screen-result .wc-verdict.is-team > .wc-x, .wc-ui .wc-screen-result .wc-verdict.is-tie > .wc-x { font-size: 2.5rem; max-width: 38rem; }
}
/* ---- (owner, 2026-11-13) pickers on a phone: "by accidentally pressing the next ball option due to muscle memory,
   tapping on the lower end batsman. Let's move the list to the left instead or apply a better UX." Nothing to choose
   where a thumb was tapping a moment before: the right thumb's buttons (Next ball, Run, Stroke, Run in, Release: the
   bottom right, from 178 px down), the left thumb's pad and the bowler's Effort, Side, Field and View column (the
   bottom left, out to 264 px), and Skip (the top, down to 52 px). The list runs down the clear column between them,
   a thumb's width (24 px) off each; the heading stays top left and Pause top right, where the HUD's Pause is.
   ui/index.js also takes no tap for the first moment a picker is up. tools/pause-shots.mjs measures all of it. */
@media (max-height: 480px) {
  .wc-ui.is-touch .wc-screen.is-overlay .wc-pk-list { left: calc(288px + var(--sl)); right: calc(274px + var(--sr)); width: auto; top: calc(76px + var(--st)); bottom: calc(6px + var(--sb)); align-items: stretch; }
  .wc-ui.is-touch .wc-pk-head { transform: scale(.7); }
  .wc-ui.is-touch .wc-help-pick { left: auto; right: calc(10px + var(--sr)); top: calc(4px + var(--st)); bottom: auto; min-height: 0; padding: 0; background: none; clip-path: none; }
  .wc-ui.is-touch .wc-help-pick::before { display: none; }
}
