:root {
  --bg: #07060d;
  --bg-elevated: #161320;
  --panel: rgba(18, 16, 28, 0.94);
  --border: #12101c;
  --text: #fff4dc;
  --muted: #c9b8e0;
  --accent: #2fd39a;
  --accent-2: #ffd23a;
  --danger: #ff4d4d;
  --shadow: 4px 5px 0 #000;
  --radius: 4px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Barlow Condensed", "Oswald", "Outfit", system-ui, sans-serif;
  --ink: #12101c;
  --paper: #fff4dc;
  --jade: #2fd39a;
  --coral: #ff4d4d;
  --amber: #ffd23a;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(47, 211, 154, 0.08), transparent 58%),
    radial-gradient(700px 400px at 100% 100%, rgba(255, 77, 77, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  user-select: none;
}

#app {
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 6px 10px 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  box-sizing: border-box;
}

.top-bar,
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.top-bar {
  min-height: 64px;
  padding: 6px 2px 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Chrome wordmark in the top bar (same logo as title/splash) */
.brand-logo.title-logo {
  align-items: flex-start;
  line-height: 0.9;
  gap: 0.04em;
  filter: drop-shadow(3px 4px 0 #000);
}

.brand-logo .title-logo-geo {
  font-size: clamp(1rem, 2.4vw, 1.45rem);
}

.brand-logo .title-logo-arena {
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
}

.brand-logo .title-logo-fill {
  text-shadow: none;
}

.tagline {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.stat {
  min-width: 88px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #161320;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  text-align: right;
}

.stat.accent {
  background: #3a2c08;
  border-color: #000;
  box-shadow: 3px 3px 0 #000;
}

.stat.accent.hot {
  border-color: rgba(255, 200, 80, 0.55);
  box-shadow: 0 0 22px rgba(255, 180, 40, 0.35);
  animation: mult-pulse 0.7s ease-in-out infinite alternate;
}

.stat.accent.blazing {
  border-color: rgba(255, 80, 120, 0.7);
  box-shadow: 0 0 28px rgba(255, 60, 100, 0.5);
  animation: mult-pulse 0.35s ease-in-out infinite alternate;
}

.stat.accent.hot .stat-value {
  color: #ffe14a;
}

.stat.accent.blazing .stat-value {
  color: #ff6b9a;
}

@keyframes mult-pulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.25);
  }
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.15;
}

.stat-meter {
  display: block;
  height: 4px;
  margin-top: 6px;
  background: rgba(255, 244, 220, 0.12);
  border: 1px solid #000;
  overflow: hidden;
}

.stat-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--jade);
}

.stat.bomb-stat .stat-meter i {
  background: var(--coral);
}

.stat.accent .stat-value {
  color: var(--amber);
}

.stat.bomb-stat {
  background: #3a1014;
  border-color: #000;
}

.stat.bomb-stat .stat-value {
  color: var(--coral);
}

.stage-wrap {
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 3px solid #000;
  background: #07060d;
  box-shadow: 4px 5px 0 #000;
  overflow: hidden;
}

#game {
  display: block;
  /* Sized by JS fitCanvas — fill stage as large as aspect ratio allows */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  cursor: crosshair;
  background: #000005;
  image-rendering: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 16px;
  pointer-events: none;
}

.overlay.hidden {
  display: none !important;
}

/*
 * Mode gate — ONLY the active screen may paint.
 * Never rely on per-panel .hidden alone (flex row leaks side-by-side mess).
 */
.overlay > .title-menu,
.overlay > .interrupt-panel,
.overlay > .gameover-menu,
.overlay > .path-map,
.overlay > .path-brief,
.overlay > .path-result {
  display: none !important;
  pointer-events: none;
}

.overlay.mode-title > .title-menu:not(.hidden) {
  display: flex !important;
  pointer-events: auto;
}

.overlay.mode-panel > .interrupt-panel:not(.hidden) {
  display: block !important;
  pointer-events: auto;
}

.overlay.mode-gameover > .gameover-menu:not(.hidden) {
  display: flex !important;
  pointer-events: auto;
}

.overlay.mode-path > .path-map:not(.hidden),
.overlay.mode-brief > .path-brief:not(.hidden),
.overlay.mode-path-result > .path-result:not(.hidden) {
  display: flex !important;
  pointer-events: auto;
}

/* Title menu: see the living grid through light vignette */
.overlay.mode-title {
  justify-content: flex-start;
  padding: clamp(72px, 12vh, 120px) 16px 28px;
  overflow: auto;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(4, 6, 18, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.45) 100%);
  backdrop-filter: none;
}

