/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg:           #080c18;
  --bg-elevated:  #0f1523;
  --bg-card:      #131b2e;
  --bg-card-hover:#19243d;
  --text:         #e8e3db;
  --text-muted:   #6b7585;
  --text-faint:   #2e3a50;
  --accent:       #c4a882;
  --accent-dim:   #8b7355;
  --glow:         rgba(196,168,130,0.12);
  --glow-strong:  rgba(196,168,130,0.28);
  --border:       rgba(255,255,255,0.05);
  --border-accent:rgba(196,168,130,0.35);
  --radius:       14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

/* ── Typography helpers ─────────────────────────────────────────────────────── */
.serif { font-family: var(--serif); }

/* ── Nav ────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(8,12,24,0.95) 0%, transparent 100%);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-link, .nav-back {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover, .nav-back:hover { color: var(--text); }

.nav-app { background: transparent; }

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  opacity: 0.85;
}

/* ── Orb / breathing circle ─────────────────────────────────────────────────── */
@keyframes breathe {
  0%, 100% {
    transform: scale(0.88);
    opacity: 0.22;
    box-shadow: 0 0 40px var(--glow);
  }
  50% {
    transform: scale(1.0);
    opacity: 0.45;
    box-shadow: 0 0 90px var(--glow-strong);
  }
}

@keyframes breathe-playing {
  0%, 100% {
    transform: scale(0.82);
    opacity: 0.30;
    box-shadow: 0 0 60px var(--glow-strong);
  }
  50% {
    transform: scale(1.06);
    opacity: 0.60;
    box-shadow: 0 0 120px var(--glow-strong), 0 0 200px rgba(196,168,130,0.10);
  }
}

.orb, .player-orb {
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: breathe 8s ease-in-out infinite;
  flex-shrink: 0;
}

.orb { width: 140px; height: 140px; }
.orb-large { width: 180px; height: 180px; }

.orb-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.player-orb {
  width: 220px;
  height: 220px;
  margin-bottom: 2.5rem;
}

.player-orb.playing {
  animation: breathe-playing 8s ease-in-out infinite;
}

/* ── Home page ──────────────────────────────────────────────────────────────── */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}

.greeting {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.home-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.home-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

/* ── Default meditation cards ───────────────────────────────────────────────── */
.default-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.default-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 130px;
  color: var(--text);
}

.default-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 30px var(--glow);
  transform: translateY(-2px);
}

.default-card.active {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 40px var(--glow-strong);
}

.card-icon {
  font-size: 1.4rem;
  opacity: 0.7;
  line-height: 1;
}

.card-label {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.home-cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

.link-accent { color: var(--accent); transition: opacity 0.2s; }
.link-accent:hover { opacity: 0.75; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: 40px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--glow);
  box-shadow: 0 0 30px var(--glow-strong);
  transform: translateY(-1px);
}

.btn-begin {
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: 40px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-top: 2rem;
}
.btn-begin:hover {
  background: var(--glow);
  box-shadow: 0 0 40px var(--glow-strong);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 2rem;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--text); }

.btn-play-pause {
  background: none;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.btn-play-pause:hover {
  background: var(--glow);
  transform: translateY(-2px);
}

/* ── Player overlay (home page guest player) ────────────────────────────────── */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,12,24,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.player-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  max-width: 480px;
  width: 100%;
}

.player-close {
  position: absolute;
  top: -1rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}
.player-close:hover { color: var(--text); }

/* ── App page ────────────────────────────────────────────────────────────────── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Question flow ───────────────────────────────────────────────────────────── */
.question-view, .center-view, .player-view {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.question-wrap {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Progress dots */
.dots-row {
  display: flex;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: all 0.3s var(--ease);
}
.dot.done { background: var(--accent-dim); }
.dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow-strong);
  transform: scale(1.3);
}

.question-slide {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.question-text {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.25;
  color: var(--text);
}

/* Choice grid */
.choices-grid {
  width: 100%;
  display: grid;
  gap: 0.75rem;
}
.choices-grid.grid-1 { grid-template-columns: 1fr; }
.choices-grid.grid-2 { grid-template-columns: 1fr 1fr; }

.choice-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text);
  transition: all 0.25s var(--ease);
}

.choice-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px var(--glow);
}

.choice-btn.selected {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 28px var(--glow-strong);
}

