/* ─── Voidpulse — 80s synthwave aesthetic ────────────────── */

:root {
  --neon-pink:    #ff3df0;
  --neon-magenta: #d100b3;
  --neon-cyan:    #00f0ff;
  --neon-violet:  #a566ff;
  --bg-deep:      #08001a;
  --bg-mid:       #1a0540;
  --bg-horizon:   #5a0a40;
  --text-soft:    #f6d6ff;
  --text-dim:     rgba(246, 214, 255, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

html, body {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 110%, var(--bg-horizon) 0%, var(--bg-mid) 38%, var(--bg-deep) 100%);
  color: var(--text-soft);
  font-family: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, monospace;
  overflow: hidden;
}

/* `[hidden]` attribute must beat any explicit `display:` rule (e.g. flex on tooltips). */
[hidden] { display: none !important; }

/* ─── Photosensitivity warning overlay ──────────────────────────── */
#epilepsy-warning {
  position: fixed;
  inset: 0;
  background: rgba(4, 0, 14, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.ew-box {
  max-width: 480px;
  width: 100%;
  background: rgba(14, 0, 36, 0.96);
  border: 1px solid rgba(255, 61, 240, 0.55);
  border-radius: 6px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 61, 240, 0.2), 0 0 80px rgba(255, 61, 240, 0.08);
}

.ew-icon {
  font-size: 36px;
  line-height: 1;
  color: #ffcc00;
  text-shadow: 0 0 14px rgba(255, 204, 0, 0.7);
}

.ew-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 61, 240, 0.7);
  margin: 0;
}

.ew-body {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ew-body strong {
  color: #fff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

#ew-proceed {
  cursor: pointer;
  margin-top: 6px;
  padding: 10px 28px;
  background: rgba(255, 61, 240, 0.12);
  border: 1px solid var(--neon-pink);
  border-radius: 2px;
  color: var(--neon-pink);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 6px var(--neon-pink);
  transition: background 140ms ease, box-shadow 140ms ease;
}
#ew-proceed:hover {
  background: rgba(255, 61, 240, 0.28);
  box-shadow: 0 0 24px rgba(255, 61, 240, 0.5);
}

/* Subtle CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
  z-index: 50;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  padding: 20px;
  z-index: 10;
}

#hud > * { pointer-events: auto; }

/* ─── header card (title + credit) ──────────────────────────── */
#header-card {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(10, 0, 30, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  padding: 10px 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.08);
}

/* ─── title ─────────────────────────────────────────────────── */
#title {
  font-family: "Orbitron", "Share Tech Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  /* Neon glow on top, dark backstop underneath so the logo stays legible
     against any background (bright particle scatter, white-hot grid peaks). */
  text-shadow:
    0 0 6px var(--neon-cyan),
    0 0 14px rgba(0, 240, 255, 0.45),
    0 0 3px rgba(0, 0, 0, 0.95),
    0 1px 6px rgba(0, 0, 0, 0.85);
}

#title .version {
  opacity: 0.6;
  margin-left: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--neon-pink);
  text-shadow: 0 0 6px var(--neon-pink);
}

#credit {
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
#credit .credit-sep { opacity: 0.5; margin: 0 4px; }
#credit a {
  color: var(--neon-cyan);
  text-decoration: none;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.4);
  transition: color 140ms ease, text-shadow 140ms ease;
}
#credit a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 6px rgba(255, 61, 240, 0.6);
}

#build-stamp {
  font-family: "Share Tech Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(0, 240, 255, 0.25);
  margin-top: 3px;
}

/* ─── source picker ──────────────────────────────────────────── */
#source-picker {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.src-btn {
  cursor: pointer;
  appearance: none;
  border: 1px solid rgba(255, 61, 240, 0.30);
  background: rgba(10, 0, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-soft);
  font-family: "Share Tech Mono", monospace;
  text-align: left;
  border-radius: 3px;
  padding: 7px 11px;
  width: 130px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 0;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease,
              box-shadow 140ms ease, transform 140ms ease;
}
.src-btn:hover {
  background: rgba(40, 0, 60, 0.82);
  border-color: var(--neon-pink);
  box-shadow: 0 0 0 1px var(--neon-pink),
              0 0 16px rgba(255, 61, 240, 0.35);
  transform: translateY(-1px);
}
.src-btn.active {
  background: rgba(60, 0, 80, 0.78);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 1px var(--neon-cyan),
              0 0 20px rgba(0, 240, 255, 0.35);
}

