html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #020508;
  color: #9fd;
  font-family: "Courier New", Courier, monospace;
  cursor: default;
}
#c {
  display: block;
  width: 100%;
  height: 100%;
}
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(0,20,16,0.85), rgba(0,0,0,0));
  pointer-events: none;
  letter-spacing: 0.04em;
}
#hud .brand { font-weight: bold; font-size: 13px; color: #bff; text-shadow: 0 0 8px #0a6; }

#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.55;
}
#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: #9fd;
  box-shadow: 0 0 4px #0a6;
}
#crosshair::before {
  left: 4px; top: 0;
  width: 2px; height: 10px;
}
#crosshair::after {
  left: 0; top: 4px;
  width: 10px; height: 2px;
}

#prompt {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 16px;
  background: rgba(0, 24, 20, 0.82);
  border: 1px solid #2a6a55;
  color: #bff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 6px #0a6;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(0, 80, 60, 0.35);
}

#click-hint {
  position: fixed;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 10px 18px;
  background: rgba(0, 16, 14, 0.88);
  border: 1px solid #1a4a40;
  color: #8cb;
  font-size: 12px;
  letter-spacing: 0.08em;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
body.locked #click-hint { display: none; }
body.overlay-open #click-hint { display: none; }
body.overlay-open #prompt { display: none; }
body.overlay-open #crosshair { opacity: 0.15; }

#overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 6, 8, 0.72);
  backdrop-filter: blur(2px);
}
#overlay[hidden] { display: none !important; }
#overlay .panel {
  max-width: 420px;
  margin: 1rem;
  padding: 28px 32px;
  background: linear-gradient(160deg, #0a1a18 0%, #061210 100%);
  border: 2px solid #2a5a4a;
  box-shadow:
    0 0 0 1px #0a3028,
    0 0 40px rgba(0, 100, 70, 0.25),
    inset 0 0 30px rgba(0, 40, 30, 0.4);
  text-align: center;
}
#overlay .marquee {
  font-size: 18px;
  font-weight: bold;
  color: #cff;
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px #0c8, 0 0 2px #fff;
  margin-bottom: 16px;
  border-bottom: 1px solid #1a4a40;
  padding-bottom: 12px;
}
#overlay p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #8cb;
}
#overlay .hint {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 11px;
  color: #4a7;
  letter-spacing: 0.1em;
}


/* —— Playable game shell (VECTOR DRIFT etc.) —— */
body.game-open #click-hint,
body.game-open #prompt,
body.game-open #crosshair {
  display: none !important;
}
body.game-open #hud {
  opacity: 0.28;
}
body.game-open #hud .back {
  pointer-events: none;
}

#game-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 4, 8, 0.88);
  backdrop-filter: blur(3px);
}
#game-overlay[hidden] { display: none !important; }

#game-frame {
  position: relative;
  width: min(960px, 96vw);
  height: min(720px, 88vh);
  border: 2px solid #2a6a7a;
  box-shadow:
    0 0 0 1px #0a2030,
    0 0 60px rgba(0, 180, 200, 0.22),
    inset 0 0 40px rgba(0, 40, 50, 0.35);
  background: #030608;
  overflow: hidden;
}

#game-root,
#game-root .vd-shell,
#game-root .lr-shell,
#game-root .gl-shell,
#game-root .bs-shell,
#game-root .rs-shell,
#game-root .sbk-shell,
#game-root .cp-shell,
#game-root .trv-shell,
#game-root .rs2-shell,
#game-root .bsk-shell,
#game-root .rls-shell,
#game-root .sg-shell,
#game-root .fw-shell,
#game-root .vr-shell {
  width: 100%;
  height: 100%;
  outline: none;
}
#game-root .vd-canvas,
#game-root .lr-canvas,
#game-root .gl-canvas,
#game-root .bs-canvas,
#game-root .rs-canvas,
#game-root .sbk-canvas,
#game-root .cp-canvas,
#game-root .trv-canvas,
#game-root .rs2-canvas,
#game-root .bsk-canvas,
#game-root .rls-canvas,
#game-root .sg-canvas,
#game-root .fw-canvas,
#game-root .vr-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  image-rendering: auto;
}

/* —— Arcade mute control (coin-op chrome) —— */
.arcade-mute-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 40;
  pointer-events: auto;
  margin: 0;
  padding: 8px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #5ef0ff;
  background: linear-gradient(160deg, #0a1218 0%, #05080c 100%);
  border: 2px solid #5ef0ff;
  box-shadow:
    0 0 0 1px #1a3040,
    0 0 14px rgba(94, 240, 255, 0.28),
    inset 0 0 12px rgba(0, 40, 50, 0.45);
  cursor: pointer;
  text-shadow: 0 0 6px rgba(94, 240, 255, 0.55);
  user-select: none;
}
.arcade-mute-btn:hover {
  color: #ffb84a;
  border-color: #ffb84a;
  box-shadow:
    0 0 0 1px #403018,
    0 0 18px rgba(255, 184, 74, 0.35),
    inset 0 0 14px rgba(60, 40, 10, 0.4);
  text-shadow: 0 0 8px rgba(255, 184, 74, 0.55);
}
.arcade-mute-btn:active {
  transform: translateY(1px);
}
.arcade-mute-btn[aria-pressed="true"] {
  color: #c66;
  border-color: #a44;
  text-shadow: 0 0 6px rgba(200, 80, 80, 0.45);
  box-shadow:
    0 0 0 1px #301818,
    0 0 12px rgba(180, 60, 60, 0.25),
    inset 0 0 12px rgba(40, 10, 10, 0.45);
}


