/* WeZen Radio: trippy neon, glass, and a background that breathes with the band. */
:root {
  --bg: #06030d;
  --fg: #f6f0ff;
  --muted: #a99cc9;
  --magenta: #ff2fd1;
  --cyan: #22f2ff;
  --lime: #b8ff3a;
  --violet: #7b5cff;
  --amber: #ffb02e;
  --accent: var(--magenta);
  --ok: var(--lime);
  --warn: var(--amber);
  --glass: rgba(20, 10, 40, 0.42);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --pulse: 0; /* 0..1, set by pulse.js from the stream's bass */
  --display: 'Monoton', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
main { position: relative; z-index: 1; width: 100%; max-width: 420px; text-align: center; }
.hidden { display: none !important; }

/* ---------- Background: drifting neon blobs, a slow swirl, film grain ---------- */
.bg {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none; overflow: hidden;
  transform: scale(calc(1 + var(--pulse) * 0.06));
}
.blob {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  opacity: 0.55; mix-blend-mode: screen; will-change: transform;
}
.b1 { background: radial-gradient(circle, var(--magenta) 0%, transparent 62%); top: 0; left: -10%; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, var(--cyan) 0%, transparent 60%); bottom: -5%; right: -15%; animation: drift2 31s ease-in-out infinite alternate; opacity: 0.4; }
.b3 { background: radial-gradient(circle, var(--violet) 0%, transparent 60%); top: 30%; left: 20%; animation: drift3 23s ease-in-out infinite alternate; opacity: 0.5; }
@keyframes drift1 { to { transform: translate(25%, 30%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-30%, -25%) scale(0.85); } }
@keyframes drift3 { to { transform: translate(-20%, 20%) scale(1.25) rotate(40deg); } }
.swirl {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, rgba(255,47,209,0.10), rgba(34,242,255,0.08), rgba(184,255,58,0.06), rgba(123,92,255,0.10), rgba(255,47,209,0.10));
  animation: spin 60s linear infinite;
  opacity: calc(0.6 + var(--pulse) * 0.4);
}
@keyframes spin { to { transform: rotate(360deg); } }
.grain {
  position: absolute; inset: 0; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* vignette so text always reads */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(6,3,13,0) 30%, rgba(6,3,13,0.75) 100%);
}

/* ---------- Brand ---------- */
.brand { margin-bottom: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); animation: blink 2.4s ease-in-out infinite; }
.is-live .kicker-dot { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
@keyframes blink { 50% { opacity: 0.3; } }
.logo {
  font-family: var(--display); font-weight: 400; margin: 0; line-height: 0.95;
  font-size: clamp(3.4rem, 19vw, 5.6rem); letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--lime), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 12s linear infinite;
  filter: drop-shadow(0 0 calc(8px + var(--pulse) * 22px) rgba(255, 47, 209, calc(0.45 + var(--pulse) * 0.5)));
}
@keyframes hue { to { background-position: 300% 0; } }
.logo-sub {
  margin: 6px 0 0; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.9em; text-indent: 0.9em;
  text-transform: uppercase; color: var(--fg); opacity: 0.85;
}
h1 { font-weight: 700; }

