/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:       #0d0420;
  --bg-2:     #160834;
  --phosphor: #2de2e6;
  --magenta:  #ff3864;
  --yellow:   #f9c80e;
  --text:     #f1ecff;
  --dim:      rgba(241, 236, 255, 0.5);
  --line:     rgba(45, 226, 230, 0.22);
  --glow:     0 0 8px currentColor, 0 0 20px currentColor;
  --glow-soft:0 0 5px currentColor;
  --scan-color: rgba(0,0,0,0.25);

  /* Design canvas */
  --dw: 1920px;
  --dh: 1080px;

  /* Type — sized for 1920×1080 canvas */
  --t-title:    72px;
  --t-h2:       56px;
  --t-sub:      40px;
  --t-body:     32px;
  --t-mono:     30px;
  --t-small:    26px;
  --t-hud:      26px;
  --t-tiny:     24px;

  /* Spacing */
  --px:       110px;
  --pt:        96px;
  --pb:        80px;
  --gap-title: 48px;
  --gap-item:  28px;
}

/* ─── Palettes ─────────────────────────────────────────────────────────── */
[data-palette="phosphor"] {
  --bg: #05070d; --bg-2: #0a0d18;
  --phosphor: #39ff14; --magenta: #ff2bd6;
  --yellow: #fcee0a; --text: #e6e8ee;
}
[data-palette="amber"] {
  --bg: #0e0700; --bg-2: #1a0e00;
  --phosphor: #ffb000; --magenta: #ff6b00;
  --yellow: #ffd166; --text: #ffe9b8;
}
[data-palette="galaga"] {
  --bg: #0d0420; --bg-2: #160834;
  --phosphor: #2de2e6; --magenta: #ff3864;
  --yellow: #f9c80e; --text: #f1ecff;
}

/* ─── Reset & base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
}
body {
  font-family: 'VT323', 'JetBrains Mono', monospace;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ─── Canvas — 1920×1080 scaled to viewport ───────────────────────────── */
#canvas {
  position: fixed;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  top: 0; left: 0;
  background: var(--bg);
}

/* ─── Slides ──────────────────────────────────────────────────────────── */
.slide {
  position: absolute;
  inset: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: var(--t-body);
  line-height: 1.25;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  animation: crt-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* CRT scanlines */
.slide::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    var(--scan-color) 2px, var(--scan-color) 4px
  );
  mix-blend-mode: multiply;
  z-index: 50;
}
[data-scanlines="0"] .slide::before { display: none; }

/* CRT vignette */
.slide::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,0.6) 100%);
  z-index: 51;
}

/* ─── Glow ────────────────────────────────────────────────────────────── */
.glow      { text-shadow: var(--glow); }
.glow-soft { text-shadow: var(--glow-soft); }
[data-glow="0"] .glow,
[data-glow="0"] .glow-soft { text-shadow: none; }

/* ─── Animations ──────────────────────────────────────────────────────── */
@keyframes crt-in {
  0%   { filter: brightness(5) saturate(2); transform: scaleY(0.04) scaleX(1.1); }
  18%  { filter: brightness(2);             transform: scaleY(1.03) scaleX(0.98); }
  55%  { filter: brightness(1.15);          transform: scaleY(0.995) scaleX(1.005); }
  100% { filter: brightness(1);             transform: scale(1); }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.blink { animation: blink 1.1s steps(1, end) infinite; }

@keyframes blink-slow {
  0%, 70% { opacity: 1; }
  71%, 100% { opacity: 0.2; }
}
.blink-slow { animation: blink-slow 2s steps(1, end) infinite; }

@keyframes march {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(40px); }
  100% { transform: translateX(0); }
}
.march > * { animation: march 1.4s steps(2, end) infinite; }
[data-march="0"] .march > * { animation-play-state: paused; }

@keyframes float-up {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-60px); opacity: 0; }
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 2px var(--phosphor); }
  50%       { box-shadow: 0 0 12px 2px var(--phosphor), 0 0 24px var(--phosphor); }
}

@keyframes cursor-blink {
  0%, 49% { border-right-color: var(--phosphor); }
  50%, 100% { border-right-color: transparent; }
}

/* ─── Frame layout ────────────────────────────────────────────────────── */
.frame {
  position: absolute; inset: 0;
  padding: var(--pt) var(--px) var(--pb);
  display: flex; flex-direction: column;
  box-sizing: border-box;
}

