/* Sala de control — tokens shared with Sinté (sinte/public/styles.css) and Cliply broadcast OSD */
:root {
  --bg: #050706; --room: #0A0F0C; --room-hi: #101816;
  --panel: #0A100D; --panel-2: #0A120F; --panel-3: #0C1613; --sunk: #070C0A;
  --line: #17261F; --line-2: #22382E; --edge: #1A2A22;
  --phos: #3BF08C; --phos-dim: #2E915F; --phos-soft: #1B4E34; --phos-hi: #9BFFCB;
  --amber: #FFB020; --amber-dim: #9A6A12;
  --tally: #FF4438; --cyan: #4FE8FF; --pink: #ffb8d1;
  --bone: #D9D3BE; --mute: #668778;
  --on-phos: #04120A; --on-amber: #160C00;
  --scan: rgba(0, 0, 0, .34);
  --inner: inset 0 0 70px rgba(59, 240, 140, .05);
  --glow-p: 0 0 14px rgba(59, 240, 140, .42);
  --glow-a: 0 0 14px rgba(255, 176, 32, .38);
  --glow-t: 0 0 14px rgba(255, 68, 56, .5);
  --noise-op: .045; --noise-blend: screen;
  --vig: rgba(0, 0, 0, .62);
  --sel-bg: #1F1707;
  --turf: #06110B; --turf-2: #081510; --turf-line: rgba(59, 240, 140, .55);
  --shadow: 0 20px 50px -34px #000;
  --r: 10px;
  --cliply-pink: var(--pink);
  --led-off: #10241a; --led-off-p: #26161d;
  --f-led: 'VT323', ui-monospace, monospace;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-slate: 'Anton', Impact, 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #D9D6CA; --room: #E6E4D8; --room-hi: #F2F0E6;
    --panel: #F4F2EA; --panel-2: #EBE8DD; --panel-3: #E3E0D3; --sunk: #F0EDE3;
    --line: #D0CCBC; --line-2: #B4AF9E; --edge: #A9A492;
    --phos: #15503A; --phos-dim: #516157; --phos-soft: #BCC8BE; --phos-hi: #0D3A29;
    --amber: #8F5307; --amber-dim: #B08F55; --tally: #A32B1D; --cyan: #155C6B; --pink: #D4557F;
    --bone: #17241E; --mute: #546058; --on-phos: #F3F0E5; --on-amber: #F3F0E5;
    --scan: rgba(23, 36, 30, .07); --inner: inset 0 0 60px rgba(11, 115, 67, .05);
    --glow-p: none; --glow-a: none; --glow-t: none; --noise-op: .05; --noise-blend: multiply;
    --vig: rgba(60, 52, 30, .22); --sel-bg: #F3E3C4; --led-off: #DCE3D8; --led-off-p: #F0DDE3;
    --turf: #1E5A3E; --turf-2: #22644A; --turf-line: rgba(243, 240, 229, .8);
    --shadow: 0 18px 44px -34px rgba(30, 40, 30, .55);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #D9D6CA; --room: #E6E4D8; --room-hi: #F2F0E6;
  --panel: #F4F2EA; --panel-2: #EBE8DD; --panel-3: #E3E0D3; --sunk: #F0EDE3;
  --line: #D0CCBC; --line-2: #B4AF9E; --edge: #A9A492;
  --phos: #15503A; --phos-dim: #516157; --phos-soft: #BCC8BE; --phos-hi: #0D3A29;
  --amber: #8F5307; --amber-dim: #B08F55; --tally: #A32B1D; --cyan: #155C6B; --pink: #D4557F;
  --bone: #17241E; --mute: #546058; --on-phos: #F3F0E5; --on-amber: #F3F0E5;
  --scan: rgba(23, 36, 30, .07); --inner: inset 0 0 60px rgba(11, 115, 67, .05);
  --glow-p: none; --glow-a: none; --glow-t: none; --noise-op: .05; --noise-blend: multiply;
  --vig: rgba(60, 52, 30, .22); --sel-bg: #F3E3C4; --led-off: #DCE3D8; --led-off-p: #F0DDE3;
  --turf: #1E5A3E; --turf-2: #22644A; --turf-line: rgba(243, 240, 229, .8);
  --shadow: 0 18px 44px -34px rgba(30, 40, 30, .55);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html { height: 100%; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  height: 100dvh; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr;
  background: radial-gradient(120% 80% at 50% 0%, var(--room-hi), var(--room) 45%, var(--bg));
  color: var(--bone);
  font: 500 15px/1.4 var(--f-mono);
  -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* CRT: scanlines + grain + vignette, never interactive */
html::after, body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; }
body::before { background: repeating-linear-gradient(to bottom, var(--scan) 0 1px, transparent 1px 3px); opacity: .35; }
body::after { background: radial-gradient(125% 95% at 50% 42%, transparent 60%, var(--vig) 100%); opacity: .7; }
html::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--noise-op); mix-blend-mode: var(--noise-blend);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
input, select, textarea { font: inherit; user-select: text; -webkit-user-select: text; }
code, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.kicker { font: 600 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.count-led { font: 400 34px/.8 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); }
.count-led small { font-size: .55em; color: var(--mute); text-shadow: none; }

/* ---------- scoreboard ---------- */
.scoreboard {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: calc(10px + env(safe-area-inset-top)) calc(clamp(14px, 2.4vw, 28px) + env(safe-area-inset-right)) 18px calc(clamp(14px, 2.4vw, 28px) + env(safe-area-inset-left));
  background: linear-gradient(var(--panel-3), var(--panel));
  border-bottom: 1px solid var(--line-2);
  box-shadow: var(--inner);
}
.smpte { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: flex; }
.smpte i { flex: 1; }
.smpte i:nth-child(1) { background: #C0C0C0; } .smpte i:nth-child(2) { background: #C0C000; }
.smpte i:nth-child(3) { background: #00C0C0; } .smpte i:nth-child(4) { background: #00C000; }
.smpte i:nth-child(5) { background: #C000C0; } .smpte i:nth-child(6) { background: #C00000; }
.smpte i:nth-child(7) { background: #0000C0; }
/* live LED board mark (logo.js) */
.bm-slot { display: block; flex: none; cursor: pointer; }
.bm-slot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bm-panel { fill: var(--sunk); stroke: var(--phos-dim); stroke-width: 6; }
.bm-rule { stroke: var(--phos-soft); stroke-width: 3; stroke-dasharray: 2 6; }
.bm-handle { fill: var(--phos-dim); }
.bm-handle2 { fill: var(--phos-soft); }
.bm-dots circle { fill: var(--led-off); transition: fill .05s linear; }
.bm-dots circle.o { fill: var(--led-off-p); }
.bm-dots circle.on.i { fill: var(--phos); }
.bm-dots circle.on.o { fill: var(--cliply-pink); }
.bm-svg { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--phos) 40%, transparent)); }
.running .sb-brand .bm-svg { animation: bench-pulse 2.4s ease-in-out infinite; }
@keyframes bench-pulse { 50% { filter: drop-shadow(0 0 11px color-mix(in srgb, var(--phos) 70%, transparent)); } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .bm-svg { filter: none; } }
:root[data-theme="light"] .bm-svg { filter: none; }
.brand-hero { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.brand-hero .bm-hero { width: 124px; height: 104px; }
.brand-hero b { display: block; font: 400 40px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.brand-hero span { font-size: 12.5px; color: var(--mute); }
.net::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.net.ok::before { background: var(--phos); box-shadow: var(--glow-p); }
.net.off { color: var(--amber); }
.sb-score { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 22px); min-width: 0; }
.sb-team { flex: 1; min-width: 0; font: 600 clamp(11px, 1.4vw, 14px)/1.25 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bone); text-align: right; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; min-width: 8ch; }
.sb-team--away { text-align: left; color: var(--cyan); }
.sb-num {
  min-width: 1.4ch; padding: 2px 10px 0; text-align: center;
  font: 400 clamp(56px, 7vw, 88px)/.78 var(--f-led); color: var(--amber); text-shadow: var(--glow-a);
  background: var(--sunk); border: 1px solid var(--line); border-radius: 6px;
}
.sb-num[data-team="away"] { color: var(--cyan); text-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 40%, transparent); }
.sb-num.bump { animation: bump .6s cubic-bezier(.2, .9, .3, 1.4); }
.sb-sep { font: 400 40px/.8 var(--f-led); color: var(--mute); }
.sb-clock {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; row-gap: 2px;
  min-width: 240px; padding: 8px 16px 10px;
  background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--inner);
}
.sb-clock::before, .sb-clock::after { content: ''; position: absolute; width: 10px; height: 10px; border-color: var(--phos-dim); border-style: solid; }
.sb-clock::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.sb-clock::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.sb-period { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font: 600 10.5px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.sb-time { font: 400 clamp(62px, 7.6vw, 96px)/.78 var(--f-led); font-variant-numeric: tabular-nums; color: var(--phos-dim); }
.is-running .sb-time { color: var(--phos); text-shadow: var(--glow-p); }
.sb-remain { font: 500 11px var(--f-mono); letter-spacing: .06em; color: var(--mute); justify-self: end; text-transform: uppercase; }
.sb-remain.over { color: var(--tally); }
.sb-progress { grid-column: 1 / -1; height: 3px; margin-top: 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.sb-progress i { display: block; height: 100%; width: var(--w, 0%); background: var(--phos); box-shadow: var(--glow-p); transition: width .25s linear; }
.sb-ctrl { display: flex; gap: 8px; align-items: center; }
.adj { display: flex; flex-direction: column; gap: 4px; }
.adj .btn-ghost { height: 36px; font-size: 12px; padding: 0 10px; }
.btn-play {
  display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 26px 0 20px;
  background: var(--phos); color: var(--on-phos); border-radius: 8px;
  font: 700 17px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: var(--glow-p), 0 4px 0 var(--phos-soft); transition: transform .08s, box-shadow .08s;
}
.btn-play svg { width: 24px; height: 24px; }
.btn-play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--phos-soft); }
.btn-play.is-running { background: var(--amber); color: var(--on-amber); box-shadow: var(--glow-a), 0 4px 0 var(--amber-dim); }
.btn-ghost { height: 76px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 8px; font: 600 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); background: var(--panel-2); }
.btn-ghost:active { background: var(--panel-3); }
.btn-ghost:disabled { opacity: .35; }


/* ---------- tabs ---------- */
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; background: var(--panel); border-bottom: 1px solid var(--line-2); padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.tabs button {
  flex: 1 0 auto; min-height: 56px; padding: 0 18px; position: relative;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 13px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
  border-right: 1px solid var(--line);
}
.tabs button:last-child { border-right: 0; }
.tabs button[aria-current="page"] { color: var(--phos); background: var(--panel-3); text-shadow: var(--glow-p); }
.tabs button[aria-current="page"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--phos); box-shadow: var(--glow-p); }
.count { font: 400 17px/1 var(--f-led); padding: 1px 6px 0; border-radius: 3px; background: var(--sunk); border: 1px solid var(--line-2); color: var(--amber); letter-spacing: 0; text-shadow: none; }