/* ---------- Tune-in orb ---------- */
.orb-wrap { position: relative; display: grid; place-items: center; margin: 22px auto 8px; width: min(64vw, 240px); aspect-ratio: 1; }
button.orb {
  position: relative; width: 100%; height: 100%; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), rgba(123,92,255,0.25) 40%, rgba(6,3,13,0.9) 75%);
  box-shadow: 0 0 40px rgba(255,47,209,0.35), inset 0 0 40px rgba(34,242,255,0.15);
  transition: transform 0.2s;
}
button.orb:active { transform: scale(0.96); }
.orb-ring {
  position: absolute; inset: -6px; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--magenta), var(--cyan), var(--lime), var(--violet), var(--magenta));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255,47,209,0.6));
}
.orb-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.orb-label { font-family: var(--display); font-size: clamp(1.6rem, 9vw, 2.3rem); font-weight: 400; letter-spacing: 0.04em; }
.orb-sub { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { button.orb:hover { box-shadow: 0 0 60px rgba(255,47,209,0.55), inset 0 0 50px rgba(34,242,255,0.2); } }

/* While listening the orb becomes rings that breathe with the bass */
.onair { display: none; position: absolute; inset: 0; place-items: center; }
.is-listening .onair { display: grid; }
.onair-ring {
  position: absolute; border-radius: 50%; border: 2px solid; inset: 0;
  transform: scale(calc(0.62 + var(--pulse) * 0.3));
  transition: transform 0.08s linear;
}
.onair-ring.r1 { border-color: rgba(255,47,209,0.85); box-shadow: 0 0 24px rgba(255,47,209,0.6); }
.onair-ring.r2 { border-color: rgba(34,242,255,0.7); transform: scale(calc(0.78 + var(--pulse) * 0.22)); animation: turn 14s linear infinite reverse; border-style: dashed; }
@keyframes turn { to { rotate: 360deg; } } /* rotate, so the bass scale on transform still applies */
.onair-ring.r3 { border-color: rgba(184,255,58,0.55); transform: scale(calc(0.94 + var(--pulse) * 0.1)); }
.onair-core {
  font-family: var(--display); font-size: clamp(2rem, 11vw, 3rem); letter-spacing: 0.06em;
  color: var(--fg); text-shadow: 0 0 calc(10px + var(--pulse) * 30px) var(--magenta);
  opacity: 0.35;
}
.is-live .onair-core { opacity: 1; }

/* ---------- Buttons ---------- */
button {
  font: inherit; font-weight: 700; border: 0; border-radius: 999px;
  padding: 16px 26px; width: 100%; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, var(--magenta), var(--violet));
  box-shadow: 0 6px 24px rgba(255,47,209,0.25);
}
button:disabled { opacity: 0.5; cursor: default; }
button.secondary, button.ghost {
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
button.ghost { color: var(--muted); font-weight: 500; }
button.small { padding: 10px 16px; font-size: 0.9rem; width: auto; }
.big { font-size: 1.3rem; padding: 24px; }
.cta { margin: 10px 0 14px; font-size: 1.05rem; letter-spacing: 0.02em; }
.cta.glow {
  position: relative; background: rgba(6,3,13,0.6); border: 0; isolation: isolate;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cta.glow::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--lime), var(--cyan)); background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hue 6s linear infinite;
}
.cta.glow span {
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Stage video ---------- */
.video-card {
  position: relative; margin: 4px 0 14px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9;
  background: #000; border: 1px solid var(--glass-edge);
  box-shadow: 0 0 0 2px rgba(255,47,209,0.25), 0 0 calc(24px + var(--pulse) * 30px) rgba(255,47,209,0.35);
}
.video-card video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-card:fullscreen { border-radius: 0; border: 0; }
.video-tag {
  position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 4px #000; color: var(--lime);
}
.video-tag .dot { width: 8px; height: 8px; animation: pulse 1.2s ease-in-out infinite; }
button.video-btn {
  position: absolute; top: 8px; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: rgba(6,3,13,0.55); border: 1px solid rgba(255,255,255,0.18); box-shadow: none; font-size: 0.95rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff;
}
button.video-btn.close { right: 8px; }
button.video-btn.fs { right: 52px; }
button.video-btn.overlay { right: 96px; color: var(--magenta); }
.cam video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; margin-top: 10px; object-fit: cover; }
.cam-head { display: flex; justify-content: space-between; align-items: baseline; }
.cam-head span { color: var(--muted); font-size: 0.85rem; }
.cam-head span.on { color: var(--lime); font-weight: 700; letter-spacing: 0.08em; }
.stage-card + .stage-card { margin-top: 14px; }

