* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #0a0704;
  color: #e8ddc9;
  font-family: "Courier New", Courier, monospace;
}

body.biome-techno {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 229, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(255, 0, 170, 0.1), transparent 50%),
    linear-gradient(180deg, #060a12 0%, #0a0e18 45%, #08060e 100%);
  color: #d7e6f2;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}

/* Full-bleed techno home art — fixed layer so scroll never reveals a black bar */
body.biome-techno.screen-home {
  background: #060a12;
}

body.biome-techno.screen-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 8, 14, 0.32) 0%, rgba(4, 8, 14, 0.48) 45%, rgba(4, 8, 14, 0.62) 100%),
    url("../assets/sprites/biomes/techno/ui/home.png?v=phaseb70") center center / cover no-repeat;
}

body.biome-techno.screen-home::before {
  opacity: 0.12;
}

body.biome-techno::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

body.biome-techno #app {
  position: relative;
  z-index: 1;
}

body.biome-techno h1 {
  font-family: "Orbitron", sans-serif;
  color: #00e5ff;
  text-shadow:
    0 0 10px rgba(0, 229, 255, 0.55),
    0 0 28px rgba(255, 0, 170, 0.25);
  letter-spacing: 0.18em;
}

body.biome-techno .sub {
  color: #7a93a8;
  font-family: "Rajdhani", sans-serif;
}

body.biome-techno .hud {
  color: #9eb6c9;
}

body.biome-techno .hud span,
body.biome-techno .hud .turn {
  color: #e8f7ff;
}

body.biome-techno .board-viewport {
  border-color: #1a3a4a;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.35),
    0 0 24px rgba(0, 229, 255, 0.15),
    0 0 40px rgba(255, 0, 170, 0.08),
    0 0 30px rgba(0, 0, 0, 0.6) inset;
  background: #05080f;
}

body.biome-techno .dock-btn {
  background: rgba(8, 14, 22, 0.78);
  border-color: rgba(0, 229, 255, 0.4);
  color: #c9e4f5;
}

body.biome-techno .dock-btn:hover {
  border-color: #00e5ff;
  color: #00e5ff;
}

body.biome-techno .dock-btn.active {
  border-color: #ff00aa;
  color: #ff00aa;
  box-shadow: 0 0 12px rgba(255, 0, 170, 0.35);
}

body.biome-techno .rail-btn {
  background: linear-gradient(180deg, #101824 0%, #0a1018 100%);
  border-color: #1e3d4f;
  color: #c9e4f5;
  border-radius: 4px;
  font-family: "Orbitron", sans-serif;
}

body.biome-techno .rail-btn:hover {
  border-color: #00e5ff;
  color: #00e5ff;
}

body.biome-techno .rail-btn.active {
  border-color: #ff00aa;
  color: #ff00aa;
  box-shadow: 0 0 12px rgba(255, 0, 170, 0.35);
}

body.biome-techno .rail-label {
  letter-spacing: 0.12em;
}

body.biome-techno .mine-bar-wrap {
  background: #0c121c;
  border: 1px solid #1a3a4a;
}

body.biome-techno .mine-bar {
  background: linear-gradient(90deg, #00e5ff, #ff00aa);
}

body.biome-techno .btn {
  font-family: "Orbitron", sans-serif;
  background: #00e5ff;
  color: #041018;
  border-radius: 2px;
}

body.biome-techno .btn.secondary {
  background: #0a1018;
  color: #c9e4f5;
  border-color: #1e3d4f;
}

body.biome-techno .btn.secondary.active {
  border-color: #00e5ff;
  color: #00e5ff;
}

body.biome-techno .btn.escape {
  background: #ff00aa;
  color: #1a0012;
}

body.biome-techno .overlay-title {
  font-family: "Orbitron", sans-serif;
  color: #00e5ff;
}

body.biome-techno .overlay-body {
  color: #9eb6c9;
}

body.biome-techno .dpad button {
  background: #0a1018;
  border-color: #1e3d4f;
  color: #c9e4f5;
  border-radius: 4px;
}

body.biome-techno .escape-banner {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

body.biome-techno .cavein-flash {
  color: #ff00aa;
  text-shadow: 0 0 20px rgba(255, 0, 170, 0.7);
  font-family: "Orbitron", sans-serif;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 32px;
}

body.biome-techno.screen-play {
  height: 100%;
  overflow: hidden;
}

#app.app-play {
  padding: 0;
  align-items: stretch;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

h1 {
  font-size: 32px;
  letter-spacing: 6px;
  margin: 0 0 2px;
  color: #ffd166;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.35);
  font-weight: 900;
}

.app-play h1 {
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 4px;
  margin: 0;
}

.sub {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #9a8b73;
  text-transform: uppercase;
}

.app-play .sub {
  margin: 0;
  font-size: 10px;
}

.play-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 4px 0 0;
  gap: 4px;
}

/* Slim stats strip — no brand/title in play (BUILD: tutorial/settings later) */
.play-hud {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
  padding: 0 8px;
}

.play-top,
.play-brand,
.play-rail {
  display: none;
}

.play-main {
  display: contents;
}

.board-frame {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.board-viewport {
  position: relative;
  overflow: hidden;
  border: 3px solid #3a2a1a;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6) inset, 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.board-viewport > .overlay,
.board-viewport > .cavein-flash {
  border-radius: 3px;
}

.board-frame.camera-follow {
  justify-content: stretch;
}

.board-frame.camera-follow .board-viewport {
  width: 100%;
}

.board-wrap {
  position: relative;
  flex-shrink: 0;
  will-change: transform;
  overflow: visible;
}

.board-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  touch-action: none;
}

/* Icon dock on the unplayable bottom wall row */
.action-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  height: calc(100% / 16); /* ROWS perimeter band */
  min-height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 14, 0.35) 55%, rgba(4, 8, 14, 0.55) 100%);
}