/* —— Jukebox overlay (coin-op chrome) —— */
body.jukebox-open #click-hint,
body.jukebox-open #prompt,
body.jukebox-open #crosshair {
  display: none !important;
}
body.jukebox-open #hud {
  opacity: 0.35;
}

#jukebox-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 2, 10, 0.78);
  backdrop-filter: blur(3px);
}
#jukebox-overlay[hidden] { display: none !important; }

.jukebox-panel {
  width: min(440px, 92vw);
  margin: 1rem;
  padding: 26px 28px 22px;
  background: linear-gradient(160deg, #1a0a18 0%, #08040c 55%, #0a1218 100%);
  border: 2px solid #ff2bd6;
  box-shadow:
    0 0 0 1px #5ef0ff55,
    0 0 48px rgba(255, 43, 214, 0.28),
    inset 0 0 36px rgba(20, 0, 30, 0.55);
  text-align: center;
}
.jukebox-marquee {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.28em;
  color: #dff;
  text-shadow: 0 0 14px #ff2bd6, 0 0 4px #5ef0ff;
  margin-bottom: 6px;
}
.jukebox-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5ef0ff;
  margin-bottom: 18px;
  opacity: 0.9;
}
.jukebox-track {
  padding: 14px 10px 16px;
  margin-bottom: 16px;
  border: 1px solid #3a1a40;
  background: rgba(0, 8, 12, 0.55);
  box-shadow: inset 0 0 20px rgba(94, 240, 255, 0.08);
}
.jukebox-title {
  font-size: 14px;
  font-weight: bold;
  color: #cff;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-shadow: 0 0 8px rgba(94, 240, 255, 0.35);
}
.jukebox-era {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #ff2bd6;
}
.jukebox-cue-hint {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #ffb84a;
  text-shadow: 0 0 8px rgba(255, 184, 74, 0.4);
}
.jukebox-cue-hint[hidden] { display: none !important; }

.jukebox-status {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #ff6b8a;
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.45);
}
.jukebox-status[hidden] { display: none !important; }

.jukebox-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.jukebox-btn {
  min-width: 64px;
  min-height: 52px;
  padding: 10px 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  color: #5ef0ff;
  background: linear-gradient(160deg, #120818 0%, #05060a 100%);
  border: 2px solid #5ef0ff;
  box-shadow:
    0 0 0 1px #1a3040,
    0 0 16px rgba(94, 240, 255, 0.25),
    inset 0 0 12px rgba(0, 40, 50, 0.4);
  cursor: pointer;
  text-shadow: 0 0 8px rgba(94, 240, 255, 0.5);
  user-select: none;
}
.jukebox-btn:hover {
  color: #ff2bd6;
  border-color: #ff2bd6;
  box-shadow:
    0 0 0 1px #401830,
    0 0 20px rgba(255, 43, 214, 0.35),
    inset 0 0 14px rgba(60, 10, 40, 0.4);
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.55);
}
.jukebox-btn:active { transform: translateY(1px); }
.jukebox-btn-play {
  min-width: 88px;
  font-size: 26px;
  border-color: #ff2bd6;
  color: #ffb84a;
}

.jukebox-close {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.16em;
  color: #8ab;
  background: transparent;
  border: 1px solid #3a4a55;
  cursor: pointer;
}
.jukebox-close:hover {
  color: #dff;
  border-color: #5ef0ff;
}

/* Persistent mini dock — bottom-center controls only (no video) */
#jukebox-mini {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  /* Above #game-overlay (20) so dock stays clickable during play */
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(760px, 98vw);
  padding: 8px 12px;
  background: linear-gradient(160deg, rgba(18, 6, 20, 0.94), rgba(4, 8, 12, 0.94));
  border: 1px solid #ff2bd6;
  box-shadow:
    0 0 0 1px #5ef0ff33,
    0 0 22px rgba(255, 43, 214, 0.22);
  pointer-events: auto;
}
#jukebox-mini[hidden] { display: none !important; }
#jukebox-mini.playing {
  border-color: #5ef0ff;
}
.jukebox-mini-title {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #bff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jukebox-mini-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.jukebox-mini-btn {
  min-width: 32px;
  min-height: 28px;
  padding: 4px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  color: #5ef0ff;
  background: #0a1014;
  border: 1px solid #2a5a6a;
  cursor: pointer;
}
.jukebox-mini-btn:hover {
  color: #ff2bd6;
  border-color: #ff2bd6;
}
.jukebox-mini-stop {
  color: #c66;
  border-color: #844;
}
.jukebox-mini-dismiss {
  flex-shrink: 0;
  color: #c88;
  border-color: #844;
  min-width: 28px;
  padding: 4px 6px;
}
.jukebox-mini-dismiss:hover {
  color: #faa;
  border-color: #c66;
}
.jukebox-mini-dismiss[hidden] { display: none !important; }