/* ---------- Status ---------- */
.status {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px auto 6px; min-height: 1.4em; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
}
.status:empty { display: block; }
.status.live { color: var(--lime); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.4em; text-indent: 0.4em; text-shadow: 0 0 calc(8px + var(--pulse) * 18px) rgba(184,255,58,0.7); }
.status.waiting { color: var(--amber); font-weight: 500; letter-spacing: 0.02em; }
.status.error { color: var(--magenta); font-weight: 500; letter-spacing: 0.02em; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.live .dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- Glass panels, sliders, chips ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 22px;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.sound { text-align: left; margin: 0 0 12px; padding: 4px 18px; }
.sound summary {
  cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none;
  display: flex; align-items: baseline; gap: 10px;
}
.sound summary::-webkit-details-marker { display: none; }
.sound summary::before { content: '◐'; color: var(--cyan); transition: transform 0.3s; display: inline-block; }
.sound[open] summary::before { transform: rotate(180deg); }
.sound summary small { color: var(--muted); font-weight: 500; }
.sound[open] { padding-bottom: 16px; }
.slider { display: grid; grid-template-columns: 4.4em 1fr 3.8em; align-items: center; gap: 10px; margin: 8px 0; }
.slider label { margin: 0; color: var(--fg); font-size: 0.95rem; text-align: left; }
.slider output { text-align: right; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; padding: 0;
  background: transparent; border: 0;
}
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); opacity: 0.85; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(255,47,209,0.5), 0 0 14px var(--magenta);
}
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,47,209,0.5), 0 0 14px var(--magenta); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.chips button {
  width: auto; flex: 1 1 auto; padding: 10px 12px; font-size: 0.9rem; box-shadow: none;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-edge);
}
.chips button.on { background: linear-gradient(120deg, var(--magenta), var(--violet)); border-color: transparent; box-shadow: 0 0 18px rgba(255,47,209,0.45); }

/* ---------- Small print ---------- */
.tip { color: var(--muted); font-size: 0.82rem; margin-top: 22px; line-height: 1.6; }
footer.tip { opacity: 0.8; }
.diag { display: none; font-family: ui-monospace, monospace; font-size: 0.72rem; color: var(--muted); word-break: break-word; }
body.debug .diag, body.stage .diag { display: block; }