.src-btn .dot {
  grid-row: 1 / span 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 61, 240, 0.28);
  box-shadow: 0 0 4px rgba(255, 61, 240, 0.28);
  flex-shrink: 0;
}
.src-btn:hover .dot {
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}
.src-btn.active .dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan), 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.src-btn .label {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  align-self: center;
}
.src-btn:hover .label { color: var(--neon-pink); }
.src-btn.active .label { color: #fff; text-shadow: 0 0 6px var(--neon-cyan); }

.src-btn .hint {
  grid-column: 2;
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  line-height: 1.4;
  transition: max-height 180ms ease, opacity 160ms ease 40ms;
}
.src-btn:hover .hint {
  max-height: 36px;
  opacity: 0.50;
}

/* ── Optional (Spotify) — dashed border + dimmed; visual cue = additive, not required */
.src-btn.src-optional {
  border-style: dashed;
  border-color: rgba(165, 102, 255, 0.35);
  background: rgba(10, 0, 30, 0.45);
  opacity: 0.70;
  margin-left: 8px;
  position: relative;
}
.src-btn.src-optional::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(165, 102, 255, 0.20);
}
.src-btn.src-optional:hover {
  border-color: var(--neon-violet);
  box-shadow: 0 0 0 1px var(--neon-violet),
              0 0 16px rgba(165, 102, 255, 0.30);
  opacity: 1;
}
.src-btn.src-optional.active {
  border-style: solid;
  border-color: var(--neon-violet);
  box-shadow: 0 0 0 1px var(--neon-violet),
              0 0 20px rgba(165, 102, 255, 0.35);
  opacity: 1;
}
.src-btn.src-optional .dot {
  background: rgba(165, 102, 255, 0.28);
  box-shadow: 0 0 4px rgba(165, 102, 255, 0.28);
}
.src-btn.src-optional:hover .dot {
  background: var(--neon-violet);
  box-shadow: 0 0 8px var(--neon-violet);
}
.src-btn.src-optional.active .dot {
  background: var(--neon-violet);
  box-shadow: 0 0 10px var(--neon-violet), 0 0 0 3px rgba(165, 102, 255, 0.15);
}
.src-btn.src-optional .label { color: var(--neon-violet); }
.src-btn.src-optional:hover .label { color: var(--neon-violet); filter: brightness(1.25); }
.src-btn.src-optional.active .label { color: #fff; text-shadow: 0 0 6px var(--neon-violet); }

.src-tag {
  position: absolute;
  top: 4px;
  right: 6px;
  font-family: "Share Tech Mono", monospace;
  font-size: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(165, 102, 255, 0.50);
  pointer-events: none;
  user-select: none;
}

.file-btn { cursor: pointer; }

/* ─── status bar ─────────────────────────────────────────────── */
#status-bar {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(10, 0, 30, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.30);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.10);
}

#audio-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ctrl-row {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 200ms ease;
}

.ctrl-label {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 1px 2px;
  border-radius: 2px;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  opacity: 0.7;
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: opacity 120ms ease, text-shadow 120ms ease, transform 80ms ease;
}
.ctrl-label:hover {
  opacity: 1;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}
.ctrl-label:active {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.9);
  transform: translateY(1px);
}
.ctrl-label[data-reset-to]::after {
  content: "↻ reset to " attr(data-reset-to);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  white-space: nowrap;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(8, 0, 26, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--neon-cyan);
  border-radius: 2px;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 16;
}
.ctrl-label:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.ctrl-disabled {
  opacity: 0.28;
  pointer-events: none;
}

#vol-slider, #sens-slider, #wells-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 64px;
  height: 2px;
  background: rgba(0, 240, 255, 0.18);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
#vol-slider::-webkit-slider-thumb,
#sens-slider::-webkit-slider-thumb,
#wells-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 5px var(--neon-cyan);
  cursor: pointer;
}
#vol-slider::-moz-range-thumb,
#sens-slider::-moz-range-thumb,
#wells-slider::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: none;
  box-shadow: 0 0 5px var(--neon-cyan);
  cursor: pointer;
}

/* Numeric inputs alongside each slider */
.ctrl-num {
  appearance: none;
  -moz-appearance: textfield;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  width: 34px;
  padding: 0 2px 1px;
  outline: none;
  flex-shrink: 0;
  opacity: 0.70;
  transition: border-color 120ms ease, opacity 120ms ease;
}
.ctrl-num::-webkit-inner-spin-button,
.ctrl-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ctrl-num:hover  { opacity: 1; border-color: rgba(0, 240, 255, 0.5); }
.ctrl-num:focus  { opacity: 1; border-color: var(--neon-cyan); outline: none;
                   box-shadow: 0 1px 0 0 rgba(0, 240, 255, 0.3); }

#source-label {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#play-btn, #stop-btn {
  cursor: pointer;
  padding: 5px 14px;
  border: 1px solid var(--neon-pink);
  border-radius: 2px;
  background: rgba(255, 61, 240, 0.12);
  color: var(--neon-pink);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 6px var(--neon-pink);
  transition: background 140ms ease, box-shadow 140ms ease;
}
#play-btn:hover, #stop-btn:hover {
  background: rgba(255, 61, 240, 0.3);
  box-shadow: 0 0 20px rgba(255, 61, 240, 0.55);
}
#stop-btn {
  border-color: #ff5577;
  color: #ff8aa0;
  text-shadow: 0 0 6px #ff5577;
  background: rgba(255, 60, 100, 0.1);
}
#stop-btn:hover { background: rgba(255, 60, 100, 0.3); }


/* ─── tuning panel (live shader controls) ────────────────────── */
#tuning-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 320px;
  max-height: calc((100vh - 40px) / 0.85);  /* counter the 0.85 scale so visible height ≈ viewport - 40px */
  background: rgba(8, 0, 26, 0.82);
  border: 1px solid rgba(165, 102, 255, 0.35);
  border-radius: 4px;
  padding: 10px 18px 12px 14px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 22px rgba(165, 102, 255, 0.15);
  z-index: 15;
  transform: scale(0.85);
  transform-origin: top right;
}