/* ─── HUD bars ────────────────────────────────────────────────────────── */
.hud {
  position: absolute;
  top: 36px; left: var(--px); right: var(--px);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: var(--t-hud);
  letter-spacing: 0.04em;
  color: var(--phosphor);
  z-index: 10;
}
.hud .magenta { color: var(--magenta); }
.hud .yellow  { color: var(--yellow); }
.hud .dim     { color: var(--dim); }

.hud-bottom {
  position: absolute;
  bottom: 32px; left: var(--px); right: var(--px);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Press Start 2P', monospace;
  font-size: var(--t-tiny);
  letter-spacing: 0.05em;
  color: var(--dim);
  z-index: 10;
}
.hud-bottom .credit { color: var(--phosphor); }

/* ─── Type utilities ──────────────────────────────────────────────────── */
.pixel    { font-family: 'Press Start 2P', monospace; letter-spacing: 0.02em; }
.crt      { font-family: 'VT323', monospace; }
.mono     { font-family: 'JetBrains Mono', monospace; }

.title-xl { font-family: 'Press Start 2P', monospace; font-size: var(--t-title); line-height: 1.15; letter-spacing: 0.02em; color: var(--phosphor); }
.title-md { font-family: 'Press Start 2P', monospace; font-size: var(--t-h2); line-height: 1.15; letter-spacing: 0.02em; color: var(--phosphor); }
.title-sm { font-family: 'Press Start 2P', monospace; font-size: var(--t-sub); letter-spacing: 0.04em; color: var(--phosphor); }
.eyebrow  { font-family: 'Press Start 2P', monospace; font-size: var(--t-hud); letter-spacing: 0.18em; color: var(--magenta); }
.body     { font-family: 'VT323', monospace; font-size: var(--t-body); color: var(--text); line-height: 1.3; }
.body-lg  { font-family: 'VT323', monospace; font-size: 38px; color: var(--text); line-height: 1.3; }
.body-sm  { font-family: 'VT323', monospace; font-size: var(--t-small); color: var(--dim); line-height: 1.3; }
.label    { font-family: 'Press Start 2P', monospace; font-size: var(--t-tiny); letter-spacing: 0.12em; color: var(--phosphor); text-transform: uppercase; }

.magenta  { color: var(--magenta); }
.yellow   { color: var(--yellow); }
.phosphor { color: var(--phosphor); }
.dim      { color: var(--dim); }

/* ─── Sprites ─────────────────────────────────────────────────────────── */
.sprite { display: inline-block; image-rendering: pixelated; }
.sprite svg { display: block; width: 100%; height: 100%; }

/* ─── Slide title bar (shared) ────────────────────────────────────────── */
.slide-title-bar {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: var(--gap-title);
}
.slide-title-bar .num { font-family: 'Press Start 2P', monospace; font-size: var(--t-hud); color: var(--magenta); letter-spacing: 0.18em; }
.slide-title-bar h1 { font-family: 'Press Start 2P', monospace; font-size: var(--t-h2); color: var(--phosphor); letter-spacing: 0.04em; margin: 0; line-height: 1; }
.slide-title-bar .underline { flex: 1; height: 4px; background: var(--phosphor); align-self: center; }

/* ─── S1 — INSERT COIN ────────────────────────────────────────────────── */
.s-title {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: var(--gap-item);
}
.s-title .name { font-size: 128px; line-height: 1; }
.s-title .role { font-size: var(--t-hud); letter-spacing: 0.4em; color: var(--magenta); }
.s-title .tag  { font-size: 38px; max-width: 1200px; color: var(--text); }
.s-title .invader-row { display: flex; gap: 60px; margin-top: 12px; }
.s-title .invader-row .sprite { width: 80px; height: 64px; color: var(--phosphor); }
.s-title .invader-row .sprite.m { color: var(--magenta); }
.s-title .invader-row .sprite.y { color: var(--yellow); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 32px; color: var(--yellow);
  background: transparent; border: 3px solid var(--yellow);
  padding: 20px 48px; cursor: pointer;
  letter-spacing: 0.2em; text-decoration: none;
  transition: background 0.1s, color 0.1s, box-shadow 0.15s;
  animation: pulse-border 2s ease-in-out infinite;
  border-color: var(--yellow);
}
.btn-cta:hover, .btn-cta:focus {
  background: var(--yellow); color: var(--bg);
  box-shadow: 0 0 32px var(--yellow);
  animation: none; outline: none;
}
.btn-cta.sm {
  font-size: 24px; padding: 14px 32px;
}

