:root {
  --bg: #eef3f0;
  --bg2: #ffffff;
  --bg3: #e7eee9;
  --line: #d0dbd4;
  --text: #1a2b24;
  --muted: #5a6f66;
  --accent: #0d8f63;
  --accent-ink: #ffffff;
  --accent-soft: rgba(13, 143, 99, 0.12);
  --gold: #b45309;
  --gold-soft: rgba(180, 83, 9, 0.1);
  --six: #6d28d9;
  --wide: #d97706;
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.1);
  --live: #e11d48;
  --live-soft: rgba(225, 29, 72, 0.1);
  --ink-danger: #ffffff;
  --pad: 16px;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 380px at 50% -60px, rgba(13, 143, 99, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
body.has-dock {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
.top {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px var(--pad);
  min-height: 56px;
}
.logo {
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.logo__mark {
  width: auto;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #000;
  flex: 0 0 auto;
  display: block;
}
.top__out {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}
.ctx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--pad) 10px;
}
.ctx__back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ctx__back::before {
  content: '←';
  margin-right: 6px;
}
.seg {
  display: flex;
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.seg__btn {
  flex: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  border-right: 1px solid var(--line);
}
.seg__btn:last-child { border-right: 0; }
.seg__btn.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.dock__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.dock__item.is-on { color: var(--accent); }
.dock__item--new.is-on { color: var(--gold); }
.dock__ico {
  width: 22px;
  height: 22px;
  display: block;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--pad);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}
h1 { font-size: 1.75rem; margin: 0 0 10px; letter-spacing: -0.03em; font-weight: 800; }
.h2 { font-size: 0.78rem; color: var(--muted); margin: 28px 0 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lede { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 18px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); margin: 8px 0 16px; }
.crumb { font-size: 14px; margin: 0 0 8px; font-weight: 700; }
.crumb a { color: var(--muted); }
.crumb a::before { content: '← '; }
.flash { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.flash--err { background: var(--danger-soft); color: #9f1239; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form .hint { margin-top: 0; }
.form--inline {
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 24px;
}
.form--inline label { flex: 1; min-width: 0; }
.form--inline .btn {
  flex: 0 0 auto;
  height: 48px;
  min-height: 48px;
  padding: 0 18px;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, button, textarea {
  font: inherit;
  color: var(--text);
}
input, select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.format-pick {
  border: 0;
  margin: 0;
  padding: 0;
}
.format-pick legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.format-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.format-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-height: 76px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}
.format-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.format-opt:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.format-opt span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(13, 143, 99, 0.18);
}
.btn--danger { background: var(--danger); color: var(--ink-danger); border-color: transparent; }
.btn--sm { min-height: 48px; font-size: 15px; padding: 0 12px; }
.btn--wide { width: 100%; }
.btn--live {
  border-color: transparent;
  color: #fff;
  background: var(--live);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.2);
}
.row-btns {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 8px;
}
.row-btns .btn { flex: 1; width: 50%; }
.subnav {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 28px;
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
}
.subnav .btn {
  flex: 1 1 0;
  min-height: 52px;
  margin: 0;
}
.subnav--back {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 0;
  border-top: none;
}
.subnav--back .btn { flex: 0 0 auto; width: auto; min-width: 120px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.list--plain { gap: 0; }
.list--plain li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(26, 43, 36, 0.06);
}
.card--live {
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 0 0 1px var(--live-soft), 0 10px 24px rgba(26, 43, 36, 0.06);
}
.card__main { color: var(--text); display: flex; flex-direction: column; gap: 8px; }
.card__sub { color: var(--muted); font-size: 14px; font-weight: 600; }
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.card__top strong { font-size: 1.05rem; line-height: 1.3; }
.card__when {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.card__main em { color: var(--muted); font-style: normal; font-size: 13px; }
.badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--bg3);
  color: var(--muted);
}
.badge--live {
  background: var(--live);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.28);
  animation: livePulse 1.8s ease-in-out infinite;
}
.badge--innings_break { background: var(--gold-soft); color: var(--gold); }
.badge--completed { background: var(--bg3); color: var(--muted); }
.badge--setup { background: var(--bg3); color: var(--muted); }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(225, 29, 72, 0); }
}
.card__inns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__inns li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  background: var(--bg3);
  border-radius: 12px;
  padding: 10px 12px;
}
.card__inns li.is-live {
  outline: 1px solid rgba(13, 143, 99, 0.35);
  background: var(--accent-soft);
}
.card__team { font-weight: 700; }
.card__score { color: var(--gold); font-weight: 800; white-space: nowrap; }
.card__note {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.card__result {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
}
.card__actions { display: flex; gap: 12px; }
.card__actions .btn { flex: 1; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  background: var(--bg3);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 48px;
}
input.is-invalid, select.is-invalid {
  border-color: var(--danger);
}
.live-msg {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg3);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.live-msg--err { background: var(--danger-soft); color: #9f1239; }
#assign-msg:not([hidden]) {
  position: sticky;
  top: 8px;
  z-index: 4;
  box-shadow: 0 8px 18px rgba(26, 43, 36, 0.08);
}
.assign-row.is-blocked {
  box-shadow: inset 0 0 0 1px var(--danger);
}
.assign-row__err {
  margin: 8px 0 0;
  color: #9f1239;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.squad-meta {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.squad-meta.is-ok { color: var(--accent); }
.squad-meta.is-bad { color: var(--danger); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.checks input { width: auto; min-height: 0; }
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; padding: 12px; }
legend { color: var(--muted); padding: 0 6px; }
.squads { display: flex; flex-direction: column; gap: 8px; }
.squad-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
  padding: 12px;
}
.squad-legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}
.assign-list { display: flex; flex-direction: column; gap: 10px; }
.assign-row {
  background: var(--bg3);
  border-radius: 12px;
  padding: 10px 12px;
}
.assign-row__name { color: var(--text); font-size: 16px; font-weight: 700; }
.assign-row__home {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0 8px;
}
.assign-picks {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1fr;
  gap: 6px;
}
.assign-picks label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  min-height: 44px;
  padding: 4px 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
}
.assign-picks input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.assign-picks label.is-on {
  outline: 2px solid var(--accent);
  background: var(--accent-soft);
}
.assign-picks label.is-both {
  outline-color: var(--gold);
  background: var(--gold-soft);
}
.assign-picks label.is-out {
  outline-color: var(--line);
  background: var(--bg2);
  color: var(--muted);
}