/* Jukebox volume — icon reveal; independent of arcade game mute */
.jukebox-vol-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid #3a1a40;
  background: rgba(0, 8, 12, 0.45);
  box-shadow: inset 0 0 14px rgba(94, 240, 255, 0.06);
}
.jukebox-vol-btn {
  flex-shrink: 0;
  min-width: 36px;
  min-height: 32px;
  padding: 4px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1;
  color: #5ef0ff;
  background: #0a1014;
  border: 1px solid #2a5a6a;
  box-shadow: 0 0 8px rgba(94, 240, 255, 0.12);
  cursor: pointer;
  user-select: none;
}
.jukebox-vol-btn:hover,
.jukebox-vol-row.vol-open .jukebox-vol-btn,
.jukebox-mini-vol.vol-open .jukebox-vol-btn {
  color: #ff2bd6;
  border-color: #ff2bd6;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.35);
}
.jukebox-vol-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}
.jukebox-vol-row.vol-open .jukebox-vol-panel {
  max-width: 260px;
  opacity: 1;
  pointer-events: auto;
}
.jukebox-vol-label,
.jukebox-mini-vol-label {
  flex-shrink: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #5ef0ff;
  text-shadow: 0 0 6px rgba(94, 240, 255, 0.4);
  min-width: 2.8em;
  user-select: none;
  white-space: nowrap;
}
.jukebox-vol {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  width: 160px;
  max-width: 220px;
  min-width: 100px;
  height: 6px;
  border-radius: 0;
  background: linear-gradient(90deg, #1a0a18 0%, #2a1a40 40%, #0a2830 100%);
  border: 1px solid #5ef0ff66;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.55), 0 0 8px rgba(255, 43, 214, 0.15);
  outline: none;
  cursor: pointer;
}
.jukebox-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 18px;
  background: linear-gradient(160deg, #ff2bd6 0%, #5ef0ff 100%);
  border: 1px solid #dff;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.55);
  cursor: pointer;
}
.jukebox-vol::-moz-range-thumb {
  width: 14px;
  height: 18px;
  background: linear-gradient(160deg, #ff2bd6 0%, #5ef0ff 100%);
  border: 1px solid #dff;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.55);
  cursor: pointer;
}
.jukebox-vol::-moz-range-track {
  height: 6px;
  background: transparent;
  border: none;
}
.jukebox-mini-vol {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.jukebox-mini-vol-btn {
  min-width: 30px;
  min-height: 28px;
  padding: 2px 6px;
  font-size: 14px;
}
.jukebox-mini-vol-panel {
  gap: 6px;
}
.jukebox-mini-vol.vol-open .jukebox-mini-vol-panel {
  max-width: 130px;
  opacity: 1;
  pointer-events: auto;
}
.jukebox-mini-vol-label {
  font-size: 10px;
  min-width: 2.4em;
  letter-spacing: 0.06em;
}
.jukebox-mini-vol-slider {
  width: 72px;
  max-width: 72px;
  min-width: 72px;
  height: 5px;
  flex: none;
}
.jukebox-mini-vol-slider::-webkit-slider-thumb {
  width: 11px;
  height: 14px;
}
.jukebox-mini-vol-slider::-moz-range-thumb {
  width: 11px;
  height: 14px;
}
/* In-world CSS3D YT surface — full-frame fill (no crop).
   YT chrome (title/pause/more-videos) is fought via pointer-events:none +
   paused→thumbnail path, not oversize/translate crop. */
.jukebox-yt-css3d {
  overflow: hidden;
  pointer-events: none;
  background: #05060a;
  border: 2px solid rgba(94, 240, 255, 0.35);
  box-sizing: border-box;
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.25);
}
/* Parked host only (outside CSS3D face). Never target the live face iframe
   with opacity:0 — #jukebox-yt IS the iframe after YT.Player constructs. */
#jukebox-yt.jukebox-yt-parked,
.jukebox-yt.jukebox-yt-parked {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 160px;
  height: 90px;
  min-width: 160px;
  min-height: 90px;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid #5ef0ff66;
  background: #05060a;
  opacity: 0;
}
/* Face fill: #jukebox-yt IS the iframe after YT.Player constructs. */
.jukebox-yt-css3d #jukebox-yt,
.jukebox-yt-css3d .jukebox-yt,
.jukebox-yt-css3d iframe {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  display: block !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transform: none !important;
  opacity: 1 !important;
  background: #05060a;
}
body.jukebox-open #jukebox-mini {
  display: none !important;
}
body.game-open #jukebox-mini {
  opacity: 0.92;
  bottom: 10px;
  z-index: 30;
  pointer-events: auto;
  transform: translateX(-50%) scale(0.96);
}