.tuning-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(165, 102, 255, 0.15);
}

.tuning-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-violet);
  text-shadow: 0 0 6px rgba(165, 102, 255, 0.7);
}

.tuning-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

#tuning-random, #tuning-reset, #tuning-toggle, #tuning-details, #tuning-cinema {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--neon-violet);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* inline-flex + center keeps emoji from inflating line-height and
     misaligning the button row against the "TUNING" title. */
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  padding: 3px 6px;
  text-shadow: 0 0 4px rgba(165, 102, 255, 0.6);
  border-radius: 2px;
  transition: color 140ms ease, text-shadow 140ms ease, background 140ms ease;
}

#tuning-toggle {
  font-size: 12px;
  letter-spacing: 0;
  transition: transform 180ms ease, color 140ms ease, text-shadow 140ms ease;
}

#tuning-random:hover, #tuning-reset:hover, #tuning-toggle:hover, #tuning-details:hover, #tuning-cinema:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
}
#tuning-random:active, #tuning-reset:active, #tuning-details:active, #tuning-cinema:active { background: rgba(0, 240, 255, 0.1); }

/* Cinematic toggle — when on, glows pink to signal "active" state distinct from other action buttons. */
#tuning-cinema.on {
  color: var(--neon-pink);
  text-shadow: 0 0 6px var(--neon-pink), 0 0 12px rgba(255, 61, 240, 0.4);
}
#tuning-cinema.on:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink), 0 0 16px rgba(255, 61, 240, 0.6);
}

#tuning-panel.collapsed #tuning-toggle { transform: rotate(-90deg); }
#tuning-panel.collapsed .tuning-body   { display: none; }

/* Simple view (default): only chip rows + stereo toggles. Advanced view
   (#tuning-panel.advanced) reveals the slider body + rand/reset buttons. */
#tuning-panel:not(.advanced) .tuning-body,
#tuning-panel:not(.advanced) .tuning-hint,
#tuning-panel:not(.advanced) .advanced-only {
  display: none;
}

.tuning-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.4) transparent;
}
.tuning-body::-webkit-scrollbar {
  width: 6px;
}
.tuning-body::-webkit-scrollbar-track {
  background: transparent;
}
.tuning-body::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 3px;
  transition: background 140ms ease;
}
.tuning-body::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.tuning-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-random {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1px 4px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.45;
  filter: grayscale(0.6);
  border-radius: 2px;
  transition: opacity 140ms ease, filter 140ms ease, transform 80ms ease;
}
.section-random:hover {
  opacity: 1;
  filter: grayscale(0);
}
.section-random:active { transform: translateY(1px); }

.section-label {
  appearance: none;
  background: transparent;
  border: none;
  padding: 1px 2px;
  text-align: left;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  opacity: 0.7;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.4);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 2px;
  position: relative;
  transition: opacity 120ms ease, text-shadow 120ms ease, transform 80ms ease;
}
.section-label:hover {
  opacity: 1;
  text-shadow: 0 0 7px rgba(0, 240, 255, 0.65);
}
.section-label:active {
  transform: translateY(1px);
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.9);
}

/* Tooltip on section header hover */
.section-label::after {
  content: "↻ reset section";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  white-space: nowrap;
  font-size: 8px;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  background: rgba(8, 0, 26, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--neon-cyan);
  border-radius: 2px;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 16;
}
.section-label:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.slider-row {
  display: grid;
  grid-template-columns: 88px 1fr 44px;
  align-items: center;
  gap: 10px;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.slider-row label {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  padding: 1px 2px;
  border-radius: 2px;
  transition: color 120ms ease, text-shadow 120ms ease, transform 80ms ease;
}
.slider-row label:hover {
  color: var(--text-soft);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.35);
}
.slider-row label:active {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.7);
  transform: translateY(1px);
}

/* Custom hover tooltip — shows what value the click will reset to. */
.slider-row label[data-reset-to]::after {
  content: "↻ reset to " attr(data-reset-to);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  white-space: nowrap;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(8, 0, 26, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: var(--neon-cyan);
  border-radius: 2px;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 16;
}
.slider-row label:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Preset chips under the panel header. */
/* Inline dim label that opens each chip row (preset / color / shape).
   Sits flush with the chips, self-aligns to center so it doesn't throw
   off the row height. Each row's accent color is inherited via color. */
.row-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 214, 255, 0.65);
  align-self: center;
  white-space: nowrap;
  padding-right: 4px;
  pointer-events: none;
  user-select: none;
}
.tuning-presets  .row-label { color: rgba(  0, 240, 255, 0.70); }
.tuning-palettes .row-label { color: rgba(255,  61, 240, 0.70); }
.tuning-shapes   .row-label { color: rgba(165, 102, 255, 0.70); }

.tuning-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 4px;
  border-bottom: 1px solid rgba(165, 102, 255, 0.12);
}
#tuning-panel.collapsed .tuning-presets { display: none; }

.preset-btn {
  appearance: none;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 2px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.2);
  transition: background 140ms ease, border-color 140ms ease,
              color 140ms ease, text-shadow 140ms ease, transform 80ms ease;
}
.preset-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}
.preset-btn:active { transform: translateY(1px); }

