/* The board: sport chooser, then one head and one day strip every sport shares, then the sport's own view: competition
   fixtures, racing (the off clock, the day's meetings as lanes on one time scale, race cards), golf and F1 leaderboards;
   and the bet slip. Loads after styles.css and uses its tokens only. */

.board { display: grid; gap: 14px; min-width: 0; padding-bottom: 12px; }
.board-section { display: grid; gap: 14px; min-width: 0; }

/* Sport chooser: only sports with events, with counts. The chosen one is inverted. Scrolls in its own row if needed. */
.sports { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) -3px; padding: 14px var(--gutter) 5px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.sports::-webkit-scrollbar { display: none; }
.sport-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: calc(15px * var(--type)); font-weight: 600; white-space: nowrap; scroll-snap-align: start; transition: background-color .18s, color .18s, transform .12s ease-out; }
.sport-chip:hover { color: var(--text); background: var(--surface-3); }
.sport-chip:active { transform: scale(.97); }
.sport-chip .ico { width: 18px; height: 18px; }
/* A count in a pill: on a sport chip, and as a count-pill in the head, a kick-off's head and a meeting's (the figure;
   its words for a screen reader and in its tooltip). */
.sport-count, .count-pill { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: calc(12px * var(--type)); font-weight: 700; text-align: center; }
.count-pill { flex: none; }
.sport-chip.is-active { background: var(--block); color: var(--block-ink); }
.sport-chip.is-active .sport-count { background: var(--block-ink); color: var(--block); }
/* In the dark theme the chosen sport wears the chosen chip's ring as well (styles.css, after .seg). */
:root:not([data-theme="light"]) .sport-chip.is-active { box-shadow: inset 0 0 0 2px var(--switch-on); }
.sport-chip .live-dot { margin-left: -2px; }
/* The red light alone is under 3:1 on the active sport's claret chip, so there it wears a ring in the chip's ink, as on
   the current race's chip. */
.sport-chip.is-active .live-dot { box-shadow: 0 0 0 1.5px var(--block-ink); }

/* Returns on the Board (Nic, 13.11.2026): at the end of the sports row a coins button opens a box for an amount, with
   the bookie's amount buttons as the slip has them. While an amount is set it shows, inverted as a chosen amount button
   is, as a pill beside the button with a cross that clears it, and every open price shows what it
   returns. The sports row bleeds to the left edge only; the
   control sits in the right gutter, level with the chips. Nothing moves but what prices already do. */
.board-top { display: flex; align-items: flex-end; gap: 4px; min-width: 0; }
/* The open box lies over the day strip, which stays under the top bar on a phone. */
.board-top:has(.returns-panel:not([hidden])) { position: relative; z-index: 6; }
.board-top > .sports { flex: 1 1 auto; min-width: 0; margin-right: 0; padding-right: 8px; }
/* While the row can scroll further its right edge fades (14.11.2026), so a chip cut there under the coins reads as more
   to come, not a chip sliced flat. The fade follows the row's own scroll and is gone at its end, and a row with nothing
   to scroll has none; a browser that cannot follow a scroll keeps the fade. A chip the keyboard moves to stops clear
   of it. */
@property --sports-fade { syntax: '<length>'; inherits: false; initial-value: 0px; }
.board-top > .sports { --sports-fade: 40px; scroll-padding-inline-end: 40px; -webkit-mask-image: linear-gradient(to left, #0000, #000 var(--sports-fade)); mask-image: linear-gradient(to left, #0000, #000 var(--sports-fade)); }
@supports (animation-timeline: scroll()) {
  .board-top > .sports { --sports-fade: 0px; scroll-timeline: --sports-row inline; animation: sports-more linear both; animation-timeline: --sports-row; }
}
@keyframes sports-more { 0%, 92% { --sports-fade: 40px; } 100% { --sports-fade: 0px; } }
.returns { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding-bottom: 5px; margin-bottom: -3px; }
.returns-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: calc(15px * var(--type)); font-weight: 700; white-space: nowrap; transition: background-color .18s, color .18s; }
.returns-btn:hover, .returns-btn[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }
.returns-btn .ico { width: 20px; height: 20px; }
.returns-pill { display: inline-flex; align-items: center; height: 44px; padding-left: 14px; border-radius: 999px; background: var(--text); color: var(--ground); font-size: calc(15px * var(--type)); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.returns-clear { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0 12px 0 6px; border-radius: 0 999px 999px 0; color: inherit; opacity: .72; transition: opacity .18s; }
.returns-clear:hover, .returns-clear:focus-visible { opacity: 1; }
.returns-clear .ico { width: 16px; height: 16px; }
.returns-panel { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; display: grid; gap: 8px; width: min(320px, calc(100vw - 32px)); padding: 12px; border-radius: 16px; background: var(--surface-2); box-shadow: 0 12px 32px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line-strong); }
.returns-field { min-width: 0; height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid transparent; cursor: text; }
.returns-field:focus-within { border-color: var(--text); }
.returns-input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; color: var(--text); font-size: calc(20px * var(--type)); font-weight: 700; letter-spacing: -0.01em; }
.returns-input::placeholder { color: var(--faint); font-weight: 500; }
.returns-panel .presets { margin-top: 0; }
.returns-panel .preset { background: var(--surface); }
.returns-panel .preset:hover { background: var(--surface-3); }
.returns-panel .preset.is-active { background: var(--text); color: var(--ground); }

/* Competitions inside a sport, chosen under the days (and two golf or F1 events on one day, the same way). */
.comps { display: flex; gap: 8px; margin: -5px calc(var(--gutter) * -1); padding: 5px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.comps::-webkit-scrollbar { display: none; }
.comp-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: calc(14px * var(--type)); font-weight: 600; }
/* The chosen ring and every chip's swatch are one colour, --comp: the competition's colour as its chip wears it
   (model.js chipColour), 3:1 on the chip and the page's ground in both themes (18.11.2026). */
.comp-chip.is-active { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--comp, var(--text)); }
.comp-chip .swatch { background: var(--comp, var(--muted)); }

/* One head for every sport (Nic, 13.11.2026: switching sports should change the words, not the page), then the day
   strip. The sport's picture on a tint of its colour (a competition's, or the sport's), or a competition's own mark on
   its own colour; the title with its count in a pill; one quiet line. The same place and height on every view: the
   title and the line never wrap, a long name ends in an ellipsis. */
.board-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; min-height: calc(80px * var(--type)); padding: 12px 16px 12px 12px; border-radius: var(--radius); background: var(--surface); }
.head-mark { display: grid; place-items: center; width: calc(52px * var(--type)); height: calc(52px * var(--type)); border-radius: var(--radius-inner); background: color-mix(in srgb, var(--mark, var(--muted)) 18%, var(--surface)); }
.head-mark .ico { width: calc(32px * var(--type)); height: calc(32px * var(--type)); }
/* A competition's own mark carries its name (the Nations League's, Nic 12.11.2026): the logo on its own navy, the
   title kept for a screen reader and the page. */
.head-mark.is-logo { width: auto; padding: 0 8px; background: var(--mark); }
.head-logo { width: auto; height: calc(44px * var(--type)); }
.head-text { display: grid; gap: 4px; min-width: 0; }
.head-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.head-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: calc(26px * var(--type)); font-weight: 800; font-stretch: 75%; line-height: 1.1; letter-spacing: -0.005em; }
.head-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--type)); color: var(--muted); }
/* The sport's photograph in its head (Nic's brand kit, 17.11.2026; js/pictures.js), under the line device. On a phone
   the head's words sit over it, on a scrim of the darkest claret that keeps their light ink at 4.5:1 on any picture (at
   least two thirds strong wherever there are words); the sport's drawing gives way to it, a competition's logo stays.
   On a computer the photograph fills the head's end, its edge leaning as the mark's lanes do, and the words keep the
   card. Today's hero is the photograph with the words over it at every width. */
.board-head.has-pic { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: calc(132px * var(--type)); padding: 14px 16px; background: var(--scrim); color: var(--masthead-ink); }
.board-head.has-pic > .head-text { flex: 1 1 auto; min-width: 0; }
.board-head.has-pic > .head-pic { position: absolute; inset: 0; z-index: -2; width: auto; }
.board-head.has-pic::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--scrim) 84%, transparent), color-mix(in srgb, var(--scrim) 68%, transparent) 62%, color-mix(in srgb, var(--scrim) 8%, transparent)); }
.board-head.has-pic > .head-mark:not(.is-logo) { display: none; }
.board-head.has-pic .head-line, .board-head.has-pic .star-btn { color: var(--masthead-ink); }
.board-head.has-pic .star-btn:hover { color: var(--text); }
.board-head.has-pic .star-btn.is-on { color: var(--masthead-accent); }
.board-head.has-pic :focus-visible { outline-color: var(--masthead-ink); }
.board-head.is-hero { aspect-ratio: 16 / 9; padding: 16px 18px; }
.board-head.is-hero .head-title { font-size: calc(36px * var(--type)); line-height: 1; }
@media (min-width: 1024px) {
  .board-head.is-hero { aspect-ratio: auto; min-height: calc(240px * var(--type)); padding: 22px 26px; }
  .board-head.is-hero .head-title { font-size: calc(44px * var(--type)); }
  .board-head.has-pic:not(.is-hero) { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 320px); align-items: center; min-height: calc(112px * var(--type)); padding: 12px 16px 12px 12px; background: var(--surface); color: var(--text); }
  .board-head.has-pic:not(.is-hero)::before { content: none; }
  .board-head.has-pic:not(.is-hero) > .head-mark { display: grid; }
  .board-head.has-pic:not(.is-hero) .head-line { color: var(--muted); }
  .board-head.has-pic:not(.is-hero) .star-btn { color: var(--faint); }
  .board-head.has-pic:not(.is-hero) .star-btn:hover { color: var(--text); }
  .board-head.has-pic:not(.is-hero) .star-btn.is-on { color: var(--highlight); }
  .board-head.has-pic:not(.is-hero) :focus-visible { outline-color: var(--text); }
  .board-head.has-pic:not(.is-hero) > .head-pic { position: relative; inset: auto; z-index: auto; grid-column: 3; grid-row: 1; align-self: stretch; width: auto; margin: -12px -16px -12px 0; clip-path: polygon(calc(33.6px * var(--type)) 0, 100% 0, 100% 100%, 0 100%); }
}

/* A sport's fixtures under the head and the days. */
.comp { display: grid; gap: 14px; min-width: 0; }

/* Days: a strip of dates with their counts. A gap marks a new round of fixtures. On a phone the strip under the head
   stays under the top bar as the page scrolls. */
.days { display: flex; gap: 6px; margin: -5px calc(var(--gutter) * -1); padding: 5px var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.days::-webkit-scrollbar { display: none; }
@media (max-width: 1023.98px) {
  .board-head + .days { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 5; margin-block: -8px; padding-block: 8px; background: var(--ground); }
}
.day { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; min-width: 76px; min-height: 52px; padding: 7px 14px 8px; border-radius: 16px; background: var(--surface); color: var(--muted); scroll-snap-align: start; transition: background-color .18s, color .18s; }
.day:hover { color: var(--text); background: var(--surface-2); }
.day-name { grid-column: 1; font-size: calc(12px * var(--type)); font-weight: 600; }
.day-date { grid-column: 1; font-size: calc(18px * var(--type)); font-weight: 700; color: var(--text); line-height: 1.1; }
.day-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: calc(12px * var(--type)); font-weight: 700; text-align: center; }
.day.is-active { background: var(--block); color: var(--block-ink); }
.day.is-active .day-date { color: var(--block-ink); }
.day.is-active .day-count { background: var(--block-ink); color: var(--block); }
:root:not([data-theme="light"]) .day.is-active { box-shadow: inset 0 0 0 2px var(--switch-on); }
.day-gap { flex: none; width: 10px; }
.day.is-done:not(.is-active) .day-date { color: var(--muted); }

/* Fixtures by kick-off: the time, and how many kick off then in a pill. */
.slot { display: grid; gap: 8px; }
.slot-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 0; }
.slot-time { font-size: calc(20px * var(--type)); font-weight: 700; letter-spacing: -0.01em; }
/* Featured (Nic, 15.11.2026), on the football Board's day and on Today: its heading where a kick-off's or a group's
   is, with its "i" at the end of the row and no count; the "i" opens its words under the heading, the arrow under the
   "i". A featured match's card says its kick-off time where its state goes. */