/* Wall TV mini dock — stacks above #jukebox-mini; cyan/amber vs magenta */
#tv-mini {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(760px, 98vw);
  padding: 8px 12px;
  background: linear-gradient(160deg, rgba(6, 18, 22, 0.95), rgba(4, 8, 12, 0.94));
  border: 1px solid #5ef0ff;
  box-shadow:
    0 0 0 1px #ffb84d33,
    0 0 22px rgba(94, 240, 255, 0.22);
  pointer-events: auto;
}
#tv-mini[hidden] { display: none !important; }
#tv-mini.playing {
  border-color: #ffb84d;
  box-shadow:
    0 0 0 1px #5ef0ff44,
    0 0 24px rgba(255, 184, 77, 0.28);
}
.tv-mini-title {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #cff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-mini-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.tv-mini-btn {
  min-width: 32px;
  min-height: 28px;
  padding: 4px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  color: #5ef0ff;
  background: #0a1014;
  border: 1px solid #2a5a6a;
  cursor: pointer;
}
.tv-mini-btn:hover {
  color: #ffb84d;
  border-color: #ffb84d;
}
.tv-mini-btn[hidden] { display: none !important; }
.tv-mini-stop {
  color: #c66;
  border-color: #844;
}
.tv-mini-dismiss {
  flex-shrink: 0;
  color: #c88;
  border-color: #844;
  min-width: 28px;
  padding: 4px 6px;
}
.tv-mini-dismiss:hover {
  color: #faa;
  border-color: #c66;
}
.tv-mini-dismiss[hidden] { display: none !important; }
.tv-vol-btn {
  flex-shrink: 0;
  min-width: 36px;
  min-height: 32px;
  padding: 4px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1;
  color: #5ef0ff;
  background: #0a1014;
  border: 1px solid #2a5a6a;
  box-shadow: 0 0 8px rgba(94, 240, 255, 0.12);
  cursor: pointer;
  user-select: none;
}
.tv-vol-btn:hover,
.tv-mini-vol.vol-open .tv-vol-btn {
  color: #ffb84d;
  border-color: #ffb84d;
  box-shadow: 0 0 10px rgba(255, 184, 77, 0.35);
}
.tv-vol-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}
.tv-mini-vol {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tv-mini-vol-btn {
  min-width: 30px;
  min-height: 28px;
  padding: 2px 6px;
  font-size: 14px;
}
.tv-mini-vol-panel {
  gap: 6px;
}
.tv-mini-vol.vol-open .tv-mini-vol-panel {
  max-width: 130px;
  opacity: 1;
  pointer-events: auto;
}
.tv-mini-vol-label {
  flex-shrink: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: #5ef0ff;
  text-shadow: 0 0 6px rgba(94, 240, 255, 0.4);
  min-width: 2.4em;
  user-select: none;
  white-space: nowrap;
}
.tv-mini-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  max-width: 72px;
  min-width: 72px;
  height: 5px;
  flex: none;
  border-radius: 0;
  background: linear-gradient(90deg, #0a1820 0%, #1a3040 40%, #283018 100%);
  border: 1px solid #5ef0ff66;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.55), 0 0 8px rgba(255, 184, 77, 0.15);
  outline: none;
  cursor: pointer;
}
.tv-mini-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 14px;
  background: linear-gradient(160deg, #5ef0ff 0%, #ffb84d 100%);
  border: 1px solid #dff;
  box-shadow: 0 0 10px rgba(94, 240, 255, 0.45);
  cursor: pointer;
}
.tv-mini-vol-slider::-moz-range-thumb {
  width: 11px;
  height: 14px;
  background: linear-gradient(160deg, #5ef0ff 0%, #ffb84d 100%);
  border: 1px solid #dff;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(94, 240, 255, 0.45);
  cursor: pointer;
}
body.tv-open #tv-mini {
  display: none !important;
}
body.game-open #tv-mini {
  opacity: 0.92;
  z-index: 30;
  pointer-events: auto;
  transform: translateX(-50%) scale(0.96);
}



/* Fullscreen fade between arcade and roof */
#scene-fade {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}
#scene-fade.opaque {
  opacity: 1;
  pointer-events: auto;
}
body.scene-fading #prompt,
body.scene-fading #click-hint {
  display: none;
}


/* —— Wall TV overlay —— */
body.tv-open #click-hint,
body.tv-open #prompt,
body.tv-open #crosshair {
  display: none !important;
}
body.tv-open #hud {
  opacity: 0.35;
}
/* Overlay has its own unmute; hide fixed HUD control while panel is open */
body.tv-open #tv-twitch-unmute {
  display: none !important;
}

#tv-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 12, 0.8);
  backdrop-filter: blur(3px);
}
#tv-overlay[hidden] { display: none !important; }

.tv-panel {
  width: min(480px, 94vw);
  margin: 1rem;
  padding: 26px 28px 22px;
  background: linear-gradient(160deg, #0a1218 0%, #06040c 55%, #0a0e14 100%);
  border: 2px solid #5ef0ff;
  box-shadow:
    0 0 0 1px #ff2bd655,
    0 0 48px rgba(94, 240, 255, 0.22),
    inset 0 0 36px rgba(0, 20, 30, 0.55);
  text-align: center;
}
.tv-marquee {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.28em;
  color: #dff;
  text-shadow: 0 0 14px #5ef0ff, 0 0 4px #ff2bd6;
  margin-bottom: 6px;
}
.tv-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #ff2bd6;
  margin-bottom: 18px;
  opacity: 0.9;
}
.tv-field {
  display: block;
  text-align: left;
  margin-bottom: 12px;
}
.tv-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #5ef0ff;
  margin-bottom: 6px;
}
.tv-select,
.tv-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #dff;
  background: rgba(0, 8, 12, 0.75);
  border: 1px solid #3a5a6a;
  outline: none;
}
.tv-select:focus,
.tv-input:focus {
  border-color: #5ef0ff;
  box-shadow: 0 0 12px rgba(94, 240, 255, 0.25);
}
.tv-vol-field {
  margin-bottom: 8px;
}
.tv-vol {
  width: 100%;
  accent-color: #5ef0ff;
}
.tv-status {
  margin: 8px 0 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #ffb84a;
  text-shadow: 0 0 8px rgba(255, 184, 74, 0.35);
}
.tv-status[hidden] { display: none !important; }
.tv-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 14px 0 10px;
}
.tv-btn {
  min-width: 96px;
  min-height: 44px;
  padding: 10px 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #5ef0ff;
  background: linear-gradient(160deg, #120818 0%, #05060a 100%);
  border: 2px solid #5ef0ff;
  box-shadow: 0 0 16px rgba(94, 240, 255, 0.2);
  cursor: pointer;
}
.tv-btn:hover {
  color: #ff2bd6;
  border-color: #ff2bd6;
}
.tv-btn-play {
  border-color: #ff2bd6;
  color: #ffb84a;
  min-width: 120px;
}
.tv-hint {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6a8899;
  margin: 0 0 12px;
}
.tv-close {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.16em;
  color: #8ab;
  background: transparent;
  border: 1px solid #3a4a55;
  cursor: pointer;
}
.tv-close:hover {
  color: #dff;
  border-color: #5ef0ff;
}

/* In-world CSS3D TV face */
.wall-tv-css3d {
  overflow: hidden;
  pointer-events: none;
  background: #050608;
  border: 2px solid rgba(94, 240, 255, 0.28);
  box-sizing: border-box;
  box-shadow: 0 0 18px rgba(94, 240, 255, 0.2);
}
.wall-tv-css3d iframe,
.wall-tv-css3d .wall-tv-iframe {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  pointer-events: none !important;
  background: #050608;
}


/* Twitch stage — fixed DOM host, matrix3d-homography onto TV glass (plays; YT stays CSS3D).
   pointer-events default none; wall-tv.js enables when camera within ~5 ft. */
.tv-twitch-stage {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  transform-origin: 0 0;
  z-index: 2; /* above CSS3D (1); below unmute (12) / overlay (15) */
  pointer-events: none;
  background: #050608;
  will-change: transform;
  box-sizing: border-box;
}
.tv-twitch-stage[hidden] {
  display: none !important;
}
.tv-twitch-frame-host,
#tv-twitch-frame-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #050608;
  pointer-events: none;
  box-sizing: border-box;
}
.tv-twitch-stage .tv-twitch-iframe,
#tv-twitch-iframe,
.tv-twitch-frame-host iframe,
#tv-twitch-frame-host iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  /* JS distance-gates pointer-events; do not force auto */
  pointer-events: none;
  background: #050608;
}