.action-dock > .dock-btn,
.action-dock > .dpad {
  pointer-events: auto;
}

.dock-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(48px, 9vw);
  height: min(40px, 90%);
  padding: 0;
  margin: 0;
  background: rgba(10, 16, 24, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 6px;
  color: #c9e4f5;
  cursor: pointer;
  touch-action: manipulation;
  flex: 0 0 auto;
}

.dock-btn:hover {
  border-color: #00e5ff;
  color: #00e5ff;
}

.dock-btn.active {
  border-color: #ff00aa;
  color: #ff00aa;
  box-shadow: 0 0 10px rgba(255, 0, 170, 0.4);
}

.dock-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.dock-fallback {
  display: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dock-btn:not(.has-icon) .dock-fallback {
  display: block;
}

.dock-btn.has-icon .dock-fallback {
  display: none;
}

.dock-glyph {
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.dock-count {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 14px;
  padding: 0 3px;
  border-radius: 6px;
  background: #041018;
  border: 1px solid #1e3d4f;
  color: #00e5ff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  font-family: "Orbitron", sans-serif;
}

.dock-enemy-debug {
  min-width: 52px;
  border-style: solid;
  border-color: #4a9e8e;
  color: #7fffd4;
  opacity: 1;
  outline: none;
  /* Never share sticky .active / focus look with movement or targeting */
  -webkit-tap-highlight-color: transparent;
}

.dock-enemy-debug:focus,
.dock-enemy-debug:focus-visible,
.dock-enemy-debug:focus-within {
  outline: none;
  border-color: #4a9e8e;
  color: #7fffd4;
  box-shadow: none;
}

/* Beat body.biome-techno .dock-btn.active pink armed style */
body.biome-techno .dock-btn.dock-enemy-debug.active,
.dock-btn.dock-enemy-debug.active {
  border-color: #4a9e8e;
  color: #7fffd4;
  box-shadow: none;
}

/* Brief click press only — not sticky */
body.biome-techno .dock-btn.dock-enemy-debug.is-pressed,
body.biome-techno .dock-btn.dock-enemy-debug:active,
.dock-btn.dock-enemy-debug.is-pressed,
.dock-btn.dock-enemy-debug:active {
  border-color: #7fffd4;
  color: #e8fff8;
  box-shadow: 0 0 10px rgba(127, 255, 212, 0.45);
  transform: scale(0.96);
}

.dock-enemy-debug .dock-fallback {
  display: inline;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.dock-enemy-debug:hover:not(:disabled) {
  border-color: #7fffd4;
  color: #7fffd4;
  box-shadow: 0 0 8px rgba(127, 255, 212, 0.35);
}

.dock-enemy-debug:disabled {
  opacity: 0.45;
  border-color: #3a3a3a;
  color: #666;
  cursor: not-allowed;
}

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 6px;
  background: #15100c;
  border: 2px solid #4a3323;
  border-radius: 8px;
  color: #e8ddc9;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.rail-btn:hover {
  border-color: #ffd166;
}

.rail-btn.active {
  border-color: #ffd166;
  color: #ffd166;
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.35);
}

.rail-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.rail-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin: 0 0 2px;
  filter: drop-shadow(0 0 4px rgba(0, 220, 255, 0.35));
}

.rail-count,
.rail-hint {
  font-size: 13px;
  color: #ffd166;
}

.rail-back {
  margin-top: auto;
}