#view {
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: clamp(12px, 2vw, 22px) calc(clamp(12px, 2vw, 22px) + env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) calc(clamp(12px, 2vw, 22px) + env(safe-area-inset-left));
}

.zone-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.zone-h h2 { font: 400 26px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; color: var(--bone); }
.zone-h > span { font: 400 26px/1 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); }
.section-h { font: 600 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.empty { color: var(--mute); padding: 8px 2px; font-size: 13px; }
.empty.big { font-size: 18px; padding: 40px 0; text-align: center; }
.link { font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); min-height: 44px; }

/* ---------- rotations ---------- */
#view.fit { overflow: hidden; display: flex; flex-direction: column; padding-bottom: calc(clamp(10px, 1.6vw, 16px) + env(safe-area-inset-bottom)); }
#view.fit > section { flex: 1; min-height: 0; }
.rot {
  display: grid; gap: 10px;
  grid-template-columns: var(--pitch-w, minmax(0, 2.1fr)) minmax(250px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "hint hint" "pitch bench" "pitch feed";
}
.rot.is-portrait { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "hint" "pitch" "bench"; }
.rot.is-portrait .subs-feed { display: none; }
.rot.is-portrait.side-bench { grid-template-columns: var(--pitch-w, minmax(0, 2fr)) minmax(0, 1fr); grid-template-areas: "hint hint" "pitch bench"; grid-template-rows: auto minmax(0, 1fr); }
.is-portrait.side-bench .bench .grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); overflow-x: hidden; overflow-y: auto; }
.hint {
  grid-area: hint; display: flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 4px 6px 4px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r);
  font: 500 13.5px/1.3 var(--f-mono); color: var(--bone);
}
.hint__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mute); }
.hint > span:not(.hint__dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint button { flex: none; }
.hint button { height: 42px; padding: 0 14px; border: 1px solid currentColor; border-radius: 6px; font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.has-sel .hint { background: var(--sel-bg); border-color: var(--amber); color: var(--amber); box-shadow: var(--glow-a); }
.has-sel .hint__dot { background: var(--amber); animation: rec 1s steps(1) infinite; }

.pitch {
  grid-area: pitch; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  padding: 10px 12px 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--inner), var(--shadow);
}
.pitch-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.turf-wrap { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.pitch-h > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.forms { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pitch-h > div:first-child { flex: none; }
.pitch-h { flex-wrap: nowrap; }
.form-chip {
  flex: none; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sunk);
  font: 400 22px/1 var(--f-led); color: var(--mute); letter-spacing: .04em;
}
.form-chip[aria-pressed="true"] { color: var(--on-phos); background: var(--phos); border-color: var(--phos); box-shadow: var(--glow-p); }

.turf {
  /* up to 15% off true scale either way when the box has room: invisible on the lines, no dead turf bands */
  position: relative; width: min(100cqw, 100cqh * var(--ratio) * 1.15);
  height: min(100cqh, min(100cqw, 100cqh * var(--ratio) * 1.15) / (var(--ratio) * .85));
  border-radius: 8px; overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, .35) 100%),
    repeating-linear-gradient(90deg, var(--turf) 0 6.25%, var(--turf-2) 6.25% 12.5%);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 50px rgba(59, 240, 140, .06);
}
.is-portrait .turf { background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, .35) 100%), repeating-linear-gradient(0deg, var(--turf) 0 6.25%, var(--turf-2) 6.25% 12.5%); }
.turf::before, .turf::after { content: ''; position: absolute; width: 18px; height: 18px; border: 0 solid var(--amber); z-index: 3; pointer-events: none; }
.turf::before { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.turf::after { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
.field-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--turf-line); stroke-width: 1.6px; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(59, 240, 140, .35)); }
.field-lines * { vector-effect: non-scaling-stroke; }
.field-lines .fill { fill: var(--turf-line); }
.field-lines .thin { opacity: .55; }
.turf-dir { position: absolute; right: 10px; bottom: 8px; z-index: 2; font: 600 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--turf-line); opacity: .8; }
.is-portrait .turf-dir { top: 8px; bottom: auto; }