/* Twitch unmute — fixed HUD control (Twitch video is on #tv-twitch-stage) */
.tv-twitch-btn.tv-twitch-unmute,
#tv-twitch-unmute {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 12; /* above canvas/CSS3D; below #tv-overlay (15) */
  min-height: 28px;
  padding: 5px 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #ffb84a;
  background: linear-gradient(160deg, rgba(18, 8, 24, 0.92) 0%, rgba(5, 6, 10, 0.92) 100%);
  border: 1px solid #9146ff;
  cursor: pointer;
  pointer-events: auto;
}
.tv-twitch-btn.tv-twitch-unmute[hidden],
#tv-twitch-unmute[hidden] { display: none !important; }
.tv-twitch-btn.tv-twitch-unmute:hover,
#tv-twitch-unmute:hover {
  color: #5ef0ff;
  border-color: #5ef0ff;
}
.tv-btn-twitch-unmute {
  color: #ffb84a !important;
  border-color: #9146ff !important;
}
.tv-btn-twitch-unmute:hover {
  color: #5ef0ff !important;
  border-color: #5ef0ff !important;
}
.tv-btn-twitch-unmute[hidden] { display: none !important; }


/* —— Patch notes bulletin board overlay —— */
body.patch-notes-open #click-hint,
body.patch-notes-open #prompt,
body.patch-notes-open #crosshair {
  display: none !important;
}
body.patch-notes-open #hud {
  opacity: 0.35;
}

#patch-notes-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 4, 0.78);
  backdrop-filter: blur(3px);
}
#patch-notes-overlay[hidden] { display: none !important; }

.patch-notes-panel {
  width: min(520px, 94vw);
  max-height: min(78vh, 640px);
  margin: 1rem;
  padding: 24px 26px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #1a1410 0%, #0e0c0a 55%, #16120e 100%);
  border: 2px solid #c4a574;
  box-shadow:
    0 0 0 1px #5a3a22,
    0 0 40px rgba(196, 165, 116, 0.18),
    inset 0 0 36px rgba(40, 28, 16, 0.55);
  text-align: center;
}
.patch-notes-marquee {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.22em;
  color: #f2ead6;
  text-shadow: 0 0 12px rgba(196, 165, 116, 0.45);
  margin-bottom: 4px;
}
.patch-notes-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #c4a574;
  margin-bottom: 8px;
  opacity: 0.9;
}
.patch-notes-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8a7060;
  margin-bottom: 14px;
}
.patch-notes-list {
  flex: 1 1 auto;
  overflow-y: auto;
  text-align: left;
  padding-right: 6px;
  margin-bottom: 12px;
  max-height: 48vh;
  scrollbar-width: thin;
  scrollbar-color: #5a3a22 #1a1410;
}
.patch-notes-entry {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(242, 234, 214, 0.06);
  border: 1px solid #3a3028;
  border-left: 3px solid #c4a574;
}
.patch-notes-entry header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 8px;
}
.patch-notes-date {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #c07070;
}
.patch-notes-title {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: #f2ead6;
}
.patch-notes-bullets {
  margin: 0;
  padding-left: 1.1em;
  color: #b8a890;
  font-size: 12px;
  line-height: 1.5;
}
.patch-notes-bullets li {
  margin-bottom: 4px;
}
.patch-notes-empty {
  padding: 28px 12px;
  text-align: center;
  letter-spacing: 0.14em;
  color: #c07070;
  font-size: 13px;
}
.patch-notes-hint {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #7a6050;
}
.patch-notes-close {
  align-self: center;
  min-width: 140px;
  min-height: 40px;
  padding: 8px 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #f2ead6;
  background: rgba(90, 58, 34, 0.55);
  border: 1px solid #c4a574;
  cursor: pointer;
}
.patch-notes-close:hover {
  background: rgba(196, 165, 116, 0.25);
  box-shadow: 0 0 14px rgba(196, 165, 116, 0.25);
}

