/* DAILY DRIVE: all UI styling. Night game under the lights: near-black turf, chalk text,
   goalpost gold for the hero moments, green = right, red = wrong, orange = clock ran out.
   One phone-width column, centred on desktop. */

:root {
  --night: #07110c;
  --night-2: #0b1f14;
  --night-3: #12301f;
  --panel: rgba(244, 241, 232, 0.06);
  --panel-2: rgba(244, 241, 232, 0.1);
  --line: rgba(244, 241, 232, 0.14);
  --chalk: #f4f1e8;
  --dim: rgba(244, 241, 232, 0.64);
  --faint: rgba(244, 241, 232, 0.38);
  --gold: #ffc20e;
  --gold-deep: #9c7400;
  --green: #2ee86f;
  --green-deep: #138a42;
  --red: #ff4d4d;
  --red-deep: #a32121;
  --orange: #ff8a1f;
  --turf: #15663a;
  --turf-2: #18733f;
  --ink: #050907;
  --f: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--night);
  background-image: radial-gradient(120% 55% at 50% -8%, var(--night-3), transparent 70%);
  background-attachment: fixed;
  color: var(--chalk);
  font: 500 16px/1.4 var(--f);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

#app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 8px) 16px calc(var(--safe-b) + 24px);
}
@media (min-width: 560px) {
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ---- Top bar ------------------------------------------------------------------------- */
.topbar { display: flex; align-items: center; gap: 8px; height: 52px; }
.brand {
  text-decoration: none;
  font: 900 22px/1 var(--f);
  letter-spacing: -0.01em;
  transform: skewX(-9deg);
  white-space: nowrap;
}
.brand-a { color: var(--chalk); }
.brand-b { color: var(--gold); }
.topbar-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  font-size: 18px;
}
.streak-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.14);
  border: 1px solid rgba(255, 138, 31, 0.5);
  color: var(--orange);
  font: 800 15px/1 var(--f);
  font-variant-numeric: tabular-nums;
}
.streak-chip.cold { background: var(--panel); border-color: var(--line); color: var(--dim); }

