/* pokedex.css — Infinite Fusions Pokédex: device shell + tokens + primitives.
   Concept: red plastic casing (physical) wraps a glowing phosphor screen (digital).
   Scoped under .pdx so it never collides with the legacy Codex styles. */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-ui); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font-family: inherit; }
img { display: block; }

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  /* casing (physical red plastic) — colorway set by data-case */
  --case:      #cc0000;
  --case-hi:   #ff1111;
  --case-lo:   #8c0000;
  --case-edge: #5e0000;
  --case-ink:  #ffd9d9;

  /* screen (phosphor) surfaces — dark with faint green cast */
  --bg:  #05080a;
  --s0:  #080d0c;
  --s1:  #0d1413;
  --s2:  #141d1b;
  --s3:  #1c2724;
  --s4:  #26332f;
  --line:        rgba(120,255,210,.10);
  --line-strong: rgba(120,255,210,.22);
  --ink:   #e8f3ee;
  --ink-2: #93a8a1;
  --ink-3: #5e716b;

  /* phosphor screen-glow secondary */
  --glow: #2fe6b0;
  --glow-soft: rgba(47,230,176,.55);
  --glow-ink: #04150f;

  --good: #46d98a;
  --warn: #f0b54a;
  --bad:  #ff6b6b;

  /* type tokens (full 18) */
  --type-normal:#9aa0a8; --type-fire:#ff7a3c; --type-water:#4f9bff; --type-electric:#ffcf36;
  --type-grass:#52c66a; --type-ice:#5fd0e0; --type-fighting:#e85b46; --type-poison:#bd6bd6;
  --type-ground:#e0b24e; --type-flying:#8fa9ff; --type-psychic:#ff6fa3; --type-bug:#a3c23f;
  --type-rock:#c9b06b; --type-ghost:#8d72d8; --type-dragon:#6f5def; --type-dark:#7c7a88;
  --type-steel:#69b6c8; --type-fairy:#ff9ad0;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-lcd: "VT323", "JetBrains Mono", monospace;

  --motion: 1;                /* motion intensity multiplier (tweak) */
  --sprite: 1;                /* sprite scale multiplier (tweak) */
  --u: 4px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  color-scheme: dark;
}
[data-case="blue"]  { --case:#1f6feb; --case-hi:#3b86ff; --case-lo:#114a9e; --case-edge:#0a2f66; --case-ink:#d6e6ff; }
[data-case="amber"] { --case:#e8a31e; --case-hi:#ffbe3d; --case-lo:#a8740f; --case-edge:#6e4a06; --case-ink:#fff0d2; --glow:#ffd24b; --glow-soft:rgba(255,210,75,.5); --glow-ink:#1a1402; }
[data-case="slate"] { --case:#3a4250; --case-hi:#4d5868; --case-lo:#262c37; --case-edge:#161a21; --case-ink:#dfe6f0; }
[data-density="compact"] { --u: 3.4px; }
[data-density="comfy"]   { --u: 4.7px; }

/* screen tint variants */
[data-screen="blue"]  { --glow:#48c2ff; --glow-soft:rgba(72,194,255,.5); --glow-ink:#02131c;
  --s1:#0c1318; --s2:#13202a; --line:rgba(120,200,255,.1); }
[data-screen="amber"] { --glow:#ffc24b; --glow-soft:rgba(255,194,75,.5); --glow-ink:#1a1302;
  --s1:#13110b; --s2:#1c1810; --line:rgba(255,210,120,.1); }

/* ── App / device shell ────────────────────────────────────────────────── */
.pdx { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1110, transparent 60%),
    radial-gradient(100% 60% at 50% 120%, color-mix(in oklab, var(--case) 18%, #000), transparent 60%),
    #0a0808;
  padding: clamp(3px, 0.5vw, 7px); }
.device { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0;
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, var(--case-hi), var(--case) 18%, var(--case) 70%, var(--case-lo));
  box-shadow:
    inset 0 2px 0 color-mix(in oklab, var(--case-hi) 80%, #fff),
    inset 0 -3px 0 var(--case-edge),
    inset 0 0 0 1px rgba(0,0,0,.25),
    0 30px 70px -30px rgba(0,0,0,.9);
  padding: clamp(4px, 0.5vw, 8px); position: relative; overflow: hidden; }
.device::before {  /* casing speckle / sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(140% 60% at 80% -10%, rgba(255,255,255,.14), transparent 55%);
  mix-blend-mode: screen; opacity: .6; }

/* ── Topbar: lens + lights + wordmark + nav ────────────────────────────── */
.topbar { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px);
  padding: 2px 4px clamp(10px, 1.2vw, 16px); position: relative; z-index: 2; }
.lens-cluster { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); flex: 0 0 auto; }
.lens { width: clamp(34px, 4vw, 52px); height: clamp(34px, 4vw, 52px); border-radius: 50%; flex: 0 0 auto;
  background:
    radial-gradient(closest-side at 36% 32%, #bfeaff 0%, #4aa8ff 26%, #1b5fd0 60%, #0a2f7a 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 0 6px var(--case-lo),
    inset 0 -4px 8px rgba(0,0,0,.5), 0 0 24px rgba(74,168,255,.55);
  position: relative; }
.lens::after { content: ""; position: absolute; width: 30%; height: 22%; left: 22%; top: 18%;
  border-radius: 50%; background: rgba(255,255,255,.9); filter: blur(1px); }
.lights { display: flex; gap: clamp(5px, .7vw, 9px); }
.light { width: clamp(9px, 1vw, 13px); height: clamp(9px, 1vw, 13px); border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.5), 0 0 0 1.5px rgba(0,0,0,.18); }
.light.r { background: radial-gradient(closest-side at 35% 30%, #ffd0d0, #ff3b3b 55%, #b00000); box-shadow: inset 0 -1px 2px rgba(0,0,0,.5), 0 0 9px #ff4b4b; }
.light.y { background: radial-gradient(closest-side at 35% 30%, #fff3c4, #ffd23f 55%, #b58908); }
.light.g { background: radial-gradient(closest-side at 35% 30%, #d6ffe2, #3fd27e 55%, #138a45); }
@media (prefers-reduced-motion: no-preference) {
  .light.g { animation: blink calc(2.4s / var(--motion, 1)) ease-in-out infinite; }
}
@keyframes blink { 0%,92%,100% { opacity: 1; } 96% { opacity: .35; } }

.wordmark { display: flex; flex-direction: column; gap: 1px; line-height: 1; flex: 0 0 auto; }
.wordmark .wm-1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 1.7vw, 21px);
  color: #fff; letter-spacing: -.01em; text-shadow: 0 1px 0 var(--case-lo); white-space: nowrap; }
.wordmark .wm-2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(8px, .85vw, 10px);
  letter-spacing: .42em; color: var(--case-ink); text-indent: .42em; white-space: nowrap; }

.topbar-spacer { flex: 1 1 auto; }

/* device nav buttons */
.dnav { display: flex; gap: clamp(5px, .6vw, 8px); flex: 0 0 auto; }
.dbtn { appearance: none; border: 0; cursor: pointer; position: relative;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: clamp(7px, .85vw, 11px) clamp(11px, 1.3vw, 18px); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(11px, 1.1vw, 13.5px);
  color: var(--case-ink);
  background: linear-gradient(180deg, color-mix(in oklab, var(--case-hi) 60%, var(--case)), var(--case-lo));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--case-hi) 75%, #fff), inset 0 -2px 0 var(--case-edge),
    0 2px 4px rgba(0,0,0,.3); transition: transform .12s, filter .12s; }
.dbtn svg { width: 15px; height: 15px; }
.dbtn:hover { filter: brightness(1.08); }
.dbtn:active { transform: translateY(1px); }
.dbtn[aria-current="true"] { color: var(--glow-ink);
  background: linear-gradient(180deg, color-mix(in oklab, var(--glow) 92%, #fff), var(--glow));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 18px var(--glow-soft), 0 2px 4px rgba(0,0,0,.3); }
.dbtn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--case-lo), 0 0 0 4px var(--glow); }

/* LCD seen-counter readout */
.lcd { flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: linear-gradient(180deg, #0b1a12, #061009);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.4), 0 1px 0 var(--case-hi);
  font-family: var(--font-lcd); }
.lcd .lcd-k { font-size: 11px; letter-spacing: .12em; color: color-mix(in oklab, var(--glow) 55%, #4a6a5c); text-transform: uppercase; }
.lcd .lcd-v { font-size: 19px; color: var(--glow); text-shadow: 0 0 8px var(--glow-soft); line-height: 1; }
.iconbtn { appearance: none; width: clamp(32px,3.6vw,38px); height: clamp(32px,3.6vw,38px); flex: 0 0 auto;
  border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--case-ink);
  background: radial-gradient(closest-side at 35% 30%, color-mix(in oklab, var(--case-hi) 70%, #fff 10%), var(--case-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 3px var(--case-edge), 0 2px 4px rgba(0,0,0,.3);
  transition: transform .12s; }
.iconbtn:active { transform: translateY(1px); }
.iconbtn svg { width: 17px; height: 17px; }

/* ── Screen (recessed phosphor panel) ──────────────────────────────────── */
.screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% -8%, color-mix(in oklab, var(--glow) 7%, transparent), transparent 55%),
    var(--bg);
  box-shadow:
    inset 0 0 0 2px var(--case-edge),
    inset 0 0 0 5px color-mix(in oklab, var(--glow) 16%, #06100c),
    inset 0 4px 24px rgba(0,0,0,.9),
    0 0 40px color-mix(in oklab, var(--glow) calc(14% * var(--motion)), transparent);
  position: relative; overflow: hidden; }
.screen::before {  /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.screen::after {  /* corner vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  box-shadow: inset 0 0 60px rgba(0,0,0,.55); border-radius: inherit; }
.screen-inner { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  margin: 5px; border-radius: calc(var(--r-lg) - 4px); overflow: hidden; position: relative; z-index: 1; }

/* footer hinge strip */
.dfoot { display: flex; align-items: center; gap: 10px; padding: clamp(8px,1vw,13px) 6px 2px;
  position: relative; z-index: 2; }
.dfoot .grille { flex: 1 1 auto; height: 10px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--case-edge) 0 3px, transparent 3px 8px);
  opacity: .5; }
.dfoot .dpad { width: 34px; height: 34px; flex: 0 0 auto; position: relative; opacity: .8; }
.dfoot .dpad::before, .dfoot .dpad::after { content: ""; position: absolute; background: var(--case-edge);
  border-radius: 3px; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--case-hi) 50%, transparent); }
.dfoot .dpad::before { left: 11px; top: 2px; width: 12px; height: 30px; }
.dfoot .dpad::after  { left: 2px; top: 11px; width: 30px; height: 12px; }
.dfoot .tag { font-family: var(--font-lcd); font-size: 13px; letter-spacing: .14em;
  color: var(--case-ink); opacity: .7; text-transform: uppercase; flex: 0 0 auto; }

@media (max-width: 720px) {
  .pdx { padding: 6px; }
  .wordmark .wm-2 { display: none; }
  .lcd { display: none; }
  .dfoot .grille, .dfoot .dpad { display: none; }
}

/* ── Scroll region inside the screen ───────────────────────────────────── */
.view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.view-scroll { flex: 1 1 auto; overflow-y: auto; }
.scrl { scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--glow) 40%, var(--s4)) transparent; }
.scrl::-webkit-scrollbar { width: 11px; height: 11px; }
.scrl::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--glow) 28%, var(--s4));
  border-radius: 7px; border: 3px solid transparent; background-clip: content-box; }
.scrl::-webkit-scrollbar-thumb:hover { background: color-mix(in oklab, var(--glow) 50%, var(--s4)); background-clip: content-box; }

/* ── Filter bar (screen-styled, sticky) ────────────────────────────────── */
.filterbar { position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: calc(var(--u)*2.5); flex-wrap: wrap;
  padding: calc(var(--u)*3.5) calc(var(--u)*5);
  background: color-mix(in oklab, var(--s0) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 240px; min-width: 180px; max-width: 380px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px;
  color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--s1); color: var(--ink); font-size: 13.5px; outline: none; transition: .15s; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--glow); box-shadow: 0 0 0 3px color-mix(in oklab, var(--glow) 20%, transparent); }
.sel { position: relative; }
.sel select { appearance: none; height: 38px; padding: 0 30px 0 12px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--s2); color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; outline: none; transition: .15s; }
.sel select:hover { border-color: var(--line-strong); }
.sel select:focus { border-color: var(--glow); }
.sel::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select option { background: var(--s2); color: var(--ink); }
.count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { color: var(--glow); font-weight: 700; }

/* ── Role filter chips ─────────────────────────────────────────────────── */
.rolebar { display: flex; gap: calc(var(--u)*2); flex-wrap: wrap; width: 100%;
  padding: calc(var(--u)*3) calc(var(--u)*5) 0; }
.rolechip { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: .01em;
  color: var(--ink-2); background: var(--s2); border: 1px solid var(--line); transition: .14s; white-space: nowrap; }
.rolechip .rc-glyph { font-size: 11px; color: var(--rc); }
.rolechip:hover { border-color: var(--line-strong); color: var(--ink); }
.rolechip[aria-pressed="true"] { color: var(--rc); border-color: color-mix(in oklab, var(--rc) 55%, transparent);
  background: color-mix(in oklab, var(--rc) 16%, var(--s2)); box-shadow: 0 0 14px color-mix(in oklab, var(--rc) calc(30% * var(--motion)), transparent); }
.rolechip[aria-pressed="true"] .rc-glyph { color: var(--rc); }
.rolechip.all[aria-pressed="true"] { color: var(--glow); border-color: var(--glow); background: color-mix(in oklab, var(--glow) 14%, var(--s2)); }

/* ── Type badge (solid game-style, 18) ─────────────────────────────────── */
.tb { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  color: #fff; background: var(--tc); border: 1px solid color-mix(in oklab, var(--tc) 70%, #000 30%);
  text-shadow: 0 1px 1px rgba(0,0,0,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); white-space: nowrap; }
.tb.sm { height: 17px; font-size: 9px; padding: 0 7px; }

/* ── Role banner / badge ───────────────────────────────────────────────── */
.role-banner { display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: var(--r-sm);
  background: linear-gradient(100deg, color-mix(in oklab, var(--rc) 28%, var(--s2)), color-mix(in oklab, var(--rc) 8%, var(--s2)));
  border: 1px solid color-mix(in oklab, var(--rc) 45%, transparent);
  box-shadow: 0 0 16px color-mix(in oklab, var(--rc) calc(22% * var(--motion)), transparent); }
.role-banner .rb-glyph { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px;
  background: var(--rc); color: #06100c; font-size: 12px; font-weight: 800; flex: 0 0 auto;
  box-shadow: 0 0 10px color-mix(in oklab, var(--rc) 60%, transparent); }
.role-banner .rb-label { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--rc);
  letter-spacing: -.005em; line-height: 1.05; }
.role-pill { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 9px; border-radius: 999px;
  font-weight: 700; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: var(--rc);
  background: color-mix(in oklab, var(--rc) 15%, transparent); border: 1px solid color-mix(in oklab, var(--rc) 40%, transparent); white-space: nowrap; }
.role-pill .rp-glyph { font-size: 9px; }

/* ── Sprite frame + Pokéball spinner ───────────────────────────────────── */
.spr { position: relative; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--r-md);
  background:
    radial-gradient(85% 70% at 50% 28%, color-mix(in oklab, var(--glow) 9%, transparent), transparent 70%),
    var(--s1);
  border: 1px solid var(--line); overflow: hidden; }
.spr img { image-rendering: pixelated; image-rendering: crisp-edges; object-fit: contain;
  opacity: 0; transition: opacity .35s ease; }
.spr img.loaded { opacity: 1; }
.spr.ace { border-color: color-mix(in oklab, #ffc24b 55%, var(--line));
  background: radial-gradient(85% 70% at 50% 28%, rgba(255,194,75,.14), transparent 70%), var(--s1); }
.spr .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.spr .glyph-tile { font-size: 1.5em; font-weight: 800; }
.spr.ace .glyph-tile { color: #ffc24b; text-shadow: 0 0 14px rgba(255,194,75,.55); }
.spr.unfused { border-style: dashed; }
.spr.unfused .glyph-tile { color: var(--ink-3); }

/* pokéball spinner */
.pokeball { width: 38%; height: 38%; max-width: 46px; max-height: 46px; border-radius: 50%; position: relative;
  background: linear-gradient(180deg, #f24b4b 0 50%, #f7f7f7 50% 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.55); opacity: .8;
  transition: opacity .3s; }
.pokeball::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 11%;
  transform: translateY(-50%); background: #1c1c1c; }
.pokeball::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 30%; height: 30%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #1c1c1c, inset 0 0 0 2px #cfcfcf; }
.spr .loaded ~ .ph .pokeball, .spr img.loaded + .ph { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pokeball { animation: spin calc(1.1s / var(--motion, 1)) linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stat bars (roll up on reveal) ─────────────────────────────────────── */
.stats { display: flex; flex-direction: column; gap: calc(var(--u)*1.5); }
.stat { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: calc(var(--u)*2.5); }
.stat-l { font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
.stat-v { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-align: right;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.stat.max .stat-v { color: var(--sc); }
.stat-track { height: 8px; border-radius: 999px; background: var(--s3); overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--line) 60%, transparent); }
.stat-fill { height: 100%; border-radius: 999px; background: var(--sc); width: 0;
  box-shadow: 0 0 9px color-mix(in oklab, var(--sc) calc(50% * var(--motion)), transparent);
  transition: width calc(.7s * var(--motion)) cubic-bezier(.2,.85,.25,1); }
@media (prefers-reduced-motion: reduce) { .stat-fill { transition: none; } }

.bst { display: inline-flex; align-items: baseline; gap: 5px; }
.bst .k { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.bst .v { font-family: var(--font-mono); font-weight: 800; font-size: 14px; color: var(--ink); }

/* ── Move chips ────────────────────────────────────────────────────────── */
.moves { display: flex; flex-wrap: wrap; gap: calc(var(--u)*1.5); }
.move { display: inline-flex; align-items: center; height: 23px; padding: 0 9px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--s2); border: 1px solid var(--line); white-space: nowrap; }
.move.sig { color: var(--ink); border-color: color-mix(in oklab, var(--glow) 40%, var(--line));
  background: color-mix(in oklab, var(--glow) 10%, var(--s2)); }
.move.sig::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--glow); margin-right: 6px; box-shadow: 0 0 6px var(--glow); }

/* peek line (one signature move on cards) */
.peek { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.peek .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 6px var(--glow); flex: 0 0 auto; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap1 { gap: calc(var(--u)*1.5); } .gap2 { gap: calc(var(--u)*2); } .gap3 { gap: calc(var(--u)*3); }
.dim { color: var(--ink-3); } .muted { color: var(--ink-2); }
.display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--u)*3); padding: calc(var(--u)*16) calc(var(--u)*6); text-align: center; color: var(--ink-3); }
.empty .pokeball { width: 44px; height: 44px; opacity: .5; }
.empty h3 { margin: 0; font-family: var(--font-display); font-size: 17px; color: var(--ink-2); font-weight: 700; }
.empty p { margin: 0; font-size: 13px; max-width: 320px; }