/* —— Roof telescope immersive circular scope —— */
body.telescope-open #click-hint,
body.telescope-open #prompt,
body.telescope-open #crosshair {
  display: none !important;
}
body.telescope-open #hud {
  opacity: 0;
  pointer-events: none;
}

#telescope-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #010208;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#telescope-overlay:active { cursor: grabbing; }
#telescope-overlay[hidden] { display: none !important; }

.telescope-mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  /* Soft dark falloff outside the eyepiece; circle hole via radial gradient */
  background: radial-gradient(
    circle min(46vmin, 450px) at 50% 46%,
    transparent 0%,
    transparent 68%,
    rgba(0, 0, 0, 0.35) 82%,
    rgba(0, 0, 0, 0.85) 94%,
    #010208 100%
  );
  z-index: 2;
}

.telescope-scope {
  position: relative;
  width: min(92vmin, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #010208;
  transform: translateY(-2vh);
  box-shadow:
    0 0 0 2px rgba(40, 60, 80, 0.55),
    0 0 0 8px rgba(8, 12, 18, 0.9),
    0 0 60px rgba(40, 120, 160, 0.12),
    inset 0 0 80px rgba(0, 0, 0, 0.55);
  z-index: 1;
}
#telescope-sky {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}
#telescope-sky:active { cursor: grabbing; }
.telescope-ring {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 36px rgba(0, 0, 0, 0.75),
    inset 0 0 8px rgba(94, 240, 255, 0.12);
  border: 1px solid rgba(94, 240, 255, 0.14);
  z-index: 3;
}

.telescope-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, 3vh);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  text-align: center;
}
.telescope-chrome .telescope-close {
  pointer-events: auto;
}
.telescope-marquee {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.28em;
  color: rgba(94, 240, 255, 0.75);
  text-shadow: 0 0 12px rgba(94, 240, 255, 0.25);
}
.telescope-heading {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(180, 200, 210, 0.72);
  text-shadow: 0 0 8px rgba(94, 240, 255, 0.12);
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}
.telescope-status {
  font-size: 11px;
  letter-spacing: 0.14em;
  min-height: 1.2em;
  opacity: 0.95;
}
.telescope-status-night {
  color: #5ef0ff;
  text-shadow: 0 0 10px rgba(94, 240, 255, 0.3);
}
.telescope-status-day {
  color: #ffb84a;
  text-shadow: 0 0 8px rgba(255, 184, 74, 0.3);
}
.telescope-hint {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #4a6070;
}
.telescope-close {
  margin-top: 4px;
  min-width: 100px;
  min-height: 34px;
  padding: 6px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: rgba(94, 240, 255, 0.85);
  background: rgba(10, 18, 28, 0.55);
  border: 1px solid rgba(58, 106, 136, 0.7);
  cursor: pointer;
}
.telescope-close:hover {
  background: rgba(94, 240, 255, 0.1);
  box-shadow: 0 0 12px rgba(94, 240, 255, 0.2);
  border-color: #5ef0ff;
}


/* —— Roof radio tower / Sky Mail overlay —— */
body.dish-open #click-hint,
body.dish-open #prompt,
body.dish-open #crosshair {
  display: none !important;
}
body.dish-open #hud {
  opacity: 0.35;
}

#dish-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 8, 0.9);
  backdrop-filter: blur(4px);
}
#dish-overlay[hidden] { display: none !important; }

.dish-panel {
  width: min(520px, 94vw);
  margin: 1rem;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(165deg, #0a1210 0%, #060a0c 55%, #0e1614 100%);
  border: 2px solid #2a7a68;
  box-shadow:
    0 0 0 1px #143028,
    0 0 48px rgba(40, 200, 160, 0.14),
    0 0 80px rgba(94, 240, 255, 0.06),
    inset 0 0 40px rgba(0, 20, 16, 0.65);
  text-align: center;
  font-family: "Courier New", Courier, monospace;
}
.dish-marquee {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.22em;
  color: #5effc8;
  text-shadow: 0 0 14px rgba(94, 255, 200, 0.45);
  margin-bottom: 4px;
}
.dish-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #c4a574;
  margin-bottom: 14px;
  opacity: 0.9;
}
.dish-presence {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #7a9a90;
  margin-bottom: 8px;
  min-height: 1.2em;
}
.dish-status {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #ffb84a;
  text-shadow: 0 0 10px rgba(255, 184, 74, 0.25);
  margin-bottom: 8px;
  min-height: 1.2em;
}

