/* ==========================================================================
   BRAINSPAWN
   Aesthetic: 1939 World's Fair retro-futurism — the "World of Tomorrow"
   exhibit the show is actually named after. Optimistic chrome and bright
   enamel against deep space, NOT grimdark sci-fi. The organizing device is
   the show's own title card: starfield, gag caption, heavy chrome logo.
   ========================================================================== */

:root {
  /* Deep space — the title card ground */
  --void: #05060f;
  --void-2: #0a0e22;
  --panel: #141c3a;
  --panel-2: #1b2549;
  --line: #2b3766;

  /* Bender's chassis */
  --chrome: #aebdd0;
  --chrome-hi: #eef4fa;
  --chrome-lo: #6c7f9b;

  --ink: #f2f5fb;
  --ink-dim: #8b97b8;

  /* Enamel accents, straight off the show */
  --px-green: #7cb342; /* Planet Express ship */
  --leela: #a855c7; /* Leela's hair */
  --fry: #f57c2e; /* Fry's hair */
  --slurm: #4ade80; /* Slurm */
  --nixon: #e5484d;
  --gold: #ffd166;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Chivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* An author `display` rule beats the UA stylesheet's [hidden] { display: none },
   so progressive-disclosure elements would leak into view. Make hidden win. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  user-select: none;
  -webkit-user-select: none;
}

/* Starfield sits behind everything, painted in JS */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Film grain — keeps the flat colour fields from looking sterile */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(4%, 2%); }
}

#app {
  position: relative;
  z-index: 2;
  height: 100dvh;
  max-width: 540px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 10px) 18px
    calc(env(safe-area-inset-bottom) + 14px);
}

/* ---------- Screen switching ---------- */
.screen {
  display: none;
  height: 100%;
  flex-direction: column;
}
.screen[data-active] {
  display: flex;
  animation: screen-in 0.42s var(--ease) both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   TITLE CARD
   ========================================================================== */
#screen-title {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.titlecard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* The rotating joke caption above the logo — the show's signature device */
.gag {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slurm);
  max-width: 20rem;
  line-height: 1.6;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
  animation: gag-in 0.7s var(--ease) both 0.15s;
}
@keyframes gag-in {
  from { opacity: 0; letter-spacing: 0.32em; }
  to { opacity: 1; letter-spacing: 0.1em; }
}

.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Chrome-filled, outlined, slightly skewed — the show's logo treatment */
.logo-main {
  font-family: var(--display);
  /* 10 wide Archivo Black glyphs — 13vw overflowed a 375px viewport once the
     real webfont replaced the fallback. */
  font-size: clamp(1.9rem, 9vw, 4.1rem);
  letter-spacing: -0.01em;
  max-width: 100%;
  line-height: 0.92;
  transform: skewX(-6deg);
  background: linear-gradient(
    177deg,
    var(--chrome-hi) 0%,
    var(--chrome) 34%,
    var(--chrome-lo) 52%,
    var(--chrome-hi) 66%,
    var(--chrome) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--void);
  filter: drop-shadow(0 3px 0 var(--leela)) drop-shadow(0 8px 22px rgba(168, 85, 199, 0.5));
  animation: logo-in 0.85s var(--ease) both 0.05s;
}
@keyframes logo-in {
  from { opacity: 0; transform: skewX(-6deg) scale(0.86) translateY(14px); }
  to { opacity: 1; transform: skewX(-6deg) scale(1) translateY(0); }
}

.logo-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-left: 0.42em;
  animation: gag-in 0.7s var(--ease) both 0.4s;
}

.title-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  animation: screen-in 0.6s var(--ease) both 0.5s;
}
/* ---------- Game picker ---------- */
.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.game {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(160, 180, 220, 0.16);
  background: linear-gradient(180deg, rgba(30, 42, 84, 0.9), rgba(20, 28, 60, 0.9));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s var(--ease), border-color 0.14s var(--ease),
    background 0.14s var(--ease);
}
.game:hover,
.game:focus-visible {
  border-color: rgba(74, 222, 128, 0.5);
  transform: translateY(-1px);
}
.game:active {
  transform: translateY(1px);
}
.game-icon {
  font-size: 1.5rem;
  line-height: 1;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--slurm);
  flex: none;
}
.game-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.game-name {
  font-weight: 700;
  font-size: 1.02rem;
}
.game-blurb {
  font-size: 0.8rem;
  color: var(--ink-dim);
}
.game-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  flex: none;
  text-align: right;
}
.game[data-state="done"] .game-meta {
  color: var(--slurm);
}
.game[data-state="done"] .game-icon {
  background: rgba(74, 222, 128, 0.2);
}
.game[data-state="part"] .game-meta {
  color: var(--gold);
}