.token, .spot {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  width: clamp(76px, 12.5cqi, 116px);
}
.token {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num role" "num name" "time time";
  align-items: center; column-gap: 7px; padding: 6px 8px 9px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--bone);
  border: 1px solid var(--phos-soft); border-radius: 7px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px); overflow: hidden; text-align: left;
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
}
.token__num { grid-area: num; font: 400 clamp(34px, 5.4cqi, 48px)/.72 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); min-width: 1.1ch; text-align: center; }
.token__role { grid-area: role; font: 600 8.5px/1 var(--f-mono); letter-spacing: .18em; color: var(--mute); }
.token__name { grid-area: name; font: 600 clamp(9.5px, 1.5cqi, 12px)/1.1 var(--f-mono); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.token__time { grid-area: time; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 3px; }
.token__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.token__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--phos); box-shadow: var(--glow-p); transition: width .3s; }
.token:active { transform: translate(-50%, -50%) scale(.96); }
.token.is-sel { z-index: 4; border-color: var(--amber); background: var(--sel-bg); box-shadow: var(--glow-a), 0 0 0 3px color-mix(in srgb, var(--amber) 35%, transparent); transform: translate(-50%, -50%) scale(1.06); }
.token.is-sel .token__num { color: var(--amber); text-shadow: var(--glow-a); }
.running .token .token__role::after { content: ' ●'; color: var(--tally); animation: rec 1.2s steps(1) infinite; }
.spot {
  aspect-ratio: 1.5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px dashed var(--turf-line); border-radius: 7px; color: var(--turf-line); background: rgba(0, 0, 0, .18);
}
.spot b { font: 400 30px/.8 var(--f-led); }
.spot small { font: 600 9px var(--f-mono); letter-spacing: .2em; }
.has-sel .spot { border-style: solid; border-color: var(--amber); color: var(--amber); animation: breathe 1.1s ease-in-out infinite; }
.sel-bench .token:not(.is-sel), .sel-field .token:not(.is-sel) { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.sel-field .tile--bench { border-color: var(--amber); }

.bench { grid-area: bench; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.bench .zone-h { margin-bottom: 8px; }
.bench .grid { flex: 1; min-height: 0; overflow-y: auto; align-content: start; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.is-portrait .bench .grid { grid-auto-flow: column; grid-auto-columns: 158px; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; }
.rot .subs-feed, .stats .subs-feed { grid-area: feed; }
.grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid--extra { margin-top: 12px; }

.tile {
  position: relative; overflow: hidden; min-height: 88px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num name" "num time" "num rest";
  column-gap: 10px; align-items: center; align-content: center;
  padding: 8px 12px 12px 8px; text-align: left;
  background: var(--panel); color: var(--bone);
  border: 1px solid var(--line-2); border-radius: 8px;
  transition: transform .12s ease, border-color .12s, background .15s;
}
.tile__num { grid-area: num; min-width: 1.3ch; text-align: center; font: 400 50px/.75 var(--f-led); color: var(--phos-dim); }
.tile__name { grid-area: name; font: 600 12px/1.15 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; padding-right: 28px; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.tile__pos { position: absolute; top: 7px; right: 8px; font: 600 9px var(--f-mono); letter-spacing: .16em; color: var(--mute); }
.tile__time { grid-area: time; font: 400 24px/1 var(--f-led); color: var(--amber); }
.tile__rest { grid-area: rest; font: 500 9.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tile__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.tile__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--phos-dim); transition: width .3s; }
.tile--bench { background: var(--sunk); border-style: dashed; }
.tile:active { transform: scale(.96); }
.tile.is-sel { background: var(--sel-bg); border: 1px solid var(--amber); box-shadow: var(--glow-a); }
.tile.is-sel .tile__num { color: var(--amber); text-shadow: var(--glow-a); }

.subs-feed { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 7px 8px 7px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); }
.feed-h { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; padding-right: 14px; border-right: 1px solid var(--line); font: 600 9.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.feed-h b { font: 400 26px/.8 var(--f-led); letter-spacing: 0; color: var(--phos); font-weight: 400; }
.feed-empty { flex: 1; margin: 0; display: flex; align-items: center; min-height: 46px; padding: 0 14px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 12.5px; color: var(--mute); }
.feed { flex: 1; min-width: 0; list-style: none; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feed li {
  position: relative; flex: 0 0 auto; min-width: 210px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 2px; padding: 7px 50px 7px 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--phos-dim); border-radius: 8px; font-size: 13px;
}
.feed li.is-away { border-left-color: var(--cyan); }
.feed li.k-formation, .feed li.k-pos { border-left-color: var(--amber); }
.feed time { font: 400 18px/1 var(--f-led); color: var(--mute); }
.feed strong { font: 400 20px/1 var(--f-slate); text-transform: uppercase; letter-spacing: .04em; }
.in { color: var(--phos); font-weight: 600; }
.out { color: var(--tally); font-weight: 600; }
.x { width: 38px; height: 38px; flex: none; border-radius: 6px; border: 1px solid var(--line-2); font: 400 20px/1 var(--f-mono); color: var(--mute); }
.feed .x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); }

/* ---------- stats ---------- */
.stats {
  display: grid; gap: 12px 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "targets actions" "feed feed";
}
@media (orientation: portrait) and (max-width: 999px) {
  .stats { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1.15fr) auto; grid-template-areas: "targets" "actions" "feed"; }
}
.targets, .actions { min-height: 0; display: flex; flex-direction: column; }
.targets { grid-area: targets; }
.actions { grid-area: actions; }
.targets .zone-h, .actions .zone-h { margin-bottom: 8px; }
.team-tgts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tgt {
  min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px;
  font: 400 20px/1 var(--f-slate); letter-spacing: .05em; text-transform: uppercase;
}
.tgt small { font: 600 9px var(--f-mono); letter-spacing: .2em; color: var(--mute); }
.tgt--away { color: var(--cyan); }
.chips { flex: 1; min-height: 0; overflow-y: auto; align-content: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.chip {
  position: relative; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; transition: transform .12s;
}
.chip b { font: 400 46px/.75 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); }
.chip span { max-width: 100%; padding: 0 6px; font: 600 10.5px/1.15 var(--f-mono); text-transform: uppercase; text-align: center; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.chip em { position: absolute; top: 5px; right: 6px; font: 400 16px/1 var(--f-led); font-style: normal; padding: 1px 5px; border-radius: 3px; background: var(--sunk); color: var(--amber); }
.chip.is-bench { border-style: dashed; background: var(--sunk); }
.chip.is-bench b { color: var(--phos-dim); text-shadow: none; }
.tgt:active, .chip:active { transform: scale(.96); }
.tgt.is-sel, .chip.is-sel { background: var(--sel-bg); border-color: var(--amber); box-shadow: var(--glow-a); color: var(--amber); }
.chip.is-sel b { color: var(--amber); text-shadow: var(--glow-a); }
.armed-for { font: 500 12px var(--f-mono); letter-spacing: .06em; color: var(--mute); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.armed .armed-for { color: var(--amber); }

.stat-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: minmax(64px, 1fr); gap: 10px; }
.stat-btn {
  position: relative; min-height: 0; padding: 12px 14px; display: flex; align-items: flex-end; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--inner);
  font: 400 clamp(20px, 2.2vw, 26px)/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase;
  transition: opacity .2s, transform .08s, filter .2s;
}
.stats:not(.armed) .stat-btn { opacity: .45; filter: saturate(.3); }
.stat-btn:active { transform: scale(.96); }
.stat-btn em { position: absolute; top: 9px; right: 10px; padding: 1px 7px; border-radius: 3px; font: 400 22px/1 var(--f-led); font-style: normal; background: var(--sunk); color: var(--amber); }
.stat-btn[data-tone="goal"] { background: color-mix(in srgb, var(--pink) 16%, var(--panel)); border-color: var(--pink); color: var(--pink); box-shadow: 0 0 18px color-mix(in srgb, var(--pink) 25%, transparent); }
.stat-btn[data-tone="good"] { border-left: 4px solid var(--phos); }
.stat-btn[data-tone="bad"] { border-left: 4px solid var(--tally); }
.stat-btn[data-tone^="card"]::before { content: ''; position: absolute; top: 11px; right: 14px; width: 20px; height: 28px; border-radius: 3px; background: var(--c); transform: rotate(9deg); box-shadow: 0 0 12px var(--c); }
[data-tone="card-g"] { --c: #3BF08C; }
[data-tone="card-y"] { --c: #FFB020; }
[data-tone="card-r"] { --c: #FF4438; }

/* ---------- log ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); font: 600 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.pill[aria-pressed="true"] { color: var(--on-phos); background: var(--phos); border-color: var(--phos); box-shadow: var(--glow-p); }
.log { list-style: none; padding: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--inner); }
.log li { display: grid; grid-template-columns: 48px 64px 92px minmax(0, 1fr) 40px; gap: 12px; align-items: center; min-height: 52px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log li > .mono { font: 400 21px/1 var(--f-led); color: var(--amber); }
.log li > .mono.dim { color: var(--mute); }
.log li:last-child { border-bottom: 0; }
.log .log-head { min-height: 34px; font: 600 9.5px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); background: var(--sunk); }
.log .k-period_start, .log .k-period_end { background: var(--panel-3); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--phos); }
.log .k-stat { box-shadow: inset 3px 0 var(--pink); }
.log .k-stat.is-away { box-shadow: inset 3px 0 var(--cyan); }
.log .k-sub { box-shadow: inset 3px 0 var(--phos); }
.log .k-pos, .log .k-formation { box-shadow: inset 3px 0 var(--amber); }
.dim { color: var(--mute); }
@media (max-width: 640px) { .log li { grid-template-columns: 40px 56px minmax(0, 1fr) 40px; } .log li > :nth-child(3) { display: none; } }

/* ---------- export & setup ---------- */
.export { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .export { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .card--wide { grid-column: 1 / -1; } }
.card { position: relative; min-width: 0; padding: 18px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--inner), var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; border: solid var(--phos-dim); border-width: 2px 0 0 2px; border-top-left-radius: var(--r); }
.card h2 { font: 400 26px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; }
.card h2 small { font: 400 24px/1 var(--f-led); color: var(--phos); }
.sub { color: var(--mute); max-width: 64ch; font-size: 13px; }
.sub code { font-size: .92em; padding: 1px 5px; border-radius: 3px; background: var(--sunk); color: var(--bone); }
.form-grid, .offsets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 600 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.inp { width: 100%; height: 50px; padding: 0 12px; background: var(--sunk); color: var(--bone); border: 1px solid var(--line-2); border-radius: 6px; font: 500 15px var(--f-mono); appearance: none; -webkit-appearance: none; }
select.inp { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(-45deg, transparent 50%, var(--mute) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
textarea.inp { height: 110px; padding: 10px 12px; font: 500 13px/1.45 var(--f-mono); resize: vertical; }
.inp:focus { outline: none; border-color: var(--phos); box-shadow: var(--glow-p); }
.offsets .inp { font: 400 28px/1 var(--f-led); color: var(--amber); }
.rows { display: flex; flex-direction: column; gap: 6px; max-height: 440px; overflow-y: auto; padding-right: 4px; }
.row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 84px 46px; gap: 6px; }
.row input[data-field="num"] { font: 400 26px/1 var(--f-led); color: var(--phos); text-align: center; }
.row--stat { grid-template-columns: minmax(0, 1fr) 70px 150px 46px; }
.icon-btn { height: 50px; border: 1px solid var(--line-2); border-radius: 6px; font: 400 22px/1 var(--f-mono); color: var(--mute); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px;
  font: 600 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bone); cursor: pointer;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--phos); border-color: var(--phos); color: var(--on-phos); box-shadow: var(--glow-p); }
.btn--signal { background: var(--amber); border-color: var(--amber); color: var(--on-amber); box-shadow: var(--glow-a); }
.btn--danger { color: var(--tally); border-color: color-mix(in srgb, var(--tally) 45%, var(--line-2)); }
.btn--ghost { background: none; }
.file-btn input { display: none; }
.import { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.import-preview { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--sunk); border: 1px solid var(--amber); border-radius: 8px; box-shadow: var(--glow-a); animation: rise .35s both; }
.import-preview__h { display: flex; align-items: baseline; justify-content: space-between; }
.import-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; max-height: 220px; overflow-y: auto; }
.import-list li { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.import-list b { font: 400 22px/1 var(--f-led); color: var(--phos); min-width: 2ch; text-align: right; }
.mins { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mins th { padding: 6px 8px; border-bottom: 1px solid var(--line-2); font: 600 9.5px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); text-align: left; white-space: nowrap; }
.mins td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.mins td.mono { font: 400 22px/1 var(--f-led); color: var(--amber); }
.mins td.mono:first-child { color: var(--phos); }
.mins tr.dim td { opacity: .5; }
.mins .w { width: 38%; }
.mbar { display: block; height: 8px; background: var(--sunk); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.mbar i { display: block; height: 100%; width: var(--w); background: var(--phos); box-shadow: var(--glow-p); }
.card--wide { overflow-x: auto; }
.preview { max-height: 360px; overflow: auto; padding: 14px 16px; background: var(--sunk); color: var(--phos); border: 1px solid var(--line); border-radius: 6px; font: 500 11.5px/1.55 var(--f-mono); white-space: pre; user-select: text; -webkit-user-select: text; text-shadow: var(--glow-p); }
.arch { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.arch li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.arch li > span { flex: 1; min-width: 200px; }
.arch .btn { min-height: 42px; padding: 0 14px; }

/* ---------- install prompt ---------- */
.install {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 79;
  display: flex; align-items: center; gap: 14px; width: min(560px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px; background: var(--panel-3); color: var(--bone);
  border: 1px solid var(--line-2); border-left: 3px solid var(--amber); border-radius: 10px; box-shadow: var(--shadow);
  transform: translateX(-50%); animation: install-in .36s cubic-bezier(.2, 0, 0, 1);
}
.install[hidden] { display: none; }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.install-mark { flex: none; width: 46px; height: 46px; }
.install-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font: 500 12.5px/1.35 var(--f-mono); color: var(--mute); }
.install-txt > b { font: 400 20px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; color: var(--bone); }
.install-steps { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 2px; color: var(--bone); }
.install-steps b { color: var(--amber); font-weight: 700; }
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; vertical-align: -6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--amber); }
.ios-share svg { width: 15px; height: 15px; }
.install-act { flex: none; display: flex; flex-direction: column; gap: 6px; }
.install-act .btn { min-height: 40px; padding: 0 14px; }
@media (max-width: 520px) { .install { flex-wrap: wrap; } .install-act { flex-direction: row; width: 100%; } .install-act .btn { flex: 1; justify-content: center; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px; background: var(--panel-3); color: var(--bone);
  border: 1px solid var(--line-2); border-left: 3px solid var(--phos); border-radius: 8px; box-shadow: var(--shadow), var(--glow-p);
  font: 500 13.5px/1.3 var(--f-mono);
  transform: translate(-50%, calc(100% + 40px)); transition: transform .32s cubic-bezier(.2, .9, .3, 1.15);
}
.toast.show { transform: translate(-50%, 0); }
.toast button { flex: none; height: 42px; padding: 0 14px; background: var(--amber); color: var(--on-amber); border-radius: 5px; font: 700 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }

/* ---------- motion ---------- */
.enter :is(.tile, .token, .spot, .chip, .stat-btn, .card) { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms); }
.enter :is(.token, .spot) { animation-name: drop; }
.shake { animation: shake .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
@keyframes breathe { 50% { background: color-mix(in srgb, var(--amber) 22%, transparent); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Cliply lockup (ported from sinte / cliply components/broadcast) ---------- */
.cliply { position: relative; display: inline-block; line-height: 0; color: var(--bone); }
.cliply .lockup { display: block; width: auto; height: 100%; }
.cliply.sm { height: 12px; }
.cliply.lg { height: 30px; }
.cliply .gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; --cliply-pink: currentColor; }
.cliply .ga { color: #ff4d6d; }
.cliply .gb { color: #00d0ff; }
.cliply .ondas { position: absolute; left: -3.18%; top: -16.7%; width: 25.4%; height: 133.3%; overflow: visible; }
.onda { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes cliply-glitch {
  0%, 100% { transform: translate(0); clip-path: inset(0); }
  20% { transform: translate(-2px, 1px); clip-path: inset(20% 0 40% 0); }
  40% { transform: translate(2px, -1px); clip-path: inset(60% 0 10% 0); }
  60% { transform: translate(-1px, 0); clip-path: inset(10% 0 70% 0); }
  80% { transform: translate(1px, 1px); clip-path: inset(40% 0 30% 0); }
}
@keyframes cliply-signal {
  0% { opacity: 0; transform: translateY(7px) scale(.55); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-7px) scale(1.15); }
}
:is(.byline, .sign-cliply):is(:hover, :active) .ga { opacity: 1; animation: cliply-glitch .4s steps(2) infinite; }
:is(.byline, .sign-cliply):is(:hover, :active) .gb { opacity: 1; animation: cliply-glitch .4s steps(2) infinite reverse; }
:is(.byline, .sign-cliply):is(:hover, :active) .onda { animation: cliply-signal .5s ease-out infinite; }
:is(.byline, .sign-cliply):is(:hover, :active) .o2 { animation-delay: .13s; }
:is(.byline, .sign-cliply):is(:hover, :active) .o3 { animation-delay: .26s; }
.running .sb-brand .onda { animation: cliply-signal 1.6s ease-out infinite; }
.running .sb-brand .o2 { animation-delay: .4s; }
.running .sb-brand .o3 { animation-delay: .8s; }
.sign { align-items: flex-start; }
.sign-cliply { display: inline-flex; flex-direction: column; gap: 12px; padding: 8px 0 4px; text-decoration: none; }
a.btn { text-decoration: none; }


/* ---------- export formats ---------- */
.fmt-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.fmt-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.fmt-list li > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 200px; flex: 1; }
.fmt-list b { font: 400 30px/.9 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); }
.fmt-list span { font-size: 12.5px; color: var(--mute); }
.fmt-actions { display: flex; gap: 6px; }
.fmt-actions .btn { min-height: 46px; padding: 0 14px; }

/* ---------- matches ---------- */
.matches { display: flex; flex-direction: column; gap: 14px; max-width: 1680px; }
.matches-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.matches-h h2 { font: 400 30px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.match-list { list-style: none; padding: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--inner); overflow: hidden; }
.match { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background .15s; }
.enter .match { animation: rise .35s both; animation-delay: calc(var(--i, 0) * 30ms); }
.match__hit { position: absolute; inset: 0; z-index: 1; }
.match:active { background: var(--panel-3); }
@media (hover: hover) { .match:hover { background: var(--panel-2); } .match:hover .match__go { color: var(--phos); } }
.match__go { font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.match:last-child { border-bottom: 0; }
.match.is-current { background: var(--panel-3); box-shadow: inset 3px 0 var(--phos); }
.match__date { display: flex; flex-direction: column; align-items: center; padding: 4px 0; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; }
.match__date b { font: 400 34px/.85 var(--f-led); color: var(--amber); }
.match__date span { font: 500 9.5px var(--f-mono); letter-spacing: .12em; color: var(--mute); }
.match__teams { font: 400 22px/1.1 var(--f-slate); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match__score { font: 400 30px/1 var(--f-led); color: var(--amber); margin: 0 8px; font-weight: 400; }
.match__score i { font-style: normal; color: var(--mute); margin: 0 3px; }
.match__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 11.5px; color: var(--mute); letter-spacing: .04em; }
.match__meta .here { color: var(--phos); }
.status { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.status--live { color: var(--tally); }
.status--live::before { content: '● '; animation: rec 1.2s steps(1) infinite; }
.status--final { color: var(--phos); }
.match__actions { display: flex; gap: 6px; align-items: center; }
.match__actions .btn { min-height: 44px; padding: 0 12px; }
.match__actions .icon-btn { width: 44px; height: 44px; }
.storage-line { font-size: 12px; color: var(--mute); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 700px) { .match { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 12px; } .match__go { display: none; } .match__teams { font-size: 19px; } }

/* ---------- match detail ---------- */
.detail { display: flex; flex-direction: column; gap: 16px; }
.detail-h { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.detail-title { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.detail-title h2 { font: 400 clamp(26px, 3.4vw, 38px)/1 var(--f-slate); letter-spacing: .03em; text-transform: uppercase; }
.detail-title .match__score { font-size: 1.25em; }
.detail-h .icon-btn { width: 52px; height: 52px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--panel); }
.kpi b { font: 400 40px/.8 var(--f-led); color: var(--amber); text-shadow: var(--glow-a); font-weight: 400; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mins-wrap { overflow-x: auto; }
.detail .fmt-list li { flex-direction: column; align-items: stretch; }
.detail .fmt-actions .btn { flex: 1; justify-content: center; }
.preview-card summary { cursor: pointer; font: 400 22px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; list-style: none; }
.preview-card summary::after { content: ' +'; color: var(--mute); }
.preview-card[open] summary::after { content: ' −'; }
.logv .filters .link { margin-left: auto; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- config: one panel, side nav ---------- */
.setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1400px; }
.setup-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); }
.setup-nav button { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 6px; font: 600 12px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); text-align: left; }
.setup-nav button small { font: 400 20px/1 var(--f-led); color: var(--phos-dim); letter-spacing: 0; }
.setup-nav button[aria-current="true"] { background: var(--panel-3); color: var(--phos); box-shadow: inset 2px 0 var(--phos); text-shadow: var(--glow-p); }
.panel { min-width: 0; padding: 6px 22px 22px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--inner), var(--shadow); }
.enter .panel { animation: rise .3s both; }
.panel-h { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; font: 600 10.5px var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.panel-h .count-led { font-size: 26px; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 10px; }
.panel-bar .panel-h { margin: 0; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 320px); align-items: center; gap: 16px; min-height: 60px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.srow__l { display: flex; flex-direction: column; gap: 3px; font: 500 14px var(--f-mono); color: var(--bone); }
.srow__l small { font-size: 11.5px; color: var(--mute); }
.srow > .btn, .srow > label.btn { justify-self: stretch; }
.srow > .btn-row { display: flex; gap: 8px; flex-wrap: nowrap; }
.srow > .btn-row > .btn { flex: 1; }
.srow .btn { min-height: 46px; padding: 0 14px; }
.inp--num, .inp--led { font: 400 28px/1 var(--f-led) !important; color: var(--phos); text-align: center; }
.note { margin-top: 14px; }
.seg { display: flex; padding: 3px; gap: 3px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; }
.seg button { flex: 1; min-height: 44px; border-radius: 6px; font: 600 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--phos); color: var(--on-phos); box-shadow: var(--glow-p); }
.roster-table { display: flex; flex-direction: column; }
.rt-head, .rt-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 90px 50px; gap: 8px; align-items: center; }
.roster-table--stats .rt-head, .roster-table--stats .rt-row { grid-template-columns: minmax(0, 1fr) 80px 170px 50px; }
.rt-head { padding: 0 0 6px; font: 600 9.5px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line-2); }
.rt-row { padding: 5px 0; border-bottom: 1px solid var(--line); }
.rt-row .inp { height: 46px; background: transparent; border-color: transparent; }
.rt-row .inp:hover, .rt-row .inp:focus { background: var(--sunk); border-color: var(--line-2); }
.rt-row .icon-btn { height: 46px; border-color: transparent; }
.paste { margin-top: 16px; border-top: 1px dashed var(--line-2); padding-top: 12px; }
.paste summary { cursor: pointer; font: 600 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); min-height: 40px; display: flex; align-items: center; }
.paste textarea { margin: 8px 0; }
.import-preview { margin-bottom: 14px; }
.sign { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (max-width: 820px) {
  .setup { grid-template-columns: minmax(0, 1fr); }
  .setup-nav { position: static; flex-direction: row; overflow-x: auto; }
  .setup-nav button { flex: 1 0 auto; }
  .srow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- teams & crests ---------- */
.crest { width: 34px; height: 34px; flex: none; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }
.crest--blank { display: grid; place-items: center; border-radius: 50%; background: var(--sunk); border: 1px solid var(--line-2); font: 400 22px/1 var(--f-slate); color: var(--mute); }
.team-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.team-chip { flex: none; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 14px 8px 10px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; text-align: left; }
.team-chip b { display: block; font: 400 17px/1.1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.team-chip small { font-size: 10.5px; color: var(--mute); letter-spacing: .04em; }
.team-chip[aria-pressed="true"] { border-color: var(--phos); background: var(--panel-3); box-shadow: var(--glow-p); }
.team-chip[aria-pressed="true"] b { color: var(--phos); }
.team-edit { border-top: 1px solid var(--line-2); margin-top: 4px; }
.srow__v { justify-self: end; font: 400 18px var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.sb-crest { width: 34px; height: 34px; object-fit: contain; flex: none; }
.match__crests { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.match__crests .crest { width: 26px; height: 26px; }

/* ---------- sheet (modal) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.sheet.is-opening .sheet__scrim { animation: fade .2s both; }
.sheet.is-opening .sheet__card { animation: rise .28s cubic-bezier(.2, .8, .2, 1) both; }
.sheet__card {
  position: relative; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow), var(--inner);
}
.sheet__h { display: flex; align-items: center; justify-content: space-between; }
.sheet__h h2 { font: 400 28px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.sheet__form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.sheet__actions { justify-content: flex-end; margin-top: 4px; }
.sheet .sub { display: flex; align-items: center; gap: 10px; }
.fixtures { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.fixture { display: grid; grid-template-columns: 70px 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 6px 12px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; text-align: left; }
.fixture[aria-pressed="true"] { border-color: var(--amber); background: var(--sel-bg); box-shadow: var(--glow-a); }
.fixture__when { display: flex; flex-direction: column; }
.fixture__when b { font: 400 24px/.9 var(--f-led); color: var(--amber); }
.fixture__when small { font-size: 10px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.fixture__who b { display: block; font: 400 17px/1.1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.fixture__who small { font-size: 11px; color: var(--mute); }
.fixture__tag { font: 600 9.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.fixtures .empty { padding: 6px 0; }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 600px) { .sheet__form { grid-template-columns: minmax(0, 1fr); } }
.match__teams .crest, .detail-title h2 .crest { width: 30px; height: 30px; vertical-align: middle; margin: 0 8px; }
.detail-title h2 .crest { width: 40px; height: 40px; }
.sheet__card--wide { width: min(980px, 100%); height: min(760px, calc(100dvh - 32px)); }
.club-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; }
.club { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 10px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; font: 600 11.5px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.club .crest { width: 44px; height: 44px; }
.club:active { border-color: var(--amber); }
.club-head { display: flex; align-items: center; gap: 14px; }
.club-head b { font: 400 26px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.crest--lg { width: 52px; height: 52px; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.squad { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-height: 78px; padding: 10px 12px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; text-align: left; }
.squad b { font: 400 20px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.squad span { font-size: 12px; }
.squad small { font-size: 10.5px; color: var(--mute); }
.squad[aria-pressed="true"] { border-color: var(--phos); background: var(--panel-3); box-shadow: var(--glow-p); }
.squad[aria-pressed="true"] b { color: var(--phos); }
.sheet a { color: var(--amber); }

/* ---------- drag & drop ---------- */
.token, .spot { touch-action: none; }
.rot:not(.is-portrait) .tile--bench { touch-action: pan-y; }
.rot.is-portrait .tile--bench { touch-action: pan-x; }
.drag-ghost { position: fixed; z-index: 85; margin: 0; pointer-events: none; opacity: .92; transition: none !important; animation: none !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), var(--glow-a) !important; border-color: var(--amber) !important; }
.token.drag-ghost { transform-origin: center; translate: 0 0; }
.drag-src { opacity: .3; }
body.dragging { cursor: grabbing; }
body.dragging .rot :is(.token, .spot, .tile) { transition: box-shadow .12s, border-color .12s, transform .12s; }
body.drag-from-bench .rot :is(.token, .spot):not(.drag-src) { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
body.drag-from-field .rot :is(.tile--bench, .token, .spot):not(.drag-src) { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.drop-hot { border-color: var(--amber) !important; box-shadow: var(--glow-a), 0 0 0 3px color-mix(in srgb, var(--amber) 40%, transparent) !important; }
.token.drop-hot, .spot.drop-hot { transform: translate(-50%, -50%) scale(1.1); }
.tile.drop-hot { transform: scale(1.04); background: var(--sel-bg); }

/* ---------- convocatoria ---------- */
.bench-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 8px; }
.squad-bar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px 14px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; }
.squad-bar .btn-row { margin-left: auto; }
.squad-bar .btn { min-height: 44px; padding: 0 14px; }
.squad-count { display: flex; align-items: baseline; gap: 4px; }
.squad-count b { font: 400 42px/.8 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); font-weight: 400; }
.squad-count small { font-size: 11px; color: var(--mute); letter-spacing: .06em; }
.squad-count.is-over b { color: var(--tally); text-shadow: var(--glow-t); }
.squad-pick { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; align-content: start; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num name" "num st"; column-gap: 12px; align-items: center; min-height: 64px; padding: 8px 12px; text-align: left; background: var(--sunk); border: 1px dashed var(--line-2); border-radius: 8px; transition: background .12s, border-color .12s; }
.pick b { grid-area: num; font: 400 40px/.8 var(--f-led); color: var(--mute); min-width: 1.4ch; text-align: center; font-weight: 400; }
.pick span { grid-area: name; font: 600 12px/1.15 var(--f-mono); text-transform: uppercase; color: var(--mute); overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.pick small { grid-area: st; font: 600 9.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.pick--called { background: var(--panel-3); border: 1px solid var(--phos-soft); }
.pick--called b { color: var(--phos); text-shadow: var(--glow-p); }
.pick--called span { color: var(--bone); }
.pick--called small { color: var(--phos); }
.pick--starter { background: var(--sel-bg); border: 1px solid var(--amber); }
.pick--starter b, .pick--starter small { color: var(--amber); }
.pick--starter span { color: var(--bone); }
.pick:active { transform: scale(.96); }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; text-align: left; }
.check i { width: 26px; height: 26px; flex: none; border: 1px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; }
.check[aria-pressed="true"] { border-color: var(--phos-soft); }
.check[aria-pressed="true"] i { background: var(--phos); border-color: var(--phos); box-shadow: var(--glow-p); }
.check[aria-pressed="true"] i::after { content: '✓'; color: var(--on-phos); font: 700 16px/1 var(--f-mono); font-style: normal; }
.check b { display: block; font: 400 18px/1.1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.check small { font-size: 11.5px; color: var(--mute); }

/* ---------- brand block (scoreboard) ---------- */
/* Same composition as brand/lockup-*.png: board as tall as the text block, THE over BENCH on one left edge. */
.sb-brand { display: flex; align-items: center; gap: 16px; min-width: 0; padding-right: clamp(4px, 1.4vw, 18px); border-right: 1px solid var(--line); }
.sb-brand .bm-slot { width: 94px; height: 88px; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.brand-the { font: 600 10px/1 var(--f-mono); letter-spacing: .62em; color: var(--mute); margin: 0 0 5px 2px; }
.brand-name { font: 400 50px/.8 var(--f-slate); letter-spacing: .035em; color: var(--bone); white-space: nowrap; }
.byline { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 0 2px; color: var(--mute); text-decoration: none; font: 600 10px/1 var(--f-mono); letter-spacing: .28em; text-transform: uppercase; }
.byline .cliply.sm { height: 12px; }
.sb-period .net { margin-left: auto; }
.net { display: inline-flex; align-items: center; gap: 5px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.net::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.net.ok::before { background: var(--phos); box-shadow: var(--glow-p); }
.net.off { color: var(--amber); }
@media (max-width: 1280px) { .sb-brand .bm-slot { width: 78px; height: 73px; } .brand-name { font-size: 40px; } }
.scoreboard > .sb-brand { min-width: max-content; }
@media (min-width: 1021px) and (max-width: 1366px) { .sb-brand .brand-text { display: none; } .sb-brand { gap: 0; } }

/* ---------- time on field + position groups ---------- */
.token__time b { font: 400 clamp(18px, 2.7cqi, 23px)/.9 var(--f-led); color: var(--amber); font-weight: 400; }
.token__time small { font: 400 clamp(13px, 1.9cqi, 16px)/.9 var(--f-led); color: var(--mute); }
.token__time small::before { content: 'Σ'; margin-right: 2px; font-family: var(--f-mono); font-size: .75em; opacity: .8; }
.token.is-sel .token__time small { color: var(--amber); }

.has-group { --gc: var(--mute); }
.token.has-group { border-left: 4px solid var(--gc); padding-left: 6px; }
.token.has-group .token__role { color: var(--gc); }
.tile.has-group { box-shadow: inset 4px 0 0 var(--gc); }
.tile.has-group .tile__pos { color: var(--gc); }
.chip.has-group { box-shadow: inset 0 3px 0 var(--gc); }
.pick.has-group { box-shadow: inset 4px 0 0 var(--gc); }

.gfilter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px 0 8px; flex: none; }
.gfilter button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sunk); font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.gfilter button i { width: 9px; height: 9px; border-radius: 2px; background: var(--gc); }
.gfilter button b { font: 400 17px/1 var(--f-led); letter-spacing: 0; color: var(--bone); font-weight: 400; }
.gfilter button[aria-pressed="true"] { border-color: var(--gc, var(--phos)); color: var(--bone); background: var(--panel-3); box-shadow: inset 0 -2px 0 var(--gc, var(--phos)); }

.groups-edit { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.group-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 90px 84px 70px 48px; gap: 8px; align-items: center; padding-left: 10px; border-left: 4px solid var(--gc); }
.swatch { position: relative; width: 46px; height: 46px; border-radius: 8px; background: var(--gc); border: 1px solid var(--line-2); cursor: pointer; box-shadow: 0 0 12px color-mix(in srgb, var(--gc) 40%, transparent); }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.inp--short { text-transform: uppercase; font-family: var(--f-mono); letter-spacing: .12em; text-align: center; }
.group-count { font-size: 11px; color: var(--mute); }
.roster-table--groups .rt-head, .roster-table--groups .rt-row { grid-template-columns: 76px minmax(0, 1fr) 80px 170px 84px 50px; }
.max-in { display: flex; align-items: center; gap: 2px; }
.max-in .inp { width: 100%; min-width: 0; text-align: right; }
.max-in span { font: 400 20px/1 var(--f-led); color: var(--mute); }
.panel-hint { margin-left: 10px; font: 500 10px var(--f-mono); letter-spacing: .08em; text-transform: none; color: var(--mute); }


/* ---------- time-on-field alerts ---------- */
.token[data-alert="warn"], .tile[data-alert="warn"] { box-shadow: 0 0 0 3px #F5C518, 0 0 14px rgba(245, 197, 24, .55), inset 0 0 0 200px rgba(245, 197, 24, .22); }
.token[data-alert="over"], .tile[data-alert="over"] { animation: over-blink 1s steps(2, jump-none) infinite; }
@keyframes over-blink {
  0%, 100% { box-shadow: 0 0 0 3px #FF3B30, 0 0 20px rgba(255, 59, 48, .8), inset 0 0 0 200px rgba(255, 59, 48, .55); }
  50% { box-shadow: 0 0 0 3px #FF3B30, inset 0 0 0 200px rgba(255, 59, 48, .08); }
}
@media (prefers-reduced-motion: reduce) { .token[data-alert="over"], .tile[data-alert="over"] { animation: none; box-shadow: 0 0 0 3px #FF3B30, inset 0 0 0 200px rgba(255, 59, 48, .45); } }
.roster-table--groups .rt-row { box-shadow: inset 3px 0 0 var(--gc, transparent); padding-left: 6px; }
.inp--group { color: var(--gc, var(--bone)); font-family: var(--f-mono); font-size: 13px; }
@media (max-width: 820px) { .group-row { grid-template-columns: 50px minmax(0, 1fr) 70px 84px 48px; } .group-count { display: none; } }

/* ---------- bench group dividers ---------- */
.gdiv { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gc); }
.gdiv:first-child { margin-top: 0; }
.gdiv i { width: 8px; height: 8px; border-radius: 2px; background: var(--gc); box-shadow: 0 0 8px color-mix(in srgb, var(--gc) 50%, transparent); flex: none; }
.gdiv span { flex: none; }
.gdiv b { font: 400 16px/1 var(--f-led); letter-spacing: 0; color: var(--mute); font-weight: 400; order: 3; }
.gdiv::after { content: ''; order: 2; flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 55%, transparent), transparent); }
.is-portrait .bench .grid { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; }
.is-portrait .bench .grid .tile { flex: 0 0 158px; }
.is-portrait .gdiv { flex: 0 0 22px; flex-direction: column; justify-content: center; margin: 0; padding: 6px 0; border-left: 2px solid var(--gc); writing-mode: vertical-rl; transform: rotate(180deg); }
.is-portrait .gdiv::after, .is-portrait .gdiv i { display: none; }


.chips-empty { grid-column: 1 / -1; min-height: 64px; }
/* group colours are user-picked and bright; as text they are pulled toward the ink so they read on paper too */
.token.has-group .token__role, .tile.has-group .tile__pos, .gdiv, .inp--group { color: color-mix(in srgb, var(--gc) 62%, var(--bone)); }
.sb-team small { display: block; font: 600 9px/1.2 var(--f-mono); letter-spacing: .2em; color: var(--mute); }

/* ---------- custom dialogs ---------- */
.dialog { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 16px; }
.dialog[hidden] { display: none; }
.dlg__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); animation: fade .15s both; }
.dlg {
  position: relative; width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px;
  background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--amber); border-radius: 12px;
  box-shadow: var(--shadow), 0 30px 80px -30px rgba(0, 0, 0, .7); animation: rise .22s cubic-bezier(.2, .8, .2, 1) both;
}
.dlg--danger { border-top-color: var(--tally); }
.dlg h2 { margin: 0; font: 400 26px/1.05 var(--f-slate); letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; }
.dlg p { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.5; }
.dlg .field span b { color: var(--tally); letter-spacing: .2em; }
.dlg #dlg-in { font: 400 28px/1 var(--f-led); letter-spacing: .18em; text-transform: uppercase; }
.dlg__actions { justify-content: flex-end; margin-top: 4px; }
.btn--danger-solid { background: var(--tally); border-color: var(--tally); color: #fff; box-shadow: var(--glow-t); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* ---------- device sync ---------- */
.sync-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sync-choice { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-align: left; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 10px; }
button.sync-choice:hover { border-color: var(--phos); }
.sync-choice b { font: 400 22px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.sync-choice > span { font-size: 12.5px; color: var(--mute); }
.sync-link { display: flex; gap: 8px; margin-top: 4px; }
.sync-link .inp { flex: 1; min-width: 0; font-size: 13px; }
.inp--code { font: 400 30px/1 var(--f-led) !important; letter-spacing: .25em; text-transform: lowercase; color: var(--amber); }
.sync-host { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.sync-code { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sync-code > b { font: 400 64px/.85 var(--f-led); letter-spacing: .22em; color: var(--amber); text-shadow: var(--glow-a); font-weight: 400; }
.sync-qr { padding: 10px; background: #F2F0E6; border-radius: 10px; line-height: 0; }
.sync-qr img, .sync-qr canvas { width: 196px; height: 196px; }
.sync-wait { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 13px; color: var(--mute); }
.sync-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--phos); box-shadow: var(--glow-p); animation: rec 1.6s steps(1) infinite; }
.sync-dot.is-wait { background: var(--amber); box-shadow: var(--glow-a); }
.sync-live { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--sunk); border: 1px solid var(--phos-soft); border-radius: 10px; }
.sync-live b { font: 400 22px/1.1 var(--f-slate); letter-spacing: .03em; text-transform: uppercase; }
.sync-live .sub { margin-top: 6px; }
.sync-req { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--sel-bg); border: 1px solid var(--amber); border-radius: 10px; box-shadow: var(--glow-a); }
.sync-req b { font: 400 24px/1.1 var(--f-slate); letter-spacing: .03em; text-transform: uppercase; }
.sync-err { margin: 0; padding: 10px 12px; border: 1px solid var(--tally); border-radius: 8px; color: var(--tally); font-size: 13px; }
@media (max-width: 640px) { .sync-choices, .sync-host { grid-template-columns: minmax(0, 1fr); } .sync-code > b { font-size: 48px; } }

/* ---------- end of match ---------- */
.end-col { display: flex; flex-direction: column; gap: 4px; }
.end-col .btn-ghost { height: 36px; padding: 0 14px; font-size: 11px; }
.btn-end { color: var(--tally); border-color: color-mix(in srgb, var(--tally) 45%, var(--line-2)); }
.btn-end:disabled { color: var(--mute); border-color: var(--line-2); }
.dlg .btn--danger { margin-right: auto; }

/* ---------- match phase: pre / live / final ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 4px; border: 1px solid currentColor; font: 700 9.5px/1 var(--f-mono); font-style: normal; letter-spacing: .18em; text-transform: uppercase; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.is-pre { color: var(--mute); }
.status-pill.is-run { color: var(--tally); text-shadow: var(--glow-t); }
.status-pill.is-run::before { box-shadow: var(--glow-t); animation: rec 1.2s steps(1) infinite; }
.status-pill.is-pause { color: var(--amber); }
.status-pill.is-final { color: var(--phos); }
.sb-period { gap: 8px; }
body.is-live .sb-clock { border-color: color-mix(in srgb, var(--tally) 45%, var(--line-2)); }
body.is-live .sb-clock::before, body.is-live .sb-clock::after { border-color: var(--tally); }

.live-strip { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-left: 1px solid var(--line); color: var(--tally); }
.live-strip b { display: block; font: 700 11px/1.2 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }
.live-strip small { font: 500 10px/1.2 var(--f-mono); letter-spacing: .04em; color: var(--mute); }
.live-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--tally); box-shadow: var(--glow-t); animation: rec 1.2s steps(1) infinite; }
body.is-live .tabs { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tally) 50%, transparent); }
@media (max-width: 900px) { .live-strip small { display: none; } }

.log-live { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 16px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--tally) 45%, var(--line-2)); border-radius: var(--r); }
.log-live .live-dot { align-self: center; }
.log-live b { font: 400 22px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; }
.log-live [data-live=clock] { font: 400 30px/.8 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); }
.log-live small { margin-left: auto; font-size: 11.5px; color: var(--mute); }
.log .log-sec { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; background: var(--sunk); font: 700 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line-2); }
.log .log-sec.is-now { color: var(--bone); box-shadow: inset 3px 0 var(--tally); }

.late { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 8px; }
.late { grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; }
.late .kicker { grid-column: 1 / -1; }
.late .inp { height: 46px; }

/* full player names: cards grow instead of cutting the name */
.tile { align-items: start; min-height: 88px; height: auto; }
.tile__num { align-self: center; }
.chip { height: auto; padding: 8px 4px; }
.token { padding-bottom: 8px; }

/* pitch token: number + role on top, the surname gets the full card width */
.token { grid-template-columns: auto 1fr; grid-template-areas: "num role" "name name" "time time"; row-gap: 3px; }
.token__role { justify-self: end; align-self: start; }
.token__name { font-size: clamp(9.5px, 1.45cqi, 11.5px); letter-spacing: 0; line-height: 1.1; }

/* ---------- suspensions ---------- */
.spot.is-susp { gap: 1px; border: 1px solid var(--amber); border-style: solid; background: color-mix(in srgb, var(--amber) 14%, rgba(0, 0, 0, .35)); color: var(--amber); cursor: not-allowed; }
.spot.is-susp small { font: 700 8.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.spot.is-susp b { font: 400 24px/.9 var(--f-led); }
.spot.is-susp i { font: 400 22px/.9 var(--f-led); font-style: normal; text-shadow: var(--glow-a); }
.spot.is-susp.is-out { border-color: var(--tally); color: var(--tally); background: color-mix(in srgb, var(--tally) 14%, rgba(0, 0, 0, .35)); }
.has-sel .spot.is-susp { animation: none; }
.tile.is-susp { opacity: .75; border-color: var(--amber); border-style: solid; }
.tile.is-susp.is-out { border-color: var(--tally); opacity: .55; }
.tile__susp { position: absolute; left: 8px; right: 8px; bottom: 7px; z-index: 1; font: 700 9px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); text-align: right; }
.tile.is-out .tile__susp { color: var(--tally); }
.tile__susp i { font: 400 16px/1 var(--f-led); font-style: normal; letter-spacing: 0; margin-left: 4px; }
.roster-table--stats .rt-head, .roster-table--stats .rt-row { grid-template-columns: minmax(0, 1fr) 70px 190px 160px 50px; }
.feed li.is-susp { border-left-color: var(--amber); color: var(--amber); }

/* ============ portrait: tablet and phone ============ */
.tab-ico { display: none; width: 22px; height: 22px; flex: none; }
.scoreboard > .sb-brand { grid-area: brand; }
.scoreboard > .sb-score { grid-area: score; }
.scoreboard > .sb-clock { grid-area: clock; }
.scoreboard > .sb-ctrl { grid-area: ctrl; }
.scoreboard { grid-template-areas: "brand score clock ctrl"; }

/* tablet portrait and narrow landscape: brand + score, then clock + controls */
@media (max-width: 1020px) {
  .scoreboard { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand score score" "clock clock ctrl"; row-gap: 12px; }
  .sb-brand { border-right: 0; padding-right: 0; }
  .sb-brand .bm-slot { width: 64px; height: 60px; }
  .brand-name { font-size: 36px; }
  .sb-clock { min-width: 0; }
  .token, .spot { width: clamp(64px, 17cqi, 104px); }
}

/* phone */
@media (max-width: 600px) {
  body { grid-template-rows: auto minmax(0, 1fr) auto; }
  .scoreboard { order: 1; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand score clock" "ctrl ctrl ctrl"; gap: 8px 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 14px; }
  .sb-brand .brand-text { display: none; }
  .sb-brand .bm-slot { width: 40px; height: 38px; }
  .sb-score { gap: 6px; justify-content: center; }
  .sb-team { font-size: 9.5px; letter-spacing: .06em; min-width: 0; max-width: 9ch; }
  .sb-crest { width: 22px; height: 22px; }
  .sb-num { font-size: 38px; padding: 2px 6px 0; }
  .sb-sep { font-size: 22px; }
  .sb-clock { padding: 4px 8px 6px; grid-template-columns: auto; }
  .sb-clock::before, .sb-clock::after { display: none; }
  .sb-period { gap: 4px; font-size: 8.5px; letter-spacing: .1em; }
  .sb-period .net { display: none; }
  .status-pill { padding: 2px 5px; font-size: 8px; letter-spacing: .1em; }
  .sb-time { font-size: 38px; }
  .sb-remain, .sb-progress { display: none; }
  .sb-ctrl { gap: 6px; }
  .btn-play { flex: 1; height: 50px; justify-content: center; font-size: 15px; }
  .adj { flex-direction: row; }
  .adj .btn-ghost, .end-col .btn-ghost { height: 50px; }
  .end-col { flex-direction: row; }
  .btn-ghost { height: 50px; padding: 0 10px; font-size: 10.5px; }

  /* bottom navigation within thumb reach */
  .tabs { order: 3; position: relative; z-index: 12; padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid var(--line-2); border-bottom: 0; overflow: visible; }
  .tabs button { flex: 1 1 0; min-width: 0; min-height: 60px; padding: 6px 2px; flex-direction: column; gap: 4px; font-size: 9px; letter-spacing: .08em; border-right: 0; position: relative; }
  .tabs button[aria-current="page"]::after { top: 0; bottom: auto; left: 22%; right: 22%; }
  .tab-ico { display: block; }
  .tabs .count { position: absolute; top: 5px; left: calc(50% + 8px); font-size: 13px; padding: 0 4px; }
  .live-strip { flex: 0 0 auto; padding: 0 12px; }
  .live-strip > span:last-child { display: none; }
  #view { order: 2; padding: 12px 12px 24px; }
  .toast, .install { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* rotations & stats scroll naturally on a phone instead of fitting one screen */
  #view.fit { overflow-y: auto; display: block; padding-bottom: 24px; }
  .rot, .rot.is-portrait { display: flex; flex-direction: column; gap: 12px; }
  .hint > span:not(.hint__dot) { white-space: normal; }
  .hint { flex-wrap: wrap; }
  .pitch { padding: 10px; }
  .pitch-h { flex-wrap: wrap; }
  .forms { width: 100%; }
  .turf-wrap { container-type: inline-size; display: block; }
  .turf { width: 100%; }
  .token, .spot { width: clamp(56px, 19cqi, 84px); }
  .token { padding: 4px 5px 7px; }
  .token__num { font-size: 26px; }
  .token__role { display: none; }
  .token__name { font-size: 9px; }
  .token__time b { font-size: 16px; }
  .rot.is-portrait .bench .grid, .bench .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .rot.is-portrait .bench .grid .tile { flex: none; }
  .rot.is-portrait .tile--bench { touch-action: pan-y; }
  .rot.is-portrait .gdiv { writing-mode: horizontal-tb; transform: none; flex-direction: row; border-left: 0; padding: 0; margin-top: 6px; }
  .rot.is-portrait .gdiv::after, .rot.is-portrait .gdiv i { display: block; }
  .rot.is-portrait .subs-feed, .subs-feed { display: flex; flex-direction: column; align-items: stretch; }
  .feed-h { flex-direction: row; align-items: baseline; border-right: 0; padding: 0; }
  .stats { display: flex; flex-direction: column; gap: 14px; }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 76px; overflow: visible; }
  .team-tgts .tgt { min-height: 56px; font-size: 17px; }
  .zone-h h2 { font-size: 22px; }
  .detail-h { gap: 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { padding: 0; align-items: end; }
  .sheet__card, .sheet__card--wide { width: 100%; max-height: 92dvh; height: auto; border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* a hidden toast parks below the fold; it must never swallow taps meant for the bottom bar */
.toast { pointer-events: none; opacity: 0; transition: transform .32s cubic-bezier(.2, .9, .3, 1.15), opacity .2s ease-out; }
.toast.show { pointer-events: auto; opacity: 1; }

/* narrow pitches (portrait tablet, phone): stint over total so both fit, names never split mid-word */
@container (max-width: 480px) {
  .token { width: 72px; padding: 5px 6px 8px; }
  .token__num { font-size: 26px; }
  .token__name { font-size: 9px; overflow-wrap: normal; }
  .token__time { flex-direction: column; align-items: flex-start; gap: 1px; }
  .token__time b { font-size: 17px; }
  .token__time small { font-size: 13px; }
  .spot { width: 60px; }
}
@container (max-width: 380px) {
  .token { width: 64px; }
  .token__role { display: none; }
}

/* stat buttons: wide and short rows instead of stretching to fill the height */
.stat-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 84px; align-content: start; }
.stat-btn { align-items: center; padding: 10px 18px; }
@media (max-width: 600px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 64px; } }

/* ---------- stat grid sized to the space (see fitStatGrid) ---------- */
.stat-grid { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 5), minmax(40px, 84px)); grid-auto-rows: unset; overflow: hidden; }
@media (max-width: 600px) { .stat-grid { grid-template-rows: repeat(var(--rows, 5), 64px); overflow: visible; } }

/* ---------- focus mode ---------- */
.focusbar[hidden] { display: none; }
.focusbar {
  position: relative; z-index: 10; display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: calc(6px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 6px calc(12px + env(safe-area-inset-left));
  background: linear-gradient(var(--panel-3), var(--panel)); border-bottom: 2px solid color-mix(in srgb, var(--tally) 55%, var(--line-2));
  touch-action: pan-x;
}
body.is-focus { grid-template-rows: auto minmax(0, 1fr); }
body.is-focus .scoreboard, body.is-focus .tabs, body.is-focus .subs-feed { display: none; }
body.is-focus .rot:not(.has-sel) .hint { display: none; }
body.is-focus #view.fit { padding-top: 10px; }
.fb-clock { display: flex; align-items: center; gap: 8px; }
.fb-clock b { font: 400 34px/.8 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); font-weight: 400; min-width: 3.2ch; }
.fb-period { font: 700 10px/1 var(--f-mono); letter-spacing: .14em; color: var(--mute); }
.fb-score { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 10px/1.1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.fb-score span { max-width: 12ch; overflow-wrap: break-word; }
.fb-score b { font: 400 30px/.8 var(--f-led); color: var(--amber); text-shadow: var(--glow-a); font-weight: 400; }
.fb-score b i { font-style: normal; color: var(--mute); margin: 0 3px; }
.fb-tabs { display: flex; gap: 4px; margin-left: auto; padding: 3px; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 8px; }
.fb-tabs button { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 6px; font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition-property: background-color, color; transition-duration: .15s; }
.fb-tabs .tab-ico { display: block; width: 18px; height: 18px; }
.fb-tabs button[aria-current="page"] { background: var(--phos); color: var(--on-phos); }
.fb-ctrl { display: flex; align-items: center; gap: 6px; }
.fb-div { width: 1px; height: 28px; margin: 0 4px; background: var(--line-2); }
.fb-endp { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--line-2)); white-space: nowrap; }
.fb-play, .fb-exit { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); }
.fb-play { background: var(--phos); border-color: var(--phos); color: var(--on-phos); }
.fb-play.is-running { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.fb-play svg, .fb-exit svg { width: 18px; height: 18px; }
.fb-play:active, .fb-exit:active, .fb-tabs button:active { transform: scale(.96); }
.btn-focus { width: 50px; padding: 0; display: grid; place-items: center; }
.btn-ghost.btn-fs { width: 44px; height: 44px; padding: 0; align-self: center; display: grid; place-items: center; color: var(--mute); }
.btn-fs svg { width: 20px; height: 20px; }
.btn-fs.is-on { color: var(--amber); }
.fb-exit.btn-fs { padding: 0; }
.btn-focus svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .fb-tabs button span { display: none; } .fb-score span { display: none; } }
@media (max-width: 600px) {
  body.is-focus { grid-template-rows: auto minmax(0, 1fr); }
  .focusbar { order: 1; gap: 8px; flex-wrap: wrap; row-gap: 6px; }
  .fb-clock .status-pill { display: none; }
  .fb-clock b { font-size: 28px; }
  .fb-ctrl { order: 3; width: 100%; }
  .fb-ctrl .fb-endp { flex: 1; }
  .fb-div { margin-left: auto; }
  .fb-exit span { display: none; }
}
.tile__name { font-size: 11px; padding-right: 24px; overflow-wrap: normal; }

/* ---------- rotations fit one screen ---------- */
.form-chip { min-height: 32px; padding: 0 8px; font-size: 18px; }
.pitch-h { margin-bottom: 6px; gap: 10px; }
.pitch-h .count-led { font-size: 28px; }
.gfilter { margin: 0 0 6px; gap: 5px; }
.gfilter button { min-height: 30px; padding: 0 8px; gap: 5px; font-size: 9.5px; }
.gfilter button b { font-size: 15px; }
.bench .zone-h { margin-bottom: 6px; align-items: center; }
.bench .zone-h h2 { font-size: 22px; }
.hint { min-height: 40px; }

/* portrait: bench wraps into rows instead of a sideways-scrolling strip */
.rot.is-portrait .bench .grid { display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: hidden; }
.rot.is-portrait .bench .grid .tile { flex: none; }
.rot.is-portrait .gdiv { display: none; }

/* bench density levels (fitBench) */
.tile__short { display: none; }
.rot.bench-d1 .bench .grid { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.bench-d1 .bench .tile { min-height: 58px; padding: 5px 9px 8px 5px; column-gap: 7px; }
.bench-d1 .bench .tile__num { font-size: 34px; }
.bench-d1 .bench .tile__name { display: none; }
.bench-d1 .bench .tile__short { display: block; grid-area: name; padding-right: 22px; font: 600 11px/1.1 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; }
.bench-d1 .bench .tile__time { font-size: 18px; }
.bench-d1 .bench .tile__rest { font-size: 8.5px; }
.bench-d1 .gdiv { margin-top: 2px; font-size: 9px; }
.rot.bench-d2 .bench .grid { gap: 5px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bench-d2 .bench .tile { min-height: 42px; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num name time"; align-items: center; padding: 3px 8px 5px 5px; }
.bench-d2 .bench .tile__rest, .bench-d2 .bench .tile__pos { display: none; }
.bench-d2 .bench .tile__num { font-size: 26px; }
.bench-d2 .bench .tile__time { font-size: 16px; }
.bench-d2 .gdiv { display: none; }
.bench-d2 .tile__susp { position: static; grid-column: 1 / -1; text-align: left; }
.rot.bench-d3 .bench .grid { gap: 4px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.bench-d3 .bench .tile { min-height: 40px; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num name" "num time"; align-items: center; row-gap: 1px; column-gap: 5px; padding: 3px 6px 5px 4px; }
.bench-d3 .bench .tile__num { font-size: 24px; }
.bench-d3 .bench .tile__name, .bench-d3 .bench .tile__rest, .bench-d3 .bench .tile__pos, .bench-d3 .gdiv { display: none; }
.bench-d3 .bench .tile__short { display: block; grid-area: name; font: 600 9.5px/1.05 var(--f-mono); text-transform: uppercase; }
.bench-d3 .bench .tile__time { font-size: 13px; }
.bench-d3 .tile__susp { position: static; grid-column: 1 / -1; font-size: 8px; text-align: left; }
.rot.is-pre .subs-feed { display: none; }

/* ---------- rival mode (long press on Estadísticas) ---------- */
.stats { -webkit-touch-callout: none; }
.rival-banner { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 8px 14px; border: 1px solid var(--cyan); border-radius: var(--r); background: color-mix(in srgb, var(--cyan) 12%, var(--panel)); color: var(--cyan); }
.rival-banner b { font: 400 20px/1 var(--f-slate); letter-spacing: .06em; text-transform: uppercase; }
.rival-banner span { font-size: 12px; color: var(--bone); }
.stats.is-rival { grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "banner banner" "targets actions" "feed feed"; }
.stats.is-rival .rival-banner { grid-area: banner; }
.stats.is-rival .targets { opacity: .35; filter: saturate(.3); pointer-events: none; }
.stats.is-rival .stat-btn { border-color: color-mix(in srgb, var(--cyan) 55%, var(--line-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 25%, transparent); }
.stats.is-rival .armed-for { color: var(--cyan); }
@media (orientation: portrait) and (max-width: 999px) {
  .stats.is-rival { grid-template-rows: auto minmax(0, 1fr) minmax(0, 1.15fr) auto; grid-template-areas: "banner" "targets" "actions" "feed"; }
}

/* ---------- quick action ring (double tap on the pitch) ---------- */
.quick { position: fixed; inset: 0; z-index: 72; }
.quick[hidden] { display: none; }
.quick__scrim { position: absolute; inset: 0; background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), rgba(0, 0, 0, .35), rgba(0, 0, 0, .65)); animation: fade .15s ease-out both; }
.quick__ring { position: absolute; width: 0; height: 0; }
.quick__center, .quick__item { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; }
.quick__center { width: 84px; height: 84px; transform: translate(-50%, -50%); background: var(--sel-bg); border: 2px solid var(--amber); box-shadow: var(--glow-a); color: var(--amber); }
.quick__center b { font: 400 40px/.8 var(--f-led); font-weight: 400; }
.quick__center small { max-width: 72px; font: 700 8.5px/1.1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bone); text-align: center; }
.quick__item {
  width: 70px; height: 70px; padding: 6px; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--bone); box-shadow: var(--shadow);
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
  animation: quick-in .22s cubic-bezier(.2, 0, 0, 1) both; animation-delay: calc(var(--i) * 18ms);
  transition-property: scale, background-color; transition-duration: .12s;
}
.quick__item span { font: 700 8.5px/1.1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; text-align: center; overflow-wrap: break-word; }
.quick__item em { position: absolute; top: -4px; right: -2px; padding: 1px 5px; border-radius: 4px; background: var(--amber); color: var(--on-amber); font: 400 14px/1 var(--f-led); font-style: normal; }
.quick__item[data-tone="goal"] { border-color: var(--pink); color: var(--pink); }
.quick__item[data-tone="good"] { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--phos) 40%, transparent); }
.quick__item[data-tone="bad"] { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tally) 40%, transparent); }
.quick__item[data-tone^="card"] { background: color-mix(in srgb, var(--c) 22%, var(--panel-3)); border-color: var(--c); }
.quick__item:active { scale: .96; background: var(--sel-bg); }
@keyframes quick-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.25); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .quick__item { animation: none; } }

/* ---------- player card (long press) ---------- */
.pcard { border-top: 3px solid var(--gc, var(--phos)); }
.pc-h { align-items: flex-start; }
.pc-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pc-num { font: 400 64px/.8 var(--f-led); color: var(--phos); text-shadow: var(--glow-p); font-weight: 400; }
.pc-id h2 { font: 400 26px/1.05 var(--f-slate); letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; }
.pc-id .kicker { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.pc-g { width: 8px; height: 8px; border-radius: 2px; background: var(--gc); }
.pc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.pc-kpi { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--sunk); }
.pc-kpi b { font: 400 32px/.8 var(--f-led); color: var(--amber); font-weight: 400; }
.pc-kpi.is-live b { color: var(--phos); text-shadow: var(--glow-p); }
.pc-stints { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font: 400 18px/1 var(--f-led); color: var(--bone); }
.pc-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-stat { padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 5px; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.pc-stat b { font: 400 17px/1 var(--f-led); color: var(--amber); margin-left: 4px; font-weight: 400; }
.pc-actions .btn { min-height: 46px; }
.pc-card { border-left: 6px solid var(--c); }
@media (max-width: 600px) { .pc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- help ---------- */
.btn-help { width: 44px; height: 44px; padding: 0; align-self: center; border-radius: 50%; font: 400 24px/1 var(--f-led); color: var(--mute); }
.fb-help { min-width: 44px; padding: 0; font: 400 22px/1 var(--f-led); }
.help { gap: 10px; }
.help-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; flex: none; }
.help-nav button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sunk); font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.help-nav button:hover { color: var(--phos); border-color: var(--phos-dim); }
.help-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; }
.help-sec { padding: 14px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 4px; }
.help-sec:first-child { border-top: 0; padding-top: 4px; }
.help-sec h3 { margin: 0 0 10px; font: 400 22px/1 var(--f-slate); letter-spacing: .04em; text-transform: uppercase; color: var(--phos); }
.help-sec dl { margin: 0; display: grid; gap: 10px; }
.help-sec dl > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 14px; }
.help-sec dt { font: 700 11px/1.35 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bone); }
.help-sec dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mute); max-width: 68ch; }
.help-foot { margin-top: 14px; }
@media (max-width: 600px) { .help-sec dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; } .btn-help { width: 40px; height: 40px; } }

