:root {
  --bg-0: #050507;
  --bg-1: #0b0b10;
  --bg-2: #11121a;
  --ink-0: #ffffff;
  --ink-1: #e8dfc8;
  --ink-2: #b0a890;
  --lav: #efe4ff;
  --lav-dim: rgba(239, 228, 255, 0.34);
  --lav-glow: rgba(239, 228, 255, 0.7);
  --amber: #ffc566;
  --teal: #7af0d2;
  --rose: #ff8fae;
  --red: #ff7575;
  --line: rgba(239, 228, 255, 0.28);
  --screen-bg: #06080b;
  --screen-edge: rgba(239, 228, 255, 0.32);
  --focus: var(--lav);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: "SF Mono", "JetBrains Mono", "Menlo", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.04em;
}

body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(216, 200, 255, 0.06), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(95, 226, 196, 0.05), transparent 55%),
    var(--bg-0);
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ───────── SPLASH ───────── */
.splash {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #000;
  animation: splashFade 3.6s ease forwards;
  z-index: 10;
}
.splash-mark {
  font-size: 44px;
  letter-spacing: 0.22em;
  color: var(--lav);
  text-shadow: 0 0 18px var(--lav-glow);
  opacity: 0;
  animation: markIn 1.4s ease 0.2s forwards;
}
.splash-mark .plus { margin: 0 0.25em; opacity: 0.85; }
.splash-sub {
  margin-top: 22px;
  font-size: 16px;
  letter-spacing: 0.5em;
  color: var(--ink-2);
  opacity: 0;
  animation: subIn 1s ease 1.4s forwards;
}
@keyframes markIn {
  0%   { opacity: 0; letter-spacing: 0.5em; filter: blur(6px); }
  100% { opacity: 1; letter-spacing: 0.22em; filter: blur(0); }
}
@keyframes subIn {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes splashFade {
  0%, 70% { opacity: 1; }
  100%    { opacity: 0; visibility: hidden; }
}

/* ───────── WALKTHROUGH ───────── */
.walk {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(216, 200, 255, 0.08), transparent 60%),
    var(--bg-0);
  z-index: 8;
  animation: gameIn 0.6s ease both;
}
.walk-screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center;
  padding: 46px 50px 96px;
}
.walk[data-step="0"] .walk-screen[data-step="0"],
.walk[data-step="1"] .walk-screen[data-step="1"],
.walk[data-step="2"] .walk-screen[data-step="2"],
.walk[data-step="3"] .walk-screen[data-step="3"] {
  display: flex;
  animation: walkIn 0.4s ease both;
}
@keyframes walkIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.walk-eyebrow {
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.walk-title {
  font-size: 44px;
  letter-spacing: 0.18em;
  color: var(--lav);
  text-shadow: 0 0 20px var(--lav-glow);
  margin-bottom: 22px;
  font-weight: 400;
}
.walk-body {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-0);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  max-width: 480px;
}
.walk-body.small { font-size: 16px; color: var(--ink-1); }
.walk-body .hl { color: var(--lav); text-shadow: 0 0 8px var(--lav-glow); }

.walk-list {
  list-style: none;
  text-align: left;
  font-size: 20px;
  line-height: 1.9;
  color: var(--ink-0);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.walk-list li::before {
  content: '▸ ';
  color: var(--teal);
  margin-right: 6px;
}
.walk-list .hl {
  color: var(--lav);
  text-shadow: 0 0 8px var(--lav-glow);
  display: inline-block;
  width: 110px;
}

.walk-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 22px;
  width: 100%;
}
.walk-stage {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-1);
}
.walk-stage .g {
  font-size: 26px;
  color: var(--lav);
  text-shadow: 0 0 10px var(--lav-glow);
}

.walk-keys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  width: 100%;
}
.walk-key {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink-1);
}
.walk-key .g {
  font-size: 26px;
  color: var(--lav);
  text-shadow: 0 0 10px var(--lav-glow);
}