/* Color palette chips — same shape as scene presets, but hot-pink themed
   to communicate "this only swaps colors, not behavior." */
.tuning-palettes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 4px;
  border-bottom: 1px solid rgba(165, 102, 255, 0.12);
}
#tuning-panel.collapsed .tuning-palettes { display: none; }

.palette-btn {
  appearance: none;
  background: rgba(255, 61, 240, 0.05);
  border: 1px solid rgba(255, 61, 240, 0.25);
  border-radius: 2px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 0 4px rgba(255, 61, 240, 0.2);
  transition: background 140ms ease, border-color 140ms ease,
              color 140ms ease, text-shadow 140ms ease, transform 80ms ease;
}
.palette-btn:hover {
  background: rgba(255, 61, 240, 0.18);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 6px rgba(255, 61, 240, 0.5);
}
.palette-btn:active { transform: translateY(1px); }

/* Shape chips — violet-themed to distinguish from cyan presets (behavior)
   and pink palettes (color). One can be .active at a time. */
.tuning-shapes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 4px;
  border-bottom: 1px solid rgba(165, 102, 255, 0.12);
}
#tuning-panel.collapsed .tuning-shapes { display: none; }

.shape-btn {
  appearance: none;
  background: rgba(165, 102, 255, 0.05);
  border: 1px solid rgba(165, 102, 255, 0.25);
  border-radius: 2px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 0 4px rgba(165, 102, 255, 0.2);
  transition: background 140ms ease, border-color 140ms ease,
              color 140ms ease, text-shadow 140ms ease, transform 80ms ease;
}
.shape-btn:hover {
  background: rgba(165, 102, 255, 0.18);
  border-color: var(--neon-violet);
  color: var(--neon-violet);
  text-shadow: 0 0 6px rgba(165, 102, 255, 0.5);
}
.shape-btn.active {
  background: rgba(165, 102, 255, 0.22);
  border-color: var(--neon-violet);
  color: var(--neon-violet);
  text-shadow: 0 0 6px rgba(165, 102, 255, 0.7);
}
.shape-btn:active { transform: translateY(1px); }

/* User save slots — empty (dashed border, dim) vs filled (solid cyan glow). */
.tuning-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 4px;
  border-bottom: 1px solid rgba(165, 102, 255, 0.12);
  align-items: center;
}
#tuning-panel.collapsed .tuning-slots { display: none; }

.slot-btn {
  appearance: none;
  background: rgba(0, 240, 255, 0.02);
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: 2px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: none;
  transition: background 140ms ease, border-color 140ms ease,
              color 140ms ease, text-shadow 140ms ease,
              box-shadow 140ms ease, transform 80ms ease;
}
.slot-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--text-soft);
}
.slot-btn:active { transform: translateY(1px); }
.slot-btn.filled {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.4);
}
.slot-btn.filled:hover {
  background: rgba(0, 240, 255, 0.16);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* Share button — pink-themed so it visually separates from preset/slot chips. */
.preset-share {
  appearance: none;
  margin-left: auto;
  background: rgba(255, 61, 240, 0.05);
  border: 1px solid rgba(255, 61, 240, 0.3);
  border-radius: 2px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-pink);
  text-shadow: 0 0 4px rgba(255, 61, 240, 0.3);
  transition: background 140ms ease, border-color 140ms ease,
              color 140ms ease, text-shadow 140ms ease,
              box-shadow 140ms ease, transform 80ms ease;
}
.preset-share:hover {
  background: rgba(255, 61, 240, 0.15);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 61, 240, 0.4);
}
.preset-share:active { transform: translateY(1px); }
.preset-share.copied {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

/* Stereo toggles — three on/off switches under the preset row. */
.stereo-toggles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 4px;
  border-bottom: 1px solid rgba(165, 102, 255, 0.12);
}
#tuning-panel.collapsed .stereo-toggles { display: none; }

.stereo-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 10px;
}

.stereo-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.stereo-btn {
  appearance: none;
  background: rgba(8, 0, 26, 0.6);
  border: 1px solid rgba(165, 102, 255, 0.25);
  border-radius: 2px;
  padding: 3px 8px;
  cursor: pointer;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: none;
  width: 100%;
  transition: background 140ms ease, border-color 140ms ease,
              color 140ms ease, text-shadow 140ms ease;
}
.stereo-btn:hover {
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--text-soft);
}
.stereo-btn.on {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.55);
}
.stereo-btn.on:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

/* Disclaimer under the panel header. */
.tuning-hint {
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  opacity: 0.7;
  padding: 2px 0 4px;
}
#tuning-panel.collapsed .tuning-hint { display: none; }

.slider-row input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  background: rgba(0, 240, 255, 0.18);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.slider-row input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
  cursor: pointer;
}
.slider-row input[type=range]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: none;
  box-shadow: 0 0 6px var(--neon-cyan);
  cursor: pointer;
}

.slider-val {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  color: var(--neon-cyan);
  text-align: right;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.45);
}

/* ─── error toast ────────────────────────────────────────────── */
/* ─── help button + tooltip ─────────────────────────────────── */
#help-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  cursor: pointer;
  border: 1px solid rgba(165, 102, 255, 0.45);
  border-radius: 2px;
  background: rgba(10, 0, 30, 0.7);
  color: var(--neon-violet);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(165, 102, 255, 0.7);
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  transition: background 140ms ease, box-shadow 140ms ease;
}
#help-btn:hover {
  background: rgba(165, 102, 255, 0.12);
  box-shadow: 0 0 16px rgba(165, 102, 255, 0.4);
}