.slot-head .tip-btn, .today-head .tip-btn { margin: -6px 0 -6px auto; }
.featured-tip { margin: 0; }
.fx-when { color: var(--muted); font-size: calc(14px * var(--type)); font-weight: 700; font-variant-numeric: tabular-nums; }
/* The rows round their own first and last corners, so a side's form can open over the rows below (nothing clips it). */
.fixtures { background: var(--surface); border-radius: var(--radius); }
.fx:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.fx:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
/* The Featured card's band (the brand kit, 17.11.2026): its competition's photograph, a cup's or a league's, across the
   card's top under the line device, over no price and with no words. The day's one band. Its right end is cut on the
   mark's lean (design/lanes-pattern 4A, 20.11.2026), parallel to the line device's own line, as the Board head's is. */
.fx-band { --lean-h: calc(72px * var(--type)); display: block; height: var(--lean-h); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - var(--lean-h) * var(--lean-k)) 100%, 0 100%); }
.fx-band .band-pic { height: 100%; }
@media (min-width: 1024px) {
  .fx-band { --lean-h: calc(120px * var(--type)); }
  .band-pic img { object-position: 50% var(--focus, 50%); }
}
.fx { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px 16px; transition: background-color .3s; }
.fx + .fx { box-shadow: inset 0 1px var(--line); }
.fx.is-focus { background: var(--surface-2); }
/* A fixture a link opened on, or a runner a search found on its race card, flashes once and settles on its own ground. */
.fx.is-flash, .runner.is-flash { animation: row-flash 1.2s ease-out; }
@keyframes row-flash { 0% { background: var(--surface-3); } }
.fx-teams { display: grid; gap: 8px; min-width: 0; }
.fx-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: calc(16px * var(--type)); font-weight: 500; }
.fx-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-team.is-winner .fx-name { font-weight: 700; }
.fx-score { margin-left: auto; font-weight: 700; }
/* A side's star (Nic, 14.11.2026): right after its name, a faint outline until it is on, then filled as every star is.
   Its target is 44 by 44, padding round a 16px star, and takes no room in the line: a long name gives way first and the
   prices and the pill stay where they are. The home side's target reaches up and the away side's down, so the two meet
   halfway between the lines, and the hover disc and the focus ring sit on the star. On a computer (a mouse, and the
   width the rail comes in at) a star that is off waits for the row to be hovered, or for the keyboard; on a phone, or
   any narrower screen, it is always there. */
.fx-team .star-btn { width: 44px; height: 44px; padding: 21px 14px 7px; margin: -29px -4px -15px -18px; border-radius: 0; background: none; transform-origin: 50% 29px; transition: opacity .15s, color .15s, transform .12s ease-out; }
.fx-team + .fx-team .star-btn { padding: 7px 14px 21px; margin: -15px -4px -29px -18px; transform-origin: 50% 15px; }
.fx-team .star-btn .ico { position: relative; width: 16px; height: 16px; }
.fx-team .star-btn::before { content: ''; position: absolute; top: 15px; left: 8px; width: 28px; height: 28px; border-radius: 999px; transition: background-color .15s; }
.fx-team + .fx-team .star-btn::before { top: 1px; }
.fx-team .star-btn:hover { background: none; }
.fx-team .star-btn:hover::before { background: var(--surface-2); }
.fx-team .star-btn:focus-visible { outline: 0; }
.fx-team .star-btn:focus-visible::before { outline: 2px solid var(--text); outline-offset: 2px; }
@media (hover: hover) and (min-width: 1024px) {
  .fx-team .star-btn:not(.is-on):not(:focus-visible) { opacity: 0; }
  .fx:hover .fx-team .star-btn { opacity: 1; }
}
.fx-side { display: grid; justify-items: end; align-content: start; gap: 6px; font-size: calc(13px * var(--type)); color: var(--faint); }
/* A match you have a bet on: your colour down the box's edge, a highlighter's mark. */
.fx.is-yours { box-shadow: inset 4px 0 var(--highlight); }
.fx + .fx.is-yours { box-shadow: inset 0 1px var(--line), inset 4px 0 var(--highlight); }
.fx .prices { grid-column: 1 / -1; }
.fx-round { margin: 0; font-size: calc(13px * var(--type)); color: var(--muted); }
/* A draw's mark: the two flags split on the diagonal, or a level sign for sides without flags. */
.draw-mark { position: relative; display: inline-block; flex: none; width: 24px; height: 18px; }
.draw-mark .flag { position: absolute; inset: 0; }
.draw-mark .draw-second { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.draw-mark.is-level { display: grid; place-items: center; border-radius: 3px; background: var(--surface-3); color: var(--text); font-size: calc(14px * var(--type)); font-weight: 800; line-height: 1; }
.initials { width: 24px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 3px; font-size: calc(9px * var(--type)); font-weight: 800; background: color-mix(in srgb, var(--silk) 26%, var(--surface)); color: var(--silk); }

/* Form (Nic, 13.11.2026: "team track records like WWWDW"): a side's last five results at the end of its line, oldest
   first, the latest on the right, each a tile with its letter, in ink: told apart by fill and weight, never by colour,
   as green is only for money returned above the amount (Nic, 15.11.2026, decision 21). W is solid ink with the light
   letter, D sits on the surface tint, L is an outline. The League Table's form is the same tile. Hovering it on a
   computer, or tapping it, opens the matches behind it over the rows below, newest first: result, score (the side's
   goals first), the other side, H, A or N, and the day. */
.fx-form { position: relative; flex: none; margin-left: auto; }
.fx-form-btn { display: flex; gap: 3px; margin: -8px -6px; padding: 8px 6px; border-radius: 10px; cursor: pointer; transition: background-color .15s; }
.fx-form-btn:hover, .fx-form.is-open .fx-form-btn { background: var(--surface-2); }
.ft { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font-size: calc(10px * var(--type)); line-height: 1; }
.ft.is-w { background: var(--text); color: var(--surface); font-weight: 800; }
.ft.is-d { background: var(--surface-3); color: var(--text); font-weight: 700; }
.ft.is-l { background: transparent; color: var(--muted); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.form-card { display: none; position: absolute; z-index: 6; top: calc(100% + 10px); right: -6px; width: max-content; min-width: 250px; max-width: min(340px, calc(100vw - 32px)); padding: 4px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: 0 12px 32px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line-strong); font-size: calc(13px * var(--type)); font-weight: 500; animation: form-open .16s var(--ease); }
.fx-form.is-open .form-card, .fx-form-btn:focus-visible + .form-card { display: grid; }
@media (hover: hover) {
  .fx-form:hover .form-card { display: grid; }
}
/* The form card's matches, one under another; the slip's forecast rows (also .fc-row) are cards of their own. */
.form-card .fc-row + .fc-row { box-shadow: inset 0 1px var(--line-strong); }
.fc-seen { display: grid; grid-template-columns: 16px 34px minmax(0, 1fr) 16px auto; align-items: center; gap: 10px; padding: 8px 0; }
.fc-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.fc-vs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fc-vs .flag, .fc-vs .initials { width: 20px; height: 15px; }
.fc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-at { color: var(--muted); font-weight: 700; text-align: center; }
.fc-on { color: var(--muted); white-space: nowrap; text-align: right; }

/* A match's head to head and its Nations League group, from the chart button beside it, over the rows below. The bar
   splits the meetings three ways: the first side's wins in ink, draws quiet, the other side's muted; the figures under
   it say the same, so the bar's tones only back them up. The group table holds these two sides in bold. */
.fx-stats { position: relative; }
.fx-stats .fx-stats-btn { width: 30px; height: 30px; margin: -4px -6px 0 0; }
.fx-stats .fx-stats-btn .ico { width: 18px; height: 18px; }
.fx-stats.is-open .fx-stats-btn { background: var(--surface-2); color: var(--text); }
.stats-card { display: none; position: absolute; z-index: 6; top: calc(100% + 8px); right: -6px; width: min(340px, calc(100vw - 32px)); padding: 14px; border-radius: 14px; background: var(--surface-2); box-shadow: 0 12px 32px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line-strong); color: var(--text); font-size: calc(13px * var(--type)); font-weight: 500; text-align: left; animation: form-open .16s var(--ease); }
.fx-stats.is-open .stats-card { display: grid; gap: 18px; }
.sc-section { display: grid; gap: 8px; }
.sc-head { display: flex; align-items: center; gap: 8px; }
.sc-title { font-size: calc(14px * var(--type)); font-weight: 700; }
.h2h-sides { display: flex; justify-content: space-between; gap: 12px; }
.h2h-side { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.h2h-side > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-side .flag, .h2h-side .initials { width: 20px; height: 15px; }
.h2h-tally { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: calc(15px * var(--type)); }
.h2h-tally b { font-weight: 800; font-variant-numeric: tabular-nums; }
.h2h-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.h2h-list { display: grid; }
.h2h-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 2px; font-variant-numeric: tabular-nums; }
.h2h-row + .h2h-row { box-shadow: inset 0 1px var(--line); }
.h2h-s { color: var(--muted); font-weight: 600; }
.h2h-s.is-win { color: var(--text); font-weight: 800; }
.h2h-s:last-child { justify-self: end; }
.h2h-ago { color: var(--faint); font-size: calc(12px * var(--type)); }
.h2h-part { flex: var(--grow, 1) 1 0; min-width: 6px; }
/* Each side's wins in its own colour (a hairline keeps a white or yellow side clear of the card), draws quiet. */
.h2h-part.is-home, .h2h-part.is-away { background: var(--part, var(--text)); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); }
.h2h-part.is-draw { background: var(--surface-3); }
/* Each side's goals over its last ten, as minimal as the head to head: one row a measure, each side's figure in ink at
   either end, the measure between in the quiet ink, its meaning in the tooltip. */
.gp-list { display: grid; }
.gp-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 6px 2px; font-variant-numeric: tabular-nums; }
.gp-row + .gp-row { box-shadow: inset 0 1px var(--line); }
.gp-n { font-weight: 700; }
.gp-n:last-child { justify-self: end; }
.gp-label { color: var(--muted); font-size: calc(12px * var(--type)); white-space: nowrap; text-align: center; }
.gt { display: grid; }
.gt-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) 22px 32px 28px; align-items: center; gap: 8px; padding: 7px 0; font-variant-numeric: tabular-nums; }
.gt-row > :nth-child(n + 3) { text-align: right; }
.gt-row + .gt-row { box-shadow: inset 0 1px var(--line); }
.gt-row.is-head { padding-top: 0; color: var(--muted); font-size: calc(12px * var(--type)); font-weight: 600; }
.gt-row.is-match { font-weight: 800; }
.gt-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gt-team > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-team .flag, .gt-team .initials { width: 20px; height: 15px; }
.gt-pts { font-weight: 800; }
/* A club competition's table: two-figure places, and a gap where places are left out. Its data's credit sits last. */
.gt.is-club .gt-row { grid-template-columns: 20px minmax(0, 1fr) 22px 32px 28px; }
.gt-gap { height: 6px; }
.sc-credit { color: var(--faint); font-size: calc(12px * var(--type)); font-weight: 500; }

/* Search (the top bar's magnifier): the box, then the board's own rows for what it finds: matches with their prices
   and form under their kick-off and competition, races and golf or F1 fields as rows that open their card. */
.search { display: grid; gap: 18px; padding-top: 14px; }
/* The box, with the amount control for returns beside it. */
.search-top { display: flex; align-items: center; gap: 8px; max-width: 720px; min-width: 0; }
.search-top > .search-bar { flex: 1 1 auto; min-width: 0; }
.search-top > .returns { padding-bottom: 0; margin-bottom: 0; }
.search-bar { position: relative; display: flex; align-items: center; max-width: 720px; }
.search-bar > .ico { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-input { width: 100%; height: 52px; padding: 0 18px 0 50px; border: 1px solid transparent; border-radius: 999px; background: var(--surface); color: var(--text); font-size: calc(17px * var(--type)); outline: 0; transition: border-color .15s, background-color .15s; }
.search-input::placeholder { color: var(--faint); }
.search-input:hover { background: var(--surface-2); }
.search-input:focus { border-color: var(--text); background: var(--surface); }
/* The box's own clear button, in the page's ink rather than the browser's blue. */
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-left: 10px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E") center / 22px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E") center / 22px no-repeat; cursor: pointer; }
.search-results { display: grid; gap: 24px; }
.search-group { display: grid; gap: 12px; }
.search-head { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.search-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); }
.search-mark .ico { width: 20px; height: 20px; }
.search-title { font-family: var(--display); font-size: calc(24px * var(--type)); font-weight: 800; font-stretch: 75%; line-height: 1.1; }
.slot-comp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13px * var(--type)); color: var(--muted); }
.search-list { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.search-list li + li { box-shadow: inset 0 1px var(--line); }
.search-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; color: var(--text); transition: background-color .15s; }
.search-row:hover { background: var(--surface-2); }
.search-when { font-size: calc(14px * var(--type)); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.search-text { display: grid; gap: 2px; min-width: 0; }
.search-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.search-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13px * var(--type)); color: var(--muted); }