/* Interrupt: dim + slight blur over playfield */
.overlay.mode-panel {
  background: rgba(3, 5, 12, 0.72);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

/* Game over: see the arena through a heavier vignette — no frosted box */
.overlay.mode-gameover {
  background:
    radial-gradient(ellipse 75% 60% at 50% 40%, rgba(18, 0, 12, 0.28), transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 30%, transparent 68%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: none;
  pointer-events: auto;
}

/* Path map / brief / result — same live-grid language as title */
.overlay.mode-path,
.overlay.mode-brief,
.overlay.mode-path-result {
  background:
    radial-gradient(ellipse 72% 58% at 50% 40%, rgba(6, 4, 22, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 26%, transparent 74%, rgba(0, 0, 0, 0.55) 100%);
  backdrop-filter: none;
  pointer-events: auto;
}

.overlay.mode-path-result {
  background:
    radial-gradient(ellipse 75% 60% at 50% 38%, rgba(12, 0, 28, 0.32), transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.68) 100%);
}

.overlay.mode-path-result.is-fail {
  background:
    radial-gradient(ellipse 75% 60% at 50% 38%, rgba(28, 0, 12, 0.34), transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 68%, rgba(0, 0, 0, 0.72) 100%);
}

/* ── Live-grid title menu ── */
.title-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: min(1100px, 96vw);
  text-align: center;
}

.title-menu.entering {
  animation: title-menu-in 0.65s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.title-menu.hidden {
  display: none;
}

@keyframes title-menu-in {
  from {
    opacity: 0;
    transform: scale(1.12) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.title-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.82;
  gap: 0.06em;
  padding: 0.08em 0.22em 0.28em;
}

.title-logo-line {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.35);
}

.title-logo-geo {
  font-size: clamp(2.6rem, 11.5vw, 9.5rem);
}

.title-logo-arena {
  font-size: clamp(3rem, 13.5vw, 11rem);
}

.title-logo-line {
  letter-spacing: -0.03em;
}
/* Block comic lockup: magenta face, cyan extrusion, ink outline */
.block-mark,
.title-logo-fill,
.logo-fill,
.comic-stamp {
  display: inline-block;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ff2d6a;
  -webkit-text-fill-color: #ff2d6a;
  -webkit-text-stroke: 0.045em #111;
  paint-order: stroke fill;
  text-shadow:
    0.018em 0.018em 0 #3de8ff,
    0.036em 0.036em 0 #3de8ff,
    0.054em 0.054em 0 #2ad4f0,
    0.072em 0.072em 0 #18c4e4,
    0.09em 0.09em 0 #111,
    0.14em 0.16em 0 rgba(0, 0, 0, 0.28);
}

.comic-stamp {
  position: relative;
  background-image: radial-gradient(circle, rgba(17, 17, 17, 0.28) 1.15px, transparent 1.35px);
  background-size: 6px 6px;
  -webkit-background-clip: text;
  background-clip: text;
}

.path-result.is-fail .path-result-fill,
.gameover-over .gameover-fill {
  color: #ff2d6a;
  -webkit-text-fill-color: #ff2d6a;
}

.title-logo-arena .title-logo-fill-unused {
  background-image: linear-gradient(
    180deg,
    #f0ffff 0%,
    #7df9ff 16%,
    #4a7cff 50%,
    #b04aff 85%,
    #ff4ac8 100%
  );
}

.title-tag {
  margin-top: 2.1rem;
  max-width: 28em;
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--paper);
  text-shadow: 1px 1px 0 #000;
  opacity: 0.95;
}

.how-to kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 3px 6px;
  border-radius: 3px;
  border: 2px solid rgba(125, 249, 255, 0.45);
  border-bottom-width: 3px;
  background: linear-gradient(180deg, rgba(40, 60, 100, 0.9), rgba(12, 18, 40, 0.95));
  color: #7df9ff;
  font-family: Outfit, monospace;
  font-size: 0.42rem;
  font-weight: 400;
  text-align: center;
  box-shadow: 0 0 8px rgba(125, 249, 255, 0.15);
}

.title-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  margin-top: 2.2rem;
  width: min(560px, 100%);
}

.title-actions .btn.arcade {
  margin-top: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.btn.arcade.is-focused,
.title-help.is-focused,
.btn.secondary.is-focused,
.btn.is-focused {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  filter: brightness(1.12);
}

.btn.arcade.stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  padding: 18px 16px 16px;
}

.btn.arcade .btn-main {
  display: block;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.12em;
}

.btn.arcade .btn-sub {
  display: block;
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.88;
  font-weight: 600;
}