/* ─── S2 — PILOT BRIEFING ─────────────────────────────────────────────── */
.s-pilot { display: grid; grid-template-columns: 460px 1fr; gap: 80px; align-items: start; }
.s-pilot .avatar-frame {
  width: 460px; height: 460px;
  border: 4px solid var(--phosphor);
  box-shadow: 0 0 0 12px var(--bg), 0 0 28px rgba(45, 226, 230, 0.4);
  position: relative; background: var(--bg-2);
}
.s-pilot .avatar-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  image-rendering: pixelated;
  filter: contrast(1.05) saturate(0.9);
  mix-blend-mode: screen; background: #000;
}
.s-pilot .avatar-frame::before {
  content: "PILOT 1UP"; position: absolute; top: -32px; left: 0;
  font-family: 'Press Start 2P', monospace; font-size: 16px; color: var(--phosphor); letter-spacing: 0.18em;
}
.s-pilot .avatar-frame::after {
  content: "P0INTMAN"; position: absolute; bottom: -32px; right: 0;
  font-family: 'Press Start 2P', monospace; font-size: 16px; color: var(--magenta); letter-spacing: 0.18em;
}
.s-pilot .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.s-pilot .stat { border: 2px solid var(--line); padding: 18px 20px; }
.s-pilot .stat .k { font-family: 'Press Start 2P', monospace; font-size: 24px; letter-spacing: 0.15em; color: var(--phosphor); }
.s-pilot .stat .v { font-family: 'Press Start 2P', monospace; font-size: 28px; color: var(--magenta); margin-top: 10px; }

/* ─── S3 — MISSION LOG ────────────────────────────────────────────────── */
.s-mission .stages { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 24px; }
.stage-card {
  border: 2px solid var(--phosphor);
  background: rgba(45, 226, 230, 0.03);
  padding: 36px 40px; position: relative;
}
.stage-card .stage-tag {
  position: absolute; top: -18px; left: 24px;
  background: var(--bg); padding: 4px 12px;
  font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--magenta); letter-spacing: 0.15em;
}
.stage-card h3 { font-family: 'Press Start 2P', monospace; font-size: 26px; color: var(--phosphor); margin: 12px 0 24px; letter-spacing: 0.05em; }
.stage-card .meta { font-family: 'VT323', monospace; font-size: 26px; color: var(--yellow); margin-bottom: 18px; letter-spacing: 0.05em; }
.stage-card .desc { font-family: 'VT323', monospace; font-size: 30px; color: var(--text); line-height: 1.3; }
.stage-card .role-line { display: flex; justify-content: space-between; align-items: baseline; }
.stage-card .dates { font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--dim); letter-spacing: 0.1em; }

/* ─── S4 — PRIMARY OBJECTIVE ──────────────────────────────────────────── */
.s-objective { display: grid; grid-template-columns: 1fr 720px; gap: 80px; align-items: start; }
.obj-left .name { font-family: 'Press Start 2P', monospace; font-size: 64px; color: var(--phosphor); line-height: 1.1; letter-spacing: 0.02em; }
.obj-left .name .sub { display: block; color: var(--magenta); margin-top: 16px; font-size: 32px; letter-spacing: 0.06em; }
.obj-left .pitch { margin-top: 36px; max-width: 720px; font-size: 36px; line-height: 1.32; }
.obj-left .pipeline {
  margin-top: 44px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: 'Press Start 2P', monospace; font-size: 24px;
  color: var(--phosphor); letter-spacing: 0.08em;
}
.obj-left .pipeline .step { border: 2px solid var(--phosphor); padding: 10px 16px; background: rgba(45,226,230,0.06); }
.obj-left .pipeline .arrow { color: var(--magenta); font-size: 26px; }