.dish-mail-readout {
  text-align: left;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(0, 12, 10, 0.75);
  border: 1px solid #1a4a40;
  box-shadow: inset 0 0 20px rgba(0, 40, 30, 0.5);
  font-size: 12px;
  line-height: 1.45;
  color: #9ef0c8;
}
.dish-mail-readout[hidden] { display: none !important; }
.dish-mail-line { margin-bottom: 6px; word-break: break-word; }
.dish-mail-line.dim { color: #4a6860; }
.dish-mail-handle {
  color: #5ef0ff;
  font-weight: bold;
  letter-spacing: 0.12em;
}
.dish-mail-at {
  color: #6a8078;
  font-size: 10px;
  margin-right: 4px;
}

.dish-mail-compose {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 12px;
  text-align: left;
}
.dish-mail-compose[hidden] { display: none !important; }
.dish-mail-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #6a8078;
}
.dish-mail-handle,
.dish-mail-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #5effc8;
  background: rgba(0, 16, 12, 0.85);
  border: 1px solid #2a5a50;
  padding: 8px 10px;
  outline: none;
  min-height: 36px;
}
.dish-mail-handle:focus,
.dish-mail-text:focus {
  border-color: #5effc8;
  box-shadow: 0 0 10px rgba(94, 255, 200, 0.2);
}
.dish-mail-handle {
  text-transform: uppercase;
  max-width: 72px;
  text-align: center;
}
.dish-mail-send {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 140px;
  min-height: 40px;
  margin-top: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #ffb84a;
  background: rgba(40, 30, 10, 0.65);
  border: 1px solid #8a6a30;
  cursor: pointer;
}
.dish-mail-send:hover {
  background: rgba(255, 184, 74, 0.12);
  box-shadow: 0 0 14px rgba(255, 184, 74, 0.25);
  border-color: #ffb84a;
}
.dish-mail-send:disabled {
  opacity: 0.45;
  cursor: default;
}

.dish-hint {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #5a7080;
  text-align: center;
}
.dish-close {
  align-self: center;
  min-width: 140px;
  min-height: 40px;
  padding: 8px 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #5effc8;
  background: rgba(20, 40, 35, 0.65);
  border: 1px solid #2a7a68;
  cursor: pointer;
}
.dish-close:hover {
  background: rgba(94, 255, 200, 0.12);
  box-shadow: 0 0 14px rgba(94, 255, 200, 0.25);
  border-color: #5effc8;
}


/* —— Mars travel cue (telescope) + surface HUD —— */
.telescope-mars-cue {
  margin-top: 2px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.22em;
  color: #ffb070;
  text-shadow: 0 0 14px rgba(255, 140, 60, 0.55), 0 0 4px rgba(255, 100, 40, 0.4);
  background: rgba(40, 16, 8, 0.55);
  border: 1px solid rgba(255, 140, 70, 0.55);
  border-radius: 2px;
  animation: mars-cue-pulse 1.4s ease-in-out infinite;
}
.telescope-mars-cue[hidden] {
  display: none !important;
}
@keyframes mars-cue-pulse {
  0%, 100% { opacity: 0.82; box-shadow: 0 0 8px rgba(255, 120, 50, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(255, 140, 60, 0.45); }
}

#mars-hud {
  position: fixed;
  left: 50%;
  bottom: max(20px, 3.5vh);
  transform: translateX(-50%);
  z-index: 25;
  text-align: center;
  pointer-events: none;
  font-family: "Courier New", Courier, monospace;
}
#mars-hud[hidden] {
  display: none !important;
}
.mars-hud-title {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.28em;
  color: rgba(255, 176, 112, 0.9);
  text-shadow: 0 0 12px rgba(255, 120, 50, 0.35);
}
.mars-hud-hint {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(200, 170, 140, 0.75);
}
body.mars-open #click-hint {
  display: none !important;
}
body.mars-open #crosshair {
  opacity: 0.35;
}


/* —— Soft Claw free-play HUD —— */
body.claw-open #click-hint,
body.claw-open #prompt,
body.claw-open #crosshair {
  display: none !important;
}
body.claw-open #hud {
  opacity: 0.35;
}

#claw-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: max(24px, 4vh);
  background: transparent;
}
#claw-overlay[hidden] { display: none !important; }

.claw-bar {
  pointer-events: none;
  min-width: min(420px, 92vw);
  padding: 14px 22px 16px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  background: linear-gradient(165deg, rgba(18, 8, 20, 0.92) 0%, rgba(6, 4, 12, 0.9) 100%);
  border: 2px solid #ff2bd6;
  box-shadow:
    0 0 0 1px rgba(94, 240, 255, 0.35),
    0 0 36px rgba(255, 43, 214, 0.22),
    inset 0 0 28px rgba(20, 0, 30, 0.45);
}
.claw-stats {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #5ef0ff;
  margin-bottom: 6px;
}
.claw-stats span {
  color: #ffb84a;
  text-shadow: 0 0 8px rgba(255, 184, 74, 0.35);
}
.claw-hint {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(200, 210, 220, 0.72);
}
.claw-toast {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #ffb84a;
  text-shadow: 0 0 10px rgba(255, 184, 74, 0.35);
  min-height: 1.2em;
}
.claw-toast[hidden] { display: none !important; }


/* —— LED Strips cove controller overlay —— */
body.led-strips-open #click-hint,
body.led-strips-open #prompt,
body.led-strips-open #crosshair {
  display: none !important;
}
body.led-strips-open #hud {
  opacity: 0.35;
}

#led-strips-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 14, 0.82);
  backdrop-filter: blur(3px);
}
#led-strips-overlay[hidden] { display: none !important; }