/* Prices: the outcome's own label over the price, one button for every state a price goes through (concept c1). Gold is
   yours: picked is the full fill (in the slip); backed is a 3px gold line under the figure (a bet already struck on it,
   kept through live and the result). Moved strikes the old price beside the new with a 12px chevron the way it went,
   no hue, until the next move; a runner's price, which has no label, says what it opened at. Closed is an outline (the
   row's pill says why), lost the same, won the win tint with a ring and a tick. Nothing under 12px. */
.prices { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.price {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 52px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 6px 6px;
  border-radius: var(--radius-inner);
  background: var(--odds-bg);
  color: var(--odds-ink);
  transition: background-color .16s, color .16s, transform .12s ease-out;
}
/* One step lighter on hover, the small words with it so they hold 4.5:1 on the lighter tile; 0.95 on press. A settled
   price is not a control and does not answer the pointer. */
.price:hover:not(:disabled, .is-settled) { background: var(--surface-3); }
.price:hover:not(:disabled, .is-settled, [aria-pressed="true"]) :is(.price-label, .price-was, .price-opened) { color: var(--muted); }
.price:active:not(:disabled, .is-settled) { transform: scale(.95); }
.price-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(12px * var(--type)); font-weight: 600; color: var(--faint); }
.price-value { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 4px; max-width: 100%; font-size: calc(17px * var(--type)); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.price-figure { display: inline-block; }
.price-value .ico { width: 12px; height: 12px; stroke-width: 2.25; color: var(--muted); }
.price-was { font-size: calc(12px * var(--type)); font-weight: 500; color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.price-opened { max-width: 100%; font-size: calc(12px * var(--type)); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; color: var(--faint); text-align: center; text-wrap: balance; }
.price.has-opened { padding-inline: 4px; }
.price[aria-pressed="true"], .price[aria-pressed="true"]:hover:not(:disabled) { background: var(--highlight); color: var(--highlight-ink); }
.price[aria-pressed="true"] .price-label, .price[aria-pressed="true"] .price-was, .price[aria-pressed="true"] .price-opened { color: inherit; opacity: .75; }
.price[aria-pressed="true"] .price-value .ico { color: inherit; }
/* Backed: the line keeps clear of a runner's "Opened" words; on a picked price it takes the pick's ink. In the light
   theme --highlight is the dark pick colour. */
.price.is-backed::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--highlight); pointer-events: none; }
.price.is-backed.has-opened { padding-bottom: 12px; }
.price.is-backed[aria-pressed="true"]::after { background: var(--highlight-ink); }
.price.is-lit { animation: pick-fill .2s var(--ease); }
@keyframes pick-fill { from { transform: scale(.94); } }
/* Returns on the Board: an open price shows what it returns for the amount set, a step smaller than odds so a long
   figure fits a runner's 80px; its odds are in its tooltip. */
.price.is-returns .price-value { font-size: calc(15px * var(--type)); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
:is(.runner, .lb-row) .price.is-returns .price-value { font-size: calc(14px * var(--type)); }
.price:disabled, .price.is-settled { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
/* The price that won on a result: a ring and a tick in ink on the second surface, not green, which is only for money
   returned above the amount (Nic, 15.11.2026, decision 21). */
.price.is-won { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.price.is-won .price-label { color: var(--muted); }
.price.is-won .price-value .ico { color: var(--text); }

/* Unlit until yours (Nic, 13.11.2026: Fable's concept C). No tiles: a match's prices sit in a ruled strip on its card,
   so the only filled cells on the Board are the player's own picks in gold, a win's tint and a boost. A closed or
   settled price is quiet ink; the row's pill says why. */
.prices { gap: 0; border-top: 1px solid var(--line); }
.price { min-height: 56px; padding: 8px 4px 6px; border-radius: 0; background: transparent; }
.price + .price { box-shadow: inset 1px 0 var(--line); }
.price:hover:not(:disabled, .is-settled, [aria-pressed="true"]) { background: var(--surface-2); }
.price[aria-pressed="true"], .price.is-won, .price.is-boosted { border-radius: var(--radius-inner); }
.price[aria-pressed="true"], .price[aria-pressed="true"] + .price { box-shadow: none; }
.price:disabled, .price.is-settled { box-shadow: none; }
.price + .price:disabled, .price + .price.is-settled:not(.is-won) { box-shadow: inset 1px 0 var(--line); }
.price.price.is-won { box-shadow: inset 0 0 0 1.5px var(--text); }
.runner .prices { border-top: 0; }
.runner .price { box-shadow: inset 1px 0 var(--line); }

/* Prices and picks in motion (docs/ui-direction.md). Each reports one change, once; under reduced motion the end state
   lands at once. A price that moved rolls its figure the way it went, up for out and down for in, as the struck price
   appears (320ms). A pick fills gold from 0.94 (200ms) and its token flies to the slip in 420ms (motion.js), where the
   count rolls on. A pick swapped within a match slides the gold across (220ms). A market that closes at the off or
   kick-off fades its fills to outlines (240ms). A result fills the winning price (200ms). */
.price.is-up .price-figure { animation: figure-up .32s var(--ease); }
.price.is-down .price-figure { animation: figure-down .32s var(--ease); }
.price.is-up :is(.price-was, .price-opened), .price.is-down :is(.price-was, .price-opened) { animation: price-note .32s ease-out; }
@keyframes figure-up { from { transform: translateY(70%); opacity: 0; } }
@keyframes figure-down { from { transform: translateY(-70%); opacity: 0; } }
@keyframes price-note { from { opacity: 0; } }
.price-slide { position: fixed; z-index: 20; border-radius: var(--radius-inner); background: var(--highlight); pointer-events: none; transform-origin: 0 0; will-change: transform; }
.price.is-taking[aria-pressed="true"], .price.is-taking[aria-pressed="true"]:hover:not(:disabled) { background: var(--odds-bg); color: var(--odds-ink); }
.price.is-taken { transition: none; }
.price.is-closing { animation: price-close .24s ease-out; }
@keyframes price-close { from { background: var(--odds-bg); color: var(--odds-ink); box-shadow: inset 0 0 0 1px transparent; } }
.price.is-won.is-settling { animation: price-win .2s ease-out; }
@keyframes price-win { from { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); } }

/* Racing: the next race off with its clock, the day's meetings as lanes on one time scale with the time now through
   every lane, then each meeting's races. A meeting is keyed by a swatch in its silks: each card and lane carries its
   meeting's silk-N class (styles.css), so nothing here sets --silk, which would override it. */
.racing { display: grid; gap: 14px; min-width: 0; }
.swatch { width: 12px; height: 12px; flex: none; border-radius: 4px; background: var(--silk, var(--muted)); }

/* The off clock: the next race off anywhere, its off time (the minutes under it within the hour, never seconds or a
   bar: Nic, 15.11.2026), and the top of the betting; Off; then its result. */
.off-card { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); min-width: 0; }
.off-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.off-link { display: grid; gap: 4px; align-content: center; min-width: 0; min-height: 44px; }
.off-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--display); font-size: calc(26px * var(--type)); font-weight: 800; font-stretch: 75%; line-height: 1.05; }
.off-race { min-width: 0; font-size: calc(13px * var(--type)); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-side { display: grid; gap: 12px; min-width: 0; }
.off-void { font-weight: 600; }
.clock { display: grid; justify-items: end; align-content: center; text-align: right; }
.clock-figure { display: inline-flex; align-items: center; gap: 10px; font-size: calc(30px * var(--type)); font-weight: 700; line-height: calc(34px * var(--type)); letter-spacing: -0.01em; white-space: nowrap; }
.clock-word { font-size: calc(12px * var(--type)); font-weight: 600; color: var(--faint); white-space: nowrap; }
.clock.is-off .clock-figure { color: var(--live-ink); }
.clock .live-dot { width: 10px; height: 10px; }
/* At the off the figure is the red light alone, as tall as the figure's line, so the card keeps its height. */
.clock-figure .live-mark { height: 1lh; }
.next-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.next-picks .price { min-height: 56px; }
/* The result on the clock's card: the first three with their cloths and starting prices, then the next off. */
.placings { display: grid; gap: 8px; }
.placing { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: calc(15px * var(--type)); }
.placing .cloth { width: 26px; height: 26px; border-radius: 8px; font-size: calc(12px * var(--type)); }
.placing-name { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.placing-price { font-size: calc(13px * var(--type)); color: var(--faint); white-space: nowrap; }
.place-disc { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-size: calc(13px * var(--type)); font-weight: 800; }
/* The winner's place in ink, solid, as a form tile's W is: a horse that won, not money. */
.place-disc.is-p1 { background: var(--text); color: var(--surface); }
.place-disc.is-paid { box-shadow: inset 0 0 0 2px var(--placed); }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding-top: 10px; box-shadow: inset 0 1px var(--line); font-size: calc(13px * var(--type)); color: var(--muted); }
.next-link b { color: var(--text); font-weight: 600; }
.next-link .ico { width: 16px; height: 16px; }

/* The day's meetings, one lane each on one time scale: the meeting's span in its silks, a dot per race (run small and
   faint, off red, the next filled, yours ringed in gold) and the time now as a 2px tick inside every lane. */
.afternoon { display: grid; gap: 2px; padding: 14px 16px 10px; border-radius: var(--radius); background: var(--surface); min-width: 0; }
.scale { position: relative; height: 16px; margin-bottom: 2px; font-size: calc(12px * var(--type)); color: var(--faint); }
.scale-hour { position: absolute; left: calc(var(--at) * 100%); transform: translateX(-50%); white-space: nowrap; }
.scale-hour.is-hidden { visibility: hidden; }
.scale-min { display: none; }
.now-label { position: absolute; top: 0; left: calc(var(--at) * 100%); z-index: 1; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; background: var(--text); color: var(--ground); font-size: calc(11px * var(--type)); font-weight: 800; line-height: calc(15px * var(--type)); white-space: nowrap; transition: left 0s linear; }
.lanes { display: grid; }
.lanes.is-wide { display: none; }
.lane { position: relative; }
.lane + .lane { box-shadow: inset 0 1px var(--line); }
.lane-jump { display: grid; gap: 6px; width: 100%; min-height: 44px; padding: 9px 0 10px; text-align: left; border-radius: 8px; }
.lane-jump:hover .lane-name { text-decoration: underline; text-underline-offset: 3px; }
.lane-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: calc(14px * var(--type)); font-weight: 600; }
.lane-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-head .flag { width: 20px; height: 15px; }
.lane-next { margin-left: auto; padding-left: 8px; font-size: calc(13px * var(--type)); font-weight: 600; color: var(--muted); white-space: nowrap; }
.lane-next b { color: var(--text); }
/* A meeting whose last race is running: the red light alone, as tall as the line of words it stands for. */
.lane-next .live-mark { height: 1lh; }
.lane-going { font-size: calc(12px * var(--type)); font-weight: 500; color: var(--muted); }
.track { position: relative; display: block; height: 16px; }
.track::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--surface-3); }
.track-span { position: absolute; top: 7px; height: 2px; left: calc(var(--from) * 100%); width: calc((var(--to) - var(--from)) * 100%); border-radius: 2px; background: var(--silk); opacity: .55; }
.dot { position: absolute; top: 3px; left: calc(var(--at) * 100%); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--silk); }
.dot.is-next { top: 2px; width: 12px; height: 12px; margin-left: -6px; background: var(--silk); box-shadow: none; }
.dot.is-done { top: 4px; width: 8px; height: 8px; margin-left: -4px; background: var(--faint); box-shadow: none; }
.dot.is-live { background: var(--live); box-shadow: none; }
.dot.is-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: live-ring 2.4s ease-out 3; }
.dot.is-yours::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--highlight); }
.now-tick { position: absolute; top: -3px; bottom: -3px; left: calc(var(--at) * 100%); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); pointer-events: none; transition: left 0s linear; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: calc(12px * var(--type)); color: var(--faint); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; }
.legend .legend-yours { width: 8px; height: 8px; margin-left: 2px; box-shadow: 0 0 0 2px var(--highlight); }
.legend .legend-off { background: var(--live); }
.legend .legend-run { width: 8px; height: 8px; background: var(--faint); }
/* A wide board: the course in a 150px column and every race time under its dot, each opening its card. Hover or focus
   names the race and any bet on it. */
