/* Chroma Keys — dark, glowing, color-first. */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, #1d1d38 0%, #101020 55%, #0b0b16 100%);
  color: #eceaf6;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }

.screen { display: none; }
.screen.active { display: block; }
#main { max-width: 1060px; margin: 0 auto; padding: 18px 20px 80px; position: relative; z-index: 1; }

/* FX layers: nebula behind the UI, fireworks above it — never block clicks */
#fx-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
#fx-fg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; }
.hidden { display: none !important; }
.muted { color: #8b8ba8; }

/* ---------- splash ---------- */
#screen-splash.active {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(900px 700px at 50% 30%, #191932 0%, #0b0b16 70%);
}
.splash-inner { text-align: center; }
#splash-orb { width: 260px; height: 260px; display: block; margin: 0 auto 18px; }
.splash-title { font-size: 54px; letter-spacing: 2px; font-weight: 200; }
.splash-title span { font-weight: 700; background: linear-gradient(90deg,#e04fa0,#e0c34f,#4fc3e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-sub { color: #9a97b8; margin: 8px 0 34px; font-size: 17px; }
.btn-begin {
  font-size: 22px; padding: 16px 52px; border-radius: 40px; border: none; color: #10101e;
  background: linear-gradient(90deg, #e04fa0, #e0c34f, #4fc3e0);
  box-shadow: 0 0 34px rgba(224, 79, 160, .45);
  transition: transform .15s, box-shadow .15s;
}
.btn-begin:hover { transform: scale(1.05); box-shadow: 0 0 50px rgba(79, 195, 224, .55); }
.btn-begin:disabled { opacity: .7; cursor: default; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; background: rgba(14, 14, 26, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid #26263e;
}
.tb-brand { background: none; border: none; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.tb-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.tb-nav button {
  background: none; border: 1px solid transparent; color: #b9b6d4; padding: 6px 13px;
  border-radius: 18px; font-size: 14px;
}
.tb-nav button:hover { color: #fff; border-color: #3a3a5e; }
.tb-nav button.active { color: #fff; border-color: #5a5ab0; background: #232343; }
.tb-xp { margin-left: auto; color: #e0c34f; font-size: 14px; white-space: nowrap; }

/* ---------- shared ---------- */
.screen-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 0 18px; }
.screen-head h2 { font-size: 26px; font-weight: 600; }
.btn {
  background: #232343; color: #e8e6f5; border: 1px solid #35355c;
  padding: 10px 18px; border-radius: 12px; font-size: 15px;
  transition: background .12s, transform .12s;
}
.btn:hover { background: #2d2d55; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(90deg,#3b7bd8,#4fc3e0); border: none; color: #0d0d1a; font-weight: 600; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.danger-btn { border-color: #7c3446; color: #ff9aae; }
.back-btn { font-size: 14px; }

.voice-strip { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.voice-label { color: #8b8ba8; font-size: 13px; margin-right: 3px; }
.voice-btn {
  background: #1c1c34; border: 1px solid #30304f; color: #b9b6d4;
  padding: 6px 12px; border-radius: 16px; font-size: 13px;
}
.voice-btn.active { background: #34346a; color: #fff; border-color: #5a5ab0; }
.voice-forced { color: #e0885a; font-size: 14px; }

.stars .star { color: #3a3a5c; font-size: 18px; }
.stars .star.on { color: #e0c34f; text-shadow: 0 0 8px rgba(224,195,79,.6); }

.swatch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 52px; border-radius: 12px; padding: 0 10px;
  font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.big-swatch { min-width: 96px; height: 96px; border-radius: 20px; font-size: 22px; }

#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1d1d36; border: 1px solid #e0c34f; border-radius: 14px; padding: 12px 18px;
  opacity: 0; transform: translateX(30px); transition: all .35s; max-width: 300px;
}
.toast.show { opacity: 1; transform: none; }
.toast-title { font-weight: 700; }
.toast-sub { color: #9a97b8; font-size: 13px; margin-top: 2px; }

/* ---------- home / journey ---------- */
.journey { display: flex; flex-direction: column; gap: 18px; }
.tier-card {
  background: linear-gradient(160deg, rgba(25,25,48,.82) 0%, rgba(20,20,42,.82) 100%);
  border: 1px solid #29294a; border-radius: 20px; padding: 20px 22px;
}
.tier-card.locked { opacity: .55; filter: saturate(.4); }
.tier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tier-num { color: #6f6c96; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.tier-title { font-size: 22px; margin: 2px 0 4px; }
.tier-sub { color: #9a97b8; font-size: 14px; }
.tier-stars { color: #e0c34f; white-space: nowrap; font-size: 14px; }
.level-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.level-node {
  min-width: 130px; padding: 12px 14px; border-radius: 14px; text-align: center;
  background: #222246; border: 1px solid #3a3a66; color: #e8e6f5;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  transition: transform .12s, box-shadow .12s;
}
.level-node:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(80,80,200,.25); }
.level-node.locked { background: #17172b; color: #5b5878; border-color: #26263e; cursor: default; }
.level-node.locked:hover { transform: none; box-shadow: none; }
.level-node.done { border-color: #58589e; }
.level-node.checkpoint { border: 1px solid #9a5ab0; background: #2a2050; }
.learn-node { background: #1a2c3e; border-color: #2f5a7c; }
.ln-title { font-size: 14px; font-weight: 600; }
.ln-lock { font-size: 15px; }

/* ---------- learn ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.learn-card {
  display: flex; gap: 14px; background: rgba(23,23,44,.85); border: 1px solid #29294a;
  border-radius: 18px; padding: 16px;
}
.learn-card.note-card { flex-direction: column; align-items: center; gap: 10px; }
.learn-orb { width: 110px; height: 110px; flex: none; }
.learn-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.learn-name { font-size: 17px; }
.learn-sym { color: #8fd0e8; font-size: 13px; font-family: Consolas, monospace; }
.learn-line { color: #9a97b8; font-size: 13.5px; line-height: 1.45; }
.learn-notes { display: flex; gap: 6px; flex-wrap: wrap; }
.learn-notes .swatch { min-width: 40px; height: 34px; font-size: 12.5px; border-radius: 8px; }
.play-btn { align-self: flex-start; }

/* ---------- quiz ---------- */
.quiz-titles h2 { font-size: 22px; }
.quiz-tier-name { color: #6f6c96; font-size: 13px; }
.quiz-hud { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hud-chip { background: #1c1c34; border: 1px solid #30304f; border-radius: 14px; padding: 6px 14px; font-size: 14px; }
.hud-chip.streak { color: #e0885a; }
.timer-bar { flex: 1; min-width: 120px; height: 10px; border-radius: 6px; background: #1c1c34; overflow: hidden; display: none; }
.timer-bar.on { display: block; }
.timer-fill { height: 100%; width: 100%; background: linear-gradient(90deg,#4fc3e0,#3b7bd8); transition: width .05s linear; }
.timer-fill.low { background: linear-gradient(90deg,#e05a5a,#d83b6b); }

.quiz-stage { display: flex; flex-direction: column; gap: 16px; }
.quiz-prompt { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.teach-banner, .orb-only-banner {
  font-size: 18px; padding: 10px 22px; border-radius: 14px; text-align: center;
}
.teach-banner { background: #1a2c3e; border: 1px solid #2f5a7c; }
.teach-stage {
  background: rgba(23,23,44,.85); border: 1px solid #29294a; border-radius: 20px;
  padding: 18px 24px; text-align: center; max-width: 760px;
}
.ts-name { font-size: 24px; margin-bottom: 4px; }
.ts-line { color: #9a97b8; margin-bottom: 8px; }
.ts-canvas { width: 100%; max-width: 680px; }
.orb-only-banner { background: #2a2050; border: 1px solid #9a5ab0; }
.prog-key { font-size: 20px; font-weight: 600; color: #8fd0e8; }
.q-visual { display: flex; justify-content: center; }
.q-orb { width: 220px; height: 220px; }
.swatch-row { display: flex; gap: 10px; }
.quiz-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.stealth-chip {
  color: #a8a8c4; background: rgba(60,60,90,.4); border: 1px dashed #4a4a74;
  border-radius: 14px; padding: 6px 14px; font-size: 13.5px;
}

.input-hint { color: #9a97b8; font-size: 14px; text-align: center; margin-bottom: 10px; }
.quiz-input { text-align: center; }
.answer-grid { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 860px; margin: 0 auto; }
.answer-btn {
  background: #222246; border: 1px solid #3a3a66; color: #e8e6f5;
  border-radius: 12px; padding: 12px 16px; font-size: 16px; min-width: 62px;
  transition: transform .1s, background .1s;
}
.answer-btn:hover { transform: translateY(-2px); background: #2c2c58; }
.answer-btn.picked { background: #34346a; border-color: #7a7ae0; }
.answer-btn.swatch-btn { width: 62px; height: 62px; border: 2px solid rgba(255,255,255,.2); }
.chord-btn { display: flex; flex-direction: column; gap: 2px; align-items: center; min-width: 118px; }
.cb-name { font-size: 13.5px; }
.cb-sym { font-size: 12px; color: #8fd0e8; font-family: Consolas, monospace; }
.inv-seg { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.inv-btn { background: #1c1c34; border: 1px solid #30304f; color: #b9b6d4; padding: 9px 18px; border-radius: 20px; }
.inv-btn.picked { background: #34346a; color: #fff; border-color: #7a7ae0; }

.prog-slots { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.prog-slot {
  min-width: 74px; height: 52px; font-size: 19px; border-radius: 12px;
  background: #17172c; border: 2px dashed #3a3a66; color: #7a77a0;
}
.prog-slot.filled { border-style: solid; color: #fff; background: #222246; }

.verdict { font-size: 60px; text-align: center; }
.verdict.good { color: #3dbf6e; }
.verdict.bad { color: #d84b6b; }

.reveal-panel {
  background: #17172c; border-radius: 20px; padding: 20px 24px; margin-top: 6px;
  border: 1px solid #29294a;
}
.reveal-panel.good { border-color: #2c6a46; }
.reveal-panel.bad { border-color: #7c3446; }
.reveal-panel.partial { border-color: #7c6234; }
.reveal-verdict { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.reveal-panel.good .reveal-verdict { color: #3dbf6e; }
.reveal-panel.bad .reveal-verdict { color: #ff8aa4; }
.reveal-panel.partial .reveal-verdict { color: #e0c34f; }
.reveal-name { font-size: 22px; margin-bottom: 4px; }
.reveal-line { color: #9a97b8; margin-bottom: 12px; }
.reveal-piano { margin: 10px 0; }
.reveal-controls { display: flex; gap: 10px; margin: 8px 0; }
.next-btn { margin-top: 14px; font-size: 17px; padding: 12px 30px; }

.compare { margin-top: 16px; border-top: 1px solid #29294a; padding-top: 14px; }
.compare-title { font-weight: 600; margin-bottom: 10px; }
.compare-row { display: flex; gap: 22px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.compare-cell { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.compare-cell.yours .compare-label { color: #ff8aa4; }
.compare-cell.right .compare-label { color: #3dbf6e; }
.mini-orb { width: 110px; height: 110px; }
.compare-label { font-size: 14px; }

.prog-board { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.prog-cell { text-align: center; padding: 10px; border-radius: 14px; background: #14142a; border: 1px solid #29294a; }
.prog-cell.ok { border-color: #2c6a46; }
.prog-cell.miss { border-color: #7c3446; }
.prog-cell-label { font-weight: 700; margin-top: 6px; }
.prog-cell-chord { color: #8fd0e8; font-size: 13px; }

.level-summary { text-align: center; padding: 40px 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.level-summary h2 { font-size: 32px; }
.level-summary .stars .star { font-size: 40px; }
.sum-line { color: #b9b6d4; font-size: 17px; }
.sum-controls { display: flex; gap: 12px; margin-top: 10px; }

/* ---------- piano ---------- */
.piano { position: relative; height: 150px; user-select: none; touch-action: none; }
.piano-mini { height: 100px; max-width: 560px; }
.pkey { position: absolute; top: 0; border-radius: 0 0 6px 6px; }
.pkey.white {
  height: 100%; background: #f2f0fa; border: 1px solid #b9b4d0; z-index: 1;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08);
}
.pkey.black {
  height: 62%; background: #23223a; border: 1px solid #0e0d1c; z-index: 2;
  box-shadow: inset 0 -4px 0 rgba(255,255,255,.06);
}
.pkey.down, .pkey.white.down, .pkey.black.down {
  background: var(--flash, #8fd0e8) !important;
  box-shadow: 0 0 16px var(--flash, #8fd0e8);
}
.pkey.tinted { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.pkey.tinted.black { filter: brightness(.55); }
.pkey.lit { box-shadow: 0 0 18px rgba(255,255,255,.35), inset 0 0 0 2px #fff; z-index: 3; }
.pkey-label { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #55527a; pointer-events: none; }

/* ---------- sandbox ---------- */
.challenge-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(26, 32, 62, .9); border: 1px solid #3f4a8a; border-radius: 14px;
  padding: 10px 16px; margin-bottom: 14px; font-size: 16px;
}
.ch-label { color: #8fd0e8; font-weight: 600; }
.ch-name { font-size: 18px; font-weight: 700; }
.ch-streak { color: #e0885a; font-weight: 600; }
.ch-built { color: #3dbf6e; font-size: 19px; font-weight: 700; }

.sandbox-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.sandbox-orb { width: 250px; height: 250px; }
.sandbox-name { font-size: 24px; font-weight: 600; min-height: 32px; }
.sandbox-piano { margin-top: 12px; }
.sandbox-piano .piano { height: 190px; }

/* ---------- tuning ---------- */
.tuning-intro { color: #b9b6d4; max-width: 640px; margin-bottom: 16px; line-height: 1.5; }
.tuning-piano { margin-bottom: 20px; max-width: 720px; }
.tuning-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 20px; }
.tuning-row {
  display: flex; align-items: center; gap: 10px; background: #17172c;
  border: 1px solid #29294a; border-radius: 14px; padding: 10px;
  transition: box-shadow .3s;
}
.tuning-row.flash { box-shadow: 0 0 20px rgba(143, 208, 232, .5); }
.tuning-row input[type=color] { width: 46px; height: 40px; border: none; background: none; cursor: pointer; }
.setting-row { margin: 14px 0; font-size: 15px; }
.setting-row input[type=checkbox] { width: 18px; height: 18px; margin-left: 8px; vertical-align: middle; }
.palette-io { background: #17172c; border: 1px solid #29294a; border-radius: 16px; padding: 18px; max-width: 720px; }
.palette-io h3 { margin-bottom: 10px; }
.io-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.code-box {
  width: 100%; background: #10101e; border: 1px solid #30304f; color: #8fd0e8;
  font-family: Consolas, monospace; font-size: 13px; padding: 10px; border-radius: 10px;
}
.io-status { margin-top: 8px; font-size: 14px; min-height: 20px; }
.io-status.ok { color: #3dbf6e; }
.io-status.err { color: #ff8aa4; }

/* ---------- stats ---------- */
.stats-top { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-chip { background: #17172c; border: 1px solid #29294a; border-radius: 14px; padding: 12px 20px; text-align: center; }
.sc-val { font-size: 24px; font-weight: 700; color: #8fd0e8; }
.sc-label { color: #8b8ba8; font-size: 12.5px; margin-top: 2px; }
.heat-group { margin-bottom: 20px; }
.heat-group h3 { margin-bottom: 10px; color: #b9b6d4; }
.heat-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.heat-cell { border-radius: 12px; padding: 8px 12px; min-width: 96px; background: #1c1c34; }
.heat-cell.empty { color: #5b5878; }
.hc-label { font-size: 12.5px; font-weight: 600; }
.hc-acc { font-size: 17px; font-weight: 700; }
.hc-n { font-size: 11px; opacity: .8; }
.streak-cell { color: #e8e6f5; }
.time-chart-box { background: #17172c; border: 1px solid #29294a; border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.time-chart { width: 100%; max-width: 660px; }

/* ---------- trophies ---------- */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.trophy-card { background: #17172c; border: 1px solid #29294a; border-radius: 16px; padding: 16px; opacity: .55; }
.trophy-card.earned { opacity: 1; border-color: #7c6234; box-shadow: 0 0 22px rgba(224,195,79,.12); }
.trophy-icon { font-size: 26px; margin-bottom: 6px; }
.trophy-name { font-size: 16px; margin-bottom: 4px; }
.trophy-desc { color: #9a97b8; font-size: 13.5px; }
.trophy-date { color: #e0c34f; font-size: 12px; margin-top: 8px; }

/* ---------- settings ---------- */
.settings-box { max-width: 640px; display: flex; flex-direction: column; gap: 6px; }
.setting-row label { color: #b9b6d4; }
.setting-row input[type=range] { width: 260px; margin-left: 12px; vertical-align: middle; }
.fork-line { color: #6f6c96; font-size: 13.5px; margin: 18px 0 4px; cursor: default; user-select: none; }
.setting-row.secret { background: #201a38; border: 1px dashed #9a5ab0; border-radius: 12px; padding: 12px; }
.setting-row.danger { margin-top: 30px; }

@media (max-width: 640px) {
  .splash-title { font-size: 38px; }
  #main { padding: 12px 12px 60px; }
  .q-orb { width: 170px; height: 170px; }
  .piano { height: 120px; }
}

/* ---------- iPad / touch (standalone PWA) ---------- */
html, body { overscroll-behavior: none; }
body { -webkit-text-size-adjust: 100%; }
.piano, .pkey { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button { touch-action: manipulation; }
.topbar { padding-left: calc(20px + env(safe-area-inset-left)); padding-right: calc(20px + env(safe-area-inset-right)); padding-top: calc(10px + env(safe-area-inset-top)); }
#main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (pointer: coarse) {
  .btn, .answer-btn, .voice-btn, .inv-btn, .tb-nav button { min-height: 44px; }
  .answer-btn { min-width: 64px; font-size: 17px; }
  .piano { height: 210px; }
  .sandbox-piano .piano { height: 280px; }
  .tuning-piano .piano { height: 200px; }
  .piano-mini { height: 120px; }
  .level-node { min-height: 64px; }
  .tuning-row input[type=color] { width: 56px; height: 48px; }
}
.octave-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 8px 0; }
.octave-label { color: #8fd0e8; min-width: 84px; text-align: center; font-size: 15px; }

/* ---------- touch color picker ---------- */
.ck-picker {
  position: fixed; inset: 0; z-index: 80; background: rgba(8,8,16,.55);
  display: flex; align-items: center; justify-content: center;
}
.ck-picker-card {
  background: #17172c; border: 1px solid #3a3a66; border-radius: 20px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  width: min(92vw, 380px);
}
.ckp-head { display: flex; align-items: center; gap: 12px; }
.ckp-preview { width: 52px; height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.ckp-title { flex: 1; font-size: 17px; font-weight: 600; }
.ckp-sv { width: 100%; border-radius: 12px; touch-action: none; cursor: crosshair; }
.ckp-hue { width: 100%; border-radius: 10px; touch-action: none; cursor: crosshair; }
.ckp-foot { display: flex; gap: 10px; align-items: center; }
.ckp-hex {
  flex: 1; background: #10101e; border: 1px solid #30304f; color: #8fd0e8;
  font-family: Consolas, monospace; font-size: 15px; padding: 10px; border-radius: 10px;
}
.tuning-swatch { cursor: pointer; min-width: 76px; height: 56px; }

/* ---------- naV Studios: ident + credits ---------- */
.nv-presents { color: #8fa3d9; letter-spacing: 3px; font-size: 14px; text-transform: uppercase; margin-bottom: 6px; }
#nv-ident {
  position: fixed; inset: 0; z-index: 200; background: radial-gradient(900px 700px at 50% 40%, #141b33 0%, #070a16 75%);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity .45s;
}
#nv-ident.nv-out { opacity: 0; pointer-events: none; }
#nv-ident svg { width: min(70vw, 620px); }
#nv-ident .nv-e { stroke-dasharray: 700; stroke-dashoffset: 700; }
#nv-ident.nv-run .nv-e { animation: nv-draw 1.1s ease forwards; }
#nv-ident.nv-run .nv-e4 { animation-delay: .25s; }
#nv-ident.nv-run .nv-e5 { animation-delay: .45s; }
@keyframes nv-draw { to { stroke-dashoffset: 0; } }
#nv-ident .nv-d { opacity: 0; transform-box: fill-box; transform-origin: center; }
#nv-ident .nv-d.nv-on { opacity: 1; animation: nv-bloom .5s ease; }
@keyframes nv-bloom { 0% { transform: scale(0.2); } 60% { transform: scale(1.8); } 100% { transform: scale(1); } }
#nv-ident .nv-word { opacity: 0; transition: opacity .6s; }
#nv-ident .nv-word.nv-on { opacity: 1; }
#nv-byline {
  text-align: center; color: #55527a; font-size: 13px; letter-spacing: 1px;
  margin: 26px 0 4px; cursor: pointer; user-select: none;
}
#nv-byline:hover { color: #8fa3d9; }
#nv-credits {
  position: fixed; inset: 0; z-index: 120; background: rgba(7,10,22,.8);
  display: flex; align-items: center; justify-content: center;
}
#nv-credits-card {
  background: #10142a; border: 1px solid #3b4a7a; border-radius: 22px;
  padding: 24px 34px; text-align: center; max-width: 420px;
}
#nv-credits-logo svg { width: 250px; }
#nv-credits h2 { margin: 4px 0 2px; }
#nv-credits .nv-ver { color: #6f6c96; font-size: 13px; }
#nv-credits .nv-line { color: #8fa3d9; margin-top: 10px; letter-spacing: 1px; }
#nv-credits .nv-story { color: #cfcae8; margin: 8px 0 4px; font-style: italic; }
#nv-credits .nv-hint { color: #55527a; font-size: 12.5px; margin-bottom: 12px; }
#nv-credits .nv-btns { display: flex; gap: 10px; justify-content: center; }
.nv-tappable { cursor: pointer; pointer-events: all; }
.nv-ping { animation: nv-bloom .45s ease; transform-box: fill-box; transform-origin: center; }
.nv-chordglow { animation: nv-glow 1.3s ease; }
@keyframes nv-glow { 0% { filter: brightness(1); } 30% { filter: brightness(1.9) saturate(1.4); } 100% { filter: brightness(1); } }