/* phones: roster and group rows break into two lines so names stay readable */
@media (max-width: 700px) {
  .roster-table--groups .rt-head { display: none; }
  .roster-table--groups .rt-row { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) 76px 40px; grid-template-areas: "num name name name del" "num pos group max del"; row-gap: 0; }
  .roster-table--groups .rt-row .inp { height: 40px; }
  .roster-table--groups [data-field=num] { grid-area: num; }
  .roster-table--groups [data-field=name] { grid-area: name; }
  .roster-table--groups [data-field=pos] { grid-area: pos; font-size: 13px; }
  .roster-table--groups [data-field=group] { grid-area: group; }
  .roster-table--groups .max-in { grid-area: max; }
  .roster-table--groups [data-act=delp] { grid-area: del; }
  .group-row { grid-template-columns: 44px minmax(0, 1fr) 76px 44px; grid-template-areas: "sw name name del" "sw short max del"; gap: 4px 8px; padding: 4px 0 4px 8px; }
  .group-row .swatch { grid-area: sw; }
  .group-row [data-gfield=name] { grid-area: name; }
  .group-row [data-gfield=short] { grid-area: short; }
  .group-row .max-in { grid-area: max; }
  .group-row [data-act=delgroup] { grid-area: del; }
  .group-count { display: none; }
  .panel-hint { display: block; margin: 4px 0 0; }
}

