/* ==========================================================================
   DJ DEAF WISH // Neon Street & Live Stage Rig Stylesheet
   ========================================================================== */

:root {
  --neon-pink: #ff0055;
  --neon-cyan: #00f0ff;
  --neon-gold: #ffaa00;
  --neon-purple: #9d00ff;
  --neon-violet: #d900ff;
  --bg-dark: #0c0718;
  --font-street: 'Permanent Marker', 'Impact', sans-serif;
  --font-tech: 'Courier Prime', monospace;
  --font-clean: 'Montserrat', sans-serif;
}

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

html, body {
  width: 100%;
  background-color: var(--bg-dark);
  color: #fff;
  font-family: var(--font-clean);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

body.stage-mode {
  overflow: hidden;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   BOOT VEIL
   ========================================================================== */
#boot-veil {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #050309;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.9s ease;
}

#boot-veil.gone {
  opacity: 0;
  pointer-events: none;
}

.boot-title {
  font-family: var(--font-clean);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: 2px;
  color: #07060c;
  -webkit-text-stroke: 2px #fff;
}

.boot-sub {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--neon-violet);
}

/* ==========================================================================
   FIXED STAGE VIEWPORT (WebGL + CSS3D + overlays)
   ========================================================================== */
#stage-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  transform-origin: 0 0;
  overflow: hidden;
  overflow: clip;
  z-index: 1;
}

#three-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#three-container canvas {
  display: block;
}

#css3d-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.css3d-layer {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
}

/* Scroll track */
#scroll-spacer {
  position: relative;
  height: 600vh;
  pointer-events: none;
}

.scroll-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
}

#panel-source {
  position: absolute;
  left: -10000px;
  top: 0;
}

/* ==========================================================================
   STREET HUD (header, section dots, hints)
   ========================================================================== */
#street-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 24px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#street-header > * {
  pointer-events: auto;
}

.header-actions {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.intro-btn {
  background: rgba(8, 4, 16, 0.7);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 8px 14px;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.intro-btn:hover {
  background: var(--neon-cyan);
  color: #000;
}

.intro-btn.hot {
  border-color: var(--neon-pink);
  color: #fff;
  background: rgba(255, 0, 85, 0.35);
}

.intro-btn.hot:hover {
  background: var(--neon-pink);
}

#intro-hud {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 50;
  display: none;
}

body.intro-playing #intro-hud {
  display: flex;
}

body.intro-playing #btn-replay-intro,
body.intro-playing #section-dots,
body.intro-playing #scroll-hint {
  opacity: 0;
  pointer-events: none;
}

#section-dots {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s ease;
}

.section-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(8, 4, 16, 0.6);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.section-dot span {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(8, 4, 16, 0.8);
  padding: 3px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.section-dot:hover span,
.section-dot.active span {
  opacity: 1;
}

.section-dot.active {
  background: var(--neon-pink);
  border-color: #fff;
  transform: scale(1.25);
}

#scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(8, 4, 16, 0.55);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#fps-readout {
  position: absolute;
  bottom: 70px;
  left: 28px;
  z-index: 60;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  color: #7dff9a;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
}

body.stage-mode #street-header,
body.stage-mode #section-dots,
body.stage-mode #scroll-hint,
body.stage-mode #intro-hud,
body.stage-mode #djwish-vr-button {
  display: none !important;
}

body.stage-mode #fps-readout {
  bottom: auto;
  top: 84px;
}

/* Settings disc open: the disc is the only UI. */
body.settings-open {
  overflow: hidden;
}

body.settings-open #street-header,
body.settings-open #section-dots,
body.settings-open #scroll-hint,
body.settings-open #intro-hud,
body.settings-open #stage-hud,
body.settings-open #djwish-vr-button {
  display: none !important;
}

/* ==========================================================================
   WALL PANELS (pasted onto street hoardings via CSS3D)
   ========================================================================== */
.wall-panel {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 5px),
    #100c1a;
  border: 3px solid #f2eee4;
  padding: 26px 26px 22px;
  color: #f3efe4;
  user-select: none;
  clip-path: polygon(0 1.5%, 3% 0, 97% 0.8%, 100% 0, 99.2% 50%, 100% 98%, 96% 100%, 4% 99.2%, 0 100%, 0.8% 48%);
}

.paste-tape {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 120px;
  height: 24px;
  background: rgba(230, 220, 190, 0.55);
}

.deck-panel {
  border-color: var(--neon-cyan);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deck-title {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--neon-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.deck-status-tag {
  background: var(--neon-cyan);
  color: #000;
  font-size: 0.7rem;
  padding: 3px 7px;
  font-weight: bold;
}

.deck-sub {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #cfc8dc;
}

.track-selector {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.track-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eee;
  padding: 12px 14px;
  text-align: left;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-clean);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.track-btn:hover, .track-btn.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--neon-cyan);
  color: #fff;
}

