:root {
  --bg: #0a0c0b;
  --bg-2: #111413;
  --glass: rgba(10, 12, 11, 0.86);
  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.32);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.38);
  --accent: #ff6a13;
  --accent-ink: #1c0c02;
  --accent-soft: rgba(255, 106, 19, 0.16);
  --danger: #ff4d4d;
  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body { position: fixed; inset: 0; overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ map */
#map { position: fixed; inset: 0; background: #1a1d1b; z-index: 0; }
.leaflet-container { background: #1a1d1b; font-family: var(--body); }
.leaflet-control-attribution {
  background: rgba(10, 12, 11, 0.72) !important; color: var(--muted) !important;
  font-size: 10px !important; line-height: 1.3; padding: 1px 6px !important; border-radius: 6px 0 0 0;
}
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bottom.leaflet-right { bottom: var(--attr-offset, 0px); transition: bottom .25s var(--ease-out); }
.leaflet-control-zoom { display: none; }

/* ------------------------------------------------------------ typography */
.display { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; }
.digits { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { margin: 0; }
h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: 0.01em; }
h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: 0.03em; }
p { margin: 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 20px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: rgba(244, 241, 234, 0.04);
  font-family: var(--display); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: 0.04em;
  transition: transform .12s var(--ease-out), background-color .15s, opacity .15s;
  user-select: none; -webkit-user-select: none; width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); min-height: 48px; font-size: 18px; }
.btn.small { min-height: 44px; font-size: 17px; padding: 0 14px; width: auto; }
.btn:disabled, .btn.disabled { opacity: 0.38; pointer-events: none; }
.btn .ico { width: 22px; height: 22px; flex: none; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--glass); display: grid; place-items: center; flex: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.icon-btn.on { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 22px; height: 22px; }

