/* RUKUS: LOCKED & LOAFED: all styling. Pixel style to match the sprites: square corners, hard
   2px edges and drop shadows, the game's palette (js/art/palette.js), two pixel fonts
   (media/fonts, SIL Open Font License: Silkscreen for labels and numbers, Pixelify Sans for
   sentences). */

@font-face {
  font-family: 'Silkscreen';
  src: url('media/fonts/Silkscreen-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('media/fonts/Silkscreen-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pixelify Sans';
  src: url('media/fonts/PixelifySans.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* the palette */
  --ink: #14121c;
  --deep: #262233;
  --slate: #3d3a4f;
  --stripe: #5c5c66;
  --fur: #9a9aa2;
  --light: #c8c8d0;
  --cream: #f4f0e0;
  --gold: #f0c848;
  --pale: #fff4b0;
  --red: #e0483c;
  --orange: #ff9a3c;
  --pink: #ff6ea8;
  --magenta: #a02868;
  --green: #4a9a44;
  --lime: #9ad86a;
  --cyan: #50c8f0;
  --ice: #bff4ff;
  --navy: #1c2c5a;
  --floor: #161c2a;
  --panel: rgba(20, 18, 28, 0.92);

  --pixel-font: 'Silkscreen', 'Courier New', monospace;
  --body-font: 'Pixelify Sans', 'Courier New', monospace;
  /* kept for the canvas's floating text and anything older */
  --terminal-font: 'Silkscreen', 'Courier New', monospace;
  --display-font: 'Silkscreen', 'Arial Black', sans-serif;

  /* layoutTopBar() (js/hud.js) measures the top bar for real (it wraps on phones) */
  --topbar-h: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--floor);
  color: var(--cream);
  font-family: var(--body-font);
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--floor);
}

canvas#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  image-rendering: pixelated;
}

/* Scanlines, light enough to keep the pixel art readable */
.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.22) 50%);
  background-size: 100% 4px;
  z-index: 10;
  opacity: 0.5;
}

/* --- Pixel boxes and buttons --- */
.px-box, .modal-box, .meter-box, .card-item, .slot, .hud-btn, .btn-primary, .btn-secondary, #xp-bar-container {
  border-radius: 0;
}

.hud-btn {
  touch-action: manipulation;
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--light);
  background: var(--deep);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 1px var(--slate), 2px 2px 0 rgba(0, 0, 0, 0.6);
  padding: 4px 9px;
  cursor: pointer;
}
.hud-btn:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--cyan), 2px 2px 0 rgba(0, 0, 0, 0.6); }
.hud-btn.active { color: var(--lime); box-shadow: inset 0 0 0 1px var(--green), 2px 2px 0 rgba(0, 0, 0, 0.6); }

.btn-primary, .btn-secondary {
  font-family: var(--pixel-font);
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  border: 3px solid var(--ink);
  text-transform: uppercase;
  transition: transform 0.08s;
}
.btn-primary {
  font-size: 20px;
  padding: 10px 26px;
  color: var(--ink);
  background: var(--cyan);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), inset 3px 3px 0 rgba(255, 255, 255, 0.35), 4px 4px 0 var(--ink);
}
.btn-primary.red { background: var(--orange); }
.btn-secondary {
  font-size: 14px;
  padding: 9px 16px;
  color: var(--cream);
  background: var(--slate);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.3), inset 2px 2px 0 rgba(255, 255, 255, 0.12), 3px 3px 0 var(--ink);
}
.btn-primary:hover, .btn-secondary:hover { transform: translate(-1px, -1px); }
.btn-primary:active, .btn-secondary:active { transform: translate(2px, 2px); box-shadow: none; }

.cyan { color: var(--cyan); }
.pink { color: var(--pink); }
.gold { color: var(--gold); }
.green { color: var(--lime); }
.red { color: var(--red); }

/* --- Top bar --- */
#top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 20;
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.9) 0%, rgba(10, 12, 20, 0) 100%);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 12px; }
.nav-link { color: var(--fur); text-decoration: none; }
.nav-link:hover { color: var(--cyan); }
.nav-title { color: var(--cyan); }

/* --- HUD --- */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 15; font-family: var(--pixel-font); }

#xp-bar-container {
  position: absolute;
  top: calc(var(--topbar-h) + 2px);
  left: 10px;
  right: 10px;
  height: 14px;
  background: var(--deep);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