/* Secondary arcade sibling — magenta/cyan outline, not primary steal */
.btn.arcade.path-cta {
  min-width: 0;
  color: #12101c;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.16) 1px, transparent 1.2px),
    linear-gradient(180deg, #ff7a6e, var(--coral));
  background-size: 7px 7px, auto;
  border: 3px solid #000;
  box-shadow: 6px 7px 0 #000;
  text-shadow: none;
  animation: none;
}

.btn.arcade.path-cta:hover {
  filter: brightness(1.1);
  border-color: #7df9ff;
  box-shadow:
    0 0 0 2px #000,
    0 6px 0 #0a0820,
    0 0 36px rgba(125, 249, 255, 0.4),
    0 0 28px rgba(255, 80, 200, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

@keyframes path-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px #000,
      0 6px 0 #0a0820,
      0 0 22px rgba(255, 80, 200, 0.3),
      inset 0 0 18px rgba(94, 252, 255, 0.06),
      inset 0 2px 0 rgba(255, 180, 255, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 2px #000,
      0 6px 0 #0a0820,
      0 0 34px rgba(255, 100, 220, 0.55),
      0 0 18px rgba(94, 252, 255, 0.25),
      inset 0 2px 0 rgba(255, 200, 255, 0.22);
  }
}

.title-best {
  margin: 1.1rem 0 0;
  font-family: var(--font);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9ec0ff;
  text-shadow: 1px 1px 0 #000, 0 0 10px rgba(125, 249, 255, 0.25);
}

.title-best span {
  color: #fff;
}

.title-help {
  appearance: none;
  margin-top: 0.85rem;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8a96b4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.12s ease;
}

.title-help:hover {
  color: var(--accent);
}

.title-howto {
  margin-top: 0.9rem;
  max-width: 460px;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.45;
  animation: title-menu-in 0.35s ease both;
}

/* Arcade PLAY / interrupt primary */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 12px 22px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, filter 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn.arcade {
  margin-top: 1.5rem;
  min-width: 200px;
  padding: 16px 36px 14px;
  border-radius: 4px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: 0.06em;
  color: #12101c;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.16) 1px, transparent 1.2px),
    linear-gradient(180deg, #5cf0b8, var(--jade));
  background-size: 7px 7px, auto;
  border: 3px solid #000;
  box-shadow: 6px 7px 0 #000;
  text-shadow: none;
  animation: none;
}

.btn.arcade:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 0 2px #000,
    0 6px 0 #0a0820,
    0 0 40px rgba(94, 252, 255, 0.65),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn.arcade:active {
  transform: translateY(3px) scale(0.99);
  box-shadow:
    0 0 0 2px #000,
    0 2px 0 #0a0820,
    0 0 20px rgba(94, 252, 255, 0.4);
}

.btn.arcade.compact {
  margin-top: 0.5rem;
  min-width: 180px;
  padding: 12px 28px 10px;
  font-size: 0.65rem;
  animation: none;
}

.interrupt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 0.25rem;
  position: relative;
}

.interrupt-actions .btn.arcade.compact {
  margin-top: 0;
}

.btn.secondary {
  appearance: none;
  border: 2px solid rgba(94, 252, 255, 0.35);
  background: rgba(8, 14, 28, 0.85);
  color: #9ec8ff;
  font-family: "Press Start 2P", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  padding: 12px 18px 10px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 120px;
  box-shadow: 0 0 0 1px #000, 0 0 16px rgba(94, 252, 255, 0.12);
  transition: color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.btn.secondary:hover {
  color: #fff;
  border-color: rgba(125, 249, 255, 0.65);
  box-shadow: 0 0 0 1px #000, 0 0 22px rgba(94, 252, 255, 0.28);
}

.btn.secondary.compact {
  min-width: 110px;
  padding: 11px 16px 9px;
  font-size: 0.45rem;
}

.btn.secondary.hidden {
  display: none;
}

.panel-help {
  display: block;
  margin: 0.85rem auto 0;
}

.panel-help.hidden {
  display: none;
}

.panel-howto {
  margin-top: 0.65rem;
  max-width: 100%;
  max-height: 28vh;
  overflow-y: auto;
}

.panel-howto.hidden {
  display: none;
}

@keyframes arcade-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px #000,
      0 6px 0 #0a0820,
      0 0 28px rgba(94, 252, 255, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 2px #000,
      0 6px 0 #0a0820,
      0 0 42px rgba(94, 252, 255, 0.7),
      inset 0 2px 0 rgba(255, 255, 255, 0.5);
  }
}

/* Legacy alias */
.btn.primary {
  background: linear-gradient(135deg, #5de8ff, #8b6cff);
  color: #061018;
  box-shadow: 0 8px 28px rgba(125, 249, 255, 0.3);
  min-width: 160px;
}

.btn.primary:hover {
  box-shadow: 0 10px 32px rgba(125, 249, 255, 0.42);
}

/* ── Interrupt panel (pause) ── */
.panel,
.interrupt-panel {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 26px 26px 22px;
  border-radius: 6px;
  background: rgba(4, 8, 18, 0.92);
  border: 3px solid rgba(94, 252, 255, 0.28);
  box-shadow:
    0 0 0 2px #000,
    0 0 40px rgba(125, 249, 255, 0.12),
    inset 0 0 40px rgba(20, 40, 80, 0.25);
  text-align: center;
  overflow: hidden;
  animation: title-menu-in 0.35s ease both;
}

.interrupt-panel.hidden {
  display: none;
}

/* ── Classic chrome GAME OVER (logo energy, no box) ── */
.gameover-menu {
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: min(640px, 96vw);
  width: min(640px, 96vw);
  text-align: center;
  padding: 8px 12px 12px;
}

.gameover-menu.entering {
  animation: title-menu-in 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.gameover-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0.82;
  gap: 0.04em;
  filter: drop-shadow(6px 7px 0 #000);
}

.gameover-line {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.gameover-game {
  font-size: clamp(3.2rem, 14vw, 7.2rem);
}

.gameover-over {
  font-size: clamp(3.8rem, 16vw, 8.4rem);
}

/*
 * Same chrome stack as title logo: extruded black depth + bright face gradient.
 * Keep fill filter light so the gradient layer actually reads (was too muddy).
 */
.gameover-fill {
  color: #ff2d6a;
  -webkit-text-fill-color: #ff2d6a;
}

.gameover-tag {
  margin-top: 0.85rem;
  font-family: Outfit, sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--paper);
  text-shadow: 2px 2px 0 #000;
  opacity: 1;
  animation: none;
}

.gameover-stats {
  display: grid;
  /* BEST gets a wider column so 7-digit highs stay in the chip */
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 8px;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 560px;
}

.go-stat {
  min-width: 0;
  overflow: hidden;
  padding: 14px 8px 12px;
  border-radius: 4px;
  background: #161320;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  text-align: center;
}

.go-stat.accent {
  border-color: rgba(208, 107, 255, 0.5);
  box-shadow: 0 0 0 1px #000, 0 0 22px rgba(180, 60, 255, 0.22);
}

.go-label {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lilac, #c9b8e0);
  margin-bottom: 6px;
}

.go-value {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  /* Fluid — stays inside chips even at 7–9 digit scores */
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--paper);
  letter-spacing: 0.01em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(255, 120, 180, 0.35);
}

.go-stat.accent .go-value {
  color: var(--amber);
}

.gameover-meta {
  margin-top: 0.85rem;
  font-family: Outfit, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-shadow: 1px 1px 0 #000;
}

.gameover-runs {
  margin: 0.75rem auto 0;
  max-width: 420px;
  max-height: 16vh;
  overflow: auto;
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.gameover-runs.hidden {
  display: none;
}

.gameover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 1.35rem;
  width: 100%;
}

.gameover-actions .btn.arcade {
  margin-top: 0;
  min-width: min(260px, 78vw);
  animation: arcade-pulse 1.6s ease-in-out infinite;
}

.gameover-actions .go-title-btn {
  min-width: 160px;
  padding: 16px 24px 14px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  border: 3px solid #000;
  color: var(--paper);
  background: #161320;
  box-shadow: 5px 6px 0 #000;
}

.gameover-actions .go-title-btn:hover {
  border-color: rgba(255, 160, 200, 0.7);
  color: #fff;
  box-shadow: 0 0 0 1px #000, 0 0 24px rgba(255, 80, 140, 0.35);
}

.gameover-hint {
  margin-top: 0.85rem;
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lilac, #c9b8e0);
  text-shadow: 1px 1px 0 #000;
}

/* ── Arena Path shell (map / brief / result) ── */
.path-map,
.path-brief,
.path-result {
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: min(920px, 98vw);
  width: min(920px, 98vw);
  max-height: min(96vh, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  text-align: center;
  padding: 16px 20px 18px;
  /* Keep neon chrome readable over live grid */
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.path-map.entering,
.path-brief.entering,
.path-result.entering {
  animation: title-menu-in 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.path-kicker {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.5rem, 1.3vw, 0.62rem);
  letter-spacing: 0.28em;
  color: #ff8ad8;
  text-shadow: 0 0 10px rgba(255, 80, 180, 0.45), 2px 2px 0 #000;
}

.path-map-head {
  width: 100%;
  margin-bottom: 0.85rem;
}

.path-map-title {
  margin: 0.55rem 0 0.45rem;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.05rem, 3.2vw, 1.55rem);
  letter-spacing: 0.14em;
  color: #7df9ff;
  text-shadow: 0 0 16px rgba(125, 249, 255, 0.55), 2px 2px 0 #000;
}

.path-map-stars {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.55rem, 1.4vw, 0.68rem);
  letter-spacing: 0.16em;
  color: #d8a0ff;
  text-shadow: 1px 1px 0 #000, 0 0 10px rgba(200, 100, 255, 0.35);
}

.path-map-stars span {
  color: #ffe566;
}

.path-chapters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 820px;
}

.path-chapter {
  position: relative;
  padding: 16px 14px 18px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.52);
  border: 2px solid rgba(94, 252, 255, 0.2);
  box-shadow: 0 0 0 1px #000, 0 0 28px rgba(80, 120, 255, 0.1);
  overflow: visible;
}

.path-chapter-label {
  margin: 0 0 14px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.5rem, 1.2vw, 0.6rem);
  letter-spacing: 0.18em;
  color: #a8c8ff;
  text-shadow: 1px 1px 0 #000;
}

