/* Rovantra Countdown board: what viewers see at <team>.rovantra.com.au/countdown and on the editor's Wi-Fi board.
   Sized with container units so one page scales from a phone to a TV. Fonts are bundled (SIL OFL, licences in fonts/). */
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url(fonts/exo-2-latin-600-normal.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Exo 2'; src: url(fonts/exo-2-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url(fonts/orbitron-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Rajdhani'; src: url(fonts/rajdhani-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url(fonts/chakra-petch-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Saira Condensed'; src: url(fonts/saira-condensed-latin-600-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2'); font-display: swap; }

:root {
  /* Rovantra brand pack v1.0 */
  --rv-purple: #6932FF; --rv-purple-hi: #9A78FF; --rv-purple-deep: #2A1670;
  --bg: #0B0D13; --surface: #161A24; --surface-2: #1E2330; --line: #2A3142;
  --text: #F4F5F8; --muted: #A0A8B8; --faint: #6C7486;
  --ok: #34D27B; --warn: #FFB547; --bad: #FF5468;
  --ui: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --ui-head: 'Exo 2', 'Inter', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--rv-purple-hi); outline-offset: 2px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 7px 6px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.seg button[aria-pressed="true"] { background: var(--rv-purple); color: #fff; }
.btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 7px; padding: 7px 12px; font-weight: 600; font-size: 13px; }
.btn.primary { background: var(--rv-purple); border-color: var(--rv-purple); color: #fff; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 4px 10px 4px 8px; font-size: 12.5px; font-weight: 500; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.chip[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--bg)); }
.msg { font-size: 12.5px; color: var(--ok); min-height: 1.2em; }
.msg.err { color: var(--bad); }
input[type=password], input[type=text] { background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; min-width: 0; width: 100%; }

/* ---------- viewer chrome: logo menu, tip, password gate ---------- */
.viewer .brand-slot, .viewer .a-head, .viewer .b-head, .viewer .m-head, .viewer .c-clock, .viewer .c-day { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vtip { position: absolute; z-index: 58; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(20,22,30,.92); border: 1px solid #333a4a; color: #fff; padding: 8px 14px; border-radius: 99px; font-size: 13px; white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.vmenu { position: absolute; inset: 0; z-index: 57; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 16px; }
.vmenu .sheet { width: min(460px, 100%); max-height: 100%; overflow-y: auto; background: #12151d; border: 1px solid #2a3142; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.vmenu h2 { margin: 0; font: 600 17px var(--ui-head); }
.vmenu .sub { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.vmenu h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.vmenu .seg { display: flex; flex-wrap: wrap; }
.vmenu .vfonts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.vmenu .vfonts button { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 7px 9px; text-align: left; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmenu .vfonts button[aria-pressed="true"] { border-color: var(--rv-purple-hi); background: color-mix(in srgb, var(--rv-purple) 22%, var(--bg)); }
.vmenu .foot { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
@media (max-width: 520px) { .vmenu { align-items: flex-end; padding: 0; } .vmenu .sheet { border-radius: 14px 14px 0 0; max-height: 88%; } }
.gate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; z-index: 55; padding: 20px; }
.gate form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.gate img { height: 44px; align-self: center; }
.gate h2 { margin: 6px 0 0; font: 600 18px var(--ui-head); letter-spacing: .04em; }
.gate p { margin: 0; color: var(--muted); font-size: 13px; }

/* =====================================================================
   THE BOARD (what viewers see at team.rovantra.com.au/countdown)
   Sized with container units so it scales from a phone to a TV.
   ===================================================================== */
.board {
  --tc: #F37032; --tc2: #E54B21; --on-tc: #000;
  --b-bg: #000; --b-fg: #fff; --b-muted: #9DA6AB; --b-line: #525E66; --b-dim: #2b3136;
  --b-tint: rgba(255,255,255,.05); --b-tint2: rgba(255,255,255,.035); --b-on: #34D27B;
  --b-grad: radial-gradient(120% 90% at 85% 0%, #24282c 0%, #0a0b0c 45%, #000 100%);
  --b-rail: linear-gradient(180deg, #0d0f11, #000);
  --disp: 'Exo 2'; --dw: 1em; --cw: .32em;
  --slant: -12deg;
  container-type: size; position: absolute; inset: 0; overflow: hidden;
  background: var(--b-grad); background-color: var(--b-bg);
  color: var(--b-fg); font-family: var(--disp), var(--ui); text-transform: uppercase;
  -webkit-user-select: none; user-select: none;
}
/* Light theme: same layouts on a pale background, for daylight garages and hospitality screens. */
.board.light {
  --b-bg: #F3F4F6; --b-fg: #0E1114; --b-muted: #56606A; --b-line: #8B959E; --b-dim: #D3D8DD;
  --b-tint: rgba(14,17,20,.045); --b-tint2: rgba(14,17,20,.035); --b-on: #10884A;
  --b-grad: radial-gradient(120% 90% at 85% 0%, #FFFFFF 0%, #F4F5F7 50%, #E7EAED 100%);
  --b-rail: linear-gradient(180deg, #FFFFFF, #ECEEF1);
}
.board .d { display: inline-block; width: var(--dw); text-align: center; }
.board .c { display: inline-block; width: var(--cw); text-align: center; }
.board .fit { white-space: nowrap; }
.board .ui { font-family: var(--ui); font-weight: 600; letter-spacing: .16em; }
.bchip { display: inline-flex; align-items: center; gap: .45em; font-family: var(--ui); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bchip i { width: .7em; height: .7em; border-radius: 2px; background: var(--c); transform: skewX(var(--slant)); }
.brand-slot { display: flex; min-width: 0; min-height: 0; position: relative; }
.brand-slot img { max-width: 100%; object-fit: contain; display: block; }
.board.showslot .brand-slot { outline: 1.5px dashed color-mix(in srgb, #9A78FF 85%, transparent); outline-offset: 2px; background: color-mix(in srgb, #6932FF 12%, transparent); }
.board.showslot .brand-slot::after { content: 'LOGO AREA'; position: absolute; right: 4px; bottom: 3px; font: 600 9px/1 var(--ui); letter-spacing: .1em; color: #9A78FF; }
.pw { display: flex; align-items: center; gap: .5em; font-family: var(--ui); font-weight: 600; letter-spacing: .14em; color: var(--b-line); white-space: nowrap; flex-shrink: 0; }
.pw svg { height: 1.3em; width: auto; opacity: .8; }
/* Rovantra Countdown logo: white on dark screens; charcoal lettering and purple emblem on light (brand pack colour-light). */
.rvword .rvem { color: var(--rv-em, currentColor); }
.board.light .rvlogo { color: #262E33; --rv-em: #6932FF; }
.pw.tn { color: var(--b-muted); letter-spacing: .2em; }
.rvlogo { display: block; color: var(--b-fg); } .rvlogo svg { height: 100%; width: auto; display: block; max-width: 100%; }
.lock { display: inline-flex; align-items: center; gap: .4em; }
.board .warnable { transition: none; }

/* ---------- Layout A: PIT WALL (the V8 clock) ---------- */
.LA { position: absolute; inset: 0; display: grid; grid-template-rows: 13cqh minmax(0,1fr) auto 4cqh; grid-template-columns: minmax(0,1fr); gap: 2.2cqh; padding: 2.6cqh 3.2cqw 2cqh; }
.LA .a-head { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; min-height: 0; }
.LA .a-head .brand-slot { width: 30cqw; height: 100%; }
.LA .a-hr { display: flex; align-items: center; gap: 2.4cqw; }
.LA .a-day { text-align: right; font-size: 2.6cqh; letter-spacing: .08em; color: var(--b-muted); line-height: 1.3; white-space: nowrap; }
.LA .a-day b { display: block; color: var(--b-fg); font-weight: normal; }
.LA .a-clockbox { padding: .5cqh 1.6cqw .4cqh; border: 2px solid var(--b-line); transform: skewX(var(--slant)); border-radius: 0 1cqh 0 1cqh; }
.LA .a-clockbox > div { transform: skewX(calc(var(--slant) * -1)); }
.LA .a-clockbox small { display: block; font: 600 1.35cqh var(--ui); letter-spacing: .25em; color: var(--b-muted); }
.LA .a-clock { font-size: 5.6cqh; line-height: 1; white-space: nowrap; }
.LA .a-main { min-height: 0; display: flex; flex-direction: column; justify-content: safe center; padding: 2cqh 3.2cqw; transform: skewX(var(--slant)); border-radius: 0 2.4cqh 0 2.4cqh; background: linear-gradient(90deg, var(--b-tint), transparent 70%); border-left: .9cqw solid var(--tc); overflow: hidden; }
.LA .a-main > * { transform: skewX(calc(var(--slant) * -1)); }
.LA .a-tagrow { display: flex; align-items: center; gap: 2cqw; }
.LA .a-tag { display: inline-block; background: var(--tc); color: var(--on-tc); font-size: 2.7cqh; letter-spacing: .12em; padding: .3em .8em .22em; transform: skewX(var(--slant)); border-radius: 0 .3em 0 .3em; margin-left: .4em; }
.LA .a-tag span { display: inline-block; transform: skewX(calc(var(--slant) * -1)); }
.LA .a-tagrow .bchip { font-size: 1.7cqh; color: var(--b-muted); }
.LA .a-title { font-size: 8.5cqh; line-height: 1.05; margin-top: 1.4cqh; }
.LA .a-meta { font: 600 2cqh var(--ui); letter-spacing: .2em; color: var(--b-muted); margin-top: 1cqh; }
.LA .a-timer { font-size: 21cqh; line-height: 1; margin-top: 1.4cqh; }
.LA.up .a-title { font-size: 7cqh; }
.LA.up .a-timer { font-size: 16cqh; }
.LA .a-main.warn { background: var(--tc); border-left-color: var(--b-fg); color: var(--on-tc); }
.LA .a-main.warn .a-tag { background: var(--on-tc); color: var(--tc); }
.LA .a-main.warn .a-meta, .LA .a-main.warn .bchip { color: color-mix(in srgb, var(--on-tc) 70%, transparent); }
.LA .a-then { display: flex; align-items: center; gap: 2cqw; padding: 1.4cqh 2cqw; border: 2px solid var(--tc); transform: skewX(var(--slant)); border-radius: 0 1.4cqh 0 1.4cqh; min-height: 8cqh; overflow: hidden; }
.LA .a-then > * { transform: skewX(calc(var(--slant) * -1)); }
.LA .a-then .l { color: var(--tc); font-size: 2.5cqh; letter-spacing: .12em; }
.LA .a-then .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 3.8cqh; }
.LA .a-then .at { font: 600 1.9cqh var(--ui); color: var(--b-muted); letter-spacing: .15em; }
.LA .a-then .t { font-size: 4.6cqh; white-space: nowrap; }
.LA .a-up { display: grid; grid-template-columns: repeat(var(--n), minmax(0,1fr)); gap: calc(1.4cqw + 2.4cqh); }
.LA .a-card { border: 2px solid var(--b-dim); border-top: .7cqh solid var(--c, var(--b-line)); padding: 1.4cqh 1.2cqw 1.2cqh; transform: skewX(var(--slant)); border-radius: 0 1.2cqh 0 1.2cqh; min-width: 0; }
.LA .a-card > * { transform: skewX(calc(var(--slant) * -1)); }
.LA .a-card .at { font: 600 1.7cqh var(--ui); letter-spacing: .14em; color: var(--b-muted); }
.LA .a-card .n { font-size: 2.7cqh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: .5cqh 0 .6cqh; }
.LA .a-card .t { font-size: 3.4cqh; white-space: nowrap; color: var(--tc); }
.LA .a-foot { display: flex; align-items: center; justify-content: space-between; font-size: 1.5cqh; color: var(--b-line); }
.LA .a-foot .ev { font: 600 2cqh var(--ui); letter-spacing: .2em; color: var(--b-muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .8em; }
.LA .a-foot .ev::before { content: ''; flex: none; width: 3.5em; height: .5em; background: linear-gradient(90deg, var(--tc2), var(--tc)); transform: skewX(var(--slant)); }

/* ---------- Layout B: STACK (centred, TV friendly) ---------- */
.LB { position: absolute; inset: 0; display: grid; grid-template-rows: 11cqh minmax(0,1fr) auto 7cqh; grid-template-columns: minmax(0,1fr); padding: 3cqh 5cqw 2.4cqh; gap: 2cqh; }
.LB .b-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2cqw; min-height: 0; }
.LB .b-head .brand-slot { grid-column: 2; width: 34cqw; height: 100%; }
.LB .b-head .ev { font: 600 2cqh/1.35 var(--ui); letter-spacing: .2em; color: var(--b-muted); min-width: 0; }
.LB .b-head .ev.r { text-align: right; }
.LB .b-main { display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center; min-height: 0; overflow: hidden; border-radius: 3cqh; padding: 2cqh 3cqw; }
.LB .b-chips { display: flex; gap: 2cqw; font-size: 1.8cqh; color: var(--b-muted); justify-content: center; }
.LB .b-kick { font: 600 2cqh var(--ui); letter-spacing: .3em; color: var(--tc); }
.LB .b-title { font-size: 8cqh; line-height: 1.05; margin-top: 1.4cqh; max-width: 100%; }
.LB .b-timer { font-size: 25cqh; line-height: 1; margin-top: 1.2cqh; }
.LB .b-bar { width: min(70cqw, 100%); height: .9cqh; background: var(--b-dim); border-radius: 99px; margin-top: 2.4cqh; overflow: hidden; }
.LB .b-bar i { display: block; height: 100%; width: 0; background: var(--tc); border-radius: 99px; }
.LB .b-at { font: 600 1.9cqh var(--ui); letter-spacing: .2em; color: var(--b-muted); margin-top: 1.6cqh; }
.LB.up .b-title { font-size: 6.5cqh; }
.LB.up .b-timer { font-size: 18cqh; }
.LB .b-main.warn { background: var(--tc); color: var(--on-tc); }
.LB .b-main.warn .b-kick, .LB .b-main.warn .b-at, .LB .b-main.warn .bchip { color: color-mix(in srgb, var(--on-tc) 72%, transparent); }
.LB .b-main.warn .b-bar { background: color-mix(in srgb, var(--on-tc) 20%, transparent); }
.LB .b-main.warn .b-bar i { background: var(--on-tc); }
.LB .b-then { display: flex; justify-content: center; align-items: baseline; gap: .4em; font-size: 3cqh; color: var(--b-muted); white-space: nowrap; min-width: 0; }
.LB .b-then > * { flex: none; }
.LB .b-then b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.LB .b-then b { color: var(--b-fg); font-weight: normal; }
.LB .b-then .t { color: var(--tc); }
.LB .b-up { display: flex; flex-direction: column; border-top: 1px solid var(--b-dim); }
.LB .b-row { display: grid; grid-template-columns: 9cqw minmax(0,1fr) auto 14cqw; gap: 2cqw; align-items: center; padding: 1.15cqh .5cqw; border-bottom: 1px solid var(--b-dim); font-size: 2.9cqh; }
.LB .b-row .at { color: var(--b-muted); }
.LB .b-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.LB .b-row .bchip { font-size: 1.4cqh; color: var(--b-muted); }
.LB .b-row .t { text-align: right; color: var(--tc); white-space: nowrap; }
.LB .b-foot { display: flex; align-items: center; justify-content: space-between; font-size: 2.6cqh; color: var(--b-muted); }
.LB .b-foot .clk { color: var(--b-fg); font-size: 5.6cqh; line-height: 1; white-space: nowrap; }

/* ---------- Layout C: SPLIT (rail + big card, landscape) ---------- */
.LC { position: absolute; inset: 0; display: grid; grid-template-columns: 34cqw minmax(0,1fr); }
.LC .c-rail { display: flex; flex-direction: column; gap: 2cqh; padding: 3cqh 2.6cqw 2.4cqh; border-right: 1px solid var(--b-dim); background: var(--b-rail); min-height: 0; }
.LC .c-rail .brand-slot { width: 100%; height: 12cqh; flex: none; }
.LC .c-clock { font-size: 8.5cqh; line-height: 1; white-space: nowrap; }
.LC .c-day { font: 600 1.8cqh var(--ui); letter-spacing: .2em; color: var(--b-muted); margin-top: -.6cqh; }
.LC .c-ev { font: 600 1.8cqh/1.35 var(--ui); letter-spacing: .2em; color: var(--b-fg); display: flex; align-items: center; gap: .8em; }
.LC .c-ev::before { content: ''; flex: none; width: 2.4em; height: .45em; background: linear-gradient(90deg, var(--tc2), var(--tc)); transform: skewX(var(--slant)); }
.LC .c-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; position: relative; }
.LC .c-list h4 { margin: 0 0 1cqh; font: 600 1.6cqh var(--ui); letter-spacing: .24em; color: var(--tc); }
.LC .c-it { position: relative; padding: 1cqh 0 1cqh 2.4cqw; border-left: 2px solid var(--b-dim); }
.LC .c-it::before { content: ''; position: absolute; left: -.75cqh; top: 1.7cqh; width: 1.3cqh; height: 1.3cqh; border-radius: 50%; background: var(--c, var(--b-line)); }
.LC .c-it .at { font: 600 1.6cqh var(--ui); letter-spacing: .14em; color: var(--b-muted); }
.LC .c-it .n { font-size: 2.6cqh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.LC .c-it .t { font-size: 2.3cqh; color: var(--tc); white-space: nowrap; }
.LC .c-rail .pw { font-size: 1.3cqh; }
.LC .c-main { display: flex; flex-direction: column; justify-content: safe center; padding: 4cqh 4cqw; min-width: 0; position: relative; overflow: hidden; }
.LC .c-main::before { content: ''; position: absolute; right: -10cqw; top: -10cqh; width: 60cqw; height: 130cqh; background: linear-gradient(180deg, var(--tc2), var(--tc)); opacity: .07; transform: skewX(var(--slant)); }
.LC .c-main > * { position: relative; }
.LC .c-kick { display: flex; align-items: center; gap: 2cqw; font-size: 1.8cqh; color: var(--b-muted); }
.LC .c-kick .k { font-family: var(--disp); font-size: 3cqh; color: var(--tc); letter-spacing: .1em; }
.LC .c-title { font-size: 8cqh; line-height: 1.05; margin-top: 2cqh; }
.LC .c-timer { font-size: 22cqh; line-height: 1; margin-top: 2cqh; }
.LC .c-at { font: 600 2cqh var(--ui); letter-spacing: .2em; color: var(--b-muted); margin-top: 2cqh; }
.LC .c-main.warn { background: var(--tc); color: var(--on-tc); }
.LC .c-main.warn::before { display: none; }
.LC .c-main.warn .k { color: var(--on-tc); }
.LC .c-main.warn .c-at, .LC .c-main.warn .bchip { color: color-mix(in srgb, var(--on-tc) 72%, transparent); }
.LC .c-main.sched { padding: 3cqh 3cqw 0; justify-content: flex-start; }
.LC .c-main.sched::before { display: none; }

/* ---------- Layout M: MECHANIC (label over a maximised timer; time row shorter) ---------- */
.LM { position: absolute; inset: 0; display: grid; grid-template-rows: 8cqh minmax(0,.72fr) minmax(0,1fr) minmax(0,1fr); grid-template-columns: minmax(0,1fr); gap: 1.4cqh; padding: 2.2cqh 2.4cqw; }
.LM .m-head { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; min-height: 0; }
.LM .m-head .brand-slot { height: 100%; width: 32cqw; flex: none; }
.LM .m-hr { display: flex; align-items: center; gap: 2.4cqw; min-width: 0; font-size: 1.6cqh; }
.LM .m-hr .ev { font: 600 1.7cqh/1.35 var(--ui); letter-spacing: .2em; color: var(--b-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.LM .m-row { display: flex; flex-direction: column; align-items: center; min-height: 0; overflow: hidden; background: var(--b-tint); border-radius: 1.4cqh; border-left: .8cqh solid var(--c, var(--b-dim)); padding: .8cqh 1.6cqw .4cqh; }
.LM .m-kick { flex: none; display: flex; align-items: baseline; justify-content: center; gap: .5em; max-width: 100%; font-size: 3.2cqh; line-height: 1.15; white-space: nowrap; }
.LM .m-kick .k { font: 600 .8em var(--ui); letter-spacing: .24em; color: var(--b-muted); }
.LM .m-kick .dashx { color: var(--b-line); }
.LM .m-kick b { font-weight: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.LM .m-big { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; font-size: 17cqh; line-height: 1; white-space: nowrap; }
.LM .m-row.clock { --c: var(--tc); }
.LM .m-row.clock .m-kick { font-size: 2.6cqh; }
.LM .m-row.clock .m-big { color: var(--tc); }
.LM .m-row.none .m-big { color: var(--b-dim); }
.LM .m-row.warn { background: var(--tc); color: var(--on-tc); border-left-color: var(--b-fg); }
.LM .m-row.warn .m-kick .k, .LM .m-row.warn .m-kick .dashx { color: color-mix(in srgb, var(--on-tc) 72%, transparent); }
/* ---------- shared: ON NOW strip ---------- */
.nowbar { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; column-gap: 1.6cqw; row-gap: .8cqh; font-size: 2.7cqh; padding: 1cqh 1.6cqw 1.1cqh; border: 1px solid var(--b-dim); border-left: .5cqw solid var(--c); border-radius: 0 1cqh 0 1cqh; background: var(--b-tint2); min-width: 0; }
.nowbar .l { display: inline-flex; align-items: center; gap: .5em; font: 700 .58em var(--ui); letter-spacing: .22em; color: var(--b-on); white-space: nowrap; }
.nowbar .l i { width: .7em; height: .7em; border-radius: 50%; background: var(--b-on); box-shadow: 0 0 0 .25em rgba(52,210,123,.25); }
.nowbar .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowbar .t { font: 600 .62em var(--ui); letter-spacing: .14em; color: var(--b-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowbar .t { grid-column: 1 / -1; }
.nowbar .track { grid-column: 1 / -1; height: .6cqh; background: var(--b-dim); border-radius: 99px; overflow: hidden; }
.nowbar .track i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 99px; }
.nowlist { display: grid; grid-template-columns: repeat(var(--n), minmax(0,1fr)); gap: 1.2cqw; min-width: 0; }
.nowlist .nowmore.tall { display: none; }
.nowlist .nowmore { grid-column: 1 / -1; font: 600 1.5cqh var(--ui); letter-spacing: .18em; color: var(--b-muted); }
.LC .c-rail .nowlist { grid-template-columns: minmax(0,1fr); gap: 1cqh; }
.LA .nowlist { column-gap: calc(1.4cqw + 2.6cqh); padding: 0 1.2cqh; }
.LA .nowbar { transform: skewX(var(--slant)); } .LA .nowbar > * { transform: skewX(calc(var(--slant) * -1)); }
.LA.hasnow { grid-template-rows: 13cqh auto minmax(0,1fr) auto 4cqh; }
.LB.hasnow { grid-template-rows: 11cqh auto minmax(0,1fr) auto 7cqh; }
.LB .nowbar { border-radius: 1cqh; }
.LC .c-rail .nowbar { grid-template-columns: auto minmax(0,1fr); font-size: 2.2cqh; padding: 1cqh 1.2cqw; }
.LC .c-rail .nowbar .t { grid-column: 1 / -1; }
.sched .s-row.run { position: relative; background: color-mix(in srgb, var(--b-on) 10%, transparent); border-left-color: var(--b-on); }
.sched .s-row.run .t { color: var(--b-on); }
.sched .s-row .rp { position: absolute; left: 0; bottom: 0; height: .4cqh; width: 0; background: var(--b-on); }
@container (aspect-ratio < 1) {
  .nowbar { grid-template-columns: auto minmax(0,1fr); font-size: min(4.2cqw, 2.4cqh); padding: 1cqh 3.6cqw; }
  .nowbar .t { grid-column: 1 / -1; }
  .nowlist { grid-template-columns: minmax(0,1fr); gap: .8cqh; }
  .nowlist .nowmore { font-size: min(2.6cqw, 1.5cqh); }
  .nowlist .nowbar:nth-child(n+3) { display: none; }
  .nowlist .nowmore.wide { display: none; }
  .nowlist .nowmore.tall { display: block; }
  .LC .c-rail .nowlist { grid-area: now; }
  .LC .c-rail .nowbar { font-size: min(4.2cqw, 2.4cqh); padding: 1cqh 3.6cqw; }
}

/* ---------- shared: full schedule page ---------- */
.sched { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; position: relative; }
.sched::-webkit-scrollbar { display: none; }
.LA .sched { padding: 0 2cqh; }
.sched .s-day { position: sticky; top: 0; z-index: 1; background: var(--b-bg); padding: 1.8cqh 0 .9cqh; display: flex; align-items: center; gap: 1em; font-size: 2.8cqh; letter-spacing: .1em; }
.sched .s-day::before { content: ''; width: 1.6em; height: .45em; background: linear-gradient(90deg, var(--tc2), var(--tc)); transform: skewX(var(--slant)); }
.sched .s-day small { font: 600 .55em var(--ui); color: var(--b-muted); letter-spacing: .2em; }
.sched .s-row { display: grid; grid-template-columns: 5.6em minmax(0,1fr) auto auto; gap: 1.6cqw; align-items: center; padding: 1.3cqh 1.4cqw; margin: .4cqh 0; border-left: .5cqw solid var(--c, var(--b-line)); font-size: 2.6cqh; }
.sched .s-row .at { color: var(--b-muted); }
.sched .s-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched .s-row .bchip { font-size: .52em; color: var(--b-muted); }
.sched .s-row .t { font: 600 .78em var(--ui); letter-spacing: .08em; color: var(--b-muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; min-width: 7.5em; }
.sched .s-row.past { opacity: .32; }
.sched .s-row.next { background: var(--tc); color: var(--on-tc); border-left-color: var(--b-fg); border-radius: 0 1cqh 0 1cqh; }
.sched .s-row.next .at, .sched .s-row.next .t, .sched .s-row.next .bchip { color: var(--on-tc); }
.sched .s-row.soon .t { color: var(--b-fg); }
.LA .sched .s-row { transform: skewX(var(--slant)); }
.LA .sched .s-row > * { transform: skewX(calc(var(--slant) * -1)); }
.LB .sched .s-row { border-left: 0; border-bottom: 1px solid var(--b-dim); margin: 0; }
.LB .sched .s-row.next { border-radius: 1cqh; }
.LB .sched .s-day::before { display: none; }
.LB .sched .s-day { justify-content: center; color: var(--tc); }

/* ---------- states ---------- */
.b-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; text-align: center; padding: 6cqw; }
.b-empty .brand-slot { width: 40cqw; height: 14cqh; justify-content: center; align-items: center; }
.b-empty h2 { margin: 0; font-weight: normal; font-size: 6cqh; letter-spacing: .06em; }
.b-empty p { margin: 0; font: 600 2cqh var(--ui); letter-spacing: .2em; color: var(--b-muted); }
.board.final .pulse { animation: pulse 1s steps(1) infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .board.final .pulse { animation: none; } }


/* ---------- Countdown additions ---------- */
html, body { height: 100%; }
body.viewer { margin: 0; background: #000; color: var(--text); font: 14px/1.45 var(--ui); overflow: hidden; }
.viewer .screen { position: fixed; inset: 0; }
/* Team name instead of a logo, when the team hasn't uploaded one. */
.brand-slot .tname { align-self: center; font-family: var(--disp), var(--ui); font-size: calc(4.2cqh * var(--tn, 1)); line-height: 1.05; letter-spacing: .05em; overflow: hidden; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.b-empty .brand-slot .tname { font-size: 6cqh; }
/* Timing trial boards carry a TRIAL mark (from the licence server's plan). */
.trialmark { position: absolute; z-index: 5; right: 2cqw; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: right center; pointer-events: none;
  font: 700 1.8cqh var(--ui); letter-spacing: .5em; color: color-mix(in srgb, var(--b-fg) 30%, transparent); white-space: nowrap; }
/* Shown only when the board hasn't heard from the server for a while; it keeps counting on the last schedule. */
.stale { position: fixed; z-index: 54; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: rgba(20,22,30,.9);
  border: 1px solid #5a4520; color: var(--warn); padding: 5px 12px; border-radius: 99px; font: 600 12px var(--ui); letter-spacing: .04em; white-space: nowrap; pointer-events: none; }
.gate .rvgate { color: #fff; height: 34px; align-self: center; max-width: 100%; }
.gate .rvgate svg { height: 100%; width: auto; }
.boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font: 600 13px var(--ui); letter-spacing: .2em; }

/* offline board (Hosted): load screen and where the schedule came from */
.loadbox { position: fixed; inset: 0; z-index: 53; display: flex; align-items: center; justify-content: center; background: #000; padding: 20px; }
.loadbox .in { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.loadbox .tlogo { max-height: 70px; max-width: 70%; }
.loadbox h2 { margin: 6px 0 0; font: 600 18px var(--ui-head); letter-spacing: .04em; }
.loadbox p { margin: 0; color: var(--muted); font-size: 13px; }
.loadbox .btn { font-size: 15px; padding: 10px 18px; }
.srcpill { position: fixed; z-index: 54; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: rgba(20,22,30,.9); border: 1px solid #333a4a; color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12px; white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.vmenu .srcline { margin: 0; font-size: 12.5px; color: var(--muted); }
.vmenu .msg.ok { color: #34D27B; }

/* Sponsor band (Hosted): under the board, which keeps the rest of the screen. Strip = every logo in a row; rotate = one at a time. */
.sp-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sp-main { position: relative; flex: 1; min-height: 0; container-type: size; }
.sp-band { flex: none; height: 10cqh; display: flex; align-items: center; justify-content: space-evenly; gap: 3cqw; padding: 1.4cqh 4cqw;
  border-top: 1px solid var(--b-dim); background: var(--b-tint); overflow: hidden; }
.sp-band.sz-s { height: 7cqh; padding-block: 1cqh; } .sp-band.sz-l { height: 14cqh; padding-block: 1.8cqh; }
/* Every logo has its own equal box and always sits in the middle of it. --sc (0.5-2) is the team's size for that
   logo: 1 fills two-thirds of the box height; past the box edge the logo is cropped, the box never grows. */
.sp-band .sp { height: 100%; min-width: 0; flex: 1 1 0; max-width: 30cqw; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-band .sp img { display: block; flex: none; height: calc(66.6% * var(--sc, 1)); width: auto; max-width: calc(100% * var(--sc, 1)); object-fit: contain; }
.sp-band.plate .sp img { background: #fff; border-radius: .8cqh; padding: .7cqh 1.2cqw; box-sizing: border-box; }
/* A band fixed to dark or light keeps its own colours whatever the board's theme. */
.sp-band.th-dark { background: #12151D; border-top-color: #2A3142; }
.sp-band.th-light { background: #F3F4F6; border-top-color: #D3D8DD; }
.sp-band.rot { position: relative; }
.sp-band.rot .sp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: calc(100% - 2.8cqh); width: 60cqw; max-width: none; opacity: 0; transition: opacity .6s; }
.sp-band.rot .sp.on { opacity: 1; }
/* Rolling carousel: the logos twice over in one track, sliding left by half its width, forever. */
.sp-band.scroll { justify-content: flex-start; padding-inline: 0; }
.sp-band.scroll .sp-track { display: flex; height: 100%; width: max-content; animation: sp-roll var(--spdur, 30s) linear var(--spdelay, 0s) infinite; }
.sp-band.scroll .sp { flex: none; width: 22cqw; max-width: none; padding-inline: 2.5cqw; }
@keyframes sp-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sp-band.scroll .sp-track { animation: none; } }
/* Portrait: the band is taller so logos can be bigger. Three or more logos in a strip wrap onto two rows
   (or three across for five or more) instead of shrinking into slivers. */
@container (aspect-ratio < 1) {
  .sp-band { height: 12cqh; padding: 1.2cqh 4cqw; }
  .sp-band.sz-s { height: 9cqh; padding-block: 1cqh; } .sp-band.sz-l { height: 16cqh; padding-block: 1.4cqh; }
  .sp-band.multi { --c: 2; --r: var(--r2); display: flex; flex-wrap: wrap; justify-content: center; align-content: center; --cg: 5cqw; --rg: 1cqh; gap: var(--rg) var(--cg); height: calc(5cqh + 8cqh * var(--r)); }
  .sp-band.multi.sz-s { height: calc(4cqh + 6cqh * var(--r)); } .sp-band.multi.sz-l { height: calc(6cqh + 11cqh * var(--r)); }
  .sp-band.multi .sp { flex: 0 0 calc((100% - (var(--c) - 1) * var(--cg)) / var(--c)); max-width: none; height: calc((100% - (var(--r) - 1) * var(--rg)) / var(--r)); }
  .sp-band.rot .sp { width: 84cqw; }
  .sp-band.scroll .sp { width: 50cqw; padding-inline: 4cqw; }
}
@container (aspect-ratio < 1) and (aspect-ratio > 0.62) {
  .sp-band.multi { --c: var(--c3); --r: var(--r3); }
}

/* ---------- PORTRAIT (phones, tablets on end, portrait TVs) ----------
   Not the landscape layouts squeezed: each one is restacked for a tall screen. Sizes follow the screen's width
   (the short side), the logo and clock get their own header row, the event name gets its own line and may wrap,
   and the "then" panel grows into a second big countdown so the height is used. */
@container (aspect-ratio < 1) {
  /* A: Pit Wall */
  .LA { grid-template-rows: auto minmax(0,1fr) auto auto; gap: 1.8cqh; padding: 2.6cqh 5cqw 2cqh; }
  .LA.hasnow { grid-template-rows: auto auto minmax(0,1fr) auto auto; }
  .LA .a-head { height: min(15cqw, 11cqh); gap: 4cqw; }
  .LA .a-head .brand-slot { width: auto; flex: 1 1 0; min-width: 0; }
  .LA .a-hr { flex: none; flex-direction: column; align-items: flex-end; gap: .6cqh; }
  .LA .a-hr .a-clockbox { order: -1; padding: .4cqh 3cqw .3cqh; }
  .LA .a-clockbox small { font-size: min(2.4cqw, 1.3cqh); }
  .LA .a-clock { font-size: min(8.6cqw, 5cqh); }
  .LA .a-day { font-size: min(2.8cqw, 1.6cqh); }
  .LA .a-day b { display: inline; margin-right: .4em; }
  .LA .a-main { padding: 2.4cqh 6cqw; border-left-width: 1.6cqw; }
  .LA .a-tag { font-size: min(3.6cqw, 2.2cqh); }
  .LA .a-tagrow .bchip { font-size: min(2.8cqw, 1.6cqh); }
  .LA .a-title, .LA.up .a-title { font-size: min(9cqw, 6cqh); }
  .LA .a-meta { font-size: min(2.8cqw, 1.6cqh); }
  .LA .a-timer, .LA.up .a-timer { font-size: min(24cqw, 14cqh); }
  .LA .a-then { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "l n at" "t t t"; align-items: baseline; column-gap: 3cqw; row-gap: .6cqh; padding: 1.4cqh 5cqw; }
  .LA .a-then .l { grid-area: l; font-size: min(3.2cqw, 1.9cqh); }
  .LA .a-then .n { grid-area: n; font-size: min(4.4cqw, 2.6cqh); }
  .LA .a-then .at { grid-area: at; display: block; font-size: min(2.8cqw, 1.6cqh); }
  .LA .a-then .t { grid-area: t; font-size: min(15cqw, 8cqh); line-height: 1; }
  .LA .a-up { grid-template-columns: minmax(0,1fr); gap: 1cqh; }
  .LA .a-up .a-card:nth-child(n+5) { display: none; }
  .LA .a-card { display: grid; grid-template-columns: 3.6em minmax(0,1fr) auto; align-items: center; gap: 3cqw; padding: 1.1cqh 4cqw; border-top-width: 1px; border-left: 1.2cqw solid var(--c, var(--b-line)); }
  .LA .a-card .at { font-size: min(3cqw, 1.7cqh); }
  .LA .a-card .n { margin: 0; font-size: min(4.2cqw, 2.4cqh); }
  .LA .a-card .t { font-size: min(4.6cqw, 2.6cqh); }
  .LA .a-card > .n:only-child { grid-column: 1 / -1; }
  .LA .a-foot { flex-wrap: wrap; row-gap: .8cqh; column-gap: 4cqw; }
  .LA .a-foot .ev { flex: 1 1 100%; font-size: min(2.8cqw, 1.6cqh); white-space: normal; line-height: 1.35; }
  .LA .a-foot .pw { margin-left: auto; font-size: min(2.4cqw, 1.3cqh); }
  .LA .sched { padding: 0 1cqw; }

  /* B: Stack */
  .LB { grid-template-rows: auto minmax(0,1fr) auto auto; padding: 2.6cqh 5cqw 2cqh; gap: 1.8cqh; }
  .LB.hasnow { grid-template-rows: auto auto minmax(0,1fr) auto auto; }
  .LB .b-head { grid-template-columns: minmax(0,1fr); grid-template-rows: min(15cqw, 11cqh) auto; justify-items: center; row-gap: 1.2cqh; gap: 1.2cqh; }
  .LB .b-head .brand-slot { grid-column: 1; grid-row: 1; width: 70cqw; height: 100%; justify-content: center !important; }
  .LB .b-head .ev { grid-row: 2; text-align: center; font-size: min(2.8cqw, 1.6cqh); }
  .LB .b-head .ev.r { grid-row: 3; }
  .LB .b-head .ev:empty { display: none; }
  .LB .b-main { padding: 2cqh 4cqw; }
  .LB .b-kick { font-size: min(3.2cqw, 1.9cqh); }
  .LB .b-chips { font-size: min(2.8cqw, 1.6cqh); }
  .LB .b-title, .LB.up .b-title { font-size: min(9cqw, 6cqh); }
  .LB .b-timer, .LB.up .b-timer { font-size: min(24cqw, 14cqh); }
  .LB .b-bar { width: 100%; height: max(.6cqh, 4px); }
  .LB .b-at { font-size: min(2.8cqw, 1.6cqh); }
  .LB .b-then { flex-direction: column; align-items: center; gap: .4cqh; font-size: min(4.4cqw, 2.6cqh); white-space: normal; text-align: center; }
  .LB .b-then > span:first-child { font: 600 min(3cqw, 1.7cqh) var(--ui); letter-spacing: .24em; }
  .LB .b-then b { max-width: 100%; white-space: nowrap; }
  .LB .b-then .at { display: none; }
  .LB .b-then .t { font-size: min(15cqw, 8cqh); line-height: 1; margin-top: .6cqh; }
  .LB .b-up .b-row:nth-child(n+5) { display: none; }
  .LB .b-row { grid-template-columns: 3.4em minmax(0,1fr) auto; gap: 3cqw; font-size: min(4.2cqw, 2.4cqh); padding: 1.1cqh 1cqw; }
  .LB .b-row > span:nth-child(3) { display: none; }
  .LB .b-foot { flex-wrap: wrap; row-gap: .8cqh; font-size: min(3cqw, 1.7cqh); }
  .LB .b-foot .clk { font-size: min(9cqw, 5cqh); }
  .LB .b-foot .pw { flex: 1 1 100%; justify-content: flex-end; font-size: min(2.4cqw, 1.3cqh); }

  /* C: Split becomes header, event line, big card, then the list */
  .LC { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto auto minmax(0,1fr) auto auto; grid-template-areas: "brand clock" "day day" "ev ev" "main main" "list list" "pw pw"; padding: 2.6cqh 5cqw 2cqh; row-gap: 1.6cqh; column-gap: 4cqw; }
  .LC.hasnow { grid-template-rows: auto auto auto auto minmax(0,1fr) auto auto; grid-template-areas: "brand clock" "day day" "ev ev" "now now" "main main" "list list" "pw pw"; }
  .LC .c-rail { display: contents; }
  .LC .c-rail .brand-slot { grid-area: brand; height: min(15cqw, 11cqh); }
  .LC .c-clock { grid-area: clock; font-size: min(10cqw, 6cqh); align-self: center; }
  .LC .c-day { grid-area: day; margin: 0; font-size: min(2.8cqw, 1.6cqh); justify-self: end; }
  .LC .c-ev { grid-area: ev; font-size: min(2.8cqw, 1.6cqh); min-width: 0; }
  .LC .c-main { grid-area: main; padding: 2.4cqh 5cqw; border-radius: 1.6cqh; }
  .LC .c-kick { font-size: min(2.8cqw, 1.6cqh); }
  .LC .c-kick .k { font-size: min(4.4cqw, 2.6cqh); }
  .LC .c-title, .LC.hasnow .c-title { font-size: min(9cqw, 6cqh); margin-top: 1.2cqh; }
  .LC .c-timer, .LC.hasnow .c-timer { font-size: min(24cqw, 14cqh); margin-top: 1.2cqh; }
  .LC .c-at { font-size: min(2.8cqw, 1.6cqh); margin-top: 1.2cqh; }
  .LC .c-list { grid-area: list; flex: none; }
  .LC .c-list h4 { font-size: min(3cqw, 1.7cqh); }
  .LC .c-it { display: grid; grid-template-columns: 3.4em minmax(0,1fr) auto; align-items: baseline; gap: 3cqw; padding: .9cqh 0 .9cqh 4cqw; font-size: min(4.2cqw, 2.4cqh); }
  .LC .c-it:nth-of-type(n+5) { display: none; }
  .LC .c-it::before { top: 50%; transform: translateY(-50%); left: -.7cqh; }
  .LC .c-it .at { font-size: .72em; }
  .LC .c-it .n { font-size: 1em; }
  .LC .c-it .t { font-size: 1em; }
  .LC .c-it > .n:only-child { grid-column: 1 / -1; }
  .LC .c-rail > .pw { grid-area: pw; justify-self: end; font-size: min(2.4cqw, 1.3cqh); }
  .LC .c-main.sched { padding: 0; border-radius: 0; }
  .LC:has(.c-main.sched) .c-list, .LC:has(.c-main.sched) .nowlist { display: none; }

  /* Full schedule page */
  .sched .s-day { font-size: min(4.6cqw, 2.6cqh); }
  .sched .s-row { grid-template-columns: 3.4em minmax(0,1fr) auto; gap: 3cqw; font-size: min(4.2cqw, 2.4cqh); padding: 1.2cqh 3cqw; border-left-width: 1.2cqw; }
  .sched .s-row > span:nth-child(3) { display: none; }
  .sched .s-row .t { min-width: 0; }

  /* Mechanic */
  .LM { grid-template-rows: min(13cqw, 8cqh) minmax(0,.72fr) minmax(0,1fr) minmax(0,1fr); padding: 2.2cqh 4cqw; }
  .LM .m-head .brand-slot { width: auto; flex: 1 1 0; min-width: 0; }
  .LM .m-hr { flex: 0 1 auto; max-width: 52%; }
  .LM .m-hr .pw { display: none; }
  .LM .m-hr .ev { font-size: min(2.6cqw, 1.5cqh); white-space: normal; text-align: right; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .LM .m-kick { font-size: min(4.6cqw, 2.6cqh); }
  .LM .m-row.clock .m-kick { font-size: min(4cqw, 2.2cqh); }
}

/* Tall-digit fonts (Orbitron, Saira) draw past a 1.0 line box: give every big timer a little headroom so it never
   touches the line above or below. */
.LA .a-timer, .LB .b-timer, .LC .c-timer { line-height: 1.12; }
.LA .a-then .t, .LB .b-then .t { line-height: 1.12; }
