:root {
  color-scheme: dark;
  /* "Chalk & Pitch" — dark turf, chalk-white text, tangerine accent. */
  --bg: #0c1210;
  --panel: #141d18;
  --card: #141d18;
  --line: #243029;
  --text: #f1efe6;        /* chalk */
  --muted: #9aa79c;
  --home: #4f9dff;        /* home team */
  --away: #ffd24a;        /* away team */
  --accent: #ff7a3c;      /* tangerine */
  --accent-ink: #241003;  /* text on accent */
  --pitch: #2d8a5a;       /* turf green */
  --gold: #ffcf5a;
  --silver: #c8d2dc;
  --bronze: #e0986a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 50% -12%, rgba(244,194,69,0.10), transparent 70%),
    radial-gradient(760px 520px at 88% 4%, rgba(47,158,110,0.12), transparent 72%),
    linear-gradient(transparent 95%, rgba(255,255,255,0.025) 0) 0 0 / 100% 30px,
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.025) 0) 0 0 / 30px 100%;
}
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
code { background: #0e1311; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; text-align: center; padding: 48px 20px 24px; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(30px, 5vw, 48px); margin: 0 0 4px; letter-spacing: -1px;
  background: linear-gradient(180deg, #fff, #cdd6cf); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; letter-spacing: -0.5px;
  margin: 0 0 14px; color: var(--accent);
}
.hero .tag { color: #c3ccc4; max-width: 600px; margin: 0 auto; line-height: 1.6; font-size: 15.5px; }
.hero .tag b { color: var(--text); }
.herobtns { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ghostbtn, .star {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 13px;
  text-decoration: none; cursor: pointer; transition: border-color .12s, transform .12s, color .12s;
}
.ghostbtn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.star:hover { border-color: var(--gold); transform: translateY(-1px); color: var(--gold); }
.starfixed { position: fixed; top: 14px; right: 16px; z-index: 6; }

/* primary actions just above the field */
.actions { position: relative; z-index: 1; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 4px clamp(16px, 4vw, 40px) 16px; }
.primary.big { font-size: 15px; padding: 11px 22px; border-radius: 999px; }
.primary.big:hover { transform: translateY(-1px); }

/* ---------- shared card ---------- */
.card { background: linear-gradient(180deg, var(--card), #141815); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.35); }
.card h2 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); }

/* ---------- stage: field + compete side by side ---------- */
.stage {
  position: relative; z-index: 1; max-width: 1320px; margin: 0 auto 22px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start;
}
@media (max-width: 1040px) { .stage { grid-template-columns: 1fr; } }

.theater { padding: 14px; }
.fieldtop { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.matchup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.matchup .vs { color: var(--muted); font-style: italic; margin: 0 2px; }
/* team indicator: a colored dot in front of each picker (matches the pitch colors) */
.seldot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.25); }
.seldot.home { background: var(--home); }
.seldot.away { background: var(--away); }
.livebadge { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.livebadge.ok { color: var(--pitch); font-weight: 600; }
.livebadge.ok::before { content: "● "; }

/* dropdowns: custom caret, focus ring, team accent edge */
.sel, #speedSel {
  appearance: none; -webkit-appearance: none;
  background: #11160f url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2394a09a' stroke-width='1.5'/></svg>") no-repeat right 10px center;
  color: var(--text); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 30px 8px 12px; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.sel:hover, #speedSel:hover { border-color: #475049; }
.sel:focus, #speedSel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,194,69,0.15); }

.stagewrap { display: flex; justify-content: center; }
.theater canvas { width: auto; height: auto; max-width: 100%; max-height: 62vh; border-radius: 10px; background: var(--pitch); }
.stagemsg { min-height: 18px; text-align: center; margin-top: 8px; font-size: 13px; color: var(--accent); }
.stagemsg.err { color: #ff6b6b; }
.stagemsg.flash { color: var(--accent); font-weight: 600; animation: kbflash .7s ease-out; }
@keyframes kbflash { 0% { opacity: 0; transform: translateY(-3px); } 18% { opacity: 1; transform: none; } 100% { opacity: 1; } }
.loading { animation: kbpulse 1s ease-in-out infinite; }
@keyframes kbpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* controls row; exec buttons (seed/dice/rewatch/fullscreen) pinned bottom-right */
.controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.controls input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 60px; }
.controls > button { background: #21271f; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.controls > button:hover { border-color: #475049; }
.execbtns { margin-left: auto; display: flex; align-items: center; gap: 8px; }
button.primary { background: var(--accent); color: var(--accent-ink); border: none; border-radius: 9px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
button.primary:hover { filter: brightness(1.06); }
#fsBtn { background: #21271f; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; cursor: pointer; }
#fsBtn:hover { border-color: #475049; }

/* "Coach live" button by the live badge */
.fieldtop-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fieldtop-right .livebadge { margin-left: 0; }
.coachbtn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #262f25, #1a201a); color: var(--text);
  border: 1px solid #2f3b30; border-radius: 999px; padding: 5px 8px 5px 11px;
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  transition: border-color .14s, box-shadow .14s, transform .12s, background .14s;
}
.coachbtn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,60,.12); transform: translateY(-1px); }
.coachbtn[hidden] { display: none; }
.coach-label { line-height: 1; }
.coach-live {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 6px;
  background: rgba(70,209,127,.13); border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #54d98a;
}
.coach-dot { width: 6px; height: 6px; border-radius: 50%; background: #54d98a; box-shadow: 0 0 0 0 rgba(84,217,138,.6); animation: coachpulse 1.7s ease-out infinite; }
@keyframes coachpulse { 0% { box-shadow: 0 0 0 0 rgba(84,217,138,.55); } 70% { box-shadow: 0 0 0 5px rgba(84,217,138,0); } 100% { box-shadow: 0 0 0 0 rgba(84,217,138,0); } }
/* active = Knobs tab open: go solid accent */
.coachbtn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: none; transform: none; }
.coachbtn.active .coach-live { background: rgba(36,16,3,.18); color: var(--accent-ink); }
.coachbtn.active .coach-dot { background: var(--accent-ink); box-shadow: none; animation: none; }

/* periodic attention shakes — JS picks one at random every few seconds */
.coachbtn.sh1 { animation: sh1 var(--shdur,.45s) ease both; }
.coachbtn.sh2 { animation: sh2 var(--shdur,.45s) ease both; }
.coachbtn.sh3 { animation: sh3 var(--shdur,.5s) ease both; }
.coachbtn.sh4 { animation: sh4 var(--shdur,.5s) cubic-bezier(.36,.07,.19,.97) both; }
@keyframes sh1 { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-1px); } 50% { transform: translateX(1px); } 75% { transform: translateX(-0.6px); } }
@keyframes sh2 { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-1.2deg); } 65% { transform: rotate(1deg); } }
@keyframes sh3 { 0%,100% { transform: translate(0,0) rotate(0); } 35% { transform: translate(-0.8px,0.5px) rotate(-0.8deg); } 70% { transform: translate(0.8px,-0.5px) rotate(0.8deg); } }
@keyframes sh4 { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-1.2px); } 40% { transform: translateX(1.2px); } 60% { transform: translateX(-0.8px); } 80% { transform: translateX(0.7px); } }