.path-route,
.path-nodes {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 6px;
  width: 100%;
  box-sizing: border-box;
}

.path-route::before,
.path-nodes::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  /* Center of pip-wrap (68px / 2) + node top padding */
  top: 42px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125, 249, 255, 0.18) 8%,
    rgba(255, 100, 200, 0.4) 50%,
    rgba(125, 249, 255, 0.18) 92%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(125, 249, 255, 0.25);
  pointer-events: none;
  z-index: 0;
}

.path-node {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  max-width: 25%;
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font: inherit;
  overflow: visible;
}

.path-node:focus-visible {
  outline: 2px solid rgba(125, 249, 255, 0.7);
  outline-offset: 3px;
}

/* Reserve square layout space so rotated diamond corners don't overlap labels */
.path-node-pip-wrap {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.path-node-pip {
  position: relative;
  width: 46px;
  height: 46px;
  transform: rotate(45deg);
  border-radius: 4px;
  border: 3px solid rgba(94, 252, 255, 0.4);
  background: rgba(8, 14, 32, 0.9);
  box-shadow: 0 0 0 1px #000, 0 0 14px rgba(94, 252, 255, 0.18);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease, filter 0.12s ease;
}

.path-node-pip::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(125, 249, 255, 0.25);
  border-radius: 1px;
}

.path-node-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.path-node-order {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.55rem, 1.25vw, 0.68rem);
  letter-spacing: 0.1em;
  color: #8a94b0;
  text-shadow: 1px 1px 0 #000;
  line-height: 1;
}

.path-node-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.88rem, 2.1vw, 1.12rem);
  letter-spacing: 0.03em;
  color: #d8e4ff;
  /* Allow 2-line names so titles aren't clipped */
  white-space: normal;
  overflow: visible;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.18;
  max-width: 100%;
  min-height: 2.4em;
  text-shadow: 0 0 10px rgba(125, 249, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.85);
  word-break: break-word;
  hyphens: auto;
}

/* Readable star row — system font ★ glyphs, not tiny pixel font */
.path-node-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  font-family: "Segoe UI Symbol", "Apple Color Emoji", "Noto Sans Symbols", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: #3a4258;
  min-height: 1.35em;
  text-shadow: 0 1px 0 #000;
}

.path-node.is-unlocked .path-node-pip {
  border-color: rgba(125, 249, 255, 0.75);
  box-shadow:
    0 0 0 1px #000,
    0 0 16px rgba(94, 252, 255, 0.45),
    inset 0 0 10px rgba(94, 252, 255, 0.12);
  animation: path-node-pulse 1.7s ease-in-out infinite;
}

.path-node.is-unlocked .path-node-name {
  color: #e8f6ff;
}

.path-node.is-unlocked .path-node-order {
  color: #7df9ff;
}

.path-node.is-cleared .path-node-pip {
  border-color: rgba(255, 214, 80, 0.7);
  background: linear-gradient(145deg, rgba(40, 24, 8, 0.95), rgba(18, 10, 28, 0.95));
  box-shadow:
    0 0 0 1px #000,
    0 0 18px rgba(255, 200, 80, 0.35),
    inset 0 0 12px rgba(255, 180, 60, 0.12);
  animation: none;
}

.path-node.is-cleared .path-node-stars {
  color: #ffe566;
  text-shadow:
    0 0 10px rgba(255, 220, 80, 0.55),
    0 0 18px rgba(255, 160, 40, 0.3),
    0 1px 0 #000;
}

.path-node.is-unlocked:not(.is-cleared) .path-node-stars {
  color: #5a6480;
}

.path-node.is-locked {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.35);
}

.path-node.is-locked .path-node-pip {
  border-color: rgba(80, 90, 120, 0.4);
  box-shadow: 0 0 0 1px #000;
  animation: none;
}

.path-node.is-focused:not(.is-locked) .path-node-pip,
.path-node:hover:not(.is-locked) .path-node-pip {
  transform: rotate(45deg) scale(1.1);
  border-color: #fff;
  box-shadow:
    0 0 0 1px #000,
    0 0 24px rgba(125, 249, 255, 0.65),
    0 0 18px rgba(255, 80, 200, 0.35);
}

.path-node.is-focused .path-node-order {
  color: #b8faff;
}

.path-node.is-focused .path-node-name {
  color: #fff;
}

@keyframes path-node-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px #000,
      0 0 12px rgba(94, 252, 255, 0.35),
      inset 0 0 8px rgba(94, 252, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px #000,
      0 0 22px rgba(94, 252, 255, 0.65),
      inset 0 0 12px rgba(94, 252, 255, 0.18);
  }
}

.path-focus {
  margin-top: 1.1rem;
  width: 100%;
  max-width: 720px;
  padding: 18px 20px 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 100, 180, 0.28);
  box-shadow: 0 0 0 1px #000, 0 0 28px rgba(125, 249, 255, 0.12);
  text-align: left;
}

.path-focus-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.path-focus-order {
  flex: 0 0 auto;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  color: #7df9ff;
  text-shadow: 0 0 12px rgba(125, 249, 255, 0.5), 2px 2px 0 #000;
  line-height: 1.2;
  padding-top: 4px;
}

.path-focus-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 14px rgba(125, 249, 255, 0.3);
  overflow: visible;
  white-space: normal;
  line-height: 1.12;
  word-break: break-word;
}

.path-focus-tag {
  margin: 0.35rem 0 0;
  font-family: var(--font);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #b0bcd8;
  line-height: 1.35;
}

.path-focus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.9rem;
}

.path-badge {
  display: inline-block;
  padding: 8px 12px 7px;
  border-radius: 4px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.48rem, 1.15vw, 0.58rem);
  letter-spacing: 0.1em;
  border: 1px solid rgba(125, 249, 255, 0.4);
  color: #b4d4ff;
  background: rgba(8, 16, 36, 0.85);
  text-shadow: 1px 1px 0 #000;
}

.path-badge.mode {
  border-color: rgba(255, 120, 200, 0.45);
  color: #ffc0e8;
}

.path-badge.arena {
  border-color: rgba(94, 252, 255, 0.4);
  color: #7df9ff;
}

.path-badge.lock {
  border-color: rgba(140, 140, 160, 0.4);
  color: #9aa0b4;
}