#help-tooltip {
  position: fixed;
  bottom: 56px;
  left: 20px;
  width: 320px;
  background: rgba(8, 0, 26, 0.94);
  border: 1px solid rgba(165, 102, 255, 0.45);
  border-radius: 4px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 28px rgba(165, 102, 255, 0.2);
  z-index: 20;
}

.help-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon-violet);
  text-shadow: 0 0 8px rgba(165, 102, 255, 0.7);
  margin-bottom: 12px;
}

.help-steps {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-steps strong {
  color: var(--text-soft);
}

.help-steps ul {
  padding-left: 14px;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.help-steps ul li::before {
  content: "›  ";
  color: var(--neon-violet);
  opacity: 0.8;
}

.help-src {
  font-family: "Orbitron", monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

/* ─── lower-left column: zoom row ───── */
#lower-left {
  position: fixed;
  top: 88px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
  z-index: 11;
}

/* zoom controls + hide-ui sit on the same horizontal row */
#zoom-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

#zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 0, 30, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  padding: 8px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.08);
}

.zoom-label {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
  margin-right: 2px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

#zoom-value {
  font-size: 9px;
  color: var(--text-soft);
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.3);
  min-width: 30px;
  text-align: right;
  display: inline-block;
}

.zoom-step {
  appearance: none;
  cursor: pointer;
  width: 28px;
  height: 26px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 2px;
  color: var(--neon-cyan);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.4);
  transition: background 140ms ease, border-color 140ms ease,
              box-shadow 140ms ease, color 140ms ease, transform 80ms ease;
}
.zoom-step:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.zoom-step:active { transform: translateY(1px); }
.zoom-step:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  box-shadow: none;
  background: transparent;
  text-shadow: none;
}

/* ─── cast button + tooltip ──────────────────────────────────── */
#cast-btn {
  position: fixed;
  bottom: 20px;
  left: 90px;
  cursor: pointer;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 2px;
  background: rgba(10, 0, 30, 0.7);
  color: var(--neon-cyan);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  transition: background 140ms ease, box-shadow 140ms ease;
}
#cast-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

#cast-tooltip {
  position: fixed;
  bottom: 56px;
  left: 90px;
  width: 280px;
  background: rgba(8, 0, 26, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 4px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}

.cast-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cast-icon {
  font-size: 18px;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
  line-height: 1.2;
  flex-shrink: 0;
}

.cast-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 4px;
}

.cast-body {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── Stream button + tooltip ────────────────────────────────── */
#stream-btn {
  position: fixed;
  bottom: 20px;
  left: 162px;
  cursor: pointer;
  border: 1px solid rgba(255, 61, 240, 0.45);
  border-radius: 2px;
  background: rgba(10, 0, 30, 0.7);
  color: var(--neon-pink);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255, 61, 240, 0.7);
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  transition: background 140ms ease, box-shadow 140ms ease;
}
#stream-btn:hover {
  background: rgba(255, 61, 240, 0.1);
  box-shadow: 0 0 16px rgba(255, 61, 240, 0.4);
}

#stream-tooltip {
  position: fixed;
  bottom: 56px;
  left: 162px;
  width: 310px;
  background: rgba(8, 0, 26, 0.94);
  border: 1px solid rgba(255, 61, 240, 0.4);
  border-radius: 4px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 28px rgba(255, 61, 240, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.stream-obs-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 61, 240, 0.6);
}

.stream-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 61, 240, 0.07);
  border: 1px solid rgba(255, 61, 240, 0.25);
  border-radius: 3px;
  padding: 6px 10px;
}

#stream-url-display {
  flex: 1;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  word-break: break-all;
  line-height: 1.4;
}

#stream-copy-btn {
  flex-shrink: 0;
  appearance: none;
  background: rgba(255, 61, 240, 0.15);
  border: 1px solid rgba(255, 61, 240, 0.4);
  border-radius: 2px;
  color: var(--neon-pink);
  font-family: "Orbitron", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 120ms ease;
}
#stream-copy-btn:hover {
  background: rgba(255, 61, 240, 0.28);
}

.stream-steps {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 16px;
  margin: 0;
}
.stream-steps li { margin-bottom: 2px; }
.stream-steps strong { color: var(--text-soft); }
.stream-steps kbd {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  padding: 0 4px;
  font-family: inherit;
  font-size: 10px;
}

.stream-open-btn {
  display: block;
  text-align: center;
  font-family: "Orbitron", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 61, 240, 0.5);
  text-decoration: none;
  padding: 7px 0;
  border: 1px solid rgba(255, 61, 240, 0.35);
  border-radius: 3px;
  transition: background 130ms ease, box-shadow 130ms ease;
}
.stream-open-btn:hover {
  background: rgba(255, 61, 240, 0.1);
  box-shadow: 0 0 14px rgba(255, 61, 240, 0.3);
}