.secondary-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   BUTTONS — chunky enamel with a hard chrome edge
   ========================================================================== */
.btn {
  font-family: var(--body);
  font-weight: 900;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    filter 0.16s var(--ease);
}
.btn:active { transform: translateY(2px) scale(0.985); }

.btn-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 13rem;
  padding: 16px 42px;
  font-size: 1.16rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--void);
  background: linear-gradient(180deg, var(--slurm) 0%, var(--px-green) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.28),
    0 8px 0 #3d6b1f,
    0 16px 34px rgba(124, 179, 66, 0.34);
}
.btn-primary:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.3), 0 4px 0 #3d6b1f; }
.btn-meta {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  opacity: 0.72;
  text-transform: uppercase;
}

.btn-ghost {
  padding: 11px 22px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome);
  background: rgba(20, 28, 58, 0.72);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: var(--chrome-hi); border-color: var(--chrome-lo); }

/* Newly unlocked things announce themselves once */
.btn.just-unlocked { animation: unlock 1.1s var(--ease) both; }
@keyframes unlock {
  0% { opacity: 0; transform: scale(0.8); box-shadow: 0 0 0 0 var(--gold); }
  45% { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255, 209, 102, 0); }
  100% { opacity: 1; transform: scale(1); }
}

.link-btn {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}
.link-btn:hover { color: var(--ink); }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(20, 28, 58, 0.6);
  color: var(--chrome);
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }

/* ==========================================================================
   PLAY SCREEN
   ========================================================================== */
.playbar {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.pips {
  display: flex;
  gap: 7px;
  justify-content: center;
}
.pip {
  width: 100%;
  max-width: 34px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pip[data-state="right"] { background: var(--slurm); box-shadow: 0 0 12px rgba(74,222,128,.6); }
.pip[data-state="wrong"] { background: var(--nixon); }
.pip[data-state="current"] { background: var(--chrome); }

.streak {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fry);
}
.flame { font-size: 0.6rem; }

/* ---------- The monitor: quote in a CRT with a chrome bezel ---------- */
.monitor { margin-bottom: 26px; }

.monitor-bezel {
  border-radius: 20px;
  padding: 9px;
  background: linear-gradient(160deg, var(--chrome) 0%, var(--chrome-lo) 45%, #3f4d67 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 6px rgba(0, 0, 0, 0.5),
    var(--shadow);
}

.monitor-glass {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  padding: 26px 22px 22px;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #1d2a52 0%, rgba(29, 42, 82, 0) 62%),
    linear-gradient(180deg, var(--panel) 0%, #0d1430 100%);
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.62);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
}

.prompt-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slurm);
  opacity: 0.8;
}

.quote {
  margin: 0;
  font-size: clamp(1.14rem, 4.6vw, 1.42rem);
  font-weight: 400;
  line-height: 1.48;
  font-style: italic;
  color: var(--ink);
  text-wrap: balance;
}
.quote::before { content: "\201C"; }
.quote::after { content: "\201D"; }
/* References are statements of fact, not dialogue — quotation marks would be
   a lie about what's on screen. */
.quote[data-plain]::before,
.quote[data-plain]::after { content: none; }
.quote[data-plain] {
  font-style: normal;
  font-size: clamp(1rem, 4vw, 1.2rem);
  line-height: 1.55;
}

.help-list {
  margin: 0 0 14px;
  padding-left: 1.1em;
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}
.help-list b { color: var(--ink); }

.link-btn.inline {
  display: inline;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.tap-on {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: tap-pulse 1.5s ease-in-out infinite;
}
@keyframes tap-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

/* ---------- Screenshot question ---------- */
.shot {
  position: relative; /* anchors the loading sweep */
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0a1028;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.shot img[data-loaded] {
  opacity: 1;
}
/* Faint sweep while the frame loads, so the panel never looks broken. */
.shot:not(:has(img[data-loaded]))::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(174, 189, 208, 0.07) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: sweep 1.3s linear infinite;
}
@keyframes sweep {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}
/* The monitor sizes to the image in screenshot rounds. */
.monitor-glass:has(.shot:not([hidden])) {
  padding: 20px 18px 18px;
}

.attribution {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--fry);
  min-height: 1.1em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}