.path-badge.hidden {
  display: none;
}

.path-focus-lesson {
  margin: 0.85rem 0 0;
  font-family: var(--font);
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  line-height: 1.45;
  color: #f0f4ff;
  font-weight: 600;
}

.path-focus-best {
  margin: 0.65rem 0 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.5rem, 1.2vw, 0.6rem);
  letter-spacing: 0.12em;
  color: #8a94b0;
  text-shadow: 1px 1px 0 #000;
}

.path-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  width: 100%;
}

.path-map-actions .btn.arcade.compact {
  margin-top: 0;
  min-width: 200px;
  min-height: 54px;
  padding: 16px 28px 14px;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
}

.path-map-actions .btn.secondary.compact {
  min-width: 150px;
  min-height: 50px;
  padding: 14px 22px 12px;
  font-size: clamp(0.6rem, 1.4vw, 0.72rem);
}

.path-map-hint {
  margin-top: 0.9rem;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.45rem, 1.1vw, 0.55rem);
  letter-spacing: 0.12em;
  color: #7a849e;
  text-shadow: 1px 1px 0 #000;
}

/* Brief */
.path-brief {
  max-width: min(520px, 94vw);
}

.brief-order {
  margin: 0.55rem 0 0.35rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.42rem;
  letter-spacing: 0.18em;
  color: #8ab4ff;
  text-shadow: 1px 1px 0 #000;
}

.brief-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.35rem, 4.5vw, 2.2rem);
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow:
    2px 2px 0 #120820,
    0 0 22px rgba(125, 249, 255, 0.35);
  overflow: visible;
  white-space: normal;
  line-height: 1.1;
  max-width: 100%;
  padding: 0 4px;
  word-break: break-word;
}

.brief-tag {
  margin: 0.35rem 0 0;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--muted);
}

.brief-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 0.85rem;
}

.brief-objective {
  white-space: normal;
  line-height: 1.35;
  max-width: 100%;
  overflow: visible;
  word-break: break-word;
  margin: 1rem 0 0;
  padding: 10px 14px;
  width: 100%;
  max-width: 420px;
  border-radius: 4px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.42rem, 1.3vw, 0.58rem);
  letter-spacing: 0.14em;
  color: #7df9ff;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(94, 252, 255, 0.3);
  box-shadow: 0 0 0 1px #000, 0 0 18px rgba(94, 252, 255, 0.15);
  text-shadow: 0 0 10px rgba(125, 249, 255, 0.4), 1px 1px 0 #000;
}

.brief-lesson {
  margin: 0.85rem 0 0;
  max-width: 420px;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #c0cae0;
}

.brief-actions {
  margin-top: 1.15rem;
}

/* Path result */
.path-result-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.86;
  filter: drop-shadow(0 0 18px rgba(255, 77, 77, 0.28));
}

.path-result-word {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3.4rem, 16vw, 7.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.path-result.is-fail .path-result-fill,
.gameover-over .gameover-fill {
  color: #ff6a5a;
  background-image:
    radial-gradient(circle, rgba(18, 16, 28, 0.45) 1.2px, transparent 1.4px),
    linear-gradient(180deg, #ffc4b8 0%, #ff6a5a 55%, #ff4d4d 100%);
  background-size: 7px 7px, auto;
}

.path-result-tag {
  margin-top: 0.65rem;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.38rem, 1.1vw, 0.5rem);
  letter-spacing: 0.22em;
  color: #8ab4ff;
  text-shadow: 0 0 10px rgba(94, 252, 255, 0.4), 2px 2px 0 #000;
}

.path-result-stars {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 1rem;
}

.star-pip {
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1;
  color: #2a3048;
  text-shadow: 1px 1px 0 #000;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.star-pip.on {
  color: #ffe566;
  text-shadow:
    0 0 12px rgba(255, 220, 80, 0.7),
    0 0 24px rgba(255, 160, 40, 0.35),
    2px 2px 0 #000;
  transform: scale(1.08);
  animation: star-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.star-pip.on:nth-child(2) {
  animation-delay: 0.12s;
}

.star-pip.on:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes star-pop {
  from {
    opacity: 0.2;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

.path-result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 1.15rem;
  width: 100%;
  max-width: 560px;
}

.path-result-meta {
  margin-top: 0.75rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.38rem;
  letter-spacing: 0.14em;
  color: #8ab4ff;
  text-shadow: 1px 1px 0 #000;
  min-height: 1.2em;
}

.path-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  width: 100%;
}

.path-result-actions .btn.arcade {
  margin-top: 0;
  min-width: min(220px, 70vw);
  animation: arcade-pulse 1.6s ease-in-out infinite;
}

.path-result-actions .btn.secondary {
  min-width: 120px;
}

/* In-run Path objective chip */
.stat.path-obj-stat {
  border-color: rgba(255, 120, 200, 0.35);
  min-width: 110px;
}

.stat.path-obj-stat .stat-value,
.path-obj-value {
  color: #ffc0e8;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  letter-spacing: 0.02em;
}

.stat.path-obj-stat.hidden {
  display: none;
}

body.path-run #level-label {
  color: #ff8ad8;
}

body.touch-ui .path-result-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 340px;
}

body.touch-ui .path-node-name {
  font-size: 0.92rem;
}

body.touch-ui .path-node-pip-wrap {
  width: 62px;
  height: 62px;
}

body.touch-ui .path-node-pip {
  width: 42px;
  height: 42px;
}

body.touch-ui .path-node-stars {
  font-size: 1.15rem;
}

body.touch-ui .path-route::before,
body.touch-ui .path-nodes::before {
  top: 39px;
}

body.touch-ui .title-actions .btn.arcade {
  min-width: min(150px, 42vw);
}