.terminal {
  background: #02030a;
  border: 2px solid var(--phosphor);
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px; line-height: 1.5;
  color: var(--phosphor);
  box-shadow: 0 0 24px rgba(45, 226, 230, 0.15) inset, 0 0 24px rgba(45, 226, 230, 0.1);
  height: 100%; box-sizing: border-box; overflow: hidden;
}
.terminal .tline { display: block; }
.terminal .tprompt { color: var(--magenta); }
.terminal .tinfo { color: var(--text); }
.terminal .twarn { color: var(--yellow); }
.terminal .tdim { color: rgba(45, 226, 230, 0.5); }

/* ─── S5 / S6 — SIDE QUEST ────────────────────────────────────────────── */
.s-quest { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.s-quest .lead .codename { font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--magenta); letter-spacing: 0.18em; }
.s-quest .lead h2 { font-family: 'Press Start 2P', monospace; font-size: 88px; color: var(--phosphor); margin: 16px 0 24px; line-height: 1; letter-spacing: 0.02em; }
.s-quest .lead .tagline { font-family: 'VT323', monospace; font-size: 38px; color: var(--text); line-height: 1.25; max-width: 720px; }
.s-quest .lead .quip { font-family: 'VT323', monospace; font-size: 30px; color: var(--yellow); margin-top: 28px; max-width: 720px; line-height: 1.3; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-cell { border: 2px solid var(--line); padding: 18px 22px; }
.stat-cell .k { font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--magenta); letter-spacing: 0.15em; }
.stat-cell .v { font-family: 'VT323', monospace; font-size: 32px; color: var(--text); margin-top: 8px; line-height: 1.2; }
.stat-cell.span2 { grid-column: span 2; }
.stat-cell .v a { color: var(--yellow); text-decoration: none; }
.stat-cell .v a:hover { text-decoration: underline; text-shadow: var(--glow-soft); }

.arcade-cab {
  border: 4px solid var(--phosphor);
  padding: 24px; background: rgba(45, 226, 230, 0.04); position: relative;
}
.arcade-cab .cab-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--phosphor);
  letter-spacing: 0.1em; margin-bottom: 18px;
}

/* ─── S7 — WEAPONS LOADOUT ────────────────────────────────────────────── */
.s-loadout .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 30px;
}
.loadout-cell {
  border: 2px solid var(--phosphor);
  background: rgba(45, 226, 230, 0.04);
  padding: 28px 24px 24px; position: relative;
  min-height: 180px; display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.15s, box-shadow 0.15s;
}
.loadout-cell:hover {
  background: rgba(45, 226, 230, 0.1);
  box-shadow: 0 0 16px rgba(45, 226, 230, 0.2);
}
.loadout-cell .slot {
  position: absolute; top: -16px; left: 16px;
  background: var(--bg); padding: 2px 10px;
  font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--magenta); letter-spacing: 0.12em;
}
.loadout-cell .name { font-family: 'Press Start 2P', monospace; font-size: 26px; color: var(--phosphor); line-height: 1.2; letter-spacing: 0.04em; }
.loadout-cell .ammo { font-family: 'VT323', monospace; font-size: 26px; color: var(--yellow); margin-top: 14px; letter-spacing: 0.06em; }

/* ─── S8 — INTEL FILES ────────────────────────────────────────────────── */
.intel-card {
  border: 3px solid var(--phosphor);
  padding: 48px 64px; margin-top: 36px; position: relative;
  background: rgba(255, 56, 100, 0.02);
  transition: box-shadow 0.2s;
}
.intel-card:hover { box-shadow: 0 0 32px rgba(45, 226, 230, 0.15); }
.intel-card::before {
  content: "TRANSMISSION ⚡ INCOMING"; position: absolute; top: -18px; left: 32px;
  background: var(--bg); padding: 4px 14px;
  font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--magenta); letter-spacing: 0.16em;
}
.intel-card h3 { font-family: 'Press Start 2P', monospace; font-size: 80px; color: var(--phosphor); margin: 0 0 24px; line-height: 1; letter-spacing: 0.02em; }
.intel-card .sub { font-family: 'VT323', monospace; font-size: 38px; color: var(--text); margin-bottom: 36px; line-height: 1.3; max-width: 1200px; }
.intel-card .url { font-family: 'JetBrains Mono', monospace; font-size: 28px; color: var(--yellow); letter-spacing: 0.05em; }
.intel-card .url a { color: inherit; text-decoration: none; }
.intel-card .url a:hover { text-decoration: underline; text-shadow: var(--glow-soft); }