.track-tag {
  font-size: 0.7rem;
}

.track-tag.cyan { color: var(--neon-cyan); }
.track-tag.pink { color: var(--neon-pink); }
.track-tag.gold { color: var(--neon-gold); }

.audio-controls-group {
  display: flex;
  gap: 10px;
}

.control-btn {
  flex: 1;
  background: #1d182b;
  border: 1px solid var(--neon-pink);
  color: #fff;
  padding: 12px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.control-btn:hover, .control-btn.active {
  background: var(--neon-pink);
}

.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  font-family: var(--font-tech);
  transition: border-color 0.2s, color 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.links-panel {
  border-color: var(--neon-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.links-title {
  font-family: var(--font-street);
  font-weight: 400;
  font-size: 3rem;
  color: #fff;
  -webkit-text-stroke: 1px #000;
  text-shadow: 3px 3px 0 var(--neon-pink);
  transform: rotate(-1.5deg);
}

.links-sub {
  font-size: 0.95rem;
  color: #cfc8dc;
  max-width: 520px;
  line-height: 1.45;
}

.launch-rig-btn {
  background: linear-gradient(135deg, var(--neon-pink) 0%, #7928ca 100%);
  border: 2px solid #fff;
  color: #fff;
  padding: 16px 34px;
  font-family: var(--font-street);
  font-size: 1.5rem;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s;
}

.launch-rig-btn:hover {
  transform: scale(1.04) rotate(0.8deg);
}

.launch-rig-btn kbd {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2px 6px;
}

.links-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.portal-link {
  background: rgba(10, 5, 20, 0.85);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  padding: 10px 18px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.portal-link:hover {
  background: var(--neon-gold);
  color: #000;
}

.portal-link.back {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.portal-link.back:hover {
  background: var(--neon-cyan);
  color: #000;
}

/* ==========================================================================
   LIVE STAGE RIG HUD (Full Screen VJ Mode)
   ========================================================================== */
#stage-hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

#stage-hud.active {
  display: flex;
}

.stage-top-bar,
.stage-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(10, 5, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 4px;
  pointer-events: auto;
}

/* Top bar: one thin row - brand, preset dropdown, telemetry pushed to the right. */
.stage-top-bar {
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding: 6px 10px;
  font-family: var(--font-tech);
}

.stage-top-bar .telemetry-readout {
  margin-left: auto;
  overflow: hidden;
}

.scene-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  max-width: 190px;
  flex: 0 1 auto;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2300f0ff'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--neon-cyan);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 4px 26px 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  pointer-events: auto;
}

.scene-select:focus-visible {
  outline: 1px solid #fff;
}

.scene-select option {
  background: #100c1a;
  color: #fff;
}

.brand-tag {
  background: var(--neon-pink);
  color: #fff;
  padding: 3px 8px;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fixed-width readouts: changing numbers and the overdrive tag never reflow the bar. */
.telemetry-readout {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  display: flex;
  gap: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.telemetry-readout strong {
  display: inline-block;
  text-align: right;
}

.telemetry-readout .num-hz { min-width: 7ch; }
.telemetry-readout .num-pct { min-width: 4ch; }

.clip-warning {
  color: #ff0055;
  font-weight: bold;
  visibility: hidden;
}

.hud-gear {
  flex-shrink: 0;
  margin-left: 10px;
  width: 28px;
  height: 26px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--neon-cyan);
  border-radius: 2px;
  color: var(--neon-cyan);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.hud-gear:hover {
  background: var(--neon-cyan);
  color: #000;
}

.clip-warning.on {
  visibility: visible;
}

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

.hud-btn kbd {
  font-family: inherit;
  opacity: 0.6;
  margin-left: 4px;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ddd;
  padding: 8px 14px;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  pointer-events: auto;
}

.hud-btn:hover, .hud-btn.active {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
}

.hud-btn.primary {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.hud-btn.primary:hover, .hud-btn.primary.active {
  background: var(--neon-pink);
  color: #fff;
}

/* ==========================================================================
   MIC INPUT TOGGLE BUTTONS (Live Mode)
   Toggled (Active) = Green, Untoggled = Red
   ========================================================================== */
.hud-mic-btn,
.intro-btn.hud-mic-btn,
.control-btn.hud-mic-btn {
  background-color: #d50000 !important;
  border: 1px solid #ff1744 !important;
  color: #ffffff !important;
  font-family: var(--font-tech);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 8px rgba(213, 0, 0, 0.45);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  pointer-events: auto;
}

.hud-mic-btn:hover,
.intro-btn.hud-mic-btn:hover,
.control-btn.hud-mic-btn:hover {
  background-color: #ff1744 !important;
  border-color: #ff5252 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.65);
}

.hud-mic-btn.active,
.hud-mic-btn.toggled,
.intro-btn.hud-mic-btn.active,
.intro-btn.hud-mic-btn.toggled,
.control-btn.hud-mic-btn.active,
.control-btn.hud-mic-btn.toggled {
  background-color: #00c853 !important;
  border-color: #00e676 !important;
  color: #051a0b !important;
  text-shadow: none;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.6) !important;
}

.hud-mic-btn.active:hover,
.hud-mic-btn.toggled:hover,
.intro-btn.hud-mic-btn.active:hover,
.intro-btn.hud-mic-btn.toggled:hover,
.control-btn.hud-mic-btn.active:hover,
.control-btn.hud-mic-btn.toggled:hover {
  background-color: #00e676 !important;
  border-color: #69f0ae !important;
  color: #000000 !important;
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.8) !important;
}

.stage-top-bar .hud-mic-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

#btn-stage-mic-bottom {
  display: none;
}

.quick-hotkeys {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: #888;
  display: flex;
  gap: 12px;
}

.quick-hotkeys span {
  color: #ccc;
}

/* WebXR VR Button styling override */
#djwish-vr-button {
  position: fixed !important;
  bottom: 24px !important;
  left: 28px !important;
  z-index: 9999 !important;
  background: rgba(10, 5, 20, 0.85) !important;
  border: 2px solid var(--neon-pink) !important;
  color: #fff !important;
  font-family: var(--font-tech) !important;
  font-size: 0.8rem !important;
  font-weight: bold !important;
  letter-spacing: 1.5px !important;
  border-radius: 3px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  opacity: 0.85 !important;
}

#djwish-vr-button:hover {
  background: var(--neon-pink) !important;
}

/* ==========================================================================
   PROJECTION MAPPER OVERLAY (Corner Pinning)
   ========================================================================== */
.projection-mapper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
}

.projection-grid-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.proj-quad-outline {
  fill: rgba(0, 240, 255, 0.08);
  stroke: var(--neon-cyan);
  stroke-width: 2px;
  stroke-dasharray: 6 4;
}

.proj-subgrid {
  stroke: rgba(0, 240, 255, 0.35);
  stroke-width: 1px;
}

.proj-crosshair {
  stroke: rgba(255, 0, 85, 0.35);
  stroke-width: 1px;
  stroke-dasharray: 4 4;
}

.proj-target-ring {
  fill: none;
  stroke: var(--neon-pink);
  stroke-width: 1.5px;
}

.proj-target-center {
  fill: #fff;
}

.proj-handle {
  position: absolute;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  background: rgba(255, 0, 85, 0.8);
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: grab;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.proj-handle.dragging {
  cursor: grabbing;
  background: #00f0ff;
}

.proj-handle-tag {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: bold;
  color: #fff;
}

.proj-handle-coords {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: var(--neon-cyan);
  font-family: var(--font-tech);
  font-size: 0.65rem;
  padding: 2px 6px;
  white-space: nowrap;
  border: 1px solid var(--neon-cyan);
}

.proj-status-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 5, 20, 0.92);
  border: 1px solid var(--neon-pink);
  padding: 8px 18px;
  border-radius: 4px;
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
  font-family: var(--font-tech);
}

