:root {
  --cream: #fdf5e3;
  --deep-brown: #2f2013;
  --rich-brown: #593321;
  --forest: #116b5a;
  --sunset: #c74c2b;
  --gold: #efb132;
  --text-dark: #0f4439;
  --text-muted: #6a5644;
  --radius-xl: 48px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --shadow-soft: 0 20px 50px rgba(15, 68, 57, 0.18);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
}

.page {
  padding: 32px 20px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.nav-brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sunset);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.3rem;
  padding: 4px 6px;
  line-height: 1;
}

.home-link,
.sign-out-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.home-link:hover,
.sign-out-link:hover {
  color: var(--sunset);
}

@media (max-width: 480px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: var(--deep-brown);
    border-radius: 10px;
    padding: 14px 18px 16px;
    z-index: 200;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
}

.hero {
  background: linear-gradient(150deg, var(--deep-brown), var(--rich-brown));
  border-radius: var(--radius-xl);
  padding: 32px 32px 40px;
  display: grid;
  gap: 32px;
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: var(--gold);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  margin: 0;
  color: var(--gold);
}

.subcopy {
  margin: 0;
  color: var(--cream);
  opacity: 0.9;
  line-height: 1.6;
}

.cta {
  border: none;
  align-self: flex-start;
  background: var(--sunset);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 12px 24px rgba(199, 76, 43, 0.3);
}

.cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.cta:hover {
  transform: translateY(-2px);
}

.cta-text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.cta-label,
.cta-status {
  white-space: nowrap;
}

.cta.is-playing {
  background: var(--forest);
}

.cta.is-loading {
  opacity: 0.85;
}

.cta-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: cta-spin 0.7s linear infinite;
}

.cta.is-loading .cta-spinner {
  display: block;
}

@keyframes cta-spin {
  to { transform: rotate(360deg); }
}

.cta:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.cta-status {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.listen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ── 128k / 320k switch (320 is members-only; visitors see a lock) ── */

.quality-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(253, 245, 227, 0.2);
}

.quality-btn {
  border: none;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  color: rgba(253, 245, 227, 0.75);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.quality-btn:hover {
  color: var(--cream);
}

.quality-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--deep-brown);
}

.quality-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.quality-lock {
  margin-right: 4px;
}


.hero-media {
  display: grid;
  gap: 20px;
}

.brand-mark {
  width: min(320px, 70vw);
  justify-self: end;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--cream);
}

.now-playing {
  background: var(--cream);
  color: var(--deep-brown);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
}

.now-playing .eyebrow {
  color: var(--text-dark);
  letter-spacing: 0.2em;
}

.now-playing .track {
  margin: 8px 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
}

.now-playing .meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.np-progress-wrap {
  margin-top: 12px;
}

.np-progress-track {
  height: 3px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.np-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--forest);
  border-radius: 2px;
  transition: width 1s linear;
}

.np-progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.np-up-next {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.np-up-next::before {
  content: "Up next: ";
  font-weight: 600;
  color: var(--text-dark);
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.volume-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--forest);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--forest);
  cursor: pointer;
  border: none;
}

.flow {
  display: none;
}

@media (min-width: 900px) {
  .page {
    padding: 40px 40px 120px;
  }

  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 48px 56px;
  }

  .hero-media {
    justify-items: end;
  }

  .now-playing {
    width: min(420px, 100%);
  }

}

@media (max-width: 899px) {
  .volume-row { display: none; }

  .hero {
    justify-items: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-media {
    justify-items: center;
  }

  .cta {
    align-self: center;
  }

  .cta,
  .brand-mark,
  .now-playing {
    width: min(320px, 70vw);
  }

  .brand-mark,
  .now-playing {
    justify-self: center;
  }

  .chat-panel {
    padding: 20px 16px 16px;
    border-radius: var(--radius-lg);
  }

  .chat-messages {
    height: 220px;
    padding: 12px;
  }
}

/* ── Video ────────────────────────────────────────────────────────────────── */

.video-panel {
  margin-top: 24px;
  background: linear-gradient(150deg, var(--deep-brown), var(--rich-brown));
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--cream);
}

.live-video {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #000;
  max-height: 540px;
  object-fit: contain;
}

/* ── Weekly Schedule ──────────────────────────────────────────────────────── */

.schedule-panel {
  margin-top: 24px;
  background: linear-gradient(150deg, var(--deep-brown), var(--rich-brown));
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--cream);
}

.schedule-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}

.schedule-day {
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.schedule-day-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  border-left: 3px solid transparent;
}