/* ─── S9 — ESTABLISH COMMS ────────────────────────────────────────────── */
.comms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 30px; }
.comms-card {
  border: 2px solid var(--phosphor);
  background: rgba(45, 226, 230, 0.04);
  padding: 40px 44px;
  display: grid; grid-template-columns: 100px 1fr; gap: 28px; align-items: center;
  text-decoration: none; color: inherit;
  transition: background 0.15s, box-shadow 0.15s;
}
.comms-card:hover { background: rgba(45, 226, 230, 0.10); box-shadow: 0 0 20px rgba(45, 226, 230, 0.2); }
.comms-card .glyph {
  width: 92px; height: 92px; border: 2px solid var(--magenta);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 28px; color: var(--magenta);
}
.comms-card .channel { font-family: 'Press Start 2P', monospace; font-size: 24px; color: var(--magenta); letter-spacing: 0.16em; }
.comms-card .handle  { font-family: 'JetBrains Mono', monospace; font-size: 32px; color: var(--phosphor); margin-top: 8px; word-break: break-all; }

/* ─── S10 — PILOT DOSSIER ────────────────────────────────────────────── */
.dossier-stamp {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px; letter-spacing: 0.5em;
  color: var(--magenta);
  border: 3px solid var(--magenta);
  padding: 10px 32px;
  display: inline-block;
  transform: rotate(-2deg);
  box-shadow: 0 0 16px rgba(255, 56, 100, 0.35), inset 0 0 12px rgba(255, 56, 100, 0.1);
  opacity: 0.85;
}
.dossier-meta {
  display: flex; align-items: center; gap: 20px;
  margin-top: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; letter-spacing: 0.06em;
  color: var(--dim);
}
.dossier-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dim); flex-shrink: 0;
}

/* ─── S11 — GAME OVER ─────────────────────────────────────────────────── */
.s-continue { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 32px; }
.s-continue .q { font-size: 140px; line-height: 1; color: var(--phosphor); }
.s-continue .countdown { font-family: 'Press Start 2P', monospace; font-size: 96px; color: var(--magenta); letter-spacing: 0.1em; }
.s-continue .start { font-family: 'Press Start 2P', monospace; font-size: 32px; color: var(--yellow); letter-spacing: 0.3em; }
.s-continue .sig { font-family: 'VT323', monospace; font-size: 32px; color: var(--dim); }

/* ─── Nav dots ────────────────────────────────────────────────────────── */
.nav-dots {
  position: fixed; right: 24px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 9000;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--phosphor);
  background: transparent;
  cursor: pointer; padding: 0;
  opacity: 0.45;
  transition: opacity 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dot:hover { opacity: 0.85; transform: scale(1.3); }
.dot.active {
  background: var(--phosphor);
  opacity: 1;
  box-shadow: 0 0 6px var(--phosphor);
  transform: scale(1.2);
}
.dot:focus { outline: none; }
.dot:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ─── Keyboard hint ───────────────────────────────────────────────────── */
.kbd-hint {
  position: fixed; left: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 14px; letter-spacing: 0.06em;
  color: var(--dim);
  z-index: 9000;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.kbd-hint.hidden { opacity: 0; }
.kbd-hint .key {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--dim);
  padding: 3px 8px; border-radius: 3px;
  font-size: 13px; margin-right: 5px;
  color: var(--text);
}
.kbd-hint .hint-item { display: flex; align-items: center; gap: 4px; }

/* ─── Palette switcher ────────────────────────────────────────────────── */
.palette-bar {
  position: fixed; top: 20px; right: 52px;
  display: flex; gap: 10px; z-index: 9000;
}
.pal-btn {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pal-btn:hover { transform: scale(1.3); }
.pal-btn.active { border-color: #fff; box-shadow: 0 0 8px #fff; }
.pal-btn[data-pal="phosphor"] { background: #39ff14; }
.pal-btn[data-pal="amber"]    { background: #ffb000; }
.pal-btn[data-pal="galaga"]   { background: #2de2e6; }
.pal-btn:focus { outline: none; }
.pal-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ─── Progress bar ────────────────────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--phosphor);
  z-index: 9001;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s;
  box-shadow: 0 0 8px var(--phosphor);
}