.proj-status-title {
  font-size: 0.8rem;
  color: var(--neon-pink);
  font-weight: bold;
  letter-spacing: 1px;
}

.proj-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.proj-mini-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
}

.proj-mini-btn.primary {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
}

/* ==========================================================================
   SETTINGS DISC (vinyl record rising from the capstone, CSS3D)
   ========================================================================== */
#settings-layer {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.settings-css3d {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
}

.settings-disc {
  position: relative;
  border-radius: 50%;
  font-family: var(--font-tech);
  color: #fff;
  /* Static sheen: the light stays put while the grooves spin over it. */
  background:
    conic-gradient(from 25deg, transparent 0deg, rgba(255, 255, 255, 0.13) 28deg, transparent 62deg,
      transparent 180deg, rgba(255, 255, 255, 0.1) 208deg, transparent 242deg),
    radial-gradient(circle, #19141f 0%, #0a080e 70%);
  box-shadow: 0 0 0 3px rgba(255, 42, 122, 0.7), 0 0 90px rgba(176, 76, 255, 0.45);
}

.settings-disc:not(.interactive),
.settings-disc:not(.interactive) * {
  pointer-events: none !important;
}

.disc-platter {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  will-change: transform;
}

.disc-vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(0, 0, 0, 0.55) 0 2px, rgba(255, 255, 255, 0.025) 2px 5px);
  border: 8px solid #231c2c;
}