/* ─── sample search panel (inline, mobile only) ──────────────── */
#sample-panel {
  display: none; /* hidden on desktop */
}
/* Search bar */
.md-search-wrap {
  width: 100%;
}
#md-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 0, 30, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 6px;
  padding: 11px 14px;
  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(246, 214, 255, 0.9);
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  -webkit-appearance: none;
  appearance: none;
}
#md-search::placeholder { color: rgba(246, 214, 255, 0.25); }
#md-search:focus {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
}
#md-search::-webkit-search-cancel-button { display: none; }

/* Suggestions shelf label */
.md-shelf-label {
  font-family: "Orbitron", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.35);
  margin-bottom: 8px;
}

/* Track card list */
/* Search results — full-width rows */
.md-tracks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Individual track card — tappable */
.md-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: rgba(10, 0, 30, 0.65);
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.md-track:active,
.md-track.md-playing {
  border-color: rgba(0, 240, 255, 0.55);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.md-art {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 240, 255, 0.06);
}
.md-info {
  flex: 1;
  overflow: hidden;
}
.md-track-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.10em;
  color: rgba(246, 214, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-track-artist {
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(0, 240, 255, 0.5);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.md-play-icon {
  font-size: 13px;
  color: rgba(0, 240, 255, 0.4);
  flex-shrink: 0;
  transition: color 180ms ease, text-shadow 180ms ease;
}
.md-track.md-playing .md-play-icon {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* ── Suggestions shelf — horizontal thirds ─────────────────────
   Override the column card layout for the curated picks row.
   Art fills the top of each card; title + artist sit below.    */
#md-suggestions .md-tracks {
  flex-direction: row;
  gap: 8px;
}
#md-suggestions .md-track {
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
#md-suggestions .md-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px 4px 0 0;
}
#md-suggestions .md-info {
  padding: 6px 8px 7px;
}
#md-suggestions .md-track-title {
  font-size: 9px;
  letter-spacing: 0.08em;
}
#md-suggestions .md-track-artist {
  font-size: 8px;
  margin-top: 2px;
}
#md-suggestions .md-play-icon { display: none; }

/* Loading dots */
.md-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.md-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.5);
  animation: md-pulse 1.2s ease-in-out infinite;
}
.md-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.md-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes md-pulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Empty / error state */
.md-empty {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(246, 214, 255, 0.35);
  text-align: center;
  padding: 24px 0;
}

/* Skip button */
#md-skip {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(246, 214, 255, 0.28);
  cursor: pointer;
  padding: 8px 16px;
  transition: color 160ms ease;
}
/* ─── sample panel — show inline on mobile ────────────────────── */
@media (max-width: 900px) {
  /* Hide fixed desktop controls that collide with the scrollable panel */
  #lower-left { display: none !important; }

  #sample-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    /* Push below fixed nameplate (thin row bar ~32px at top:12px) */
    padding: 52px 0 8px;
  }

  /* Compact suggestion art — fixed height instead of full square */
  #md-suggestions .md-art {
    height: 72px;
    aspect-ratio: auto;
  }
}

/* ─── now-playing card ───────────────────────────────────────────────
   Floats in the top-right corner. Fades in when Spotify is playing a
   track; fades out on pause / disconnect. Same glass language as
   #header-card but pink-accented to signal it's Spotify data.
   ──────────────────────────────────────────────────────────────────── */
#now-playing {
  /* Flows inside #lower-left flex column — no fixed positioning needed. */
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 0, 30, 0.7);
  border: 1px solid rgba(255, 61, 240, 0.25);
  border-radius: 4px;
  padding: 8px 12px 8px 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(255, 61, 240, 0.08);
  max-width: 240px;
  /* hidden by default — JS adds .np-visible to show */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#now-playing.np-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#np-art {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
#np-art[src=""] { display: none; }

#np-text {
  overflow: hidden;
  min-width: 0;
}
#np-track {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#np-artist {
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#np-status {
  font-family: "Share Tech Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255, 61, 240, 0.5);
  margin-top: 4px;
  text-transform: uppercase;
}
#now-playing.np-paused {
  opacity: 0.45;
  transition: opacity 0.6s ease, transform 0.35s ease;
}

/* ─── synced lyrics overlay ──────────────────────────────────────────
   Floats above the source picker, centered. Each line fades + drifts
   upward as it swaps. Neon cyan with synthwave glow; magenta accent
   underline echoes the rest of the chrome.
   ──────────────────────────────────────────────────────────────────── */
#lyrics {
  position: fixed;
  left: 50%;
  bottom: 210px;
  transform: translateX(-50%);
  width: min(960px, 86vw);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4;
}
#lyrics.lyrics-visible {
  opacity: 1;
}
#lyrics .lyric-line {
  font-family: "Orbitron", "Share Tech Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  /* Color driven by JS via --lyric-color (complement of current outer palette hue).
     Falls back to neon-cyan. Dark backstop shadows ensure legibility on any
     preset, including bright inferno/toxic where a pure glow color would wash out. */
  color: var(--lyric-color, var(--neon-cyan));
  text-shadow:
    0 0 8px  var(--lyric-glow, rgba(0, 240, 255, 0.55)),
    0 0 20px var(--lyric-glow, rgba(0, 240, 255, 0.35)),
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 0 28px  rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  display: inline-block;
  padding: 6px 18px 8px;
  background: linear-gradient(180deg, transparent 0%, transparent 78%, rgba(255, 61, 240, 0.18) 100%);
}
#lyrics .lyric-line.lyric-show {
  opacity: 1;
  transform: translateY(0);
}