@media (max-width: 700px) {
  .path-node-name {
    font-size: 0.82rem;
  }

  .path-node-pip-wrap {
    width: 58px;
    height: 58px;
  }

  .path-node-pip {
    width: 40px;
    height: 40px;
  }

  .path-node-stars {
    font-size: 1.1rem;
  }

  .path-route::before,
  .path-nodes::before {
    top: 37px;
  }

  .path-focus {
    padding: 14px 12px;
  }

  .path-focus-name {
    font-size: 1.3rem;
  }

  .path-result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .path-map-hint,
  .path-brief .path-map-hint,
  .path-result .path-map-hint {
    display: none;
  }

  .path-focus-lesson {
    font-size: 0.95rem;
  }

  .path-node-name {
    font-size: 0.78rem;
    min-height: 1.2em;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .path-node-pip-wrap {
    width: 52px;
    height: 52px;
  }

  .path-node-pip {
    width: 34px;
    height: 34px;
  }

  .path-node-stars {
    font-size: 0.95rem;
  }

  .path-route::before,
  .path-nodes::before {
    top: 34px;
  }

  .path-chapters {
    gap: 10px;
  }

  .path-map-title {
    font-size: 1rem;
  }
}

body.touch-ui .gameover-game {
  font-size: clamp(2rem, 12vw, 3.6rem);
}

body.touch-ui .gameover-over {
  font-size: clamp(2.3rem, 14vw, 4.2rem);
}

body.touch-ui .gameover-stats {
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 340px;
}

body.touch-ui .go-stat {
  min-width: 0;
  padding: 7px 6px 6px;
}

body.touch-ui .go-value {
  font-size: clamp(0.72rem, 3.2vw, 0.95rem);
}

body.touch-ui .gameover-runs {
  max-height: 12vh;
  font-size: 0.7rem;
}

body.touch-ui .gameover-actions .btn.arcade {
  min-width: min(240px, 86vw);
  min-height: 52px;
}

@media (orientation: landscape) and (max-height: 480px) {
  .gameover-game {
    font-size: clamp(1.6rem, 8vh, 2.8rem);
  }

  .gameover-over {
    font-size: clamp(1.9rem, 9.5vh, 3.2rem);
  }

  .gameover-tag {
    margin-top: 0.4rem;
  }

  .gameover-stats {
    margin-top: 0.55rem;
  }

  .go-stat {
    padding: 5px 8px 4px;
  }

  .go-value {
    font-size: 0.95rem;
  }

  .gameover-runs {
    display: none;
  }

  .gameover-actions {
    margin-top: 0.65rem;
  }

  .gameover-hint {
    display: none;
  }
}

.panel-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(ellipse, rgba(125, 249, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.panel h2 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  position: relative;
  color: #7df9ff;
  text-shadow: 0 0 12px rgba(125, 249, 255, 0.45), 2px 2px 0 #000;
}

.panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
  white-space: pre-line;
  text-align: left;
  max-height: 40vh;
  overflow-y: auto;
  font-family: var(--font);
}

.how-to {
  list-style: none;
  text-align: left;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.how-to.hidden {
  display: none;
}

.how-to li {
  font-size: 0.82rem;
  padding: 5px 0;
  color: var(--muted);
  line-height: 1.4;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn.ghost:hover {
  color: var(--text);
  border-color: rgba(125, 249, 255, 0.3);
}

.actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 700px) {
  .top-bar {
    min-height: 52px;
    padding: 4px 0;
  }

  .brand-logo .title-logo-geo {
    font-size: 0.9rem;
  }

  .brand-logo .title-logo-arena {
    font-size: 1.05rem;
  }

  .stat {
    min-width: 68px;
    padding: 8px 10px;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }
}

/* ── Touch / mobile twin-stick ─────────────────────────── */
.touch-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  touch-action: none;
}

.touch-controls.hidden {
  display: none;
}

.touch-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: auto;
  touch-action: none;
  /* Invisible hit areas — sticks appear on press */
  background: transparent;
}

.touch-zone-move {
  left: 0;
}

.touch-zone-aim {
  right: 0;
}

.touch-stick {
  position: fixed;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  pointer-events: none;
  z-index: 6;
}

.touch-stick.hidden {
  display: none;
}

.touch-stick-base {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(94, 252, 255, 0.35);
  background: rgba(6, 12, 28, 0.28);
  box-shadow: 0 0 24px rgba(40, 140, 255, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.touch-stick-base.aim {
  border-color: rgba(255, 120, 200, 0.35);
  box-shadow: 0 0 24px rgba(255, 80, 160, 0.18), inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.touch-stick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(180, 255, 255, 0.95), rgba(40, 180, 255, 0.55));
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 16px rgba(94, 252, 255, 0.55);
  will-change: transform;
}

.touch-stick-knob.aim {
  background: radial-gradient(circle at 35% 30%, rgba(255, 220, 240, 0.95), rgba(255, 80, 160, 0.55));
  box-shadow: 0 0 16px rgba(255, 100, 180, 0.5);
}

.touch-fab {
  position: absolute;
  pointer-events: auto;
  touch-action: manipulation;
  border: 2px solid rgba(94, 252, 255, 0.4);
  border-radius: 999px;
  background: rgba(6, 10, 24, 0.72);
  color: #e8f7ff;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(40, 120, 255, 0.25);
  -webkit-tap-highlight-color: transparent;
  z-index: 7;
}

.touch-fab:active {
  transform: scale(0.94);
  background: rgba(20, 40, 80, 0.85);
}

.touch-bomb {
  left: max(12px, env(safe-area-inset-left));
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px));
  min-width: 72px;
  min-height: 72px;
  padding: 0 14px;
  font-size: 0.72rem;
  border-color: rgba(255, 220, 80, 0.55);
  color: #ffe566;
  box-shadow: 0 0 22px rgba(255, 200, 40, 0.28);
}

.touch-pause {
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  font-size: 0.85rem;
  letter-spacing: 0;
}

.touch-hint {
  position: absolute;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(180, 210, 255, 0.4);
  pointer-events: none;
  white-space: nowrap;
}

.portrait-hint {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(6, 10, 24, 0.88);
  border: 1px solid rgba(94, 252, 255, 0.35);
  color: #d0e8ff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.portrait-hint.hidden {
  display: none;
}

/* Compact chrome when body.touch-ui (phones / tablets) */
body.touch-ui {
  /* Full-bleed viewport; safe areas handled on HUD / fabs */
  padding: 0;
  background: #000005;
}

body.touch-ui #app {
  position: relative;
  height: 100%;
  height: 100dvh;
  width: 100%;
  max-width: none;
  padding: 0;
  gap: 0;
  /* Stack everything in one full-bleed cell; HUD/overlays float */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "stage";
  overflow: hidden;
}

/* Slim overlay HUD — does not steal vertical play space */
body.touch-ui .top-bar {
  grid-area: stage;
  position: relative;
  z-index: 8;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: max(4px, env(safe-area-inset-top)) max(44px, env(safe-area-inset-right))
    0 max(6px, env(safe-area-inset-left));
  gap: 0;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 70%,
    transparent 100%
  );
}

body.touch-ui .brand {
  display: none;
}