.walk-nav {
  position: absolute;
  bottom: 56px;
  left: 50px; right: 50px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.wbtn {
  flex: 1;
  max-width: 220px;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.2em;
  color: var(--ink-0);
  background: rgba(216, 200, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wbtn-primary {
  color: var(--lav);
  border-color: var(--lav-dim);
  background: rgba(216, 200, 255, 0.08);
  text-shadow: 0 0 10px var(--lav-glow);
}

.walk-dots {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
}
.walk-dots i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(216, 200, 255, 0.18);
}
.walk-dots i.on {
  background: var(--lav);
  box-shadow: 0 0 8px var(--lav-glow);
}

/* ───────── NAMING SCREEN ───────── */
.name-display {
  font-family: inherit;
  font-size: 38px;
  letter-spacing: 0.2em;
  color: var(--lav);
  text-shadow: 0 0 16px var(--lav-glow);
  padding: 18px 28px;
  border: 1px solid var(--lav-dim);
  border-radius: 8px;
  background: rgba(216, 200, 255, 0.05);
  margin-bottom: 12px;
  min-width: 360px;
  width: 100%;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  caret-color: var(--lav);
}
.name-display:focus {
  border-color: var(--lav);
  box-shadow: 0 0 0 2px var(--lav-dim);
}
.name-display.listening {
  animation: listening 0.9s ease-in-out infinite;
  border-color: var(--teal);
  color: var(--teal);
  text-shadow: 0 0 16px var(--teal);
}
@keyframes listening {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95, 226, 196, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(95, 226, 196, 0); }
}
.name-status {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-2);
  margin-bottom: 22px;
  min-height: 16px;
}
.name-actions {
  display: flex; gap: 14px;
  margin-bottom: 8px;
}
.nbtn {
  flex: 1;
  min-width: 140px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--ink-0);
  background: rgba(216, 200, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 8px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all 0.15s ease;
}
.nbtn .ng {
  font-size: 24px;
  color: var(--lav);
  text-shadow: 0 0 10px var(--lav-glow);
}
.nbtn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.nbtn-disabled .ng {
  color: var(--ink-2);
  text-shadow: none;
}
.speak-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.coming-soon {
  font-size: 9px;
  color: var(--ink-2);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

/* ───────── EGG SELECT ───────── */
.egg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 8px;
}
.egg-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px;
  background: rgba(216, 200, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}
.egg-card.selected {
  background: rgba(216, 200, 255, 0.10);
  border-color: var(--lav);
  box-shadow: 0 0 0 1px var(--lav-glow), inset 0 0 18px rgba(216, 200, 255, 0.10);
}
.egg-card.selected .egg-label { color: var(--lav); text-shadow: 0 0 8px var(--lav-glow); }

.egg-canvas {
  width: 100px;
  height: 120px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 10px rgba(216, 200, 255, 0.35));
}
.egg-card[data-variant="jade"] .egg-canvas { filter: drop-shadow(0 0 10px rgba(95, 226, 196, 0.45)); }
.egg-card[data-variant="ember"] .egg-canvas { filter: drop-shadow(0 0 10px rgba(255, 122, 156, 0.45)); }

.welcome-creature {
  display: block;
  width: 220px;
  height: 160px;
  margin: 8px auto 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 10px rgba(216, 200, 255, 0.45));
}

.egg-label {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink-1);
}

.wbtn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

/* ───────── DEVICE FRAME ───────── */
.game {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  animation: gameIn 0.8s ease both;
}
@keyframes gameIn {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

.device {
  width: 580px;
  height: 580px;
  position: relative;
}
.device-frame {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #14121c 0%, #0a090f 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(216, 200, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column;
}
.device-screen {
  flex: 1;
  background: var(--screen-bg);
  border: 1px solid var(--screen-edge);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.device-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 8px 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-1);
}
.device-foot .gen {
  color: var(--ink-0);
  background: rgba(239, 228, 255, 0.08);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
}

/* ───────── CRT ───────── */
.crt {
  position: absolute; inset: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(216, 200, 255, 0.05), transparent 60%),
    var(--screen-bg);
}
.scanlines {
  pointer-events: none;
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
  z-index: 5;
}
.vignette {
  pointer-events: none;
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  z-index: 4;
}

