/* ============================================================
   FROM ZERO TO GAME — main.css
   Design system, shell layout, and shared components.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #07090D;
  --bg-2:        #0D1117;
  --panel:       #11161D;
  --panel-2:     #151B24;
  --panel-3:     #1A212B;
  --border:      #242B35;
  --border-soft: #1A212A;

  /* Text */
  --text:        #F5F7FA;
  --muted:       #8B95A5;
  --muted-2:     #5C6675;

  /* Accents — used sparingly. One accent carries the product. */
  --accent:      #35E0FF;
  --accent-deep: #0E9CC0;
  --accent-glow: rgba(53, 224, 255, .28);
  --success:     #3DDC84;
  --warn:        #FFB020;
  --danger:      #FF5C5C;
  --violet:      #A78BFA;

  /* Type */
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Rhythm */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 30px rgba(0,0,0,.45);
  --shadow-3: 0 24px 70px rgba(0,0,0,.6);

  --topbar-h: 62px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Mobile: no grey flash on tap, and no rubber-band scroll while playing. */
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  /* Kills the 300ms tap delay without disabling pinch-zoom on the page. */
  touch-action: manipulation;
}
canvas { display: block; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #04222B; padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* Selection */
::selection { background: rgba(53,224,255,.28); color: #fff; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2A3340 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #232B36; border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #333D4B; background-clip: padding-box; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform .12s var(--ease), background .16s, border-color .16s, box-shadow .16s, color .16s;
}
.btn:hover { background: var(--panel-3); border-color: #33404F; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn[disabled] { opacity: .38; pointer-events: none; }

.btn--primary {
  --btn-bg: linear-gradient(180deg, #3EE6FF, #17B7DC);
  --btn-fg: #032630;
  --btn-bd: transparent;
  font-weight: 800;
  box-shadow: 0 6px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { filter: brightness(1.07); box-shadow: 0 10px 30px -8px var(--accent-glow); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--muted); }
.btn--ghost:hover { --btn-fg: var(--text); background: var(--panel-2); }

.btn--danger-ghost { --btn-bg: transparent; --btn-fg: #FF8B8B; --btn-bd: rgba(255,92,92,.32); }
.btn--danger-ghost:hover { background: rgba(255,92,92,.1); --btn-fg: #FFB3B3; }

.btn--success { --btn-bg: linear-gradient(180deg,#57E89A,#28B96C); --btn-fg: #052616; --btn-bd: transparent; font-weight: 800; }

.btn--lg  { padding: 13px 26px; font-size: 12.5px; border-radius: 12px; }
.btn--sm  { padding: 7px 12px; font-size: 11px; }
.btn--xs  { padding: 4px 9px; font-size: 10px; letter-spacing: .08em; }
.btn--block { width: 100%; }

.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--panel-2); font-size: 14px; line-height: 1;
  transition: background .16s, border-color .16s, transform .12s var(--ease);
}
.icon-btn:hover { background: var(--panel-3); border-color: #33404F; }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-pressed="false"] { opacity: .5; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 480px) minmax(210px, 1fr);
  align-items: center; gap: 20px;
  padding: 0 18px;
  background: rgba(9, 12, 17, .84);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { color: var(--accent); display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(53,224,255,.35)); }
.brand-text {
  font-size: 12.5px; font-weight: 800; letter-spacing: .13em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-star { color: var(--accent); margin-left: 6px; }

.topbar__progress { display: flex; flex-direction: column; gap: 6px; }
.progress-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
}
.progress-level { color: var(--text); font-weight: 700; }
.progress-systems { color: var(--muted-2); }
.progress-track {
  height: 5px; border-radius: 20px; background: #161C25;
  overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 20px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .7s var(--ease);
}

.topbar__actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 20px;
  background: var(--panel-2); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px; letter-spacing: .11em; color: var(--muted);
}
.status-chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: pulseDot 2.4s infinite;
}
.status-chip.is-play .dot { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-chip.is-paused .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: none; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display: flex; flex-direction: column; min-height: calc(100vh - var(--topbar-h)); }
.workspace {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) 340px;
  gap: 16px;
  padding: 16px 18px 8px;
  align-items: start;
  flex: 1;
}

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.sidebar__block {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 14px;
}
.block-title {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px;
}

.level-list { display: flex; flex-direction: column; gap: 3px; }
.level-item {
  width: 100%; display: grid; grid-template-columns: 26px 1fr 18px;
  align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--r-md);
  border: 1px solid transparent;
  text-align: left; color: var(--muted);
  transition: background .16s, color .16s, border-color .16s;
}
.level-item__num { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.level-item__name { font-size: 12.5px; font-weight: 550; }
.level-item__state { font-size: 11px; text-align: right; color: var(--muted-2); }
.level-item:not([disabled]):hover { background: var(--panel-2); color: var(--text); }
.level-item[disabled] { opacity: .34; cursor: not-allowed; }
.level-item[disabled] .level-item__state::before { content: "🔒"; font-size: 9px; }
.level-item.is-current {
  background: linear-gradient(90deg, rgba(53,224,255,.12), rgba(53,224,255,.02));
  border-color: rgba(53,224,255,.3);
  color: var(--text);
  box-shadow: inset 0 0 22px -12px var(--accent);
}
.level-item.is-current .level-item__num { color: var(--accent); }
.level-item.is-current .level-item__state::before { content: "▸"; color: var(--accent); }
.level-item.is-done { color: var(--text); }
.level-item.is-done .level-item__state::before { content: "✓"; color: var(--success); font-weight: 800; }
.level-item.is-done .level-item__num { color: var(--success); opacity: .8; }

/* ---------- tools ---------- */
.tool-list { display: flex; flex-direction: column; gap: 4px; }
.tool-item {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px;
  padding: 8px 9px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid transparent;
  font-family: var(--mono); font-size: 10px; letter-spacing: .07em; color: var(--muted-2);
  transition: all .2s var(--ease);
}
.tool-item__icon {
  width: 16px; height: 16px; border-radius: 5px;
  background: #1D242E; border: 1px solid #262E3A;
  display: grid; place-items: center; font-size: 9px;
}
.tool-item__lock { font-size: 8.5px; letter-spacing: .12em; opacity: .55; }
.tool-item.is-unlocked {
  color: var(--text); background: var(--panel-3); border-color: var(--border);
}
.tool-item.is-unlocked .tool-item__icon {
  background: rgba(53,224,255,.14); border-color: rgba(53,224,255,.4); color: var(--accent);
}
.tool-item.is-unlocked .tool-item__icon::after { content: "✓"; }
.tool-item.is-unlocked .tool-item__lock { display: none; }
.tool-item.just-unlocked { animation: toolUnlock .9s var(--ease); }
@keyframes toolUnlock {
  0%   { transform: translateX(-6px); box-shadow: 0 0 0 0 var(--accent-glow); }
  35%  { box-shadow: 0 0 0 4px var(--accent-glow); }
  100% { transform: none; box-shadow: 0 0 0 0 transparent; }
}

/* ---------- build dots ---------- */
.build-dots { display: flex; flex-direction: column; gap: 7px; }
.build-dots li {
  display: flex; align-items: center; gap: 9px;
  font-size: 11.5px; color: var(--muted-2);
  transition: color .3s;
}
.build-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid #2C3644; background: transparent;
  transition: all .35s var(--ease);
}
.build-dots li.is-built { color: var(--text); }
.build-dots li.is-built i {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  position: sticky; top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - 32px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.panel__scroll { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.pcard {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--bg-2);
  padding: 13px;
  animation: fadeUp .4s var(--ease) both;
}
.pcard--accent { border-color: rgba(53,224,255,.26); background: linear-gradient(180deg, rgba(53,224,255,.06), transparent 70%); }
.pcard__label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: block;
}
.pcard__label--muted { color: var(--muted-2); }
.pcard h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.pcard p { font-size: 12.5px; color: var(--muted); line-height: 1.62; }
.pcard p + p { margin-top: 8px; }
.pcard strong { color: var(--text); font-weight: 600; }

.todo { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.todo li {
  display: grid; grid-template-columns: 16px 1fr; gap: 9px; align-items: start;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.todo li::before {
  content: ""; width: 13px; height: 13px; margin-top: 3px; border-radius: 4px;
  border: 1.5px solid #303A48; transition: all .25s var(--ease);
}
.todo li.is-done { color: var(--text); }
.todo li.is-done::before {
  content: "✓"; color: #052616; background: var(--success); border-color: var(--success);
  font-size: 9px; font-weight: 900; display: grid; place-items: center; line-height: 1;
}

.keycaps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.keycap {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--border-soft);
  transition: border-color .15s, background .15s;
}
.keycap.is-active { border-color: var(--accent); background: rgba(53,224,255,.08); }
.keycap.is-used .keycap__label::after { content: " ✓"; color: var(--success); }
.keycap__keys { display: flex; gap: 4px; }
.keycap__keys kbd {
  font-family: var(--mono); font-size: 10px; min-width: 22px; text-align: center;
  padding: 3px 5px; border-radius: 5px;
  background: #1C232D; border: 1px solid #2C3644;
  box-shadow: 0 2px 0 #10151C; color: var(--text);
}
.keycap__label { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.concept-grid div {
  background: var(--panel-2); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 8px 10px;
}
.concept-grid dt { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.concept-grid dd { font-size: 12px; color: var(--text); margin-top: 3px; font-weight: 550; }

.tool-cta { display: flex; flex-direction: column; gap: 8px; }
.hint-line { font-size: 11px; color: var(--muted-2); font-family: var(--mono); letter-spacing: .04em; }

/* ============================================================
   MODALS / OVERLAYS
   ============================================================ */
.modal-root, .overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 20px;
}
.overlay__scrim, .modal__scrim {
  position: absolute; inset: 0;
  background: rgba(4, 6, 9, .78);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s var(--ease);
}
.overlay__card, .modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-3);
  animation: popIn .42s var(--ease);
}
.overlay__card--wide, .modal__card--wide { width: min(760px, 100%); }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal__head h2 { font-size: 17px; letter-spacing: -.01em; }
.modal__close { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.modal__close:hover { background: var(--panel-3); color: var(--text); }
.modal__body { font-size: 13px; color: var(--muted); line-height: 1.65; }
.modal__body h3 { color: var(--text); font-size: 13px; margin: 16px 0 6px; letter-spacing: .02em; }
.modal__body ol, .modal__body ul { display: flex; flex-direction: column; gap: 7px; }
.modal__body li { padding-left: 18px; position: relative; }
.modal__body li::before { content: "▸"; position: absolute; left: 2px; color: var(--accent); }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* ============================================================
   TOASTS + TOOLTIP
   ============================================================ */
.toast-root {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: var(--r-md);
  background: rgba(17,22,29,.96); border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  font-size: 12px; letter-spacing: .03em;
  animation: toastIn .35s var(--ease);
  max-width: 320px;
}
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
.toast__icon { font-size: 14px; }
.toast--success { border-color: rgba(61,220,132,.4); }
.toast--warn { border-color: rgba(255,176,32,.4); }
.toast--accent { border-color: rgba(53,224,255,.4); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

.tooltip {
  position: fixed; z-index: 150; max-width: 230px; pointer-events: none;
  background: #0A0E14; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 11px;
  box-shadow: var(--shadow-2);
  animation: fadeIn .14s var(--ease);
}
.tooltip__title { font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 3px; }
.tooltip__body { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 22px 20px 30px; text-align: center;
  color: var(--muted-2); font-size: 11.5px;
  border-top: 1px solid var(--border-soft); margin-top: 14px;
}
.site-footer .muted { color: #47505E; margin-top: 4px; }
.dot-sep { opacity: .5; margin: 0 5px; }

/* ---------- no-JS fallback ---------- */
.noscript-note {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; gap: 12px;
  padding: 40px; text-align: center; background: var(--bg);
}
.noscript-note h2 { font-size: 22px; letter-spacing: -.02em; }
.noscript-note p { color: var(--muted); max-width: 46ch; margin: 0 auto; line-height: 1.7; }
/* The intro's buttons do nothing without scripting. */
.no-js .intro__actions, .no-js .intro__skip { display: none; }

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  /* dvh keeps the intro from jumping when mobile browser chrome hides */
  height: 100vh; height: 100dvh;
  background: #04060A;
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity .7s var(--ease);
}
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro__grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(53,224,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,224,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, #000 20%, transparent 78%);
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 2.4s var(--ease);
}
.intro.show-grid .intro__grid { opacity: 1; transform: scale(1); }
.intro__inner { position: relative; text-align: center; padding: 24px; max-width: 720px; }
.intro__line {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  font-size: clamp(19px, 3.4vw, 30px); font-weight: 300; letter-spacing: .01em;
  color: #C9D2DE; opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.intro__line.is-in { opacity: 1; }
.intro__line.is-out { opacity: 0; transform: translateY(calc(-50% - 12px)); }

.intro__reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.intro__reveal.is-in { opacity: 1; transform: none; }
.intro__title {
  font-size: clamp(30px, 7vw, 62px); font-weight: 850; letter-spacing: -.028em; line-height: 1.02;
  background: linear-gradient(180deg, #FFFFFF 30%, #9FB0C2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro__title .brand-star {
  -webkit-text-fill-color: var(--accent); color: var(--accent);
  filter: drop-shadow(0 0 18px var(--accent-glow));
  display: inline-block; animation: starSpin 9s linear infinite;
}
@keyframes starSpin { to { transform: rotate(360deg); } }
.intro__sub { margin-top: 14px; color: var(--muted); font-size: clamp(13px, 1.7vw, 15px); }
.intro__actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.intro__resume { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: .06em; }
.intro__skip {
  position: absolute; right: 20px; bottom: 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--muted-2);
  padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 20px;
  transition: color .2s, border-color .2s;
}
.intro__skip:hover { color: var(--text); border-color: var(--border); }

/* ============================================================
   STATS GRID (final screen)
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 22px 0 6px;
}
.stats-grid div {
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); padding: 13px;
  animation: fadeUp .5s var(--ease) both;
}
.stats-grid dt {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  color: var(--muted-2); text-transform: uppercase;
}
.stats-grid dd {
  font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.stats-grid dd small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 3px; }

/* ============================================================
   MOTION PREFERENCE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