/* hold-to-confirm */
.hold { position: relative; overflow: hidden; }
.hold .hold-fill {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.28); transform-origin: left center;
  transform: scaleX(0); pointer-events: none;
}
.hold .hold-ring { width: 26px; height: 26px; flex: none; transform: rotate(-90deg); }
.hold .hold-ring circle { fill: none; stroke-width: 3.5; }
.hold .hold-ring .bg { stroke: rgba(28, 12, 2, 0.25); }
.hold .hold-ring .fg { stroke: currentColor; stroke-linecap: round; }
.hold-hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------------------ inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35); font-size: 18px; outline: none;
}
.input:focus { border-color: var(--accent); }
textarea.input { padding: 14px 16px; min-height: 96px; resize: none; line-height: 1.35; }
.search-row { display: flex; gap: 8px; }
.search-row .input { flex: 1; }
.hud-top .input, .hud-top .results button { background: rgba(10,12,11,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-top .search-row .btn { background: rgba(10,12,11,.92); }
.search-row .btn { width: auto; min-width: 58px; padding: 0 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: transparent; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.03em;
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.switch { width: 58px; height: 34px; border-radius: 999px; background: rgba(244,241,234,.18); position: relative; border: none; flex: none; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--text); transition: transform .2s var(--ease-out); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(24px); background: var(--accent-ink); }

/* ------------------------------------------------------------ full screens */
.screen {
  position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto;
  padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
  display: flex; flex-direction: column;
  animation: fade-in .22s var(--ease-out);
}
.screen .grow { flex: 1; }
.screen .bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.screen-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.back { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; flex: none; }
.back svg { width: 22px; height: 22px; }

/* start */
.start {
  background:
    radial-gradient(120% 60% at 15% -10%, rgba(244,241,234,.16), transparent 60%),
    radial-gradient(120% 60% at 85% -10%, rgba(244,241,234,.12), transparent 60%),
    linear-gradient(180deg, #0d100f 0%, #0a0c0b 60%);
}
.start .beam { position: absolute; top: -10%; width: 40%; height: 70%; pointer-events: none;
  background: linear-gradient(180deg, rgba(244,241,234,.09), transparent 80%); filter: blur(18px); }
.start .beam.l { left: -6%; transform: rotate(-18deg); }
.start .beam.r { right: -6%; transform: rotate(18deg); }
.wordmark { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .82; font-size: clamp(76px, 25vw, 132px); letter-spacing: -0.01em; margin-top: 8vh; position: relative; }
.wordmark .dot { color: var(--accent); }
.tagline { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 22em; position: relative; }
.pitch-line { height: 2px; background: var(--line); margin: 28px 0 0; position: relative; }
.pitch-line::after { content: ""; position: absolute; left: 50%; top: -9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }

/* scoreboard panel */
.board {
  border: 1.5px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,.35);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.board .big { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* lobby */
.code-big { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 17vw, 80px); letter-spacing: .14em; line-height: 1; font-variant-numeric: tabular-nums; }
.qr { width: 190px; height: 190px; border-radius: 12px; background: var(--text); padding: 6px; align-self: center; }
.members { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.member { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); }
.member .name { flex: 1; font-weight: 600; }
.member .role { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--muted); }
.member .role.cap { color: var(--accent); }
.member .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.member .dot.on { background: var(--text); box-shadow: 0 0 8px rgba(244,241,234,.7); }

/* ------------------------------------------------------------ HUD */
.hud-top {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20; pointer-events: none;
  padding: calc(var(--safe-top) + 10px) 10px 0; display: flex; flex-direction: column; gap: 8px;
}
.hud-top > * { pointer-events: auto; }
.scorebar {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px 8px 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.scorebar .who { min-width: 0; }
.scorebar .who .t { font-family: var(--display); font-weight: 800; font-size: 21px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.05; }
.scorebar .who .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pips { display: flex; gap: 5px; align-items: center; }
.pip { width: 13px; height: 22px; border-radius: 3px; background: var(--accent); transition: background-color .3s, transform .3s var(--ease-out); }
.pip.used { background: rgba(244,241,234,.16); }
.pips-label { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-align: center; margin-top: 2px; text-transform: uppercase; }
.timer { font-family: var(--display); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; line-height: 1; padding: 6px 4px; }
.timer.low { color: var(--accent); animation: pulse 1s ease-in-out infinite; }
.timer.off { color: var(--faint); font-size: 22px; }
.tools { display: flex; justify-content: flex-end; gap: 8px; }
.banner {
  align-self: center; background: var(--glass); border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 10px 18px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .03em;
  text-transform: uppercase; text-align: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.banner.hot { border-color: var(--accent); color: var(--accent); }

.hud-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 0 10px calc(var(--safe-bottom) + 10px); display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.hud-bottom > * { pointer-events: auto; }
.panel {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 12px;
}
.history-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 4px 2px; min-height: 40px; }
.history-toggle .chev { transition: transform .2s var(--ease-out); width: 20px; height: 20px; }
.history-toggle.open .chev { transform: rotate(180deg); }
.history { list-style: none; margin: 6px 0 0; padding: 0; max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.history li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-top: 1px solid var(--line); }
.history li:first-child { border-top: none; }
.history .n { width: 28px; height: 28px; border-radius: 7px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 17px; flex: none; }
.history .n.rej { background: transparent; color: var(--faint); border: 1.5px dashed var(--faint); }
.history .q { font-size: 14px; color: var(--muted); }
.history .a { font-weight: 700; font-size: 17px; }
.history .a.pend { color: var(--accent); font-weight: 600; }
.history-empty { font-size: 15px; color: var(--muted); padding: 6px 2px; }

/* ------------------------------------------------------------ sheets */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); animation: fade-in .2s var(--ease-out); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow-y: auto;
  background: var(--bg-2); border-top: 1px solid var(--line-strong); border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(var(--safe-bottom) + 16px);
  animation: sheet-in .28s var(--ease-out);
}
.sheet.compact { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sheet .grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-close { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; flex: none; }
.sheet-close svg { width: 20px; height: 20px; }

.qtypes { display: grid; gap: 8px; }
.qtype {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; min-height: 66px;
  border-radius: var(--radius); border: 1.5px solid var(--line); background: rgba(244,241,234,.03);
}
.qtype:active { transform: scale(.98); }
.qtype .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.qtype .ic svg { width: 24px; height: 24px; }
.qtype .tt { font-family: var(--display); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.qtype .dd { font-size: 14px; color: var(--muted); }
.qtype.off { opacity: .35; pointer-events: none; }
.qtype .tag { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.options .btn { font-size: 19px; }
.options .btn.wide { grid-column: span 2; }

.results { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.results button { width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(244,241,234,.03); min-height: 56px; }
.results .rn { font-weight: 700; font-size: 17px; }
.results .rd { font-size: 13px; color: var(--muted); }
.results .rk { float: right; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-left: 8px; }

.pointslots { display: flex; gap: 8px; margin: 4px 0 10px; }
.slot { flex: 1; min-height: 50px; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: flex; align-items: center; gap: 10px; padding: 0 12px; background: transparent; text-align: left; }
.slot.set { border-style: solid; border-color: var(--text); }
.slot.active { border-color: var(--accent); }
.slot .k { font-family: var(--display); font-weight: 800; font-size: 22px; }
.slot .v { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hint { font-size: 15px; color: var(--muted); margin: 2px 0 10px; }

/* ------------------------------------------------------------ modal */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; padding: 12px; padding-bottom: calc(var(--safe-bottom) + 12px); animation: fade-in .2s var(--ease-out); }
.modal { width: 100%; background: var(--bg-2); border: 1.5px solid var(--accent); border-radius: 20px; padding: 18px 16px; animation: sheet-in .3s var(--ease-out); }
.modal .qtext { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: none; margin: 6px 0 16px; }

/* ------------------------------------------------------------ toast */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-top) + 128px); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--text); color: var(--bg); border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 17px; max-width: 520px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: toast-in .25s var(--ease-out); }
.toast.err { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }

/* ------------------------------------------------------------ pins */
.pin { position: relative; }
.pin-q {
  width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: var(--bg);
  border: 2.5px solid #0a0c0b; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.pin-q.draft { background: var(--bg); color: var(--accent); border-color: var(--accent); border-style: dashed; }
.pin-q.snap { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid #0a0c0b; }
.pin-label {
  position: absolute; left: 34px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: rgba(10,12,11,.9); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 3px 8px; font-weight: 700; font-size: 14px; line-height: 1.25;
}
.pin-guess { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); border: 3px solid #0a0c0b; box-shadow: 0 0 0 3px var(--accent), 0 4px 14px rgba(0,0,0,.5); display: grid; place-items: center; }
.pin-guess::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0a0c0b; }
.pin-guess.draft { animation: bob 1.2s ease-in-out infinite; }
.pin-target { width: 40px; height: 46px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
.pin-target svg { width: 100%; height: 100%; }
.pin-target.drop { animation: drop .55s var(--ease-out) both; }
.pin-snapdot { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid #0a0c0b; box-shadow: 0 0 0 2px var(--text); }

/* ------------------------------------------------------------ reveal */
.reveal-panel {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--safe-bottom) + 10px); z-index: 30;
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: sheet-in .35s var(--ease-out);
}
.reveal-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reveal-nums .board { background: rgba(0,0,0,.4); }
.reveal-nums .big { font-size: clamp(34px, 11vw, 52px); white-space: nowrap; }
.points.goal { color: var(--accent); animation: goal .7s var(--ease-out) both; }
.goal-flash { position: fixed; inset: 0; z-index: 29; pointer-events: none; background: radial-gradient(circle at 50% 60%, rgba(255,106,19,.45), transparent 60%); animation: flash 1.2s ease-out both; }
.goal-word { position: fixed; left: 0; right: 0; top: 30%; z-index: 31; text-align: center; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(64px, 22vw, 140px); text-transform: uppercase; line-height: .9;
  color: var(--text); text-shadow: 0 0 40px rgba(255,106,19,.8); animation: goalword 1.6s var(--ease-out) both; }
.confetti { position: fixed; z-index: 31; width: 10px; height: 16px; pointer-events: none; border-radius: 2px; animation: confetti 1.6s cubic-bezier(.2,.7,.4,1) forwards; }

/* ------------------------------------------------------------ misc */
.attr { align-self: flex-end; font-size: 10px; line-height: 1.3; color: var(--muted); background: rgba(10,12,11,.72); padding: 2px 8px; border-radius: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn { position: fixed; top: calc(var(--safe-top) + 6px); left: 50%; transform: translateX(-50%); z-index: 80; background: var(--danger); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.rules ol { padding-left: 22px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.rules li { color: var(--text); }
.rules li b { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.handover { justify-content: center; align-items: center; text-align: center; gap: 22px; background: var(--accent); color: var(--accent-ink); }
.handover .display { font-size: clamp(48px, 15vw, 88px); line-height: .9; }
.handover p { font-size: 19px; max-width: 20em; }
.handover .tap { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .08em; border: 2px solid var(--accent-ink); border-radius: 999px; padding: 14px 26px; animation: pulse 1.4s ease-in-out infinite; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.setup-card { display: flex; align-items: center; gap: 12px; }
.setup-card .grow { min-width: 0; }
.setup-card .t { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv { display: flex; gap: 14px; font-size: 14px; color: var(--muted); margin-top: 3px; }
.kv b { color: var(--text); font-family: var(--display); font-size: 17px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 16px; min-height: 26px; }
.status-line .ok { color: var(--accent); font-weight: 700; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } 70% { transform: translateY(4px); opacity: 1; } to { transform: none; } }
@keyframes goal { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } to { transform: scale(1); } }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } to { opacity: 0; } }
@keyframes goalword { 0% { transform: scale(.7); opacity: 0; } 18% { transform: scale(1.05); opacity: 1; } 70% { opacity: 1; } to { transform: scale(1.1) translateY(-30px); opacity: 0; } }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 640px) {
  .screen > * { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
  .hud-bottom, .sheet { max-width: 560px; margin: 0 auto; }
  .reveal-panel { max-width: 540px; margin: 0 auto; }
}