.disc-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(8, 5, 14, 0.94);
  border: 2px solid var(--accent);
  border-radius: 16px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.4s, box-shadow 0.4s;
}

.disc-panel.active {
  opacity: 1;
  cursor: default;
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 55%, transparent);
}

.disc-panel:not(.active) .disc-rows {
  pointer-events: none;
}

.disc-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 4px;
}

.disc-panel-letter {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 18px;
  letter-spacing: 0;
}

.disc-rows {
  display: flex;
  flex-direction: column;
}

.disc-row {
  display: grid;
  grid-template-columns: 150px 1fr 66px;
  align-items: center;
  gap: 10px;
  height: 38px;
  font-size: 15px;
}

.disc-row.is-toggle,
.disc-row.is-select {
  grid-template-columns: 1fr auto;
}

.disc-label {
  color: #e8e2f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-value {
  text-align: right;
  color: var(--accent);
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.disc-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.disc-toggle {
  min-width: 66px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 14px;
  color: var(--accent);
  font-family: var(--font-tech);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.disc-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: #000;
}

.disc-select {
  min-width: 120px;
  padding: 5px 8px;
  background: #100c1a;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 14px;
  cursor: pointer;
}

.disc-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ff2a7a 0%, #8a1f9e 58%, #2a0838 100%);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 42, 122, 0.5);
}

.disc-hub-title {
  font-family: var(--font-street);
  font-size: 40px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 2px 0 #000;
}

.disc-hub-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.disc-hub-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.disc-hub-arrow:hover {
  background: #fff;
  color: #000;
}

.disc-hub-section {
  min-width: 170px;
  padding: 6px 10px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
}

.disc-hub-actions {
  display: flex;
  gap: 10px;
}

.disc-hub-btn {
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
}

.disc-hub-btn:hover {
  background: #fff;
  color: #000;
}

.disc-hub-btn.hot {
  background: #fff;
  color: #8a1f9e;
}

.disc-hub-btn.armed {
  background: #ffb000;
  border-color: #ffb000;
  color: #000;
}

.disc-hub-note {
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #street-header {
    padding: 10px 12px;
    justify-content: flex-end;
  }
  .header-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .header-actions .intro-btn {
    padding: 6px 10px;
    font-size: 0.68rem;
  }
  .intro-btn.btn-settings {
    font-size: 0;
  }
  .intro-btn.btn-settings::after {
    content: 'SETTINGS';
    font-size: 0.68rem;
  }
  #btn-launch-stage-header {
    font-size: 0;
  }
  #btn-launch-stage-header::after {
    content: 'LIVE RIG';
    font-size: 0.68rem;
  }
  .hud-gear {
    margin-left: 4px;
    width: 24px;
    height: 22px;
    font-size: 0.85rem;
  }
  #btn-replay-intro {
    display: none;
  }
  #section-dots {
    right: 12px;
  }
  .section-dot span {
    display: none;
  }
  /* Compact live rig HUD: thin single-row top bar, small action buttons. */
  #stage-hud {
    padding: 8px;
  }
  .stage-top-bar {
    gap: 6px;
    padding: 5px 6px;
  }
  .stage-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
  }
  .brand-tag {
    font-size: 0.62rem;
    padding: 3px 5px;
    letter-spacing: 0.5px;
  }
  .scene-select {
    font-size: 0.66rem;
    letter-spacing: 0.5px;
    padding: 3px 20px 3px 6px;
    background-position: right 6px center;
    max-width: 150px;
  }
  .telemetry-readout {
    font-size: 0.62rem;
    gap: 6px;
  }
  .telemetry-readout .tele-bpm {
    display: none;
  }
  .stage-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .stage-actions .hud-btn {
    padding: 7px 4px;
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hud-btn kbd {
    display: none;
  }
  #btn-stage-map {
    font-size: 0;
  }
  #btn-stage-map::after { content: 'MAP'; font-size: 0.66rem; }
  #btn-stage-midi {
    display: none !important;
  }
  #btn-stage-mic-bottom {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: bold;
    padding: 7px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #btn-stage-fullscreen { font-size: 0; }
  #btn-stage-fullscreen::after { content: 'FULL'; font-size: 0.66rem; }
  .quick-hotkeys {
    display: none;
  }
  .stage-top-bar .hud-mic-btn {
    padding: 3px 6px;
    font-size: 0.64rem;
  }
}

@media (max-width: 480px) {
  .stage-top-bar #btn-stage-mic {
    font-size: 0;
  }
  .stage-top-bar #btn-stage-mic::after {
    content: 'MIC';
    font-size: 0.62rem;
  }
}

@media (max-width: 420px) {
  .telemetry-readout .tele-dom {
    display: none;
  }
}