.hud {
  display: flex;
  gap: 14px;
  margin-bottom: 0;
  font-size: 12px;
  letter-spacing: 1px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hud span {
  color: #ffd166;
}

.hud .turn {
  color: #8ff2bb;
}

.escape-banner {
  font-size: 11px;
  letter-spacing: 2px;
  color: #8ff2bb;
  margin-bottom: 0;
  text-transform: uppercase;
  text-align: left;
  max-width: none;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(10, 7, 4, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 12px;
  text-align: center;
}

.overlay.hidden {
  display: none;
}

/* See the crush path + landed killer under the death copy */
.overlay.overlay-crush {
  background: rgba(10, 7, 4, 0.58);
}

.overlay-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: #ffd166;
}

.overlay-title.bad {
  color: #ff8290;
}

.overlay-title.good {
  color: #8ff2bb;
}

.overlay-body {
  font-size: 12px;
  color: #c9bda3;
  max-width: 260px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.overlay-cause {
  color: #ff8290;
  font-size: 15px;
  font-weight: 700;
  margin: 8px 18px 4px;
  line-height: 1.4;
  max-width: 320px;
}

.btn {
  background: #ffd166;
  color: #241a12;
  border: none;
  padding: 10px 22px;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.btn.secondary {
  background: #241a12;
  color: #e8ddc9;
  border: 2px solid #4a3323;
}

.btn.secondary.active {
  border-color: #ffd166;
  color: #ffd166;
}

.btn.escape {
  margin-top: 14px;
  background: #8ff2bb;
  color: #0a2c1a;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  gap: 4px;
  margin-left: 8px;
  width: auto;
}

.dpad.touch-only {
  display: none;
}

.dpad button {
  background: rgba(10, 16, 24, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #c9e4f5;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.dpad-spacer {
  visibility: hidden;
}

@media (hover: none), (pointer: coarse) {
  .dpad.touch-only {
    display: grid;
  }

  .action-dock {
    min-height: 48px;
    gap: 4px;
  }
}

@media (max-width: 720px) {
  .play-hud {
    padding: 0 6px;
  }

  .dock-btn {
    width: min(44px, 11vw);
  }

  .dpad.touch-only {
    margin-left: 4px;
    grid-template-columns: repeat(3, 32px);
    grid-template-rows: repeat(3, 32px);
  }
}

.level-list {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.level-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  background: #15100c;
  border: 2px solid #3a2a1a;
  color: #e8ddc9;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  cursor: pointer;
}

.level-card:hover:not(:disabled) {
  border-color: #ffd166;
}

.level-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.level-card .name {
  font-size: 15px;
  letter-spacing: 1px;
  color: #ffd166;
  font-weight: 800;
}

.level-card .blurb {
  font-size: 12px;
  color: #9a8b73;
  line-height: 1.35;
}

.level-card .meta {
  font-size: 11px;
  color: #8ff2bb;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.back-link {
  margin-top: 16px;
  background: none;
  border: none;
  color: #9a8b73;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
}

.bests {
  margin-top: 12px;
  font-size: 11px;
  color: #9a8b73;
  text-align: left;
}

.bests .label {
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.mine-bar-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  height: 8px;
  background: #241a12;
  border: 1px solid #4a3323;
  border-radius: 4px;
  margin-bottom: 0;
  overflow: visible;
}

.mine-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3fc283, #ffd166);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.mine-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  background: #ff8290;
  transform: translateX(-1px);
  pointer-events: none;
}

.tool-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.currency-strip {
  font-size: 12px;
  letter-spacing: 1px;
  color: #ffd166;
  margin-bottom: 10px;
}

.nav-row {
  margin-bottom: 8px;
}

.main-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(320px, 100%);
  margin-top: 8px;
}

.home-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(420px, 100%);
  padding: 8px 0 24px;
}

.brand-logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 4px 0 8px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
  user-select: none;
  pointer-events: none;
}

@media (min-width: 720px) {
  .brand-logo {
    width: min(360px, 40vw);
  }
}

.main-menu .menu-btn {
  width: 100%;
  position: relative;
  padding: 14px 22px;
  min-height: 58px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    transform 0.12s ease;
}

body.biome-techno .main-menu .menu-btn:hover,
body.biome-techno .main-menu .menu-btn:focus-visible,
body.biome-techno .main-menu .menu-btn.is-highlight {
  outline: none;
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(8, 18, 28, 0.88);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.45),
    0 0 18px rgba(0, 229, 255, 0.35),
    0 0 28px rgba(255, 0, 170, 0.18);
  transform: translateY(-1px);
}

body.biome-techno.screen-home .main-menu .menu-btn.secondary,
body.biome-techno.screen-home .btn.secondary {
  background: rgba(8, 14, 22, 0.72);
  backdrop-filter: blur(6px);
}