/* ---------- Forms (stage page) ---------- */
label { display: block; text-align: left; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; margin: 16px 0 6px; }
input:not([type=range]):not([type=checkbox]), select {
  font: inherit; width: 100%; padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--glass-edge); background: rgba(6,3,13,0.55); color: var(--fg);
}
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.meter { display: flex; gap: 6px; margin: 20px 0 4px; }
.meter div { flex: 1; height: 12px; background: rgba(255,255,255,0.07); border-radius: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--lime)); transition: width 60ms linear; box-shadow: 0 0 10px var(--lime); }
.meter span.hot { background: linear-gradient(90deg, var(--amber), var(--magenta)); box-shadow: 0 0 10px var(--magenta); }
.rec { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--glass-edge); }
button.recording { background: linear-gradient(120deg, #ff3b3b, var(--magenta)); animation: pulse 1.2s ease-in-out infinite; }
.rec a { color: var(--cyan); }
.stats { display: flex; justify-content: space-around; margin: 18px 0; }
.stats b { display: block; font-size: 2rem; font-family: var(--display); font-weight: 400; color: var(--lime); text-shadow: 0 0 14px rgba(184,255,58,0.5); }
.stats small { color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.7rem; }
.stage-card { padding: 18px 20px 20px; text-align: left; }
.stage-card .tip { margin-top: 8px; }
body.stage .logo { font-size: clamp(2.6rem, 13vw, 3.6rem); }

/* ---------- Full-screen visuals ---------- */
#visuals { display: none; position: fixed; inset: 0; z-index: 10; background: #000; }
#visuals.open { display: block; }
#visuals canvas, #visuals .viz-stage, .viz-touch { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viz-touch { touch-action: none; }
#visuals .viz-stage { object-fit: contain; background: #000; }
/* Layers: visuals | overlay (stage video + keyed visuals) | video */
#visuals .viz-stage, #visuals .viz-key { display: none; }
#visuals[data-layer="overlay"] .viz-stage, #visuals[data-layer="video"] .viz-stage { display: block; }
#visuals[data-layer="overlay"] .viz-key { display: block; }
#visuals[data-layer="overlay"] .viz-src { opacity: 0; } /* still rendered: it's the key's source */
#visuals[data-layer="video"] .viz-src { display: none; }
.viz-layers {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: max(118px, calc(env(safe-area-inset-bottom) + 106px));
  display: flex; gap: 0; border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.16);
}
#visuals .viz-layers button { width: auto; border: 0; border-radius: 0; padding: 10px 14px; font-size: 0.85rem; white-space: nowrap; }
#visuals .viz-layers button.on { background: linear-gradient(120deg, var(--magenta), var(--violet)); }
#visuals button {
  background: rgba(6,3,13,0.45); border: 1px solid rgba(255,255,255,0.14); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#visuals button.viz-done { background: linear-gradient(120deg, var(--magenta), var(--violet)); border-color: transparent; }
.viz-close, .viz-fs {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px;
  padding: 0; border-radius: 50%; font-size: 1.05rem;
}
.viz-fs { right: 64px; }
.viz-fs[hidden] { display: none; }
.viz-gear {
  position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; height: 44px; width: auto;
  padding: 0 14px; border-radius: 22px; font-size: 0.9rem;
}
.viz-label, .viz-hint {
  position: absolute; left: 0; right: 0; text-align: center; pointer-events: none;
  color: rgba(255,255,255,0.9); text-shadow: 0 1px 6px #000; padding: 0 116px;
}
.viz-label {
  top: max(12px, env(safe-area-inset-top)); line-height: 44px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.6s;
}
.viz-label.show { opacity: 1; }
.viz-hint { bottom: max(16px, env(safe-area-inset-bottom)); padding: 0 16px; font-size: 0.78rem; opacity: 0.6; letter-spacing: 0.04em; }
#visuals .viz-chrome { transition: opacity 0.35s; }
#visuals.ui-hidden .viz-chrome { opacity: 0; pointer-events: none; }
#visuals.ui-hidden { cursor: none; }
#visuals.clean .viz-label, #visuals.clean .viz-hint { display: none; }
.viz-bar {
  position: absolute; left: 0; right: 0; bottom: max(52px, calc(env(safe-area-inset-bottom) + 40px));
  display: flex; justify-content: center; align-items: center; gap: 14px;
}
.viz-bar button { width: auto; font-size: 1rem; }
.viz-prev, .viz-next { width: 56px !important; height: 56px; padding: 0; border-radius: 50%; }
.viz-mode { height: 48px; padding: 0 20px; border-radius: 24px; min-width: 112px; }
.viz-settings, .viz-ios {
  background: rgba(10,5,22,0.78); border: 1px solid rgba(255,255,255,0.14); border-radius: 22px;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.viz-settings {
  position: absolute; left: 12px; right: 12px; bottom: max(170px, calc(env(safe-area-inset-bottom) + 158px));
  max-width: 460px; margin: 0 auto; padding: 12px 18px 16px; text-align: left;
  max-height: calc(100% - 190px); overflow-y: auto;
}
@media (max-height: 480px) { .viz-settings { bottom: 12px; max-height: calc(100% - 70px); } }
.viz-settings .slider { grid-template-columns: 5.4em 1fr 4.2em; }
.viz-settings .check { display: flex; gap: 10px; align-items: center; color: var(--fg); margin: 12px 0 4px; font-size: 0.95rem; }
.viz-settings .check input { width: 20px; height: 20px; accent-color: var(--magenta); }
.viz-settings .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.viz-ios { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); padding: 20px; text-align: center; }
.viz-ios p { margin: 0 0 10px; color: var(--fg); }

/* ---------- Calm mode for people who ask their phone for less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob, .swirl, .orb-ring, .logo, .cta.glow::before, .onair-ring, .kicker-dot { animation: none !important; }
  .bg, .onair-ring { transform: none !important; }
}

/* Themes recolour the main buttons only: glass buttons and chips stay glass. */
[data-theme] button.secondary, [data-theme] button.ghost {
  background: var(--glass); color: var(--fg); box-shadow: none;
}
[data-theme] button.ghost { color: var(--muted); }
[data-theme] button.video-btn { background: rgba(6,3,13,0.55); color: #fff; box-shadow: none; }
[data-theme] .chips button:not(.on) { background: rgba(255,255,255,0.06); color: var(--fg); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  [data-theme] .swirl, [data-theme] .logo { animation: none !important; transform: none !important; }
}

.stage-card .check { display: flex; gap: 10px; align-items: center; color: var(--fg); margin: 10px 0 0; font-size: 0.92rem; letter-spacing: 0; }
.stage-card .check input { width: 20px; height: 20px; accent-color: var(--magenta); flex: none; }
/* Video-only: the look controls don't apply */
#visuals[data-layer="video"] .viz-bar, #visuals[data-layer="video"] .viz-hint { display: none; }
#visuals[data-layer="video"] .viz-layers { bottom: max(52px, calc(env(safe-area-inset-bottom) + 40px)); }

/* Until the stage video has a picture: no overlay (it would just be visuals on black) */
#visuals[data-layer="overlay"]:not([data-video-ready]) .viz-key { visibility: hidden; }
.viz-wait {
  display: none; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; color: var(--muted); letter-spacing: 0.06em; pointer-events: none;
}
#visuals[data-layer="overlay"]:not([data-video-ready]) .viz-wait,
#visuals[data-layer="video"]:not([data-video-ready]) .viz-wait { display: block; animation: pulse 1.4s ease-in-out infinite; }

.rec-where { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.rec-where b { color: var(--fg); }
.rec .check { display: flex; gap: 10px; align-items: center; color: var(--fg); margin: 12px 0; font-size: 0.92rem; letter-spacing: 0; text-align: left; }
.rec .check input { width: 20px; height: 20px; accent-color: var(--magenta); flex: none; }

@keyframes md-turn { to { transform: rotate(360deg); } }

/* =====================================================================
   The WZEN look: quiet and refined. One typeface, one light colour on
   near-black, the torus as a thin line drawing turning slowly.
   (data-theme="simple" is set on <html>; the rules above are the base.)
   ===================================================================== */
[data-theme="simple"] {
  --bg: #0c0c0e; --fg: #f1efe9; --muted: #8d8a83; --line: rgba(241,239,233,0.14); --accent: #e8d3a0;
  --magenta: #f1efe9; --cyan: #f1efe9; --lime: #e8d3a0; --violet: #f1efe9; --amber: #e8d3a0;
  --glass: transparent; --glass-edge: var(--line);
  --display: 'Instrument Sans', system-ui, sans-serif; --body: 'Instrument Sans', system-ui, sans-serif;
}
[data-theme="simple"] .blob, [data-theme="simple"] .swirl, [data-theme="simple"] .grain, [data-theme="simple"] body::after { display: none; }
[data-theme="simple"] .bg { background: var(--bg); transform: none; }
[data-theme="simple"] main { max-width: 360px; }
/* type */
[data-theme="simple"] .kicker { color: var(--muted); letter-spacing: 0.24em; font-size: 0.68rem; font-weight: 500; }
[data-theme="simple"] .kicker-dot { width: 6px; height: 6px; background: var(--muted); box-shadow: none; animation: none; }
[data-theme="simple"] .is-live .kicker-dot { background: var(--accent); }
[data-theme="simple"] .logo {
  font-weight: 600; font-size: 2.6rem; letter-spacing: 0.32em; text-indent: 0.32em; line-height: 1;
  background: none; color: var(--fg); animation: none; filter: none;
}
[data-theme="simple"] .logo-sub { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.6em; text-indent: 0.6em; color: var(--muted); margin-top: 10px; }
/* the torus: thin lines only, no glow, turning slowly; tap it to tune in */
[data-theme="simple"] .orb-wrap { width: min(58vw, 230px); margin: 56px auto 86px; }
[data-theme="simple"] body.is-listening .orb-wrap { margin-bottom: 30px; }
[data-theme="simple"] .torus-hero { display: block; position: absolute; inset: 0; pointer-events: none; }
[data-theme="simple"] .torus-hero svg { display: block; width: 100%; height: 100%; animation: md-turn 120s linear infinite; }
[data-theme="simple"] .torus-heart { display: none; }
[data-theme="simple"] .torus-hero svg:not(.t-line) { display: none; }
[data-theme="simple"] .torus-hero .t-line { color: var(--fg); opacity: 0.5; transition: opacity 0.8s; }
[data-theme="simple"] .is-listening .torus-hero .t-line { opacity: 0.8; }
[data-theme="simple"] button.orb { background: transparent; box-shadow: none; }
[data-theme="simple"] .orb-ring, [data-theme="simple"] .onair { display: none !important; }
[data-theme="simple"] .orb-core { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 26px; white-space: nowrap; }
[data-theme="simple"] .orb-label { font-size: 1rem; font-weight: 500; letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase; color: var(--fg); }
[data-theme="simple"] .orb-sub { display: none; }
@media (hover: hover) { [data-theme="simple"] button.orb:hover { box-shadow: none; } [data-theme="simple"] button.orb:hover .t-line { opacity: 0.8; } }
/* status */
[data-theme="simple"] .status { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
[data-theme="simple"] .status.live { color: var(--fg); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.4em; text-indent: 0.4em; text-shadow: none; }
[data-theme="simple"] .status .dot { width: 6px; height: 6px; box-shadow: none; }
[data-theme="simple"] .status.live .dot { color: var(--accent); }
/* buttons: one solid, the rest quiet */
[data-theme="simple"] button { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em; border-radius: 12px; box-shadow: none; background: var(--fg); color: var(--bg); padding: 15px 22px; }
[data-theme="simple"] .cta { margin: 22px 0 6px; }
[data-theme="simple"] .cta.glow { background: var(--fg); -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-theme="simple"] .cta.glow::before { display: none; }
[data-theme="simple"] .cta.glow span { background: none; color: var(--bg); -webkit-background-clip: border-box; background-clip: border-box; }
[data-theme="simple"] #watchBtn.cta.glow { background: transparent; border: 1px solid var(--line); margin-top: 0; }
[data-theme="simple"] #watchBtn.cta.glow span { color: var(--fg); }
[data-theme="simple"] button.secondary, [data-theme="simple"] button.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg); -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-theme="simple"] #leave { border: 0; color: var(--muted); font-size: 0.8rem; padding: 12px; margin-top: 4px; }
[data-theme="simple"] #unmute { background: var(--accent); }
/* sound settings: a plain list under a hairline */
[data-theme="simple"] .glass { border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-theme="simple"] .sound { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 2px; margin: 10px 0 0; }
[data-theme="simple"] .sound summary { font-weight: 500; font-size: 0.85rem; padding: 14px 0; justify-content: space-between; }
[data-theme="simple"] .sound summary::before { display: none; }
[data-theme="simple"] .sound summary::after { content: '+'; color: var(--muted); }
[data-theme="simple"] .sound[open] summary::after { content: '−'; }
[data-theme="simple"] .sound summary small { margin-right: auto; font-weight: 400; }
[data-theme="simple"] .slider label { font-size: 0.85rem; color: var(--muted); }
[data-theme="simple"] input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line); opacity: 1; }
[data-theme="simple"] input[type=range]::-moz-range-track { height: 2px; background: var(--line); }
[data-theme="simple"] input[type=range]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -7px; background: var(--fg); box-shadow: none; }
[data-theme="simple"] input[type=range]::-moz-range-thumb { width: 16px; height: 16px; background: var(--fg); box-shadow: none; }
[data-theme="simple"] .chips button { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 9px 8px; font-size: 0.78rem; border-radius: 999px; }
[data-theme="simple"] .chips button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: none; }
[data-theme="simple"] #soundReset { border: 0; color: var(--muted); padding: 8px 0; font-size: 0.78rem; }
/* stage video */
[data-theme="simple"] .video-card { border-radius: 12px; box-shadow: none; border: 1px solid var(--line); }
[data-theme="simple"] #visuals .viz-layers button.on, [data-theme="simple"] #visuals button.viz-done { background: var(--fg); color: var(--bg); }
/* small print */
[data-theme="simple"] .tip { font-size: 0.75rem; color: var(--muted); }
[data-theme="simple"] body.is-listening footer.tip { display: none; }
[data-theme="simple"] input:focus-visible, [data-theme="simple"] button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
[data-theme="simple"] .kicker { display: none; }
[data-theme="simple"] .tip-hp { display: none; }
[data-theme="simple"] .meter span { background: var(--accent); box-shadow: none; }
[data-theme="simple"] .meter span.hot { background: #e5484d; box-shadow: none; }
