/* ══════════════════ tokens & themes ══════════════════ */
:root {
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Default: YELP — red & white, clean and bright */
:root, [data-theme="yelp"] {
  --bg: #f5efec;
  --bg-glow-1: rgba(211, 35, 35, 0.14);
  --bg-glow-2: rgba(255, 122, 89, 0.12);
  --surface: #ffffff;
  --surface-2: #fbf3f1;
  --surface-line: rgba(30, 20, 18, 0.1);
  --text: #241c1b;
  --text-dim: #7c6f6b;
  --primary: #d32323;
  --primary-2: #ff5230;
  --primary-ink: #ffffff;
  --accent: #d32323;
  --good: #1f9d55;
  --bad: #d32323;
  --topbar-bg: linear-gradient(135deg, #d32323, #b81d1d);
  --topbar-ink: #fff;
  --display-color: #d32323;
  --display-shadow: 0 1px 0 #fff, 0 2px 0 #fff, 0 3px 0 rgba(255,255,255,.9), 0 12px 26px rgba(211,35,35,.28);
  --shadow: 0 16px 40px rgba(120, 30, 25, 0.14);
  --tile-shadow: 0 10px 22px rgba(80, 20, 18, 0.22);
  --chip-bg: rgba(255, 255, 255, 0.22);
  --chip-ink: #fff;
}

/* MIDNIGHT — the original neon look */
[data-theme="midnight"] {
  --bg: #160d23;
  --bg-glow-1: rgba(255, 111, 177, 0.22);
  --bg-glow-2: rgba(103, 232, 249, 0.16);
  --surface: rgba(255, 255, 255, 0.1);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-line: rgba(255, 255, 255, 0.18);
  --text: #fff8df;
  --text-dim: #cdb3e8;
  --primary: #ffcf70;
  --primary-2: #ff72b6;
  --primary-ink: #23122d;
  --accent: #ff72b6;
  --good: #8dffb0;
  --bad: #ff6b6b;
  --topbar-bg: rgba(0, 0, 0, 0.28);
  --topbar-ink: #fff8df;
  --display-color: #fff;
  --display-shadow: 0 0 6px #fff, 0 0 18px #ff72b6, 0 0 42px #b889ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --tile-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  --chip-bg: rgba(255, 255, 255, 0.14);
  --chip-ink: #fff;
}

/* PUG — cozy cream & toffee (light) */
[data-theme="pug"] {
  --bg: #f4e7d6; --bg-glow-1: rgba(200,138,75,.16); --bg-glow-2: rgba(224,153,90,.12);
  --surface: #fffaf2; --surface-2: #f6ead7; --surface-line: rgba(60,40,25,.12);
  --text: #33261b; --text-dim: #8a7359;
  --primary: #a05a2c; --primary-2: #e0995a; --primary-ink: #fff; --accent: #a05a2c;
  --good: #3f9142; --bad: #c0392b;
  --topbar-bg: linear-gradient(135deg,#a05a2c,#8a4a22); --topbar-ink: #fff;
  --display-color: #a05a2c; --display-shadow: 0 2px 0 #fff, 0 3px 0 rgba(255,255,255,.8), 0 12px 24px rgba(160,90,44,.24);
  --shadow: 0 16px 40px rgba(120,80,40,.16); --tile-shadow: 0 10px 22px rgba(90,60,30,.24);
  --chip-bg: rgba(255,255,255,.24); --chip-ink: #fff;
}

/* CAT CAFÉ — plum & rose on oat (light) */
[data-theme="catcafe"] {
  --bg: #f2ede6; --bg-glow-1: rgba(74,63,107,.14); --bg-glow-2: rgba(217,138,158,.14);
  --surface: #ffffff; --surface-2: #f3eef7; --surface-line: rgba(36,31,51,.12);
  --text: #241f33; --text-dim: #6d6480;
  --primary: #4a3f6b; --primary-2: #d98a9e; --primary-ink: #fff; --accent: #4a3f6b;
  --good: #3f9142; --bad: #c0392b;
  --topbar-bg: linear-gradient(135deg,#4a3f6b,#3a3157); --topbar-ink: #fff;
  --display-color: #4a3f6b; --display-shadow: 0 2px 0 #fff, 0 3px 0 rgba(255,255,255,.8), 0 12px 24px rgba(74,63,107,.22);
  --shadow: 0 16px 40px rgba(60,50,90,.16); --tile-shadow: 0 10px 22px rgba(40,30,60,.22);
  --chip-bg: rgba(255,255,255,.22); --chip-ink: #fff;
}

/* RETRO '90s — teal & mustard cassette (dark) */
[data-theme="retro90s"] {
  --bg: #1e1b2e; --bg-glow-1: rgba(45,194,176,.20); --bg-glow-2: rgba(242,176,53,.16);
  --surface: #2a263f; --surface-2: #231f36; --surface-line: rgba(255,255,255,.16);
  --text: #f0ecff; --text-dim: #b9b2d6;
  --primary: #2dc2b0; --primary-2: #f2b035; --primary-ink: #10231f; --accent: #f2b035;
  --good: #7ff2b0; --bad: #ff6b6b;
  --topbar-bg: rgba(0,0,0,.30); --topbar-ink: #f0ecff;
  --display-color: #fff; --display-shadow: 0 0 6px #fff, 0 0 18px #2dc2b0, 0 0 42px #f2b035;
  --shadow: 0 22px 60px rgba(0,0,0,.45); --tile-shadow: 0 12px 26px rgba(0,0,0,.4);
  --chip-bg: rgba(255,255,255,.14); --chip-ink: #f0ecff;
}

/* ARCADE — phosphor green & gold cabinet (dark) */
[data-theme="arcade"] {
  --bg: #0f1b14; --bg-glow-1: rgba(57,255,136,.18); --bg-glow-2: rgba(255,210,63,.14);
  --surface: #13261c; --surface-2: #0f2018; --surface-line: rgba(255,255,255,.14);
  --text: #e9fff2; --text-dim: #9fd8b8;
  --primary: #39ff88; --primary-2: #ffd23f; --primary-ink: #06210f; --accent: #ffd23f;
  --good: #39ff88; --bad: #ff6b6b;
  --topbar-bg: rgba(0,0,0,.35); --topbar-ink: #e9fff2;
  --display-color: #fff; --display-shadow: 0 0 6px #fff, 0 0 18px #39ff88, 0 0 42px #ffd23f;
  --shadow: 0 22px 60px rgba(0,0,0,.5); --tile-shadow: 0 12px 26px rgba(0,0,0,.45);
  --chip-bg: rgba(255,255,255,.12); --chip-ink: #e9fff2;
}

/* HIGH CONTRAST — accessibility (black/yellow/cyan) */
[data-theme="contrast"] {
  --bg: #000000; --bg-glow-1: transparent; --bg-glow-2: transparent;
  --surface: #151515; --surface-2: #1f1f1f; --surface-line: #ffffff;
  --text: #ffffff; --text-dim: #e0e0e0;
  --primary: #ffd400; --primary-2: #00e5ff; --primary-ink: #000; --accent: #00e5ff;
  --good: #00e676; --bad: #ff5252;
  --topbar-bg: #000000; --topbar-ink: #ffffff;
  --display-color: #ffd400; --display-shadow: none;
  --shadow: 0 0 0 2px #333; --tile-shadow: 0 0 0 2px #444;
  --chip-bg: #1f1f1f; --chip-ink: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, var(--bg-glow-1) 0 22%, transparent 46%),
    radial-gradient(circle at 92% 4%, var(--bg-glow-2) 0 16%, transparent 40%),
    var(--bg);
  background-repeat: no-repeat;
  overflow-x: hidden;
  transition: color 0.25s, background-color 0.25s;
}
[data-theme="midnight"] body {
  background:
    radial-gradient(circle at top left, #551a75 0 20%, transparent 42%),
    radial-gradient(circle at top right, #0d7484 0 13%, transparent 34%),
    linear-gradient(140deg, #160d23, #28133c 55%, #3b1530);
  background-repeat: no-repeat;
}
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
[data-theme="midnight"] .vignette {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px), linear-gradient(rgba(255,255,255,.06), transparent 42%);
  mix-blend-mode: screen;
}

.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; }
.tiny { font-size: 0.78rem; opacity: 0.75; font-weight: 600; }
.muted { color: var(--text-dim); opacity: 0.8; }

/* ══════════════════ shared type & buttons ══════════════════ */
.display {
  font-size: clamp(1.9rem, 5.4vw, 4rem);
  line-height: 0.94; margin: 0; font-weight: 1000; letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--display-color); text-shadow: var(--display-shadow);
}
.display .accent { color: var(--primary-2); }
[data-theme="midnight"] .display .accent { color: #ff72b6; }

button, .button {
  border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 900; cursor: pointer; font-family: inherit;
  color: var(--primary-ink); background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18); display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
button:hover, .button:hover { transform: translateY(-1px); filter: brightness(1.05); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
button.secondary {
  background: var(--surface); color: var(--text); border: 1.5px solid var(--surface-line); box-shadow: none;
}
[data-theme="midnight"] button.secondary { background: rgba(255,255,255,.14); color: #fff; }
.chip { padding: 8px 12px; font-size: 0.85rem; background: var(--chip-bg); color: var(--chip-ink); border: 1px solid rgba(255,255,255,0.25); box-shadow: none; }
.linklike { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font: inherit; box-shadow: none; text-decoration: underline dotted; display: inline; }
.linklike:hover { transform: none; filter: none; }
button:focus-visible, input:focus-visible, select:focus-visible, .album-tile:focus-visible, .drop-card:focus-visible, .game-card:focus-visible {
  outline: 3px solid var(--primary-2); outline-offset: 2px;
}

/* ══════════════════ login ══════════════════ */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(560px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 46px); box-shadow: var(--shadow);
}
.auth-badge { display: inline-block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary); font-weight: 900; margin-bottom: 12px; }
.auth-sub { color: var(--text-dim); line-height: 1.5; margin: 14px auto 22px; max-width: 42ch; }
.auth-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.auth-form input {
  flex: 1 1 240px; min-width: 0; border: 1.5px solid var(--surface-line); background: var(--surface-2);
  color: var(--text); border-radius: 14px; padding: 14px 16px; font-size: 1rem;
}
.auth-msg { min-height: 1.4em; margin: 16px 0 4px; font-weight: 800; }
.auth-msg.ok { color: var(--good); }
.auth-msg.err { color: var(--bad); }
.auth-fine { font-size: 0.8rem; color: var(--text-dim); margin: 6px 0 0; }
.privacy { margin: 22px auto 0; max-width: 46ch; text-align: left; background: var(--surface-2); border: 1px solid var(--surface-line); border-radius: 18px; padding: 16px 18px; }
.privacy h2 { margin: 0 0 8px; font-size: 1rem; color: var(--primary); text-align: center; }
.privacy p { margin: 8px 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--text-dim); }
.privacy p:first-of-type { margin-top: 0; }
.privacy b { color: var(--text); }
.privacy em { color: var(--primary); font-style: normal; font-weight: 700; }
.auth-foot { text-align: center; color: var(--text-dim); opacity: 0.8; padding: 20px; font-size: 0.85rem; position: relative; z-index: 1; }

/* ══════════════════ shell / topbar ══════════════════ */
#appShell { position: relative; z-index: 1; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px clamp(12px, 3vw, 26px); background: var(--topbar-bg); color: var(--topbar-ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); position: sticky; top: 0; z-index: 30;
}
.brand { font-weight: 1000; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; background: none; box-shadow: none; color: var(--topbar-ink); padding: 4px 6px; }
.brand:hover { transform: none; filter: brightness(1.1); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hello { color: var(--topbar-ink); font-size: 0.95rem; opacity: 0.95; }
.hello .linklike { color: var(--topbar-ink); }
.theme-pick { display: inline-flex; align-items: center; gap: 6px; background: var(--chip-bg); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 10px 4px 12px; font-size: 0.85rem; color: var(--chip-ink); }
.theme-pick select { background: transparent; border: 0; color: var(--chip-ink); font: inherit; font-weight: 800; cursor: pointer; padding: 2px; }
.theme-pick select option { color: #222; }

/* ══════════════════ hub ══════════════════ */
.hub { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; padding: 30px 0 60px; }
.hub-hero { text-align: center; padding: 20px 10px 8px; }
.hub-sub { color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.2rem); margin: 14px auto 0; max-width: 52ch; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 34px; }
.game-card {
  position: relative; text-align: left; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--surface-line); box-shadow: var(--shadow); padding: 0;
  color: var(--text); display: flex; flex-direction: column; min-height: 260px; transition: transform 0.16s var(--ease-spring), box-shadow 0.16s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.22); }
.game-card.locked { cursor: default; opacity: 0.72; }
.game-card.locked:hover { transform: none; }
.game-card .cover { height: 150px; position: relative; overflow: hidden; background: var(--card-grad, linear-gradient(135deg, var(--primary), var(--primary-2))); display: grid; place-items: center; }
.game-card .cover .emoji { font-size: 3.4rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.game-card .cover::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: -30px; bottom: -34px; background: repeating-radial-gradient(circle, rgba(0,0,0,.6) 0 6px, rgba(0,0,0,.78) 6px 9px); box-shadow: 0 0 0 10px rgba(255,255,255,.16); }
.game-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.game-card h3 { margin: 0; font-size: 1.25rem; }
.game-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.4; flex: 1; }
.game-card .cta { margin-top: 8px; align-self: flex-start; font-weight: 900; color: var(--primary); }
.badge-soon { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 9px; border-radius: 999px; }

/* ══════════════════ game ══════════════════ */
.game-hero { text-align: center; padding: 24px 18px 6px; }
.subtitle { margin: 12px auto 0; max-width: 720px; color: var(--text-dim); font-size: clamp(0.95rem, 1.7vw, 1.12rem); }
.hud { width: min(var(--maxw), calc(100% - 28px)); margin: 16px auto 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 12px 14px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.35rem; color: var(--text); }
.stat b span { font-size: inherit; color: inherit; text-transform: none; letter-spacing: normal; }
.stat > span { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.09em; }
.combo-stat b { transition: color 0.15s, transform 0.15s; }
.combo-stat.hot b { color: var(--primary-2); transform: scale(1.18); text-shadow: 0 0 14px var(--primary-2); }
.combo-stat.reset { animation: comboShake 0.4s; }
@keyframes comboShake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* mOCA brand mark */
.brandmark { display: inline-block; font-weight: 1000; letter-spacing: 0.04em; font-size: 0.95rem; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); margin-bottom: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* already-played notice */
/* slim banner telling you whether this run counts */
.mode-banner { width: min(1240px, calc(100% - 22px)); margin: 4px auto 12px; padding: 10px 16px; border-radius: 999px; text-align: center; font-size: 0.95rem; font-weight: 700; border: 1.5px solid; }
.mode-banner b { font-weight: 1000; }
.mode-banner.official { background: color-mix(in srgb, var(--good) 16%, var(--surface)); border-color: color-mix(in srgb, var(--good) 55%, transparent); color: var(--text); }
.mode-banner.practice { background: color-mix(in srgb, var(--primary-2) 16%, var(--surface)); border-color: color-mix(in srgb, var(--primary-2) 55%, transparent); color: var(--text); }

/* screen pop on a fast combo match */
@keyframes popFlash { 0% { box-shadow: inset 0 0 0 0 transparent; } 30% { box-shadow: inset 0 0 60px 0 color-mix(in srgb, var(--primary-2) 40%, transparent); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
#appShell.pop::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 25; animation: popFlash 0.4s ease-out; }
.controls { width: min(var(--maxw), calc(100% - 28px)); margin: 0 auto 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.controls.lifelines { margin-top: -6px; align-items: center; }
.controls.lifelines button { font-size: 0.85rem; padding: 9px 13px; }
.lifeline-label { width: 100%; text-align: center; color: var(--text-dim); font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }

/* Focus mode: once a run starts, hide the pre-game chrome so the board takes center stage */
#gameView.playing .game-hero { display: none; }        /* title lives in the top bar */
#gameView.playing .info-row { display: none; }
#gameView.playing .controls:not(.lifelines) { display: none; }
#gameView.playing .lifeline-label { display: none; }
#gameView.playing .controls.lifelines { margin: 8px auto 6px; }
#gameView.playing .mode-banner { margin-top: 8px; }

/* compact stats bar during play — slim pills instead of tall boxes */
#gameView.playing .hud {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 8px auto 6px; width: min(var(--maxw), calc(100% - 20px));
}
#gameView.playing .stat {
  display: flex; align-items: baseline; gap: 6px;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--tile-shadow);
}
#gameView.playing .stat > span { font-size: 0.62rem; }
#gameView.playing .stat b { font-size: 1.05rem; }
#gameView.playing .combo-stat.hot b { transform: scale(1.05); }

.game-wrap {
  width: min(1240px, calc(100% - 22px)); margin: 0 auto 22px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--surface-line); box-shadow: var(--shadow); position: relative;
}
/* pre-start veil — the board isn't playable until Start is pressed */
.prestart {
  position: absolute; inset: 0; z-index: 6; border-radius: inherit; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  /* Spotlight scrim: near-solid behind the words for legibility, fading to the
     pretty translucent blur at the edges. */
  background: radial-gradient(135% 95% at 50% 50%,
    color-mix(in srgb, var(--surface) 94%, transparent) 0%,
    color-mix(in srgb, var(--surface) 80%, transparent) 46%,
    color-mix(in srgb, var(--surface) 52%, transparent) 100%);
  backdrop-filter: blur(4px);
  color: var(--text); box-shadow: none; text-align: center; padding: 20px;
}
.prestart:hover { transform: none; filter: none; }
.prestart .ps-play { font-size: 2.4rem; color: var(--primary); filter: drop-shadow(0 2px 10px color-mix(in srgb, var(--primary) 55%, transparent)); }
.prestart .ps-title { font-size: 1.4rem; font-weight: 1000; text-shadow: 0 2px 10px color-mix(in srgb, var(--surface) 85%, transparent), 0 1px 2px color-mix(in srgb, var(--surface) 95%, transparent); }
.prestart .ps-sub { font-size: 0.92rem; color: var(--text); opacity: 0.9; font-weight: 700; text-shadow: 0 1px 8px color-mix(in srgb, var(--surface) 85%, transparent); }
[data-theme="midnight"] .game-wrap { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); }
.board { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.section-title { text-align: center; margin: 0 0 12px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-weight: 900; }
.albums { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; }
.names { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-content: start; }

/* square album sleeves */
.album-tile {
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; position: relative; cursor: grab;
  border: 2px solid rgba(255, 255, 255, 0.5); box-shadow: var(--tile-shadow); padding: 0; background: none;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.16s var(--ease-spring), opacity 0.16s, filter 0.16s;
}
.album-tile:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.05); }
.album-tile.selected { outline: 4px solid var(--primary-2); outline-offset: 3px; }
.album-tile.lifted { opacity: 0.28; }
.album-tile.matched { opacity: 0.22; filter: grayscale(0.5); pointer-events: none; }
.album-art { position: absolute; inset: 0; background: var(--grad); display: flex; flex-direction: column; justify-content: flex-end; padding: 9px; overflow: hidden; }
.album-art::before { content: ""; position: absolute; width: 66%; aspect-ratio: 1; border-radius: 50%; right: -16%; top: -16%; background: repeating-radial-gradient(circle, rgba(0,0,0,.5) 0 4px, rgba(0,0,0,.7) 4px 6px); box-shadow: inset 0 0 0 3px rgba(255,255,255,.18); opacity: 0.55; }
.album-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255,255,255,.28), transparent 44%); }
.sleeve-glyph { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(1.7rem, 6.5vw, 2.7rem); filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); z-index: 1; }
/* real cover image (optional) — sits over the stylized art when present */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; border-radius: inherit; }
.sleeve-meta { position: relative; z-index: 2; }
.album-title { font-weight: 1000; font-size: 0.7rem; line-height: 0.98; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.artist { font-size: 0.54rem; color: rgba(255,255,255,.92); font-weight: 800; text-transform: uppercase; }

/* three-word "vibe" overlay — appears on hover (desktop) or when selected (tap) */
.vibe {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(180deg, rgba(15,10,20,.86), rgba(15,10,20,.72)); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.16s ease; pointer-events: none; padding: 8px; text-align: center;
}
.vibe span { color: #fff; font-weight: 900; font-size: 0.78rem; text-transform: lowercase; letter-spacing: 0.02em; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.vibe span:nth-child(2) { color: var(--primary-2); }
.album-tile:hover .vibe { opacity: 1; }
/* when selected (tap/active), gently cross-fade between the cover and the vibe */
.album-tile.selected .vibe { animation: vibeCycle 4s ease-in-out infinite; }
@keyframes vibeCycle {
  0%   { opacity: 0; }   /* album cover */
  20%  { opacity: 1; }   /* fade to vibe */
  45%  { opacity: 1; }   /* hold vibe */
  65%  { opacity: 0; }   /* fade back to cover */
  100% { opacity: 0; }   /* hold cover */
}
.album-tile.matched .vibe, .previewing .vibe { display: none; }

/* preview reveal overlay on tiles */
.reveal-badge { position: absolute; left: 6px; right: 6px; top: 6px; z-index: 3; background: rgba(255,255,255,.96); color: #1a1a1a; border-radius: 999px; padding: 5px 6px; font-weight: 1000; text-align: center; font-size: 0.7rem; box-shadow: 0 6px 14px rgba(0,0,0,.3); display: none; }
.previewing .reveal-badge { display: block; }

/* drop cards (crew) */
.drop-card {
  min-height: 66px; border-radius: 14px; border: 2px dashed var(--surface-line); background: var(--surface-2);
  color: var(--text); display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 12px;
  transition: border-color 0.16s, background 0.16s, transform 0.16s; position: relative; cursor: pointer; font-weight: 800;
}
.drop-card .who { font-size: 1.02rem; }
.drop-card.over { border-color: var(--primary); border-style: solid; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); transform: scale(1.03); }
.drop-card.correct { border-style: solid; border-color: var(--good); cursor: default; padding: 0; overflow: hidden; position: relative; min-height: 96px; align-items: stretch; }
.drop-card.correct .mc-art { position: absolute; inset: 0; background: var(--grad); }
.drop-card.correct .mc-scrim { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(10,7,16,.45) 0%, rgba(10,7,16,.72) 55%, rgba(10,7,16,.9) 100%); }
.drop-card.correct .mc-text { position: relative; z-index: 4; width: 100%; padding: 10px 12px; color: #fff; text-align: left; text-shadow: 0 1px 6px rgba(0,0,0,.8); align-self: flex-end; }
.drop-card.correct .mc-who { font-weight: 1000; font-size: 1.15rem; line-height: 1.05; }
.drop-card.correct .mc-alb { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.92; margin-top: 1px; }
.drop-card.correct .mc-why { font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin-top: 6px; color: #fff; }
.blurb-reveal { font-size: 0.74rem; font-weight: 600; color: var(--text-dim); line-height: 1.3; text-align: left; border-top: 1px solid var(--surface-line); padding-top: 6px; animation: blurbIn 0.42s var(--ease-spring); }
.blurb-reveal .bq { color: var(--primary); font-weight: 900; font-size: 1rem; margin-right: 1px; }
@keyframes blurbIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.drop-card.wrong { animation: shake 0.35s; border-color: var(--bad); }
.drop-card.dimmed { opacity: 0.26; filter: grayscale(0.5); transition: opacity 0.2s; }
.drop-card.glimmer { animation: glimmerFlash 0.28s ease-out; }
@keyframes glimmerFlash {
  0% { box-shadow: 0 0 0 0 transparent; }
  40% { box-shadow: 0 0 12px 2px var(--primary-2), 0 0 0 2px var(--primary-2); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.info-row { text-align: center; margin: -4px auto 12px; }
.drop-card.spotlight { box-shadow: 0 0 0 3px var(--primary-2), 0 10px 24px rgba(0,0,0,.2); }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
.drop-card .matched-mini { display: flex; align-items: center; gap: 8px; }
.drop-card .matched-mini .mm-art { width: 30px; height: 30px; border-radius: 7px; background: var(--grad); flex: 0 0 auto; display: grid; place-items: center; font-size: 0.95rem; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.drop-card .matched-mini .mm-text { text-align: left; line-height: 1.05; }
.drop-card .matched-mini .mm-who { font-size: 0.9rem; }
.drop-card .matched-mini .mm-alb { font-size: 0.62rem; color: var(--text-dim); font-weight: 700; }

/* drag ghost */
.drag-ghost { position: fixed; z-index: 999; pointer-events: none; will-change: transform; box-shadow: 0 24px 50px rgba(0,0,0,.4); border-radius: 14px; }

/* ══════════════════ charts ══════════════════ */
.charts-panel { width: min(860px, calc(100% - 28px)); margin: 0 auto 28px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--surface-line); box-shadow: var(--shadow); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.side-head h2 { margin: 0; font-size: 1.1rem; }
.leaders { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.leaders li { counter-increment: rank; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; margin-bottom: 6px; background: var(--surface-2); }
.leaders li::before { content: counter(rank); font-weight: 900; color: var(--primary-ink); background: var(--primary); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; }
.leaders li:nth-child(1)::before { background: linear-gradient(135deg, #ffd700, #ffb400); color: #4a3200; }
.leaders li:nth-child(2)::before { background: linear-gradient(135deg, #d8d8d8, #a9a9a9); color: #333; }
.leaders li:nth-child(3)::before { background: linear-gradient(135deg, #e0a15e, #b06d33); color: #3a2200; }
.leaders .lname { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders .lscore { font-weight: 900; color: var(--primary); }
.leaders .lmeta { font-size: 0.72rem; color: var(--text-dim); }
.leaders li.you { outline: 2px solid var(--primary-2); background: color-mix(in srgb, var(--primary-2) 12%, var(--surface)); }

.app-foot { text-align: center; color: var(--text-dim); opacity: 0.85; padding: 12px 18px 40px; font-size: 0.85rem; }
.app-foot p { margin: 4px 0; }
.app-foot .foot-brand { font-weight: 900; color: var(--text); opacity: 0.9; font-size: 1rem; }
.app-foot .credit { font-weight: 700; color: var(--text-dim); }
.app-foot .credit-fine { display: inline-block; font-weight: 500; font-size: 0.62em; opacity: 0.85; }

/* big center hint (First initial) — impossible to miss */
.big-hint { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.25s; padding: 20px; }
.big-hint.show { opacity: 1; }
.big-hint::before { content: ""; position: absolute; inset: 0; background: rgba(10, 6, 16, 0.45); backdrop-filter: blur(2px); }
.big-hint .bh-label { position: relative; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; color: #fff; font-size: clamp(0.9rem, 3vw, 1.2rem); text-shadow: 0 2px 12px rgba(0,0,0,.5); margin-bottom: 6px; }
.big-hint .bh-value { position: relative; font-weight: 1000; color: #fff; font-size: clamp(6rem, 32vw, 16rem); line-height: 1; text-shadow: 0 0 30px var(--primary-2), 0 8px 30px rgba(0,0,0,.5); }
.big-hint .bh-sub { position: relative; font-weight: 800; color: #fff; font-size: clamp(1rem, 4vw, 1.6rem); text-shadow: 0 2px 12px rgba(0,0,0,.6); margin-top: 4px; }
.big-hint.show .bh-value { animation: bhPop 0.4s var(--ease-spring); }
@keyframes bhPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* gotcha (decoy) — a name, not a single letter, so smaller value + a wink of color */
.big-hint.gotcha .bh-value { font-size: clamp(2.6rem, 12vw, 5rem); text-shadow: 0 0 26px var(--bad), 0 8px 30px rgba(0,0,0,.5); }
.big-hint.gotcha .bh-label { color: var(--gold, #ffd23f); }

/* start countdown */
.countdown { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(6,4,10,0); transition: background 0.35s; pointer-events: none; }
.countdown.show { background: rgba(6,4,10,0.74); pointer-events: auto; backdrop-filter: blur(3px); }
.cd-num { font-weight: 1000; color: #fff; font-size: clamp(5.5rem, 34vw, 20rem); line-height: 1; text-shadow: 0 0 40px var(--primary-2), 0 10px 40px rgba(0,0,0,.6); }
.cd-num.pop { animation: cdPop 0.55s var(--ease-spring); }
@keyframes cdPop { 0% { transform: scale(0.35); opacity: 0; } 45% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* ══════════════════ toast / dialogs / confetti ══════════════════ */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(160%); transition: transform 0.35s var(--ease-spring); padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 900; box-shadow: var(--shadow); z-index: 200; max-width: 90%; text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); }

dialog { text-align: center; border: 0; border-radius: var(--radius-lg); max-width: 560px; width: calc(100% - 26px); padding: 0; background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(12, 5, 20, 0.66); backdrop-filter: blur(4px); }
.modal { padding: 26px; }
.modal h2 { margin: 0 0 8px; font-size: 1.7rem; }
.modal p { line-height: 1.45; color: var(--text-dim); }
.modal label { display: block; text-align: left; margin-top: 8px; }
.modal input, .modal select { width: 100%; border: 1.5px solid var(--surface-line); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 13px; font-size: 1rem; margin: 8px 0 4px; font-family: inherit; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.scoreline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.scoreline div { background: var(--surface-2); border-radius: 15px; padding: 12px 8px; }
.scoreline b { display: block; font-size: 1.4rem; color: var(--text); }
.scoreline span { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.rankline { font-weight: 900; font-size: 1.1rem; color: var(--primary); }
.leaderboard { margin-top: 14px; background: var(--surface-2); border-radius: 16px; padding: 12px; max-height: 210px; overflow: auto; text-align: left; }

.lifeline-help { text-align: left; margin: 8px 0 0; padding-left: 20px; }
.lifeline-help li { margin: 8px 0; line-height: 1.4; color: var(--text-dim); }
.lifeline-help b { color: var(--text); }
button.danger { background: linear-gradient(135deg, #d32323, #b81d1d); color: #fff; }
.admin-runs { text-align: left; max-height: 300px; overflow: auto; margin: 8px 0; }
.admin-run { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); margin-bottom: 6px; }
.admin-run .ar-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-run .ar-name small { display: block; font-weight: 500; color: var(--text-dim); font-size: 0.72rem; }
.admin-run .ar-score { font-weight: 900; color: var(--primary); }
.admin-run button { padding: 6px 12px; font-size: 0.8rem; }
.admin-sep { border: 0; border-top: 1px solid var(--surface-line); margin: 14px 0 8px; }

/* covers manager */
.covers-list { text-align: left; max-height: 60vh; overflow: auto; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.cover-row { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "thumb info info" "thumb input actions"; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.cover-actions { grid-area: actions; display: flex; flex-direction: column; gap: 4px; }
.cover-actions button { padding: 6px 10px; font-size: 0.78rem; white-space: nowrap; }
.cover-thumb { grid-area: thumb; width: 44px; height: 44px; border-radius: 8px; position: relative; overflow: hidden; background: var(--grad); }
.cover-info { grid-area: info; overflow: hidden; }
.cover-info b { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-info small { color: var(--text-dim); font-size: 0.72rem; }
.cover-row .cover-input { grid-area: input; width: 100%; border: 1.5px solid var(--surface-line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; }
/* admin: manage "why I chose it" stories */
.stories-list { text-align: left; max-height: 60vh; overflow: auto; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.story-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info info" "input save"; gap: 6px 10px; align-items: end; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.story-info { grid-area: info; overflow: hidden; }
.story-info b { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-info small { color: var(--text-dim); font-size: 0.72rem; }
.story-row .story-input { grid-area: input; width: 100%; border: 1.5px solid var(--surface-line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; font-family: inherit; resize: vertical; }
.story-row .story-save { grid-area: save; align-self: end; padding: 6px 12px; font-size: 0.8rem; }
/* admin control room + team roster */
.admin-manage { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.admin-manage button { flex: 1; min-width: 120px; }
.admin-subhead { font-size: 0.95rem; margin: 6px 0 2px; }
.roster-editor { background: var(--surface-2); border-radius: 12px; padding: 10px; margin: 8px 0; }
.roster-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roster-fields input { border: 1.5px solid var(--surface-line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 9px 11px; font-size: 0.9rem; width: 100%; }
.roster-fields .roster-glyph { text-align: center; }
.roster-editor-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.roster-list { text-align: left; max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.roster-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.roster-swatch { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.roster-meta { overflow: hidden; }
.roster-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-meta small { color: var(--text-dim); font-size: 0.75rem; }
.roster-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.roster-actions button { padding: 6px 12px; font-size: 0.8rem; }
.roster-confirm { border: 1.5px solid var(--primary); background: var(--surface); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 0.8rem; width: 150px; }
.shake { animation: shake 0.4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (max-width: 560px) {
  .roster-fields { grid-template-columns: 1fr; }
  .roster-row { grid-template-columns: 36px 1fr; }
  .roster-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
/* admin: designate admins */
.members-list { text-align: left; max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.member-meta { overflow: hidden; }
.member-meta b { display: flex; align-items: center; gap: 6px; }
.member-meta small { color: var(--text-dim); font-size: 0.75rem; }
.badge-admin { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: var(--primary); color: #fff; padding: 1px 6px; border-radius: 999px; }
.member-toggle { padding: 6px 12px; font-size: 0.8rem; white-space: nowrap; }
/* iTunes cover picker */
.picker-search { display: flex; gap: 8px; margin: 8px 0; }
.picker-search input { flex: 1; border: 1.5px solid var(--surface-line); background: var(--surface-2); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 0.9rem; }
.picker-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 52vh; overflow: auto; text-align: center; }
.picker-cover { padding: 6px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.picker-cover:hover { border-color: var(--primary); transform: translateY(-2px); }
.picker-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.picker-cover span { font-size: 0.62rem; color: var(--text-dim); line-height: 1.1; max-height: 2.4em; overflow: hidden; }

.confetti { position: fixed; top: -10px; width: 10px; height: 18px; pointer-events: none; z-index: 300; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.6; } }

/* ══════════════════ responsive ══════════════════ */
@media (max-width: 880px) {
  .hud { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: 1fr; }
  .albums { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
  .names { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 470px) {
  .game-wrap { padding: 10px; }
  .albums { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .names { grid-template-columns: 1fr 1fr; gap: 8px; }
  .album-title { font-size: 0.6rem; }
  .artist { font-size: 0.46rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.05ms !important; scroll-behavior: auto; }
  /* don't let the sped-up cross-fade hide the vibe — just show it */
  .album-tile.selected .vibe { animation: none !important; opacity: 1; }
}

/* subtle easter-egg breadcrumb on the win screen */
.konami-hint { margin-top: 14px; text-align: center; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--text-dim); opacity: 0.45; }
.konami-hint:hover { opacity: 0.7; }

/* the flash that fires the instant the Konami code is entered */
.konami-flash { position: fixed; inset: 0; z-index: 99998; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(34,225,255,0.55), rgba(255,54,200,0.4) 40%, transparent 72%);
  animation: konamiFlash 0.5s ease-out forwards; }
@keyframes konamiFlash { from { opacity: 0.95; } to { opacity: 0; } }

/* ══════════════════ NEON INVADERS (Konami easter egg) ══════════════════ */
#invadersRoot {
  position: fixed; inset: 0; z-index: 99999; display: none; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #2a0a4a 0%, #10021f 55%, #05010c 100%);
  font-family: "Courier New", ui-monospace, monospace; color: #eafcff; user-select: none;
}
#invadersRoot.show { display: grid; }
.inv-scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0, rgba(0,0,0,0.28) 1px, transparent 2px, transparent 3px);
  mix-blend-mode: multiply; animation: invFlicker 5s infinite; }
@keyframes invFlicker { 0%,97%,100% { opacity: 0.6; } 98% { opacity: 0.35; } 99% { opacity: 0.7; } }
.inv-close { position: absolute; top: 14px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 2px solid #ff36c8; color: #ff36c8; font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 0 12px #ff36c8, inset 0 0 8px rgba(255,54,200,0.4); }
.inv-close:hover { background: rgba(255,54,200,0.15); }
.inv-hud { position: absolute; top: 16px; left: 0; right: 0; z-index: 4; display: flex; gap: 22px; justify-content: center;
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: #57ff70; text-shadow: 0 0 8px #57ff70; }
.inv-hud b { color: #ffe24a; text-shadow: 0 0 8px #ffe24a; }
.inv-lives { color: #22e1ff; text-shadow: 0 0 8px #22e1ff; letter-spacing: 0.15em; }
#invCanvas { aspect-ratio: 64 / 78; height: min(86vh, 780px); width: auto; max-width: 96vw; z-index: 1;
  border: 2px solid rgba(34,225,255,0.5); border-radius: 8px;
  box-shadow: 0 0 30px rgba(34,225,255,0.35), 0 0 80px rgba(181,123,255,0.25); background: #05010c; }
.inv-splash { position: absolute; inset: 0; z-index: 6; display: none; place-content: center; justify-items: center; gap: 12px;
  text-align: center; padding: 24px; background: rgba(5,1,12,0.72); backdrop-filter: blur(2px); }
.inv-title { font-size: clamp(2rem, 7vw, 4rem); font-weight: 900; letter-spacing: 0.06em; line-height: 1;
  color: #fff; text-shadow: 0 0 8px #22e1ff, 0 0 18px #ff36c8, 4px 4px 0 #b57bff; animation: invHue 6s linear infinite; }
@keyframes invHue { to { filter: hue-rotate(360deg); } }
.inv-sub { color: #ff36c8; text-shadow: 0 0 10px #ff36c8; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; }
.inv-instr { margin-top: 6px; color: #eafcff; font-size: 1rem; letter-spacing: 0.05em; }
.inv-instr span { color: #ffe24a; text-shadow: 0 0 8px #ffe24a; font-weight: 700; padding: 0 2px; }
.inv-hi { color: #57ff70; text-shadow: 0 0 8px #57ff70; letter-spacing: 0.08em; }
.inv-hi b { color: #ffe24a; }
.inv-key { margin-top: 10px; font-size: 1.05rem; font-weight: 700; color: #22e1ff; text-shadow: 0 0 12px #22e1ff; animation: invBlink 1s steps(2) infinite; }
@keyframes invBlink { 50% { opacity: 0.25; } }
.inv-big { font-size: clamp(2.2rem, 8vw, 4.5rem); font-weight: 900; color: #ff4d5e; text-shadow: 0 0 12px #ff4d5e, 4px 4px 0 #b57bff; }
.inv-score { color: #ffe24a; text-shadow: 0 0 10px #ffe24a; font-size: 1.2rem; letter-spacing: 0.1em; }
.inv-champ { color: #57ff70; font-weight: 900; font-size: 1.2rem; text-shadow: 0 0 12px #57ff70; animation: invBlink 0.6s steps(2) infinite; }
.inv-board { margin-top: 6px; min-width: min(320px, 80vw); }
.inv-btitle { color: #b57bff; text-shadow: 0 0 8px #b57bff; letter-spacing: 0.2em; margin: 8px 0 4px; }
.inv-brow { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 2px 8px; font-size: 0.95rem; color: #eafcff; }
.inv-brow.you { color: #ffe24a; text-shadow: 0 0 8px #ffe24a; }
.inv-brow span:last-child { color: #57ff70; }