#xp-bar-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, #3aa8d0 6px 8px);
  transition: width 0.12s steps(4);
}
#hud-level {
  position: absolute;
  left: 4px;
  top: -1px;
  font-size: 10px;
  font-weight: 700;
  color: var(--cream);
  text-shadow: 1px 1px 0 var(--ink);
}
#hud-level::before { content: 'LV '; }

#hud-time {
  position: absolute;
  top: calc(var(--topbar-h) + 22px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink);
  letter-spacing: 2px;
}

#hud-stats {
  position: absolute;
  top: calc(var(--topbar-h) + 22px);
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 4px;
  background: var(--panel);
  border: 2px solid var(--ink);
  font-size: 14px;
}
.stat b { font-weight: 700; color: var(--cream); }
.px-icon { width: 24px; height: 24px; image-rendering: pixelated; }
.px-icon:not([src]) { display: none; }

#hud-slots {
  position: absolute;
  top: calc(var(--topbar-h) + 22px);
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#active-weapons, #active-passives { display: flex; gap: 4px; flex-wrap: wrap; max-width: 240px; }
.slot {
  position: relative;
  width: 36px;
  height: 36px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 1px var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.slot .symbol { font-size: 18px; }
.slot .lvl {
  position: absolute;
  right: -2px;
  bottom: -4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 1px 1px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}
.slot.passive { width: 28px; height: 28px; }
.slot.passive img { width: 24px; height: 24px; }

#vital-meters {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  font-size: 11px;
}
.meter-title { width: 66px; font-weight: 700; }
.meter-hp .meter-title { color: var(--lime); }
.meter-zoom .meter-title { color: var(--orange); }
.meter-bar {
  flex: 1;
  height: 10px;
  background: var(--deep);
  border: 2px solid var(--ink);
  overflow: hidden;
}
#hp-text, #zoomies-text { width: 64px; text-align: right; font-weight: 700; }
#zoomies-text { color: var(--orange); }
#hp-bar-fill {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--lime) 0 6px, var(--green) 6px 8px);
  transition: width 0.12s steps(4);
}
#zoomies-bar-fill {
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--orange) 0 6px, var(--gold) 6px 8px);
  transition: width 0.12s steps(4);
}
.zoomies-ready { animation: zoomiesPulse 0.5s steps(2) infinite alternate; }
@keyframes zoomiesPulse {
  from { box-shadow: 0 0 0 2px var(--orange), 2px 2px 0 rgba(0, 0, 0, 0.6); }
  to { box-shadow: 0 0 0 2px var(--pink), 2px 2px 0 rgba(0, 0, 0, 0.6); }
}

/* Big warnings across the screen (the Titan) */
.banner {
  position: absolute;
  top: calc(var(--topbar-h) + 104px); /* under the boss bar */
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 40;
  padding: 10px 20px;
  background: rgba(20, 6, 10, 0.92);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--red), 4px 4px 0 rgba(0, 0, 0, 0.6);
  color: var(--red);
  font-family: var(--pixel-font);
  font-weight: 700;
  font-size: clamp(16px, 3vw, 26px);
  letter-spacing: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.banner.show { opacity: 1; transform: translate(-50%, 0); animation: bannerPulse 0.4s steps(2) infinite alternate; }
@keyframes bannerPulse {
  from { color: var(--red); }
  to { color: var(--pale); }
}