.choice-label {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.choice-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

.choice-btn.selected .choice-label { color: var(--accent); }
.choice-btn.selected .choice-desc  { color: var(--accent-dim); }

/* ── Generating view ─────────────────────────────────────────────────────────── */
.center-view {
  flex-direction: column;
  gap: 0;
}

.gen-label, .ready-title, .player-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.gen-sub, .ready-meta, .player-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Animated ellipsis */
@keyframes ellipsis {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}
.dots::after {
  content: '';
  animation: ellipsis 1.5s steps(1) infinite;
}

/* ── Player view ─────────────────────────────────────────────────────────────── */
.player-view {
  flex-direction: column;
  text-align: center;
}

/* ── Progress bar ────────────────────────────────────────────────────────────── */
.player-controls {
  width: 100%;
  max-width: 380px;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.progress-bar {
  height: 2px;
  background: var(--text-faint);
  border-radius: 1px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.5s linear;
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ── Player generating (home overlay) ────────────────────────────────────────── */
.player-generating {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 1.5rem;
  letter-spacing: 0.04em;
}

/* ── Error ───────────────────────────────────────────────────────────────────── */
.error-msg {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── Modal ───────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8,12,24,0.85);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 301;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.4rem; margin: 0; }
.modal-body { color: var(--text-muted); font-size: 0.95rem; margin: 0; line-height: 1.5; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .default-cards { gap: 0.75rem; }
  .default-card { min-width: 100px; padding: 1.25rem 1.25rem; }
  .choices-grid.grid-2 { grid-template-columns: 1fr; }
  .nav { padding: 1rem 1.25rem; }
}

/* ── WebGL orb canvas — overrides CSS border & animation from .orb / .player-orb */
canvas[data-orb] {
  border: none;
  border-radius: 0;
  animation: none;
  background: transparent;
  display: block;
}

/* ── Alpine cloak ────────────────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Hamburger button ────────────────────────────────────────────────────────── */
.hamburger-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  transition: color 0.2s;
}
.hamburger-btn:hover { color: var(--text); }

/* ── Menu backdrop ───────────────────────────────────────────────────────────── */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(4px);
}

/* ── Menu panel ──────────────────────────────────────────────────────────────── */
.menu-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 151;
  width: min(340px, 90vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Hidden state */
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s var(--ease), visibility 0s linear 0s;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  flex-shrink: 0;
}

.menu-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 400;
}

.menu-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
  line-height: 1;
}
.menu-close-btn:hover { color: var(--text); }

.menu-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1.5rem 1.25rem;
}

.menu-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  flex-shrink: 0;
}

.menu-user-info { min-width: 0; }

.menu-user-name {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-user-email {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.menu-section {
  padding: 1.1rem 1.5rem;
}

.menu-section-title {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.menu-placeholder {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── History list ────────────────────────────────────────────────────────────── */
.menu-history {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.menu-history-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  transition: background 0.18s;
}
.menu-history-item:hover   { background: var(--bg-card); }
.menu-history-item.is-active { background: var(--bg-card); }

.menu-history-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.menu-history-title {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-history-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.menu-play-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.menu-play-btn:hover   { border-color: var(--accent); color: var(--accent); }
.menu-play-btn.playing { border-color: var(--accent); color: var(--accent); }
.menu-play-btn:disabled { opacity: 0.25; cursor: not-allowed; }

/* ── Mini player ─────────────────────────────────────────────────────────────── */
.menu-mini-player {
  margin-top: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: var(--bg-card);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.menu-mini-title {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 300;
}

/* ── Subscription ────────────────────────────────────────────────────────────── */
.menu-sub-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.7rem;
}

.menu-text-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding: 0;
  display: block;
}

.menu-cancel-btn { color: var(--text-muted); transition: color 0.2s; }
.menu-cancel-btn:hover { color: #e57373; }

.menu-upgrade-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.menu-upgrade-btn:hover:not(:disabled) {
  background: var(--glow);
  transform: translateY(-1px);
}
.menu-upgrade-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Upgrade success page ────────────────────────────────────────────────────── */
.center-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.success-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.success-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.success-sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 360px;
  line-height: 1.65;
}

/* ── Sign out ────────────────────────────────────────────────────────────────── */
.menu-logout-btn {
  display: block;
  font-size: 0.83rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.menu-logout-btn:hover { color: var(--text); }

/* ── Cookie banner ───────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(480px, calc(100vw - 2rem));
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.cookie-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 300;
  flex: 1;
  line-height: 1.55;
}

.cookie-accept {
  background: none;
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  padding: 0.4rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--glow); }

/* ── Buffering indicator ─────────────────────────────────────────────────────── */
.buffering-indicator {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 300;
}

/* ── Volume controls ─────────────────────────────────────────────────────────── */
.vol-controls {
  width: 100%;
  max-width: 320px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vol-row {
  display: grid;
  grid-template-columns: 72px 1fr 30px;
  align-items: center;
  gap: 0.75rem;
}

.vol-label {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: right;
}

.vol-value {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 300;
  text-align: left;
}

/* Range slider — cross-browser */
.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--text-faint);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.vol-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 8px var(--glow-strong);
}

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

.vol-slider::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--accent-dim) 0%,
    var(--accent-dim) calc(var(--val, 50) * 1%),
    var(--text-faint) calc(var(--val, 50) * 1%),
    var(--text-faint) 100%
  );
  height: 2px;
  border-radius: 1px;
}

/* ── Modal ───────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}
.modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.modal-title { font-size: 1.4rem; margin-bottom: 0.75rem; }
.modal-body  { color: var(--text-dim); line-height: 1.6; margin-bottom: 1.5rem; }
.modal-body strong { color: var(--text); }
.modal-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }

/* ── Locked choice ───────────────────────────────────────────────────────────── */
.choice-btn.locked { opacity: 0.6; }
.choice-lock { font-size: 0.85rem; margin-left: 0.3rem; }