body.touch-ui .stats {
  width: auto;
  max-width: calc(100% - 8px);
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  pointer-events: none;
}

body.touch-ui .stat {
  min-width: 0;
  flex: 0 1 auto;
  padding: 2px 7px 3px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(94, 252, 255, 0.18);
  text-align: center;
}

body.touch-ui .stat-label {
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  line-height: 1.1;
}

body.touch-ui .stat-value {
  font-size: 0.78rem;
  line-height: 1.15;
}

body.touch-ui .stat:nth-child(2),
body.touch-ui .stat:nth-child(6) {
  /* Level + Best — hide to free space */
  display: none;
}

body.touch-ui .bottom-bar {
  display: none;
}

body.touch-ui #portrait-hint {
  grid-area: stage;
  /* still position:fixed via .portrait-hint */
}

body.touch-ui .stage-wrap {
  grid-area: stage;
  border-radius: 0;
  border: none;
  box-shadow: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  /* Cover-fit canvas may overflow one axis */
  overflow: hidden;
  background: #000005;
  z-index: 0;
}

body.touch-ui #game {
  /* JS sets exact cover size; keep centered */
  max-width: none;
  max-height: none;
}

body.touch-ui .btn.arcade {
  min-height: 88px;
  min-width: 0;
  font-size: 1.05rem;
}

body.touch-ui .title-menu {
  max-width: min(520px, 96vw);
  padding: 0 8px;
}

/* Landscape phones: even tighter HUD + room for twin-sticks */
@media (orientation: landscape) {
  .portrait-hint {
    display: none !important;
  }

  body.touch-ui .top-bar {
    padding: max(2px, env(safe-area-inset-top)) max(52px, env(safe-area-inset-right))
      0 max(4px, env(safe-area-inset-left));
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.12) 75%,
      transparent 100%
    );
  }

  body.touch-ui .stats {
    gap: 2px;
  }

  body.touch-ui .stat {
    padding: 1px 6px 2px;
    border-radius: 5px;
  }

  body.touch-ui .stat-label {
    font-size: 0.42rem;
  }

  body.touch-ui .stat-value {
    font-size: 0.7rem;
  }

  body.touch-ui .touch-bomb {
    left: max(12px, env(safe-area-inset-left));
    right: auto;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px));
    min-width: 72px;
    min-height: 72px;
    font-size: 0.62rem;
  }

  body.touch-ui .touch-pause {
    top: max(4px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  body.touch-ui .touch-hint {
    display: none;
  }
}

/* Portrait: nudge landscape */
@media (orientation: portrait) and (max-width: 900px) {
  body.touch-ui .portrait-hint:not(.hidden) {
    display: block;
  }

  body.touch-ui .top-bar {
    padding-right: max(10px, env(safe-area-inset-right));
  }
}

/* ═══════════════════════════════════════════════════════════
   Full-screen 16-bit splash — SNES title-screen energy
   (Battletoads / Double Dragon inspired: black void, huge
   multicolor chrome lettering, floating geometric props)
   ═══════════════════════════════════════════════════════════ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.85, 0.25, 1),
    filter 0.7s ease,
    clip-path 0.75s cubic-bezier(0.55, 0.05, 0.35, 1);
  clip-path: circle(150% at 50% 48%);
}

/* Iris + scanline wipe into the live grid (not a pure fade) */
.splash.leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.08);
  filter: brightness(1.35) contrast(1.15);
  clip-path: circle(0% at 50% 48%);
  transition:
    opacity 0.55s ease 0.12s,
    visibility 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.85, 0.25, 1),
    filter 0.55s ease,
    clip-path 0.72s cubic-bezier(0.55, 0.05, 0.35, 1);
}

.splash.leaving .splash-scanlines {
  animation: splash-scan-wipe 0.7s linear both;
  opacity: 0.9;
}

.splash.leaving .splash-logo,
.splash.leaving .splash-prompt,
.splash.leaving .splash-shapes {
  opacity: 0;
  transition: opacity 0.28s ease;
}

@keyframes splash-scan-wipe {
  0% {
    transform: translateY(0);
    opacity: 0.55;
  }
  40% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(18%);
    opacity: 0.2;
  }
}

.splash.hidden {
  display: none;
}