.lane-race { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 100%); width: 36px; margin-left: -18px; border-radius: 8px; }
.lane-race .dot { left: 50%; top: 9px; }
.lane-race .dot.is-next { top: 8px; }
.lane-race .dot.is-done { top: 10px; }
.lane-time { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: calc(12px * var(--type)); font-weight: 600; color: var(--muted); white-space: nowrap; }
.lane-race.is-next .lane-time { color: var(--text); font-weight: 700; }
.lane-race.is-done .lane-time { color: var(--faint); }
.lane-race.is-squeezed .lane-time { visibility: hidden; }
.tip { display: none; position: absolute; z-index: 4; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 300px; padding: 8px 12px; border-radius: 12px; background: var(--text); color: var(--ground); font-size: calc(12px * var(--type)); font-weight: 600; line-height: 1.35; text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: none; }
.tip b { display: block; font-size: calc(13px * var(--type)); font-weight: 800; }
.tip span { display: block; }
.lane-race.is-early .tip { left: 0; transform: none; }
.lane-race.is-late .tip { left: auto; right: 0; transform: none; }
.lane-race:hover .tip, .lane-race:focus-visible .tip { display: block; }
.lane-race:hover .lane-time { color: var(--text); }

/* Each meeting's races, on a phone: the lanes above take you here. */
.meetings { display: grid; gap: 12px; }
.meeting { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); min-width: 0; }
.meeting-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
/* The meeting's name with its races in a pill. */
.meeting-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.meeting-title .meeting-name { min-width: 0; }
.meeting-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: calc(26px * var(--type)); font-weight: 800; font-stretch: 75%; line-height: 1.02; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.meeting-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: calc(13px * var(--type)); color: var(--muted); }
.meeting-meta .flag { width: 20px; height: 15px; }
.locator { width: 52px; height: 58px; flex: none; }
.locator-land { fill: var(--surface-3); }
.locator-dot { fill: var(--silk); }
.locator-ring { fill: none; stroke: var(--silk); stroke-width: 1.5; opacity: .5; }

.races { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.race-chip { position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; min-height: 54px; padding: 6px 4px; border-radius: var(--radius-inner); background: var(--surface-2); color: var(--text); transition: background-color .16s, transform .12s ease-out; }
.race-chip:hover { background: var(--surface-3); }
.race-chip:active { transform: scale(.96); }
.race-time { font-size: calc(16px * var(--type)); font-weight: 700; letter-spacing: -0.01em; }
.race-state { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: calc(11px * var(--type)); font-weight: 600; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-state .ico { width: 12px; height: 12px; }
/* A race off: the red light alone, as tall as the line of words it stands for, so the chip keeps its height. */
.race-state .live-mark { height: 1lh; }
.race-chip.is-done .race-time { color: var(--muted); }
.race-chip.is-next { box-shadow: inset 0 0 0 1.5px var(--silk); }
.race-chip.is-next .race-state { color: var(--text); }
.race-chip.is-live .race-state { color: var(--live-ink); }
.race-chip.is-current { background: var(--block); color: var(--block-ink); }
.race-chip.is-current .race-time, .race-chip.is-current .race-state { color: var(--block-ink); }
/* In the dark theme the current race wears the chosen chip's ring as well; when it is also the next off, the meeting's
   ring stays inside it, 1px of the chip's own claret between the two so they read as two whatever the meeting's colour
   (an ivory meeting's ring and the cream one ran together, 18.11.2026). */
:root:not([data-theme="light"]) .race-chip.is-current { box-shadow: inset 0 0 0 2px var(--switch-on); }
:root:not([data-theme="light"]) .race-chip.is-current.is-next { box-shadow: inset 0 0 0 2px var(--switch-on), inset 0 0 0 3px var(--block), inset 0 0 0 4.5px var(--silk); }
/* The red light alone is under 3:1 on the current race's claret chip (1.6:1 in Daylight), so there it wears a ring
   in the chip's ink, as the word Off beside it was. */
.race-chip.is-current .live-dot { box-shadow: 0 0 0 1.5px var(--block-ink); }
.race-chip .yours { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--highlight); }
[data-theme="light"] .race-chip .yours { background: var(--text); }

/* Race card, under racing's head and days: its own head with the off clock, the meeting's races, the facts in one
   line, the going on its scale, then a row per runner: cloth, horse and connections over the card's line, and the
   price. */
.race { display: grid; gap: 14px; min-width: 0; }
/* The way back to the day is the day's own chip above (one control for one job). */
.race-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; }
.race-head .clock { padding-top: 2px; }
.race-head .clock-figure { font-size: calc(24px * var(--type)); line-height: calc(28px * var(--type)); }
.race-head > .pill, .race-head-end > .pill { align-self: center; min-height: 30px; padding: 4px 12px; font-size: calc(13px * var(--type)); }
.race-name { font-family: var(--display); font-size: calc(32px * var(--type)); font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -0.005em; }
.race-title { margin-top: 6px; font-size: calc(14px * var(--type)); color: var(--muted); }
/* A race card's head on its band (the brand kit, 17.11.2026): the Flat's or the jumps' photograph under the line device,
   the race's name and title over its left and the off clock at its end, all in light ink on a scrim of the darkest
   claret (two thirds strong or more under every word). On a computer the band takes the wide Today picture it was cut
   from, at the band's height. */
