/* The player app's tokens and the shell (lane 3), copied from set 4 round 3 (13 player app/records/2026-11-05 player app design
   set 4/: workout.html for the panes, the head and the row; sign in.html for the sign-in and the new password; shared/badge.html for
   the badge). Every pane's CSS uses these tokens, never a literal colour the tokens already hold. The colourway is set on
   <html data-way="basketball|football"> from the signed-in player's route. Poppins: the system font stands in until the font file
   is self-hosted in public/assets/ (no call leaves the app, the never list). */

:root, [data-way="basketball"] {
  --accent: #F46D25; --accent-dark: #C4551A; --button: #B84F18; --deepest: #9A3F11; --second: transparent;
  --tint: color-mix(in srgb, var(--accent) 14%, #fff);
  --page: #F3F4F6; --card: #fff; --ink: #111827; --muted: #6B7280; --rule: #E5E7EB; --green: #1a8f4a; --red: #E24B4A;
  --shadow: 0 0 0 1px rgba(0,0,0,.04), 0 10px 18px -8px rgba(0,0,0,.18);
  --spring: cubic-bezier(.2,.8,.2,1);
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --row-h: 80px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --top-keep: 0px;
}
[data-way="football"] { --accent: #3A97FF; --accent-dark: #2B77D1; --button: #276FC4; --deepest: #1D5BA4; --second: #FFCC00; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* the page colour to the very top (fix round 4): html carries it too, so no grey shows past the body.
   Row 25 (Adam's iPhone, iOS 18.7, test page T, 08/11 17:38): both shells carried status-bar-style black-translucent, so the page ran
   under the status bar and what was painted in the top inset was what the bar showed. Round 13 (08/11 22:27): both shells carry
   status-bar-style default now (the coach app's), the inset reads 0 and iOS paints the bar from theme-color, the page grey.
   Rows 27 and 28 (Adam 08/11 18:4x and 19:5x): no global band over the bar any more (the old fixed .topcap switched colour only once
   a swipe settled, so the old colour sat over the new page). Each pane paints its own top: a band the inset's height as its first
   block (.pane::before below), sticky at the top of the pane, so it moves with the pane in the swipe and stays while the pane scrolls.
   Every page's top is the Homework page's grey (Adam 19:5x: "each page congruent"), Sessions too: its orange header is the first
   block under the grey top and scrolls away with the list. The dim and the sheets start below the inset, so the band stays clean. */
html { background: var(--page); }
body { background: var(--page); font-family: var(--font); color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased; }
/* round 17 (Adam's iPhone, 10/11 07:58, the home-screen app in status-bar mode default: "when I clicked on the PlayStation thing, the
   top got grayed out once again"; row 25 of 08/11 again). In default mode the bar is iOS's own and iOS tints it from the fixed layer
   that touches the top edge of the page: the sheet's dim started at the very top (the inset reads 0 in this mode), so the bar took
   the dim's colour and kept it after the sheet closed. In the home-screen app the top edge is therefore kept: a thin fixed strip in
   the page grey, above everything, with no transition on it, and every dim starts below it. In black-translucent (an icon added
   under the old mode) the strip is the inset's height, the old band. Player shell only (the element is in index.html). */
.topkeep { display: none; }
@media (display-mode: standalone) {
  :root { --top-keep: 8px; }
  .topkeep { display: block; position: fixed; top: 0; left: 0; right: 0; height: max(env(safe-area-inset-top, 0px), var(--top-keep, 0px)); background: var(--page); z-index: 2147483000; pointer-events: none; }
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
svg { display: block; }
[data-way="basketball"] .fb, [data-way="football"] .bb { display: none !important; }

/* ---------- the screens: sign-in, then the app ---------- */
/* round 13: inset 0 again (round 12's measured extension is gone: in status-bar default the viewport ends at the screen's foot) */
.scr { position: fixed; inset: 0; transition: transform .55s var(--spring), opacity .4s ease; }
body[data-screen="app"] .scr.signin { transform: translateX(-30%); opacity: 0; pointer-events: none; }
body:not([data-screen="app"]) .scr.app { transform: translateX(100%); opacity: 0; pointer-events: none; }
body[data-screen="loading"] .scr { opacity: 0; }
/* fix round 1 (Adam's iPhone, 08/11 10:4x: the home's head and tiles painted over the open drill): the app screen is one stacking
   context of its own at the bottom, so the overlays appended to the body (the drill, the points and feedback sheets, settings, the
   toast) always paint above everything inside it, however WebKit layers the touch scrollers and the nudge's animation */
.scr.app { isolation: isolate; z-index: 0; }

/* ---------- the sign in: the mark, two fields, one button (sign in.html, round 4) ---------- */
/* row 25: the sign-in starts under the status bar (padded by the inset) and declares the page grey for the band */
.signin { display: flex; flex-direction: column; align-items: center; padding: env(safe-area-inset-top, 0px) 20px 0; max-width: 480px; margin: 0 auto; --top-screen: var(--page); }
.signin .mark { width: 96px; height: 96px; margin-top: clamp(80px, 21vh, 176px); position: relative; flex: 0 0 auto;
  transition: margin-top .45s var(--spring), width .45s var(--spring), height .45s var(--spring); }
.signin .mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.signin .mark .c { display: none; }
[data-way="football"] .signin .mark .h { display: none; }
[data-way="football"] .signin .mark .c { display: block; }
body.typing .signin .mark, body[data-state="wrong"] .signin .mark, body[data-state="password"] .signin .mark { margin-top: 70px; width: 72px; height: 72px; }

.signin form { width: 100%; display: flex; flex-direction: column; align-items: center; flex: 1; }
.signin .fields { width: 100%; margin-top: 48px; display: flex; flex-direction: column; gap: 12px; transition: margin-top .45s var(--spring); }
body.typing .signin .fields, body[data-state="wrong"] .signin .fields { margin-top: 30px; }
body[data-state="password"] .signin .fields { margin-top: 48px; gap: 36px; }
.signin .field { width: 100%; height: 58px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
  display: flex; align-items: center; padding: 0 18px; position: relative; transition: box-shadow .2s; }
.signin .field:focus-within { box-shadow: var(--shadow), 0 0 0 2px var(--accent-dark); }
body[data-state="wrong"] .signin .field.pw { box-shadow: var(--shadow), 0 0 0 2px var(--red); }
.signin .field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 500;
  color: var(--ink); letter-spacing: .01em; padding: 0; height: 100%; caret-color: var(--accent-dark); }
.signin .field input::placeholder { color: #9CA3AF; }
.signin .field input[type="password"] { letter-spacing: .14em; }
.signin .field .lbl { display: none; position: absolute; left: 18px; top: -22px; font-size: 13px; font-weight: 500; color: var(--muted); }
body[data-state="password"] .signin .field .lbl { display: block; }
.signin .eye { width: 22px; height: 22px; color: #9CA3AF; border: 0; background: none; padding: 0; cursor: pointer; flex: 0 0 auto; }
.signin .eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.signin .oops { display: none; width: 100%; margin-top: 14px; color: var(--ink); font-size: 14px; line-height: 1.4; }
.signin .oops .ask { display: block; margin-top: 3px; color: var(--accent-dark); font-weight: 600; }
body[data-state="wrong"] .signin .oops, body[data-state="password"] .signin .oops.show { display: block; }
/* Adam 17/11/2026: a refused new password (too short, or the two not the same) in the wrong state's own red, the value of its ring above */
body[data-state="password"] .signin .oops.bad { color: var(--red); }
.signin .go { margin-top: auto; margin-bottom: calc(44px + var(--safe-b)); width: 100%; height: 60px; border: 0; border-radius: 16px; background: var(--button); color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: .01em; cursor: pointer; transition: background .12s, transform .12s;
  box-shadow: 0 10px 18px -8px rgba(0,0,0,.25); -webkit-tap-highlight-color: transparent; }
.signin .go:active { background: var(--deepest); transform: scale(.985); }
.signin .go[disabled] { opacity: .6; }
/* the Install app button: a small button at the bottom of the sign-in, centred (Adam 08/11/2026: the full-width bar was "way too
   wide and way too big"); the coach app's own values copied (hh-coach public/index.html, .lg-get line 224, .lg-getbtn line 226,
   .lg-getbtn:active line 227, .lg-how line 228; page v5.10.27 and v5.10.30): 13px bold white on #2b2b2b, radius 6px, padding 8px 16px,
   its shadow, 14px above the bottom edge and the safe area. Hidden when the app runs from the home screen and on the new password;
   a tap shows one line of help under it (the coach app's .lg-how card), the button moving up as the coach app's does */
body.can-install .signin .go { margin-bottom: 16px; }
.signin .inst { display: inline-block; flex: 0 0 auto; margin: 0 0 calc(14px + var(--safe-b)); font: inherit; font-size: 13px; font-weight: 700; color: #fff;
  background: #2b2b2b; border: 0; outline: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(0,0,0,.45);
  -webkit-tap-highlight-color: transparent; }
.signin .inst:active { background: #161616; }
.signin .inst[hidden], .signin .inst-help[hidden], body[data-state="password"] .signin .inst, body[data-state="password"] .signin .inst-help { display: none; }
.signin .inst-help { width: 100%; max-width: 340px; margin: calc(-6px - var(--safe-b)) auto calc(14px + var(--safe-b)); font-size: 13px; line-height: 1.4; color: #4a3b33;
  background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 20px -12px rgba(0,0,0,.35); text-align: center; }
.signin .inst-help b { color: var(--ink); font-weight: 600; }
body.can-install[data-state="password"] .signin .go { margin-bottom: calc(44px + var(--safe-b)); }

/* ---------- the app: the panes by horizontal swipe, the row at the foot (workout.html) ---------- */
.app { display: flex; flex-direction: column; }
.panes { position: absolute; top: 0; bottom: calc(var(--row-h) + var(--safe-b) * 0); left: 0; right: 0;
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.panes::-webkit-scrollbar { display: none; }
.panes.dragging { scroll-snap-type: none; cursor: grabbing; }
.pane { flex: 0 0 100%; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-align: start; scroll-snap-stop: always; scrollbar-width: none; }
.pane::-webkit-scrollbar { display: none; }
/* fix round 5 (Adam's iPhone, 08/11 15:3x: the strip white after a swipe): each pane declares the colour of its own top, which top.js
   reads at rest (theme-color) and its own band paints. Rows 27 and 28 (Adam 19:5x, "each page congruent"): the page grey on all
   five; a pane can still declare its own (.pane[data-pane="x"] { --top: ... } or data-top), none does.
   The band: the pane's first block, the inset's height, sticky at the pane's top, so it moves with the pane in the swipe and the
   bar area is the pane's colour while its content scrolls under it (the heads themselves scroll as before; Boards' stays put,
   its list scrolls inside). Only the player shell (#app): the coach shell's header paints its own inset (coach/index.html .chd). */
.pane { --top: var(--page); }
#app .pane::before { content: ""; display: block; position: sticky; top: 0; height: env(safe-area-inset-top, 0px); background: var(--top); z-index: 4; pointer-events: none; }

/* the head: the pale peach disc with the white figure, the name, the badge and the points; the avatar opens settings.
   Round 10, row 34: the one head on all five panes (head.js draws it, these rules dress it); a long press of 1.5 s on it toggles the
   top readout, so the phone's own long-press menu and text selection are off on the head */
.head { display: flex; align-items: center; gap: 12px; padding: 12px 20px 6px; }
.cut { height: 1px; background: var(--rule); margin: 4px 0 0; }
.head { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: linear-gradient(160deg, #E8D5C4, #C9A88F); flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.05); transition: transform .12s; }
.avatar:active { transform: scale(.94); }
.avatar svg, .avatar img { width: 40px; height: 40px; display: block; object-fit: cover; }
.names { min-width: 0; }
.pname { font-size: 15px; font-weight: 500; color: #374151; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.pts .n { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1; }
.pts.bump .badge { animation: bump .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* the points badge, word for word from shared/badge.html */
.badge { width: 24px; height: 24px; display: block; flex: 0 0 auto; }
.badge .badge-disc { fill: url(#badge-grad); }
.badge .badge-star { fill: #fff; }
[data-way="football"] .badge .badge-disc { fill: #FFCC00; }
[data-way="football"] .badge .badge-star { fill: #1D5BA4; }

/* a pane that is not loaded yet: an empty card, never an error (the frame of workout.html) */
.frame { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.frame .blk { background: var(--rule); border-radius: 10px; }
.frame .rowblk { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; }
.frame .rowblk .c { width: 36px; height: 36px; border-radius: 50%; background: var(--rule); flex: 0 0 auto; }
.frame .rowblk .b { height: 12px; border-radius: 6px; background: var(--rule); }
.card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }

/* the row of the five panes at the foot: the icons exactly as set 2 and set 4 draw them */
.row { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--row-h) + var(--safe-b) * 0); background: var(--card); display: flex; padding: 0 4px;
  box-shadow: 0 -1px 0 rgba(17,24,39,.04), 0 -8px 20px -12px rgba(17,24,39,.18); z-index: 5; }
.row button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; padding: 0 0 22px; cursor: pointer;
  color: var(--muted); font-family: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; transition: color .15s; }
.row button:active { opacity: .7; }
.row button.on { color: var(--accent-dark); }
.row svg { width: 26px; height: 26px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row button.on svg .body { fill: currentColor; }
.row button.on svg .det { stroke: #fff; }
.row button.on svg .detf { fill: #fff; stroke: none; }
.row svg .detf { fill: currentColor; stroke: none; }
/* the Boards icon when current, as set 4 leaderboard.html draws it (round 2 R3): a white outline outside each bar, the fill whole
   beneath it (paint-order stroke), the tallest bar painted last so the gaps either side of it are the same */
.row button.on .ic-bars rect { stroke: #fff; stroke-width: 3; paint-order: stroke; }
.row .ic-fb { display: none; }
[data-way="football"] .row .ic-fb { display: block; }
[data-way="football"] .row .ic-bb { display: none; }

/* settings behind the head: the sheet settings.html draws (the coach app's bottom sheet, .rg-pop): white, radius 22 at the top,
   the handle 40 by 4, the × in its grey disc, over the pane dimmed rgba(28,28,30,.55); its insides are lane 5's settings pane.
   Rows 27 and 28: the dim starts below the top inset, so the pane's band over the bar stays clean; the sheet itself stops 58 px
   below the inset (its max-height) */
/* round 11, item 5: one motion: the sheet's transform and the dim's opacity on the same .32 s ease-out (was .42 s and .32 s ease) */
.dim { position: fixed; top: max(env(safe-area-inset-top, 0px), var(--top-keep, 0px)); left: 0; right: 0; bottom: 0; background: rgba(28,28,30,.55); opacity: 0; pointer-events: none; transition: opacity .32s cubic-bezier(.2,.8,.2,1); z-index: 19; }
.over.open + .dim { opacity: 1; pointer-events: auto; }
.over { position: fixed; left: 0; right: 0; bottom: 0; max-height: calc(100% - 58px - env(safe-area-inset-top, 0px)); background: var(--card); border-radius: 22px 22px 0 0; z-index: 20;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -8px 30px -10px rgba(0,0,0,.35); touch-action: none; max-width: 480px; margin: 0 auto; will-change: transform; }
.dim { will-change: opacity; }
.over.open { transform: translateY(0); }
.over.dragging { transition: none; }
.over .grab { height: 28px; display: grid; place-items: center; cursor: grab; flex: 0 0 auto; }
.over .grab span { width: 40px; height: 4px; border-radius: 2px; background: #D1D5DB; display: block; }
.over .x { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: var(--rule); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 2; }
.over .x:active { transform: scale(.92); }
.over .x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.over-sc { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; touch-action: pan-y; }
.over-sc::-webkit-scrollbar { display: none; }

/* a short note at the foot (offline, saved) */
.toast { position: fixed; left: 50%; bottom: calc(var(--row-h) + 14px); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 30; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .scr, .signin .mark, .signin .fields, .over, .dim, .toast { transition: none; }
  .pts.bump .badge { animation: none; }
  .panes { scroll-behavior: auto; }
}

/* round 11, item 6 (08/11/2026, Adam's iPhone, the home-screen app: the row about 59 px above the screen's foot, the page grey
   below it, after a sign-in on the device). What was learned: the offset is the window scrolled, not a wrongly sized box. iOS, in
   a home-screen app, scrolls the window up by the status-bar inset when the keyboard opens on a field and leaves it scrolled after
   the keyboard closes, so every fixed layer is drawn shifted up. Row 29's static 100vh block and row 33's measured --foot-fix
   both corrected a box that was never wrong and are gone: every fixed layer that ends at the foot is bottom 0 again (the drill
   var(--row-h, 80px) in drill.css, the toast the row's height plus 14 px, the sheets' wrappers 0 in their own files). The coach
   app's answer is in top.js (footHome): the window goes back to scroll 0 at the change into the app and after the keyboard closes.
   Round 12 (08/11/2026, Adam's readout at 22:10, iPhone 393 x 852, the home-screen app): inset-top 59, innerHeight 793, the
   visual viewport 793 at offsetTop 0, scrollY 0, the app screen's top 0, the row's white ending at 793, the page grey 793 to 852.
   The window was never scrolled (round 11's reading was wrong; footHome stays, harmless): the layout viewport is 852 - 59 = 793 pt,
   anchored at the screen's top, so every fixed layer with bottom 0 ended 59 pt above the foot. The fix is measured on the device:
   top.js set a measured extension on <html> = the screen's height minus innerHeight, only in the standalone app and only 1 to
   120 px; every fixed layer that had to reach the foot ended that far lower, the layers on the row rose by row-h minus it.
   Round 13 (08/11/2026, Adam's readout at 22:27 after round 12's build, and a pixel read of his screenshot): the app screen's box
   ran 0 to 852 and the row's bottom read 852, yet the row's white was painted only from 772 to 794 pt and its labels (about 817 to
   830) not at all; from 794 to 852 the html grey showed. So in black-translucent mode this WebKit (iOS 18.7, Version/26.6.1) lays
   the viewport out 793 pt tall, anchored at the screen's top, and PAINTS NOTHING below 793: no CSS can put content there. The
   extension is gone. Both shells now use the coach app's status-bar-style default (hh-coach public/index.html line 11, with
   viewport-fit=cover kept): the web view runs from under the status bar to the screen's foot, so every layer at bottom 0 (.scr,
   .dim, .over, the sheets' wrappers) and every layer on the row (the toast, the drill, the readout) reaches the real foot, and
   iOS paints the bar itself from theme-color (#F3F4F6, the page grey Adam chose for every top; top.js keeps it). The panes' sticky
   inset bands stay as a dormant safeguard: in default mode the inset reads 0 and they collapse; in translucent mode they work.
   The row (80 px, 22 px padding, bottom 0) is untouched and carries no bottom inset (its design is signed). */

/* round 20 (Adam 10/11 09:1x): the points won, back on Homework. On the body, above the row; here in the shell's sheet because it lives
   outside the panes (the panes' own sheets keep every z-index under the bands' 4).
   The points animation (lane pa-points-build, 10/11/2026): the storyboards' "option c then d.html" with option 1, Bare, of "plus twenty options.html"
   (records/2026-11-10 points animation storyboards/). home.js places and sizes every piece on each frame; here only what each piece is.
   The layer fills the screen and never takes a tap; the middle point is half its width and 42 % of its height (today's rule) */
.hh-gain { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
/* a badge in the air: the Points page's soft shadow (points.css .pt-total .badge); none while it sits on its tick */
/* round 30 (Adam 10/11/2026 18:2x: "a bit smoother … Don't make it feel rushed"): the badge is one 36 px picture at the layer's corner,
   moved and sized by transform alone (home.js), on its own layer; --s is the scale home.js gives it, and the shadow is written divided
   by it, so on the screen it stays the 0 3 px 5 px it was at every size. Nothing of the motion's times, places or sizes changes */
.hh-gain .hh-gain-fly { position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: block; transform-origin: 50% 50%; will-change: transform, opacity;
  filter: drop-shadow(0 calc(3px / var(--s, 1)) calc(5px / var(--s, 1)) rgba(160,66,18,.35)); }
[data-way="football"] .hh-gain .hh-gain-fly { filter: drop-shadow(0 calc(3px / var(--s, 1)) calc(5px / var(--s, 1)) rgba(29,91,164,.25)); }
.hh-gain .hh-gain-fly.flat { filter: none; }
/* the +20, Bare: a point on the middle (it shrinks to it as it closes); the badge 36 px on its seat, the number 10 px after it, 30 px
   bold, nothing round it, no shadow; the digits and the plus in the Feedback page's gradient (panes/feedback.css .fb-n) */
.hh-gain .hh-gain-pt { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.hh-gain .hh-gain-pt .badge { position: absolute; top: -18px; width: 36px; height: 36px; display: block; }
.hh-gain .hh-gain-n { position: absolute; top: 0; transform: translateY(-50%); font-family: var(--font); font-size: 30px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--deepest);
  background: linear-gradient(180deg, var(--accent-dark) 0%, var(--deepest) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* the ring at the last landing: a 2 px line in the badge disc's colour, round the head's badge */
.hh-gain .hh-gain-ring { position: absolute; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--accent-dark); }
[data-way="football"] .hh-gain .hh-gain-ring { border-color: #FFCC00; }
@media (prefers-reduced-motion: reduce) { .hh-gain { display: none; } }