.score-hero { text-align: center; padding: 8px 0 16px; }
.score-hero .teams { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.score-hero .when { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.score-hero .num {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.score-hero .ov { color: var(--gold); font-weight: 700; margin-top: 6px; font-size: 1.15rem; }
.score-hero .bat-name { margin-top: 4px; font-weight: 700; }
.this-over {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  margin: 10px 0 16px;
}
.this-over__lab {
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.bball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  background: #e4ebe6;
  color: var(--text);
}
.bball--dot { background: #e4ebe6; color: var(--text); }
.bball--runs { background: #e4ebe6; color: var(--text); }
.bball--four { background: var(--accent); color: #fff; }
.bball--six { background: var(--six); color: #fff; }
.bball--wicket { background: #dc2626; color: #fff; }
.bball--wide,
.bball--noball { background: var(--wide); color: #fff; }
.bball--bye,
.bball--legbye { background: #64748b; color: #fff; }
.bball--drop { background: var(--gold); color: #fff; }
.pill {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 700;
}
.pill--w { background: var(--danger-soft); border-color: rgba(220, 38, 38, 0.28); color: #9f1239; }
.pill--drop { background: var(--gold-soft); border-color: rgba(180, 83, 9, 0.28); color: var(--gold); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mini {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 4px;
}
.mini strong { display: block; font-size: 15px; }
.mini span { color: var(--muted); font-size: 13px; }
.mini .on { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.meta { color: var(--muted); font-size: 13px; text-align: center; margin: 0 0 12px; }
.result {
  background: var(--accent-soft);
  border: 1px solid rgba(13, 143, 99, 0.35);
  color: var(--accent);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 10px;
}
.pad-grid button {
  min-height: 64px;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
}
.pad-grid button:active { transform: scale(.97); }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px; }
.extras button, .pad-actions button {
  min-height: 52px;
  font-weight: 800;
  border-radius: 14px;
}
.extras .on {
  outline: 2px solid var(--blue);
  background: var(--blue-soft);
}
.extras .extras__drop.on {
  outline-color: var(--gold);
  background: var(--gold-soft);
}
.pad-fielders {
  margin: 0 0 10px;
}
.pad-fielders button {
  min-height: 44px;
  font-size: 14px;
}
.pad-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 10px;
}
.announce-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 4px 0 12px;
}
.announce-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  min-height: 44px;
}
.announce-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.announce-bar .btn--sm {
  min-height: 40px;
  padding: 0 12px;
  flex: 0 0 auto;
}
.mode-bar {
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}
.sheet {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0;
}
.sheet h2 { font-size: 1.1rem; margin: 0 0 10px; }
.choice { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.choice--2 { display: grid; grid-template-columns: 1fr 1fr; }
.choice--4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.choice--2 button, .choice--4 button { text-align: center; padding: 0 8px; }
.choice button, .choice .opt {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  padding: 0 14px;
  width: 100%;
}
.choice button.on, .choice .opt.on { outline: 2px solid var(--accent); }
.err { color: var(--danger); font-size: 14px; text-align: center; margin: 0 0 8px; }
#pad, #board { padding-bottom: 4px; }
#pad .score-hero { padding-bottom: 8px; }
#pad .this-over { margin: 6px 0 10px; }
#pad .pair { margin-bottom: 8px; }
#pad .mini { margin-bottom: 8px; }
.match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 12px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}
.stat {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
}
.stat b { display: block; font-size: 1.25rem; color: var(--gold); font-weight: 800; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stat--extras { text-align: center; }
.stat__teams {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.stat__teams em {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}
.stat__teams i {
  font-style: normal;
  color: var(--gold);
  font-weight: 800;
}
.panel {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 14px;
}
.panel h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.panel__score { color: var(--gold); font-weight: 800; white-space: nowrap; }
.sc-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 14px 0 8px;
}
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 10px;
}
.acc {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}
.acc.is-in {
  background: var(--accent-soft);
  border-color: rgba(13, 143, 99, 0.28);
}
.acc.is-out {
  background: var(--bg2);
}
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
}
.acc__btn::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-left: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.acc.is-open .acc__btn::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.acc__name { font-size: 15px; }
.acc__who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding-right: 8px;
}
.acc__out {
  color: var(--danger);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-left: 4px;
}
.acc__how {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.acc.is-out .acc__name { color: #6b7280; }
.acc__fig { color: var(--gold); font-weight: 800; white-space: nowrap; margin-left: auto; }
.acc__body {
  display: none;
  padding: 0 12px 12px;
}
.acc.is-open .acc__body { display: block; }
.acc__body p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.acc__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.chip {
  background: #ffffff;
  border: 1px solid #c5d4cc;
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(26, 43, 36, 0.06);
}
.chip b {
  display: block;
  font-size: 16px;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.15;
}
.chip span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #3d5249;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.acc__balls { justify-content: flex-start; margin: 8px 0 0; min-height: 0; }
.acc__over {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 10px;
}
.acc__over-label {
  color: #3d5249;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.acc__over-balls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.acc__over-balls .bball {
  min-width: 0;
  width: 100%;
  height: 30px;
}
.sc-yet, .sc-ex, .sc-fow {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.sc-fow span { color: var(--accent); font-weight: 800; margin-right: 4px; }
.sc-field {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.sc-field span { color: var(--accent); font-weight: 800; margin-right: 4px; }
.com {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 8px;
  margin: 0 0 16px;
}
.com__title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.com__row {
  display: grid;
  grid-template-columns: 38px 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
}
.com__no {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  padding-top: 8px;
}
.com__badge { padding-top: 2px; }
.com__text {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.com__out {
  margin-top: 8px;
  background: var(--bg3);
  border-radius: 10px;
  padding: 8px 10px;
}
.com__out strong { display: block; font-size: 13px; }
.com__out span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.com-over { margin: 8px 0; }
.com-over__balls { display: none; }
.com-over.is-open .com-over__balls { display: block; }
.com__bar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  background: #e8f2ff;
  border: 0;
  border-radius: 12px;
  padding: 10px;
  margin: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: default;
}
.com-over .com__bar {
  grid-template-columns: 52px minmax(0, 1fr) 14px;
  cursor: pointer;
}
.com-over .com__bar::after {
  content: '';
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.com-over.is-open .com__bar::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.com__bar-ov {
  background: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 6px 4px;
}
.com__bar-ov span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted);
}
.com__bar-ov b { display: block; font-size: 1.15rem; line-height: 1.1; }
.com__bar-mid { min-width: 0; }
.com__bar-mid strong { display: block; font-size: 13px; }
.com__bar-mid span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.com__bar-bowl {
  grid-column: 2;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.com__more {
  margin: 4px 0 6px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.week-nav__btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}
.week-nav__btn.is-off {
  opacity: 0.35;
  color: var(--muted);
}
.week-nav__mid {
  flex: 1;
  text-align: center;
}
.week-nav__mid strong { display: block; font-size: 1.15rem; }
.week-nav__mid span { color: var(--muted); font-size: 13px; font-weight: 700; }
.week-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}
.week-chip {
  flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}
.week-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.potw {
  background:
    linear-gradient(180deg, rgba(13, 143, 99, 0.1), transparent 70%),
    var(--bg2);
  border: 1px solid rgba(13, 143, 99, 0.28);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 14px;
  text-align: center;
}
.potw__kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.potw__name {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 4px 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.potw__bits { color: var(--muted); font-size: 14px; font-weight: 700; }
.wdelta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.wdelta--up { color: var(--accent); }
.wdelta--down { color: var(--danger); }
.week-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 8px;
}
.week-highlights .mini { margin: 0; }
.mini--team .on { color: var(--gold); }
.week-caption { margin: 0 0 10px; }
.vchart {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px 6px;
  margin: 0 0 8px;
}
.vbars {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 150px;
  padding: 4px 2px 0;
}
.vbars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.vbars__n {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}
.vbars__track {
  flex: 1;
  width: 100%;
  max-width: 28px;
  background: var(--bg3);
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.vbars__track i {
  display: block;
  width: 100%;
  background: var(--line);
  border-radius: 8px 8px 0 0;
  min-height: 0;
}
.vbars__col.is-on .vbars__n { color: var(--accent); }
.vbars__col.is-on .vbars__track i { background: var(--accent); }
.vbars__lab {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
.board {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 8px;
  margin: 0 0 16px;
  box-shadow: 0 10px 24px rgba(26, 43, 36, 0.05);
}
.board__title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hbar { display: flex; flex-direction: column; gap: 2px; margin: 0 0 4px; }
.hbar__item {
  padding: 6px 0;
  border: 0;
}
.hbar__sum {
  display: block;
  list-style: none;
  cursor: pointer;
}
.hbar__sum::-webkit-details-marker { display: none; }
.hbar__item.has-vs .hbar__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.hbar__item.has-vs .hbar__name::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -3px;
  flex: 0 0 auto;
  transition: transform .15s ease;
}
.hbar__item.has-vs[open] .hbar__name::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.hbar__item:first-child { padding-top: 0; }
.hbar__item.is-lead .hbar__rank {
  background: var(--gold-soft);
  color: var(--gold);
}
.hbar__item.is-lead .hbar__name { color: var(--text); }
.hbar__row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.hbar__rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hbar__who { min-width: 0; }
.hbar__name { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__track {
  height: 6px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.hbar__track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.hbar__val { font-weight: 800; color: var(--gold); font-size: 18px; line-height: 1; }
.hbar__sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.hbar__vs {
  margin: 8px 0 2px 38px;
}
.hbar__vs-lab {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.hbar__vs-row {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.wtable-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  -webkit-overflow-scrolling: touch;
}
.wtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 760px;
}
.wtable th,
.wtable td {
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.wtable th:nth-child(2),
.wtable td:nth-child(2),
.wtable th:first-child,
.wtable td:first-child { text-align: left; }
.wtable th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wtable__name { font-weight: 700; }
.wtable tbody tr:last-child td { border-bottom: 0; }
.week-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.week-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}
.week-list span { color: var(--gold); }
.week-acc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}
.week-acc__item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.week-acc__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.week-acc__item summary::-webkit-details-marker { display: none; }
.week-acc__item summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-left: 4px;
  flex: 0 0 auto;
  transition: transform .15s ease;
}
.week-acc__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.week-acc__item summary span {
  margin-left: auto;
  color: var(--gold);
  font-weight: 800;
}
.week-acc__body {
  padding: 0 14px 12px;
  border-top: 1px solid var(--line);
}
.week-acc__lab {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.week-acc__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.week-acc__body li {
  background: var(--bg3);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
}
.week-acc__empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.fold {
  margin: 16px 0 0;
}
.fold + .fold { margin-top: 8px; }
.fold__sum {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 14px;
  gap: 10px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  background: #e8f2ff;
  border-radius: 12px;
  padding: 10px;
  margin: 0;
}
.fold__sum::-webkit-details-marker { display: none; }
.fold__sum::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.fold[open] .fold__sum {
  margin-bottom: 10px;
}
.fold[open] .fold__sum::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.fold__badge {
  background: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 6px 4px;
}
.fold__badge span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted);
}
.fold__badge b {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
}
.fold__mid { min-width: 0; }
.fold__mid strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.fold__mid span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.notables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
}
.notable {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.notable__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.notable__title {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.notable__scope {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.notable__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.notable__row strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.notable__row b {
  color: var(--gold);
  font-size: 15px;
  white-space: nowrap;
}
.notable__sub {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.notable__hint {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.week-teams {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.week-teams .mini { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.stat .wdelta { text-transform: none; letter-spacing: 0; }
.plist__bits {
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.plist__bits--empty { opacity: .8; }
.pgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 4px;
}
.pgrid .mini { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pvs { margin: 10px 2px 4px; }
.fold + .h2 { margin-top: 22px; }
@media (min-width: 420px) {
  .week-highlights { grid-template-columns: 1fr 1fr; }
  .week-teams { grid-template-columns: 1fr 1fr; }
  .notables { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 600px) {
  .pad-grid button { min-height: 72px; }
}
html.is-booting,
html.is-booting body {
  overflow: hidden;
  background: #000;
}
.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: #000;
  transition: opacity .2s ease, visibility .2s ease;
}
.boot.is-off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.boot__logo {
  width: min(240px, 78vw);
  height: auto;
  border-radius: 10px;
  display: block;
  background: #000;
}
.boot__spin {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bootSpin .7s linear infinite;
}
.boot__txt {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@keyframes bootSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .boot { transition: none; }
  .boot__spin { animation: none; border-top-color: rgba(255, 255, 255, 0.16); border-right-color: #fff; }
}