/* ───────── HUD ───────── */
.hud {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-0);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.hud-right { color: var(--ink-1); display: inline-flex; align-items: center; gap: 8px; }
.time-glyph {
  font-size: 18px;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 197, 102, 0.6);
}
.time-glyph.night { color: var(--lav); text-shadow: 0 0 10px var(--lav-glow); }
.hud-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hud-name {
  color: var(--lav); text-shadow: 0 0 10px var(--lav-glow);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 280px;
}
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 1.4s ease infinite;
  flex-shrink: 0;
}
.hud-right { white-space: nowrap; }
.hud-right .sep { margin: 0 8px; opacity: 0.5; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* ───────── STATS ───────── */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  padding: 4px 2px 6px;
}
.stat-row {
  display: flex; justify-content: space-between;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-1);
  margin-bottom: 5px;
}
.stat-val { color: var(--ink-0); font-weight: 600; }
.bar {
  height: 10px;
  background: rgba(239, 228, 255, 0.10);
  border: 1px solid var(--line);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--lav), var(--teal));
  box-shadow: 0 0 8px var(--lav-glow);
  transition: width 0.4s ease, background 0.4s ease;
  position: relative;
}
.bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: barShimmer 4.5s ease-in-out infinite;
}
@keyframes barShimmer {
  0%, 60%, 100% { transform: translateX(-100%); }
  80%          { transform: translateX(100%); }
}
.stat.low .bar-fill { background: linear-gradient(90deg, var(--amber), var(--rose)); }
.stat.crit .bar-fill { background: linear-gradient(90deg, var(--red), var(--rose)); animation: critPulse 1.2s ease-in-out infinite; }
.stat.crit .stat-val { color: var(--red); }
@keyframes critPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 117, 117, 0.4); }
  50%      { box-shadow: 0 0 16px rgba(255, 117, 117, 0.85); }
}

/* ───────── STAGE ───────── */
.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(239, 228, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(239, 228, 255, 0.04), transparent 60%),
    #04060a;
  overflow: hidden;
  min-height: 175px;
}
.ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: auto;
}
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: auto;
  z-index: 3;
}
.evo-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.85), rgba(239,228,255,0.4) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.evo-flash.show { animation: evoFlash 1.4s ease forwards; }
@keyframes evoFlash {
  0%   { opacity: 0; transform: scale(0.5); }
  30%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}