#view { outline: none; padding-top: 6px; }
.screen { animation: in 0.28s ease-out both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Type + shared bits ------------------------------------------------------------- */
.kicker { font: 800 12px/1.2 var(--f); letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.h1 { font: 900 clamp(40px, 13vw, 58px)/0.92 var(--f); letter-spacing: -0.02em; margin: 0; transform: skewX(-8deg); }
.h2 { font: 900 26px/1.05 var(--f); margin: 0; transform: skewX(-6deg); letter-spacing: -0.01em; }
.muted { color: var(--dim); }
.gold { color: var(--gold); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { height: 14px; }
.tnum { font-variant-numeric: tabular-nums; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}
.card.gold-edge { border-color: rgba(255, 194, 14, 0.55); background: linear-gradient(180deg, rgba(255, 194, 14, 0.1), rgba(255, 194, 14, 0.03)); }
.card.green-edge { border-color: rgba(46, 232, 111, 0.45); background: linear-gradient(180deg, rgba(46, 232, 111, 0.09), rgba(46, 232, 111, 0.02)); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--panel-2);
  font: 800 11px/1 var(--f);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chip.live { background: rgba(46, 232, 111, 0.14); color: var(--green); }
.chip.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 232, 111, 0.7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(46, 232, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 232, 111, 0); } }
.chip.new { background: var(--gold); color: var(--ink); }

/* ---- Buttons ------------------------------------------------------------------------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--gold);
  color: var(--ink);
  font: 900 19px/1 var(--f);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--gold-deep);
  transition: transform 0.06s, box-shadow 0.06s, filter 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn:disabled { filter: grayscale(0.8) brightness(0.7); }
.btn.big { min-height: 68px; font-size: 23px; border-radius: 20px; }
.btn.green { background: var(--green); box-shadow: 0 5px 0 var(--green-deep); }
.btn.green:active { box-shadow: 0 1px 0 var(--green-deep); }
.btn.ghost {
  background: var(--panel);
  color: var(--chalk);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 16px;
  min-height: 50px;
}
.btn.ghost:active { transform: translateY(2px); }
.btn.slim { min-height: 44px; font-size: 14px; }
.btns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-btn { background: none; border: 0; padding: 8px; color: var(--dim); font: 700 14px/1 var(--f); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Home ------------------------------------------------------------------------------ */
.hero { padding: 18px 0 8px; }
.hero .tag { margin: 12px 0 0; font: 700 17px/1.35 var(--f); color: var(--dim); }
.today-card { position: relative; overflow: hidden; }
.today-card::after {
  /* faint yard lines */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(244, 241, 232, 0.05) 46px 48px);
}
.today-card > * { position: relative; z-index: 1; }
.today-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.today-n { font: 900 34px/1 var(--f); transform: skewX(-8deg); }
.rules-mini { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stat { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.mini-stat b { display: block; font: 900 24px/1.1 var(--f); font-variant-numeric: tabular-nums; }
.mini-stat span { font: 700 11px/1.2 var(--f); letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.countdown { font: 900 34px/1 var(--f); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.challenge-banner { display: flex; gap: 12px; align-items: center; }
.challenge-banner .ava { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font: 900 22px/1 var(--f); }
.emoji-grid { font-size: 20px; letter-spacing: 2px; line-height: 1; }
.nav-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- Play ------------------------------------------------------------------------------ */
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.play-head .score { font: 900 22px/1 var(--f); font-variant-numeric: tabular-nums; color: var(--gold); }
.minifield {
  position: relative;
  height: 30px;
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(244, 241, 232, 0.4) calc(10% - 1px) 10%),
    linear-gradient(90deg, var(--turf), var(--turf-2));
  border: 1px solid rgba(244, 241, 232, 0.35);
  margin-bottom: 14px;
}
.minifield .ez { position: absolute; top: 0; bottom: 0; width: 8.333%; }
.minifield .ez.l { left: 0; background: rgba(5, 9, 7, 0.45); }
.minifield .ez.r { right: 0; background: rgba(255, 194, 14, 0.55); }
.minifield .ball {
  position: absolute; top: 50%;
  left: 25%;
  width: 26px; height: 18px;
  margin: -9px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 35%, #c76b3a, #7b3416);
  border: 2px solid #3b1708;
  transition: left 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.minifield .ball::after { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: #fff; border-radius: 2px; }
.minifield .los { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #3aa0ff; transition: left 0.6s; }

.qwrap { position: relative; }
.qmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.clock { position: relative; width: 74px; height: 74px; flex: none; margin-left: auto; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock .track { fill: none; stroke: var(--panel-2); stroke-width: 8; }
.clock .bar { fill: none; stroke: var(--chalk); stroke-width: 8; stroke-linecap: round; }
.clock .num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 900 28px/1 var(--f);
  font-variant-numeric: tabular-nums;
}
.clock.warn .bar { stroke: var(--gold); }
.clock.hot .bar { stroke: var(--red); }
.clock.hot .num { color: var(--red); animation: thump 1s infinite; }
@keyframes thump { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } }
.q-top { display: flex; align-items: flex-start; gap: 12px; }
.prompt { font: 800 22px/1.25 var(--f); margin: 4px 0 16px; letter-spacing: -0.005em; flex: 1; }
.clue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 14px; }
.clue .it {
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--chalk);
  color: var(--ink);
  font: 800 15px/1.1 var(--f);
}
.clue.stats .it { background: var(--night-3); color: var(--chalk); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.clue .arrow { color: var(--gold); font: 900 16px/1 var(--f); }
.clue.emoji .it { background: none; padding: 0 4px; font-size: 44px; line-height: 1.1; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  text-align: left;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--panel);
  font: 800 18px/1.2 var(--f);
  transition: transform 0.08s, background 0.15s, border-color 0.15s, opacity 0.2s;
}
.choices.two .choice { justify-content: center; text-align: center; min-height: 76px; font-size: 22px; }
.choice .key {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--panel-2);
  font: 900 14px/1 var(--f);
  color: var(--dim);
}
.choices.two .choice .key { display: none; }
.choice:active { transform: scale(0.98); }
.choice:disabled { cursor: default; }
.choice.is-right { border-color: var(--green); background: rgba(46, 232, 111, 0.18); }
.choice.is-right .key { background: var(--green); color: var(--ink); }
.choice.is-wrong { border-color: var(--red); background: rgba(255, 77, 77, 0.18); animation: shake 0.36s; }
.choice.is-wrong .key { background: var(--red); color: var(--ink); }
.choice.is-dim { opacity: 0.4; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.reveal { margin-top: 14px; animation: in 0.25s ease-out both; }
.verdict { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.verdict b { font: 900 26px/1 var(--f); transform: skewX(-8deg); }
.verdict .pts { font: 900 20px/1 var(--f); font-variant-numeric: tabular-nums; }
.verdict.ok b, .verdict.ok .pts { color: var(--green); }
.verdict.bad b { color: var(--red); }
.verdict.late b { color: var(--orange); }
.fact { margin: 0 0 14px; color: var(--dim); font: 600 15px/1.45 var(--f); }
.fact strong { color: var(--chalk); }
.left-flag { color: var(--orange); font: 800 13px/1.3 var(--f); margin: -6px 0 12px; }

.snap {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: rgba(7, 17, 12, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}
.snap span { font: 900 clamp(64px, 22vw, 120px)/1 var(--f); transform: skewX(-10deg); color: var(--chalk); text-shadow: 0 6px 0 rgba(0, 0, 0, 0.4); animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.snap span.hut { color: var(--gold); }
@keyframes pop { from { transform: skewX(-10deg) scale(0.4); opacity: 0; } }

/* ---- Pregame ----------------------------------------------------------------------------- */
.rules { display: grid; gap: 10px; margin: 16px 0 18px; padding: 0; list-style: none; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font: 600 15px/1.4 var(--f); }
.rules li > span:first-child { font-size: 22px; line-height: 1.1; }
.rules b { color: var(--chalk); }

/* ---- Result ------------------------------------------------------------------------------ */
.outcome { text-align: center; padding: 10px 0 4px; }
.outcome .em { font-size: 64px; line-height: 1; display: block; animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.outcome .label { font: 900 clamp(46px, 15vw, 66px)/0.95 var(--f); transform: skewX(-9deg); margin: 8px 0 6px; letter-spacing: -0.02em; }
.outcome.td .label { color: var(--gold); text-shadow: 0 0 28px rgba(255, 194, 14, 0.45); }
.outcome.fg .label { color: var(--green); }
.outcome.doink .label { color: var(--orange); }
.outcome.pick .label { color: var(--red); }
.outcome .line { color: var(--dim); font: 700 16px/1.35 var(--f); margin: 0; }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 10px; }
.tile3 { text-align: center; padding: 12px 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.tile3 b { display: block; font: 900 26px/1.1 var(--f); font-variant-numeric: tabular-nums; }
.tile3 span { font: 800 10.5px/1.2 var(--f); letter-spacing: 0.1em; color: var(--dim); }
.plays { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.play {
  position: relative;
  text-align: center;
  padding: 10px 2px 8px;
  border-radius: 14px;
  border: 2px solid;
  font: 900 16px/1 var(--f);
  font-variant-numeric: tabular-nums;
}
.play small { display: block; margin-top: 5px; font: 800 9.5px/1 var(--f); letter-spacing: 0.08em; }
.play.ok { border-color: var(--green); background: rgba(46, 232, 111, 0.12); }
.play.ok small { color: var(--green); }
.play.bad { border-color: var(--red); background: rgba(255, 77, 77, 0.12); }
.play.bad small { color: var(--red); }
.play.late { border-color: var(--orange); background: rgba(255, 138, 31, 0.12); }
.play.late small { color: var(--orange); }
.play .eye { position: absolute; top: -9px; right: -5px; font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 16px; }
.pill { padding: 8px 12px; border-radius: 999px; border: 2px solid; font: 800 13px/1 var(--f); letter-spacing: 0.04em; }
.pill.green { border-color: var(--green); color: var(--green); }
.pill.orange { border-color: var(--orange); color: var(--orange); }
.pill.gold { border-color: var(--gold); color: var(--gold); }
.share-stack { display: grid; gap: 10px; }
.h2h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.h2h .side b { display: block; font: 900 28px/1.05 var(--f); font-variant-numeric: tabular-nums; }
.h2h .side .who { font: 800 12px/1.2 var(--f); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h .vs { font: 900 18px/1 var(--f); color: var(--faint); }
.h2h-verdict { margin: 12px 0 0; text-align: center; font: 900 22px/1.1 var(--f); transform: skewX(-6deg); }
.badge-row { display: flex; gap: 12px; align-items: center; }
.badge-row .bi { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 194, 14, 0.14); border: 1px solid rgba(255, 194, 14, 0.5); }
.review { display: grid; gap: 10px; }
.rv { padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.rv .rq { font: 800 15px/1.35 var(--f); margin: 6px 0 8px; }
.rv .ra { font: 700 14px/1.4 var(--f); }
.rv .ra .r { color: var(--green); }
.rv .ra .w { color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; }
.rv .rf { margin: 6px 0 0; color: var(--dim); font: 500 13.5px/1.45 var(--f); }
details.more > summary { cursor: pointer; list-style: none; font: 900 15px/1 var(--f); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 14px 0; text-align: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { color: var(--chalk); }

/* ---- Stats ------------------------------------------------------------------------------- */
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; font: 800 12px/1 var(--f); letter-spacing: 0.06em; }
.bar-row .bar { height: 26px; border-radius: 8px; background: var(--panel-2); display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; min-width: 30px; font: 900 13px/1 var(--f); font-variant-numeric: tabular-nums; color: var(--ink); }
.bar-row .bar.zero { background: var(--panel); color: var(--faint); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.badge .bi { font-size: 30px; line-height: 1; display: block; margin-bottom: 6px; }
.badge b { display: block; font: 900 11px/1.15 var(--f); letter-spacing: 0.04em; }
.badge span { display: block; margin-top: 4px; font: 500 11px/1.3 var(--f); color: var(--dim); }
.badge.locked { opacity: 0.42; }
.badge.locked .bi { filter: grayscale(1); }

/* ---- Archive ----------------------------------------------------------------------------- */
.arch { display: grid; gap: 8px; }
.arch-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
}
.arch-row .n { font: 900 20px/1 var(--f); min-width: 52px; font-variant-numeric: tabular-nums; }
.arch-row .d { font: 700 13px/1.2 var(--f); color: var(--dim); }
.arch-row .r { margin-left: auto; text-align: right; font: 800 13px/1.2 var(--f); }
.arch-row .go { color: var(--gold); font: 900 14px/1 var(--f); letter-spacing: 0.06em; }

/* ---- Sheets, toast, confetti -------------------------------------------------------- */
.sheet-bg {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.2s both;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 480px;
  max-height: 88vh; overflow-y: auto;
  padding: 22px 18px calc(var(--safe-b) + 22px);
  border-radius: 24px 24px 0 0;
  background: var(--night-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  animation: up 0.25s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h3 { margin: 0 0 12px; font: 900 24px/1.1 var(--f); transform: skewX(-6deg); }
.field { display: grid; gap: 6px; margin: 10px 0 14px; }
.field input {
  min-height: 52px; padding: 0 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--panel);
  font: 800 18px/1 var(--f);
}
.field input:focus { border-color: var(--gold); outline: none; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 700 16px/1.3 var(--f); }
.set-row small { display: block; color: var(--dim); font: 500 13px/1.35 var(--f); }
.toggle { position: relative; flex: none; width: 54px; height: 32px; border-radius: 999px; border: 0; background: var(--panel-2); transition: background 0.2s; }
.toggle::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--chalk); transition: transform 0.2s; }
.toggle[aria-checked='true'] { background: var(--green); }
.toggle[aria-checked='true']::after { transform: translateX(22px); }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 24px); z-index: 60;
  transform: translate(-50%, 30px);
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--chalk);
  color: var(--ink);
  font: 800 15px/1.3 var(--f);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 50; pointer-events: none; }

/* ---- Boot ---------------------------------------------------------------------------- */
#boot {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; gap: 18px;
  background: var(--night);
  text-align: center;
  transition: opacity 0.3s;
}
#boot.gone { opacity: 0; pointer-events: none; }
.boot-logo { font: 900 64px/0.9 var(--f); transform: skewX(-9deg); }
.boot-status { color: var(--dim); font: 700 15px/1.3 var(--f); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