/* --- Screens --- */
/* Overlays start under the top bar so mute and pause stay clickable on every screen */
.modal-overlay {
  position: absolute;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 18, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
  background: #1b1a28;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--slate), 6px 6px 0 rgba(0, 0, 0, 0.7);
  max-width: 720px;
  width: 92%;
  padding: 22px;
  text-align: center;
  position: relative;
  max-height: calc(100% - 24px);
  overflow-y: auto;
}
.screen-title {
  font-family: var(--pixel-font);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 var(--ink);
}
.screen-sub { font-size: 15px; color: var(--light); margin: 8px 0 14px; }
.screen-sub b { color: var(--cream); }
.build-version { margin-top: 12px; font-family: var(--pixel-font); font-size: 10px; color: var(--stripe); letter-spacing: 1px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.sprite-view { image-rendering: pixelated; display: block; margin: 0 auto; }

/* Title */
.title-box { max-width: 780px; box-shadow: inset 0 0 0 2px var(--magenta), 6px 6px 0 rgba(0, 0, 0, 0.7); }
.title-banner {
  width: 100%;
  max-height: min(210px, 28vh);
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}
h1.game-title {
  font-family: var(--pixel-font);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 36px);
  letter-spacing: 1px;
  color: var(--cyan);
  text-shadow: 3px 3px 0 var(--magenta), 6px 6px 0 var(--ink);
  margin-bottom: 6px;
}
p.title-tagline { font-size: 16px; color: var(--light); margin-bottom: 14px; }
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 12px;
  margin: 12px 0;
  padding: 12px;
  font-size: 14px;
  color: var(--light);
  background: var(--deep);
  border: 2px solid var(--ink);
  text-align: left;
}
.ctrl-item span.key {
  font-family: var(--pixel-font);
  font-size: 10px;
  background: var(--slate);
  border: 2px solid var(--ink);
  padding: 1px 5px;
  color: var(--gold);
  margin-right: 4px;
}
.title-go { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 4px; }
.title-best { font-family: var(--pixel-font); font-size: 11px; color: var(--gold); margin-top: 10px; min-height: 12px; }
.title-credits { margin-top: 8px; font-size: 13px; color: var(--fur); }

/* Level-up cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 10px 0 4px;
}
.card-item {
  position: relative;
  background: var(--deep);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--slate), 4px 4px 0 rgba(0, 0, 0, 0.6);
  padding: 16px 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.08s;
}
.card-item:hover { transform: translate(-2px, -2px); box-shadow: inset 0 0 0 2px var(--cyan), 6px 6px 0 rgba(0, 0, 0, 0.6); }
.card-item.new-thing { box-shadow: inset 0 0 0 2px var(--gold), 4px 4px 0 rgba(0, 0, 0, 0.6); }
.card-icon { font-size: 36px; line-height: 48px; height: 48px; }
.card-icon img { width: 48px; height: 48px; image-rendering: pixelated; }
.card-title { font-family: var(--pixel-font); font-weight: 700; font-size: 13px; color: var(--cream); letter-spacing: 1px; }
.card-type {
  font-family: var(--body-font); /* Silkscreen has no → */
  font-size: 13px;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--cyan);
}
.card-item.new-thing .card-type { color: var(--gold); }
.card-desc { font-size: 14px; color: var(--light); line-height: 1.3; }
.card-key {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--gold);
}
.touch .card-key, .touch .keys-only { display: none; }

/* Game over */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  margin: 4px 0 8px;
  background: var(--deep);
  border: 2px solid var(--ink);
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--fur);
}
.stats-grid b { font-size: 16px; margin-left: 6px; }
.go-best { font-family: var(--pixel-font); font-size: 11px; color: var(--gold); min-height: 12px; }

/* Pause and settings */
.pause-box { max-width: 460px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.settings-grid .hud-btn { padding: 8px 6px; font-size: 11px; }

/* The title screen lists keyboard controls, or touch controls on a phone */
.controls-touch { display: none; }
.touch .controls-keys { display: none; }
.touch .controls-touch { display: grid; }

/* --- Phone controls --- */
#touch-controls {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}
.touch-stick-zone {
  position: absolute;
  bottom: 26px;
  left: 22px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: rgba(20, 18, 28, 0.35);
  border: 3px solid rgba(80, 200, 240, 0.35);
  pointer-events: auto;
  touch-action: none;
}
.touch-stick-knob {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(80, 200, 240, 0.45);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.touch-btn-zone {
  position: absolute;
  bottom: 30px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}
.touch-action-btn {
  touch-action: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 110, 168, 0.4);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--pink);
  color: var(--cream);
  font-family: var(--pixel-font);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-shadow: 1px 1px 0 var(--ink);
}
.touch-action-btn.zoom-btn { width: 92px; height: 92px; font-size: 15px; background: rgba(255, 154, 60, 0.45); box-shadow: inset 0 0 0 2px var(--orange); }
.touch-action-btn:active { transform: scale(0.92); }
/* Phones always auto-aim, so there's nothing for FIRE (or the auto-aim switch) to do */
.touch #touchBtnFire, .touch #btnAutoAim { display: none; }

/* --- A phone or tablet (js/game.js sets .touch) --- */
.touch #touch-controls { display: block; }
.touch #vital-meters { bottom: 178px; width: min(360px, calc(100% - 24px)); }