/* ---------- sidebar tabs (Leaderboard / Knobs) ---------- */
.sidebar-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sidebar-tabs button {
  background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted);
  padding: 6px 4px 9px; margin-bottom: -1px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sidebar-tabs button:hover { color: var(--text); }
.sidebar-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.sidebar-tabs button[hidden] { display: none; }
.tabpanel[hidden] { display: none; }

/* ---------- live knob tuning ---------- */
.knobs-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-height: 26px; }
.knobs-coaching { flex: 1; font-size: 13.5px; color: var(--muted); }
.coaching-name { font-weight: 800; }
.knobs-reset {
  background: #21271f; color: var(--muted); border: 1px solid var(--line);
  border-radius: 7px; padding: 4px 10px; font-size: 12px; cursor: pointer; flex: none;
}
.knobs-reset:hover { color: var(--text); border-color: #475049; }
.knobs-reset[hidden] { display: none; }
/* side switch: which bot you're coaching */
.sidetabs { display: flex; width: 100%; margin-bottom: 20px; }
.sidetabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; font-size: 12.5px; font-weight: 600; }
.sidetabs button:disabled { opacity: 0.45; cursor: not-allowed; }
.sidetabs .seldot { width: 9px; height: 9px; }
.knobs-list { display: flex; flex-direction: column; gap: 14px; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.knobs-empty { color: var(--muted); font-size: 12.5px; font-style: italic; }
.knob { font-size: 12px; }
.knob-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.knob-label { color: var(--text); }
.knob-val { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.knob input[type="range"] { width: 100%; accent-color: var(--accent); margin: 4px 0 0; cursor: pointer; }
.knob.changed .knob-label::after { content: " •"; color: var(--accent); }
.knob-help { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 3px; }

/* seed + dice — dice is its own bright control */
.seedfield { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 9px; background: #11160f; overflow: hidden; }
.seedlabel { color: var(--muted); font-size: 12.5px; padding: 0 6px 0 10px; }
#seedInput { width: 48px; background: transparent; color: var(--text); border: none; padding: 8px 4px; font: inherit; -moz-appearance: textfield; }
#seedInput::-webkit-outer-spin-button, #seedInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#seedInput:focus { outline: none; }
#diceBtn {
  border: none; padding: 7px 11px; cursor: pointer; font-size: 15px; line-height: 1;
  background: linear-gradient(160deg, var(--away), var(--accent)); color: var(--accent-ink);
  transition: filter .12s, transform .12s;
}
#diceBtn:hover { filter: brightness(1.08); transform: rotate(-12deg); }

/* fullscreen: whole theater */
.theater:fullscreen { background: #0a0d0b; display: flex; flex-direction: column; gap: 10px; padding: 16px 4vw; overflow: hidden; }
.theater:fullscreen .fieldtop { justify-content: center; margin-bottom: 0; }
.theater:fullscreen .stagewrap { flex: 1; min-height: 0; align-items: center; }
.theater:fullscreen canvas { max-height: calc(100vh - 150px); max-width: 96vw; }
.theater:fullscreen .controls { justify-content: center; }

/* ---------- compete ---------- */
.howto .steps { margin: 8px 0 0; padding-left: 20px; counter-reset: step; }
.howto .steps li { margin-bottom: 14px; }
.howto .steps li b { color: var(--text); }
.namerow { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.namerow input {
  flex: 1; min-width: 0; background: #0e1311; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; color: var(--text); font: inherit;
}
.namerow input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,60,0.15); }
.namestatus { font-size: 12.5px; white-space: nowrap; min-width: 72px; }
.namestatus.ok { color: #5fd068; }
.namestatus.bad { color: #ff6b6b; }

.cmdrow { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.cmd {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px;
  background: #0e1311; border: 1px solid var(--line); color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  white-space: nowrap; overflow-x: auto;
}
.copy {
  flex: none; background: var(--accent); color: var(--accent-ink); border: none;
  border-radius: 8px; padding: 0 14px; font-weight: 700; font-size: 12px; cursor: pointer;
}
.copy:hover { filter: brightness(1.06); }
.copy.copied { background: var(--pitch); color: #fff; }
.copy:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }

.install { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.install summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.install summary:hover { color: var(--text); }
.ostabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 10px 0 0; }
.ostabs button { background: transparent; border: none; color: var(--muted); padding: 5px 10px; font: inherit; font-size: 11.5px; cursor: pointer; }
.ostabs button + button { border-left: 1px solid var(--line); }
.ostabs button.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Tool selector inside the Compete modal */
.namestep, .modestep { margin-top: 14px; }
.namestep b, .modestep b { color: var(--text); }
.modetabs { display: flex; margin-top: 8px; }
.modetabs button { flex: 1; padding: 8px 10px; font-size: 12.5px; }
.modepanel { margin-top: 16px; }
.modepanel[hidden] { display: none; }
.modepanel .steps { padding-left: 22px; }
.promptblock { white-space: pre-wrap; word-break: break-word; overflow-x: visible; line-height: 1.5; }
.cmdrow:has(.promptblock) { align-items: flex-start; }
.cmdrow:has(.promptblock) .copy { padding: 9px 14px; }
.kbd { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-size: 0.9em; background: rgba(255,255,255,0.05); }
.appshot { display: block; margin: 10px 0 2px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.needtools { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.needtools a { color: var(--accent); white-space: nowrap; }

/* ---------- leaderboard (full width) ---------- */
.boardwrap { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 36px; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.board-head h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.boardhint {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: none;
  color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 999px;
  animation: hintpulse 1.3s ease-in-out infinite;
}
@keyframes hintpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.boardsel { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.boardsel b { color: var(--text); }
.boardsel .cH { color: var(--home); } .boardsel .cA { color: var(--away); }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 12px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .12s, border-color .12s, transform .08s;
}
.row + .row { margin-top: 2px; }
.row:hover { background: rgba(255,255,255,0.04); border-color: #36433a; transform: translateX(2px); }
.row:active { transform: translateX(2px) scale(0.997); }
.row.sel { background: rgba(255,255,255,0.05); }
.row.selHome { border-color: var(--home); box-shadow: inset 3px 0 0 var(--home); }
.row.selAway { border-color: var(--away); box-shadow: inset 3px 0 0 var(--away); }
.rank { font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; color: var(--muted); }
.rank.m1 { color: var(--gold); } .rank.m2 { color: var(--silver); } .rank.m3 { color: var(--bronze); }
.who { min-width: 0; }
.name { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.owner { color: var(--muted); font-size: 12.5px; }
.blurb { color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.elo { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 18px; }
.elocap { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.selbadge { font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; padding: 1px 6px; border-radius: 5px; }
.row.selHome .selbadge { background: var(--home); color: #04122b; }
.row.selAway .selbadge { background: var(--away); color: #2b2200; }
.wdl { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.elobar { height: 4px; border-radius: 3px; margin-top: 5px; width: 64px; background: rgba(255,255,255,0.08); overflow: hidden; }
.elobar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pitch), var(--accent)); }

.pill { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.lib { color: var(--away); border-color: rgba(255,122,89,0.4); }
.pill.you { color: var(--home); border-color: rgba(79,157,255,0.5); }

/* legend folded into the board */
.legend-inline {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.legend-inline .lg { color: var(--text); }

/* ---------- modals (Compete, How it works) ---------- */
dialog.modal {
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  background: linear-gradient(180deg, var(--card), #141815); color: var(--text);
  max-width: 640px; width: calc(100% - 32px); max-height: 86vh; overflow: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}
dialog.modal::backdrop { background: rgba(6,9,8,0.62); backdrop-filter: blur(2px); }
.modal-inner { padding: 22px 24px 26px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h2 { margin: 0; }
.modal-x { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; width: 30px; height: 30px; font-size: 14px; cursor: pointer; flex: none; }
.modal-x:hover { color: var(--text); border-color: #475049; }
.modal h3 { margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); }
.modal .rulelist { columns: 1; }

/* ---------- rules ---------- */
.rules { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto 8px; padding: 0 clamp(16px, 4vw, 40px); scroll-margin-top: 16px; }
.rules .card + .card { margin-top: 18px; }
.rulelist { columns: 2; column-gap: 30px; list-style: none; margin: 0; padding: 0; }
.rulelist li { break-inside: avoid; margin-bottom: 11px; padding-left: 18px; position: relative; color: #c3ccc4; font-size: 13.5px; line-height: 1.5; }
.rulelist li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rulelist b { color: var(--text); }
@media (max-width: 680px) { .rulelist { columns: 1; } }

footer { position: relative; z-index: 1; text-align: center; padding: 22px; }

/* Mobile-only elements: hidden on desktop, revealed in the mobile block below. */
.tag-mobile, .reframe-mobile, .watchcap-mobile { display: none; }

/* "Built on your computer" reframe card (mobile) */
.reframe { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto 16px; padding: 0 clamp(16px, 4vw, 40px); }
.reframe-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,122,60,0.10), rgba(255,122,60,0.04));
  border: 1px solid rgba(255,122,60,0.35); border-radius: 14px; padding: 14px 16px;
}
.reframe-card .big { font-size: 24px; line-height: 1; }
.reframe-card b { color: var(--accent); }
.reframe-card p { margin: 4px 0 0; color: #d7ddd6; font-size: 14px; line-height: 1.5; }
.reframe-card .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* "watch a live match" label over the field (mobile) — kills the "tap to play" instinct */
.watchcap { text-align: center; font-weight: 700; color: var(--accent); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; margin: 0 0 8px; }

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .starfixed { top: 8px; right: 8px; padding: 6px 11px; font-size: 11px; }
  .hero { padding: 34px 18px 14px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 25px; margin-bottom: 12px; }
  /* swap the long desktop tag for the short, line-broken mobile idea */
  .tag-desktop { display: none; }
  .tag-mobile { display: block; font-size: 17px; line-height: 1.5; color: #d7ddd6; max-width: 34ch; margin: 0 auto; }
  .tag-mobile b { color: #fff; }
  .reframe-mobile { display: block; }
  .watchcap-mobile { display: block; }
  /* Play / Compete is a dead end on a phone (it hands you terminal commands) */
  #playBtn { display: none; }
  .card { padding: 14px; }
  .theater { padding: 12px; }
  .theater canvas { max-height: 54vh; }
  .matchup { gap: 8px; }
  .matchup .vs { display: none; }
  .matchup .sel { flex: 1 1 0; }
  .controls { flex-wrap: wrap; gap: 8px; }
  .execbtns { margin-left: 0; width: 100%; justify-content: flex-end; }
}