.led-strips-panel {
  width: min(440px, 94vw);
  max-height: min(86vh, 720px);
  margin: 1rem;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0e1a22 0%, #080e14 55%, #101820 100%);
  border: 2px solid #3ad0e0;
  box-shadow:
    0 0 0 1px #1a5060,
    0 0 40px rgba(58, 208, 224, 0.22),
    inset 0 0 36px rgba(10, 30, 40, 0.55);
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  overflow-x: hidden;
  overflow-y: auto;
}
.led-strips-marquee {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.22em;
  color: #9ef8ff;
  text-shadow: 0 0 12px rgba(58, 208, 224, 0.5);
  margin-bottom: 4px;
}
.led-strips-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #ffb84a;
  margin-bottom: 14px;
  opacity: 0.9;
}
.led-power {
  align-self: center;
  min-width: 180px;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #8a9aa4;
  background: rgba(20, 36, 44, 0.85);
  border: 1px solid #3a5868;
  cursor: pointer;
}
.led-power.led-on {
  color: #9ef8ff;
  border-color: #3ad0e0;
  box-shadow: 0 0 16px rgba(58, 208, 224, 0.28);
  background: rgba(20, 60, 70, 0.65);
}
.led-power:hover {
  border-color: #ffb84a;
}
.led-style {
  align-self: center;
  min-width: 220px;
  min-height: 40px;
  margin-bottom: 16px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #9ef8ff;
  background: rgba(20, 36, 44, 0.85);
  border: 1px solid #3ad0e0;
  cursor: pointer;
}
.led-style.led-style-tube {
  color: #ffb84a;
  border-color: #ffb84a;
  box-shadow: 0 0 14px rgba(255, 184, 74, 0.22);
  background: rgba(50, 36, 16, 0.55);
}
.led-style:hover {
  border-color: #ffb84a;
  color: #ffb84a;
}
.led-section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #7ad0d8;
  margin: 4px 0 10px;
  text-align: left;
}
.led-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.led-swatch {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 2px solid #1a2830;
  background: var(--sw, #888);
  cursor: pointer;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.35);
}
.led-swatch:hover {
  border-color: #ffb84a;
}
.led-swatch.led-swatch-active {
  border-color: #9ef8ff;
  box-shadow: 0 0 12px rgba(158, 248, 255, 0.45);
}
.led-hue-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #7ad0d8;
  text-align: left;
  margin-bottom: 4px;
}
.led-hue {
  width: 100%;
  margin-bottom: 14px;
  accent-color: #3ad0e0;
  cursor: pointer;
}
.led-patterns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.led-pattern {
  min-height: 36px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #8aa0a8;
  background: rgba(16, 28, 36, 0.9);
  border: 1px solid #2a4050;
  cursor: pointer;
}
.led-pattern:hover {
  color: #ffb84a;
  border-color: #ffb84a;
}
.led-pattern.led-pattern-active {
  color: #9ef8ff;
  border-color: #3ad0e0;
  background: rgba(20, 55, 65, 0.85);
  box-shadow: 0 0 10px rgba(58, 208, 224, 0.2);
}
.led-strips-hint {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #5a7080;
}
.led-strips-close {
  align-self: center;
  min-width: 140px;
  min-height: 40px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #9ef8ff;
  background: rgba(20, 50, 60, 0.55);
  border: 1px solid #3ad0e0;
  cursor: pointer;
}
.led-strips-close:hover {
  background: rgba(58, 208, 224, 0.2);
  box-shadow: 0 0 14px rgba(58, 208, 224, 0.25);
  color: #ffb84a;
  border-color: #ffb84a;
}

/* —— Backrooms easter egg —— */
body.backrooms-open #click-hint {
  display: none !important;
}
body.backrooms-open #crosshair {
  opacity: 0.4;
}
body.backrooms-open #hud .brand {
  color: rgba(200, 175, 90, 0.55);
}

/* —— Poolrooms liminal layer —— */
body.poolrooms-open #click-hint {
  display: none !important;
}
body.poolrooms-open #crosshair {
  opacity: 0.4;
}
body.poolrooms-open #hud .brand {
  color: rgba(110, 175, 185, 0.55);
}


/* —— EXIT destination menu —— */
body.dest-menu-open #click-hint,
body.dest-menu-open #prompt,
body.dest-menu-open #crosshair {
  display: none !important;
}
body.dest-menu-open #hud {
  opacity: 0.35;
}

#dest-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 10, 0.82);
  backdrop-filter: blur(3px);
}
#dest-menu-overlay[hidden] { display: none !important; }

.dest-menu-panel {
  width: min(420px, 92vw);
  margin: 1rem;
  padding: 22px 24px 18px;
  background: linear-gradient(160deg, #12181c 0%, #0a0e10 55%, #10161a 100%);
  border: 2px solid #5ef0ff;
  box-shadow:
    0 0 0 1px #1a4050,
    0 0 40px rgba(94, 240, 255, 0.18),
    inset 0 0 36px rgba(10, 30, 40, 0.55);
  text-align: center;
}
.dest-menu-marquee {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.22em;
  color: #e8fbff;
  text-shadow: 0 0 12px rgba(94, 240, 255, 0.45);
  margin-bottom: 4px;
}
.dest-menu-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5ef0ff;
  margin-bottom: 16px;
  opacity: 0.9;
}
.dest-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.dest-menu-item {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 12px 14px;
  color: #c8e8f0;
  background: rgba(94, 240, 255, 0.06);
  border: 1px solid #2a4850;
  border-left: 3px solid #3a6870;
  text-align: left;
}
.dest-menu-item:hover,
.dest-menu-item.selected {
  color: #041018;
  background: #5ef0ff;
  border-color: #5ef0ff;
  border-left-color: #ffe08a;
  box-shadow: 0 0 18px rgba(94, 240, 255, 0.35);
}
.dest-menu-hint {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #6a8890;
  margin: 0;
}