@media (max-width: 800px) {
  /* one row of links and buttons doesn't fit a phone: keep LAB INDEX, drop the rest */
  #top-bar { flex-wrap: wrap; justify-content: space-between; row-gap: 4px; padding: 4px 8px; background: rgba(10, 12, 20, 0.88); }
  .extra-link, .nav-title { display: none; }
  /* the timer goes to the right, over the stats, clear of the weapon slots */
  #hud-time { font-size: 18px; top: calc(var(--topbar-h) + 20px); left: auto; right: 12px; transform: none; }
  #hud-stats { top: calc(var(--topbar-h) + 46px); }
  /* the boss bar and banner sit under the slot rows */
  #boss-bar { top: calc(var(--topbar-h) + 150px); }
  .banner { top: calc(var(--topbar-h) + 190px); }
  .stat { font-size: 12px; }
  .px-icon { width: 16px; height: 16px; }
  .slot { width: 30px; height: 30px; }
  .slot img { width: 24px; height: 24px; }
  .slot.passive { width: 24px; height: 24px; }
  .slot.passive img { width: 16px; height: 16px; }
  #active-weapons, #active-passives { max-width: 62%; }
  .meter-title { width: 54px; font-size: 10px; }
  #hp-text, #zoomies-text { width: 52px; font-size: 10px; }
  .title-banner { max-height: 150px; }
  .btn-primary { font-size: 17px; padding: 9px 18px; }
}

#btnReroll { margin-top: 10px; }

/* An evolved weapon's slot */
.slot.evolved { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 1px var(--ink); }
.slot.evolved .lvl { color: var(--pale); }

/* A boss's health, across the top */
#boss-bar {
  position: absolute;
  top: calc(var(--topbar-h) + 60px);
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  z-index: 16;
  pointer-events: none;
  font-family: var(--pixel-font);
  font-weight: 700;
  font-size: 12px;
  color: var(--red);
  text-align: center;
  text-shadow: 2px 2px 0 var(--ink);
}
#boss-bar[hidden] { display: none; }
.boss-track { height: 12px; margin-top: 3px; background: var(--deep); border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
#boss-fill { height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--red) 0 6px, #a8322a 6px 8px); transition: width 0.12s steps(4); }

/* The Armory */
.title-row { margin-top: 10px; }
.armory-box { max-width: 640px; }
.bank-line { font-family: var(--pixel-font); font-size: 14px; margin-bottom: 10px; }
.armory-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.armory-row { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--deep); border: 2px solid var(--ink); }
.armory-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.armory-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.armory-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--light); }
.armory-text b { font-family: var(--pixel-font); font-size: 12px; color: var(--cream); }
.pips { display: flex; gap: 3px; margin-top: 2px; }
.pip { width: 12px; height: 6px; background: var(--slate); border: 1px solid var(--ink); }
.pip.on { background: var(--gold); }
.armory-buy { min-width: 96px; font-size: 12px; padding: 7px 8px; }
.armory-buy:disabled { opacity: 0.45; cursor: default; transform: none; }
.go-bank { font-family: var(--pixel-font); font-size: 11px; color: var(--lime); min-height: 12px; margin-top: 4px; }
.armory-sub { font-family: var(--pixel-font); font-size: 14px; color: var(--cyan); margin: 14px 0 8px; text-align: left; }
.armory-row.wearing { box-shadow: inset 0 0 0 2px var(--cyan); }

/* Real pictures of Rukus on the game-over and pause screens */
.photo-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0; }
.photo {
  max-height: 150px;
  max-width: 45%;
  background: var(--cream);
  padding: 5px 5px 14px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  transform: rotate(-2deg);
}
.photo:not([src]) { display: none; }
.volume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; font-family: var(--pixel-font); font-size: 10px; color: var(--light); }
.volume-grid label { display: flex; flex-direction: column; gap: 4px; }
.volume-grid input { width: 100%; accent-color: var(--cyan); }
@media (max-width: 800px) { .photo { max-height: 100px; } }

/* The stage picker on the title screen */
.stage-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.stage-btn {
  font-family: var(--pixel-font);
  padding: 7px 6px;
  background: var(--deep);
  color: var(--light);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 1px var(--slate);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stage-btn b { font-size: 11px; color: var(--cream); }
.stage-num { font-size: 9px; color: var(--gold); }
.stage-btn.on { box-shadow: inset 0 0 0 2px var(--cyan); }
.stage-btn.locked { opacity: 0.45; cursor: default; }
.stage-btn.locked b { color: var(--fur); }
