/* Cricket Manager, "Card Room": ink outlines, hard shadows, cobalt for you, orange for them, sun for what's picked.
   Light by default; a dark theme via [data-theme=dark]. */
:root {
  --bg: #e8eaee; --bg2: #dfe2e8;
  --panel: #ffffff; --panelSolid: #ffffff; --raise: #f3f4f7; --raise2: #e9ebf0;
  --line: #e1e4ea; --line2: #c3c7d0; --edge: #111318; --shadowC: #111318;
  --ink: #111318; --ink2: #3e4450; --muted: #5f6672; --faint: #8f95a0;
  --accent: #2340ff; --accentInk: #ffffff; --accentText: #2340ff; --accentGlow: rgba(35, 64, 255, .18); --accentWash: #e6eaff;
  --sun: #ffd000; --sunWash: #fffbe0; --orange: #ff6a13; --orangeText: #b84200; --orangeWash: #fff1e8; --wicket: #e0243b;
  --cyan: #2340ff; --link: #2340ff;
  --good: #2340ff; --bad: #c2410c; --warn: #a15c00; --draw: #8f95a0;
  --test: #111318; --odi: #2340ff; --t20: #ffd000; --icc: #7a3cff; --league: #8f95a0; --block: rgba(255, 106, 19, .10);
  --mine: #fff6c2; --mineLine: #ffd000;
  --r1: #ff6a13; --r2: #ffa24d; --r3: #c3c7d0; --r4: #8c9bff; --r5: #2340ff;
  --shadow: 4px 4px 0 var(--shadowC);
  --side: #111318; --sideInk: #e4e7ec; --sideMuted: #8f96a3; --sideLine: #4a505c;
  --display: "Bricolage Grotesque", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1014; --bg2: #15181e;
  --panel: #1a1d24; --panelSolid: #1a1d24; --raise: #22262e; --raise2: #2a2f38;
  --line: #2c313a; --line2: #474d59; --edge: #5a6170; --shadowC: #000000;
  --ink: #f2f3f5; --ink2: #c9cdd5; --muted: #9aa0ab; --faint: #6b717c;
  --accent: #4a63ff; --accentInk: #ffffff; --accentText: #8fa0ff; --accentGlow: rgba(74, 99, 255, .3); --accentWash: #1f2650;
  --sunWash: #2e2a12; --orangeText: #ff9a5c; --orangeWash: #33200f;
  --cyan: #6f86ff; --link: #8fa0ff;
  --good: #8fa0ff; --bad: #ff8a5c; --warn: #f0b44c;
  --test: #f2f3f5; --odi: #4a63ff;
  --mine: #2e2a12;
  --r3: #6b717c; --r4: #7f92ff; --r5: #4a63ff;
  --side: #08090c; --sideLine: #3a404b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; font: 14px/1.5 var(--body); color: var(--ink); background: var(--bg); min-height: 100vh;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
a { color: var(--link); cursor: pointer; text-decoration: none; }
a:hover { color: var(--ink); }
svg[viewBox="0 0 24 24"] { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }  /* icons only, not charts */
::selection { background: var(--sun); color: #111318; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ── controls ─────────────────────────────────────────────────────────────── */
input, select, button { font: inherit; color: inherit; }
input, select {
  background: var(--panel); border: 2px solid var(--edge); border-radius: 9px; padding: 6px 10px; outline: none;
  transition: border-color .15s, box-shadow .15s; min-width: 0; font-weight: 500;
}
select { padding-right: 26px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 13px) 52%, calc(100% - 9px) 52%; background-size: 4px 4px; background-repeat: no-repeat; }
select option, select optgroup { background: var(--panelSolid); color: var(--ink); }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentGlow); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
button { cursor: pointer; border: 2px solid var(--edge); background: var(--panel); border-radius: 10px; padding: 6px 12px; transition: transform .1s, box-shadow .1s, background .12s;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink); box-shadow: 2px 2px 0 var(--shadowC); }
button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadowC); }
button:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--shadowC); }
button:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
button.ghost { background: transparent; box-shadow: none; border-color: var(--line2); }
button.ghost:hover { border-color: var(--edge); transform: none; box-shadow: none; }
button.sm { padding: 4px 9px; font-size: 12px; border-radius: 8px; box-shadow: 2px 2px 0 var(--shadowC); }
button.ghost.sm { box-shadow: none; }
button.go, .btnGo {
  background: var(--accent); color: var(--accentInk); border: 2px solid var(--edge); font-weight: 700; padding: 8px 16px; border-radius: 10px;
  box-shadow: 3px 3px 0 var(--shadowC);
}
button.go:hover { box-shadow: 4px 4px 0 var(--shadowC); }
button.go svg { fill: currentColor; stroke: none; width: 12px; height: 12px; }
button.go.big { font-size: 16px; padding: 12px 22px; font-family: var(--display); font-weight: 800; letter-spacing: 0; }
.iconBtn { padding: 7px; border-radius: 10px; background: var(--panel); color: var(--ink); box-shadow: none; }
.iconBtn:hover { transform: none; box-shadow: 2px 2px 0 var(--shadowC); }
.seg { display: inline-flex; border: 2px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--panel); flex-wrap: wrap; }
.seg button { border: none; border-right: 1.5px solid var(--edge); border-radius: 0; background: transparent; padding: 7px 12px; color: var(--ink); font-weight: 700; font-size: 12.5px; box-shadow: none; }
.seg button:last-child { border-right: none; }
.seg button:hover { background: var(--raise); transform: none; box-shadow: none; }
.seg button.on { background: var(--ink); color: var(--panel); }
.seg button .n { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.search { position: relative; display: inline-flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--muted); width: 14px; height: 14px; pointer-events: none; }
.search input { padding-left: 30px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.toolbar .count { color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.linkBtn { font-size: 12.5px; font-weight: 700; color: var(--accentText); cursor: pointer; }
.linkBtn:hover { color: var(--ink); }

/* ── start: the launcher, a floodlit ground at night whatever the theme ───── */
.launcher {
  --bg: #0b1210; --bg2: #101a17;
  --panel: #161c22; --panelSolid: #161c22; --raise: #1f262e; --raise2: #28303a;
  --line: #2a323c; --line2: #424b57; --edge: #5a6170; --shadowC: #000000;
  --ink: #f2f3f5; --ink2: #c9cdd5; --muted: #9aa0ab; --faint: #6b717c;
  --accent: #4a63ff; --accentText: #8fa0ff; --accentGlow: rgba(74, 99, 255, .3); --accentWash: #1f2650;
  --link: #8fa0ff; --good: #8fa0ff; --bad: #ff8a5c; --warn: #f0b44c;
  color-scheme: dark; color: var(--ink);
  position: relative; min-height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  background: radial-gradient(120% 80% at 70% 0%, #1b2a3a 0%, #0c1419 55%, #070b0d 100%);
}
.lnSky { position: absolute; inset: 0; pointer-events: none; }
.lnLight { position: absolute; top: -120px; width: 520px; height: 520px; border-radius: 50%; filter: blur(10px);
  background: radial-gradient(circle, rgba(255, 246, 214, .34) 0%, rgba(255, 230, 160, .10) 35%, transparent 68%); }
.lnLight.l1 { left: 34%; } .lnLight.l2 { right: -140px; top: -80px; }
.lnOval { position: absolute; left: 50%; bottom: -62vh; width: 150vw; height: 100vh; transform: translateX(-38%); border-radius: 50%;
  background: repeating-linear-gradient(90deg, #12301f 0 70px, #153823 70px 140px);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .05), 0 -40px 120px rgba(80, 160, 90, .18) inset; opacity: .9; }
.lnStrip { position: absolute; left: 62%; bottom: 0; width: 46px; height: 32vh; transform: perspective(500px) rotateX(55deg); transform-origin: bottom;
  background: linear-gradient(#b9a77a, #8e7d55); opacity: .35; border-radius: 3px; }
.lnSide { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; padding: 48px 32px 32px 44px; min-height: 100vh;
  background: linear-gradient(90deg, rgba(5, 8, 10, .92) 0%, rgba(5, 8, 10, .78) 75%, transparent 100%); }
.lnTitle { display: flex; align-items: center; gap: 16px; }
.lnTitle h1 { margin: 0; font: 800 clamp(38px, 4.4vw, 56px)/.9 var(--display); letter-spacing: -.03em; color: #ffffff; }
.lnKicker { font: 700 12px/1 var(--body); letter-spacing: .42em; text-transform: uppercase; color: var(--sun); margin: 0 0 8px 2px; }
.lnBall { position: relative; width: 58px; height: 58px; flex: none; border-radius: 50%; border: 3px solid #000;
  background: radial-gradient(circle at 35% 30%, #ff6b6b 0%, #c8102e 45%, #6d0715 100%); box-shadow: 4px 4px 0 var(--sun); }
.lnBall::before, .lnBall::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 50%; width: 0;
  border-left: 2px dashed rgba(255, 240, 220, .85); transform: translateX(-5px) rotate(28deg); }
.lnBall::after { transform: translateX(3px) rotate(28deg); }
.lnContinue { margin-top: 4px; }
.lnGo { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: var(--sun); color: #111318; border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.lnGo:hover { box-shadow: 6px 6px 0 #000; }
.lnGoText { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lnGoLabel { font: 800 22px/1.05 var(--display); }
.lnGoSub { font-size: 12.5px; font-weight: 600; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lnArrow { font: 800 24px/1 var(--display); transition: transform .15s; }
.lnGo:hover .lnArrow { transform: translateX(4px); }
.lnMenu { display: flex; flex-direction: column; gap: 2px; }
.lnMenu button { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: baseline; gap: 0 8px; width: 100%; text-align: left;
  padding: 10px 12px 10px 16px; border: none; border-radius: 10px; background: transparent; box-shadow: none; color: #d9dde4;
  font: 800 23px/1.15 var(--display); letter-spacing: -.01em; transition: background .15s, color .15s, padding .15s; }
.lnMenu button::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--sun); transform: scaleY(0); transition: transform .15s; }
.lnMenu button:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, .05); color: #ffffff; padding-left: 20px; }
.lnMenu button.on { color: var(--sun); background: rgba(255, 208, 0, .07); }
.lnMenu button:hover::before, .lnMenu button.on::before { transform: scaleY(1); }
.lnMenu .k { font: 600 11px/1 var(--mono); color: var(--faint); }
.lnMenu small { grid-column: 2; font: 500 12px/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
.lnLink { display: block; padding: 6px 16px 6px 54px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lnLink:hover { color: #ffffff; }
#backToGame { margin-top: 10px; } #backToGame.hidden + #quitLink { margin-top: 10px; }
.lnFoot { margin-top: auto; font-size: 12px; color: var(--faint); max-width: 300px; }
.lnPanel { position: relative; z-index: 1; align-self: start; margin: 40px clamp(16px, 3vw, 44px) 40px 8px; padding: 22px;
  background: rgba(20, 26, 32, .86); backdrop-filter: blur(10px); border: 2px solid #2f3843; border-radius: 18px; box-shadow: 8px 8px 0 rgba(0, 0, 0, .55); }
.lnHead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lnHead h2 { margin: 0; font: 800 28px/1 var(--display); letter-spacing: -.02em; color: #ffffff; }
.lnSetting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px; border: 2px solid var(--line2); border-radius: 12px; flex-wrap: wrap; }
.launcher .saveRow { background: rgba(255, 255, 255, .02); transition: border-color .15s, background .15s; }
.launcher .saveRow:hover { border-color: var(--edge); background: rgba(255, 255, 255, .05); }
.launcher .seg button.on, .launcher .grpChip.on { background: var(--sun); color: #111318; }
.launcher .teamGroup a:hover { background: var(--sun); border-color: #000; color: #111318; }
.launcher .grpChip { background: transparent; color: var(--ink); border-color: var(--line2); }
.tpWrap { position: fixed; inset: 0; z-index: 30; overflow: auto; padding: 32px clamp(12px, 3vw, 40px); background: rgba(4, 7, 9, .72);
  backdrop-filter: blur(4px); animation: fade .15s; }
.tpBox { position: relative; max-width: 1180px; margin: 0 auto; padding: 22px 24px; background: #12181e; border: 2px solid #2f3843; border-radius: 18px;
  box-shadow: 8px 8px 0 #000; animation: fadeUp .2s ease-out; }
.tpTop { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--line); }
.tpName { flex: 1; min-width: 200px; }
.tpName h2 { margin: 0 0 4px; font: 800 clamp(26px, 3.4vw, 40px)/1 var(--display); letter-spacing: -.02em; color: #ffffff; }
.tpDiff { display: grid; grid-template-columns: auto auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border: 2px solid var(--dc); border-radius: 12px; }
.tpDiff .k { grid-column: 1 / -1; font: 700 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tpDiff b { font: 800 18px/1 var(--display); color: var(--dc); }
.tpDiff .pips { display: flex; gap: 4px; }
.tpDiff .pips i { width: 14px; height: 18px; border-radius: 3px; background: var(--raise2); }
.tpDiff .pips i.on { background: var(--dc); }
.tpX { position: absolute; right: 14px; top: 14px; }
.tpTiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.tpTile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.tpTile .k { font: 700 10.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tpTile b { font: 800 22px/1.15 var(--display); color: #ffffff; }
.tpTile .s { font-size: 12px; color: var(--muted); }
.tpCols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
.tpCol { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tpCol h4 { margin: 0 0 10px; font: 800 17px/1.1 var(--display); color: #ffffff; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tpCol h4 .sub2 { font: 500 12px/1.3 var(--body); }
.tpPc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpPc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tpPc li { display: flex; flex-direction: column; padding: 8px 10px 8px 12px; border-radius: 10px; border-left: 4px solid; background: rgba(255, 255, 255, .03); font-size: 12.5px; }
.tpPc li b { font-size: 13.5px; color: #ffffff; }
.tpPc li span { color: var(--muted); }
.tpPc li.pro { border-color: #3ecf8e; } .tpPc li.con { border-color: var(--orange); }
.tpPc li.pro b::before { content: "+ "; color: #3ecf8e; } .tpPc li.con b::before { content: "− "; color: var(--orange); }
.tpNone { color: var(--faint); font-size: 12.5px; padding: 6px 2px; }
.tpFmt { display: grid; grid-template-columns: 52px minmax(0, 1fr) 70px 64px; gap: 10px; align-items: center; margin-bottom: 8px; }
.tpFmt .fmt { justify-self: start; }
.tpTrack { position: relative; height: 14px; border-radius: 7px; background: var(--raise); }
.tpRange { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--line2); }
.tpAvg { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--muted); }
.tpMe { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sun); border: 2px solid #000; }
.tpRank, .tpIcc { font-size: 12px; color: var(--muted); white-space: nowrap; } .tpRank b, .tpIcc b { color: #ffffff; }
.tpKey { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.tpKey i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.tpKey i.me { background: var(--sun); border: 1.5px solid #000; } .tpKey i.avg { width: 2px; border-radius: 0; background: var(--muted); } .tpKey i.rng { border-radius: 2px; background: var(--line2); }
.tpTitles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tpCup { padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--sun); color: var(--sun); font-size: 12px; font-weight: 700; background: rgba(255, 208, 0, .08); }
.tpYears { display: flex; flex-direction: column; gap: 4px; }
.tpYear { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 12px; }
.tpYear .y { font-family: var(--mono); color: var(--muted); }
.tpYear .r { font-family: var(--mono); color: var(--ink2); text-align: right; }
.tpWl { display: flex; height: 12px; border-radius: 4px; overflow: hidden; min-width: 4px; }
.tpWl i { min-width: 0; } .tpWl i.w { background: #3ecf8e; } .tpWl i.d { background: var(--faint); } .tpWl i.l { background: var(--orange); }
.tpFam { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tpPl { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tpPl:last-child { border-bottom: none; }
.tpRt { flex: none; width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; font: 700 13px/1 var(--mono); background: var(--raise2); color: #ffffff; }
.tpPi { min-width: 0; display: flex; flex-direction: column; }
.tpPi .sub2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpSm .tpPi { flex-direction: row; gap: 8px; align-items: baseline; } .tpSm .tpRt { height: 24px; font-size: 12px; }
.tpMini h5 { margin: 0 0 4px; font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tpAhead { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tpAhead:last-child { border-bottom: none; }
.tpAhead .dt { font: 600 11.5px/1.5 var(--mono); color: var(--sun); }
.tpAhead div { display: flex; flex-direction: column; min-width: 0; }
.tpFoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--line); flex-wrap: wrap; }
.tpGo { width: auto; min-width: 280px; }
@media (max-width: 860px) {
  .tpCols, .tpPc { grid-template-columns: 1fr; }
  .tpBox { padding: 16px; } .tpWrap { padding: 12px; }
  .tpFmt { grid-template-columns: 46px minmax(0, 1fr) 64px; } .tpIcc { display: none; }
  .tpGo { min-width: 0; flex: 1; }
}
@media (max-width: 860px) {
  .launcher { grid-template-columns: 1fr; }
  .lnSide { min-height: 0; padding: 32px 16px 8px; background: none; gap: 18px; }
  .lnFoot { display: none; }
  .lnPanel { margin: 8px 16px 24px; padding: 16px; }
}
.startBar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.startBar .search { flex: 1; min-width: 220px; } .startBar .search input { width: 100%; padding-top: 9px; padding-bottom: 9px; font-size: 14px; }
.seed { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; } .seed input { width: 70px; }
.teamList { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; max-height: calc(100vh - 210px); overflow: auto; padding-right: 4px; }
.teamGroup h4 { margin: 0 0 6px; font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.teamGroup a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; color: var(--ink); border: 2px solid transparent; font-weight: 600; }
.teamGroup a:hover { background: var(--sun); border-color: var(--edge); color: #111318; }
.startStatus { color: var(--ink2); margin: 12px 2px 0; min-height: 20px; }
.startTabs { margin: 0 0 14px; }
.startPanel .teamList { max-height: calc(100vh - 400px); min-height: 240px; }
#catSeg { margin-bottom: 10px; }
.grpChips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.grpChip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border-width: 1.5px; box-shadow: none; }
.grpChip:hover { transform: none; box-shadow: none; background: var(--raise); }
.grpChip.on { background: var(--ink); color: var(--panel); }
.grpChip .n { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.worldState { margin: 10px 2px 0; min-height: 16px; }
.saveList { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 290px); overflow: auto; padding-right: 4px; }
.saveRow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--line2); border-radius: 12px; }
.saveRow.open { border-color: var(--accent); background: var(--accentWash); }
.saveIcon svg { width: 28px; height: 28px; }
.saveInfo { flex: 1; min-width: 0; }
.saveName { font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.saveBtns { display: flex; gap: 6px; flex: none; }
.startFoot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; }
.startFoot a { color: var(--muted); } .startFoot a:hover { color: var(--ink); }
.startFoot a.hidden + a { margin-left: auto; }
@media (max-width: 600px) { .saveRow { flex-wrap: wrap; } .saveBtns { width: 100%; justify-content: flex-end; } }
.logo { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--sun); border: 2px solid var(--edge); }
.logo::after { content: "WC"; font: 800 12px/1 var(--display); color: #111318; }

/* ── shell ────────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: var(--side); color: var(--sideInk);
  overflow-y: auto; z-index: 25; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-family: var(--display); font-size: 16px; font-weight: 800; color: #ffffff; letter-spacing: -.01em; white-space: nowrap; }
.brand .logo { border-color: #ffffff; }
.brand b { color: #ffffff; font-weight: 800; margin-left: 4px; }
.teamCard { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 2px solid #ffffff; background: #2340ff; color: #ffffff; box-shadow: 3px 3px 0 var(--sun); }
.teamCard:hover { color: #ffffff; filter: brightness(1.08); }
.teamCard .tn { font: 800 16px/1.1 var(--display); } .teamCard .tk { font-size: 11.5px; color: #dce2ff; text-transform: capitalize; font-weight: 600; }
.teamCard .tb { box-shadow: none; border-color: #ffffff; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu .grp { font: 700 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sideMuted); padding: 12px 8px 6px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--sideInk); font-weight: 600; position: relative; }
.menu a svg { color: var(--sideMuted); width: 16px; height: 16px; }
.menu a:hover { background: rgba(255, 255, 255, .08); color: #ffffff; }
.menu a.on { background: var(--sun); color: #111318; box-shadow: 2px 2px 0 #ffffff; }
.menu a.on svg { color: #111318; }
.menu .badge { margin-left: auto; font: 700 11px/1 var(--mono); padding: 3px 7px; border-radius: 20px; background: var(--orange); color: #111318; }
.sideFoot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; font-size: 12px; }
.sideFoot a { color: var(--sideMuted); }
.sideFoot button { color: #ffffff; border-color: var(--sideLine); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 22px 10px 16px;
  background: var(--panel); border-bottom: 2px solid var(--edge); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font: 800 20px/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
.crumbs .sep { color: var(--faint); font-weight: 600; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.crumbs .cur { overflow: hidden; text-overflow: ellipsis; }
.topRight { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lensBox { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--ui, inherit); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lensBox select { font: 600 13px/1.2 inherit; text-transform: none; letter-spacing: 0; padding: 5px 8px; border: 2px solid var(--edge); border-radius: 8px; background: var(--panel); color: var(--ink); }
.rcolsBox { display: inline-flex; align-items: center; gap: 6px; }
.rcolsSeg button { padding: 5px 9px; font-size: 12px; }
.r.hid { min-width: 18px; padding: 0 4px; background: transparent; border: 1.5px dashed var(--edge); color: var(--muted); box-shadow: none; }
.r.hid::before { display: none; }
.fpts { font: 700 12.5px/1 var(--mono); padding: 2px 5px; border-radius: 5px; }
.fpts.up { color: var(--good); } .fpts.down { color: var(--bad); } .fpts.flat { color: var(--muted); }
@media (max-width: 760px) { .lensBox span { display: none; } }
.nextChip { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 6px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--panel); color: var(--ink2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.nextChip:hover { border-color: var(--edge); color: var(--ink); }
.nextChip b { color: var(--ink); }
.nextChip .cd { font: 700 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: var(--sun); color: #111318; }
.nextChip.today .cd { background: var(--wicket); color: #ffffff; animation: pulseRed 1.6s ease-in-out infinite; }
.dateBlock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding: 0 4px; }
.dateBlock b { font: 700 15px/1.1 var(--mono); }
.dateBlock span { font: 700 10.5px/1.3 var(--body); color: var(--muted); letter-spacing: .06em; }
.view { padding: 22px 24px 70px; width: 100%; max-width: 1600px; animation: fadeUp .2s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px var(--accentGlow); } }
@keyframes pulseRed { 50% { box-shadow: 0 0 0 5px rgba(224, 36, 59, 0); } 0% { box-shadow: 0 0 0 0 rgba(224, 36, 59, .5); } }

/* run bar */
.runbar { position: sticky; top: 70px; z-index: 19; display: flex; align-items: center; gap: 18px; padding: 10px 22px; overflow: hidden;
  background: var(--sun); color: #111318; border-bottom: 2px solid var(--edge); font-size: 13px; }
.runbar > b { font: 800 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #111318; animation: blink 1s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.runDate { font: 700 18px/1 var(--mono); min-width: 190px; }
.runDate.tick { animation: tick .25s ease-out; }
@keyframes tick { from { opacity: .3; transform: translateY(-5px); } }
.runStat { color: #3e4450; } .runStat b { font-family: var(--mono); color: #111318; }
.runSweep { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, transparent, #111318, transparent); background-size: 30% 100%; background-repeat: no-repeat; animation: sweep 1.2s linear infinite; }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.stop { background: var(--wicket); color: #fff; font-weight: 700; padding: 6px 12px; }
.stop svg { fill: currentColor; stroke: none; width: 12px; height: 12px; }

/* ── panels & layout ──────────────────────────────────────────────────────── */
.panel { background: var(--panel); border: 2px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; position: relative; }
.pad { padding: 16px 18px; }
.ph { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 17px/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.ph .more { margin-left: auto; font: 700 12.5px/1 var(--body); letter-spacing: 0; color: var(--accentText); }
.ph .more:hover { color: var(--ink); }
.ph .tag { letter-spacing: 0; }
.ph .sub2, .ph .muted, .ph .faint { font-family: var(--body); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.cols3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(220px, 0.8fr); gap: 18px; align-items: start; }
.cols3 #sqSide { position: sticky; top: 86px; }
.star { background: none; border: 0; padding: 0 2px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--faint); box-shadow: none; }
.star:hover { transform: none; box-shadow: none; }
.star.on { color: #d9a400; }
.nameRow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pcName { display: flex; align-items: center; gap: 6px; font: 800 17px/1.15 var(--display); flex-wrap: wrap; }
.pcLine { display: flex; gap: 12px; margin: 8px 0; font-size: 13px; }
.pcRec { font: 500 12px/1.45 var(--mono); color: var(--ink2); margin: 4px 0; }
.pcRatings { margin-top: 10px; border-top: 1px dashed var(--line2); padding-top: 8px; }
.pcRatings.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.rrow { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 3px 0; }
.pickInfo { margin-bottom: 10px; }
.pageHead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pageHead h1 { margin: 0; font: 800 34px/1 var(--display); letter-spacing: -.02em; }
.pageHead .sub { color: var(--muted); margin-top: 6px; }
.pageHead .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; font-size: 13px; }
.note { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 10px 0 0; }
details.explain { margin-top: 12px; border-top: 1.5px dashed var(--line2); padding-top: 10px; color: var(--muted); font-size: 12.5px; }
details.explain summary { cursor: pointer; color: var(--ink); font-weight: 700; list-style: none; display: flex; align-items: center; gap: 6px; }
details.explain summary::before { content: "i"; font: 700 10px/16px var(--mono); width: 18px; height: 18px; line-height: 15px; border-radius: 50%; text-align: center; border: 1.5px solid var(--edge); }
details.explain p { margin: 8px 0 0; line-height: 1.6; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 4px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2.5px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: s .7s linear infinite; vertical-align: -2px; }
@keyframes s { to { transform: rotate(360deg); } }
.skel { height: 120px; border-radius: 14px; background: linear-gradient(90deg, var(--raise), var(--raise2), var(--raise)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── atoms ────────────────────────────────────────────────────────────────── */
.tb { --c: #5b6b85; display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; font: 800 9.5px/1 var(--body); letter-spacing: .02em; color: #fff;
  background: var(--c); border: 1.5px solid var(--edge); }
.tb.lg { width: 56px; height: 56px; border-radius: 12px; font-size: 15px; border-width: 2px; box-shadow: 3px 3px 0 var(--shadowC); }
.tb.md { width: 38px; height: 38px; border-radius: 9px; font-size: 11.5px; border-width: 2px; }
.tb.sm { width: 20px; height: 20px; border-radius: 5px; font-size: 7.5px; border-width: 1px; }
.r { --rc: var(--r3); display: inline-flex; align-items: center; justify-content: center; position: relative; min-width: 32px; height: 21px; padding: 0 5px 0 9px; border-radius: 6px;
  border: 1.5px solid var(--edge); background: var(--panel); color: var(--ink); font: 600 11.5px/1 var(--mono); vertical-align: middle; }
.r::before { content: ""; position: absolute; left: 2px; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--rc); }
.r.t1 { --rc: var(--r1); } .r.t2 { --rc: var(--r2); } .r.t3 { --rc: var(--r3); } .r.t4 { --rc: var(--r4); } .r.t5 { --rc: var(--r5); }
.r.unsure { border-style: dashed; color: var(--muted); }
.r.big { font-size: 17px; min-width: 50px; height: 32px; padding: 0 8px 0 13px; border-radius: 8px; border-width: 2px; }
.r.big::before { width: 4px; left: 3px; top: 3px; bottom: 3px; }
.dash { color: var(--faint); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--edge); font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.chip.warn { color: var(--orangeText); border-color: var(--orange); background: var(--orangeWash); }
.chip.bad { color: #ffffff; border-color: var(--wicket); background: var(--wicket); }
.chip.good { color: var(--accentText); border-color: var(--accent); background: var(--accentWash); }
.chip.acc { color: #111318; border-color: var(--edge); background: var(--sun); }
.fmt { display: inline-block; font: 800 10px/1 var(--body); letter-spacing: .08em; padding: 4px 6px; border-radius: 5px; color: #ffffff; background: var(--fc); text-transform: uppercase; }
.fmt.test { --fc: #111318; } .fmt.odi { --fc: #2340ff; } .fmt.t20 { --fc: #ffd000; color: #111318; }
:root[data-theme="dark"] .fmt.test { background: #f2f3f5; color: #111318; }
.fr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 800 11px/1 var(--body); color: var(--ink); border: 1.5px solid var(--edge); background: var(--panel); }
.fr.W { background: #2340ff; color: #ffffff; } .fr.L { background: var(--orange); color: #111318; }
.fr.D, .fr.T { background: var(--panel); } .fr.A { color: var(--muted); } .fr.none { border-style: dashed; border-color: var(--line2); color: var(--faint); }
.form { display: inline-flex; gap: 3px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 10px; background: var(--raise); }
.kpi .k { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font: 700 26px/1.15 var(--mono); letter-spacing: -.02em; margin-top: 6px; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.meter { height: 7px; border-radius: 6px; background: var(--raise2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--mc, var(--accent)); }
.pname { font-weight: 700; color: var(--ink); }
a.pname:hover { color: var(--accentText); }
.sub2 { font-size: 12px; color: var(--muted); }
.wk { font: 800 9.5px/1 var(--body); padding: 3px 5px; border-radius: 5px; background: var(--ink); color: var(--panel); letter-spacing: .05em; vertical-align: 1px; }

/* ── tables ───────────────────────────────────────────────────────────────── */
.tableWrap { overflow: auto; max-height: 74vh; border-radius: 14px; border: 2px solid var(--edge); background: var(--panel); box-shadow: var(--shadow); }
.tableWrap.flat { border: none; background: transparent; border-radius: 0; max-height: none; box-shadow: none; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th, table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th { position: sticky; top: 0; z-index: 2; background: var(--panelSolid); color: var(--muted); font: 700 10.5px/1.2 var(--body); letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 2px solid var(--edge); }
table.t th.sort { cursor: pointer; user-select: none; } table.t th.sort:hover { color: var(--ink); }
table.t th.sorted { color: #111318; background: var(--sun); } table.t th.sorted::after { content: " ▾"; }
table.t th.sorted.asc::after { content: " ▴"; }
table.t td.num, table.t th.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
table.t th.num { font-family: var(--body); font-size: 10.5px; }
table.t td.c, table.t th.c { text-align: center; }
table.t tr:last-child td { border-bottom: none; }
table.t tbody tr { transition: background .1s; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--raise); }
table.t tr.mine td { background: var(--mine); font-weight: 600; } table.t tr.mine td:first-child { box-shadow: inset 4px 0 0 var(--sun); }
table.t tr.na td { opacity: .45; }
table.t td.sticky, table.t th.sticky { position: sticky; left: 0; z-index: 1; background: var(--panelSolid); }
table.t th.sticky { z-index: 3; }
table.t tr.click:hover td.sticky { background: var(--raise); }
table.t .grpRow td { background: var(--raise); font: 700 10.5px/1 var(--body); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding: 8px 10px; }
table.t tr.cut td { border-bottom: 2px dashed var(--sun); }
.rank { font-family: var(--mono); color: var(--muted); font-size: 12px; font-weight: 600; }

/* ── fixtures & results ───────────────────────────────────────────────────── */
.fx { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; transition: background .12s; }
.fx:hover { background: var(--raise); }
.fx:last-child { border-bottom: none; }
.fxDate { text-align: center; line-height: 1; padding: 6px 0; border-radius: 9px; background: var(--panel); border: 1.5px solid var(--edge); }
.fxDate b { display: block; font: 700 18px/1 var(--mono); }
.fxDate span { font: 700 9.5px/1.5 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fxTeams { min-width: 0; }
.fxTeams .ln { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fxTeams .ln + .ln { margin-top: 4px; }
.fxTeams .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxTeams .ln.won .nm { color: var(--ink); } .fxTeams .ln.lost .nm { color: var(--muted); font-weight: 500; }
.fxTeams .sc { margin-left: auto; font: 600 12.5px/1 var(--mono); color: var(--ink2); padding-left: 8px; white-space: nowrap; }
.fxTeams .ln.won .sc { color: var(--ink); font-weight: 700; }
.fxMeta { font-size: 12px; color: var(--muted); margin-top: 5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fxSide { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fxRes { font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.fx.win .fxRes { color: var(--accentText); font-weight: 700; } .fx.loss .fxRes { color: var(--orangeText); font-weight: 700; }
.fxSide .txt { font-size: 12px; color: var(--ink2); font-weight: 600; }
.dayHead { font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 6px 6px; }

/* ── home ─────────────────────────────────────────────────────────────────── */
.hero { padding: 20px 22px; overflow: hidden; }
.heroTop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.heroTop .ph { margin: 0; }
.heroTop .when { margin-left: auto; font: 700 13px/1 var(--mono); color: var(--ink); }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 20px 0 18px; position: relative; z-index: 1; }
.matchup .side1, .matchup .side2 { display: flex; align-items: center; gap: 14px; min-width: 0; }
.matchup .side2 { flex-direction: row-reverse; text-align: right; }
.matchup .tname { font: 800 clamp(22px, 2.5vw, 32px)/1 var(--display); letter-spacing: -.02em; }
.matchup .tsub { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }
.matchup .vs { text-align: center; background: var(--sun); color: #111318; border: 2px solid var(--edge); border-radius: 14px; padding: 10px 16px; box-shadow: 3px 3px 0 var(--shadowC); transform: rotate(-2deg); }
.matchup .vs .big { font: 800 40px/.95 var(--display); }
.matchup .vs .lbl { font: 800 10.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.matchup .vs.today { background: var(--wicket); color: #ffffff; animation: pulseRed 1.6s ease-in-out infinite; }
.heroGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; }
.hero .heroGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini { padding: 12px; border-radius: 10px; background: var(--raise); min-width: 0; }
.mini .k { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 6px; }
.mini .row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.mini .row2 + .row2 { margin-top: 6px; }
.h2hBar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--raise2); margin: 8px 0 6px; border: 1.5px solid var(--edge); }
.h2hBar i { display: block; height: 100%; }
.cond { display: grid; grid-template-columns: 62px 1fr 38px; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; }
.cond + .cond { margin-top: 6px; }
.cond .lab { color: var(--ink2); }
.cond .track { position: relative; height: 8px; border-radius: 6px; background: var(--raise2); }
.cond .track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--edge); }
.cond .track i { position: absolute; top: 0; height: 100%; border-radius: 6px; }
.cond .val { font: 600 11px/1 var(--mono); text-align: right; }
.cond .track b.rng { position: absolute; top: -2px; bottom: -2px; border-radius: 6px; background: var(--ink2); opacity: .2; }
.condKey { margin-top: 6px; }
table.course td, table.course th { padding: 3px 6px; font-size: 12px; }
.threat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.threat + .threat { margin-top: 8px; }
.threat .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.threat .tInfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.threat .pcRec { margin: 1px 0 0; font-size: 11px; }
.todo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--edge); background: var(--panel); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.todo + .todo { margin-top: 8px; }
.todo:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadowC); }
.todo .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--raise); color: var(--ink); flex: none; border: 1.5px solid var(--edge); }
.todo.urgent { background: var(--sun); color: #111318; box-shadow: 3px 3px 0 var(--shadowC); }
.todo.urgent .ic { background: #111318; color: var(--sun); }
.todo .tx { flex: 1; min-width: 0; font-size: 12.5px; } .todo .tx b { display: block; font-size: 14px; }
.todo .arr { color: inherit; }
.leader { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.leader:last-child { border-bottom: none; }
.leader .v { font: 700 15px/1 var(--mono); }
.leader .rank { text-align: center; }
.inboxItem { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.inboxItem:last-child { border-bottom: none; }
.inboxItem .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--raise); color: var(--ink2); border: 1.5px solid var(--line2); }
.inboxItem .ic svg { width: 14px; height: 14px; }
.inboxItem .ic.res { color: var(--accentText); } .inboxItem .ic.sq { color: var(--ink); } .inboxItem .ic.pl { color: var(--orangeText); } .inboxItem .ic.cal { color: var(--icc); }
.inboxItem time { font: 500 11px/1 var(--mono); color: var(--muted); }
.inboxItem.new .tx { color: var(--ink); font-weight: 700; }
.inboxItem.new .ic { border-color: var(--accent); background: var(--accentWash); }
.miniTable td, .miniTable th { padding: 6px 8px !important; }
.tableName { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-weight: 700; }
.tableName .pos { margin-left: auto; font: 700 13px/1 var(--mono); color: var(--ink); }

/* match day */
.matchDay { box-shadow: 5px 5px 0 var(--shadowC); }
.liveTag { display: inline-flex; align-items: center; gap: 7px; font: 800 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: var(--wicket); color: #ffffff; }
.liveTag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ffffff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.mdGame + .mdGame { margin-top: 22px; padding-top: 22px; border-top: 2px dashed var(--line2); }
.mdFoot { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.mdFoot .muted { font-size: 12.5px; }

/* lineup editor */
.lu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; margin-top: 14px; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 10px; font-size: 12px; color: var(--muted); }
.slots { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 34px 110px minmax(0, 1fr) 40px 24px; gap: 9px; align-items: center; padding: 8px 10px; margin-bottom: 7px; border-radius: 12px;
  border: 2px solid var(--edge); background: var(--panel); cursor: pointer; box-shadow: 2px 2px 0 var(--shadowC); transition: transform .12s, box-shadow .12s, background .12s; }
.slot:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadowC); }
.slot.on { background: var(--sunWash); outline: 3px solid var(--sun); outline-offset: 1px; }
.slot.over { background: var(--accentWash); transform: scale(1.01); }
.slot .sn { font: 800 20px/1 var(--display); color: var(--ink); text-align: center; }
.slot select { padding: 3px 22px 3px 8px; font-size: 11.5px; border-radius: 7px; width: 100%; font-weight: 600; }
.slot .pl { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.slot .pl .ln1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.slot .pl .ln1 .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 15px/1.15 var(--display); }
.slot .pl .ln1 .rs { margin-left: auto; display: flex; gap: 4px; flex: none; }
.slot .pl .pcRec { margin: 1px 0; font-size: 11px; }
.slot .warn { color: var(--orangeText); font-size: 11.5px; font-weight: 700; }
.slot .auto { color: var(--muted); font-size: 11.5px; }
.slot .x { color: var(--muted); display: grid; place-items: center; } .slot .x:hover { color: var(--wicket); }
.slot .x svg { width: 15px; height: 15px; }
.slot .sn { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.slot .mv { display: flex; gap: 1px; }
.slot .mv button { padding: 0 3px; border: 0; background: none; box-shadow: none; color: var(--muted); font-size: 9px; line-height: 1.2; cursor: pointer; }
.slot .mv button:hover:not([disabled]) { color: var(--ink); transform: none; }
.slot .mv button[disabled] { opacity: .25; cursor: default; }
.posLine { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.posStrip { display: inline-flex; gap: 2px; flex: none; }
.posStrip i { display: grid; place-items: center; width: 17px; height: 15px; border-radius: 4px; font: 700 9px/1 var(--mono); font-style: normal; color: var(--ink);
  background: color-mix(in srgb, var(--rc) 45%, transparent); border: 1.5px solid transparent; }
.posStrip i.us { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 1px; }
.posStrip i.cur { border-color: var(--ink); }
.bpT .hc.us { text-decoration: underline; text-decoration-thickness: 2px; }
.bpT .bpParts { display: block; margin-top: 3px; font: 600 10px/1 var(--mono); color: var(--muted); text-align: center; }
.roleWrap { position: relative; min-width: 0; }
.roleBtn { display: flex; align-items: center; justify-content: space-between; gap: 2px; width: 100%; padding: 6px 5px 6px 9px; border-radius: 8px;
  border: 1.5px solid var(--edge); background: var(--raise); color: var(--ink); font: 700 12px/1.2 var(--body); cursor: pointer; box-shadow: none; }
.roleBtn:hover { transform: none; box-shadow: none; background: var(--raise2); }
.roleBtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .7; flex: none; }
.roleBtn.r-opener { color: var(--accentText); } .roleBtn.r-allrounder { color: var(--ink); }
.roleBtn.r-pacer, .roleBtn.r-spinner { color: var(--orangeText); }
.roleMenu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 260px; padding: 4px; border-radius: 12px; background: var(--panelSolid);
  border: 2px solid var(--edge); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.roleMenu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; font-size: 12.5px; box-shadow: none; }
.roleMenu button > span:first-child { display: flex; flex-direction: column; gap: 1px; }
.roleMenu button:hover { background: var(--raise); transform: none; box-shadow: none; }
.roleMenu button.on { background: var(--sun); color: #111318; }
.roleMenu .num { font: 700 12px/1 var(--mono); color: inherit; }
.glove { font: 800 10px/1 var(--body); letter-spacing: .05em; padding: 7px 0; border-radius: 7px; border: 1.5px solid var(--line2); background: var(--panel);
  color: var(--muted); cursor: pointer; box-shadow: none; justify-content: center; }
.glove:hover { color: var(--ink); border-color: var(--edge); transform: none; box-shadow: none; }
.glove.on { border-color: var(--edge); color: var(--panel); background: var(--ink); }
.glove.bad { border-color: var(--wicket); color: #ffffff; background: var(--wicket); }
.bowlR { display: inline-flex; align-items: center; gap: 2px; }
.chev { display: inline-block; width: 9px; height: 13px; vertical-align: -2px; }
.chev svg { width: 100%; height: 100%; display: block; }
.chev polyline { fill: none; stroke: var(--line2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chev polyline.on { stroke: var(--orange); }
.balance { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.picker .ph { margin-bottom: 8px; }
.picker .tableWrap { max-height: 470px; box-shadow: none; border-width: 1.5px; }
.picker .mini { border: 2px solid var(--edge); }
.fitBar { display: inline-block; width: 60px; height: 8px; border-radius: 4px; background: var(--raise2); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.fitBar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.recCell { font: 500 11.5px/1.35 var(--mono); color: var(--ink2); white-space: nowrap; }

/* squad */
.sqCount { font: 800 38px/1 var(--display); }
.sqCount small { font-size: 18px; color: var(--muted); }
.balGrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.bal { padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 2px solid var(--edge); text-align: center; }
.bal .k { font: 700 9.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bal .v { font: 700 19px/1.15 var(--mono); margin-top: 4px; }
.bal.low { border-color: var(--orange); background: var(--orangeWash); } .bal.low .v { color: var(--orangeText); }
.saveState { font: 700 11.5px/1 var(--body); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.saveState.ok { color: var(--accentText); } .saveState.bad { color: var(--orangeText); }
.saveState.ok::before { content: "✓"; }
.addBtn, .rmBtn { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 8px; font-weight: 800; font-size: 15px; line-height: 1; }
.addBtn { color: #ffffff; background: var(--accent); }
.rmBtn { color: var(--ink); }
.rmBtn:hover { color: var(--wicket); }

/* player */
.pHero { padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: start; }
.pHeroMain { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.mono2 { width: 56px; height: 56px; flex: none; border-radius: 12px; background: var(--accent); color: #ffffff; border: 2px solid var(--edge); display: inline-grid; place-items: center; font: 800 20px/1 var(--display); }
.mono2.bowl { background: var(--orange); color: #111318; }
.pHero h1 { margin: 0; font: 800 clamp(28px, 3.2vw, 38px)/1 var(--display); letter-spacing: -.02em; }
.pMeta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink2); margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.pMeta span { display: inline-flex; align-items: center; gap: 6px; }
.pTags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pRec { min-width: 0; overflow-x: auto; }
.pRec table.t th, .pRec table.t td { padding: 6px 8px; }
.pRatings { display: grid; grid-template-columns: auto repeat(3, 64px); gap: 6px 10px; align-items: center; text-align: center; }
.pRatings .h { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pRatings .l { text-align: right; font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pRatings .role { font-size: 11px; color: var(--ink2); text-transform: capitalize; }
.tabsBar { display: flex; gap: 6px; margin: 18px 0 18px; border-bottom: 2px solid var(--edge); overflow-x: auto; padding: 0 2px; }
.tabsBar button { border: 2px solid var(--edge); border-bottom: none; border-radius: 10px 10px 0 0; background: var(--raise); padding: 11px 16px; color: var(--ink); font-weight: 700; font-size: 13.5px;
  white-space: nowrap; box-shadow: none; margin-bottom: -2px; }
.tabsBar button:hover { transform: none; box-shadow: none; background: var(--raise2); }
.tabsBar button.on { background: var(--panel); position: relative; }
.tabsBar button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--panel); }
.attrRow { display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.attrRow:last-child { border-bottom: none; }
.attrRow.head { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 0; border-bottom: 2px solid var(--edge); }
.attrCell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.attrMain { display: flex; align-items: center; gap: 8px; }
.attrCell .meter { flex: 1; height: 6px; }
.rnums { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 7px; margin-top: 3px; font: 500 10.5px/1.25 var(--mono); color: var(--muted); white-space: normal; }
.attrCell .rnums { justify-content: flex-start; }
.rnums span { cursor: default; }
.nums-off .rnums, .nums-off .hiddenPanel { display: none; }
/* potential and peak beside a rating (app.js PP): always shown, unlike the numbers above */
.pp { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1px 7px; margin-top: 2px; font: 600 10.5px/1.25 var(--mono); white-space: nowrap; }
.attrCell .pp, .pcLine .pp, .lvRates .pp { justify-content: flex-start; }
.pcLine .pp, .lvRates .pp { display: inline-flex; margin: 0 0 0 5px; }
.pp span { cursor: default; }
.pp .pot { color: var(--good); }
.pp .peak { color: var(--muted); }
.ph .grow { flex: 1; }
label.chk { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink2); cursor: pointer; white-space: nowrap; }
label.chk input { margin: 0; accent-color: var(--accent); }
.heat td.cell { text-align: center; padding: 6px 4px; }
.heat .hc { display: block; padding: 7px 0; border-radius: 7px; font: 700 12px/1 var(--mono); color: var(--ink); background: color-mix(in srgb, var(--rc) var(--a, 18%), transparent); border: 1.5px solid color-mix(in srgb, var(--rc) 60%, transparent); }
.posBar { display: flex; height: 24px; border-radius: 7px; overflow: hidden; background: var(--raise2); border: 1.5px solid var(--edge); }
/* skill bars on the player page: ability filled, now a line, prime a diamond, on one 0-100 scale */
.skb { display: grid; grid-template-columns: 130px minmax(0, 1fr) 190px; gap: 6px 14px; align-items: center; }
.skb .skbHead { font: 700 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 10px; }
.skb .skbName { font-weight: 600; font-size: 13px; }
.skbAxis { position: relative; height: 14px; font: 600 10px/1 var(--mono); color: var(--faint); }
.skbAxis span { position: absolute; transform: translateX(-50%); }
.skbAxis span:first-child { transform: none; } .skbAxis span:last-child { transform: translateX(-100%); }
.skbTrack { position: relative; height: 18px; border-radius: 6px; border: 1.5px solid var(--edge); background: var(--raise2);
  background-image: linear-gradient(90deg, transparent calc(25% - .5px), var(--line2) calc(25% - .5px), var(--line2) calc(25% + .5px), transparent calc(25% + .5px),
    transparent calc(50% - .5px), var(--line2) calc(50% - .5px), var(--line2) calc(50% + .5px), transparent calc(50% + .5px),
    transparent calc(75% - .5px), var(--line2) calc(75% - .5px), var(--line2) calc(75% + .5px), transparent calc(75% + .5px)); }
.skbAb { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px 0 0 4px; background: var(--rc); opacity: .85; }
.skbNow { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 1.5px var(--panel); }
.skbPrime { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg);
  background: var(--sun); border: 1.5px solid var(--edge); }
.skbNums { display: flex; gap: 10px; font: 600 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.skbNums b { color: var(--ink); font-weight: 700; }
.skbNums .up { color: var(--good); } .skbNums .down { color: var(--bad); }
.skbKey { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.skbKey.ab { width: 16px; height: 10px; border-radius: 3px; background: var(--r4); border: 1.5px solid var(--edge); }
.skbKey.now { width: 4px; height: 14px; border-radius: 2px; background: var(--ink); vertical-align: -3px; }
.skbKey.prime { width: 9px; height: 9px; transform: rotate(45deg); background: var(--sun); border: 1.5px solid var(--edge); margin: 0 7px 0 3px; }
@media (max-width: 700px) {
  .skb { grid-template-columns: 92px minmax(0, 1fr); }
  .skb .skbNums { grid-column: 2; margin-top: -2px; }
  .skb .skbAxisPad { display: none; }
}
.posBar i { display: grid; place-items: center; font: 700 10px/1 var(--mono); color: #111318; min-width: 0; overflow: hidden; }
.formBars { display: flex; align-items: flex-end; gap: 5px; height: 130px; border-bottom: 2px solid var(--edge); }
.formBars > div { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.formBars b { font: 700 11px/1 var(--mono); }
.formBars i { display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; background: var(--line2); }
.formBars i.hi { background: var(--accent); }
.formBars i.game { background: var(--sun); outline: 1.5px solid var(--edge); }
.formOpp { display: flex; gap: 5px; margin-top: 4px; }
.formOpp span { flex: 1 1 0; text-align: center; font: 600 9.5px/1.2 var(--body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* chart */
.chart svg { width: 100%; height: auto; }
.chart text { font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 6px; cursor: default; }
.legend .lg.on { background: var(--raise2); color: var(--ink); }
.legend svg { width: 22px; height: 8px; }

/* match page */
.board { padding: 20px 22px; overflow: hidden; }
.boardRow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; }
.boardRow + .boardRow { border-top: 1px solid var(--line); }
.boardRow .tname { font: 800 26px/1.05 var(--display); letter-spacing: -.02em; }
.boardRow .scores { font: 700 26px/1.1 var(--mono); text-align: right; letter-spacing: -.02em; }
.boardRow .scores small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.boardRow.lost .tname, .boardRow.lost .scores { color: var(--muted); }
.resultBanner { margin-top: 12px; padding: 11px 14px; border-radius: 11px; background: var(--raise); border: 2px solid var(--edge); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.resultBanner.win { background: var(--accent); color: #ffffff; }
.resultBanner.loss { background: var(--orange); color: #111318; }
.innHead { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.innHead b { font: 800 22px/1.1 var(--display); letter-spacing: -.01em; }
.innHead .tot { font: 700 22px/1 var(--mono); margin-left: auto; }
.innHead .muted { font-size: 12.5px; }
.dismissal { color: var(--muted); font-size: 12.5px; }
.topPerf { font-weight: 800; color: var(--accentText); }

/* full-time modal */
.ft { text-align: center; padding: 6px 0 4px; }
.ft .verdict { font: 800 60px/1 var(--display); letter-spacing: -.02em; margin: 6px 0 8px; display: inline-block; padding: 6px 22px 10px; border: 3px solid var(--edge); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--shadowC); transform: rotate(-2deg); background: var(--panel); }
.ft .verdict.win { background: var(--accent); color: #ffffff; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.ft .verdict.loss { background: var(--orange); color: #111318; } .ft .verdict.draw { background: var(--raise); }
@keyframes pop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.ftCard { margin-top: 14px; text-align: left; }
.ftPerf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

/* calendar */
.lgd { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.sw { display: inline-block; width: 16px; height: 9px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; border: 1px solid var(--edge); }
.timelineWrap { overflow-x: auto; border-radius: 14px; border: 2px solid var(--edge); background: var(--panel); box-shadow: var(--shadow); }
.timeline { position: relative; min-width: 1500px; padding-bottom: 6px; }
.tlRow { display: grid; grid-template-columns: 140px 1fr; height: 26px; align-items: center; border-bottom: 1px solid var(--line); }
.tlRow.sep { border-top: 2px solid var(--line2); } .tlRow.pin { background: var(--mine); height: 32px; }
.tlLabel { padding-left: 10px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; background: var(--panelSolid); z-index: 2; height: 100%; display: flex; align-items: center; gap: 6px; color: var(--ink2); font-weight: 600; }
.tlRow.pin .tlLabel { font-weight: 800; color: var(--ink); box-shadow: inset 4px 0 0 var(--sun); background: var(--mine); }
.tlTrack { position: relative; height: 100%; }
.bar { position: absolute; top: 5px; height: 16px; border-radius: 4px; cursor: pointer; transition: filter .1s; border: 1px solid rgba(17, 19, 24, .55); }
.bar:hover { filter: brightness(1.15); z-index: 2; }
.bar.away { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.3) 0 3px, transparent 3px 6px); }
.bar.icc { background: var(--icc); top: 3px; height: 20px; }
.bar.icc.soft { background: transparent; border: 1.5px dashed var(--icc); }
.bar.lg { background: var(--league); }
.bar.dot { width: 5px !important; border-radius: 2px; top: 7px; height: 18px; }
.todayLine { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--wicket); z-index: 3; pointer-events: none; }
.block { position: absolute; top: 0; bottom: 0; background: var(--block); pointer-events: none; }
.yearLine { position: absolute; top: 0; bottom: 0; border-left: 1.5px solid var(--edge); pointer-events: none; opacity: .5; }
.axis { display: grid; grid-template-columns: 140px 1fr; height: 26px; font: 600 10.5px/1 var(--mono); color: var(--muted); }
.axis .tlTrack span { position: absolute; top: 8px; }
.axis b { color: var(--ink); }

/* competitions */
.compList { max-height: calc(100vh - 170px); overflow: auto; }
.compList h4 { margin: 14px 4px 6px; font: 700 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compList h4:first-child { margin-top: 2px; }
.compItem { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px; color: var(--ink2); cursor: pointer; font-size: 13px; font-weight: 600; border: 2px solid transparent; }
.compItem:hover { background: var(--raise); color: var(--ink); }
.compItem.on { background: var(--sun); color: #111318; border-color: var(--edge); }
.compItem .prog { margin-left: auto; font: 600 11px/1 var(--mono); color: inherit; opacity: .75; }
.compItem .meter { width: 34px; height: 5px; }
.compHead { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.compHead h2 { margin: 0; font: 800 28px/1.05 var(--display); letter-spacing: -.02em; }

/* modal, tooltip, toast */
.modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 60px 14px; overflow: auto;
  background: rgba(17, 19, 24, .55); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modalBox { width: min(720px, 100%); padding: 22px 24px; background: var(--panelSolid); animation: fadeUp .2s ease-out; box-shadow: 6px 6px 0 var(--shadowC); }
.modalBox .close { position: absolute; right: 12px; top: 12px; }
.tip { position: fixed; pointer-events: none; background: #111318; color: #ffffff; border: 2px solid #111318; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; max-width: 360px; display: none; z-index: 60; box-shadow: 3px 3px 0 var(--sun); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #111318; color: #ffffff; border: 2px solid #111318;
  padding: 12px 18px; border-radius: 12px; font-size: 13.5px; max-width: 90vw; display: none; z-index: 70; box-shadow: 4px 4px 0 var(--sun); animation: fadeUp .2s; }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1250px) {
  .heroGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s8, .s7, .s6, .s5, .s4 { grid-column: span 12; }
  .home .s4 { grid-column: span 6; }
  .lu { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 10px; overflow-x: auto; }
  .brand span:last-child, .teamCard, .menu .grp, .sideFoot a, .orgChips { display: none; }
  .menu { flex-direction: row; gap: 2px; }
  .menu a { padding: 8px 10px; white-space: nowrap; }
  .sideFoot { margin: 0; }
  .top { top: 54px; padding: 6px 12px; height: auto; min-height: 56px; flex-wrap: wrap; gap: 8px; }
  .runbar { top: 112px; }
  .feed { top: 160px; right: 16px; }
  .nextChip, #dayBtn { display: none; }
  .view { padding: 16px 16px 60px; }
  .cols2, .cols3 { grid-template-columns: 1fr; }
  .home .s4 { grid-column: span 12; }
  .pHero { grid-template-columns: 1fr; }
  .matchup .vs .big { font-size: 32px; }
}
@media (max-width: 640px) {
  .heroGrid, .hero .heroGrid { grid-template-columns: 1fr; }
  .matchup { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .matchup .side1, .matchup .side2 { flex-direction: column; text-align: center; }
  .dateBlock span { display: none; }
  .slot { grid-template-columns: 24px 90px minmax(0, 1fr) 34px 20px; gap: 6px; }
  .fx { grid-template-columns: 44px minmax(0, 1fr); } .fxSide { display: none; }
  .attrRow { grid-template-columns: 84px repeat(3, minmax(0, 1fr)); gap: 6px; } .attrCell .meter, .attrCell .z { display: none; }
}
.picker { position: sticky; top: 86px; }

/* stats engine views */
.dv { font-weight: 700; } .dv.pos { color: var(--accentText); } .dv.neg { color: var(--orangeText); }
table.t th.derived { color: var(--accentText); }
table.t th.sorted.derived { color: #111318; }
table.t tr.totRow td { border-top: 2px solid var(--edge); font-weight: 700; background: var(--raise); }
table.t tr.gameRow td { background: var(--sunWash); }
.ib { transition: opacity .12s; }

.capRow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.verdict { font: 800 20px/1.2 var(--display); letter-spacing: -.01em; }
.ballLine { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ── the captain's match: full screen until it is over ── */
#liveScreen { position: fixed; inset: 0; z-index: 35; background: var(--bg); overflow: auto; padding: 0 0 40px; }
#liveScreen.hidden { display: none; }
body.liveOpen { overflow: hidden; }
body.liveOpen #toast { z-index: 60; }
.lvTop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px clamp(12px, 2vw, 24px); background: #111318; color: #ffffff; border-bottom: 2px solid #111318; }
.lvTop .sub2 { color: #c9ced8; }
.lvTop .chip { background: transparent; color: #ffffff; border-color: #4a505c; }
.lvTop .chip.warn { background: var(--orange); color: #111318; border-color: var(--orange); }
.lvTop .ghost { color: #ffffff; border-color: #4a505c; }
.lvTop button:not(.ghost):not(.go) { box-shadow: 3px 3px 0 var(--sun); border-color: #111318; background: #ffffff; color: #111318; }
.lvTop button.go { box-shadow: 3px 3px 0 var(--sun); border-color: #111318; }
.lvTop select { background-color: #111318; color: #ffffff; border-color: #4a505c;
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%), linear-gradient(135deg, #ffffff 50%, transparent 50%); }
.lvTop .liveTag { animation: pulseRed 1.6s infinite; }
.lvHead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; flex: 1; min-width: 0; }
.lvTitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lvTitle b { font: 800 17px/1 var(--display); }
.lvScores { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.lvScore { font: 600 13px/1 var(--mono); padding: 7px 9px; border-radius: 8px; border: 1.5px solid #4a505c; color: #c9ced8; }
.lvScore b { font-family: var(--body); }
.lvScore.on { background: #ffffff; color: #111318; border-color: #ffffff; font-weight: 700; }
.lvScore .sub2 { color: inherit; opacity: .7; }
.lvCtl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lvBoard { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px clamp(12px, 2vw, 24px) 0; }
.lvBoard:empty { display: none; }
.lvBig { flex: 1 1 420px; min-width: 0; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.lvBigScore { display: flex; align-items: baseline; gap: 10px; }
.lvBigScore .num { font: 800 60px/.9 var(--display); letter-spacing: -.03em; }
.lvBigScore .num i { font-style: normal; color: var(--faint); }
.lvBigScore .ovs { font: 600 17px/1 var(--mono); color: var(--muted); }
.lvSticker { font: 800 21px/1.05 var(--display); background: var(--sun); color: #111318; border: 2px solid var(--edge); border-radius: 12px; padding: 9px 14px; box-shadow: 3px 3px 0 var(--shadowC); transform: rotate(-2deg); }
.lvSticker small { display: block; font-size: 14px; }
.lvRates2 { display: grid; grid-template-columns: auto auto; gap: 6px 16px; font-size: 13px; }
.lvRates2 span { font: 700 10.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lvRates2 b { font-family: var(--mono); }
.lvMain { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr); gap: 18px; align-items: start; padding: 16px clamp(12px, 2vw, 24px) 0; }
.lvLeft { display: grid; gap: 16px; min-width: 0; }
.lvCard { min-height: 40vh; }
.lvFeedHead { display: grid; gap: 4px; margin: -4px 0 8px; }
.lvFeedHead .lvChips { margin: 4px 0 2px; }
.lvFeedOver + .lvFeedOver { margin-top: 10px; }
.lvFeedOvHead { margin-bottom: 2px; font-weight: 700; color: var(--ink); }
.lvTabs { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lvInns { display: flex; gap: 6px; } .lvInns .on { background: var(--ink); color: var(--panel); }
.lvT td, .lvT th { font-size: 13.5px; }
.lvT tr.atCrease td { background: var(--sunWash); }
.lvYet { margin-top: 10px; }
.lvSide { display: grid; gap: 16px; }
.lvChips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ball { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 13px/1 var(--mono); background: var(--panel); border: 2px solid var(--edge); color: var(--ink); }
.ball.b4 { background: #2340ff; color: #ffffff; border-color: #111318; }
.ball.b6 { background: var(--ink); color: var(--panel); }
.ball.bW { background: var(--wicket); color: #fff; border-color: var(--wicket); }
.ball.dr2, .drama.dr2 { --dr: var(--sun); } .ball.dr3, .drama.dr3 { --dr: var(--orange); }
.ball.dr2, .ball.dr3 { box-shadow: 0 0 0 3px var(--dr); }
.drama { font-weight: 700; }
.drama.dr2, .drama.dr3 { background: var(--dr); color: #111318; padding: 1px 6px; border-radius: 5px; }
.lvFaced .chip { margin-left: 4px; }
.lvReview .lvMain { grid-template-columns: minmax(0, 1fr); }
.lvReview .lvSide, .lvReview .lvFeed, .lvReview .lvBoard { display: none; }
.lvCtl .verdict.sm { font-size: 15px; margin: 0 6px 0 0; color: #ffffff; }
.ballLine { display: flex; gap: 4px; }
.bbComm { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.lvNote { font-size: 12.5px; font-style: italic; color: var(--muted); padding: 5px 0 5px 48px; border-bottom: 1px solid var(--line); }
.lvBat { display: grid; gap: 8px; padding: 12px 14px; border: 2px solid var(--edge); border-radius: 12px; background: var(--panel); }
.lvBat.striker { outline: 3px solid var(--sun); outline-offset: 1px; }
.lvBat + .lvBat { margin-top: 12px; }
.lvBatInfo { flex: 1; min-width: 0; display: grid; gap: 5px; }
.lvBatInfo .pcName { font-size: 19px; }
.lvNow { font: 500 13px/1.4 var(--mono); color: var(--ink2); }
.lvNow b { font: 800 26px/1 var(--display); color: var(--ink); }
.lvRates { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11.5px; margin-top: 2px; }
.lvRates > span { display: inline-flex; align-items: center; gap: 4px; padding: 0 2px 0 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); font-weight: 600; }
.lvRates .r { height: 18px; min-width: 26px; font-size: 10.5px; border-width: 1px; }
.agWrap { display: grid; gap: 6px; }
.agHead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.agHead .lab { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agHead b { font: 800 15px/1 var(--display); }
.agBtns, .agProj { display: grid; grid-template-columns: 38px repeat(10, minmax(0, 1fr)); gap: 4px; align-items: center; }
.agLab { font: 700 10px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
.agProj { gap: 1px 4px; font: 600 11px/1.5 var(--mono); color: var(--muted); text-align: center; }
.agBtns button { height: 32px; padding: 0; justify-content: center; border-radius: 6px; font: 700 11px/1 var(--mono); color: var(--muted); box-shadow: none; min-width: 0; }
.agBtns button:hover { transform: none; box-shadow: none; background: var(--raise); }
.agBtns button.on { background: var(--accent); color: #ffffff; }
.agBtns button.hot { background: var(--orange); color: #111318; }
.agBtns button.cur { outline: 3px solid var(--sun); outline-offset: 1px; }
.lvPick { position: fixed; inset: 0; z-index: 36; background: rgba(17, 19, 24, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lvPick.hidden, .lvHub.hidden { display: none; }
.lvPickBox { width: min(900px, 100%); max-height: 88vh; overflow: auto; box-shadow: 6px 6px 0 var(--shadowC); }
.lvMile { z-index: 38; }
.lvCardBox { width: min(620px, 100%); display: grid; gap: 10px; border-width: 2.5px; animation: cardIn .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cardIn { from { transform: translateY(20px) rotate(3deg) scale(.95); opacity: 0; } }
.lvCardBox > .ph:first-child { margin: -16px -18px 4px; padding: 12px 18px; background: var(--accent); color: #ffffff; border-bottom: 2.5px solid var(--edge); border-radius: 11px 11px 0 0; }
.lvCardBox > .ph:first-child .more { color: #ffffff; }
.lvCardBox > .ph:first-child .pname { color: #ffffff; }
.lvCardBox > .ph:first-child .chip.good { background: var(--sun); color: #111318; border-color: #111318; font-size: 13px; }
.lvCardBig { font: 800 34px/1 var(--display); }
.lvCardStats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.lvCardStats .mini { padding: 8px 10px; }
.lvCardStats .mini b { font: 700 18px/1.2 var(--mono); }
.lvCardStats .mini .k { margin-bottom: 5px; justify-content: flex-start; }
.lvCardLink { cursor: pointer; color: inherit; border-bottom: 2px solid var(--sun); }
.lvCardLink:hover { color: var(--accentText); }
.lvPotm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 8px; }
.lvOpts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding-top: 6px; }
.lvOpt { display: grid; gap: 5px; align-content: start; text-align: left; padding: 11px 12px; border-radius: 12px; border: 2px solid var(--edge); background: var(--panelSolid); color: inherit; cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadowC); font-weight: 500; }
.lvOpt b { font: 800 16px/1.1 var(--display); }
.lvOpt:hover { background: var(--sun); color: #111318; transform: translateY(-4px); box-shadow: 4px 7px 0 var(--shadowC); }
.lvOpt:hover .sub2 { color: #3e4450; }
.lvOpt .r { height: 18px; }
.lvSum { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lvSumHead { font-size: 16px; margin-bottom: 6px; }
.lvSumHead b { font-family: var(--display); font-weight: 800; }
.lvSumCols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .lvMain, .lvSumCols { grid-template-columns: 1fr; } }
.lvNext { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }

/* the calendar running: the whole screen waits, only Stop works */
/* results feed: a panel under the header, open while the days run or after */
.feedBtn { display: inline-flex; align-items: center; gap: 7px; }
.feedBtn b { font-family: var(--mono); }
.feedBtn.live .pulse { width: 8px; height: 8px; background: var(--accent, currentColor); }
.feed { position: fixed; right: 22px; top: 124px; z-index: 30; width: min(460px, calc(100vw - 32px)); max-height: min(70vh, 720px);
  display: flex; flex-direction: column; padding: 0; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.feedHead { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line, rgba(127, 127, 127, .25)); }
.feedHead .muted { flex: 1; font-size: 12px; }
.feedBody { overflow-y: auto; padding: 4px 12px 12px; }
.feedDay { font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin: 14px 4px 6px; }
body.running #advanceBtn, body.running #dayBtn { opacity: .45; }
.choiceBtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
.sqDue { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; background: var(--sun); color: #111318; }
.sqDue .sub2 { color: #3e4450; }
.sqDue button.go { background: #111318; color: #ffffff; box-shadow: 3px 3px 0 #ffffff; }
.sqConfirmList { display: flex; flex-wrap: wrap; gap: 6px; }
.lvDay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-basis: 100%; font-size: 13px; }
.lvCtl .on { background: var(--sun) !important; color: #111318 !important; }

/* the captain's match: match centre, stamina, fields */
.lvHub { position: fixed; inset: 0; z-index: 37; background: rgba(232, 234, 238, .94); overflow: auto;
  display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; }
:root[data-theme="dark"] .lvHub { background: rgba(14, 16, 20, .94); }
.hubBox { width: min(980px, 100%); display: grid; gap: 10px; box-shadow: 6px 6px 0 var(--shadowC); }
.hubHead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hubTitle { margin: 4px 0 0; font: 800 36px/1.05 var(--display); letter-spacing: -.02em; }
.hubLead { font-size: 15px; color: var(--ink2); }
.hubLead .verdict { display: inline-block; font-size: 26px; background: var(--sun); color: #111318; border: 2px solid var(--edge); border-radius: 12px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--shadowC); }
.hubInfo { margin-top: -4px; }
.hubCols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 24px; margin-top: 8px; }
.hubPitch { display: grid; gap: 8px; align-content: start; }
.hubPitchWord { font: 800 18px/1.2 var(--display); }
.hubPitch .cond { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 8px; }
.hubPitch .track { position: relative; height: 8px; border-radius: 4px; background: var(--raise2); }
.hubPitch .track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
@media (max-width: 760px) { .hubCols { grid-template-columns: 1fr; } .hubTitle { font-size: 28px; } }
.stam { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); white-space: nowrap; font-weight: 600; }
.stamBar { width: 60px; height: 9px; border-radius: 999px; background: var(--panel); overflow: hidden; border: 1.5px solid var(--edge); }
.stamBar i { display: block; height: 100%; background: var(--accent); }
.stam.low .stamBar i { background: var(--orange); }
.stam.out { color: var(--wicket); } .stam.out .stamBar i { background: var(--wicket); }
.lvOpt .stam { margin-top: 2px; }
.lvPrev { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lvLast { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.lvLast .ball { min-width: 24px; height: 24px; font-size: 11px; border-width: 1.5px; }
.lvMeter { display: grid; grid-template-columns: auto 90px auto 1fr; align-items: center; gap: 8px; font-size: 12px; }
.lvMeter .lab { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lvMeter b { font: 700 13px/1 var(--mono); }
.mBar { position: relative; height: 9px; border-radius: 999px; background: var(--panel); overflow: hidden; border: 1.5px solid var(--edge); }
.mBar i { display: block; height: 100%; background: var(--cyan); }
.mBar s { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.lvBallSt { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lvBallSt .mBar i { background: var(--sun); }
.lvThreatRow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lvThreatRow:empty { display: none; }
.lvFarm.on { background: var(--sun); color: #111318; }
.lvXis { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.lvXiHead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 800 16px/1.2 var(--display); }
.lvSvg[data-scrub] { cursor: crosshair; touch-action: none; user-select: none; }
.scrubBand { fill: var(--sun); opacity: .18; pointer-events: none; }
.scrubLine { stroke: var(--ink2); stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
.scrubG circle { pointer-events: none; }
.scrubOut { min-height: 20px; margin: 4px 0 6px; font-size: 13px; }
.lvFreeze { float: right; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--body); text-transform: none; letter-spacing: 0; cursor: pointer; margin-left: auto; }
.lvField:not(:empty) { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line2); }
.lvFieldHead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lvFields { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; padding-top: 10px; }
.lvFld { display: grid; gap: 6px; align-content: start; text-align: left; padding: 9px; border-radius: 12px; border: 2px solid var(--edge); background: var(--panel); color: inherit; cursor: pointer; font: inherit;
  box-shadow: 3px 3px 0 var(--shadowC); }
.lvFld b { font: 800 14px/1.1 var(--display); }
.lvFld:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 3px 6px 0 var(--shadowC); }
.lvFld.on { background: var(--sun); color: #111318; transform: translateY(-8px); box-shadow: 4px 9px 0 var(--shadowC); }
.lvFld.on .sub2 { color: #3e4450; }
.lvFld:disabled { opacity: 1; cursor: not-allowed; border-style: dashed; border-color: var(--line2); background: var(--raise); box-shadow: none; color: var(--muted); }
.lvFld .chip { font-size: 10px; padding: 1px 5px; }
.fieldPic { display: block; width: 100%; aspect-ratio: 1 / 1; }
.fieldPic .fpGround { fill: #1c9a55; stroke: #111318; stroke-width: 1.5; }
.fieldPic .fpRing { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: .8; stroke-dasharray: 2 2; }
.fieldPic .fpPitch { fill: #e8ddb5; }
.fieldPic .fpBat { fill: #111318; }
.fieldPic .fpF { fill: #ffffff; stroke: #111318; stroke-width: 1; }
.fieldPic .fpF.deep { fill: #ffd84d; }
.fieldPic .fpKeep { fill: #2340ff; stroke: #ffffff; stroke-width: 1; }
.fieldPic .fpBowl { fill: #8a93a3; stroke: #111318; stroke-width: 1; }
.fieldPic .fpLab { font: 700 7px/1 var(--body); fill: rgba(255, 255, 255, .9); letter-spacing: .05em; }
.lvFacedPic { display: inline-block; width: 64px; vertical-align: middle; margin-left: 6px; }
.lvFaced { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.lvFld:disabled .fieldPic { filter: grayscale(1) opacity(.5); }
.warnText { color: var(--orangeText); margin-bottom: 6px; font-weight: 600; }

/* organisation views */
.orgChips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.orgChips .chip { cursor: pointer; text-decoration: none; background: transparent; color: #ffffff; border-color: var(--sideLine); font-family: var(--mono); font-weight: 600; }
.orgChips .chip.acc { background: #ffffff; color: #111318; border-color: #ffffff; }
.orgChips .chip.warn { background: var(--sun); color: #111318; border-color: var(--sun); font-family: var(--body); font-weight: 700; }
.orgChips .chip.bad { background: var(--wicket); color: #ffffff; border-color: var(--wicket); font-family: var(--body); }
.orgChips .chip.good { background: transparent; color: #ffffff; border-color: #8fa0ff; font-family: var(--body); }
.form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.form input, .form select { min-width: 90px; }
button[disabled] { opacity: .45; cursor: not-allowed; }
.drv { display: inline-flex; gap: 2px; vertical-align: middle; }
.drv i { width: 14px; height: 14px; background: var(--raise2); border-radius: 3px; position: relative; overflow: hidden; display: inline-block; border: 1px solid var(--line2); }
.drv i b { position: absolute; bottom: 0; left: 0; height: 100%; }
.drv i.pos b { background: var(--accent); }
.drv i.neg b { background: var(--orange); }

/* calendar: picking weeks for an extra series, the team schedule */
.tlTrack.pick { cursor: crosshair; }
.weekSel { position: absolute; top: 2px; bottom: 2px; display: none; border: 2px solid var(--edge); border-radius: 5px; z-index: 4; pointer-events: none;
  background: color-mix(in srgb, var(--sun) 60%, transparent); color: #111318; font: 700 10px var(--mono); line-height: 26px; text-align: center; overflow: hidden; white-space: nowrap; }
.form.arr { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 12px 0 6px; }
.form.arr input[type=number] { width: 64px; }
.arrT tr[data-opp] { cursor: pointer; } .arrT tr.off { opacity: .55; cursor: default; } .arrT tr.on td { background: var(--mine); }
.mStrip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.mCell { padding: 6px 6px 5px; border-radius: 9px; background: var(--panel); border: 2px solid var(--edge); cursor: pointer; min-width: 0; }
.mCell:hover { background: var(--raise); }
.mName { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.mBar { display: flex; height: 8px; margin: 5px 0 4px; border-radius: 4px; overflow: hidden; background: var(--raise2); }
.mDays { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.schItem { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.schItem:hover { background: var(--raise); }
.schItem.now { background: var(--mine); box-shadow: inset 4px 0 0 var(--sun); }
.schItem.done { opacity: .6; }
.schDate b { display: block; font-size: 13px; } .schDate span { font-size: 11.5px; color: var(--muted); }
.schTitle { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.schSide { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.schMatches { padding: 4px 0 10px 108px; }
.fx.planned { opacity: .75; cursor: default; }
@media (max-width: 760px) { .mStrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } .schItem { grid-template-columns: 70px 1fr; } .schSide { display: none; } .schMatches { padding-left: 0; } }
tr.dim td { opacity: .5; }
/* match screen: charts, ball by ball, partnerships, spells, matchups */
.lvTabs .seg { flex-wrap: wrap; }
.lvSvg { width: 100%; height: auto; display: block; }
.lvSvg text { font-family: var(--body); }
.lvSvg .hitcol { fill: transparent; }
.lvSvg .hitcol:hover { fill: var(--raise2); }
.lvSvg .nohit { pointer-events: none; }
.lvSvg .wl:hover polyline:first-child { stroke-width: 3.5; }
.lvChartCtl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lvChartCtl .on { background: var(--ink); color: var(--panel); }
.lvMore { margin-top: 10px; }
.lvMore summary { cursor: pointer; font-weight: 700; }
.badText { color: var(--wicket); font-weight: 700; }
.goodText { color: var(--accentText); }
.lvBbb { display: grid; gap: 10px; margin-bottom: 10px; }
.lvOverBlk { border: 2px solid var(--edge); border-radius: 12px; padding: 8px 12px; background: var(--panel); }
.lvOverHead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.lvOverHead .lvChips { margin: 0; gap: 4px; }
.lvOverHead .ball { min-width: 24px; height: 24px; font-size: 11px; border-width: 1.5px; }
.ballLine .bbN { display: inline-block; min-width: 44px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ballLine.wk { color: var(--ink); background: color-mix(in srgb, var(--wicket) 9%, transparent); }
.ballLine.bd { color: var(--ink); }
.lvParts { display: grid; gap: 8px; }
.lvPRow { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.lvPRow.on { background: var(--sunWash); }
.lvPLab { display: grid; line-height: 1.3; }
.lvPNames { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.lvPBar { display: flex; gap: 2px; height: 10px; margin-top: 4px; }
.lvPBar i { display: block; height: 100%; border-radius: 3px; }
.lvPBar i[style^="width:0.00%"] { display: none; }
.lvSpells { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lvSpell { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 6px; }
.lvSpell.cur { background: var(--sunWash); box-shadow: inset 0 0 0 1.5px var(--sun); }
.lvVs { margin-top: 1px; }
.lvRecent { margin: 4px 0 6px; }
.lvPart:not(:empty) { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed var(--line2); font-size: 13px; }
@media (max-width: 640px) { .lvPRow { grid-template-columns: 1fr; gap: 4px; } }
.lvFieldTo { margin: 6px 0 8px; }

/* leaderboards: the top three as cards; match report: the match's stars */
.podCard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.podCard:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadowC); }
.podCard.p1 { background: var(--sun); color: #111318; }
.podCard.p1 .sub2, .podCard.p1 .pcRec, .podCard.p1 .podVal span { color: #3e4450; }
.podRank { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--edge); background: var(--panel); color: var(--ink); display: grid; place-items: center;
  font: 800 20px/1 var(--display); transform: rotate(-6deg); }
.podMain { flex: 1; min-width: 0; }
.podName { font: 800 18px/1.1 var(--display); }
.podVal { text-align: right; }
.podVal b { display: block; font: 700 34px/1 var(--mono); letter-spacing: -.03em; }
.podVal span { font: 700 10.5px/1.5 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.perfRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.perfCard { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 2px solid var(--edge); border-radius: 12px; background: var(--panel); box-shadow: 3px 3px 0 var(--shadowC); }
.perfCard .pname { font: 800 17px/1.15 var(--display); }
.perfCard .lab { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.perfCard .pcRec { margin: 0; }
.perfCard.potm { background: var(--accent); }
.perfCard.potm .pname, .perfCard.potm .pcRec, .perfCard.potm .lab { color: #ffffff; }
/* organisation views: gains and losses, board priorities not in play */
.win { color: var(--accentText); font-weight: 700; }
.loss { color: var(--orangeText); font-weight: 700; }
.mono { font-family: var(--mono); }
table.t tr.off td { opacity: .5; }

/* stats grid: scouting and squad selection */
.gridF { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.fRow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.fRow + .fRow { padding-top: 10px; border-top: 1.5px dashed var(--line2); }
.fTitle { align-self: center; min-width: 74px; font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.fG { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; position: relative; padding-top: 15px; }
.fL { position: absolute; top: 0; left: 1px; font: 700 9.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.fG.off { opacity: .4; pointer-events: none; }
.fDash { font-size: 12px; color: var(--muted); }
.fRow .grow { flex: 1; }
.fG .search input { width: 170px; }
.ageIn { width: 72px; }
.gridNote { font-size: 12.5px; color: var(--orangeText); background: var(--orangeWash); border: 1.5px solid var(--orange); border-radius: 10px; padding: 8px 12px; }
.gridBar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.gridBar .grow { flex: 1; }
.gridBar .count { font: 600 12px/1 var(--mono); }
.gridFoot { margin-top: 8px; min-height: 14px; }
.gridT td.sortedCol { background: var(--sunWash); font-weight: 700; }
.gridT .teamsCell { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.busy { opacity: .45; transition: opacity .15s; pointer-events: none; }
.msel { position: relative; }
.mselBtn { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; box-shadow: none; }
.mselBtn:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.mselBtn.on { background: var(--sunWash); }
.mselBtn .caret { font-size: 10px; color: var(--muted); }
.mselPop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 260px; padding: 10px; background: var(--panelSolid); border: 2px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.mselTools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mselTools input { flex: 1; min-width: 0; }
.mselList { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.mselList label.chk { padding: 5px 4px; border-radius: 6px; white-space: normal; line-height: 1.25; }
.mselList label.chk:hover { background: var(--raise); }
.rowMenu { position: fixed; z-index: 60; display: flex; flex-direction: column; min-width: 220px; padding: 6px; background: var(--panelSolid); border: 2px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.rowMenu button { border: none; box-shadow: none; text-align: left; padding: 9px 10px; font-weight: 700; font-size: 13px; border-radius: 8px; background: transparent; }
.rowMenu button:hover { transform: none; box-shadow: none; background: var(--raise); }
.rowMenu button.primary { background: var(--accent); color: #ffffff; }
.rowMenu button.primary:hover { background: var(--accent); filter: brightness(1.08); }
.rowMenu button.danger { color: var(--wicket); }
.pickCell { width: 40px; }
.pickBtn { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800; font-size: 15px; line-height: 1; box-shadow: 2px 2px 0 var(--shadowC); }
.pickBtn.on { background: var(--accent); color: #ffffff; }
.pickBtn.on:hover { background: var(--wicket); border-color: var(--edge); }
table.t tr.picked td { background: var(--mine); }
table.t tr.picked td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
table.t tr.picked td.sticky { background: var(--mine); }
.sqStatus { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 4px; }
.sqStatus.open { background: var(--sun); color: #111318; }
.sqStatus.open .sub2, .sqStatus.open .sqCount small { color: #3e4450; }
.sqStatus.open button.go { background: #111318; color: #ffffff; box-shadow: 3px 3px 0 #ffffff; }
.sqStatN { display: flex; flex-direction: column; align-items: center; min-width: 84px; }
.sqCount.over { color: var(--wicket); }
.sqStatTxt { flex: 1; min-width: 240px; }
.sqStatState { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tabN { font: 700 11px/1 var(--mono); margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: var(--ink); color: var(--panel); }
.tabN.over { background: var(--wicket); color: #ffffff; }
.wxIcon { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wxDay + .wxDay { margin-top: 8px; }
.wxRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; }
.wxDay > .sub2 { margin-top: 2px; }
.rainNote { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border: 1.5px solid var(--orange); border-left-width: 5px; border-radius: 10px; background: var(--orangeWash); color: var(--orangeText); font-weight: 700; font-size: 13.5px; }
.rainNote .wxIcon { width: 18px; height: 18px; margin-top: 1px; }

/* ── auction room (auction.js) ───────────────────────────────────────────────── */
.au { display: flex; flex-direction: column; gap: 16px; }
.auTop { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 14px 16px; }
.auTitle h1 { margin: 0; font: 800 26px/1.05 var(--display); letter-spacing: -.02em; }
.auTitle .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.auMoney { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.auMoney .kpi { min-width: 104px; padding: 8px 10px; }
.auMoney .kpi .v { font-size: 20px; margin-top: 3px; }
.auCtl { display: flex; gap: 8px; flex-wrap: wrap; }
.purseBar { height: 5px; border-radius: 3px; background: var(--raise2); margin-top: 5px; overflow: hidden; }
.purseBar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.auMain { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(230px, 280px); gap: 16px; align-items: start; }
.auXI, .auStage, .auTeams, .auSets { padding: 14px; }
.ph.sm { font-size: 14px; margin-bottom: 8px; }
.chip.sm { padding: 1px 6px; font-size: 10.5px; }
.os { font: 800 9px/1 var(--body); padding: 2px 4px; border-radius: 4px; background: var(--orangeWash); color: var(--orangeText); border: 1px solid var(--orange); margin-left: 5px; vertical-align: 1px; }
.rc { display: inline-grid; place-items: center; min-width: 38px; height: 20px; padding: 0 5px; border-radius: 5px; font: 800 9.5px/1 var(--body); letter-spacing: .05em;
  border: 1.5px solid var(--edge); background: var(--raise); color: var(--ink); flex: none; }
.rc.r-wk { background: var(--ink); color: var(--panel); }
.rc.r-pace { background: var(--accentWash); color: var(--accentText); }
.rc.r-spin { background: var(--orangeWash); color: var(--orangeText); }
.rc.r-ar { background: var(--sunWash); }

.auBal { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.auSlots { list-style: none; margin: 0; padding: 0; }
.auSlot { display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) auto 18px; gap: 7px; align-items: center; padding: 6px 8px; margin-bottom: 5px;
  border: 2px solid var(--edge); border-radius: 10px; background: var(--panel); cursor: pointer; position: relative; transition: transform .1s, box-shadow .1s; }
.auSlot:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--shadowC); }
.auSlot .sn { font: 800 16px/1 var(--display); text-align: center; }
.auSlot .pl { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.auSlot .pl .ln1 { display: flex; align-items: center; gap: 4px; min-width: 0; }
.auSlot .pl .ln1 a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.auSlot .pl .sub2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.auSlot .rs { display: flex; gap: 3px; }
.auSlot .rs .r { height: 19px; min-width: 28px; font-size: 11px; }
.auSlot .x { color: var(--faint); display: grid; place-items: center; }
.auSlot .x:hover { color: var(--wicket); }
.auSlot.gap { grid-template-columns: 24px minmax(0, 1fr) auto; border-style: dashed; border-color: var(--wicket);
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(224, 36, 59, .05) 8px 16px); }
.auSlot.gap b { color: var(--wicket); font-size: 12.5px; }
.auSlot.on { outline: 3px solid var(--sun); outline-offset: 1px; }
.auSlot.over { background: var(--accentWash); }
.auSlot.fit { box-shadow: 0 0 0 3px var(--sun), 3px 3px 0 3px var(--shadowC); animation: fitPulse 1.6s ease-in-out infinite; }
@keyframes fitPulse { 50% { box-shadow: 0 0 0 5px var(--sun), 3px 3px 0 3px var(--shadowC); } }
.fitTag { position: absolute; right: 26px; top: -9px; font: 800 10px/1 var(--body); padding: 3px 6px; border-radius: 6px; background: var(--sun); color: #111318; border: 1.5px solid var(--edge); }
.auPick { margin: 6px 0 2px; display: flex; flex-wrap: wrap; gap: 5px; }
.auPick .sub2 { width: 100%; }
.auPick .r { height: 17px; min-width: 24px; font-size: 10px; }
.auBench { display: flex; flex-direction: column; gap: 3px; max-height: 260px; overflow: auto; }
.auB { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: var(--raise); cursor: grab; font-size: 12.5px; }
.auB a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.auB .rs { display: flex; gap: 3px; }
.auB .r { height: 18px; min-width: 26px; font-size: 10.5px; }

.auLot { position: relative; }
.auSet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.auWho { display: flex; gap: 12px; align-items: center; }
.auWho h2 { margin: 0; font: 800 28px/1.05 var(--display); letter-spacing: -.02em; }
.auWho h2 a { color: var(--ink); }
.mono { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--edge); background: var(--sun); color: #111318;
  font: 800 16px/1 var(--display); box-shadow: 2px 2px 0 var(--shadowC); flex: none; }
.auBoard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px;
  border: 2px solid var(--edge); border-radius: 14px; background: var(--raise); box-shadow: var(--shadow); }
.auPriceBox .k, .auLead .k { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.auPrice { font: 700 40px/1.1 var(--mono); letter-spacing: -.03em; margin-top: 4px; }
.auPrice.mine { color: var(--accentText); }
.auPrice.them { color: var(--orangeText); }
.auPrice.pop { animation: pricePop .32s ease-out; }
@keyframes pricePop { 0% { transform: scale(1.14); } 100% { transform: scale(1); } }
.auLead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.auLead b { font: 800 16px/1.15 var(--display); }
.auTimer { position: relative; width: 60px; height: 60px; opacity: .35; transition: opacity .2s; }
.auTimer.on { opacity: 1; }
.auTimer svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.auTimer circle { fill: none; stroke-width: 4; }
.auTimer .trk { stroke: var(--line2); }
.auTimer .arc { stroke: var(--wicket); stroke-linecap: round; }
.auTimer span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 800 8.5px/1.1 var(--body); text-transform: uppercase; letter-spacing: .04em; padding: 8px; }
.auScout { margin-top: 10px; font-size: 13px; }
.fitLine { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 7px; background: var(--sunWash); border: 1.5px solid var(--sun); font-weight: 600; font-size: 12.5px; }
.auFeed { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; max-height: 210px; overflow: hidden; }
.auFeed .fb { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; opacity: .6; }
.auFeed .fb.top { opacity: 1; background: var(--orangeWash); border: 1.5px solid var(--orange); animation: feedIn .25s ease-out; }
.auFeed .fb.mine { color: var(--accentText); }
.auFeed .fb.top.mine { background: var(--accentWash); border-color: var(--accent); }
.auFeed .fb b { font-family: var(--mono); }
@keyframes feedIn { from { transform: translateY(-6px); } }
.auCtrls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--line2); }
.auBidBtn { font: 800 20px/1 var(--display); padding: 14px 26px; border-radius: 14px; box-shadow: 4px 4px 0 var(--shadowC); }
.auBidBtn span { font-family: var(--mono); font-size: 17px; }
.auBidBtn.outbid { background: var(--orange); animation: bidPulse 1s ease-in-out infinite; }
@keyframes bidPulse { 50% { transform: translate(-1px, -1px) scale(1.03); box-shadow: 6px 6px 0 var(--shadowC); } }
.auAuto { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.auAuto input { width: 86px; }
.auSkip { display: flex; gap: 6px; margin-left: auto; }
.auStamp { position: absolute; inset: 40px 10% auto; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 20px;
  border: 3px solid var(--edge); border-radius: 16px; background: var(--panel); box-shadow: 6px 6px 0 var(--shadowC); animation: stamp .35s cubic-bezier(.2, 1.6, .5, 1); }
.auStamp .big { font: 800 40px/1 var(--display); letter-spacing: -.02em; transform: rotate(-4deg); }
.auStamp.sold .big { color: var(--orangeText); }
.auStamp.mine { background: var(--accentWash); }
.auStamp.mine .big { color: var(--accentText); }
.auStamp.unsold .big { color: var(--muted); }
@keyframes stamp { from { transform: scale(1.6) rotate(6deg); opacity: 0; } }
.auRtm { margin-top: 14px; padding: 12px; border: 2px solid var(--sun); border-radius: 12px; background: var(--sunWash); }
.auDone { text-align: center; padding: 30px 10px; }
.auDone h2 { font: 800 26px/1.1 var(--display); margin: 10px 0 4px; }
.auDone .kpis { justify-content: center; display: inline-flex; gap: 10px; margin: 10px 0; }
.hammer.big svg { width: 48px; height: 48px; }

.auTeams { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 160px); overflow: auto; }
.auTeam { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 9px; align-items: center; padding: 6px 8px; border: 2px solid transparent; border-radius: 11px; cursor: pointer; transition: background .15s; }
.auTeam:hover { background: var(--raise); }
.auTeam.me { border-color: var(--accent); background: var(--accentWash); }
.auTeam .tm { min-width: 0; }
.auTeam .ln1 { display: flex; align-items: center; gap: 5px; }
.auTeam .ln1 b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auTeam .sub2 { font-size: 11px; }
.auTeam .lacks { font-size: 10.5px; color: var(--warn); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auTeam .paddle { transition: transform .2s; display: inline-block; }
.auTeam.in .paddle { transform: translateY(-2px); }
.auTeam.in { background: var(--orangeWash); }
.auTeam.me.in { background: var(--accentWash); }
.auTeam.lead { border-color: var(--orange); box-shadow: 2px 2px 0 var(--shadowC); }
.auTeam.me.lead { border-color: var(--accent); }
.paddle.up { animation: paddleUp .45s ease-out; }
@keyframes paddleUp { 30% { transform: translateY(-10px) rotate(-8deg); } 100% { transform: translateY(-2px); } }

.auSetsHead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.auSetsHead .search { margin-left: auto; }
.auSetStrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; }
.setChip { flex: none; flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 9px; border-radius: 9px; box-shadow: none; border-width: 1.5px; font-size: 11px; }
.setChip b { font-family: var(--mono); font-size: 11.5px; }
.setChip span { font-weight: 600; color: var(--muted); font-size: 10.5px; }
.setChip.done { opacity: .55; }
.setChip.now { border-color: var(--orange); background: var(--orangeWash); }
.setChip.on { outline: 3px solid var(--sun); outline-offset: 1px; opacity: 1; }
.auSets tr.now td { background: var(--sunWash); }
.auNom .toolbar { margin-bottom: 10px; }
.auModal .kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.auModal { min-width: min(860px, 86vw); }
.auMiniXI { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; font-size: 13px; }
.auMiniXI li.gap { color: var(--wicket); font-weight: 700; }

@media (max-width: 1250px) {
  .auMain { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
  .auTeams { grid-column: 1 / -1; max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .auTeams .ph { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .auMain { grid-template-columns: minmax(0, 1fr); }
  .auMoney { margin-left: 0; }
  .auBoard { grid-template-columns: minmax(0, 1fr) 60px; }
  .auLead { grid-column: 1 / -1; grid-row: 2; }
  .auPrice { font-size: 32px; }
}

/* ── trades (trades.js) ──────────────────────────────────────────────────────── */
.tr { display: flex; flex-direction: column; gap: 14px; }
.trTop { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 14px 16px; }
.trWin { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--edge); font: 700 11.5px/1.5 var(--body); background: var(--raise); color: var(--ink); }
.trWin i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.trWin.on { background: var(--accentWash); border-color: var(--accent); color: var(--accentText); }
.trWin.on i { background: var(--accent); box-shadow: 0 0 0 3px var(--accentGlow); animation: winPulse 2s ease-in-out infinite; }
@keyframes winPulse { 50% { box-shadow: 0 0 0 6px transparent; } }
#trTabs .cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--orange); color: #fff; font: 800 10.5px/1 var(--body); }
#trTabs .cnt.soft { background: var(--raise2); color: var(--ink); }
.trGrid { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr) minmax(300px, 390px); gap: 14px; align-items: start; }
.trSide { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.trSideHead { display: flex; align-items: center; gap: 10px; }
.trSideHead h3 { margin: 0; font: 800 18px/1.1 var(--display); letter-spacing: -.01em; }
.trSideHead .tb.lg, .ofHead .tb.lg { width: 44px; height: 44px; font-size: 12px; }
.trScroll { max-height: 640px; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.trGroup { font: 700 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 2px 2px; }
.trNeeds { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.trNeeds .sub2 { margin-right: 2px; }
.need { display: inline-flex; gap: 4px; align-items: center; padding: 2px 7px; border-radius: 7px; background: var(--sunWash); border: 1.5px solid var(--sun); font-size: 11.5px; font-weight: 600; }
.need b { font-family: var(--mono); font-size: 11px; }
.trRow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto 18px; gap: 7px; align-items: center; padding: 5px 7px; border: 1.5px solid var(--line2);
  border-radius: 9px; background: var(--panel); cursor: pointer; transition: transform .1s, box-shadow .1s, background .1s; }
.trRow.noBlk { grid-template-columns: 40px minmax(0, 1fr) auto auto 18px; }
.trRow:hover { border-color: var(--edge); transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--shadowC); }
.trRow.on { background: var(--sunWash); border-color: var(--edge); box-shadow: inset 4px 0 0 var(--sun); }
.trRow.off { opacity: .45; cursor: default; }
.trRow .pl { min-width: 0; }
.trRow .ln1 { display: flex; align-items: center; gap: 3px; min-width: 0; }
.trRow .ln1 a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 13px; }
.trRow .sub2 { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trRow .tags { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.trRow .rs { display: flex; gap: 3px; }
.trRow .rs .r { height: 19px; min-width: 28px; font-size: 11px; }
.trRow .r.none { visibility: hidden; }
.trRow .add { font: 800 14px/1 var(--display); color: var(--faint); text-align: center; }
.trRow.on .add { color: var(--accentText); }
.reg { font: 800 9px/1 var(--body); padding: 2px 4px; border-radius: 4px; background: var(--ink); color: var(--panel); letter-spacing: .05em; }
.capt { font: 800 9px/1 var(--body); padding: 2px 4px; border-radius: 4px; background: var(--sun); color: #111318; border: 1px solid var(--edge); margin-left: 4px; }
.flag { font: 700 9.5px/1.2 var(--body); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line2); background: var(--raise); white-space: nowrap; }
.flag.out { background: var(--orangeWash); border-color: var(--orange); color: var(--orangeText); }
.flag.sad { color: var(--warn); border-color: var(--warn); }
.flag.blk { background: var(--accentWash); border-color: var(--accent); color: var(--accentText); }
.blkBtn { padding: 2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--line2); box-shadow: none; background: transparent; color: var(--faint); }
.blkBtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.blkBtn:hover { color: var(--ink); border-color: var(--edge); transform: none; box-shadow: none; }
.blkBtn.on { color: var(--accentText); border-color: var(--accent); background: var(--accentWash); }
.trPick { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 8px; border-bottom: 2px dashed var(--line2); }
.trPick .tp { position: relative; padding: 3px; border-radius: 9px; box-shadow: none; border: 2px solid transparent; background: transparent; }
.trPick .tp:hover { border-color: var(--line2); transform: none; box-shadow: none; }
.trPick .tp.on { border-color: var(--edge); background: var(--sunWash); box-shadow: 2px 2px 0 var(--shadowC); }
.trPick .tp .dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--panel); }
.trSel { width: 100%; }

.trDeal { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.trVs { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vsArrows { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--edge); background: var(--sun); box-shadow: 2px 2px 0 var(--shadowC); }
.vsArrows svg { width: 20px; height: 20px; fill: none; stroke: #111318; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trTrays { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trTray { min-height: 120px; padding: 10px; border-radius: 12px; border: 2px dashed var(--line2); background: var(--raise); display: flex; flex-direction: column; gap: 6px; }
.trTray .k, .trFee .k, .ofDeal .k { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trTray.give .k { color: var(--orangeText); }
.trTray.get .k { color: var(--accentText); }
.trEmpty { margin: auto; color: var(--faint); font-size: 12.5px; text-align: center; }
.trTile { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 8px; align-items: center; padding: 6px 8px; border: 2px solid var(--edge); border-radius: 10px;
  background: var(--panel); box-shadow: 2px 2px 0 var(--shadowC); cursor: pointer; }
.trTile .mono { width: 34px; height: 34px; font-size: 12px; box-shadow: none; }
.trTray.give .trTile .mono { background: var(--orangeWash); }
.trTile .pl { min-width: 0; }
.trTile b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.trTile .sub2 { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.trTile .rc { min-width: 32px; height: 16px; font-size: 8.5px; }
.trTile .x { color: var(--faint); font-size: 16px; font-weight: 800; }
.trTile:hover .x { color: var(--wicket); }
.trTile.pop { animation: tilePop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tilePop { from { transform: scale(.6); opacity: 0; } }
.trFee { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trFee .feeIn { display: inline-flex; align-items: center; gap: 6px; }
.trFee input { width: 110px; font-family: var(--mono); }

.trVerdict { display: flex; flex-direction: column; gap: 10px; transition: opacity .15s; }
.trVerdict.busy { opacity: .55; }
.trHint { padding: 14px; border: 2px dashed var(--line2); border-radius: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.trHint b { color: var(--ink); }
.trCK { border: 2px solid var(--edge); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.ckHead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 2px solid var(--edge); }
.trCK.yes .ckHead { background: var(--accentWash); }
.trCK.no .ckHead { background: var(--orangeWash); }
.ckWho { flex: 1; min-width: 0; }
.ckWho .k { font: 700 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ckWho b { font: 800 20px/1.15 var(--display); }
.trCK.yes .ckWho b { color: var(--accentText); }
.trCK.no .ckWho b { color: var(--orangeText); }
.ckScore { font: 700 30px/1 var(--mono); padding: 4px 10px; border-radius: 10px; border: 2px solid var(--edge); background: var(--panel); min-width: 70px; text-align: center; }
.trCK.yes .ckScore { color: var(--accentText); }
.trCK.no .ckScore { color: var(--wicket); }
.trCK.bump .ckScore { animation: pricePop .35s ease-out; }
.fxList { display: flex; flex-direction: column; padding: 6px 4px; }
.fxList .fx { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 4px 8px; border-radius: 7px; font-size: 13px; }
.fxList .fx:nth-child(odd) { background: var(--raise); }
.fxList .fx b { font: 700 13.5px/1 var(--mono); text-align: right; }
.fxList .fx.pos b { color: var(--accentText); }
.fxList .fx.neg b { color: var(--wicket); }
.fxList .fx em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fxList.sm .fx { font-size: 12px; padding: 2px 6px; }
.fxList.sm .fx b { font-size: 12px; }
.ckFoot { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.ckBar { position: relative; flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--orangeWash), var(--orangeWash) 50%, var(--accentWash) 50%); border: 1.5px solid var(--edge); }
.ckBar::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--edge); }
.ckBar i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sun); border: 2px solid var(--edge); transition: left .3s ease-out; }
.trSub { font: 800 14px/1.2 var(--display); margin: 2px 0 6px; }
.trConsList { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.trCons { border: 2px solid var(--edge); border-radius: 12px; overflow: hidden; }
.consHead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 10px; }
.trCons.yes .consHead { background: var(--accentWash); }
.trCons.no .consHead { background: var(--orangeWash); }
.consHead .cs { margin-left: auto; font: 800 12px/1 var(--body); }
.trCons.yes .cs { color: var(--accentText); }
.trCons.no .cs { color: var(--wicket); }
.trOurs { border: 1.5px solid var(--line2); border-radius: 12px; padding: 6px 10px; }
.trOurs summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; list-style: none; }
.trOurs summary::-webkit-details-marker { display: none; }
.trOurs summary::before { content: "\25B8"; color: var(--muted); }
.trOurs[open] summary::before { content: "\25BE"; }
.trOurs summary b { font-family: var(--mono); }
.trProbs { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--wicket); font-size: 13px; font-weight: 600;
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(224, 36, 59, .05) 8px 16px); }
.trProbs b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--wicket); color: #fff; font-size: 11px; margin-right: 4px; }
.trActs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trActs .go.big:not(:disabled) { animation: goGlow 1.8s ease-in-out infinite; }
@keyframes goGlow { 50% { box-shadow: 4px 4px 0 var(--shadowC), 0 0 0 5px var(--accentGlow); } }

.trDone { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; min-width: min(460px, 86vw); }
.trStamp { font: 800 54px/1 var(--display); letter-spacing: -.02em; color: var(--accentText); border: 5px solid currentColor; border-radius: 14px; padding: 6px 22px;
  transform: rotate(-7deg); animation: stampIn .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stampIn { from { transform: rotate(-7deg) scale(2.4); opacity: 0; } }

.trOffers { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.trOffer { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.trOffer.open { box-shadow: 4px 4px 0 var(--sun); }
.trOffer:not(.open) { opacity: .6; }
.ofHead { display: flex; align-items: center; gap: 10px; }
.ofHead h3 { margin: 0; font: 800 18px/1.1 var(--display); }
.ofScore { margin-left: auto; font: 700 24px/1 var(--mono); }
.ofDeal { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--raise); }
.ofDeal .vsArrows { width: 32px; height: 32px; }
.ofDeal .vsArrows svg { width: 16px; height: 16px; }
.ofCols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.consMini { font-size: 12.5px; padding: 3px 0; }
.consNote { font-size: 12px; padding: 6px 10px 8px; color: var(--wicket); border-top: 1px dashed var(--line); }
.consMini.yes { color: var(--accentText); }
.consMini.no { color: var(--wicket); }
tr.mineRow td { background: var(--sunWash); }
.vsCell svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; }
.needGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.needCard { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; padding: 8px 10px; border: 1.5px solid var(--line2); border-radius: 10px; }
.needCard.mine { border-color: var(--edge); background: var(--sunWash); }
.needCard .nh { display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 2px; font-size: 13px; }

@media (max-width: 1250px) {
  .trGrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trDeal { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  .trGrid { grid-template-columns: minmax(0, 1fr); }
  .trTrays, .ofCols { grid-template-columns: 1fr; }
  .trOffers { grid-template-columns: 1fr; }
  .trScroll { max-height: 420px; }
}

.batNo { display: inline-block; min-width: 16px; margin-right: 5px; font: 800 10px/16px var(--body); text-align: center; border-radius: 4px; background: var(--line); color: var(--muted); }
.batNo.imp, .reg.imp { background: var(--accent); color: var(--accentInk); }
.feeNote { margin: -4px 2px 8px; }
.intCard { border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.intHead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.intRow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.intRow .pl { flex: 1 1 160px; min-width: 0; }
.intRank { font: 800 13px/1 var(--body); color: var(--muted); width: 16px; text-align: right; }
.intOffer { flex: 1 1 200px; font-size: 13px; }
.intOffer .k { font: 700 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

/* the captain's match, arcade feel: balls pop in one after another, the score jumps, pop-ups per ball */
.lvCtl button { transition: transform .08s ease-out, filter .12s; }
.lvCtl button:active:not(:disabled), .lvCtl button.lvPress { transform: scale(.94) translate(1px, 1px); filter: brightness(1.15); }
.lvCtl kbd { font: 600 10px/1 var(--mono); padding: 2px 4px; margin-left: 4px; border: 1px solid currentColor; border-radius: 4px; opacity: .6; }
.lvCtl .lvSnd.off { opacity: .6; text-decoration: line-through; }
.ball.fresh { animation: lvChipIn .34s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i, 0) * var(--lvGap, 0ms)); }
@keyframes lvChipIn { 0% { opacity: 0; transform: scale(.2) translateY(8px); } 100% { opacity: 1; transform: none; } }
.ballLine.fresh { animation: lvLineIn .28s ease-out both; }
@keyframes lvLineIn { from { opacity: 0; transform: translateY(-8px); } }
.lvBigScore .num { display: inline-block; transform-origin: left center; }
.lvBump { animation: lvBump .26s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes lvBump { 40% { transform: scale(1.1); } }
.lvShake { animation: lvShake .45s; }
@keyframes lvShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.lvFlash .lvBig { animation: lvFlash .65s ease-out; }
@keyframes lvFlash { 25% { box-shadow: 0 0 0 5px var(--sun), 0 0 46px var(--sun); } }
.lvFx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.lvPop { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; font: 900 46px/1 var(--display);
  letter-spacing: .01em; color: var(--ink); -webkit-text-stroke: 2px #111318; paint-order: stroke fill; text-shadow: 3px 3px 0 #111318;
  animation: lvPop .95s cubic-bezier(.2, 1.4, .4, 1) both; }
.lvPop small { display: block; margin-top: 6px; font: 800 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  -webkit-text-stroke: 0; text-shadow: none; color: var(--ink); }
@keyframes lvPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-6deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(2deg); }
  32% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  72% { opacity: 1; transform: translate(-50%, -95%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(.95); }
}
.lvPop.p0 { font-size: 26px; color: var(--faint); -webkit-text-stroke: 0; text-shadow: none; }
.lvPop.p1 { font-size: 34px; color: #3ddc97; }
.lvPop.p4 { font-size: 60px; color: #4a63ff; }
.lvPop.p6 { font-size: 78px; color: var(--sun); text-shadow: 4px 4px 0 #111318, 0 0 28px rgba(255, 208, 0, .65); }
.lvPop.pW { font-size: 68px; color: var(--wicket); }
.lvPop.pX, .lvPop.pD { font-size: 28px; color: var(--orange); }
/* the voice of the format: a T20 is a neon arcade, a Test is quieter */
[data-fmt="t20"] .lvPop.p4 { text-shadow: 3px 3px 0 #111318, 0 0 22px rgba(74, 99, 255, .7); }
[data-fmt="test"] .lvPop { animation-duration: 1.25s; -webkit-text-stroke: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); font-size: 34px; }
[data-fmt="test"] .lvPop.p0, [data-fmt="test"] .lvPop.p1 { font-size: 22px; }
[data-fmt="test"] .lvPop.p6, [data-fmt="test"] .lvPop.pW { font-size: 48px; }
@media (prefers-reduced-motion: reduce) {
  .ball.fresh, .ballLine.fresh, .lvBump, .lvShake, .lvFlash .lvBig { animation: none; }
  .lvPop { animation-duration: 1.2s; animation-name: lvFade; }
  @keyframes lvFade { 0%, 100% { opacity: 0; } 15%, 75% { opacity: 1; } }
}
#soundBtn.off { opacity: .6; text-decoration: line-through; }

/* pick the XI (its own page) and the simulate confirmation */
.xiSub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xiSub b { color: var(--ink); }
.xiGrid { display: grid; grid-template-columns: minmax(420px, 0.8fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.xiOrder .ph, .xiSquad .ph { display: flex; align-items: center; gap: 8px; }
.xiOrder .slot { margin-bottom: 6px; padding: 7px 9px; }
.xiCard { margin-top: 14px; border: 2px solid var(--edge); }
.xiSquad { position: sticky; top: 86px; }
.xiTools { margin-bottom: 10px; }
.xiNote { margin: -2px 0 8px; }
.xiTable { max-height: calc(100vh - 290px); min-height: 360px; box-shadow: none; border-width: 1.5px; }
.xiTable thead th { position: sticky; top: 0; z-index: 2; background: var(--panelSolid); }
.xiTable tr.inXi td { background: var(--accentWash); }
.xiTable tr.hov td { box-shadow: inset 0 -1px 0 var(--edge); }
.xiTable td.pickTd { width: 1%; }
.xiPick { min-width: 64px; padding: 4px 8px; font: 800 11.5px/1 var(--body); border-radius: 8px; box-shadow: 2px 2px 0 var(--shadowC); display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.xiPick.in { background: var(--accent); color: var(--accentInk); }
.xiPick.in .xo svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 3; display: block; }
.xiPick.auto { background: var(--sunWash); border-style: dashed; }
.fmCell { vertical-align: top; }
.fmChip { display: inline-flex; flex-direction: column; gap: 2px; padding: 4px 7px; border-radius: 7px; background: var(--raise); font: 600 11.5px/1.2 var(--mono); border: 1.5px solid transparent; }
.fmChip b { font-weight: 800; }
.fmChip.up { border-color: var(--accent); }
.fmChip.down { border-color: var(--orange); }
.fmOpp { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.mdBody { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr); gap: 12px; margin-bottom: 14px; }
.mdBody .heroGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simGame { margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--line2); }
.simHead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.simXi { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 3px; }
.simXi.two { grid-template-columns: 1fr; }
.simXi li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 13px; }
.simXi .n { font: 800 13px/1 var(--display); color: var(--muted); text-align: right; }
.simXi .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.simXi .warn { color: var(--orangeText); font-weight: 700; }
@media (max-width: 1250px) {
  .xiGrid, .mdBody { grid-template-columns: 1fr; }
  .xiSquad { position: static; }
  .xiTable { max-height: 620px; }
}
.xiTable table.t th, .xiTable table.t td { padding: 7px 6px; }
.xiTable td .sub2 { white-space: normal; max-width: 180px; line-height: 1.3; }
.xiTable .fmChip { font-size: 11px; padding: 3px 5px; }

/* ── challenges: the launcher's daily challenge, history and the share card ───────────────────────────────────── */
.chStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.chStats > div { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 14px; border: 2px solid var(--line2); border-radius: 12px; }
.chStats b { font: 800 26px/1 var(--display); color: #ffffff; }
.chStats span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chToday { padding: 18px 20px; border: 2px solid var(--sun); border-radius: 16px; background: rgba(255, 208, 0, .05); box-shadow: 6px 6px 0 rgba(0, 0, 0, .5); }
.chKicker { font: 700 11px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; }
.chToday h3 { margin: 0 0 4px; font: 800 26px/1.1 var(--display); color: #ffffff; letter-spacing: -.01em; }
.chScores { margin: 10px 0 4px; font: 700 14px/1.4 var(--mono); color: var(--ink2); }
.chSit { margin: 10px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.chMore { margin: 6px 0 12px; font-size: 13.5px; color: var(--ink2); }
.chMore summary { cursor: pointer; font-weight: 700; color: var(--accentText); }
.chMore p { margin: 8px 0 0; line-height: 1.5; }
.chSides { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; }
.chSide { display: flex; align-items: center; gap: 10px; text-align: left; flex: 1 1 240px; padding: 10px 14px; }
.chSide span { display: flex; flex-direction: column; }
.chSide small { font-weight: 500; font-size: 12px; opacity: .85; }
.chSides.sm .chSide { flex: 0 1 auto; padding: 6px 10px; }
.chSides.sm .chSide small { display: none; }
.chRec { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.chList { display: flex; flex-direction: column; gap: 10px; }
.chItem { padding: 12px 14px; border: 2px solid var(--line2); border-radius: 12px; }
.chItemHead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; color: #ffffff; }
.chStars { display: inline-flex; gap: 1px; letter-spacing: 0; }
.chStars i { font-style: normal; color: var(--line2); }
.chStars i.on { color: var(--sun); }
.chStars.big { font-size: 34px; margin: 6px 0 2px; }
.chLine { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.chGoal { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.chShot { width: 100%; max-width: 900px; border-radius: 10px; border: 2px solid var(--line2); display: block; }
.chHist td { vertical-align: middle; }
.chGlobal { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
.chGlobal b { color: #ffffff; }
.chBoardBar { display: flex; justify-content: flex-end; margin: -6px 0 12px; }
.chBoardBtn { margin-top: 8px; }
.chStats.sm b { font-size: 20px; }
.chSideStats { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
.chSideStat { display: flex; flex-direction: column; gap: 4px; }
.chBarRow { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line2); max-width: 420px; }
.chBarRow i { display: block; min-width: 3px; }
.chBarRow .o-win { background: #2340ff; } .chBarRow .o-tie { background: var(--sun); } .chBarRow .o-draw { background: var(--muted); } .chBarRow .o-loss { background: var(--orange); }
.chDist { margin-bottom: 10px; }
.chBoardWrap { margin: 6px 0 8px; max-height: 46vh; overflow: auto; }
.chBoard tr.me td { background: var(--mine); font-weight: 700; }
.chBoard tr.gap td { border-top: 2px dashed var(--line2); }
.chName { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.chName label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.chBoardNav { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .chStats { grid-template-columns: repeat(2, 1fr); } }
.lnVersion { margin-top: 8px; font: 700 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }

/* ── support: bug reports, about, the update notice ─────────────────────────────────────────────────────────── */
.rpForm { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.rpForm label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.rpForm textarea { width: 100%; font: inherit; font-weight: 400; padding: 8px 10px; border: 2px solid var(--line2); border-radius: 10px; background: var(--panel); color: var(--ink); resize: vertical; }
.rpForm .rpCheck { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.rpDone { padding: 10px 12px; border: 2px solid var(--line2); border-radius: 10px; margin-bottom: 10px; }
.rpDone code, .aboutBox code { font: 12px/1.4 var(--mono); word-break: break-all; }
.aboutBox { display: flex; flex-direction: column; gap: 10px; }
.lnUpdate { padding: 10px 14px; border: 2px solid var(--sun); border-radius: 12px; background: rgba(255, 208, 0, .08); color: #ffffff; }
.lnUpdate a { color: var(--sun); font-weight: 700; }
.chItem.locked { opacity: .75; }
.chTest { margin-bottom: 12px; padding: 8px 12px; border: 2px dashed var(--warn); border-radius: 10px; color: var(--warn); font-weight: 700; font-size: 13px; }
.sideFoot #bugLinkGame { font-size: 12px; color: var(--muted); }

/* ── tours: a spotlight on one part of the screen and a card about it ───────────────────────────────────────── */
#tour { position: fixed; inset: 0; z-index: 80; }
#tour.hidden { display: none; }
.tourShade { position: absolute; inset: 0; }
.tourShade.on { background: rgba(4, 7, 9, .66); }
.tourSpot { position: absolute; border-radius: 12px; border: 2px solid var(--sun, #ffd000); box-shadow: 0 0 0 9999px rgba(4, 7, 9, .66);
  transition: left .2s, top .2s, width .2s, height .2s; pointer-events: none; }
.tourSpot.hidden { display: none; }
.tourCard { position: absolute; width: min(360px, calc(100vw - 24px)); padding: 16px 18px; background: #12181e; color: #f2f3f5;
  border: 2px solid #2f3843; border-radius: 14px; box-shadow: 6px 6px 0 #000; animation: fadeUp .2s ease-out; }
.tourCard h3 { margin: 4px 0 6px; font: 800 20px/1.15 var(--display); color: #ffffff; }
.tourCard p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #c9cdd5; }
.tourStep { font: 700 11px/1 var(--mono); letter-spacing: .08em; color: var(--sun, #ffd000); text-transform: uppercase; }
.tourBtns { display: flex; align-items: center; gap: 8px; }
.tourBtns span { flex: 1; }
.tourCard button.ghost { color: #f2f3f5; border-color: #424b57; }
.shareRow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.shareBtn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--edge); font-weight: 700;
  color: var(--ink); background: var(--panel); text-decoration: none; }
.shareBtn:hover { background: var(--raise); }
.chShot { box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }

/* the web version: the launcher's link to the full game is a link styled as its Continue button */
a.lnGo { text-decoration: none; box-sizing: border-box; }
a.lnGo .saveIcon svg { width: 22px; height: 22px; }
/* ...and a plain note on it under the challenge list and after a challenge's result */
.chFull { margin-top: 26px; padding: 16px 18px; border: 2px solid var(--line2); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.chFull p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink2); max-width: 680px; }
.chFull .btnGo { display: inline-flex; margin-top: 4px; text-decoration: none; }
.chPlug { margin: 12px 0 0; max-width: 640px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.chPlug a { color: var(--sun); font-weight: 700; white-space: nowrap; }

/* the domestic game's rules as a control panel (org.js rulesPanel): switches, choices and steppers; planned changes marked */
.ctlHead { font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.compCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.compCard { border: 2px solid var(--edge); border-radius: 12px; padding: 12px; background: var(--panel); }
.compCard.isOff { background: var(--raise); border-color: var(--line2); }
.compCard .ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.compCard .ch b { font: 800 16px/1.1 var(--display); }
.ctlCols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 24px; }
.ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 8px 6px; border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.ctl .cl { font-size: 13px; font-weight: 600; }
.ctl .cc { justify-self: end; display: flex; align-items: center; gap: 6px; }
.ctl .cn { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.ctl .cn .was { color: var(--muted); text-decoration: line-through; }
.ctl.chg { border-left-color: var(--sun); background: var(--sunWash); }
.ctl.dim .cl { color: var(--faint); }
.sw { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 3px; border-radius: 999px; font-size: 11.5px; font-weight: 800; box-shadow: none; }
.sw i { width: 30px; height: 18px; border-radius: 999px; background: var(--line2); position: relative; transition: background .12s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; transition: left .12s; }
.sw.on i { background: var(--accent); }
.sw.on i::after { left: 14px; }
.sw:hover { transform: none; box-shadow: none; }
.segSm button { padding: 5px 9px; font-size: 11.5px; }
.seg button:disabled { opacity: .45; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--panel); }
.stepper button { border: none; border-radius: 0; box-shadow: none; padding: 3px 10px; font-weight: 800; background: transparent; }
.stepper button:hover:not(:disabled) { background: var(--raise); transform: none; box-shadow: none; }
.stepper b { min-width: 44px; padding: 0 6px; text-align: center; font: 700 12.5px/1 var(--mono); white-space: nowrap; }
.clubStrip { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 10px; }
.clubChip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; border: 1.5px solid var(--line2); font-size: 11.5px; font-weight: 600; }
.clubChip.new { border: 1.5px dashed var(--accent); color: var(--accentText); background: var(--accentWash); }
.clubChip.closing { border-color: var(--orange); background: var(--orangeWash); color: var(--orangeText); text-decoration: line-through; }
.ctlBar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-top: 2px solid var(--line); background: var(--panel); z-index: 2; }
.ctlBar > div { flex: 1; font-size: 13px; }
.ctlBar.live { border: 2px solid var(--edge); border-radius: 12px; box-shadow: 3px 3px 0 var(--shadowC); }

/* the match screen's "?" tips (app.js lvHelp): shown on hover or a tap, in place of long notes on the cards */
.lvHelp { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; border: 1.5px solid var(--line2);
  color: var(--muted); font: 800 10px/1 var(--body); letter-spacing: 0; text-transform: none; vertical-align: middle; cursor: help; user-select: none; }
.lvHelp:hover, .lvHelp:focus { border-color: var(--edge); color: var(--ink); background: var(--raise); outline: none; }
/* a batter's card: name and score on one line, the field he faces small beside the bowler's threat */
.lvBatTop { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; }
.lvBatTop .lvNow { white-space: nowrap; }
.lvThreatRow { gap: 4px 6px; }
.lvThreatRow .lvFaced { margin-left: auto; gap: 3px; }
.lvFacedPic { width: 40px; margin-left: 2px; }
.agHead { flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.agHead b { margin-left: auto; }
.lvFreezeBox, .agProjHelp { display: inline-flex; align-items: center; }
.lvFreezeBox .lvFreeze { float: none; margin-left: 0; }
.agProjHelp { font-size: 11.5px; }
.lvFieldHead { align-items: center; }
.lvFieldSec:has(> #lvField:empty) { display: none; }
/* the scorecard tabs: an even grid, two rows of five or one row of ten, never a ragged wrap */
.lvCard { container-type: inline-size; }
.lvTabs .seg { flex: 1 1 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5px; background: var(--edge); }
.lvTabs .seg button { min-width: 0; padding: 7px 4px; border: none; background: var(--panel); justify-content: center; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvTabs .seg button:hover:not(.on) { background: var(--raise); }
.lvTabs .seg button.on { background: var(--ink); color: var(--panel); }
@container (min-width: 860px) { .lvTabs .seg { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

/* ── small screens: a phone either way up, a tablet held upright, a narrow or short window, a high browser zoom.
   The match on one screen: the score stays on top, the controls sit in a rail on the right (short screens) or a
   bar along the foot (narrow ones), and the middle, the scorecard and the commentary are one tap apart ── */
.lvPanes { display: none; }
@media (max-height: 540px), (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  #liveScreen { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
  #liveScreen button, #liveScreen a { touch-action: manipulation; }
  .lvCtl kbd { display: none; }
  #liveScreen:not(.lvReview) .lvCtl [data-lsnd] { order: 5; }
  #liveScreen:not(.lvReview) .lvCtl [data-lmenu] { order: 6; }
  .lvPanes button { justify-content: center; padding: 3px 4px; font-size: 12px; font-weight: 700; color: #ffffff; border-color: #4a505c; border-radius: 8px; }
  .lvPanes button.on { background: var(--sun); color: #111318; border-color: var(--sun); }

  /* top bar: one line that scrolls sideways */
  .lvTop { flex: none; flex-wrap: nowrap; gap: 8px; padding: 5px 10px; }
  .lvHead { flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .lvHead::-webkit-scrollbar { display: none; }
  .lvTitle, .lvScores { flex: none; flex-wrap: nowrap; gap: 6px; }
  .lvTitle b { font-size: 13px; white-space: nowrap; }
  .lvTitle .sub2 { font-size: 11px; white-space: nowrap; }
  .lvTop .liveTag { padding: 4px 6px; font-size: 9.5px; }
  .lvScore { padding: 4px 6px; font-size: 11.5px; white-space: nowrap; border-radius: 6px; }
  .lvTop .chip { font-size: 10.5px; padding: 2px 7px; }
  .lvDay { flex: none; flex-basis: auto; flex-wrap: nowrap; white-space: nowrap; font-size: 11.5px; gap: 6px; }

  /* the board: one short strip */
  .lvBoard { flex: none; gap: 8px; padding: 6px 10px 0; }
  .lvBig { flex: 1 1 auto; flex-wrap: nowrap; gap: 6px 16px; padding: 5px 12px; overflow-x: auto; scrollbar-width: none; }
  .lvBig::-webkit-scrollbar { display: none; }
  .lvBigScore { flex: none; gap: 8px; align-items: center; }
  .lvBigScore .tb.md { width: 28px; height: 28px; font-size: 9.5px; border-radius: 7px; }
  .lvBigScore .num { font-size: 34px; }
  .lvBigScore .ovs { font-size: 13px; }
  .lvSticker { flex: none; font-size: 15px; padding: 5px 10px; border-radius: 9px; white-space: nowrap; }
  .lvSticker small { display: inline; margin-left: 4px; font-size: 12px; }
  .lvRates2 { flex: none; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 4px 6px; font-size: 12px; white-space: nowrap; }
  .lvRates2 b + span { margin-left: 8px; }

  /* the panes: the sections of both columns placed in one grid that scrolls under the board */
  .lvMain { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 8px; padding: 8px 10px 12px; }
  #liveScreen:not(.lvReview) .lvLeft, #liveScreen:not(.lvReview) .lvSide { display: contents; }
  .lvMain .panel.pad { padding: 10px 12px; }
  .lvMain .ph { font-size: 14px; margin-bottom: 8px; }
  .lvCard { min-height: 0; }
  #liveScreen:not(.lvReview)[data-pane="play"] .lvCard { display: none; }
  #liveScreen:not(.lvReview)[data-pane="play"] .lvCreaseSec { grid-column: 1; grid-row: 1 / span 2; }
  #liveScreen:not(.lvReview)[data-pane="play"] .lvFeed { grid-column: 2; grid-row: 1; }
  #liveScreen:not(.lvReview)[data-pane="play"] .lvBowlSec { grid-column: 2; grid-row: 2; }
  #liveScreen:not(.lvReview)[data-pane="play"] .lvFieldSec { grid-column: 1 / -1; grid-row: 3; }
  /* in the middle the feed keeps this over and its latest ball */
  [data-pane="play"] .lvFeed > .ph, [data-pane="play"] .lvFeedLines .lvNote, [data-pane="play"] .lvFeedOvHead,
  [data-pane="play"] .lvFeedOver ~ .lvFeedOver, [data-pane="play"] .lvFeedLines .ballLine ~ .ballLine { display: none; }
  [data-pane="play"] .lvFeedLines .ballLine { border-bottom: none; padding-bottom: 0; }
  [data-pane="play"] .lvFeedHead { margin: 0 0 4px; }
  #liveScreen:not(.lvReview)[data-pane="card"] :is(.lvFeed, .lvCreaseSec, .lvBowlSec, .lvFieldSec) { display: none; }
  #liveScreen:not(.lvReview)[data-pane="feed"] :is(.lvCard, .lvCreaseSec, .lvBowlSec, .lvFieldSec) { display: none; }
  #liveScreen:not(.lvReview)[data-pane="card"] .lvCard, #liveScreen:not(.lvReview)[data-pane="feed"] .lvFeed { grid-column: 1 / -1; grid-row: 1 / -1; }

  /* tighter cards */
  .lvChips { gap: 4px; margin-bottom: 4px; }
  .lvChips .ball { min-width: 28px; height: 28px; font-size: 12px; }
  .lvBat { gap: 5px; padding: 8px 10px; border-radius: 10px; }
  .lvBat + .lvBat { margin-top: 8px; }
  .lvBatInfo { gap: 4px; }
  .lvBatInfo .pcName, .lvBowlSec .pcName { font-size: 15px; }
  .lvNow { font-size: 12px; }
  .lvNow b { font-size: 21px; }
  .lvMeter { grid-template-columns: auto 70px auto 1fr; gap: 6px; font-size: 11px; }
  .lvRates { font-size: 10.5px; }
  .agBtns button { height: 34px; }
  .agProj { font-size: 10.5px; }
  .lvFields { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .lvFld { padding: 6px; gap: 4px; }
  .lvFld b { font-size: 12.5px; }
  .lvFld .sub2 { font-size: 10.5px; }
  .lvFld.on { transform: translateY(-3px); }
  .lvFieldHead .sub2 { font-size: 11px; }
  .lvTabs { margin-bottom: 8px; gap: 6px; }
  .lvTabs .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .lvTabs .seg button { white-space: nowrap; padding: 5px 9px; font-size: 12px; }
  .lvT td, .lvT th { font-size: 12.5px; }

  /* overlays fill the screen */
  .lvPick { padding: 8px; }
  .lvPickBox { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .lvPickBox:not(.lvCardBox) { padding: 10px 12px; }
  .lvPickBox .ph { font-size: 15px; margin-bottom: 6px; }
  .lvOpts { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
  .lvOpt { gap: 3px; padding: 7px 9px; box-shadow: 2px 2px 0 var(--shadowC); }
  .lvOpt b { font-size: 14px; }
  .lvOpt:hover { transform: none; box-shadow: 2px 2px 0 var(--shadowC); }
  .lvCardBox { gap: 6px; }
  .lvCardBig { font-size: 26px; }
  .lvHub { padding: 8px; }
  .hubBox { gap: 6px; padding: 12px 14px; }
  .hubTitle { font-size: 24px; }
  .hubLead { font-size: 13.5px; }
  .hubLead .verdict { font-size: 19px; padding: 4px 10px; }
  .chStars.big { font-size: 26px; }
  #liveScreen .choiceBtns { gap: 8px; margin: 8px 0 6px; }
  #liveScreen button.big { padding: 9px 14px; font-size: 14px; }
  .modal { padding: 10px; }
  .modalBox { padding: 14px 16px; }

  /* the pop-ups on a run or a wicket, sized for the small screen */
  .lvPop { font-size: 30px; }
  .lvPop small { font-size: 10px; }
  .lvPop.p0 { font-size: 18px; } .lvPop.p1 { font-size: 22px; } .lvPop.p4 { font-size: 38px; }
  .lvPop.p6 { font-size: 48px; } .lvPop.pW { font-size: 44px; } .lvPop.pX, .lvPop.pD { font-size: 20px; }
}
/* a short screen (a phone sideways, a squat window, a high zoom): the controls in a rail on the right, play first,
   sound and the match centre at its foot, the panes under it */
@media (max-height: 540px) {
  #liveScreen { --rail: 128px; }
  #liveScreen:not(.lvReview) { padding-right: var(--rail); }
  #liveScreen:not(.lvReview) .lvCtl { position: fixed; top: 0; right: 0; bottom: 104px; width: var(--rail); z-index: 2;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; padding: 8px; overflow-y: auto; background: #111318; border-left: 1px solid #2a2f38; }
  #liveScreen:not(.lvReview) .lvCtl > * { flex: none; }
  #liveScreen:not(.lvReview) .lvCtl button { justify-content: center; min-height: 38px; padding: 6px 4px; font-size: 12.5px; line-height: 1.15; white-space: normal; text-align: center; }
  #liveScreen:not(.lvReview) .lvCtl button.go { min-height: 46px; font-size: 13.5px; }
  #liveScreen:not(.lvReview) .lvCtl [data-lsnd] { margin-top: auto; }
  #liveScreen:not(.lvReview) .lvCtl [data-lsnd], #liveScreen:not(.lvReview) .lvCtl [data-lmenu] { min-height: 30px; font-size: 11.5px; }
  #liveScreen:not(.lvReview) .lvCtl .sub2 { font-size: 11px; text-align: center; }
  #liveScreen:not(.lvReview) .lvPanes { display: grid; gap: 4px; position: fixed; right: 0; bottom: 0; width: var(--rail); height: 104px; z-index: 2;
    padding: 6px 8px 8px; background: #111318; border-left: 1px solid #2a2f38; border-top: 1px solid #2a2f38; }

  /* the launcher: a narrow menu beside the challenge, each scrolling on its own */
  .launcher { grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); height: 100vh; height: 100dvh; min-height: 0; }
  .lnSide { min-height: 0; overflow-y: auto; padding: 14px 10px 12px 16px; gap: 12px; }
  .lnTitle { gap: 10px; }
  .lnTitle h1 { font-size: 24px; }
  .lnKicker { font-size: 10px; margin-bottom: 4px; }
  .lnBall { width: 34px; height: 34px; }
  .lnGo { padding: 8px 10px; gap: 8px; }
  .lnGoLabel { font-size: 16px; }
  .lnMenu button { font-size: 16px; padding: 7px 10px 7px 12px; }
  .lnMenu small { display: none; }
  .lnLink { padding: 4px 10px 4px 50px; font-size: 12px; }
  .lnFoot { display: none; }
  .lnPanel { margin: 10px 10px 10px 4px; padding: 14px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; }
  .lnHead { margin-bottom: 10px; }
  .lnHead h2 { font-size: 22px; }
  .chToday { padding: 12px 14px; }
  .chToday h3 { font-size: 20px; }
  .chStats b { font-size: 20px; }
}
/* a narrow screen held upright (a phone, a tablet, a narrow window): the controls in a bar along the foot, the panes under it */
@media (min-height: 541px) and (max-width: 900px) {
  #liveScreen:not(.lvReview) { padding-bottom: 106px; }
  #liveScreen:not(.lvReview) .lvCtl { position: fixed; left: 0; right: 0; bottom: 48px; height: 58px; z-index: 2; flex-wrap: nowrap; align-items: stretch;
    gap: 6px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; background: #111318; border-top: 1px solid #2a2f38; }
  #liveScreen:not(.lvReview) .lvCtl::-webkit-scrollbar { display: none; }
  #liveScreen:not(.lvReview) .lvCtl > * { flex: 1 0 auto; }
  #liveScreen:not(.lvReview) .lvCtl button { justify-content: center; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  #liveScreen:not(.lvReview) .lvCtl button.go { flex-grow: 2; }
  #liveScreen:not(.lvReview) .lvCtl .sub2 { align-self: center; flex: none; font-size: 11px; }
  #liveScreen:not(.lvReview) .lvPanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; position: fixed; left: 0; right: 0; bottom: 0;
    height: 48px; z-index: 2; padding: 4px 10px 8px; background: #111318; }
  .lvPanes button { font-size: 13px; }
  /* the bowler and batter pickers rise from the foot, within reach of a thumb */
  .lvPick { align-items: flex-end; }
}
@media (max-height: 380px) {
  #liveScreen:not(.lvReview) .lvCtl button { min-height: 32px; }
  #liveScreen:not(.lvReview) .lvCtl button.go { min-height: 38px; }
  #liveScreen:not(.lvReview) .lvCtl [data-lsnd], #liveScreen:not(.lvReview) .lvCtl [data-lmenu] { min-height: 28px; }
}
/* ── a desktop browser: the match fits the window. A compact header and score strip, and each column scrolls on
   its own, so the controls, the crease and the bowler never go below the fold ── */
@media (min-width: 901px) and (min-height: 541px) {
  #liveScreen { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
  /* the header in two lines whatever the controls take: the title and the day, then every innings in one row */
  .lvTop { flex: none; flex-wrap: nowrap; gap: 8px 16px; padding: 7px clamp(12px, 1.5vw, 20px); }
  .lvHead { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t d" "s s"; align-items: center; gap: 5px 14px; }
  .lvTitle { grid-area: t; flex-wrap: nowrap; min-width: 0; white-space: nowrap; }
  .lvTitle b { font-size: 15px; }
  .lvTitle .sub2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .lvDay { grid-area: d; flex-basis: auto; flex-wrap: nowrap; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12.5px; }
  .lvScores { grid-area: s; flex-wrap: nowrap; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .lvScores::-webkit-scrollbar { display: none; }
  .lvScore, .lvTop .chip { flex: none; white-space: nowrap; }
  .lvScore { padding: 5px 8px; }
  .lvCtl { flex: none; flex-wrap: nowrap; }
  .lvCtl button { white-space: nowrap; }
  .lvBoard { flex: none; gap: 12px; padding: 8px clamp(12px, 1.5vw, 20px) 0; }
  /* sizes follow the window's height between a short laptop and a tall monitor */
  .lvBig { flex-wrap: nowrap; gap: 8px 24px; padding: clamp(6px, 0.9vh, 12px) 16px; }
  .lvBigScore .num { font-size: clamp(36px, 4.8vh, 64px); }
  .lvBigScore .ovs { font-size: clamp(14px, 1.6vh, 19px); }
  .lvSticker { font-size: clamp(15px, 1.9vh, 22px); padding: 6px 12px; }
  .lvSticker small { display: inline; margin-left: 5px; font-size: clamp(12px, 1.4vh, 15px); }
  .lvRates2 { font-size: clamp(12px, 1.4vh, 15px); }
  .lvChips .ball { min-width: clamp(28px, 3.4vh, 38px); height: clamp(28px, 3.4vh, 38px); font-size: clamp(12px, 1.4vh, 15px); }
  .lvRates2 { grid-auto-flow: column; grid-template-rows: auto auto; grid-template-columns: none; gap: 2px 18px; }
  .lvMain { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 12px; padding: 10px clamp(12px, 1.5vw, 20px) 12px; }
  .lvLeft, .lvSide { min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; gap: 12px; padding: 0 4px 4px 0; }
  /* the scorecard over the commentary, each scrolling, so the latest balls are always in view */
  #liveScreen:not(.lvReview) .lvLeft { overflow: hidden; grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); align-content: stretch; }
  #liveScreen:not(.lvReview) .lvLeft > section { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .lvMain .panel.pad { padding: 12px 14px; }
  .lvMain .ph { font-size: 15px; margin-bottom: 8px; }
  .lvBat { gap: 6px; padding: 10px 12px; }
  .lvBat + .lvBat { margin-top: 10px; }
  .lvBatInfo { gap: 4px; }
  .lvBatInfo .pcName { font-size: clamp(15px, 1.9vh, 20px); }
  .lvNow b { font-size: clamp(20px, 2.6vh, 30px); }
  .lvFields { grid-template-columns: repeat(auto-fill, minmax(clamp(100px, 12vh, 150px), 1fr)); gap: 10px; }
  .lvFld.on { transform: translateY(-4px); }
}
/* a medium window (or a desktop at a high zoom): the controls give the header room */
@media (min-width: 901px) and (max-width: 1439px) and (min-height: 541px) {
  .lvCtl kbd { display: none; }
  .lvCtl { gap: 6px; }
  .lvCtl button { padding: 6px 10px; font-size: 12.5px; }
}
/* a wide window: three columns, the crease | this over, the commentary and the bowler | the scorecard and charts */
@media (min-width: 1280px) and (min-height: 541px) {
  #liveScreen:not(.lvReview) .lvMain { grid-template-columns: minmax(330px, 1fr) minmax(330px, 1fr) minmax(460px, 1.35fr);
    grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); }
  #liveScreen:not(.lvReview) :is(.lvLeft, .lvSide) { display: contents; }
  #liveScreen:not(.lvReview) :is(.lvCard, .lvFeed, .lvCreaseSec, .lvBowlSec, .lvFieldSec) { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  #liveScreen:not(.lvReview) .lvCreaseSec { grid-column: 1; grid-row: 1 / -1; }
  #liveScreen:not(.lvReview) .lvFeed { grid-column: 2; grid-row: 1; padding-top: 0; }
  #liveScreen:not(.lvReview) .lvBowlSec { grid-column: 2; grid-row: 2; }
  #liveScreen:not(.lvReview) .lvCard { grid-column: 3; grid-row: 1 / -1; }
  /* your side bowling: the field picker under the batters, whose cards are short without the aggression controls */
  #liveScreen:not(.lvReview):has(#lvField:not(:empty)) .lvMain { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  #liveScreen:not(.lvReview):has(#lvField:not(:empty)) .lvCreaseSec { grid-row: 1; }
  #liveScreen:not(.lvReview) .lvFieldSec { grid-column: 1; grid-row: 2; }
  /* the over's chips stay in view while the commentary under them scrolls */
  #liveScreen:not(.lvReview) .lvFeed > .ph { position: sticky; top: 0; z-index: 1; margin: 0; padding: 12px 0 6px; background: var(--panel); }
  #liveScreen:not(.lvReview) .lvFeedHead { position: sticky; top: 38px; z-index: 1; margin: 0 0 6px; padding-bottom: 6px; background: var(--panel); border-bottom: 1px solid var(--line); }
}
/* a small screen (a small phone sideways, any phone upright): the middle in one column, this over first */
@media (max-width: 720px) {
  .lvMain { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  #liveScreen:not(.lvReview)[data-pane="play"] :is(.lvCreaseSec, .lvFeed, .lvBowlSec, .lvFieldSec) { grid-column: 1; grid-row: auto; }
  #liveScreen:not(.lvReview)[data-pane="play"] .lvFeed { order: -1; }
}
@media (max-height: 540px) and (max-width: 720px) {
  #liveScreen { --rail: 112px; }
  .launcher { grid-template-columns: 200px minmax(0, 1fr); }
}