.zone-h--bench { justify-content: flex-start; align-items: baseline; gap: 10px; }
.squad-link { min-height: 32px; padding: 0 2px; font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-decoration: underline dotted; text-underline-offset: 4px; }
.squad-link span { margin-left: 2px; }
.squad-link:hover, .squad-link:focus-visible { color: var(--phos); }

.spot__back { font: 600 8.5px var(--f-mono) !important; letter-spacing: .12em !important; opacity: .85; }
.tile.is-susp .tile__rest { visibility: hidden; }

/* ---------- matches: filter, results strip, list + minutes ---------- */
.matches { min-height: 100%; }
.matches-h { align-items: center; }
.team-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; }
.chip-f { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sunk); font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition-property: background-color, color, border-color; transition-duration: .15s; }
.chip-f[aria-pressed="true"] { background: var(--phos); border-color: var(--phos); color: var(--on-phos); }
.chip-f:active { scale: .96; }
.chip-crest { width: 20px; height: 20px; object-fit: contain; }
.season-kpis:empty { display: none; }
.season-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--inner); }
.season-kpi { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-left: 1px solid var(--line); }
.season-kpi:first-child { border-left: 0; }
.season-kpi b { font: 400 34px/.8 var(--f-led); color: var(--amber); font-weight: 400; }
.season-kpi b i { font-style: normal; color: var(--mute); margin: 0 2px; }
.season-kpi.is-w b { color: var(--phos); }
.season-kpi.is-l b { color: var(--tally); }
@media (max-width: 700px) { .season-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .season-kpi:nth-child(4) { border-left: 0; } .season-kpi:nth-child(n + 4) { border-top: 1px solid var(--line); } }
.matches-body { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .matches-body.has-season { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } .season { position: sticky; top: 0; } }
.match__side { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.match__side .match__del { pointer-events: auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--mute); }
.match__del:hover, .match__del:focus-visible { color: var(--tally); border-color: var(--tally); }
.ico-trash { width: 18px; height: 18px; }
.season { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--inner); }
.season[hidden] { display: none; }
.season__h { display: flex; align-items: baseline; justify-content: space-between; font: 600 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.season__h small { font: 500 10px var(--f-mono); letter-spacing: .08em; text-transform: none; }
.season-min { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 62vh; overflow-y: auto; }
.season-min li { display: grid; grid-template-columns: 34px minmax(0, 7.5em) minmax(40px, 1fr) auto; align-items: center; gap: 10px; min-height: 30px; padding-left: 8px; box-shadow: inset 3px 0 0 var(--gc, transparent); }
.season-min__num { font: 400 22px/1 var(--f-led); color: var(--phos); font-weight: 400; text-align: right; }
.season-min__name { font: 600 11px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-min__bar { height: 6px; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.season-min__bar i { display: block; height: 100%; width: var(--w); background: var(--gc, var(--phos)); }
.season-min__v { font: 400 20px/1 var(--f-led); color: var(--amber); white-space: nowrap; }
.season-min__v small { margin-left: 6px; font: 500 10px var(--f-mono); color: var(--mute); }
.storage-line { position: sticky; bottom: -1px; z-index: 3; margin-top: auto; padding: 10px 2px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); font-size: 11.5px; }
.storage-line .warn { color: var(--amber); }
.storage-line .ok { color: var(--phos); }

/* ---------- button icons ---------- */
.bi { width: 16px; height: 16px; flex: none; }
.btn.has-bi, .btn-ghost.has-bi, .btn-play.has-bi { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.end-col .btn-ghost .bi { width: 13px; height: 13px; }
.btn-play .bi { width: 20px; height: 20px; }
.setup-nav button { justify-content: flex-start; gap: 12px; }
.setup-nav button small { margin-left: auto; }
.nav-ico { width: 18px; height: 18px; opacity: .9; }
@media (min-width: 601px) { .tabs .tab-ico { display: inline-block; width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; } }
#view:has(> .matches) { padding-bottom: env(safe-area-inset-bottom); }
.matches > .storage-line { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .end-col .bi { display: none; }
  .storage-line { font-size: 10.5px; gap: 6px; }
  .storage-line .warn { display: none; }
}

/* ---------- scoreboard: roomier control groups ---------- */
.scoreboard { gap: clamp(16px, 2.6vw, 40px); }
.sb-ctrl { gap: 12px; }
.sb-tools { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.btn-ghost.sb-tool { width: 44px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 8px; color: var(--mute); }
.btn-ghost.sb-tool svg { width: 18px; height: 18px; }
.btn-ghost.sb-tool:hover { color: var(--bone); }
.sb-extra { height: 50px; padding: 0 16px; }
.tabs .tab-help { flex: none; display: flex; align-items: center; justify-content: center; padding: 0 22px; border-left: 1px solid var(--line-2); font: 600 11px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.tabs .tab-help:hover { color: var(--bone); }
@media (max-width: 1020px) { .tabs .tab-help .tab-label { display: none; } .tabs .tab-help { padding: 0 18px; } }
@media (max-width: 600px) { body:not(.is-live) .tabs .tab-help { display: none; } .sb-tools { flex-direction: row; padding-left: 8px; } .btn-ghost.sb-tool { width: 40px; height: 40px; } }
.fb-finish { color: var(--tally); border-color: color-mix(in srgb, var(--tally) 45%, var(--line-2)); }
.fb-finish .bi { width: 16px; height: 16px; }
.fb-new { background: var(--phos); border-color: var(--phos); color: var(--on-phos); }
@media (max-width: 600px) { .fb-finish span { display: none; } }
@media (max-width: 600px) {
  .sb-ctrl { flex-wrap: wrap; gap: 8px; }
  .sb-ctrl .btn-play { order: 1; flex: 1 1 0; }
  .sb-ctrl .sb-tools { order: 2; border-left: 0; padding-left: 0; }
  .sb-ctrl .adj { order: 3; flex: 1 1 36%; flex-direction: row; }
  .sb-ctrl .adj .btn-ghost { flex: 1; height: 44px; }
  .sb-ctrl .end-col { order: 4; flex: 1 1 56%; flex-direction: row; }
  .sb-ctrl .end-col .btn-ghost { flex: 1; height: 44px; }
  .sb-ctrl .sb-extra { order: 3; flex: 1 1 100%; height: 44px; }
}

/* ---------- easter egg ---------- */
.egg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 70%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .78)); animation: egg-in .3s ease-out both; cursor: pointer; }
.egg.out { animation: egg-out .4s ease-in forwards; }
.egg__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.egg__board { display: flex; flex-direction: column; align-items: center; gap: 18px; transform-origin: 50% 100%; animation: egg-rise .8s cubic-bezier(.2, .9, .3, 1.25) both, egg-sway 1.6s ease-in-out .8s infinite; }
.egg.out .egg__board { animation: egg-drop .4s ease-in forwards; }
.egg .bm-slot { width: min(46vw, 300px); height: auto; cursor: pointer; }
.egg .bm-svg { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--phos) 60%, transparent)); }
.egg__cap { font: 400 clamp(22px, 4vw, 34px)/1 var(--f-led); letter-spacing: .08em; color: var(--amber); text-shadow: var(--glow-a); text-transform: uppercase; }
@keyframes egg-in { from { opacity: 0; } }
@keyframes egg-out { to { opacity: 0; } }
@keyframes egg-rise { from { transform: translateY(75vh) rotate(-8deg); } }
@keyframes egg-sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
@keyframes egg-drop { to { transform: translateY(80vh) rotate(6deg); } }
.egg-wave { animation: egg-wave .9s cubic-bezier(.3, 0, .3, 1) var(--egg-d, 0ms) both; }
@keyframes egg-wave { 0%, 100% { translate: 0 0; } 35% { translate: 0 -22px; } 60% { translate: 0 5px; } }
@media (prefers-reduced-motion: reduce) { .egg__board { animation: none; } .egg.out .egg__board { animation: none; } }

/* live: the rotations hint only shows while picking someone, floating so nothing reflows */
.rot { position: relative; }
.rot:not(.is-pre):not(.has-sel) .hint { display: none; }
.rot:not(.is-pre).has-sel .hint { position: absolute; top: 0; left: 0; right: 0; z-index: 20; box-shadow: var(--shadow), var(--glow-a); animation: hint-in .18s ease-out; }
@keyframes hint-in { from { opacity: 0; translate: 0 -6px; } }
.count b { font-weight: 400; }
.count small { font: 600 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 1020px) { .count small { display: none; } }
