/* Default theme — arcade neon. Deep purple background, electric pink as
   the interactive accent, cyan for the timer (separate role), lime for
   correct, red for wrong. Each color does ONE job. */

:root[data-theme="default"],
body[data-theme="default"] {
  --bg:        #0a0414;
  --bg-elev:   #150929;
  --bg-tile:   #1a0f33;
  --bg-tile-h: #2a1a4d;
  --fg:        #fff8e7;
  --muted:     #8b7ba8;
  --muted-hi:  #c4b8d8;
  --rule:      #2a1f4a;
  --rule-hi:   #4a3870;
  --accent:    #ff2e88;     /* electric pink — interactive */
  --accent-hi: #ff5fa0;
  --timer:     #00e5ff;     /* cyan — timer only */
  --right:     #b8ff3a;     /* lime — correct */
  --wrong:     #ff4040;     /* red — wrong */

  --font-sans:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
  --font-hud:     'VT323', ui-monospace, monospace;
  --font-display: 'Press Start 2P', 'VT323', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; border-radius: 0; background: none; color: inherit; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

body[data-theme="default"] {
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.55 var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle CRT vignette only. */
body[data-theme="default"]::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

#play-root {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 20px;
  min-height: 100dvh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Game screen pinned to viewport — never scrolls. */
body.in-game,
body.in-game #play-root {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* ─── Marquee (every screen) ─────────────────────────────────── */
.play-marquee {
  font: 14px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--rule);
  flex: 0 0 auto;
}
.m-brand {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  opacity: 0.95;
}
.m-brand:hover { color: var(--accent); }
.m-mode {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}
.m-context {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-left: auto;
}
.m-info {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: var(--muted);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-position: center;
          mask-repeat: no-repeat;
          mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
  transition: background-color 120ms;
}
.m-info:hover { background-color: var(--accent); }

/* ─── Game screen ────────────────────────────────────────────── */
.play-game {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 18px;
}

/* Segmented LED timer bar. */
.timer-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 120ms ease-out;
}
.timer-bar.tick { transform: scaleY(1.2); }
.timer-bar i {
  background: var(--rule);
  transition: background 220ms ease-out, box-shadow 220ms ease-out, opacity 220ms;
}
.timer-bar i.lit {
  background: var(--timer);
  box-shadow: 0 0 8px var(--timer), inset 0 0 4px rgba(255, 255, 255, 0.3);
}
.timer-bar i.urgent {
  background: var(--wrong);
  box-shadow: 0 0 12px var(--wrong);
  animation: seg-urgent 0.55s ease-in-out infinite alternate;
}
.timer-bar.frozen i.lit {
  background: var(--muted-hi);
  box-shadow: 0 0 6px var(--muted-hi);
  animation: none;
}
@keyframes seg-urgent {
  from { opacity: 1; }
  to   { opacity: 0.45; }
}

/* Meta row — count + lifelines. */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.qcount {
  font: 28px/1 var(--font-hud);
  color: var(--fg);
  letter-spacing: 0.02em;
}
.qcount .total { font-size: 16px; color: var(--muted); }

.lifelines {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lifeline {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  font: 14px/1 var(--font-hud);
  color: var(--muted-hi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 120ms, color 120ms, background 120ms;
}
.lifeline:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lifeline:disabled {
  color: var(--rule-hi);
  border-color: var(--rule);
  text-decoration: line-through;
  cursor: default;
}

/* Next button — replaces the lifelines after the reveal. Fades in
   so the user sees the answer first. */
.next-btn {
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg);
  font: 14px/1 var(--font-hud);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease-out, transform 240ms ease-out, background 120ms;
  box-shadow: 0 0 24px 2px rgba(255, 46, 136, 0.4);
}
.next-btn.show { opacity: 1; transform: translateY(0); }
.next-btn:hover { background: var(--accent-hi); }
.next-btn:active { transform: scale(0.98); }
.next-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* Question — flex-grows, centered. */
.qbody {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}
.qtext {
  /* JS sets the actual font-size via fitQuestion() — this is just the
     pre-fit fallback so we don't flash a huge string. */
  font: 500 28px/1.2 var(--font-sans);
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
  width: 100%;
}
.qword {
  display: inline-block;
  animation: word-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ─── Choice tiles — uniform dark surface, accent on letter+bar. ── */
.choices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 620px;
  align-self: center;
}
.choices li { display: block; }
.choice {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  width: 100%;
  min-height: 50px;
  background: var(--bg-tile);
  color: var(--fg);
  text-align: left;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: background 140ms, transform 100ms, box-shadow 140ms;
  animation: tile-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  /* Subtle inner top-highlight for depth — no border, no left bar. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.choice:nth-child(1) { animation-delay: 550ms; }
.choice:nth-child(2) { animation-delay: 625ms; }
.choice:nth-child(3) { animation-delay: 700ms; }
.choice:nth-child(4) { animation-delay: 775ms; }

@keyframes tile-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.choice:not(:disabled):hover {
  background: var(--bg-tile-h);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.choice:not(:disabled):hover .choice-letter { color: var(--accent); }
.choice:not(:disabled):active { transform: scale(0.99); }
.choice:disabled { cursor: default; }

.choice-letter {
  font: 14px/1 var(--font-display);
  color: var(--muted-hi);
  text-align: center;
  transition: color 140ms;
}
.choice-text {
  font: 500 15px/1.35 var(--font-mono);
  letter-spacing: -0.01em;
  padding-right: 28px;
}

/* Reveal phase. Choices ignore pointer events so taps fall through
   to the .play-game listener and advance to the next question. */
.choice.removed { opacity: 0.2; pointer-events: none; }
.choice.reveal-dim,
.choice.reveal-correct,
.choice.reveal-wrong { pointer-events: none; }
.choice.reveal-dim { opacity: 0.3; }

/* Lucide-style check + x icons, applied via CSS mask so the color
   inherits from the theme's --right / --wrong tokens. */
.icon-check, .icon-x,
.choice.reveal-correct::after,
.choice.reveal-wrong::after,
.recap-mark {
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-position: center;
          mask-repeat: no-repeat;
          mask-size: contain;
}
.icon-check, .choice.reveal-correct::after, .recap-row.right .recap-mark {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.icon-x, .choice.reveal-wrong::after, .recap-row.wrong .recap-mark {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6 6 18M6 6l12 12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6 6 18M6 6l12 12'/></svg>");
}

.choice.reveal-correct {
  background: rgba(184, 255, 58, 0.12);
  color: var(--right);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 58, 0.4);
}
.choice.reveal-correct .choice-letter { color: var(--right); }
.choice.reveal-correct::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--right);
}

