:root {
  --field: #07090f;
  --card: #121722;
  --text: #eef3fb;
  --muted: #8b97ad;
  --faint: #6d7b92;
  --lightning: #d6ff3c;
  --track: #5ee0a0;
  --gold: #e3c16a;
  --loss: #ff5a6a;
  --line: rgba(139, 151, 173, 0.28);
  --lightning-line: rgba(214, 255, 60, 0.45);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  color: var(--text);
  font-family: Barlow, "Segoe UI", sans-serif;
  background: var(--field);
}

.yard {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 92px,
      rgba(238, 243, 251, 0.035) 92px 94px
    );
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.top, .app, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 100%;
  padding: 22px 7vw 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.bolt {
  width: 34px;
  height: 34px;
  fill: var(--lightning);
  filter: drop-shadow(0 0 10px rgba(214, 255, 60, 0.35));
}

.word {
  font-family: Anton, Impact, sans-serif;
  font-size: 58px;
  letter-spacing: 0.08em;
  line-height: 0.85;
}

.beta {
  align-self: center;
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(214, 255, 60, 0.55);
  border-radius: 999px;
  background: var(--field);
  color: var(--lightning);
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 18px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.nav a[aria-current="page"] {
  border-color: var(--lightning-line);
  background: rgba(214, 255, 60, 0.08);
  color: var(--lightning);
}
.nav a[hidden] { display: none; }

.app {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding: 12px 7vw 64px;
}

.foot {
  padding: 0 7vw 36px;
  color: var(--faint);
  font-size: 14px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  align-items: flex-end;
  margin: 12px 0 18px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--lightning);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

h1, h2, h3 { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: 0.04em; margin: 0; }

h1 { font-size: 44px; }

.lede { margin: 8px 0 0; max-width: 40rem; color: var(--muted); line-height: 1.45; }

.live-rail {
  position: sticky;
  top: 0;
  z-index: 6;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 2px 0 10px;
  background: var(--field);
}

.live-rail-flag {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--track);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.live-rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--track);
  animation: live-rail-dot 2.6s ease-in-out infinite;
}

@keyframes live-rail-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.live-rail-window {
  overflow: hidden;
  min-width: 0;
  padding-top: 18px;
}

.live-rail-track {
  display: flex;
  width: max-content;
  animation: live-rail-ticker var(--ticker-duration, 28s) linear infinite;
}

.live-rail-seq {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: 10px;
  padding-right: 10px;
}

.live-rail:hover .live-rail-track,
.live-rail:focus-within .live-rail-track {
  animation-play-state: paused;
}

@keyframes live-rail-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.live-ticket {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  width: max-content;
  min-width: 196px;
  max-width: 280px;
  padding: 10px 12px 11px;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--lightning-line);
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 18px rgba(214, 255, 60, 0.12);
}

.live-ticket:hover { border-color: var(--lightning); }
.live-ticket:focus-visible { outline: 2px solid var(--lightning); outline-offset: 2px; }

.live-ticket.is-tracking {
  border-color: rgba(94, 224, 160, 0.6);
  box-shadow: var(--shadow), 0 0 16px rgba(94, 224, 160, 0.14);
}

.live-ticket.is-fading {
  border-color: rgba(255, 90, 106, 0.72);
  box-shadow: var(--shadow), 0 0 16px rgba(255, 90, 106, 0.16);
}

.live-ticket.is-even { border-color: var(--line); box-shadow: var(--shadow); }