/* Soft vignette + deep black */
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(20, 10, 40, 0.55), transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Pixel starfield */
.splash-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 8% 12%, #fff 99%, transparent),
    radial-gradient(1px 1px at 22% 68%, #aaf 99%, transparent),
    radial-gradient(1.5px 1.5px at 35% 28%, #fff 99%, transparent),
    radial-gradient(1px 1px at 48% 82%, #ff8 99%, transparent),
    radial-gradient(1px 1px at 62% 18%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 74% 55%, #caf 99%, transparent),
    radial-gradient(1px 1px at 88% 34%, #fff 99%, transparent),
    radial-gradient(1px 1px at 15% 90%, #8ff 99%, transparent),
    radial-gradient(1px 1px at 92% 78%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 55% 8%, #faf 99%, transparent),
    radial-gradient(1px 1px at 40% 48%, #fff 99%, transparent),
    radial-gradient(1px 1px at 70% 92%, #ffc 99%, transparent),
    radial-gradient(1px 1px at 5% 45%, #fff 99%, transparent),
    radial-gradient(1px 1px at 28% 8%, #adf 99%, transparent),
    radial-gradient(1px 1px at 96% 12%, #fff 99%, transparent);
  animation: star-twinkle 3.2s steps(2, end) infinite;
  opacity: 0.85;
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Floating 16-bit geometric props */
.splash-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  image-rendering: pixelated;
}

/* Isometric-ish cubes */
.cube {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #5efcff 0%, #2a8cff 45%, #1a3a80 100%);
  box-shadow:
    6px 6px 0 #0a1840,
    inset -3px -3px 0 rgba(0, 0, 0, 0.35),
    inset 3px 3px 0 rgba(255, 255, 255, 0.35);
  animation: float-spin 7s ease-in-out infinite;
}

.cube.c1 {
  top: 14%;
  left: 10%;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff5ec8 0%, #c42bff 50%, #4a1080 100%);
  animation-duration: 8.5s;
  animation-delay: -1s;
}

.cube.c2 {
  bottom: 18%;
  right: 12%;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ffe14a 0%, #ff8a1a 55%, #a04010 100%);
  animation-duration: 6.2s;
  animation-delay: -2.4s;
}

/* Chrome spheres */
.sphere {
  border-radius: 50%;
  box-shadow:
    inset -6px -8px 0 rgba(0, 0, 0, 0.35),
    inset 4px 4px 0 rgba(255, 255, 255, 0.45),
    0 0 18px rgba(125, 249, 255, 0.25);
  animation: float-bob 5.5s ease-in-out infinite;
}

.sphere.s1 {
  top: 22%;
  right: 14%;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #7df9ff 28%, #2860ff 70%, #0a1040 100%);
  animation-delay: -0.8s;
}

.sphere.s2 {
  bottom: 24%;
  left: 16%;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #ff8ad4 30%, #c02080 72%, #300818 100%);
  animation-duration: 4.8s;
  animation-delay: -1.6s;
}

/* Diamonds / rhombus gems */
.diamond {
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.4),
    inset 2px 2px 0 rgba(255, 255, 255, 0.5),
    0 0 12px currentColor;
  animation: float-diamond 4.4s ease-in-out infinite;
}

.diamond.d1 {
  top: 38%;
  left: 6%;
  background: linear-gradient(135deg, #fff 0%, #5efcff 40%, #1860c0 100%);
  color: #5efcff;
  animation-delay: -0.3s;
}

.diamond.d2 {
  top: 12%;
  right: 28%;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #fff 0%, #ff5e8a 40%, #a01040 100%);
  color: #ff5e8a;
  animation-delay: -1.1s;
}

.diamond.d3 {
  bottom: 32%;
  right: 6%;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #fff 0%, #b86bff 40%, #5010a0 100%);
  color: #b86bff;
  animation-delay: -2s;
}

/* Neon ship triangles */
.tri {
  width: 0;
  height: 0;
  border-style: solid;
  animation: float-spin 9s ease-in-out infinite;
}

.tri.t1 {
  top: 58%;
  left: 8%;
  border-width: 14px 0 14px 28px;
  border-color: transparent transparent transparent #5efcff;
  filter: drop-shadow(0 0 6px #5efcff);
  animation-duration: 10s;
}

.tri.t2 {
  top: 28%;
  right: 7%;
  border-width: 10px 0 10px 22px;
  border-color: transparent transparent transparent #ff5ec8;
  filter: drop-shadow(0 0 6px #ff5ec8);
  animation-name: float-spin-flip;
  animation-duration: 7.5s;
  animation-delay: -3s;
}

/* 4-point pixel stars */
.star {
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: star-pulse 1.6s steps(2, end) infinite;
  filter: drop-shadow(0 0 4px currentColor);
}

.star.st1 {
  top: 18%;
  left: 32%;
  color: #ffe14a;
  background: #ffe14a;
  animation-delay: 0s;
}

.star.st2 {
  top: 48%;
  right: 22%;
  width: 14px;
  height: 14px;
  color: #5efcff;
  background: #5efcff;
  animation-delay: 0.4s;
}

.star.st3 {
  bottom: 20%;
  left: 38%;
  width: 8px;
  height: 8px;
  color: #ff5ec8;
  background: #ff5ec8;
  animation-delay: 0.8s;
}

.star.st4 {
  top: 8%;
  left: 55%;
  width: 12px;
  height: 12px;
  color: #fff;
  background: #fff;
  animation-delay: 1.2s;
}

/* Hollow rings */
.ring {
  border-radius: 50%;
  border: 3px solid;
  background: transparent;
  animation: float-bob 6s ease-in-out infinite;
}

.ring.r1 {
  top: 70%;
  right: 22%;
  width: 26px;
  height: 26px;
  border-color: #5efcff;
  box-shadow: 0 0 10px #5efcff, inset 0 0 6px rgba(94, 252, 255, 0.3);
  animation-delay: -1.4s;
}

.ring.r2 {
  top: 42%;
  left: 22%;
  width: 20px;
  height: 20px;
  border-color: #ffb84a;
  box-shadow: 0 0 10px #ffb84a;
  animation-delay: -0.5s;
}

@keyframes float-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes float-diamond {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-14px) rotate(45deg);
  }
}

@keyframes float-spin {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(12deg);
  }
}

@keyframes float-spin-flip {
  0%,
  100% {
    transform: translateY(0) rotate(180deg);
  }
  50% {
    transform: translateY(-18px) rotate(192deg);
  }
}

@keyframes star-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

/* ── Logo: massive SNES chrome wordmark ── */
.splash-logo {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 4vw;
  max-width: 100%;
  animation: logo-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.logo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.15rem, 1.2vw, 0.6rem);
  margin: 0;
  line-height: 0.92;
}

.logo-line {
  display: block;
  position: relative;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  /* chunky “pixel” edges without sacrificing scale */
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.4);
}

.logo-geometry {
  font-size: clamp(2.4rem, 11.5vw, 9.5rem);
}

.logo-arena {
  font-size: clamp(2.8rem, 13.5vw, 11rem);
}

/* Bevel / chrome fill via layered shadows + gradient text */
.logo-fill {
  position: relative;
}

/* Subtle shine sweep on the wordmark */
.logo-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 55%
  );
  mix-blend-mode: overlay;
  animation: logo-shine 4.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: 2px;
}

@keyframes logo-shine {
  0%,
  60%,
  100% {
    opacity: 0;
    transform: translateX(-30%);
  }
  70% {
    opacity: 1;
    transform: translateX(30%);
  }
}

.logo-sub {
  margin-top: clamp(1rem, 3vw, 1.75rem);
  font-family: Outfit, sans-serif;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  letter-spacing: 0.22em;
  color: var(--lilac, #c9b8e0);
  text-shadow: 2px 2px 0 #000;
  opacity: 0.9;
}

/* PRESS ANY KEY — classic 16-bit blink */
.splash-prompt {
  position: relative;
  z-index: 3;
  margin-top: clamp(1.8rem, 5vh, 3.2rem);
  font-family: Outfit, sans-serif;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  letter-spacing: 0.16em;
  color: var(--paper);
  text-shadow: 2px 2px 0 #000;
  animation: prompt-blink 1.1s steps(1, end) infinite;
}

@keyframes prompt-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.15;
  }
}

/* CRT / 16-bit scanlines */
.splash-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.55;
}

/* Soft outer CRT curve darkening */
.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 120px 40px rgba(0, 0, 0, 0.55);
}

@media (max-width: 600px) {
  .cube.c1 {
    width: 32px;
    height: 32px;
  }

  .sphere.s1 {
    width: 28px;
    height: 28px;
  }

  .logo-line {
    font-style: normal;
    letter-spacing: -0.02em;
  }
}