.schedule-item--now {
  background: rgba(239,177,50,0.14);
  border-left-color: var(--gold);
}

.schedule-time {
  font-size: 0.78rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.schedule-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.schedule-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.schedule-badge--now  { background: var(--gold);   color: var(--deep-brown); }
.schedule-badge--live { background: var(--sunset); color: var(--cream); }

@media (max-width: 480px) {
  .schedule-panel { padding: 20px 16px 16px; border-radius: var(--radius-lg); }
}

/* ── Latest Mix ───────────────────────────────────────────────────────────── */

.latest-mix-panel {
  margin-top: 24px;
  background: linear-gradient(150deg, var(--deep-brown), var(--rich-brown));
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--cream);
}

.mix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mix-item {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mix-item:hover {
  background: rgba(255,255,255,0.16);
}

.mix-item--active {
  background: var(--gold);
  color: var(--deep-brown);
  font-weight: 600;
}

.mix-video-wrap {
  position: relative;
}

.mix-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0,0,0,0.6);
  border-radius: var(--radius-lg);
  color: var(--cream);
  pointer-events: none;
}

.mix-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: mix-spin 0.8s linear infinite;
}

@keyframes mix-spin {
  to { transform: rotate(360deg); }
}

.mix-loading-text {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.latest-mix-video {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #000;
  max-height: 540px;
  object-fit: contain;
}

/* ── Chat ─────────────────────────────────────────────────────────────────── */

.chat-panel {
  margin-top: 24px;
  background: linear-gradient(150deg, var(--deep-brown), var(--rich-brown));
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--cream);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-clear-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 12px;
  color: rgba(253, 245, 227, 0.5);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.chat-clear-btn:hover {
  color: var(--sunset);
  border-color: var(--sunset);
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 300ms ease;
  flex-shrink: 0;
}

.chat-dot[data-state="connected"] { background: #4ade80; }
.chat-dot[data-state="connecting"] { background: var(--gold); }
.chat-dot[data-state="disconnected"] { background: var(--sunset); }

.chat-messages {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-messages:empty::before {
  content: "No messages yet. Be the first!";
  font-size: 0.85rem;
  color: rgba(253, 245, 227, 0.4);
  text-align: center;
  margin: auto;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.chat-msg-user {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.chat-msg--mine .chat-msg-user {
  color: #4ade80;
}

.chat-msg-time {
  font-size: 0.7rem;
  color: rgba(253, 245, 227, 0.4);
  white-space: nowrap;
}

.chat-msg-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--cream);
  word-break: break-word;
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--cream);
  font: inherit;
  font-size: 1rem; /* ≥16px prevents iOS auto-zoom */
  outline: none;
  transition: border-color 200ms ease;
}

.chat-input::placeholder {
  color: rgba(253, 245, 227, 0.4);
}

.chat-input:focus {
  border-color: var(--gold);
}

.chat-send {
  background: var(--forest);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  min-width: 44px;
  color: var(--cream);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: translateY(-1px);
}

.chat-send:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}


/* ── Member gate (shown in place of chat/mixes for visitors without access) ── */

.member-gate {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border: 1.5px dashed rgba(253, 245, 227, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.member-gate-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(253, 245, 227, 0.85);
}

.member-gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.member-gate-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms ease;
}

.member-gate-btn:hover {
  transform: translateY(-1px);
}

.member-gate-btn:focus-visible,
.member-gate-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.member-gate-link {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.member-gate-link:hover {
  text-decoration: underline;
}

/* ── Light overlay ────────────────────────────────────────────────────────── */

#light-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.light-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Strobe — single white flash */
@keyframes strobe {
  0%   { background: rgba(255,255,255,0);    }
  15%  { background: rgba(255,255,255,0.78); }
  100% { background: rgba(255,255,255,0);    }
}
.effect-strobe { animation: strobe 0.5s ease-out forwards; }

/* Lazer — beam sweeps in a random direction, color set via custom property */
@keyframes lazer-sweep-lr { from { transform: translateX(-110%); opacity: 1; } 80% { transform: translateX( 110%); opacity: 1; } to { transform: translateX( 110%); opacity: 0; } }
@keyframes lazer-sweep-rl { from { transform: translateX( 110%); opacity: 1; } 80% { transform: translateX(-110%); opacity: 1; } to { transform: translateX(-110%); opacity: 0; } }
@keyframes lazer-sweep-tb { from { transform: translateY(-110%); opacity: 1; } 80% { transform: translateY( 110%); opacity: 1; } to { transform: translateY( 110%); opacity: 0; } }
@keyframes lazer-sweep-bt { from { transform: translateY( 110%); opacity: 1; } 80% { transform: translateY(-110%); opacity: 1; } to { transform: translateY(-110%); opacity: 0; } }

.effect-lazer-red   { --lazer-color: rgba(255,  30,  30, 0.9); }
.effect-lazer-green { --lazer-color: rgba( 50, 220,  80, 0.9); }
.effect-lazer-blue  { --lazer-color: rgba( 30, 120, 255, 0.9); }

.dir-lr { animation: lazer-sweep-lr 0.65s ease-in-out forwards; background: linear-gradient(108deg, transparent 47%, var(--lazer-color) 50%, transparent 53%); }
.dir-rl { animation: lazer-sweep-rl 0.65s ease-in-out forwards; background: linear-gradient( 72deg, transparent 47%, var(--lazer-color) 50%, transparent 53%); }
.dir-tb { animation: lazer-sweep-tb 0.65s ease-in-out forwards; background: linear-gradient(180deg, transparent 47%, var(--lazer-color) 50%, transparent 53%); }
.dir-bt { animation: lazer-sweep-bt 0.65s ease-in-out forwards; background: linear-gradient(  0deg, transparent 47%, var(--lazer-color) 50%, transparent 53%); }

/* Flood — full-screen color wash that fades in then out */
@keyframes flood {
  0%   { opacity: 0;    }
  25%  { opacity: 0.32; }
  100% { opacity: 0;    }
}

.effect-flood-white,
.effect-flood-red,
.effect-flood-blue {
  animation: flood 5s ease-out forwards;
}

.effect-flood-white { background: #ffffff; }
.effect-flood-red   { background: #ff1a1a; }
.effect-flood-blue  { background: #1a6fff; }

/* ── Lights panel ─────────────────────────────────────────────────────────── */

.lights-panel {
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 8px;
}

.lights-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lights-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lights-summary::-webkit-details-marker { display: none; }

.lights-tagline {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.55;
  font-style: italic;
}

.lights-chevron {
  font-size: 1rem;
  transition: transform 200ms ease;
  margin-left: -4px;
}

.lights-details[open] .lights-chevron {
  transform: rotate(180deg);
}

.lights-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.lights-subtext {
  font-size: 0.75rem;
  color: rgba(253, 245, 227, 0.45);
  letter-spacing: 0.04em;
}

.lights-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}

.light-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  flex: 1;
  min-width: 80px;
}

.light-btn:hover { transform: translateY(-2px); }
.light-btn:active { transform: scale(0.96); }
.light-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.light-btn--strobe       { background: #e8e8e8; color: #111; box-shadow: 0 4px 12px rgba(255,255,255,0.15); }
.light-btn--bass-pulse   { background: #b87d00; color: #fff; box-shadow: 0 4px 12px rgba(184,125,0,0.4); }
.light-btn--confetti     { background: linear-gradient(135deg,#ff4444,#ffcc00,#44cc44,#4488ff,#cc44ff); color: #fff; box-shadow: 0 4px 12px rgba(100,100,200,0.3); }
.light-btn--lazer-red    { background: #c0182a; color: #fff; box-shadow: 0 4px 12px rgba(192,24,42,0.35); }
.light-btn--lazer-green  { background: #1a8c3a; color: #fff; box-shadow: 0 4px 12px rgba(26,140,58,0.35); }
.light-btn--lazer-blue   { background: #1050c8; color: #fff; box-shadow: 0 4px 12px rgba(16,80,200,0.35); }
.light-btn--scanner-red  { background: #7a0f1a; color: #fff; box-shadow: 0 4px 12px rgba(122,15,26,0.35); }
.light-btn--scanner-green{ background: #0f5c27; color: #fff; box-shadow: 0 4px 12px rgba(15,92,39,0.35); }
.light-btn--scanner-blue { background: #0a3490; color: #fff; box-shadow: 0 4px 12px rgba(10,52,144,0.35); }
.light-btn--flood-white  { background: #d4d4d4; color: #111; box-shadow: 0 4px 12px rgba(255,255,255,0.1); }
.light-btn--flood-red    { background: #8c1015; color: #fff; box-shadow: 0 4px 12px rgba(140,16,21,0.35); }
.light-btn--flood-blue   { background: #0a3080; color: #fff; box-shadow: 0 4px 12px rgba(10,48,128,0.35); }
.light-btn--spotlight    { background: #888; color: #fff; box-shadow: 0 4px 12px rgba(255,255,255,0.1); }
.light-btn--color-cycle  { background: linear-gradient(135deg,#ff2244,#8800ff,#0066ff,#00cc66); color: #fff; box-shadow: 0 4px 12px rgba(100,0,200,0.3); }
.light-btn--clear-lights { background: rgba(255,255,255,0.1); color: rgba(253,245,227,0.6); border: 1px solid rgba(255,255,255,0.2); box-shadow: none; }
.light-btn--blackout     { background: #111; color: #aaa; border: 1px solid #333; box-shadow: none; width: 100%; }

/* ── Lights toast ─────────────────────────────────────────────────────────── */

#lights-toast {
  font-size: 0.72rem;
  color: rgba(253, 245, 227, 0.5);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: auto;
}
#lights-toast.visible { opacity: 1; }

/* ── Bass pulse ───────────────────────────────────────────────────────────── */

@keyframes bass-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.1); opacity: 0.9; }
  60%  { transform: translate(-50%, -50%) scale(3);   opacity: 0.45; }
  100% { transform: translate(-50%, -50%) scale(6);   opacity: 0; }
}
.effect-bass-pulse::before {
  content: '';
  position: absolute;
  width: 30vmin;
  height: 30vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,50,0.85) 0%, rgba(255,130,0,0.5) 50%, transparent 80%);
  top: 50%;
  left: 50%;
  animation: bass-pulse 0.55s ease-out forwards;
}

/* ── Scanner — bounces back and forth ─────────────────────────────────────── */

@keyframes scanner-sweep {
  from { transform: translateX(-110%); }
  to   { transform: translateX( 110%); }
}
.effect-scanner-red,
.effect-scanner-green,
.effect-scanner-blue { animation: scanner-sweep 0.4s ease-in-out 8 alternate forwards; }

.effect-scanner-red   { --lazer-color: rgba(255,  30,  30, 0.9); background: linear-gradient(108deg, transparent 47%, var(--lazer-color) 50%, transparent 53%); }
.effect-scanner-green { --lazer-color: rgba( 50, 220,  80, 0.9); background: linear-gradient(108deg, transparent 47%, var(--lazer-color) 50%, transparent 53%); }
.effect-scanner-blue  { --lazer-color: rgba( 30, 120, 255, 0.9); background: linear-gradient(108deg, transparent 47%, var(--lazer-color) 50%, transparent 53%); }

/* ── Spotlight ────────────────────────────────────────────────────────────── */

@keyframes spotlight-fade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes spotlight-drift {
  0%   { transform: translate(-80%, -60%); }
  20%  { transform: translate( 50%, -50%); }
  45%  { transform: translate( 70%,  30%); }
  65%  { transform: translate(-40%,  60%); }
  82%  { transform: translate(-30%, -15%); }
  100% { transform: translate(-80%, -60%); }
}
.effect-spotlight {
  background: rgba(0, 0, 0, 0.55);
  animation: spotlight-fade 12s ease forwards;
}
.effect-spotlight::before {
  content: '';
  position: absolute;
  width: 35vmin;
  height: 35vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,230,0.85) 0%, rgba(255,255,180,0.35) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  animation: spotlight-drift 10s ease-in-out infinite;
}

/* ── Color cycle ──────────────────────────────────────────────────────────── */

@keyframes color-cycle {
  0%   { background: rgba(255,   0,   0, 0.22); }
  16%  { background: rgba(255, 165,   0, 0.22); }
  33%  { background: rgba(255, 255,   0, 0.22); }
  50%  { background: rgba(  0, 220,   0, 0.22); }
  66%  { background: rgba(  0,  80, 255, 0.22); }
  83%  { background: rgba(148,   0, 211, 0.22); }
  100% { background: rgba(255,   0,   0, 0.22); }
}
.effect-color-cycle { animation: color-cycle 6s linear infinite; }

/* ── Blackout ─────────────────────────────────────────────────────────────── */

@keyframes blackout {
  0%   { background: rgba(0,0,0,0); }
  3%   { background: rgba(0,0,0,1); }
  90%  { background: rgba(0,0,0,1); }
  100% { background: rgba(0,0,0,0); }
}
.effect-blackout { animation: blackout 3s ease-out forwards; }

/* ── Confetti ─────────────────────────────────────────────────────────────── */

@keyframes confetti-fall {
  from { transform: translateY(0)     rotate(0deg)   scaleX(1);   opacity: 1; }
  to   { transform: translateY(105vh) rotate(720deg) scaleX(0.4); opacity: 0; }
}
.confetti-particle {
  position: absolute;
  top: -12px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