.stage-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background:
    linear-gradient(180deg, transparent, rgba(216, 200, 255, 0.08));
  border-top: 1px solid var(--line);
}
.stage-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(216, 200, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 200, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 50%, #000 100%);
}
#petCanvas {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 10px var(--lav-glow));
}
.emote {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  font-size: 36px;
  color: var(--lav);
  text-shadow: 0 0 12px var(--lav-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.emote.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.poop, .zzz, .food, .ball, .bubbles, .bandage {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.poop {
  bottom: 22px; left: 30px;
  font-size: 22px; color: #b08254;
  text-shadow: 0 0 8px rgba(255, 180, 100, 0.4);
}
.poop.show { opacity: 1; }
.zzz {
  top: 18px; left: 65%;
  color: var(--ink-1);
  font-size: 22px;
  letter-spacing: 0.1em;
}
.zzz.show { opacity: 1; animation: zzzMove 1.6s ease infinite; }
.zzz span:nth-child(1) { animation: zzzFade 1.6s ease 0.2s infinite; opacity: 0.7; }
.zzz span:nth-child(2) { animation: zzzFade 1.6s ease 0.5s infinite; opacity: 0.4; }
@keyframes zzzMove { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes zzzFade { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.food {
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
}
.food.show { opacity: 1; animation: bobIn 0.4s ease; }

.ball {
  bottom: 28px; left: 70%;
  font-size: 24px;
  color: var(--teal);
  text-shadow: 0 0 8px var(--teal);
}
.ball.show { opacity: 1; animation: bounce 0.8s ease infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.bubbles {
  inset: 0;
  background:
    radial-gradient(circle at 30% 60%, rgba(216, 200, 255, 0.4) 4px, transparent 5px),
    radial-gradient(circle at 50% 40%, rgba(95, 226, 196, 0.4) 5px, transparent 6px),
    radial-gradient(circle at 70% 70%, rgba(216, 200, 255, 0.4) 4px, transparent 5px),
    radial-gradient(circle at 60% 50%, rgba(95, 226, 196, 0.3) 6px, transparent 7px),
    radial-gradient(circle at 40% 30%, rgba(216, 200, 255, 0.35) 4px, transparent 5px);
}
.bubbles.show { opacity: 1; animation: shimmer 1.2s ease; }
@keyframes shimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.bandage {
  top: 20%; left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: var(--rose);
  text-shadow: 0 0 10px var(--rose);
}
.bandage.show { opacity: 1; animation: bobIn 0.6s ease; }

@keyframes bobIn {
  0% { transform: translate(-50%, 8px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ───────── TICKER ───────── */
.ticker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-0);
  padding: 9px 12px;
  background: rgba(239, 228, 255, 0.07);
  border: 1px solid var(--line);
  border-left: 2px solid var(--lav);
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.18s ease;
}
.ticker .caret { color: var(--lav); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ───────── ACTIONS ───────── */
.actions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding-top: 4px;
}
.act {
  background: rgba(239, 228, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink-0);
  border-radius: 4px;
  padding: 10px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.act .glyph {
  font-size: 24px;
  color: var(--lav);
  text-shadow: 0 0 10px var(--lav-glow);
}
.act-menu .glyph { color: var(--ink-1); text-shadow: none; }

/* ───────── FOCUS RING (Meta display nav) ───────── */
.focusable:focus,
.focusable.focused {
  outline: none;
  background: rgba(216, 200, 255, 0.16);
  border-color: var(--lav) !important;
  box-shadow:
    0 0 0 2px var(--lav-glow),
    inset 0 0 16px rgba(216, 200, 255, 0.12);
  transform: translateY(-1px);
  color: var(--lav);
}
.focusable:focus .glyph,
.focusable:focus .ng,
.focusable.focused .glyph,
.focusable.focused .ng {
  color: var(--lav);
}
.act:active, .wbtn:active, .nbtn:active, .menu-item:active { transform: translateY(0); }
.act.busy { opacity: 0.4; pointer-events: none; }

/* dead state */
.dead-overlay {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: rgba(0,0,0,0.55);
  z-index: 6;
}
.dead .dead-overlay {
  display: flex;
}
.dead-message {
  color: var(--red);
  letter-spacing: 0.4em; font-size: 22px;
  text-shadow: 0 0 14px rgba(255, 90, 90, 0.6);
}
.dead-btn {
  background: rgba(216, 200, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.18em;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

/* ───────── PAUSE MENU ───────── */
.menu {
  position: absolute; inset: 0;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 7;
  animation: walkIn 0.25s ease both;
}
.menu-card {
  background: var(--bg-1);
  border: 1px solid var(--lav-dim);
  border-radius: 10px;
  padding: 26px 30px;
  min-width: 380px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 0 1px rgba(216, 200, 255, 0.05), 0 16px 50px rgba(0,0,0,0.6);
}
.menu-title {
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--ink-2);
  margin-bottom: 14px;
  text-align: center;
}
.menu-item {
  background: rgba(216, 200, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.2em;
  padding: 14px 16px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

/* ───────── ABOUT MODAL ───────── */
.about {
  position: absolute; inset: 0;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 7;
  animation: walkIn 0.25s ease both;
}
.about-card {
  background: var(--bg-1);
  border: 1px solid var(--lav-dim);
  border-radius: 10px;
  padding: 26px 30px;
  min-width: 380px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 0 0 1px rgba(216, 200, 255, 0.05), 0 16px 50px rgba(0,0,0,0.6);
}
.about-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-0);
  text-align: center;
}
.about-body {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink-1);
  line-height: 1.5;
  text-align: center;
}
.about-body .hl { color: var(--lav); text-shadow: 0 0 10px var(--lav-glow); }
.about-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 4px 0;
}
.about-stage {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-1);
}
.about-stage .g {
  font-size: 20px;
  color: var(--lav);
  text-shadow: 0 0 8px var(--lav-glow);
}
.about-close {
  background: rgba(216, 200, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ink-0);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.18em;
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