.choice.reveal-wrong {
  background: rgba(255, 64, 64, 0.12);
  color: var(--wrong);
  box-shadow: inset 0 0 0 1px rgba(255, 64, 64, 0.4);
  animation: wrong-shake 380ms ease-out;
}
.choice.reveal-wrong .choice-letter { color: var(--wrong); }
.choice.reveal-wrong::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--wrong);
}
@keyframes wrong-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ─── End screen ─────────────────────────────────────────────── */
.play-end {
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: word-in 320ms ease-out backwards;
}
.end-headline {
  font: 14px/1 var(--font-display);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0;
}
.end-score {
  font: 110px/0.9 var(--font-hud);
  letter-spacing: 0.01em;
  color: var(--fg);
  margin: 0;
}
.end-score-sub {
  font: 16px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: -4px;
}
.end-medal {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  font: 14px/1 var(--font-hud);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: fit-content;
}
.end-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.end-dot {
  width: 10px;
  height: 10px;
  background: var(--rule);
  animation: dot-in 200ms ease-out backwards;
}
.end-dot.right { background: var(--right); }
.end-dot.wrong { background: var(--wrong); }
@keyframes dot-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

.end-recap { display: flex; flex-direction: column; }
.recap-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  font: 13px/1.5 var(--font-sans);
}
.recap-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.recap-row.right .recap-mark { background-color: var(--right); }
.recap-row.wrong .recap-mark { background-color: var(--wrong); }
.recap-q { color: var(--fg); }
.recap-a { color: var(--muted); font-size: 12px; margin-top: 4px; display: block; }
.recap-a .a-correct { color: var(--right); font-weight: 600; }
.recap-a .a-wrong   { color: var(--wrong); text-decoration: line-through; }

.end-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.end-actions a {
  padding: 12px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 14px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 120ms, color 120ms;
}
.end-actions a:hover { background: var(--accent); color: var(--bg); }
.end-actions a.secondary { border-color: var(--rule-hi); color: var(--muted-hi); }
.end-actions a.secondary:hover { border-color: var(--fg); background: transparent; color: var(--fg); }

.play-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  font: 16px var(--font-hud);
}

/* ─── Intro splash — brick-wall background ──────────────────────
   The wall fills the entire intro. Hero + sub + button overlay on
   top. Designed to extend across all game screens later. */
.play-intro {
  flex: 1 1 auto;
  position: relative;
  margin: 0 -20px;                 /* counter #play-root padding — reach viewport edges */
  width: calc(100% + 40px);
  overflow: hidden;
  animation: word-in 360ms ease-out backwards;
  min-height: 0;
}

.intro-words {
  position: absolute;
  /* Negative horizontal inset so bricks bleed past the viewport
     edges. Vertically anchored at the top so rows fill downward
     deterministically — the count is chosen to cover the visible
     band, no centering gap above. */
  top: -8px;
  bottom: -8px;
  left: -10vw;
  right: -10vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  gap: 4px 5px;
  user-select: none;
  pointer-events: none;
}

.brick {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: 28px;
  padding: 5px 10px;
  white-space: nowrap;
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}
/* Inner text span. No standalone animation — the wall's life comes
   entirely from ripples (epicenter swap pops + outward shoves on
   neighbors). One coherent system, no competing per-brick pulse. */