.race-head.has-pic { position: relative; isolation: isolate; overflow: hidden; align-items: center; min-height: calc(96px * var(--type)); padding: 14px 12px 14px 16px; border-radius: var(--radius); background: var(--scrim); color: var(--masthead-ink); }
.race-head.has-pic > .race-pic { position: absolute; inset: 0; z-index: -2; width: auto; }
.race-head.has-pic::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--scrim) 86%, transparent), color-mix(in srgb, var(--scrim) 70%, transparent) 55%, color-mix(in srgb, var(--scrim) 66%, transparent)); }
.race-head.has-pic .race-title, .race-head.has-pic .clock-word, .race-head.has-pic .clock.is-off .clock-figure, .race-head.has-pic .icon-btn.ghost { color: var(--masthead-ink); }
.race-head.has-pic .icon-btn.ghost:hover:not(:disabled) { color: var(--text); }
.race-head.has-pic :focus-visible { outline-color: var(--masthead-ink); }
@media (max-width: 1023.98px) {
  .race-head.has-pic .race-name { font-size: calc(28px * var(--type)); }
}
@media (min-width: 1024px) {
  .race-head.has-pic { min-height: calc(120px * var(--type)); padding: 18px 16px 18px 24px; }
  .race-pic img { object-position: 50% var(--focus, 50%); }
}
.race-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.race-facts .pill { min-height: 30px; padding: 4px 12px; font-size: calc(13px * var(--type)); }
.race-facts .pill.is-clock { color: var(--text); }
.race-facts .live-mark { height: 30px; }
.race-strip { display: flex; gap: 6px; margin: -5px calc(var(--gutter) * -1); padding: 5px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.race-strip::-webkit-scrollbar { display: none; }
.race-strip .race-chip { flex: none; min-width: 72px; }
.race-facts-line { margin: 0 4px; font-size: calc(14px * var(--type)); line-height: 1.5; color: var(--muted); }
/* The going: the word, and its step on nine from firm to heavy. */
.going { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -6px 4px 0; }
.going-word { font-size: calc(14px * var(--type)); font-weight: 600; }
.going-scale { display: grid; gap: 3px; }
.going-steps { display: grid; grid-template-columns: repeat(9, 12px); gap: 2px; }
.going-steps i { height: 6px; border-radius: 2px; background: var(--surface-3); }
.going-steps i.is-on { background: var(--text); }
.going-ends { display: flex; justify-content: space-between; font-size: calc(11px * var(--type)); line-height: 1.2; color: var(--faint); }

.runners { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.runner { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 80px; grid-template-areas: "cloth name price" "cloth jockey price" "cloth card price"; column-gap: 12px; row-gap: 3px; align-items: center; padding: 10px 16px; transition: background-color .2s; }
.runner + .runner { box-shadow: inset 0 1px var(--line); }
.runner > .cloth, .runner > .result-place, .runner > .runner-mark { grid-area: cloth; align-self: center; }
/* A runner's silks under its saddlecloth, as the iPhone design draws them (28px on a runner): the racecard's own image,
   whole inside its square, with the hairline the cloths and the player's silks have, so white silks hold on paper and
   black ones on the dark ground. */
.runner-mark { display: grid; justify-items: center; gap: 4px; }
.runner-silk { display: block; width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 1px color-mix(in srgb, var(--text) 35%, transparent)); }
.runner > .runner-name { grid-area: name; }
.runner > .runner-jockey { grid-area: jockey; }
.runner > .runner-card { grid-area: card; }
.runner > .price, .runner > .runner-out, .runner > .result-note { grid-area: price; }
.runner.is-picked { background: color-mix(in srgb, var(--highlight) 8%, var(--surface)); }
.cloth { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); font-size: calc(15px * var(--type)); font-weight: 800; }
.runner-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: calc(16px * var(--type)); font-weight: 600; }
.runner-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-jockey { min-width: 0; font-size: calc(13px * var(--type)); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner .price { min-height: 50px; }
.runner .price-value { font-size: calc(17px * var(--type)); }
.runner.is-out .runner-name > span:first-child { text-decoration: line-through; color: var(--faint); }
/* Saddlecloths in racing's own colours, the number in the colour racing prints it. A hairline keeps white and black
   cloths clear of the card in either theme. */
.cloth[class*="cloth-"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); }
.cloth-1 { background: #d6232a; color: #ffffff; }
.cloth-2 { background: #f2f2f2; color: #111111; }
.cloth-3 { background: #1e4fd8; color: #ffffff; }
.cloth-4 { background: #f5d400; color: #111111; }
.cloth-5 { background: #1a7a33; color: #ffffff; }
.cloth-6 { background: #111111; color: #f5d400; }
.cloth-7 { background: #f28c1e; color: #111111; }
.cloth-8 { background: #f58fb6; color: #111111; }
.cloth-9 { background: #2ec4c4; color: #111111; }
.cloth-10 { background: #6d2e9c; color: #ffffff; }
.cloth-11 { background: #b7e374; color: #111111; }
.cloth-12 { background: #a6ff3a; color: #111111; }
.cloth-13 { background: #7a4a21; color: #ffffff; }
.cloth-14 { background: #7a1030; color: #f5d400; }
.cloth-15 { background: #d9c6a0; color: #111111; }
.cloth-16 { background: #8fc8f2; color: #111111; }
.cloth-17 { background: #10204a; color: #ffffff; }
.cloth-18 { background: #d0d0d0; color: #b00000; }
.runner.is-out .cloth { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
/* A non-runner's price is a closed tile that says NR. */
.runner-out { display: grid; place-items: center; min-height: 50px; border-radius: var(--radius-inner); box-shadow: inset 0 0 0 1px var(--line); font-size: calc(13px * var(--type)); font-weight: 700; color: var(--faint); }
.runner-gear { flex: none; font-size: calc(12px * var(--type)); font-weight: 500; color: var(--muted); }
.fav, .tag { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: calc(11px * var(--type)); font-weight: 700; white-space: nowrap; }

/* The card's line: form, weight, draw, rating and days since the last run, quiet, wrapping only between facts. Form is
   type, not tiles: a win bold in ink, a fall, unseat or pull up in the lost colour, the rest muted. */
.runner-card { min-width: 0; font-size: calc(13px * var(--type)); line-height: 1.45; color: var(--faint); }
.runner-card > span { white-space: nowrap; }
.form-word { color: var(--faint); }
.form { letter-spacing: .04em; color: var(--muted); }
.form-win { color: var(--text); font-weight: 800; }
.form-out { color: var(--loss-ink); font-weight: 700; }
.form-gap { color: var(--faint); }
.form-first { color: var(--text); font-weight: 600; }

/* Racing's extra ways to bet (16.11.2026). A runner's price with its SP key under it, the starting price: the same price
   key, smaller, gold while the runner is in the slip at SP. */
.runner > .runner-prices { grid-area: price; display: grid; gap: 4px; }
.runner > .runner-history { grid-area: history; }
.runner { grid-template-areas: "cloth name price" "cloth jockey price" "cloth card price" "cloth history price"; }
.runner-prices .price { min-height: 44px; }
.price-sp { min-height: 44px; border-radius: 0; background: transparent; color: var(--odds-ink); box-shadow: inset 1px 0 var(--line); font-size: calc(12px * var(--type)); font-weight: 700; letter-spacing: .02em; transition: background-color .16s, color .16s; }
.price-sp:hover:not(:disabled, [aria-pressed="true"]) { background: var(--surface-2); }
.price-sp[aria-pressed="true"] { border-radius: var(--radius-inner); background: var(--highlight); color: var(--highlight-ink); box-shadow: none; }
.price-sp:disabled { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
/* A runner's price history, quiet, the prices as the odds mark writes them: backed in or drifted by its chevron, in ink. */
.runner-history { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; font-size: calc(12px * var(--type)); color: var(--faint); }
.runner-history .ico { width: 14px; height: 14px; margin-left: 2px; color: var(--muted); }
/* Best odds guaranteed: a quiet chip on the race's head and on a slip selection, its words in its tooltip. */
.race-head-end { display: inline-flex; align-items: center; gap: 8px; }
.chip-bog { flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: calc(12px * var(--type)); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
/* Win & each way, Forecast, Tricast: the slip's segmented control, over the runners. */
.race-modes { display: flex; width: max-content; margin: 2px 0 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.race-modes::-webkit-scrollbar { display: none; }
.race-modes .seg { flex: none; font-size: calc(14px * var(--type)); }
/* A forecast's keys: a place for each (1st, 2nd, 3rd) and Any, price keys of the player's own, gold when picked. */
.runner.is-keys { grid-template-columns: 34px minmax(0, 1fr) 96px; }
.fc-keys { grid-area: price; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.fc-keys.is-forecast .is-any { grid-column: 1 / -1; }
.fc-key { min-height: 44px; border-radius: var(--radius-inner); background: var(--odds-bg); color: var(--odds-ink); font-size: calc(13px * var(--type)); font-weight: 700; transition: background-color .16s, color .16s; }
.fc-key:hover:not(:disabled, [aria-pressed="true"]) { background: var(--surface-3); }
.fc-key[aria-pressed="true"] { background: var(--highlight); color: var(--highlight-ink); }
.fc-key:disabled { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
/* What the keys make so far, under the runners: the places still to pick as empty keys, then the kind and its bets. */
.fc-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface); font-size: calc(14px * var(--type)); color: var(--muted); }
.fc-slot { display: inline-grid; place-items: center; min-width: 44px; min-height: 30px; border-radius: var(--radius-inner); box-shadow: inset 0 0 0 1px var(--line); font-size: calc(12px * var(--type)); font-weight: 700; color: var(--faint); }
.fc-slot.is-on { background: var(--highlight); color: var(--highlight-ink); box-shadow: none; }
.fc-sum.is-made b { color: var(--text); font-weight: 700; }
.fc-sum .ico { width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
/* The race's declared dividends under its result: ink tiles, each its figure to a £1 stake. */
.race-dividends { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.race-dividends > div { display: grid; gap: 1px; min-width: 88px; padding: 8px 12px; border-radius: var(--radius-inner); background: var(--surface); }
.race-dividends dt { font-size: calc(12px * var(--type)); color: var(--faint); }
.race-dividends dd { margin: 0; font-size: calc(15px * var(--type)); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* Finished race: the placings, the places that paid, and yours said in words. */
.yours { display: grid; gap: 6px; }
.yours-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 4px 0 var(--highlight); font-size: calc(14px * var(--type)); }
.yours-what b { font-weight: 600; }
.yours-money { margin-left: auto; color: var(--muted); white-space: nowrap; }
.yours-money .is-up { color: var(--win); font-weight: 600; }
.runner.is-result { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "cloth name note" "cloth jockey note"; align-content: center; min-height: 64px; }
.runner.is-result > .result-note { grid-area: note; }
.runner-name .cloth.is-mini { width: 22px; height: 22px; border-radius: 6px; font-size: calc(11px * var(--type)); }
.result-place { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-size: calc(14px * var(--type)); font-weight: 800; }
.runner.is-p1 .result-place { background: var(--text); color: var(--surface); }
.runner.is-paid .result-place { box-shadow: inset 0 0 0 2px var(--placed); }
.runner.is-p1.is-paid .result-place { box-shadow: none; }
.result-note { justify-self: end; font-size: calc(13px * var(--type)); font-weight: 600; color: var(--faint); white-space: nowrap; }
.runner.is-paid .result-note { color: var(--placed); }
.runner.is-p1 .result-note { color: var(--text); }
.runner.is-mine::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--highlight); pointer-events: none; }
/* The result landing with the card open: each row travels from its place on the card into finishing order, 40ms apart,
   decelerating, and yours lights when it arrives. --t starts a redraw that far in. */
.results.is-arriving .runner { animation: result-arrive 760ms var(--ease) both; animation-delay: calc(var(--i) * 40ms + var(--t, 0ms)); }
.results.is-arriving .runner.is-mine { z-index: 1; }
.results.is-arriving .runner.is-mine::after { animation: mine-lit .6s ease-out both; animation-delay: calc(760ms + var(--i) * 40ms + var(--t, 0ms)); }
@keyframes result-arrive { from { transform: translateY(calc(var(--from) * 100%)); } }
@keyframes mine-lit { from { opacity: 0; } }
/* Reduced motion: the result lands in order at once (the status line reads it out), and a race off is a solid red dot. */
@media (prefers-reduced-motion: reduce) {
  .results.is-arriving .runner, .results.is-arriving .runner.is-mine::after { animation: none; }
  .dot.is-live::after { animation: none; opacity: 0; }
}
.race-state-note { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); font-weight: 600; }

/* Golf and F1: when it starts, then the market and its each way terms, then the field by price before the result,
   with no positions; by finishing place after. */
.field-board { display: grid; gap: 14px; min-width: 0; }
.field-board > .race-facts-line { margin-top: -6px; }
.leaderboard { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.lb-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 12px; align-items: center; padding: 10px 16px; }
.field-board.has-result .lb-row { grid-template-columns: 34px minmax(0, 1fr) 76px; }
.lb-row + .lb-row { box-shadow: inset 0 1px var(--line); }
.lb-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); font-size: calc(14px * var(--type)); font-weight: 800; }
.lb-main { display: grid; gap: 6px; min-width: 0; }
.lb-name { font-size: calc(16px * var(--type)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .price { min-height: 46px; }
.field-board.is-f1 .lb-rank { border-radius: 6px; }
.field-board.is-f1 .lb-row.is-podium .lb-rank { background: var(--sport-f1); color: var(--sport-f1-ink); }
.field-board.is-golf .lb-rank { border-radius: 50%; }
.field-board.is-golf { --sport: var(--sport-golf); }
.field-board.is-f1 { --sport: var(--sport-f1); }
/* A golf result adds the score to par beside the name; a runner that took no part, or finished without a place (WD,
   MC, DQ, DNS), sits muted at the foot. A long field folds after its first rows. */
.field-board.is-golf.has-result .lb-row { grid-template-columns: 34px minmax(0, 1fr) 40px 76px; }
.lb-par { font-size: calc(14px * var(--type)); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.lb-row.is-out .lb-name, .lb-row.is-out .lb-rank { color: var(--faint); }
.lb-rank { font-size: calc(13px * var(--type)); letter-spacing: -0.02em; }
.lb-more { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.lb-more > summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.lb-more > summary:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.lb-more > .leaderboard { border-radius: 0; box-shadow: inset 0 1px var(--line); }
/* Football's outrights (16.11.2026): the market's card (its name, the field's count, its "i", its terms and when betting
   closes as pills), then its clubs or players by price, each with its initials, a chance bar in ink and its price;
   settled, a tick on each club that did it, in ink (green is money only). */
.field-board.is-football { --sport: var(--sport-football); }
.oc-market { padding-bottom: 12px; }
.oc-market .mk-head { padding-left: 16px; }
.oc-market .race-facts { padding: 0 12px; }
.oc-market .race-facts .pill.is-clock { display: inline-flex; align-items: center; gap: 6px; }
.oc-market .race-facts .pill .ico { width: 14px; height: 14px; color: var(--muted); }
.oc-row { grid-template-columns: 32px minmax(0, 1fr) 76px; }
.field-board.oc.has-result .oc-row { grid-template-columns: 34px minmax(0, 1fr) 76px; }
.oc-mark { display: grid; place-items: center; }
.oc-mark .initials, .oc-mark .flag { width: 32px; height: 24px; font-size: calc(12px * var(--type)); border-radius: 4px; }
.oc-chance { display: block; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.oc-bar { display: block; height: 100%; width: calc(var(--at, 0) * 100%); min-width: 2px; border-radius: inherit; background: var(--muted); }
.oc-did { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text); }
/* A club that did not do it has no mark: no empty square where the tick would be. */
.oc-row .lb-rank:empty { background: none; }
.oc-did .ico { width: 18px; height: 18px; }

/* Bet slip: a sheet on phones, its own column on desktop. */
.slip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  max-height: min(88vh, 720px);
  max-height: min(88dvh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 26px 26px 0 0;
  background: var(--slip-bg);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .45);
  transform: translateY(105%);
  visibility: hidden;
  /* It opens in 340ms and closes in about 65% of that. */
  transition: transform .22s ease-in, visibility 0s linear .22s;
  overscroll-behavior: contain;
}
.slip.is-open { transform: none; visibility: visible; transition: transform .34s var(--ease), visibility 0s; }
/* Dragged by its handle or header, the sheet follows the finger with no lag. */
.slip.is-dragging { transition: none; }
.slip-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
.slip-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; touch-action: none; cursor: grab; }
.slip.is-dragging .slip-head { cursor: grabbing; }
.slip-title:focus { outline: 0; }
.slip-title:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.slip-grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-strong); }
.slip-title { font-size: calc(18px * var(--type)); font-weight: 700; }
/* The count rolls on to its new number when a pick lands (slip.js added); nothing bumps. */
.slip-count { position: relative; overflow: hidden; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--highlight); color: var(--highlight-ink); font-size: calc(13px * var(--type)); font-weight: 800; text-align: center; }
.slip-head .icon-btn { margin-left: auto; }
.slip-scrim { position: fixed; inset: 0; z-index: 44; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .3s; }
.slip-scrim.is-open { opacity: .62; pointer-events: auto; }
.slip-legs { display: grid; gap: 6px; }
.slip-leg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 6px 10px 12px; border-radius: 16px; background: var(--surface-2); }
.slip-leg.is-entering { animation: leg-in .3s var(--ease); }
/* A bet builder in the slip (17.11.2026): its legs on their own row under its name, the price beside its name. */
.slip-leg > .bb-parts { grid-column: 2 / -1; margin-top: -4px; }
.slip-leg.is-leaving { animation: leg-out .18s ease-in forwards; }
@keyframes leg-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes leg-out { to { opacity: 0; transform: translateX(16px); } }
.leg-mark { display: grid; place-items: center; width: 28px; }
.leg-mark .flag { width: 24px; height: 18px; }
/* The saddlecloth keeps its racing colour in the slip; a plain mark (the draw's X) sits on the surface. */
.leg-mark .cloth { width: 28px; height: 28px; border-radius: 8px; font-size: calc(13px * var(--type)); }
.leg-mark .cloth:not([class*="cloth-"]) { background: var(--surface-3); }
.leg-mark .glyph .ico { width: 20px; height: 20px; }
.leg-pick { display: grid; min-width: 0; }
.leg-name { font-size: calc(15px * var(--type)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A leg's line wraps on a phone, its time kept whole (.leg-when): the time is the part a player looks for, and was cut
   to "Today 0..." (20.11.2026). */
.leg-match { font-size: calc(12px * var(--type)); color: var(--muted); overflow-wrap: anywhere; }
.leg-when { white-space: nowrap; }
.leg-odds { font-size: calc(16px * var(--type)); font-weight: 700; text-align: right; white-space: nowrap; }
.leg-odds s { margin-right: 6px; font-size: calc(12px * var(--type)); font-weight: 500; color: var(--faint); }
.leg-odds.is-moved { color: var(--pending); }
/* A runner at its starting price, and a forecast or tricast row with its runners and its own amount box. */
.leg-odds.is-sp { font-size: calc(14px * var(--type)); letter-spacing: .02em; }
.leg-name .chip-bog { min-height: 20px; padding: 1px 7px; font-size: calc(12px * var(--type)); }
.slip-forecasts { margin-top: 8px; }
.fc-row .leg-pick { display: grid; gap: 6px; }
.fc-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: calc(13px * var(--type)); color: var(--muted); }
.fc-pick { display: inline-flex; align-items: center; gap: 6px; }
/* Each runner's saddlecloth at its small size, as on Today's Live bets, and never squeezed by a long name, which wraps
   instead (22.11.2026: at the race card's size it stood over its line). Each wears the hairline, so one past 18 keeps
   its box on the row, whose ground is its own colour, and keeps that colour, its number in the ink it has on Today:
   in the row's muted words it read as a non-runner's. */
.fc-pick .cloth { flex: none; width: 24px; height: 24px; border-radius: 7px; font-size: calc(12px * var(--type)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); }
.fc-pick .cloth:not([class*="cloth-"]) { color: var(--text); }
.fc-any { display: inline-flex; color: var(--muted); }
.fc-any .ico { width: 16px; height: 16px; }
.fc-field { max-width: 14rem; }
.fc-total { font-size: calc(13px * var(--type)); color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-total:empty { display: none; }
/* A selection that can no longer be bet stays, struck, with why in place of its price. */
.slip-leg.is-off .leg-name { text-decoration: line-through; color: var(--muted); }
.slip-leg.is-off .leg-mark { opacity: .55; }
.leg-tag { justify-self: end; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: calc(12px * var(--type)); font-weight: 700; white-space: nowrap; }
/* A selection whose event has started: struck, with why in the live ink where its fixture was, for 4 seconds; then it
   folds right and the note under the selections keeps the word. */
.slip-leg.is-gone { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.slip-leg.is-gone .leg-name { text-decoration: line-through; color: var(--faint); }
.slip-leg.is-gone .leg-match { color: var(--live-ink); white-space: normal; }
.slip-leg.is-gone .leg-match .live-dot { width: 7px; height: 7px; margin-right: 6px; vertical-align: 1px; }
.slip-leg.is-gone .leg-odds { color: var(--faint); }
.slip-leg.is-gone .leg-mark .cloth[class*="cloth-"] { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
.slip-leg.is-gone .leg-mark :is(.flag, .glyph) { opacity: .55; }
.slip-note { margin: 8px 4px 0; font-size: calc(13px * var(--type)); color: var(--muted); }
.slip-note:empty { display: none; }
.slip-empty { display: grid; justify-items: center; gap: 8px; padding: 24px 12px; border-radius: 16px; background: var(--surface-2); color: var(--faint); text-align: center; font-size: calc(14px * var(--type)); }
.slip-empty .ico { width: 28px; height: 28px; }
.slip-type { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 4px 0; font-size: calc(14px * var(--type)); font-weight: 600; color: var(--muted); }
.slip-type b { color: var(--text); }
/* Singles or the multiple: two chips, the chosen one in the brand colour. The multiple carries its leg stack: gold bars
   on the claret when it is chosen, rings when singles are. A selection that joins slides its bar in (240ms) while the
   name crossfades ("Double" to "Treble"). */
.slip-kinds { display: flex; margin: 14px 0 0; }
.slip-kinds .seg { flex: 1; min-width: 0; }
.slip-kinds .seg[aria-pressed="true"] { background: var(--block); color: var(--block-ink); }
.slip-kinds .seg[aria-pressed="true"] .stack > i { background: var(--masthead-accent); }
.slip-kinds .seg[aria-pressed="false"] .stack > i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.stack > i.is-entering { animation: stack-in .24s var(--ease) both; }
@keyframes stack-in { from { opacity: 0; transform: translateX(-10px) skewX(calc(var(--lean) * -1)); } to { opacity: 1; transform: skewX(calc(var(--lean) * -1)); } }
.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; }
.swap-was { animation: swap-out .16s ease-in both; }
.swap-now { animation: swap-in .24s var(--ease) both; }
@keyframes swap-out { to { opacity: 0; } }
@keyframes swap-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .swap-was { display: none; } }
.stake-row { display: flex; gap: 8px; margin-top: 10px; }
.stake-field { flex: 1; min-width: 0; height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid transparent; cursor: text; transition: border-color .15s; }
.stake-field:focus-within { border-color: var(--text); }
.stake-field.is-invalid { border-color: var(--loss); }
.pound { color: var(--muted); font-size: calc(20px * var(--type)); font-weight: 600; }
.stake-field input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; color: var(--text); font-size: calc(24px * var(--type)); font-weight: 700; letter-spacing: -0.01em; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; margin-top: 8px; }
.preset { height: 44px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: calc(14px * var(--type)); font-weight: 700; transition: background-color .15s, color .15s; }
.preset:hover { color: var(--text); background: var(--surface-3); }
.preset.is-active { background: var(--text); color: var(--ground); }
.slip-error { margin: 10px 4px 0; font-size: calc(14px * var(--type)); color: var(--loss); }
.slip-error:empty { display: none; }
.slip-link { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.slip-stakes { margin: 8px 4px 0; font-size: calc(13px * var(--type)); font-weight: 600; color: var(--muted); }
/* Each way on: the stake splits into its two parts, sliding apart (220ms). */
.slip-stakes .ew-part { display: inline-block; }
.slip-stakes.is-splitting .ew-part:first-child { animation: ew-left .22s var(--ease) both; }
.slip-stakes.is-splitting .ew-part:last-of-type { animation: ew-right .22s var(--ease) both; }
@keyframes ew-left { from { opacity: 0; transform: translateX(45%); } }
@keyframes ew-right { from { opacity: 0; transform: translateX(-45%); } }
/* The player's own stake limit under the stake: what is staked so far in faint, this bet in ink, on a 4px track. */
.slip-limit { display: grid; gap: 6px; margin: 12px 4px 0; }
.slip-limit-text { font-size: calc(13px * var(--type)); color: var(--muted); }
.slip-limit-text b { font-weight: 600; color: var(--text); }
.slip-limit-track { position: relative; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.slip-limit-track > span { position: absolute; inset: 0; transform-origin: 0 50%; transition: transform .2s var(--ease); }
.slip-limit-track > .is-before { background: var(--faint); transform: scaleX(var(--before, 0)); }
.slip-limit-track > .is-this { background: var(--text); transform: translateX(calc(var(--before, 0) * 100%)) scaleX(var(--this, 0)); }
.slip-limit.is-over .slip-limit-track > .is-this { background: var(--loss); }
.play-way { display: grid; gap: 2px; margin-top: 10px; }
.play-parts { display: block; margin-top: 2px; font-size: calc(13px * var(--type)); font-weight: 500; color: var(--muted); }
.slip-sum { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 12px; margin-top: 14px; padding: 14px 4px 0; box-shadow: inset 0 1px var(--line); }
.slip-sum dt { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--faint); }
.slip-sum dd { margin-top: 2px; font-size: calc(20px * var(--type)); font-weight: 700; letter-spacing: -0.01em; }
.slip-sum div:last-child { grid-column: -2 / -1; text-align: right; }
/* What it could return, in ink at 28px: the win colour is kept for money a settled bet paid back above its stake. A new
   stake rolls the figure to its new value. */
.slip-sum .slip-returns { --roll-align: flex-end; position: relative; overflow: hidden; font-size: calc(28px * var(--type)); color: var(--text); }
/* Each way: what it returns if it wins, and if it only places. */
.slip-sum .slip-returns.is-parts { font-size: calc(20px * var(--type)); }
.slip-part { display: block; }
.slip-part + .slip-part { font-size: calc(14px * var(--type)); font-weight: 600; color: var(--muted); }
.icon-btn.primary.slip-place { width: 100%; height: 56px; margin-top: 14px; border-radius: 999px; }
.slip-place .ico { width: 26px; height: 26px; }
/* Busy (ui.js busy): the lanes in the check's square; in play, beside Sending, which the slip writes while it waits. */
.icon-btn.primary.slip-place[aria-busy="true"] > .lanes { width: 22px; }
.icon-btn.primary.slip-place[aria-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.slip-mode { margin: 10px 4px 0; display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--type)); color: var(--muted); }
.slip-mode .ico { width: 16px; height: 16px; color: var(--pending); }
/* The price changes the player accepts (Nic, 16.11.2026): Account's control under Place, quiet, its label in the second
   ink; the three choices drop under the label when the column is narrow. Account draws the same control in its row. */
.slip-prices { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 12px 4px 0; }
.slip-prices[hidden] { display: none; }
.slip-prices-label { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--muted); }
.price-changes-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.price-changes .seg { white-space: nowrap; }
.slip-prices .price-changes .seg { min-width: 0; padding: 0 12px; font-size: calc(13px * var(--type)); }
/* The bet types (Nic, 16.11.2026: every UK bet type): one row each, its name and its bets on the left, its own amount box
   on the right, what it could return under them once it has an amount, and the bookie's amount buttons under the row
   being filled. Rows are parted by a hairline; the box sits on the second surface, as the one box does. */
.slip-types { display: grid; margin-top: 6px; }
.type-row { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; align-items: center; gap: 4px 10px; padding: 10px 4px; }
.type-row + .type-row { box-shadow: inset 0 1px var(--line); }
.type-head { display: grid; gap: 1px; min-width: 0; }
.type-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: calc(15px * var(--type)); }
/* The name is never cut: on the computer's narrower column the accumulator's leg bars give way first. */
.type-name b { flex: none; font-weight: 700; white-space: nowrap; }
.type-name .stack { flex: 0 1 auto; min-width: 0; overflow: hidden; padding: 0 2px; }
.type-name .stack > i { width: 9px; }
.type-name .tip-btn { flex: none; margin: -6px 0 -6px -4px; }
.type-count { font-size: calc(13px * var(--type)); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Each way, each type its own (Nic, 16.11.2026): the slip's switch, small, beside the row's bets; it drops under them
   when the column is narrow. Its 44px target reaches past the line it sits on, so a row grows by a little, not by a
   whole target. */
.type-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-width: 0; }
.type-way { min-height: 44px; margin: -8px 0; gap: 8px; font-size: calc(13px * var(--type)); font-weight: 600; color: var(--muted); }
.type-way .play-switch-track { width: 34px; height: 20px; border-radius: 10px; }
.type-way .play-switch-track::after { top: 3px; left: 3px; width: 14px; height: 14px; }
.type-way input:checked + .play-switch-track::after { transform: translateX(14px); }
.type-way input:checked ~ .play-switch-label { color: var(--text); }
.type-field { height: 44px; padding: 0 12px; border-radius: 12px; }
.type-field .pound { font-size: calc(16px * var(--type)); }
.type-field input { font-size: calc(17px * var(--type)); }
.type-field input::placeholder { font-size: calc(13px * var(--type)); font-weight: 500; color: var(--faint); }
.type-tip, .type-returns, .type-presets { grid-column: 1 / -1; }
.type-tip { margin: 2px 0 0; }
.type-tip::before { display: none; }
.type-returns { display: flex; justify-content: space-between; gap: 8px; font-size: calc(13px * var(--type)); color: var(--muted); }
.type-returns b { color: var(--text); font-weight: 700; }
.type-returns[hidden], .type-presets:empty { display: none; }
.type-presets .presets { margin-top: 2px; }
.slip-body.is-types .play-way { margin-top: 12px; }

/* "Bet placed" stays in the slip for 3 seconds: a ticket that opens the bet in My bets. */
.slip-done:empty { display: none; }
.slip-done { margin-bottom: 8px; }
.slip-done-link { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 16px; background: var(--highlight); color: var(--highlight-ink); font-size: calc(16px * var(--type)); font-weight: 800; animation: leg-in .3s var(--ease); }
.slip-done-link .ico { width: 22px; height: 22px; stroke-width: 2.25; }

/* The bar that opens the slip on phones: inverted, above the dock. */
.slip-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--dock-h) + 10px + env(safe-area-inset-bottom));
  z-index: 26;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: var(--bar-bg);
  color: var(--bar-ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  animation: bar-in .3s var(--ease);
}
@keyframes bar-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.bar-count { position: relative; overflow: hidden; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--highlight); color: var(--highlight-ink); font-size: calc(15px * var(--type)); font-weight: 800; }
[data-theme="light"] .bar-count { background: var(--highlight-ink); color: var(--highlight); }
.bar-type { font-size: calc(15px * var(--type)); font-weight: 700; }
.bar-odds { font-size: calc(14px * var(--type)); font-weight: 600; color: var(--bar-muted); }
.bar-returns { --roll-align: flex-end; position: relative; overflow: hidden; margin-left: auto; font-size: calc(17px * var(--type)); font-weight: 800; }
.bar-chev { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(128, 128, 128, .16); }

/* The flying pick: a lit token from the price to the slip. */
.fly { position: fixed; left: 0; top: 0; z-index: 80; display: grid; place-items: center; min-width: 54px; height: 34px; padding: 0 10px; border-radius: 999px; background: var(--highlight); color: var(--highlight-ink); font-size: calc(14px * var(--type)); font-weight: 800; pointer-events: none; will-change: transform, opacity; }
/* The placed bet: a docket rises from Place and drops to My bets (600ms), its notches cut like the ticket it becomes. */
.ticket-print {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--highlight);
  color: var(--highlight-ink);
  font-weight: 800;
  pointer-events: none;
  will-change: transform, opacity;
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 6px, #000 6.5px) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 6px, #000 6.5px) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, #0000 6px, #000 6.5px) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 6px, #000 6.5px) 100% 0 / 51% 100% no-repeat;
}
.ticket-print .ico { width: 22px; height: 22px; stroke-width: 2.25; }

/* The board sizes itself to its own column, not the window, so it reads the same beside the slip or without it. */
.board { container: board / inline-size; }
.slots { container: slots / inline-size; }
.comp-body { display: grid; gap: 16px; min-width: 0; }
@container slots (min-width: 560px) and (max-width: 739.98px) {
  .fx { grid-template-columns: minmax(0, 1fr) auto minmax(0, 290px); align-items: center; }
  .fx .prices { grid-column: auto; }
}
/* Wide: the fixtures of a kick-off sit two by two, each its own tile. */
@container slots (min-width: 740px) {
  .fixtures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: none; border-radius: 0; overflow: visible; }
  .fx { border-radius: var(--radius); background: var(--surface); }
  .fx-band { grid-column: 1 / -1; border-radius: var(--radius); }
  .fx + .fx { box-shadow: none; }
  .fx.is-yours { box-shadow: inset 4px 0 var(--highlight); }
  .fx.is-focus { background: var(--surface-2); }
}
@container board (min-width: 600px) {
  .sports, .days, .comps, .race-strip { margin-inline: -5px; padding-inline: 5px; }
  .off-card:not(.is-result) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; column-gap: 20px; }
  .off-side { gap: 10px; }
}
/* Wide: every race time sits on its lane and opens its card, so the meeting cards below give way to the lanes. */
@container board (min-width: 640px) {
  .lanes.is-tap, .meetings { display: none; }
  .lanes.is-wide { display: grid; }
  .afternoon { padding: 16px 20px 14px; }
  .afternoon .scale { margin-left: 150px; }
  .scale-min { display: inline; }
  .lanes.is-wide .lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; padding: 6px 0; }
  .lanes.is-wide .lane-head { flex-wrap: wrap; row-gap: 2px; padding-right: 12px; }
  .lanes.is-wide .lane-going { display: flex; align-items: center; gap: 6px; flex-basis: 100%; min-width: 0; padding-left: 20px; }
  .lanes.is-wide .lane-going > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lanes.is-wide .track { height: 44px; }
  .lanes.is-wide .track::before, .lanes.is-wide .track-span { top: 13px; }
  .lanes.is-wide .now-tick { top: -6px; bottom: -6px; }
}

@media (min-width: 1024px) {
  .head-title { font-size: calc(30px * var(--type)); }
  .race-name { font-size: calc(34px * var(--type)); }
  .slip {
    position: sticky;
    top: calc(var(--top-h) + 16px);
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    max-height: calc(100vh - var(--top-h) - 32px);
    margin: 16px 32px 0 0;
    border-radius: var(--radius);
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .slip-grab, .slip-head .icon-btn, .slip-bar, .slip-scrim { display: none !important; }
  .slip-head { padding: 16px 16px 10px 20px; touch-action: auto; cursor: auto; }
  .slip-scroll { padding: 0 16px 18px; }
  /* An empty slip is not there: the board takes the width (styles.css). The first pick slides it in from the right
     (240ms); once it is empty it slides back out (160ms, ease-in) before the board widens again (slip-sheet.js). Under reduced
     motion it comes and goes at once. */
  .app.with-slip:not(.shows-slip) > .slip { display: none; }
  .app.with-slip.shows-slip > .slip { animation: slip-in .24s var(--ease); }
  .app.with-slip.slip-leaving > .slip { animation: slip-out .16s ease-in forwards; }
}
@keyframes slip-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes slip-out { to { opacity: 0; transform: translateX(24px); } }

@media (max-width: 379px) {
  .price-value { font-size: calc(16px * var(--type)); }
  .fx { padding: 12px 14px; }
  .runner { grid-template-columns: 30px minmax(0, 1fr) 70px; column-gap: 10px; padding-left: 12px; padding-right: 12px; }
  .runner.is-result { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .off-name { font-size: calc(24px * var(--type)); }
  .clock-figure { font-size: calc(26px * var(--type)); }
  .lb-row { grid-template-columns: minmax(0, 1fr) 70px; gap: 6px 10px; padding-left: 12px; padding-right: 12px; }
  .oc-row, .field-board.oc.has-result .oc-row { grid-template-columns: 30px minmax(0, 1fr) 70px; }
  .field-board.has-result .lb-row { grid-template-columns: 30px minmax(0, 1fr) 70px; }
  .field-board.is-golf.has-result .lb-row { grid-template-columns: 30px minmax(0, 1fr) 36px 70px; }
  .cloth, .lb-rank, .result-place { width: 30px; height: 30px; }
}

.slots { display: grid; gap: 16px; }

/* Favourites (13.11.2026): a star beside what can be starred, quiet until it is on, then filled in the colour of what
   is yours. It never grows the line it sits in (its box overhangs by a margin). A starred thing seen without its
   button (a race with a starred horse, a row of Today) wears the small filled star; a side on a match row has its
   button (.fx-team .star-btn). */
.star-btn { position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; margin: -6px -4px; border-radius: 999px; color: var(--faint); transition: color .15s, background-color .15s, transform .12s ease-out; }
.star-btn .ico { width: 18px; height: 18px; }
.star-btn:hover { color: var(--text); background: var(--surface-2); }
.star-btn:active { transform: scale(.9); }
.star-btn.is-on { color: var(--highlight); }
.star-btn.is-on .ico { fill: currentColor; }
@media (pointer: coarse) {
  .star-btn { width: 40px; height: 40px; margin: -10px -8px; }
}
.star-mark { display: inline-grid; place-items: center; flex: none; color: var(--highlight); }
.star-mark .ico { width: 14px; height: 14px; fill: currentColor; }
.race-chip .star-mark { position: absolute; top: 6px; left: 6px; }
.race-chip .star-mark .ico { width: 10px; height: 10px; }
.race-chip.is-current .star-mark { color: var(--block-ink); }
.meeting-title .star-btn, .head-name .star-btn { margin-left: -2px; }

/* Search: the sides, competitions, courses and horses the words name, each a chip with its star, above the results. */
.search-names { display: flex; flex-wrap: wrap; gap: 8px; }
.search-name-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--surface); font-size: calc(15px * var(--type)); font-weight: 600; }
.search-name-mark { display: grid; place-items: center; }
.search-name-mark .ico { width: 18px; height: 18px; }
.search-name-chip .star-btn { margin: 0; }

/* Today: the head every view shares, then favourites, the next races off, what is coming up and the live bets, each a
   list of rows that open their race card, match or My bets. A time, never a countdown; no prices. */
.today { display: grid; gap: 14px; min-width: 0; }
.today-group { display: grid; gap: 8px; }
.today-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 0; }
.today-title { font-size: calc(20px * var(--type)); font-weight: 700; letter-spacing: -0.01em; }
.today-list { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.today-row { display: flex; align-items: center; gap: 4px; }
.today-row + .today-row { box-shadow: inset 0 1px var(--line); }
.today-row > .star-btn { margin: 0 12px 0 0; }
.today-link { flex: 1; min-width: 0; display: grid; grid-template-columns: 84px 28px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; color: var(--text); transition: background-color .15s; }
.today-link:hover { background: var(--surface-2); }
.today-when { font-size: calc(14px * var(--type)); font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.today-mark { display: grid; place-items: center; }
/* Every mark is as wide as a flag, inside its column at every width, so each has the same gap to its name: an icon in
   a box that wide and still drawn 22 high, a runner's saddlecloth at its small size, as on the iPhone (22.11.2026: at
   the race card's size it ran over the gap). Each cloth wears the hairline there, as on the iPhone, so one past 18
   keeps its box on a hovered row, whose ground is its own colour, and keeps that colour. */
.today-mark .ico { width: 24px; height: 22px; }
.today-mark .cloth { width: 24px; height: 24px; border-radius: 7px; font-size: calc(12px * var(--type)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); }
.today-text { display: grid; gap: 2px; min-width: 0; }
.today-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.today-name .star-mark { display: inline-grid; margin-left: 6px; vertical-align: -2px; }
.today-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13px * var(--type)); color: var(--muted); }
/* A line of two parts, a live bet's: what it is on gives way first, with its own ellipsis, and the amount after it is
   never cut (pre keeps the space before its dot, which a part of its own would drop). */
.today-line:has(> span) { display: flex; }
.today-line > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.today-line > span:last-child { flex: none; white-space: pre; }
@media (max-width: 379px) {
  .today-link { grid-template-columns: 72px 24px minmax(0, 1fr); gap: 10px; padding-left: 12px; padding-right: 12px; }
}

/* Moving within the board: the view cross-fades with a 12px slide (the old view moves half as far), up going deeper
   (into a race card), down coming back out (motion.js sets data-nav). In 220ms, out 140ms; the bars around it stay. The
   sport chips, the head and the day strip stay where they are and change in place, so another sport or day is the
   same page with different content. The top bar, the dock and the slip's bar are held on their own as well, so
   nothing that moves under them is drawn over them while the view changes. */
#view { view-transition-name: view; }
.top { view-transition-name: top-bar; }
.dock { view-transition-name: dock; }
.slip-bar { view-transition-name: slip-bar; }
.board > .board-top { view-transition-name: board-sports; }
.board-head { view-transition-name: board-head; }
.board-head + .days { view-transition-name: board-days; }
::view-transition-group(board-sports), ::view-transition-group(board-head), ::view-transition-group(board-days) { animation-duration: .22s; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(view) { animation: vt-out .14s ease-in both; }
::view-transition-new(view) { animation: vt-in .22s var(--ease) both; }
:root[data-nav="back"]::view-transition-old(view) { animation-name: vt-out-back; }
:root[data-nav="back"]::view-transition-new(view) { animation-name: vt-in-back; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes vt-out-back { to { opacity: 0; transform: translateY(6px); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateY(-12px); } }

/* A football match's page of markets (board/match-page.js, 16.11.2026). On a match's card, its count of markets
   ("+95") sits at the end of its side column, quiet until hovered; the whole card opens the page. The page: the
   match's head (back, the two sides, when, where it stands), a row of tabs that scrolls in its own row, the tab on in
   the brand block as a day is, then each market as a card that folds from its name, its prices in the Board's ruled
   strip, correct score and winning margin in columns. A suspended market keeps its prices shut, a pill saying so. */
.fx.has-more { cursor: pointer; }
.fx-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -10px -8px -12px 0; padding: 0 4px 0 8px; border-radius: 999px; color: var(--muted); font-size: calc(13px * var(--type)); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .15s, color .15s; }
.fx-more .ico { width: 16px; height: 16px; }
.fx-more:hover, .fx.has-more:hover .fx-more { background: var(--surface-2); color: var(--text); }
.mp { display: grid; gap: 12px; min-width: 0; }
.mp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.mp-back { margin-left: -6px; }
.mp-what { display: grid; gap: 4px; min-width: 0; }
.mp-title { display: grid; gap: 4px; margin: 0; font-family: var(--display); font-size: calc(26px * var(--type)); font-weight: 800; font-stretch: 75%; line-height: 1.1; letter-spacing: -0.005em; }
.mp-title:focus { outline: 0; }
.mp-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-score { margin-left: auto; font-family: var(--sans); font-size: calc(20px * var(--type)); font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-when { margin: 0; font-size: calc(13px * var(--type)); color: var(--muted); }
.mp-head > .pill { align-self: start; margin-top: 6px; }
/* The end of a match page's head and a race card's: where it stands, then Request a bet (16.11.2026). */
.mp-end { display: inline-flex; align-items: center; gap: 6px; align-self: start; }
.mp-end > .pill { margin-top: 6px; }
.mp.is-yours .mp-title { box-shadow: inset 4px 0 var(--highlight); padding-left: 12px; }
.mp-tabs { display: flex; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.mp-tabs::-webkit-scrollbar { display: none; }
.mp-tab { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: calc(14px * var(--type)); font-weight: 600; transition: background-color .18s, color .18s; }
.mp-tab:hover { background: var(--surface-2); color: var(--text); }
.mp-tab.is-active { background: var(--block); color: var(--block-ink); }
:root:not([data-theme="light"]) .mp-tab.is-active { box-shadow: inset 0 0 0 2px var(--switch-on); }
.mk-list { display: grid; gap: 10px; }
.mk { display: grid; min-width: 0; border-radius: var(--radius); background: var(--surface); }
.mk-head { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 2px 8px 2px 0; }
.mk-name { flex: 1 1 auto; min-width: 0; margin: 0; font-size: calc(15px * var(--type)); font-weight: 700; }
.mk-fold { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 8px 0 16px; border-radius: var(--radius) 0 0 var(--radius); text-align: left; color: var(--text); }
.mk-fold span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-fold .ico { flex: none; width: 16px; height: 16px; color: var(--muted); }
.mk-head .pill { flex: none; }
.mk-tip { margin: 0 12px 10px; }
.mk-body { display: grid; min-width: 0; }
.mk-body > .prices:last-child, .mk-grid:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.mk-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mk-col { display: grid; align-content: start; min-width: 0; }
.mk-col + .mk-col { box-shadow: inset 1px 0 var(--line); }
.mk-col-head { padding: 8px 4px 4px; text-align: center; font-size: calc(12px * var(--type)); font-weight: 700; color: var(--muted); }
.mk-col .price + .price { box-shadow: inset 0 1px var(--line); }
.mk-col .price:disabled + .price:disabled { box-shadow: inset 0 1px var(--line); }
.mk.is-off .mk-name { color: var(--muted); }
@media (min-width: 1024px) {
  .mp-title { font-size: calc(30px * var(--type)); }
  .mp-tabs { margin: 0; padding: 2px 0; }
}

/* The Goalscorers tab (board/goalscorers.js, 17.11.2026): each side's card a list of player rows, the side's roundel,
   the name over a thin bar for the chance to score, then a price key a column (First, Anytime, Last under quiet
   heads); the substitutes under a quiet line once the line-ups are in; one market across both sides a column of one
   key. The scorecast and wincast card: a row of player chips that scrolls in its own row (the chosen one in claret, as
   a sport chip), then the wincast's three keys and the scorecast's columns, each under a quiet word. */
.gs-heads, .gs-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) repeat(var(--n, 3), 58px); gap: 6px; align-items: center; padding: 0 12px; }
.gs-heads { padding-top: 2px; padding-bottom: 4px; }
.gs-heads span { text-align: center; font-size: calc(12px * var(--type)); font-weight: 700; color: var(--muted); }
.gs-rows { display: grid; margin: 0; padding: 0 0 6px; list-style: none; }
.gs-row { padding-top: 6px; padding-bottom: 6px; }
.gs-row + .gs-row { box-shadow: inset 0 1px var(--line); }
.gs-row .price { min-height: 44px; }
.gs-mark { display: grid; place-items: center; }
.gs-mark .flag, .gs-mark .initials, .gs-chip .flag, .gs-chip .initials, .mk-fold .flag, .mk-fold .initials { width: 20px; height: 15px; flex: none; }
.gs-who { display: grid; gap: 5px; min-width: 0; }
.gs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--type)); font-weight: 600; }
.gs-row.is-sub .gs-name, .gs-row.is-off .gs-name { color: var(--muted); }
.gs-chance { max-width: 120px; }
.gs-key.is-none { display: grid; place-items: center; min-height: 44px; }
.gs-bench { padding: 10px 12px 2px; font-size: calc(12px * var(--type)); font-weight: 700; color: var(--muted); }
.gs-chips { display: flex; gap: 6px; margin: 0; padding: 2px 12px 10px; overflow-x: auto; scrollbar-width: none; }
.gs-chips::-webkit-scrollbar { display: none; }
.gs-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: calc(14px * var(--type)); font-weight: 600; white-space: nowrap; transition: background-color .18s, color .18s, transform .12s ease-out; }
.gs-chip:hover { color: var(--text); background: var(--surface-3); }
.gs-chip:active { transform: scale(.97); }
.gs-chip.is-active { background: var(--block); color: var(--block-ink); }
:root:not([data-theme="light"]) .gs-chip.is-active { box-shadow: inset 0 0 0 2px var(--switch-on); }
.gs-sub { margin: 4px 12px 6px; font-size: calc(12px * var(--type)); font-weight: 700; color: var(--muted); }
.gs-card .prices.mk-line { padding: 0 12px 12px; }
@media (min-width: 1024px) {
  .gs-heads, .gs-row { grid-template-columns: 24px minmax(0, 1fr) repeat(var(--n, 3), 84px); }
  .gs-chance { max-width: 180px; }
}

/* The Bet builder tab (board/bet-builder.js, 17.11.2026). Its strip: the logo's slanted bars counting the legs in gold
   (the player's own), each leg a chip with its side's mark and a cross, a thin bar for the chance they all win, and the
   price on a framed price key, gold once the builder is in the slip (the strip then wears the gold line a match with
   your bet has). Its keys: gold while a leg; covered by the legs, a quiet tick in ink; unable to win with them, barred
   and faint. None of it moves but a key's own fill. */
.bb-strip { display: grid; gap: 10px; padding: 12px 10px 12px 14px; border-radius: var(--radius); background: var(--surface); }
.bb-strip.is-in-slip { box-shadow: inset 4px 0 var(--highlight); }
.bb-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.bb-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 44px; padding: 0 2px 0 12px; border-radius: 999px; background: var(--surface-2); font-size: calc(14px * var(--type)); font-weight: 600; }
.bb-chip.is-none { padding: 0 12px; background: transparent; }
.bb-chip-mark { display: grid; place-items: center; flex: none; }
.bb-chip-mark > .flag, .bb-chip-mark > .initials { width: 20px; height: 15px; }
.bb-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-chip-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -2px; border-radius: 50%; color: var(--muted); transition: background-color .16s, color .16s; }
.bb-chip-x:hover { background: var(--surface-3); color: var(--text); }
.bb-chip-x .ico { width: 14px; height: 14px; }
.bb-end { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "bars meter tip clear key"; align-items: center; gap: 8px; }
.bb-end .bb-bars { grid-area: bars; }
.bb-end .bb-chance { grid-area: meter; width: 100%; max-width: 240px; }
.bb-end .tip-btn { grid-area: tip; }
.bb-end .bb-clear { grid-area: clear; }
.bb-end .bb-price { grid-area: key; }
.bb-chance.is-none { height: 4px; }
.price.bb-price { min-width: 112px; min-height: 52px; padding: 6px 14px; border-radius: var(--radius-inner); box-shadow: inset 0 0 0 1.5px var(--line); }
.price.bb-price .price-value { font-size: calc(20px * var(--type)); }
.price.bb-price[aria-pressed="true"] { box-shadow: none; }
.price.bb-price:disabled { box-shadow: inset 0 0 0 1px var(--line); }
.price.bb-key.is-covered .price-value .ico { color: var(--text); }
.price.bb-key.is-covered .price-figure { color: var(--muted); }
.price.bb-key.is-blocked { color: var(--faint); }
.price.bb-key.is-blocked .price-value .ico { color: var(--faint); }
.price.bb-key[aria-disabled="true"]:active { transform: none; }
/* The tab's strip stays under the top bar while the cards scroll, on a phone as on a computer (17.11.2026), so its legs
   and its price are in view as legs go in. The gap between it and the top bar is the page's own ground, and so is what
   lies behind its rounded corners and 10px round it (a shadow of the ground, which at rest falls only on the gaps round
   the strip, 12px above and 10px below), so no card shows through while it is stuck. A key the keyboard reaches is
   scrolled clear of it. */
.mk-list > .bb-strip { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top) + 8px); z-index: 2; box-shadow: 0 0 0 10px var(--ground); }
.mk-list > .bb-strip.is-in-slip { box-shadow: inset 4px 0 var(--highlight), 0 0 0 10px var(--ground); }
.mk-list > .bb-strip::before { content: ''; position: absolute; left: -8px; right: -8px; bottom: 100%; height: 10px; background: var(--ground); pointer-events: none; }
html:has(.mk-list > .bb-strip) { scroll-padding-top: calc(var(--top-h) + env(safe-area-inset-top) + 156px); }
/* Under a computer's width the legs keep to one row that scrolls on its own, so the strip stays short while it is stuck:
   each leg still reads whole in its chip. The strip takes the place under the top bar the days have on other pages, so
   the days scroll away with the match's head while a builder is open. */
@media (max-width: 1023.98px) {
  .comp:has(.mk-list > .bb-strip) .board-head + .days { position: static; }
  .mk-list > .bb-strip .bb-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .mk-list > .bb-strip .bb-chips::-webkit-scrollbar { display: none; }
  .mk-list > .bb-strip .bb-chip { flex: none; }
}

/* In-play (17.11.2026, views/board/in-play.js): the red light with the minute beside it in ink, tabular, never a
   countdown; Suspended as a plain pill, why in its tooltip; the slip's Sending, the word alone in the Place button while
   the bet delay runs. Nothing flashes: a price that moves rolls on its key as every price does. */
.ip-state { display: inline-flex; align-items: center; gap: 2px; }
.ip-minute { font-size: calc(13px * var(--type)); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.mp-end .ip-state, .fx-side .ip-state { justify-self: end; }
.today-when .ip-state { gap: 0; }
.today-when .ip-off { display: none; }
.slip-sending { font-size: calc(16px * var(--type)); font-weight: 700; }

/* A boost (the pricing and risk module's promotion, server/pricing.js), as a player sees it: on the Board a boosted
   price wears a quiet blue ring round the button and a Boost chip under the figure, with the price it was struck beside
   it (.price-was); a leg struck or picked at a boosted price says Boost beside its name, on a ticket and in the slip;
   and the slip says the margin a multiple takes. Blue is the placed and information ink, never gold (yours) or the win
   colour; nothing is under 12px. These rules came from admin-pricing.css (14.11.2026), last in the cascade, and stay
   last here, after every rule of the Board's; kit.css and messages.css, which follow, style none of these elements. */
.price.is-boosted { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--placed) 55%, transparent); }
.price-boost {
  display: inline-block;
  max-width: 100%;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--placed) 16%, transparent);
  color: var(--boost-ink);
  font-size: calc(12px * var(--type));
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
}
.price[aria-pressed="true"] .price-boost { background: color-mix(in srgb, currentColor 18%, transparent); color: inherit; }
.price[aria-pressed="true"].is-boosted { box-shadow: none; }
.leg-boost {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--placed) 16%, transparent);
  color: var(--boost-ink);
  font-size: calc(12px * var(--type));
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 1px;
}
/* The accumulator margin a multiple takes, under its total odds and returns. */
.slip-margin { margin: 10px 4px 0; font-size: calc(13px * var(--type)); color: var(--muted); }
