:root {
  --bg: #070708;
  --raise: #101114;
  --slip: #141518;
  --ink: #f6f4ef;
  --muted: #a39e94;
  --faint: #8d887e;
  --line: rgba(255, 255, 255, 0.1);
  --acid: #dff250;
  --acid-ink: #16180c;
  --hot: #ff5d4a;
  --hot-ink: #2a0c08;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { touch-action: manipulation; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(223, 242, 80, 0.14), transparent 46%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  z-index: 50;
  pointer-events: none;
}

body.sheet-open { overflow: hidden; }

body.desk-on {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

a { color: var(--acid); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.top {
  position: sticky;
  top: 0;
  z-index: 25;
  padding-top: env(safe-area-inset-top);
  background: rgba(7, 7, 8, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.top-inner,
.desk-inner,
.gate-inner {
  width: min(880px, 100%);
  margin: 0 auto;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.brand-block { display: flex; flex-direction: column; gap: 1px; }

.brand {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand span { color: var(--acid); }

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

.session { text-align: right; min-width: 0; }

#who {
  display: block;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

#logout {
  background: none;
  border: 0;
  padding: 4px 0;
  min-height: 32px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.boot {
  min-height: 70dvh;
  display: grid;
  place-items: center;
}

.boot-mark,
h1 {
  margin: 0;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.boot-mark span,
h1 span { color: var(--acid); }

.gate-inner { padding: 28px 16px 48px; }

.kicker {
  margin: 0;
  color: var(--acid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 { margin: 8px 0 12px; }

h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 36ch;
  font-size: 18px;
  line-height: 1.35;
}

.fine, .hint, .synced, .held, .alts, .score {
  color: var(--muted);
  line-height: 1.4;
}

.fine { font-size: 14px; }
.hint, .synced, .held, .alts { font-size: 13px; }
.links { margin-top: 22px; }
.links a { color: var(--muted); border-bottom: 1px solid rgba(163, 158, 148, 0.45); }

.noscript {
  padding: 24px 16px;
}

form, .context-card {
  margin-top: 18px;
}

label, .field-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b0b0d;
  font-size: 16px;
}

input::placeholder { color: var(--faint); }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #0b0b0d;
  border: 1px solid var(--line);
}

.seg.two, .total-seg { grid-template-columns: 1fr 1fr; }

.seg-opt {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.seg-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  min-height: 0;
}

.seg-opt.on {
  background: var(--ink);
  color: #14150f;
}

#side-choice .seg-opt {
  min-height: 44px;
  padding: 8px 6px;
  line-height: 1.2;
}

#side-choice .seg-opt span {
  white-space: normal;
}

.board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-game {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b0b0d;
}

.board-game.is-on { border-color: var(--acid); }

.board-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.board-match {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  min-height: 44px;
}

.board-meta {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
  line-height: 1.3;
}

.board-meta .live { color: var(--hot); }

.board-grid {
  display: grid;
  grid-template-columns: minmax(72px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}

.board-h,
.board-team {
  display: flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-h { justify-content: center; }

.board-team {
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.board-px {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  padding: 6px 2px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--slip);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.board-px span { pointer-events: none; }

.board-px .sub {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.board-px.is-on {
  background: var(--acid);
  color: var(--acid-ink);
  border-color: var(--acid);
}

.board-px.is-on .sub { color: var(--acid-ink); }

.board-px:disabled {
  color: var(--faint);
  opacity: 0.55;
}

[hidden] { display: none !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip, .text-btn, .btn {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
}

.chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
}

.btn {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-acid { background: var(--acid); color: var(--acid-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.btn-inline {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 14px;
  font-size: 14px;
}

.btn:active, .chip:active, .tabbar button:active { transform: scale(0.98); }

.text-btn {
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.tabbar {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(7, 7, 8, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.tabbar button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#start { padding: 8px 0 28px; }

.hero-line {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-example {
  margin: 12px 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.sport-picker {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  position: sticky;
  top: 52px;
  z-index: 6;
  padding: 8px 0;
  background: rgba(7, 7, 8, 0.94);
}

.sport-picker button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.sport-picker button.is-on {
  background: var(--acid);
  color: var(--acid-ink);
  border-color: var(--acid);
}

.sport-picker button.is-feature:not(.is-on) {
  border-color: rgba(223, 242, 80, 0.55);
  color: var(--ink);
}

#slate-title { margin: 14px 0 0; }

.hero-game {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 16px 14px 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 242, 80, 0.12), transparent 46%),
    var(--slip);
  text-align: left;
}

.hero-game.is-on { border-color: var(--acid); }

.hero-game-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-live { color: var(--hot); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(84px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 8px 6px;
  margin-top: 12px;
  align-items: center;
}

.hero-h {
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.hero-team {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-px {
  text-align: center;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.hero-px .sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.hero-fresh {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.pick {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b0b0d;
  text-align: left;
}

.pick strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.pick span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.pick.is-on { border-color: var(--acid); }

.game-title {
  margin: 2px 0 0;
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.game-prompt {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.game-strip {
  margin-top: 12px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(223, 242, 80, 0.12), transparent 42%),
    var(--raise);
}

.strip-kicker {
  margin: 0;
  color: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.strip-matchup,
.strip-when,
.strip-note,
.strip-period,
.strip-sit {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.3;
}

.strip-matchup { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }

.strip-when,
.strip-period { color: var(--ink); font-weight: 700; }

.strip-note,
.strip-sit { color: var(--muted); }

.strip-score { margin-top: 8px; }

.strip-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}

.strip-team {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.strip-num {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.strip-box-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.strip-box {
  width: 100%;
  border-collapse: collapse;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.strip-box th,
.strip-box td {
  padding: 2px 3px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.strip-box th:first-child,
.strip-box td:first-child,
.strip-box .strip-r {
  color: var(--ink);
  font-weight: 700;
}

.strip-box th:first-child,
.strip-box td:first-child { text-align: left; }

.line-compares {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.line-compare {
  padding: 8px 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--slip);
}

.line-pair { display: grid; gap: 4px; }

.line-now,
.line-open {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: baseline;
}

.line-now span,
.line-open span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.line-now strong,
.line-open strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.price-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.price-market {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 242, 80, 0.14), transparent 55%),
    var(--slip);
  text-align: left;
}

.price strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price.is-on {
  background: var(--acid);
  color: var(--acid-ink);
  border-color: var(--acid);
}

.own-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.own-row label {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.own-field input { margin: 0; }

#flow-error { grid-column: 1 / -1; }

.own-row input { margin: 0; }

.why-line {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

#flow-stat {
  margin: 8px 0 0;
  color: var(--acid);
  font-size: 13px;
  line-height: 1.35;
}

.flow-gap, .flow-later, .flow-foot {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.35;
}

.move-board {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.move-kicker {
  margin: 2px 0 0;
  color: var(--acid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.move {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #101208;
  text-align: left;
}

.move-lock {
  border-color: rgba(223, 242, 80, 0.4);
}

.move-lock strong { color: var(--acid); }

.move strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.move span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.move.is-on { border-color: var(--acid); }

.move.is-rec {
  border-color: var(--acid);
  box-shadow: inset 0 0 0 1px var(--acid);
}

.game-read {
  margin-top: 14px;
  padding: 12px 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(223, 242, 80, 0.4);
  background: #101208;
}

.read-why {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.read-prompt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.read-board {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 13px;
}

#flow-whatif {
  width: 100%;
  margin-top: 8px;
}

#flow-whatif-price {
  margin-top: 8px;
}

.read-line {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

#flow-read .play-stat { margin-top: 8px; }

.week-empty {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

#number-step, #move-step {
  margin-top: 16px;
  padding-top: 8px;
}

.number-editor label { margin-top: 12px; }

.move-targets { display: grid; gap: 8px; margin-top: 10px; }

.tabbar button.on {
  background: var(--ink);
  color: #14150f;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 12px;
}

.toolbar-actions { display: flex; align-items: center; gap: 8px; }

.synced { margin: 2px 0 0; }

#list {
  display: grid;
  gap: 12px;
}

.slip {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 242, 80, 0.08), transparent 42%),
    var(--slip);
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.22);
}

.slip.confirmed, .slip.is-lock { box-shadow: inset 3px 0 0 var(--acid); }

.slip-top, .rule-row, .slip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status, .sport-tag, .stat-label, .live-label, .side-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-on, .status-lock, .side-name { color: var(--acid); }
.status-off, .sport-tag, .stat-label, .live-label { color: var(--muted); }

.teams { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.slip-compare {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.live-board {
  padding: 10px 10px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b0b0d;
}

.live-board-kicker,
.live-board-miss,
.live-board-gap,
.live-board-fresh {
  margin: 0;
  line-height: 1.35;
}

.live-board-kicker {
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(64px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
  align-items: stretch;
}

.live-h,
.live-team {
  display: flex;
  align-items: center;
  min-height: 22px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-h { justify-content: center; }

.live-team {
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-size: 13px;
}

.live-px {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 36px;
  padding: 4px 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.live-px .sub {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.live-px.is-held {
  color: var(--acid);
  background: rgba(223, 242, 80, 0.1);
}

.live-board-gap {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
}

.live-board-fresh,
.live-board-miss {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}

.live-board-miss { margin-top: 0; color: var(--muted); font-size: 13px; }

@media (min-width: 720px) {
  .slip-compare {
    grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.side-name { margin: 14px 0 0; }

.odds, .stat-value, .live-quote {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.odds {
  margin: 2px 0 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.meta { margin: 8px 0 0; font-size: 14px; }

.rule-list { margin-top: 12px; }

.rule-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.rule-state { color: var(--acid); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.rule-state.hit { color: var(--muted); }

.slip-actions { margin-top: 12px; }

.slip-actions .btn {
  flex: 1;
  margin-top: 0;
  min-height: 44px;
  font-size: 14px;
}

.note {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.slip-actions { flex-wrap: wrap; }

.play, .target {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b0b0d;
  text-align: left;
}

.play { min-height: 64px; }

.play strong, .target strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.play span, .target span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.play .play-stat,
#plays-detail-stat {
  display: block;
  margin-top: 6px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.target { min-height: 44px; }

.target.is-on {
  background: var(--acid);
  color: var(--acid-ink);
  border-color: var(--acid);
}

.target.is-on span { color: var(--acid-ink); }

#plays-detail h3 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

#plays-back { margin-top: 0; padding-left: 0; }

.empty {
  padding: 28px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(223, 242, 80, 0.45);
  background: rgba(223, 242, 80, 0.04);
}

.empty h3 {
  margin: 8px 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.empty p { margin: 0; color: var(--muted); line-height: 1.45; }

.section-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: #0c0c0e;
}

.stat-value {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.stat-accent .stat-value { color: var(--acid); }

.live-label { margin: 14px 0 0; }
.live-quote { margin: 4px 0 0; font-size: 18px; }
.score, .alts, .held { margin: 8px 0 0; }
.score { color: var(--ink); font-size: 14px; }

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
}

.sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92dvh, 100%);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #121316;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.5);
}

.sheet-grab {
  width: 36px;
  height: 4px;
  margin: 6px auto 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-head h2 { margin: 0; font-size: 22px; }

#sheet-close {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}

.sheet-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #ffd0c8;
  background: rgba(255, 93, 74, 0.16);
}

.context-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #0c0c0e;
  border: 1px solid var(--line);
}

.context-card p { margin: 0; }
.context-match { color: var(--muted); font-size: 13px; }
.context-bet {
  margin-top: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
}
.context-meta { margin-top: 4px; color: var(--muted); font-size: 13px; }

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(420px, calc(100% - 24px));
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--acid-ink);
  font-size: 14px;
  font-weight: 600;
}

.toast.error { background: var(--hot); color: #fff5f3; }

#boot[hidden],
#gate[hidden],
#desk[hidden],
#sheet-root[hidden],
#session[hidden],
.toast[hidden],
.sheet-error[hidden],
.context-card[hidden] {
  display: none !important;
}

@media (min-width: 840px) {
  body.desk-on { padding-bottom: 32px; }

  .tabbar {
    position: sticky;
    top: 58px;
    bottom: auto;
    width: min(880px, calc(100% - 32px));
    margin: 12px auto 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    border-top: 1px solid var(--line);
  }

  #list { grid-template-columns: 1fr 1fr; align-items: start; }
  .empty, .section-label, .quiet-note { grid-column: 1 / -1; }

  .sheet-root { align-items: center; padding: 24px; }

  .sheet {
    border-radius: 22px;
    max-height: min(84dvh, 780px);
    border: 1px solid var(--line);
  }

  .toast { bottom: 24px; }
}

@media (hover: hover) {
  .btn-acid:hover { filter: brightness(1.06); }
  .host:hover, #logout:hover, #sheet-close:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip:active, .tabbar button:active { transform: none; }
}
