/* The Deep Spiral (v1.153). The choosing screen sits in the usual experience card; the spiral and
   the still screen fill the window, so there's nothing beside them to look at. */

.dwx-app .dsp-card { display: flex; flex-direction: column; }
.dwx-app .dsp-eyebrow { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--dwx-lav); margin: 0 0 12px; }
.dwx-app .dsp-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; margin: 26px 0 4px; }
.dwx-app .dsp-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.dwx-app .dsp-field legend { padding: 0; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--dwx-lav); }
.dwx-app .dsp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dwx-app .dsp-hint { margin: 8px 0 0; min-height: 1.2em; }
/* v1.154: the lengths beyond the free minute are shown and plainly locked, never hidden away. */
.dwx-app .dsp-chips .is-locked {
  cursor: default;
  opacity: .55;
  border-style: dashed;
  color: var(--dwx-muted);
}
.dwx-app .dsp-chips .is-locked:hover { border-color: var(--dwx-line-strong); }
.dwx-app .dsp-lock { font-size: 12px; line-height: 1; }
.dwx-app .dwx-link {
  padding: 0; border: 0; background: none; color: var(--dwx-gold);
  font: inherit; text-decoration: underline; cursor: pointer;
}
.dwx-app .dsp-see { margin-left: 2px; }
.dwx-app .dsp-free, .dwx-app .dsp-unlocked { margin-top: 18px; max-width: 62ch; }
.dwx-app .dsp-unlocked { color: var(--dwx-gold); }
.dwx-app .dsp-offer { margin-top: 24px; }
.dwx-app .dsp-slider { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; color: var(--dwx-muted); }
.dwx-app .dsp-slider > span { flex: none; min-width: 7.5em; }
.dwx-app .dsp-slider input[type="range"] { flex: 1; min-width: 90px; accent-color: var(--dwx-gold); }
.dwx-app .dsp-slider output { flex: none; min-width: 3em; text-align: right; font-variant-numeric: tabular-nums; color: var(--dwx-ink); }

.dwx-app .dsp-steps { margin: 22px 0 0; padding: 0 0 0 20px; color: var(--dwx-muted); max-width: 62ch; }
.dwx-app .dsp-steps li { margin: 0 0 6px; }
.dwx-app .dsp-care { margin-top: 20px; }

/* The full-window stages. The page behind them is held still while they're open. */
html.dsp-open, html.dsp-open body { overflow: hidden; }
.dsp-over {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: #010F2A;
  color: #EDE4D3;
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color-scheme: dark;
}
.dsp-over *, .dsp-over *::before, .dsp-over *::after { box-sizing: border-box; }
.dsp-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.dsp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.dsp-cue {
  position: absolute;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 640px);
  margin: 0;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(1, 15, 42, .86);
  color: #F0E0C8;
  font-family: "Cormorant", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.dsp-cue.is-in { opacity: 1; }

.dsp-ring {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(1, 15, 42, .8);
}
.dsp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.dsp-ring circle { fill: none; stroke-width: 3; }
.dsp-ring__bg { stroke: rgba(237, 228, 211, .25); }
.dsp-ring__fg { stroke: #D9B98A; stroke-linecap: round; }
.dsp-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: #F0E0C8; }

.dsp-pill {
  position: absolute;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(237, 228, 211, .5);
  border-radius: 999px;
  background: rgba(1, 15, 42, .8);
  color: #F0E0C8;
  font: 600 .9rem/1 "Karla", system-ui, sans-serif;
  cursor: pointer;
}
.dsp-pill:hover { border-color: #D9B98A; }
.dsp-pill:focus-visible { outline: 2px solid #D9B98A; outline-offset: 2px; }
.dsp-stop { top: calc(16px + env(safe-area-inset-top)); left: 16px; }
.dsp-sound { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.dsp-sound[aria-pressed="false"] { opacity: .72; }

/* The still screen: fine, even lines for the after-image to move across. */
.dsp-grid {
  position: absolute;
  inset: -4%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(237, 228, 211, .16) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(237, 228, 211, .05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(237, 228, 211, .05) 0 1px, transparent 1px 44px),
    #010F2A;
}
.dsp-settle {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}
.dsp-settle .dsp-eyebrow { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-size: 12.5px; color: #B6A4CE; margin: 0 0 10px; }
.dsp-settle .dwx-row, .dsp-settle .dwx-row { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dsp-after-line, .dsp-settle .dsp-h {
  min-height: 4.4em;
  margin: 0;
  font-family: "Cormorant", "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.28;
  color: #F0E0C8;
}
.dsp-after-line { opacity: 0; transition: opacity 1.2s ease; }
.dsp-after-line.is-in { opacity: 1; }
.dsp-settle .dwx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(237, 228, 211, .5); background: transparent; color: #F0E0C8;
  font: 600 1rem/1 "Karla", system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.dsp-settle .dwx-btn-primary { background: #D9B98A; border-color: #D9B98A; color: #010F2A; }

@media (prefers-reduced-motion: reduce) {
  .dsp-cue, .dsp-after-line { transition: none; }
}