.live-ticket-match {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-ticket-score {
  color: var(--lightning);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(214, 255, 60, 0.35);
}

.live-ticket-bet {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.live-ticket-label {
  min-width: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.live-ticket-price {
  flex: 0 0 auto;
  color: var(--lightning);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.live-ticket-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-ticket-trend.tracking { color: var(--track); }
.live-ticket-trend.fading { color: var(--loss); }
.live-ticket-trend.even { color: var(--muted); }
.live-ticket .live-mark { margin-left: 0; }

.week-bar {
  position: sticky;
  top: var(--live-rail-offset, 0px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 18px;
  margin: 0 0 8px;
  padding: 8px 0 14px;
  background: linear-gradient(var(--field) 0 72%, transparent);
}

.week-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.week-switch a {
  color: var(--lightning);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(214, 255, 60, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(214, 255, 60, 0.08);
}

.week-switch a[aria-current="page"] {
  background: var(--lightning);
  color: var(--field);
}

.frozen-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.record-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-end;
  min-width: 0;
}

.stat { min-width: 120px; text-align: right; }

.stat b {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  line-height: 0.9;
  color: var(--lightning);
}

.stat.is-empty b { color: var(--muted); }

.stat-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 8px;
  margin-top: 4px;
}

.stat-label,
.stat-units {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.stat-units {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.stat-units.up { color: var(--lightning); }
.stat-units.down { color: var(--loss); }

.week-ledger { margin-top: 28px; }

.week-ledger ol {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.week-ledger li {
  flex: 0 0 148px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.week-ledger .wk {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-ledger b {
  display: block;
  margin-top: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.week-ledger .up b { color: var(--lightning); }
.week-ledger .down b { color: var(--loss); }
.week-ledger .flat b { color: var(--muted); }

.week-ledger .line {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 13px;
}

.week-ledger.is-shadow { margin-top: 18px; }

.shadow-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.week-ledger.is-shadow li { flex-basis: 180px; }

.record {
  margin: 0 0 22px;
}

.record-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.record-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.record-row {
  display: grid;
  grid-template-columns: 72px 36px minmax(88px, 1fr) 36px minmax(160px, 1.4fr) auto auto;
  gap: 10px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.record-row .logo { width: 36px; height: 36px; }

.record-week, .record-score { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }

.record-pick { font-weight: 600; }

.record-result { font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; font-size: 18px; }

.banner {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--card);
  color: var(--text);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 12px;
}

.section-head h2, .section-title { font-size: 28px; }

.section-head p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.potw-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 22px;
}

.potw-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--field));
}

.potw {
  display: flex;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 151, 173, 0.45) transparent;
}

.potw-card {
  flex: 0 0 min(280px, 78%);
  scroll-snap-align: start;
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--lightning-line);
  border-radius: 18px;
  box-shadow: 0 0 22px rgba(214, 255, 60, 0.12);
  padding: 14px;
}

.potw-card:hover { transform: translateY(-2px); }
.potw-card:focus-visible { outline: 2px solid var(--lightning); outline-offset: 3px; }

.potw-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.potw-match {
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  min-width: 0;
}

.grid.live-grid.is-single { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 801px) {
  .grid.live-grid.is-multi {
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  }
  .grid.live-grid.is-single .ticket { padding: 22px 28px 18px; }
  .grid.live-grid.is-single .abbr { font-size: 56px; }
  .grid.live-grid.is-single .score { font-size: 64px; }
  .grid.live-grid.is-single .logo { width: 72px; height: 72px; }
}

.board-group { min-width: 0; }

.ticket {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  container-name: ticket;
}

.ticket:focus-visible { outline: 2px solid var(--lightning); outline-offset: 3px; }

.ticket.is-live {
  border-color: var(--lightning-line);
  box-shadow: var(--shadow), 0 0 22px rgba(214, 255, 60, 0.14);
}

.ticket.is-sweep {
  border-color: rgba(227, 193, 106, 0.62);
  box-shadow: var(--shadow), 0 0 18px rgba(227, 193, 106, 0.12);
}

.ticket.is-loss {
  border-color: rgba(255, 90, 106, 0.72);
  box-shadow: var(--shadow), 0 0 18px rgba(255, 90, 106, 0.16);
}

.ticket.is-loss .pick,
.pick.is-loss {
  background: rgba(255, 90, 106, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 106, 0.32);
}

.gold-star {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: var(--gold);
  vertical-align: middle;
}

.gold-star svg {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 0 5px rgba(227, 193, 106, 0.4));
}

.grade-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.grade-mark .gold-star { margin-left: 0; }
.grade-mark .gold-star svg { width: 14px; height: 14px; }
.grade-mark.win { color: var(--gold); }
.grade-mark.loss { color: var(--loss); }
.grade-mark.push { color: var(--muted); }
.grade-word { text-transform: uppercase; font-size: 14px; letter-spacing: 0.08em; }

.ticket.is-live:hover { transform: translateY(-2px); }

.ticket.is-held {
  border-color: rgba(139, 151, 173, 0.22);
  box-shadow: none;
  background: #10151f;
}

.ticket.is-held:hover { border-color: rgba(139, 151, 173, 0.4); }

.when {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.matchup {
  display: grid;
  /* The center track is the gutter. Team tracks can shrink, but a score that
     does not fit is clipped at the team edge instead of painting over @. */
  grid-template-columns: auto minmax(0, 1fr) minmax(2.25rem, auto) minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
  margin: 14px 0 12px;
}

.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.team { min-width: 0; }
.team.away { text-align: left; }
.team.home { text-align: right; }

/* Score stays on its own abbreviation. The pair sizes to its content and
   sits on the outer edge, so free space — and the @ gutter — stays between
   the two numbers. A full-width flex let those inner digits overflow and meet. */
.scoreline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.scoreline .abbr,
.scoreline .score { flex: 0 0 auto; }
.team.away .scoreline { margin-right: auto; }
.team.home .scoreline {
  flex-direction: row-reverse;
  margin-left: auto;
}

.abbr {
  flex: 0 0 auto;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 40px;
  line-height: 0.85;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.score {
  flex: 0 0 auto;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}

.score.live {
  color: var(--lightning);
  text-shadow: 0 0 16px rgba(214, 255, 60, 0.35);
}

h1 .score { font-size: 48px; margin: 0 0.16em; }

.name { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.rec { color: var(--faint); font-size: 12px; }

.at {
  font-family: Anton, sans-serif;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 0 0.7rem 8px;
  justify-self: center;
}

.picks { display: flex; flex-direction: column; gap: 8px; }

.pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "label label label"
    "price conf grade";
  gap: 8px 14px;
  align-items: end;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(214, 255, 60, 0.08);
  box-shadow: inset 0 0 0 1px rgba(214, 255, 60, 0.22);
}

.pick .label {
  grid-area: label;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pick .quote,
.pick .conf,
.pick .card-grade {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pick .quote { grid-area: price; }
.pick .conf { grid-area: conf; }
.pick .card-grade {
  grid-area: grade;
  align-items: flex-end;
  text-align: right;
}
.pick .american,
.pick .conf-n {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.pick .american { color: var(--lightning); }
.pick .close-gap {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.pick .conf-n { color: var(--text); }
.pick .conf-k {
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-grade .grade-mark {
  margin-left: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.live-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.live-mark svg { width: 11px; height: 11px; display: block; }

.live-mark .live-tag {
  color: var(--muted);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-asof {
  color: var(--muted);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.live-mark.tracking { color: var(--track); }
.live-mark.fading { color: var(--loss); }
.live-mark.even { color: var(--muted); }

.live-when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--track);
  box-shadow: 0 0 0 0 rgba(94, 224, 160, 0.55);
  animation: live-pip 1.8s ease-out infinite;
}

@keyframes live-pip {
  0% { box-shadow: 0 0 0 0 rgba(94, 224, 160, 0.5); }
  100% { box-shadow: 0 0 0 7px rgba(94, 224, 160, 0); }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.score-asof {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.why {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.why.card-reason {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.why.card-reason.is-clipped { display: none; }

.held-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lines { margin-top: 12px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.lines div { display: flex; justify-content: space-between; gap: 10px; }
.lines .k, .market-top .k { color: var(--faint); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.book { color: var(--faint); font-size: 12px; margin-top: 6px; }

.splits { margin-top: 12px; display: grid; gap: 8px; }
.split-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.bars { display: grid; gap: 3px; margin-top: 3px; }
.bar { height: 6px; background: rgba(238, 243, 251, 0.08); border-radius: 99px; overflow: hidden; }
.bar i, .bar b { display: block; height: 100%; }
.bar i { background: var(--text); }
.bar b { background: var(--lightning); }
.move { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.back { color: var(--lightning); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }

.section-title { margin: 22px 0 10px; }

.game-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-head .logo { width: 64px; height: 64px; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(238, 243, 251, 0.08); }
th { color: var(--faint); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

.agent {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(238, 243, 251, 0.08);
}
.agent h3 { font-size: 22px; }
.agent p { margin: 4px 0 0; color: var(--muted); }

.market-read {
  padding: 8px 0;
  border-top: 1px solid rgba(238, 243, 251, 0.06);
}
.market-read.is-dissent { color: var(--muted); }
.market-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }

.held-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(238, 243, 251, 0.06);
  color: var(--muted);
}
.held-row .why { flex-basis: 100%; }

.desk-list { display: grid; gap: 12px; }
.agent-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(238, 243, 251, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.agent-card.off { opacity: 0.72; }
.agent-card > button { grid-column: 1 / -1; justify-self: start; min-width: 7rem; }
.agent-card label { display: block; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
input[type="text"], input[type="password"], input[type="range"] { width: 100%; }
input[type="text"], input[type="password"] {
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
button, .btn {
  font: inherit;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--lightning);
  color: var(--field);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 16px;
}
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: 0.5; cursor: wait; }

.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.run {
  display: grid;
  grid-template-columns: 110px 90px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(238, 243, 251, 0.08);
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill.ok { background: rgba(214, 255, 60, 0.12); color: var(--lightning); }
.pill.error { background: rgba(255, 90, 106, 0.12); color: var(--loss); }
.pill.skipped { background: rgba(139, 151, 173, 0.16); color: var(--muted); }
.pill.running { background: rgba(214, 255, 60, 0.12); color: var(--lightning); }
.pill.held, .pill.dissent {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(139, 151, 173, 0.45);
}
.win { color: var(--lightning); }
.loss { color: var(--loss); }
.push { color: var(--muted); }
.muted { color: var(--muted); }
.error-text { color: var(--loss); }
.loading { color: var(--muted); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.injury { margin: 0 0 8px; }
.injury b { color: var(--text); }

@media (max-width: 800px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 12px;
    row-gap: 12px;
    padding: 16px 18px 0;
  }
  .word { font-size: 46px; }
  .tagline { grid-column: 2; margin: 0 0 8px; justify-self: end; }
  .nav { grid-column: 1 / -1; margin-left: 0; width: 100%; }
  .app, .foot { padding-left: 18px; padding-right: 18px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .nav {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .nav a {
    font-size: 15px;
    letter-spacing: 0.08em;
    padding: 7px 10px;
  }
  .week-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .week-switch { margin-top: 2px; }
  .live-ticket { min-width: 188px; max-width: min(260px, 78vw); }
  .record-stats, .stat, .stat-meta { text-align: left; justify-content: flex-start; }
  .record-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 0;
    width: 100%;
    padding: 14px 14px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .record-stats.is-empty {
    display: block;
  }
  .record-stats .stat { min-width: 0; }
  .record-stats .stat + .stat {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
  .stat b { font-size: clamp(32px, 9vw, 40px); }
  .abbr { font-size: 32px; }
  .score { font-size: 36px; }
  h1 .score { font-size: 40px; }
  .logo { width: 40px; height: 40px; }
  .matchup { column-gap: 6px; }
  .at { padding-inline: 0; }
  .agent-card, .run, .two, .agent, .record-row { grid-template-columns: 1fr; }
  .record-row { justify-items: start; }
}

/* A desktop or tablet row can still hand each card ~320px. The 46px score
   then overflows the inner edge and the two numbers read as one. Fit the
   pair to the card and leave the center track for @. */
@media (min-width: 801px) {
  @container ticket (max-width: 460px) {
    .abbr { font-size: 28px; }
    .score { font-size: 32px; }
    .logo { width: 32px; height: 32px; }
    .matchup { column-gap: 6px; }
    .scoreline { gap: 6px; }
    .at { padding-inline: 0.15rem; }
    .team.has-score { overflow: hidden; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket, .potw-card { transition: none; }
  .run-row.is-running, .dot.running, .live-pip, .live-rail-track, .live-rail-dot { animation: none; }
  .run-row.is-running { box-shadow: inset 3px 0 0 #d6ff3c; }
  .live-rail-seq[aria-hidden="true"] { display: none; }
  .live-rail-window { overflow-x: auto; overscroll-behavior-x: contain; }
  .live-rail-dot { opacity: 1; }
}

.meet {
  color: var(--lightning);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.desk-controls {
  display: grid;
  gap: 14px;
  overflow: visible;
  margin: 0 0 14px;
}

.desk-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  overflow: visible;
}

.desk-panel.primary { border-color: rgba(214, 255, 60, 0.45); }
.live-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.live-toggle input { width: 18px; height: 18px; margin: 0; }
#live-refresh-status { margin: 10px 0 0; }
.desk-panel h2 { font-size: 28px; margin-bottom: 6px; }
.desk-note { margin: 0 0 14px; max-width: 46rem; color: var(--muted); line-height: 1.45; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 16px;
  align-items: end;
  overflow: visible;
}

.field-grid label, .owner-gate label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-grid .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slate-go { font-size: 22px; padding: 14px 22px; }

.lane figcaption { display: grid; gap: 2px; }
.lane figcaption strong {
  color: var(--text);
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lane figcaption span { color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 14px; }
.axis-name { fill: var(--muted); font-size: 11px; font-family: Barlow, sans-serif; letter-spacing: 0.08em; }

select {
  width: 100%;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.field-grid label.model { grid-column: 1 / -1; }
.field-grid label.model .model-note {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--loss);
}

.plane { margin: 8px 0 22px; }
.lane { margin: 0 0 14px; }
.lane figcaption {
  margin: 0 0 6px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.lane { min-width: 0; max-width: 100%; }
.lane svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.axis { stroke: rgba(139, 151, 173, 0.45); stroke-width: 1; }
.axis-label { fill: var(--muted); font-size: 12px; font-family: Barlow, sans-serif; }
.dot { fill: var(--lightning); stroke: #07090f; stroke-width: 2; }
.dot.error { fill: var(--loss); }
.dot.running { fill: var(--muted); }
.lane a:focus-visible { outline: none; }
.lane a:focus-visible circle { stroke: var(--text); }

.run-list { display: grid; min-width: 0; max-width: 100%; }
.run-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 90px 100px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(238, 243, 251, 0.08);
  color: inherit;
  text-decoration: none;
}
.run-row:hover { color: var(--lightning); }
.run-row.is-running { animation: row-pulse 1.8s ease-in-out infinite; }
.dot.running {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pulse 1.8s ease-in-out infinite;
}
@keyframes row-pulse {
  0%, 100% { box-shadow: inset 3px 0 0 rgba(214, 255, 60, 0.2); }
  50% { box-shadow: inset 3px 0 0 #d6ff3c; }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.mandate, .objectives { display: grid; gap: 12px; margin-bottom: 18px; }
.mandate, .objectives article, .agent-bio {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.mandate h2, .objectives h2 { font-size: 28px; margin-bottom: 8px; }
.mandate p, .objectives p, .agent-bio p { margin: 0 0 8px; line-height: 1.45; }
.objectives { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; min-width: 0; }
.agent-bio.on {
  border-color: var(--lightning-line);
  box-shadow: 0 0 18px rgba(214, 255, 60, 0.12);
}
.agent-bio.bench { box-shadow: none; }
.agent-bio .seat {
  margin: 0 0 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
.agent-bio.on .seat { color: var(--lightning); }
.directive { color: var(--text); }

.how {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin: 0 0 18px;
  min-width: 0;
  max-width: 46rem;
}
.mandate { max-width: 46rem; }
.how h2 { font-size: 28px; }
.how ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: step;
  min-width: 0;
}
.how li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  min-width: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.how li::before {
  counter-increment: step;
  content: counter(step);
  font-family: Anton, Impact, sans-serif;
  color: var(--lightning);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.how li > div { min-width: 0; }
.how h3 { font-size: 22px; }
.how p { margin: 4px 0 0; line-height: 1.45; }
.mandate a {
  color: var(--lightning);
  font-weight: 600;
}
.mandate a:focus-visible { outline: 2px solid var(--lightning); outline-offset: 3px; }
.mandate, .how, .agent-bio, .roster { overflow-wrap: anywhere; }

.tip { position: relative; }
.tip .bubble {
  display: none;
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 8px);
  width: max-content;
  max-width: 18rem;
  padding: 8px 10px;
  background: var(--field);
  color: var(--text);
  border: 1px solid rgba(214, 255, 60, 0.45);
  border-radius: 10px;
  font-family: Barlow, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.tip:hover .bubble, .tip:focus-within .bubble { display: block; }
.owner-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 240px);
  margin: 0;
  padding: 32px 16px 64px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
}
.owner-gate h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 64px);
}
.owner-gate .muted {
  max-width: 22rem;
  margin: 8px 0 0;
}
.owner-gate button { margin-top: 18px; }
.schedule-list { display: grid; gap: 14px; }
.schedule-job {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.schedule-job h3 { font-size: 22px; margin: 0; }
.schedule-state {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.schedule-state.on { color: var(--lightning); }
.schedule-state.off { color: var(--muted); }
.schedule-expression { margin: 0; }
.schedule-expression code { color: var(--muted); }
.schedule-last { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.schedule-job .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.owner-gate form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 10px; overflow: visible; }
.owner-gate form[hidden] { display: none; }

@media (max-width: 700px) {
  .field-grid { grid-template-columns: 1fr; }
  .owner-gate form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 800px) {
  .run-row { grid-template-columns: 1fr 1fr; }
}

.machine-block { margin: 0 0 28px; min-width: 0; }
.machine-block header h2 {
  margin: 0 0 4px;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.machine-block header p { margin: 0 0 12px; color: var(--muted); }
.machine-block header a { color: var(--lightning); }

.pipe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pipe-node {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.pipe-node a, .pipe-node.missing {
  display: grid;
  gap: 4px;
  padding: 12px 12px 14px;
  color: inherit;
  text-decoration: none;
  min-height: 108px;
}
.pipe-node a:hover { color: var(--lightning); }
.pipe-kicker {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pipe-node strong {
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}
.pipe-node span:last-child { color: var(--muted); font-size: 13px; }
.pipe-node.ok { box-shadow: inset 0 3px 0 var(--lightning); }
.pipe-node.error { box-shadow: inset 0 3px 0 var(--loss); }
.pipe-node.running { box-shadow: inset 0 3px 0 var(--gold); }
.pipe-node.missing { opacity: 0.55; }

.burn {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.burn li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
}
.burn span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.burn strong {
  display: block;
  margin-top: 4px;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
}

.chorus-scroll { overflow-x: auto; max-width: 100%; }
.chorus {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.chorus th, .chorus td {
  border-bottom: 1px solid rgba(238, 243, 251, 0.08);
  padding: 8px 6px;
  vertical-align: top;
  text-align: left;
}
.chorus thead th {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chorus tbody th {
  font-weight: 600;
  min-width: 180px;
}
.chorus tbody th a { color: inherit; text-decoration: none; }
.chorus tbody th a:hover { color: var(--lightning); }
.chorus tbody th span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}
.voice-stack { display: grid; gap: 4px; }
.voice {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 4px;
  align-items: baseline;
  min-width: 42px;
  padding: 2px 4px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.voice b { font-size: 13px; }
.voice i { font-style: normal; color: var(--muted); font-size: 12px; }
.voice.agree { background: rgba(214, 255, 60, 0.14); }
.voice.dissent { background: rgba(255, 90, 106, 0.16); }
.voice.orch { background: rgba(227, 193, 106, 0.16); }
.voice.held {
  background-color: rgba(227, 193, 106, 0.1);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(238, 243, 251, 0.2) 3px, rgba(238, 243, 251, 0.2) 4px);
}
.voice.off, .voice.miss { color: var(--faint); opacity: 0.45; }
.voice.c8.agree { background: rgba(214, 255, 60, 0.38); }
.voice.c7.agree { background: rgba(214, 255, 60, 0.22); }
.chorus-key { color: var(--muted); font-size: 13px; }
.settled { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.settled li { display: flex; gap: 8px; align-items: center; }

@media (max-width: 900px) {
  .pipe, .burn { grid-template-columns: 1fr 1fr; }
}

.game-page {
  min-width: 0;
  max-width: 100%;
}

.game-page .hero,
.game-page .panel,
.game-page .two,
.game-page .game-head,
.game-page .game-head > div {
  min-width: 0;
  max-width: 100%;
}

.game-page .game-head { flex-wrap: wrap; }
.game-page .game-head > div { flex: 1 1 12rem; }
.game-page .game-head h1 { overflow-wrap: anywhere; }

.game-page .verdict .section-title { margin-top: 2px; }

.game-page .verdict-markets { min-width: 0; }

.game-page .verdict-market {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) auto auto;
  gap: 8px 14px;
  align-items: baseline;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(238, 243, 251, 0.08);
}

.game-page .verdict-side {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.game-page .verdict-side.is-empty { color: var(--faint); font-weight: 600; }

.game-page .verdict-why,
.game-page .hold-reason,
.game-page .panel .why,
.game-page .agent p {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.game-page .verdict-why {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
}

.game-page .holds { margin-top: 12px; }

.game-page .held-row {
  display: block;
  min-width: 0;
  padding: 10px 0;
}

.game-page .held-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  min-width: 0;
}

.game-page .held-side {
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.game-page .held-top .american {
  color: var(--lightning);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.game-page .held-top .conf,
.game-page .verdict-market .conf,
.game-page .market-top .conf {
  color: var(--muted);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.game-page .held-top .conf-k,
.game-page .verdict-market .conf-k,
.game-page .market-top .conf-k {
  margin-right: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-page .hold-reason {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.game-page .verdict-market .hold-reason {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.game-page .panel.is-loss {
  border-color: rgba(255, 90, 106, 0.72);
  box-shadow: 0 0 18px rgba(255, 90, 106, 0.16);
}

.game-page .panel.is-sweep {
  border-color: rgba(227, 193, 106, 0.62);
  box-shadow: 0 0 18px rgba(227, 193, 106, 0.12);
}

.game-page .pill.on-board {
  background: rgba(214, 255, 60, 0.12);
  color: var(--lightning);
  border: 1px solid rgba(214, 255, 60, 0.35);
}

.game-page .pill.absent {
  background: transparent;
  color: var(--faint);
  border: 1px solid rgba(139, 151, 173, 0.28);
}

.game-page .books-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.game-page .books {
  width: max-content;
  min-width: 100%;
}
.game-page .books th,
.game-page .books td { white-space: nowrap; }

.game-page .split-top,
.game-page .lines div {
  flex-wrap: wrap;
  min-width: 0;
}

.game-page .lines div span,
.game-page .split-top span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .game-page .verdict-market { grid-template-columns: minmax(0, 1fr); }
  .game-page .game-head .logo { width: 48px; height: 48px; }
}

.control-plane {
  display: grid;
  gap: 32px;
  min-width: 0;
  max-width: 100%;
}

.plane-strip {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px 32px;
  margin: 0;
  padding: 2px 0 16px;
  background: linear-gradient(var(--field) 0 74%, transparent);
}

.plane-identity { min-width: 0; }

.plane-week {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.84;
  letter-spacing: 0.02em;
}

.plane-record {
  margin: 10px 0 0;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plane-system,
.plane-budget,
.plane-shadow,
.plane-recommendation {
  margin: 8px 0 0;
  max-width: 46rem;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.plane-shadow {
  color: var(--muted);
}

.plane-budget,
.plane-recommendation {
  margin-top: 2px;
  color: var(--muted);
}

.plane-signout {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 7px 12px;
  font-size: 14px;
}

.slate-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.slate-action h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.slate-action .slate-go { justify-self: end; }

.slate-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.slate-note:empty { display: none; }

.plane-primary h2 {
  font-size: 34px;
  letter-spacing: 0.05em;
}

.plane-primary .desk-note {
  margin: 6px 0 0;
  max-width: 40rem;
  font-size: 16px;
  color: var(--text);
}

.plane-sub {
  margin: 4px 0 0;
  max-width: 44rem;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.4;
}

.instruments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.instrument {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 28px 4px 0;
}

.instrument + .instrument {
  padding: 16px 0 4px 28px;
  border-left: 1px solid var(--line);
}

.instrument-head {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.instrument h3 {
  font-size: 28px;
  line-height: 0.95;
  min-width: 0;
}

.instrument-state {
  margin: 0;
  flex: 0 0 auto;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.instrument-state.on { color: var(--lightning); }
.instrument-state.off { color: var(--muted); }

.instrument-cadence {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.instrument-expression {
  margin: -4px 0 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.instrument-last {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.instrument-reason {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.instrument-note {
  margin: 0;
  color: var(--loss);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.instrument-note:empty { display: none; }

.instrument .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.instrument .actions button {
  padding: 7px 12px;
  font-size: 14px;
}

.plane-quiet {
  min-width: 0;
  padding-top: 4px;
}

.plane-quiet h2 {
  margin: 0;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.plane-quiet .plane-sub { margin-bottom: 4px; }

.roster-rows,
.roster-row,
.log-row { min-width: 0; max-width: 100%; }

.roster-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.7fr) minmax(8.5rem, 0.7fr) auto auto;
  gap: 8px 14px;
  align-items: end;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.roster-row.off { opacity: 0.72; }

.roster-name {
  display: block;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.roster-state {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.roster-row.on .roster-state { color: var(--lightning); }

.roster-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roster-temp {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.roster-temp output {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.roster-field.check { align-items: flex-start; }

.roster-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.roster-row .ghost {
  padding: 7px 12px;
  font-size: 14px;
}

.roster-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.roster-note:empty { display: none; }

#desk-runs { min-width: 0; }

.log-row {
  display: grid;
  grid-template-columns: 12.5rem 7.5rem auto;
  justify-content: start;
  width: min(100%, 34rem);
  gap: 8px 16px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(238, 243, 251, 0.08);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.log-row:hover { color: var(--lightning); }

.log-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 16px;
}

.log-empty { margin: 10px 0 0; }

@media (max-width: 760px) {
  .plane-strip { flex-direction: column; align-items: stretch; }
  .plane-record { font-size: 24px; }
  .plane-signout { align-self: flex-start; }
  .instruments { grid-template-columns: minmax(0, 1fr); }
  .instrument { padding: 16px 0; }
  .instrument + .instrument {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .slate-action { grid-template-columns: minmax(0, 1fr); }
  .slate-action .slate-go { justify-self: start; }
  .roster-row { grid-template-columns: minmax(0, 1fr); }
  .roster-row .ghost { justify-self: start; }
  .log-row {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .log-row time { grid-column: 1 / -1; }
  .log-type { white-space: normal; }
}