.bt {
  display: inline-block;
}
/* filter:opacity composes with the .brick's `opacity` property used
   by shade tiers, so faded shades stay relatively faded. */
@keyframes brick-breathe {
  0%   { filter: opacity(1); }
  100% { filter: opacity(0.7); }
}

/* Size tiers — kept tight; bricks are mostly uniform so the wall reads
   like masonry. Variation comes from shade + shadow. */
.brick.s-0 { font-size: 28px; }
.brick.s-1 { font-size: 34px; }
.brick.s-2 { font-size: 40px; }
.brick.s-3 { font-size: 46px; }

/* Shade + shadow tiers — varied depth, default theme pink range.
   Lower tiers carry lighter shadows so they recede more cleanly. */
.brick.sh-0 { color: var(--accent);    text-shadow: 0 0 12px rgba(255, 46, 136, 0.6); }
.brick.sh-1 { color: var(--accent-hi); text-shadow: 0 1px 0 rgba(0,0,0,0.28); opacity: 0.92; }
.brick.sh-2 { color: var(--muted-hi);  text-shadow: 0 0 6px rgba(196, 184, 216, 0.21); opacity: 0.55; }
.brick.sh-3 { color: var(--accent);    text-shadow: none; opacity: 0.35; }

/* Foreground band — wall fills the whole screen as a backdrop, then
   the bottom of the screen has a gradient that fades the wall to bg,
   creating a clean panel where hero + sub + button sit. Movie-poster
   composition. */
.play-intro::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    var(--bg) 30%,
    rgba(10, 4, 20, 0.6) 60%,
    transparent 100%
  );
}

.intro-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 20px 36px;
}

.intro-hero { animation: content-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms backwards; }
.intro-sub  { animation: content-in 460ms ease-out 240ms backwards; }
.intro-play { animation: content-in 420ms ease-out 380ms backwards; }

@keyframes content-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Exit — staggered foreground fade. Button leaves first, then sub,
   then hero. The wall starts its bottom-up wave at the same instant
   the button starts, so foreground and bricks fade together as one
   motion. */
.play-intro.leaving .intro-play {
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  transition-delay: 0ms;
}
.play-intro.leaving .intro-sub {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease-out 100ms, transform 220ms ease-out 100ms;
}
.play-intro.leaving .intro-hero {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 280ms ease-out 220ms, transform 280ms ease-out 220ms;
}
/* Wall exit is owned by bricks.js — each brick's transition is set
   inline at its scheduled fire time. */
.play-intro.leaving::after {
  opacity: 0;
  transition: opacity 500ms ease-out;
}

/* Post-answer exit — quick unified fade so the click feels instant.
   Stagger removed; the new question's entrance carries the motion. */
.play-game.leaving .qtext,
.play-game.leaving .meta-row,
.play-game.leaving .timer-bar,
.play-game.leaving .choices {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 130ms ease-out, transform 130ms ease-out;
}

.intro-hero {
  font: 400 clamp(40px, 8vw, 72px) / 1.05 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 0;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.7),
    0 0 12px rgba(0, 0, 0, 0.8),
    0 0 28px rgba(0, 0, 0, 0.6);
}
.intro-sub {
  font: 14px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-hi);
  text-align: center;
  margin-top: 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.7);
}
.intro-play {
  margin-top: 14px;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--bg);
  font: 18px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 120ms, transform 100ms, box-shadow 200ms;
  box-shadow: 0 0 36px 4px rgba(255, 46, 136, 0.45);
}
.intro-play:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 48px 6px rgba(255, 95, 160, 0.6);
}
.intro-play:active { transform: scale(0.98); }

/* ─── Picker ─────────────────────────────────────────────────── */
.picker {
  padding: 32px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.picker-title {
  font: 22px/1 var(--font-display);
  color: var(--fg);
  letter-spacing: 0.04em;
  margin: 0;
}
.picker-sub {
  font: 16px/1.4 var(--font-hud);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}
.picker-section { display: flex; flex-direction: column; gap: 8px; }
.picker-label {
  font: 16px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.picker-hint {
  font: 14px/1.4 var(--font-hud);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 4px 0 0;
}
.toggle {
  display: flex;
  border: 1px solid var(--rule);
}
.toggle-opt {
  flex: 1;
  padding: 12px 8px;
  font: 16px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  transition: background 120ms, color 120ms;
}
.toggle-opt + .toggle-opt { border-left: 1px solid var(--rule); }
.toggle-opt.active { background: var(--accent); color: var(--bg); }
.toggle-opt:not(.active):hover { background: var(--bg-tile); }

.picker select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  color: var(--fg);
  font: 14px/1.4 var(--font-sans);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.picker select:focus { outline: 1px solid var(--accent); }

.picker-start {
  margin-top: 12px;
  padding: 18px;
  background: var(--accent);
  color: var(--bg);
  font: 18px/1 var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: background 120ms;
}
.picker-start:hover { background: var(--accent-hi); }