/* Hide on mobile (already crowded) and in stream/OBS mode. */
.is-phone #lyrics            { display: none !important; }
body.stream-mode #lyrics     { display: none !important; }
/* In UI-hidden mode lyrics are content, not chrome — keep them visible. */

/* ─── UI hide mode ───────────────────────────────────────────────────
   body.ui-hidden collapses everything except #header-card + #lower-left.
   The hide button sits in the lower-left row so it's always reachable.
   ──────────────────────────────────────────────────────────────────── */
body.ui-hidden #source-picker,
body.ui-hidden #status-bar,
body.ui-hidden #tuning-panel,
body.ui-hidden #help-btn,
body.ui-hidden #help-tooltip,
body.ui-hidden #cast-btn,
body.ui-hidden #cast-tooltip,
body.ui-hidden #stream-btn,
body.ui-hidden #stream-tooltip,
body.ui-hidden #spotify-tooltip {
  display: none !important;
}

/* Hide button — standalone card in the lower-left row, same height as zoom. */
#ui-hide-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  background: rgba(10, 0, 30, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 4px;
  color: rgba(246, 214, 255, 0.45);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.04);
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
#ui-hide-btn:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}


/* In hidden mode the button is the sole CTA — make it pulse so it's obvious. */
body.ui-hidden #ui-hide-btn {
  color: var(--neon-pink);
  border-color: rgba(255, 61, 240, 0.65);
  box-shadow: 0 0 10px rgba(255, 61, 240, 0.35), 0 0 22px rgba(255, 61, 240, 0.12);
  text-shadow: 0 0 8px rgba(255, 61, 240, 0.7);
  animation: hide-btn-pulse 2.4s ease-in-out infinite;
}
@keyframes hide-btn-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 61, 240, 0.35), 0 0 22px rgba(255, 61, 240, 0.12); }
  50%       { box-shadow: 0 0 18px rgba(255, 61, 240, 0.65), 0 0 36px rgba(255, 61, 240, 0.22); }
}

#error-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: rgba(60, 0, 20, 0.85);
  border: 1px solid #ff5577;
  color: #ffd0d8;
  border-radius: 2px;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  max-width: 80vw;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(255, 85, 119, 0.5);
  z-index: 30;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Info variant — used for non-error notifications (e.g. Spotify connected). */
#error-toast.info {
  background: rgba(0, 18, 30, 0.88);
  border-color: rgba(0, 240, 255, 0.55);
  color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
}

/* ── Spotify tooltip ──────────────────────────────────────────────────────
   Appears above the source picker when the user clicks the active Spotify
   button. Explains the dual-source (Spotify + audio) flow and holds the
   disconnect action so accidental clicks don't break the session.
   ──────────────────────────────────────────────────────────────────────── */
#spotify-tooltip {
  position: fixed;
  bottom: 178px;   /* sits just above the source picker (bottom: 100px) */
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  background: rgba(8, 0, 26, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 4px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.18);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.sp-body {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sp-body p { margin: 0; }

.sp-body strong { color: var(--text-soft); }

.sp-body ul {
  padding-left: 14px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.sp-note {
  color: rgba(180, 160, 220, 0.55);
  font-size: 10.5px;
}

#spotify-disconnect {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 61, 240, 0.3);
  border-radius: 3px;
  color: rgba(255, 61, 240, 0.6);
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color 0.15s, color 0.15s;
}

#spotify-disconnect:hover {
  border-color: rgba(255, 61, 240, 0.65);
  color: rgba(255, 61, 240, 0.9);
}

/* ─── custom cursor ──────────────────────────────────────────────── */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  /* positioned via JS transform */
}
#cursor-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--neon-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--neon-cyan), 0 0 12px rgba(0, 240, 255, 0.4);
}
#cursor-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 240, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease,
              opacity 0.18s ease, border-color 0.18s ease;
}
#cursor-ring.cursor-beat {
  width: 40px;
  height: 40px;
  opacity: 0.2;
  border-color: rgba(0, 240, 255, 0.8);
}

/* XP-style cursor trail ghosts */
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  box-shadow: 0 0 5px var(--neon-cyan);
  will-change: transform, opacity;
}

/* ─── Phone mode (.is-phone on body) ─────────────────────────────────────
   Activated by detectPhone() in main.js. Hides desktop-only chrome, centers
   the nameplate, exposes the stripped-down mobile panel, and locks the mic
   as the only audio source. All overrides are additive — nothing in the
   desktop layout is structurally removed.
   ──────────────────────────────────────────────────────────────────────── */

/* Desktop-only UI elements — gone on phone */
.is-phone #lower-left        { display: none !important; }
.is-phone #tuning-panel      { display: none !important; }
.is-phone #help-btn          { display: none !important; }
.is-phone #help-tooltip      { display: none !important; }
.is-phone #cast-btn          { display: none !important; }
.is-phone #cast-tooltip      { display: none !important; }
.is-phone #stream-btn        { display: none !important; }
.is-phone #stream-tooltip    { display: none !important; }
.is-phone #mobile-notice     { display: none !important; }
.is-phone #now-playing       { display: none !important; }
.is-phone #spotify-tooltip   { display: none !important; }
.is-phone #cursor            { display: none !important; }
.is-phone .cursor-trail      { display: none !important; }