.attribution[data-shown] { opacity: 1; transform: none; }

/* ---------- Answer options ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  position: relative;
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease),
    background 0.16s var(--ease);
  animation: opt-in 0.4s var(--ease) both;
}
.option:nth-child(1) { animation-delay: 0.04s; }
.option:nth-child(2) { animation-delay: 0.1s; }
.option:nth-child(3) { animation-delay: 0.16s; }
.option:nth-child(4) { animation-delay: 0.22s; }
@keyframes opt-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.option:not(:disabled):hover {
  border-color: var(--chrome-lo);
  transform: translateX(3px);
}
.option:disabled { cursor: default; }

.option[data-result="right"] {
  border-color: var(--slurm);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.2) 0%, rgba(124, 179, 66, 0.1) 100%);
  animation: pop 0.42s var(--ease);
}
.option[data-result="wrong"] {
  border-color: var(--nixon);
  background: linear-gradient(180deg, rgba(229, 72, 77, 0.18) 0%, rgba(229, 72, 77, 0.06) 100%);
  animation: shake 0.42s var(--ease);
}
/* The right answer still reveals itself when you miss */
.option[data-result="reveal"] {
  border-color: var(--slurm);
  border-style: dashed;
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-7px); }
  46% { transform: translateX(6px); }
  70% { transform: translateX(-3px); }
}

.opt-season {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  opacity: 0;
  max-height: 0;
  transition: opacity 0.3s var(--ease), max-height 0.3s var(--ease);
}
.option[data-result] .opt-season { opacity: 1; max-height: 2rem; }

.hint-btn { margin-top: auto; align-self: center; }

/* ==========================================================================
   RESULTS
   ========================================================================== */
#screen-done { justify-content: center; align-items: center; }

.result-card {
  width: 100%;
  text-align: center;
  padding: 34px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(27, 37, 73, 0.9) 0%, rgba(13, 20, 48, 0.9) 100%);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.result-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.result-score {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--slurm);
  text-shadow: 0 0 34px rgba(74, 222, 128, 0.45);
}
.result-of { font-size: 1.5rem; color: var(--ink-dim); text-shadow: none; }

.result-line {
  margin: 12px 0 0;
  font-size: 0.98rem;
  color: var(--ink);
  font-style: italic;
  text-wrap: balance;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 26px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rs { display: flex; flex-direction: column; gap: 3px; }
.rs-n { font-family: var(--display); font-size: 1.6rem; color: var(--ink); }
.rs-l {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.result-actions { display: flex; gap: 10px; justify-content: center; }
.result-actions .btn-primary { min-width: 0; padding: 14px 30px; font-size: 0.95rem; }

.countdown {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 10, 0.82);
  backdrop-filter: blur(5px);
  animation: fade 0.24s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.scrim[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 25rem;
  max-height: 84dvh;
  overflow-y: auto;
  padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel-2) 0%, #0d1430 100%);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  animation: modal-in 0.3s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--chrome-hi);
}
.modal h3 {
  margin: 24px 0 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slurm);
}
.modal p { margin: 0 0 12px; font-size: 0.92rem; line-height: 1.62; color: var(--ink); }
.modal .muted { color: var(--ink-dim); font-size: 0.86rem; }
.modal .small { font-size: 0.78rem; }
.modal a { color: var(--slurm); }
.credit {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem !important;
  line-height: 1.6;
  color: var(--ink-dim) !important;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-dim);
  background: none;
  border: none;
  cursor: pointer;
}
.close-btn:hover { color: var(--ink); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}
.stat-grid .rs-n { font-size: 1.4rem; }

/* Per-season accuracy heat map — the visible face of the player model */
.heat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.heat-cell {
  padding: 12px 8px;
  border-radius: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  background: var(--line);
  color: var(--ink-dim);
}
.heat-cell b {
  display: block;
  margin-bottom: 3px;
  font-size: 1.02rem;
  color: var(--ink);
}
/* Filled cells sit on mid-tone greens where --ink-dim disappears. */
.heat-cell[data-filled] {
  color: rgba(5, 6, 15, 0.72);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}
.heat-cell[data-filled] b {
  color: var(--void);
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 12%;
  z-index: 40;
  transform: translate(-50%, 12px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--chrome-hi);
  color: var(--void);
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
#toast[data-show] { opacity: 1; transform: translate(-50%, 0); }

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