body.biome-techno.screen-home .currency-strip,
body.biome-techno.screen-home .sub,
body.biome-techno.screen-home .milestone-teaser,
body.biome-techno.screen-home .settings-panel,
body.biome-techno.screen-home .shop-section,
body.biome-techno.screen-home .level-list,
body.biome-techno.screen-home .bests,
body.biome-techno.screen-home .mode-stub-note {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

body.biome-techno.screen-home .level-card {
  background: rgba(10, 16, 24, 0.78);
  backdrop-filter: blur(6px);
}

body.biome-techno.screen-home .settings-panel {
  background: rgba(8, 14, 22, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  padding: 16px 14px;
  backdrop-filter: blur(8px);
}

.menu-soon {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.55;
  margin-top: 4px;
  font-weight: 600;
}

.mode-stub-note {
  font-size: 13px;
  color: #9a8b73;
  text-align: center;
  max-width: 320px;
  margin: 8px 0 16px;
  line-height: 1.4;
}

.settings-panel {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 8px;
}

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.settings-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a8b73;
}

.settings-row input[type="range"] {
  width: 100%;
  accent-color: #ffd166;
  height: 28px;
  cursor: pointer;
}

.milestone-teaser {
  font-size: 11px;
  color: #8ff2bb;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
  text-align: center;
}

.intent {
  font-size: 10px;
  color: #9a8b73;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shop-section {
  width: min(420px, 100%);
  margin-bottom: 16px;
}

.shop-section .label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a8b73;
  margin-bottom: 6px;
}

.shop-msg {
  color: #8ff2bb;
  font-size: 12px;
  min-height: 1.2em;
}

.cavein-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 900;
  letter-spacing: 6px;
  pointer-events: none;
  z-index: 5;
  animation: cavein-wash 2s ease-out forwards;
}

.cavein-flash.hidden {
  display: none;
}

@keyframes cavein-wash {
  0% {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
  }
  35% {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
  }
  100% {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
  }
}

.board-viewport.cavein-shake {
  animation: cavein-rattle 0.07s linear 28;
}

@keyframes cavein-rattle {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

body.biome-techno .level-card {
  background: linear-gradient(180deg, #101824 0%, #0a1018 100%);
  border: 1px solid #1e3d4f;
  color: #c9e4f5;
}

body.biome-techno .level-card:hover:not(:disabled) {
  border-color: #00e5ff;
}

body.biome-techno .level-card .name {
  font-family: "Orbitron", sans-serif;
  color: #00e5ff;
}

body.biome-techno .currency-strip {
  color: #9eb6c9;
  font-family: "Rajdhani", sans-serif;
}

body.biome-techno .shop-section .label {
  color: #00e5ff;
  font-family: "Orbitron", sans-serif;
}

body.biome-techno .back-link {
  color: #9eb6c9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

body.biome-techno .back-link:hover {
  color: #00e5ff;
}

body.biome-techno .mode-stub-note {
  color: #7a93a8;
  font-family: "Rajdhani", sans-serif;
}

body.biome-techno .settings-label {
  color: #9eb6c9;
  font-family: "Orbitron", sans-serif;
}

body.biome-techno .settings-row input[type="range"] {
  accent-color: #00e5ff;
}

/* DEBUG ONLY — REMOVE LATER (mounted on document.body) */
.debug-panel,
#cavein-debug-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 99999;
  max-height: min(46vh, 320px);
  overflow: auto;
  padding: 12px 14px;
  background: rgba(6, 12, 18, 0.97);
  border: 2px solid #00e5ff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}

#cavein-debug-panel.hidden {
  display: none !important;
}

.debug-flag {
  color: #ff8290;
  font-size: 10px;
  margin-left: 8px;
}

.debug-help {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.35;
  color: #9eb6c9;
  font-family: "Rajdhani", sans-serif;
}

.debug-action {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #00e5ff;
  background: #143040;
  color: #00e5ff;
  cursor: pointer;
  touch-action: manipulation;
}

.debug-action:hover {
  background: #1a4a5c;
}

.debug-title {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #00e5ff;
  margin-bottom: 8px;
}

.debug-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.debug-chip {
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #2a4558;
  background: #101824;
  color: #c9e4f5;
  cursor: pointer;
  touch-action: manipulation;
}

.debug-chip:hover {
  border-color: #00e5ff;
}

.debug-chip.active {
  border-color: #00e5ff;
  background: #143040;
  color: #00e5ff;
}

.debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.debug-actions-primary {
  margin-bottom: 10px;
}

.debug-action-worm {
  flex: 1 1 100%;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-width: 2px;
  background: linear-gradient(180deg, #1a4a5c 0%, #143040 100%);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
  touch-action: manipulation;
}

.debug-action-worm:hover {
  background: linear-gradient(180deg, #206080 0%, #1a4a5c 100%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

.debug-actions .btn {
  font-size: 12px;
  padding: 6px 10px;
}