/* Status bar — source label + stop only; hide audio sliders and play button */
.is-phone #audio-controls    { display: none !important; }
.is-phone #play-btn          { display: none !important; }

/* Source picker — mic only */
.is-phone .src-btn[data-src="system"]  { display: none !important; }
.is-phone .src-btn[data-src="spotify"] { display: none !important; }
.is-phone .src-btn.file-btn            { display: none !important; }

/* Mic button — original size is fine for a single centered button */
.is-phone .src-btn {
  width: 200px;
}

/* Nameplate — wider thin bar pinned to the top on phone */
.is-phone #header-card {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 32px);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  gap: 12px;
}

.is-phone #title {
  font-size: 12px;
  letter-spacing: 0.35em;
  white-space: nowrap;
}

.is-phone #credit {
  font-size: 8px;
  text-align: right;
  flex-shrink: 0;
}

.is-phone #build-stamp {
  display: none;
}

/* Hide UI button — small text-only; sits between status bar and mic button */
#mobile-hide-btn {
  display: none;
}

.is-phone #mobile-hide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(0, 240, 255, 0.28);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 20px;
  transition: color 140ms ease;
}

.is-phone #mobile-hide-btn:active {
  color: rgba(0, 240, 255, 0.65);
}

/* CTA — subtle dim text just above the mobile panel */
#mobile-cta {
  display: none;
}

.is-phone #mobile-cta {
  display: block;
  position: fixed;
  bottom: calc(278px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.28);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* Mobile control panel — presets + palettes in scrollable rows */
#mobile-panel {
  display: none;
}

.is-phone #mobile-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  bottom: calc(190px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 32px);
  max-width: 420px;
  background: rgba(10, 0, 30, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 4px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.07);
  z-index: 10;
}

.mobile-panel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-panel-row::-webkit-scrollbar { display: none; }

/* Compact touch targets — slightly bigger than desktop but not chunky */
.is-phone .preset-btn,
.is-phone .palette-btn {
  padding: 4px 10px;
  font-size: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Actions row — reset + zoom */
.mobile-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 3px;
  border-top: 1px solid rgba(165, 102, 255, 0.12);
}

#mobile-reset-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(246, 214, 255, 0.35);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  transition: color 140ms ease;
}
#mobile-reset-btn:active { color: rgba(246, 214, 255, 0.7); }


.mobile-zoom-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-zoom-label {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.35);
}

#mobile-zoom-in,
#mobile-zoom-out {
  appearance: none;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 3px;
  color: var(--neon-cyan);
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 14px;
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}
#mobile-zoom-in:active,
#mobile-zoom-out:active {
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Source picker and status bar — account for iOS safe area */
.is-phone #source-picker {
  bottom: calc(116px + env(safe-area-inset-bottom, 0px));
}

.is-phone #status-bar {
  bottom: calc(44px + env(safe-area-inset-bottom, 0px));
}

/* Hidden UI mode — panel/CTA/picker/status/samples collapse; hide button stays */
body.mobile-ui-hidden.is-phone #mobile-panel   { display: none !important; }
body.mobile-ui-hidden.is-phone #mobile-cta     { display: none !important; }
body.mobile-ui-hidden.is-phone #source-picker  { display: none !important; }
body.mobile-ui-hidden.is-phone #status-bar     { display: none !important; }
body.mobile-ui-hidden.is-phone #sample-panel   { display: none !important; }

/* ─── Stream mode (?stream=1) — OBS browser source overlay ──────────── */

/* Transparent background so OBS composites the particle field over game/cam */
body.stream-mode {
  background: transparent !important;
}

/* Remove scanline overlay — it adds a faint tinted bar that looks bad over video */
body.stream-mode::after {
  display: none !important;
}

/* Hide all HUD chrome */
body.stream-mode #hud,
body.stream-mode #source-picker,
body.stream-mode #epilepsy-warning,
body.stream-mode #status-bar,
body.stream-mode #sample-panel,
body.stream-mode #error-toast,
body.stream-mode #now-playing,
body.stream-mode #stream-btn,
body.stream-mode #stream-tooltip,
body.stream-mode .cursor-trail,
body.stream-mode #cursor,
body.stream-mode #cursor-ring {
  display: none !important;
}

/* Stream hint — "click to activate mic" — center-bottom, fades out on use */
#stream-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  color: rgba(0, 240, 255, 0.85);
  font-family: "Orbitron", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer !important;
  transition: opacity 600ms ease;
  z-index: 10;
  /* Hidden outside stream mode */
  display: none;
}
body.stream-mode #stream-hint {
  display: block;
}
body.stream-mode #stream-hint.hint-dismissed {
  opacity: 0;
  pointer-events: none;
}

/* Tiny attribution credit — top-right, very faint, fades after 8s */
#stream-credit {
  position: fixed;
  top: 14px;
  right: 16px;
  font-family: "Orbitron", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.22);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 2s ease;
  /* Hidden outside stream mode */
  display: none;
}
body.stream-mode #stream-credit {
  display: block;
}
body.stream-mode #stream-credit.credit-fade {
  opacity: 0;
}
