:root {
  --bg: #0d0c10;
  --ink: #ece6da;
  --ink-soft: #b9b2a5;
  --ink-faint: #7a7469;
  --line: rgba(236, 230, 218, 0.14);
  --line-strong: rgba(236, 230, 218, 0.32);
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.07);
  --accent: #d9b98c;
  --tint-a: rgba(120, 90, 170, 0.35);
  --tint-b: rgba(40, 70, 120, 0.3);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-vibe="drive"] { --tint-a: rgba(70, 60, 160, 0.45); --tint-b: rgba(200, 120, 60, 0.18); --accent: #e0a96d; }
body[data-vibe="rain"] { --tint-a: rgba(60, 100, 130, 0.45); --tint-b: rgba(90, 110, 150, 0.3); --accent: #9cc3d9; }
body[data-vibe="sunday"] { --tint-a: rgba(200, 150, 80, 0.32); --tint-b: rgba(210, 120, 110, 0.22); --accent: #f0c98a; }
body[data-vibe="neon"] { --tint-a: rgba(200, 50, 150, 0.35); --tint-b: rgba(40, 180, 200, 0.25); --accent: #ff8fcf; }
body[data-vibe="techno"] { --tint-a: rgba(90, 60, 220, 0.38); --tint-b: rgba(40, 200, 200, 0.2); --accent: #a99bff; }
body[data-vibe="metal"] { --tint-a: rgba(200, 30, 30, 0.34); --tint-b: rgba(90, 90, 110, 0.3); --accent: #ff5a4e; }
body[data-vibe="rock"] { --tint-a: rgba(200, 50, 50, 0.34); --tint-b: rgba(60, 60, 80, 0.3); --accent: #ff7a5c; }
body[data-vibe="hindi"] { --tint-a: rgba(230, 120, 30, 0.34); --tint-b: rgba(190, 40, 120, 0.26); --accent: #ffb347; }
body[data-vibe="punjabi"] { --tint-a: rgba(230, 170, 30, 0.34); --tint-b: rgba(40, 150, 90, 0.24); --accent: #ffd166; }
body[data-vibe="english"] { --tint-a: rgba(90, 120, 200, 0.36); --tint-b: rgba(200, 140, 170, 0.24); --accent: #b8c8ff; }

* { box-sizing: border-box; }

[hidden] { display: none !important; }

[tabindex="-1"]:focus { outline: none; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overflow-x: hidden;
}

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(80px);
  transition: background 2.5s ease;
}
.orb-a { background: radial-gradient(circle, var(--tint-a), transparent 65%); top: -30vmax; left: -20vmax; animation: drift-a 38s ease-in-out infinite alternate; }
.orb-b { background: radial-gradient(circle, var(--tint-b), transparent 65%); bottom: -35vmax; right: -25vmax; animation: drift-b 46s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(18vmax, 22vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-16vmax, -18vmax) scale(1.1); } }
.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(-1%, 1%); }
}

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 24px 18px;
}
.mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-size: 16px;
}
.mark:hover { color: var(--ink); }

.sound {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sound:hover { border-color: var(--line-strong); color: var(--ink); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { display: block; width: 2px; background: var(--accent); border-radius: 1px; animation: bar 1s ease-in-out infinite; }
.bars i:nth-child(1) { height: 5px; animation-delay: -0.3s; }
.bars i:nth-child(2) { height: 11px; animation-delay: -0.6s; }
.bars i:nth-child(3) { height: 7px; }
.sound[aria-pressed="true"] .bars i { animation: none; height: 2px; opacity: 0.5; }
@keyframes bar { 50% { transform: scaleY(0.35); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 4; }
.progress-fill { height: 100%; width: 0; background: var(--accent); opacity: 0.7; transition: width 0.8s var(--ease), background 2s; }

main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 72px;
  outline: none;
}

.screen {
  width: 100%;
  max-width: 660px;
  animation: enter 0.9s var(--ease) both;
}
.screen.leaving { animation: leave 0.45s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes leave { to { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }

.stagger > * { animation: enter 0.9s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.32s; }
.stagger > *:nth-child(6) { animation-delay: 0.4s; }
.stagger > *:nth-child(7) { animation-delay: 0.48s; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-variant: small-caps;
}

h1, h2, .question, .verdict, .title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(46px, 9vw, 84px); line-height: 1.02; }
h1 em, h2 em { color: var(--accent); }
h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; }
.question { font-size: clamp(27px, 4.8vw, 40px); line-height: 1.2; }

.lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin: 26px 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-faint); font-size: 14px; }
.meta li::before { content: "·"; margin-right: 8px; color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 40px; }

.btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}
.link:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mood {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.mood b { color: var(--accent); font-weight: 500; letter-spacing: 0.12em; }

.choices { display: grid; gap: 12px; margin-top: 34px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px 20px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
  backdrop-filter: blur(6px);
}
.choice:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateX(4px); }
.choice .key {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  color: var(--ink-faint);
  font-size: 12px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.choice[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.choice[aria-pressed="true"] .key { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.choice.chosen { border-color: var(--accent); background: rgba(255, 255, 255, 0.09); }
.choices.locked .choice:not(.chosen) { opacity: 0.25; transform: none; }
.choice.custom-toggle { color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 18px; }

.custom { margin-top: 12px; display: grid; gap: 12px; animation: enter 0.6s var(--ease) both; }
textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 15px 18px;
  resize: vertical;
}
textarea { min-height: 96px; font-family: var(--serif); font-size: 19px; }
textarea:focus, input:focus { outline: none; border-color: var(--accent); }
::placeholder { color: var(--ink-faint); }
.count { font-size: 12px; color: var(--ink-faint); text-align: right; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hint { font-size: 13px; color: var(--ink-faint); margin-top: 22px; }

.vibes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 34px; }
.vibe {
  position: relative;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  overflow: hidden;
}
.vibe:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.vibe[aria-checked="true"] { border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.vibe .name { font-family: var(--serif); font-size: 21px; display: block; }
.vibe .eq { position: absolute; top: 18px; right: 16px; display: none; }
.vibe[aria-checked="true"] .eq { display: inline-flex; }
.song { margin-top: 18px; max-width: 540px; }
.station-techno { --glow: rgba(150, 120, 255, 0.2); }
.station-metal { --glow: rgba(255, 70, 60, 0.2); }
.station-rock { --glow: rgba(255, 90, 70, 0.18); }
.station-hindi { --glow: rgba(255, 160, 50, 0.2); }
.station-punjabi { --glow: rgba(255, 210, 90, 0.2); }
.station-english { --glow: rgba(150, 170, 255, 0.2); }
.vibe::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, var(--glow, transparent), transparent 60%); opacity: 0.7; transition: opacity 0.3s; pointer-events: none; }
.vibe:hover::before, .vibe[aria-checked="true"]::before { opacity: 1; }
.vibe > * { position: relative; }
.music-picker { animation: enter 0.8s var(--ease) both; margin-top: 8px; }
.picker-title { font-size: clamp(24px, 3.6vw, 30px); margin-top: 34px; }
.picker-title + .vibes { margin-top: 20px; }
.music-status { min-height: 1.2em; margin-top: 14px; }
.actions.ask { margin-top: 36px; }

.hero-title { font-size: clamp(54px, 11vw, 104px); line-height: 0.98; letter-spacing: -0.02em; }
.name-form { margin-top: 44px; display: grid; gap: 18px; justify-items: start; max-width: 540px; }
.name-label { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); color: var(--ink-soft); }
.name-label em { color: var(--ink); }
.name-field { position: relative; width: 100%; }
.name-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); box-shadow: 0 0 18px var(--accent); }
.name-field:focus-within::after { transform: scaleX(1); }
.name-field input.name-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 64px 14px 2px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 42px);
  color: var(--ink);
  caret-color: var(--accent);
  box-shadow: none;
}
.name-field input.name-input::placeholder { color: var(--ink-faint); font-style: italic; opacity: 0.6; }
.name-go {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg, #111);
  font-size: 22px;
  cursor: pointer;
  opacity: 0.25;
  transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.name-field:has(input:not(:placeholder-shown)) .name-go { opacity: 1; transform: none; box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.name-go:hover { transform: translateX(3px); }

.now {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 28px);
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  color: var(--ink-soft);
  z-index: 5;
  animation: enter 0.6s var(--ease) both;
}
.now .bars { flex: 0 0 auto; }
.now.muted .bars i { animation: none; height: 2px; opacity: 0.5; }
.now-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.now-text b { color: var(--accent); font-weight: 500; margin-right: 4px; }
.now-skip { flex: 0 0 auto; font: inherit; font-size: 12px; color: var(--ink-faint); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.now-skip:hover { color: var(--ink); border-color: var(--line-strong); }
body:has(.now:not([hidden])) main { padding-bottom: 110px; }
body:has(.yt-dock:not([hidden])) main { padding-bottom: 280px; }
.song .song-label { display: block; font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); line-height: 1.2; color: var(--ink-soft); margin-bottom: 6px; }
.song .song-label em { color: var(--ink); }
.song input[type="text"] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 10px 2px 12px; font-family: var(--serif); font-size: 24px; color: var(--ink); caret-color: var(--accent); }
.song input[type="text"]:focus { border-bottom-color: var(--accent); }
.song input::placeholder { color: var(--ink-faint); font-style: italic; opacity: 0.6; }
.song .hint { margin-top: 8px; }
.music-ask { font-size: clamp(22px, 3.2vw, 28px); margin-top: 44px; color: var(--ink-soft); }

.echo {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 17px;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin: 0 0 28px;
}

.reflection .title { font-size: clamp(36px, 7vw, 60px); line-height: 1.08; margin-top: 6px; }
.reflection p { font-size: 19px; color: var(--ink-soft); margin: 22px 0 0; max-width: 34em; }
.reflection p.first { color: var(--ink); font-family: var(--serif); font-size: 22px; }
.keep {
  margin: 38px 0 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.keep small { display: block; letter-spacing: 0.14em; font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.keep q { font-family: var(--serif); font-size: 23px; quotes: "\201C" "\201D"; }
.disclaimer { font-size: 13px; color: var(--ink-faint); margin-top: 26px; }

.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 30px; }
.tab {
  font: inherit;
  font-size: 15px;
  background: none;
  border: 0;
  color: var(--ink-faint);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.form { display: grid; gap: 14px; margin-top: 18px; }
.why { font-size: 14px; color: var(--ink-faint); margin: 4px 0 0; }
.error { color: #f0a39a; font-size: 14px; min-height: 1em; margin: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 10;
  animation: enter 0.4s var(--ease) both;
}

.foot { margin-top: 56px; font-size: 13px; color: var(--ink-faint); }
.foot a { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.doc { max-width: 680px; }
.doc h1 { font-size: clamp(36px, 7vw, 56px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc a { color: var(--accent); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  main { padding: 84px 18px 56px; align-items: flex-start; }
  .choice { padding: 15px 16px; font-size: 16px; }
  .vibes { grid-template-columns: 1fr 1fr; }
  .vibe { padding: 14px; }
  .vibe .name { font-size: 18px; }
  .now { bottom: 10px; }
  .yt-dock { right: 10px; bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* reaction: verdict + crowd poll */
.verdict { font-family: var(--serif); font-size: clamp(40px, 7vw, 64px); line-height: 1.02; margin: 0; position: relative; outline: none; animation: stamp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both; }
.verdict-sub { margin: 10px 0 0; font-size: 18px; color: var(--ink-soft); max-width: 32em; animation: enter 0.7s var(--ease) 0.35s both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.35) rotate(-3deg); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }
.poll { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; max-width: 36em; }
.poll li { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; color: var(--ink-soft); animation: enter 0.5s var(--ease) 0.45s both; }
.poll li.mine { border-color: var(--accent); color: var(--ink); }
.poll-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(255, 255, 255, 0.07); transform-origin: left; animation: grow 0.9s var(--ease) both; }
.poll li.mine .poll-fill { background: color-mix(in srgb, var(--accent) 28%, transparent); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.poll-label { position: relative; flex: 1; }
.poll-pct { position: relative; font-variant-numeric: tabular-nums; font-weight: 600; animation: enter 0.5s var(--ease) both; }
.you { font-style: normal; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #111; vertical-align: 2px; }
.poll-foot { margin: 8px 0 0; font-size: 12px; color: var(--ink-faint); }
.teaser { font-size: 13px; color: var(--ink-faint); }
.reaction .actions { align-items: center; gap: 16px; }
.early-read { margin: 28px 0 0; padding: 18px 20px; border: 1px dashed var(--accent); border-radius: 18px; max-width: 34em; background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); transform-origin: 20% 50%; animation: pop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.early-read small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.early-line { margin: 6px 0 0; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.early-foot { margin: 6px 0 0; font-size: 13px; color: var(--ink-faint); }
@keyframes pop {
  0% { opacity: 0; transform: scale(0.6) rotate(-4deg) translateY(16px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.burst { position: absolute; left: 90px; top: 30px; pointer-events: none; }
.burst span { position: absolute; left: 0; top: 0; font-size: 18px; opacity: 0; animation: fly 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes fly {
  0% { opacity: 1; transform: translate(0, 0) scale(0.4) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(var(--rot)); }
}

/* the door */
.door-scene { position: relative; width: 132px; height: 200px; margin: 0 0 28px; perspective: 700px; }
.door-light { position: absolute; left: 50%; bottom: -14px; width: 220px; height: 40px; transform: translateX(-50%); background: radial-gradient(ellipse, var(--accent), transparent 70%); opacity: 0.12; transition: opacity 1s; filter: blur(6px); }
.door-frame { position: absolute; inset: 0; border: 3px solid var(--line-strong); border-bottom: 0; border-radius: 66px 66px 0 0; overflow: visible; background: #070609; }
.door-glow { position: absolute; inset: 0; border-radius: 62px 62px 0 0; background: radial-gradient(circle at 50% 60%, #fff6e0, var(--accent) 40%, transparent 80%); opacity: 0; transition: opacity 1.1s var(--ease); }
.door {
  position: absolute;
  inset: 0;
  border-radius: 62px 62px 0 0;
  background: linear-gradient(160deg, #3a2c22, #1e1612);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.6, 0, 0.2, 1);
  display: grid;
  grid-template-rows: 1.2fr 1fr;
  gap: 10px;
  padding: 26px 18px 18px;
}
.door-panel { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 40px 40px 6px 6px; }
.door-panel + .door-panel { border-radius: 6px; }
.door-knob { position: absolute; right: 16px; top: 54%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.door-lock { position: absolute; right: 8px; top: calc(54% + 16px); font-size: 16px; transition: opacity 0.3s, transform 0.4s; }
.door-scene:not(.open) .door-lock { animation: lockpulse 2.4s ease-in-out infinite; }
@keyframes lockpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.door-scene.open .door { transform: rotateY(-100deg); }
.door-scene.open .door-lock { opacity: 0; transform: translateY(10px); }
.door-scene.open .door-glow { opacity: 1; }
.door-scene.open .door-light { opacity: 0.6; }
.door-scene.shake { animation: shake 0.45s ease-in-out; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.door-screen .eyebrow { margin-top: 0; }

.inside .title { font-size: clamp(34px, 6.5vw, 54px); line-height: 1.08; }
.inside p { font-size: 19px; color: var(--ink-soft); margin: 22px 0 0; max-width: 34em; }
.inside .creator-name { font-family: var(--serif); font-style: italic; color: var(--accent); margin-top: 10px; }
.door-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.door-links .btn { text-decoration: none; }
.inside .signoff { font-family: var(--serif); font-style: italic; color: var(--ink); }
.hint a { color: inherit; }

.back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 6px 12px 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-faint);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.back:hover { color: var(--ink); border-color: var(--line-strong); transform: translateX(-3px); }
.choice.previous { border-color: var(--accent); border-style: dashed; }
.choice.previous .key { border-color: var(--accent); color: var(--accent); }


/* YouTube's player has to stay visible (at least 200x200) while it plays */
.yt-dock {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: 200px;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px -10px var(--accent);
  z-index: 6;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.yt-frame, .yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.end-early { display: block; margin-top: 18px; font-size: 13px; }

/* contact double-check */
.confirm { margin-top: 26px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 20px; max-width: 34em; animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.confirm small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.confirm-value { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(26px, 4.4vw, 36px); color: var(--ink); word-break: break-all; }
.confirm-link { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.confirm-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-faint); }
.confirm .actions { margin-top: 18px; }

/* the five-second door opening */
.door-seq { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 28px; background: radial-gradient(circle at 50% 45%, #1a1620, #07060a 70%); opacity: 0; transition: opacity 0.5s; }
.door-seq.go { opacity: 1; }
.door-seq.fade { opacity: 0; transition: opacity 0.9s; }
.seq-stage { position: relative; transform: scale(1.9); transform-origin: center bottom; }
.seq-stage .door-scene { margin: 0; }
.seq-stage .door { transition-duration: 2.2s; }
.seq-stage .door-glow, .seq-stage .door-light { transition-duration: 2s; }
.seq-stage .door-lock { animation: none; }
.seq-key { position: absolute; right: -58px; top: calc(54% + 12px); font-size: 18px; opacity: 0; }
.door-seq.go .seq-key { animation: key-in 1.1s var(--ease) 0.2s forwards; }
@keyframes key-in {
  0% { opacity: 0; transform: translateX(30px); }
  55% { opacity: 1; transform: translateX(-44px) rotate(0); }
  100% { opacity: 1; transform: translateX(-44px) rotate(90deg); }
}
.door-seq.unlocked .seq-key { animation: key-out 0.4s ease-in forwards; }
@keyframes key-out { from { opacity: 1; transform: translateX(-44px) rotate(90deg); } to { opacity: 0; transform: translateX(-30px) rotate(90deg); } }
.door-seq.unlocked .door-lock { opacity: 0; transform: translateY(26px) rotate(25deg); transition: opacity 0.5s, transform 0.5s; }
.seq-caption { margin: 70px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); min-height: 1.4em; }
.seq-flood { position: absolute; left: 50%; top: 45%; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle, #fff6e0, var(--accent) 45%, transparent 72%); transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.door-seq.flood .seq-flood { animation: flood 1.4s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
@keyframes flood { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 30% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, -50%) scale(90); } }

/* behind the door */
.inside .thanks-lede { font-family: var(--serif); font-size: clamp(21px, 3vw, 25px); color: var(--ink); line-height: 1.4; }
.creator-note { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.creator-note small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.creator-note h2 { font-size: clamp(24px, 3.6vw, 30px); margin-top: 10px; }
.creator-note p { font-size: 17px; }

/* check-in chips (mid-quiz) */
.checkin { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.04); }
.chip i { font-style: normal; }
.chip b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* results */
.results-screen .lede { max-width: 34em; }
.results-body { margin-top: 30px; }
.loading { color: var(--ink-faint); font-size: 15px; animation: breathe 1.6s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.45; } to { opacity: 1; } }
.rank { margin-bottom: 26px; max-width: 34em; animation: enter 0.8s var(--ease) both; }
.rank-line { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); margin: 0 0 16px; }
.rank-line em { color: var(--accent); font-style: normal; }
.gauge { position: relative; height: 10px; }
.gauge-track { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), var(--accent)); }
.gauge-marker { position: absolute; top: 50%; left: var(--x); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--accent); animation: slide-in 1.4s var(--ease) 0.3s both; }
@keyframes slide-in { from { left: 0; opacity: 0; } to { left: var(--x); opacity: 1; } }
.gauge-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-faint); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 34em; }
.stat { padding: 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.stat:nth-child(2) { animation-delay: 0.1s; }
.stat:nth-child(3) { animation-delay: 0.2s; }
.stat b { display: block; font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.stat-rare b { color: var(--accent); }
.early-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-faint); max-width: 34em; }
.results-h { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 36px 0 12px; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 36em; }
.result { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); animation: enter 0.7s var(--ease) both; }
.result-q { margin: 0; font-size: 13px; color: var(--ink-faint); line-height: 1.45; }
.result-a { margin: 6px 0 0; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.result-pct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
.result-pct b { font-weight: 500; }
.share { position: relative; height: 6px; margin-top: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.share-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--ink-soft); transform-origin: left; animation: grow 1s var(--ease) 0.3s both; }
.share-rare .share-fill { background: var(--accent); }
.tag { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); white-space: nowrap; }
.tag-rare, .tag-same { background: var(--accent); border-color: var(--accent); color: #111; }
.tag-partly { border-color: var(--accent); color: var(--accent); }
.all-results { margin-top: 30px; max-width: 36em; }
.all-results summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); padding: 10px 0; list-style: none; }
.all-results summary::-webkit-details-marker { display: none; }
.all-results summary::before { content: "+ "; color: var(--accent); }
.all-results[open] summary::before { content: "\2212  "; }
.results.compact .result { padding: 12px 16px; animation: none; }
.results.compact .result-a { font-size: 16px; }
.results-tail { margin-top: 34px; animation: enter 1s var(--ease) 0.6s both; }

/* creator match */
.match { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.match-eyebrow { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.match-top { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.match-pct { font-family: var(--serif); font-size: clamp(54px, 9vw, 76px); line-height: 1; color: var(--accent); animation: pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.match-line { margin: 0; font-size: 16px; color: var(--ink-soft); max-width: 22em; }
.match-row { position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.match-row.match-same { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.match-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.match-pair p { margin: 0; font-family: var(--serif); font-size: 16px; color: var(--ink); }
.match-pair small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }
.match-row .tag { position: absolute; top: 12px; right: 12px; }
.match-row .result-q { padding-right: 90px; }
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat b { font-size: 28px; }
  .match-pair { grid-template-columns: 1fr; }
}
.results-screen .title { font-size: clamp(36px, 7vw, 58px); line-height: 1.08; margin-top: 6px; }
.results-screen .title em { color: var(--accent); }

/* ping landing */
.ping-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1080px; }
.hero-copy { min-width: 0; }
.pong-eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.hero-title em { color: var(--accent); }
.hero-title.small { font-size: clamp(40px, 7vw, 72px); }
.tap-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 14px; color: var(--ink-soft); }
.tap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: tap 1.6s ease-out infinite; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

.sonar { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; border-radius: 50%; isolation: isolate; animation: enter 1.1s var(--ease) 0.2s both; }
.sonar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%); }
.sonar-grid { position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle, transparent 32.6%, var(--line) 33%, transparent 33.4%, transparent 65.6%, var(--line) 66%, transparent 66.4%),
  linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)),
  linear-gradient(0deg, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)); opacity: 0.7; }
.sonar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 38%, transparent), transparent 22%); -webkit-mask: radial-gradient(circle, #000 69%, transparent 70%); mask: radial-gradient(circle, #000 69%, transparent 70%); animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sonar-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: ring 3.2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
@keyframes ring { 0% { transform: scale(0.12); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.blip { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); opacity: 0.12; animation: blip 3.2s ease-out infinite; }
@keyframes blip { 0% { opacity: 0.9; transform: scale(1.5); box-shadow: 0 0 14px var(--accent); } 40% { opacity: 0.18; transform: scale(1); box-shadow: none; } 100% { opacity: 0.12; } }
.blip.lit { animation: none; opacity: 0.7; background: var(--accent); transition: opacity 0.4s; }
.blip.pong { opacity: 1; background: var(--ink); width: 14px; height: 14px; margin: -7px 0 0 -7px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 30px var(--accent); animation: pong 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes pong { from { transform: scale(0.2); } to { transform: scale(1); } }
.pong-label { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); white-space: nowrap; animation: pop-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes pop-up { from { opacity: 0; transform: translate(-50%, 12px) scale(0.6); } to { opacity: 1; transform: translate(-50%, 0); } }

.sonar-core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #fff8ea, var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #000)); color: #15120d; font-family: var(--serif); font-style: italic; font-size: 22px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 60px color-mix(in srgb, var(--accent) 55%, transparent); animation: breathe-core 2.4s ease-in-out infinite; transition: transform 0.25s var(--ease); z-index: 2; }
.sonar-core:hover { transform: scale(1.07); }
.sonar-core:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sonar-core.idle { width: 26px; height: 26px; margin: -13px 0 0 -13px; cursor: default; }
@keyframes breathe-core { 50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 80px color-mix(in srgb, var(--accent) 70%, transparent); } }
.sonar-core.fired { animation: fire 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; pointer-events: none; }
@keyframes fire { 0% { transform: scale(1); } 25% { transform: scale(0.78); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.pinging .sonar-ring, .pinging .sonar-sweep { animation-duration: 1.1s; }
.pinging .hero-copy { transition: opacity 0.6s 1.1s, filter 0.6s 1.1s; opacity: 0.15; filter: blur(4px); }

.shockwave { position: fixed; left: var(--cx); top: var(--cy); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 40px var(--accent), inset 0 0 40px color-mix(in srgb, var(--accent) 40%, transparent); pointer-events: none; z-index: 50; animation: shock 1.5s cubic-bezier(0.1, 0.7, 0.3, 1) forwards; }
@keyframes shock { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(60); opacity: 0; border-width: 0.2px; } }
.name-step .name-form { margin-top: 30px; }

@media (max-width: 760px) {
  .ping-hero { grid-template-columns: 1fr; }
  .ping-hero .sonar { order: -1; width: min(72vw, 300px); margin-bottom: 4px; }
  .sonar-core { width: 76px; height: 76px; margin: -38px 0 0 -38px; font-size: 19px; }
}
.mark { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.mark-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.mark-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: ring-mark 2.4s ease-out infinite; }
@keyframes ring-mark { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }

/* question counter */
.mood { display: inline-flex; align-items: center; gap: 10px; }
.mood-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mood-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: ring-mark 2.4s ease-out infinite; }

/* incoming signal transition */
.incoming { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 28px; text-align: center; cursor: pointer; }
.sonar.mini { width: 150px; animation: inc-in 0.5s var(--ease) both; }
.incoming.first .sonar.mini { width: 210px; }
.sonar.mini .sonar-ring, .sonar.mini .sonar-sweep { animation-duration: 1.2s; }
.sonar.mini .blip { animation-duration: 1.2s; }
.sonar.mini .sonar-core.idle { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
@keyframes inc-in { from { opacity: 0; transform: scale(0.6); } }
.inc-text { display: grid; gap: 8px; justify-items: center; }
.inc-text > * { margin: 0; animation: inc-line 0.6s var(--ease) both; }
@keyframes inc-line { from { opacity: 0; transform: translateY(10px); filter: blur(6px); letter-spacing: 0.3em; } }
.inc-small { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.inc-small.lock { color: var(--accent); }
.inc-big { font-family: var(--serif); font-size: clamp(38px, 7vw, 64px); line-height: 1.05; color: var(--ink); }
.inc-big em { color: var(--accent); }
.inc-sub { font-size: 15px; color: var(--ink-soft); }
.inc-skip { position: fixed; bottom: 28px; left: 0; right: 0; margin: 0; font-size: 12px; color: var(--ink-faint); animation: enter 0.8s var(--ease) 1.2s both; }

/* checkpoints */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.checkpoint { max-width: 640px; }
.cp-ring { position: relative; width: 170px; aspect-ratio: 1; margin-bottom: 26px; transition: --p 1.4s cubic-bezier(0.22, 1, 0.36, 1); animation: inc-in 0.7s var(--ease) both; }
.cp-ring .sonar-ring { animation-duration: 3.2s; }
.cp-arc { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 60%, transparent)); }
.cp-core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cp-num { font-family: var(--serif); font-size: 58px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-core small { font-size: 13px; color: var(--ink-faint); }
.cp-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); animation: enter 0.8s var(--ease) 0.2s both; }
.cp-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.cp-bars i { width: 3px; border-radius: 1px; background: var(--line-strong); }
.cp-bars i:nth-child(1) { height: 25%; } .cp-bars i:nth-child(2) { height: 50%; } .cp-bars i:nth-child(3) { height: 75%; } .cp-bars i:nth-child(4) { height: 100%; }
.cp-bars i.on { background: var(--accent); animation: bar-on 0.4s var(--ease) both; }
.cp-bars i.on:nth-child(2) { animation-delay: 0.5s; } .cp-bars i.on:nth-child(3) { animation-delay: 0.8s; }
@keyframes bar-on { from { background: var(--line-strong); transform: scaleY(0.3); } }
.cp-title { font-size: clamp(32px, 5.6vw, 50px); line-height: 1.08; margin: 12px 0 0; animation: enter 0.9s var(--ease) 0.3s both; }
.cp-title em { color: var(--accent); }
.cp-sub { margin: 12px 0 0; font-size: 17px; color: var(--ink-soft); animation: enter 0.9s var(--ease) 0.45s both; }
.cp-stat { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); opacity: 0; transition: opacity 0.8s; }
.cp-stat.show { opacity: 1; }
.cp-stat:empty { display: none; }
.cp-block { margin-top: 26px; animation: enter 0.9s var(--ease) 0.7s both; }
.cp-block + .cp-block { animation-delay: 0.9s; }
.cp-block > small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.cp-unlocks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.cp-unlocks li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 15px; color: var(--ink-soft); }
.cp-unlocks i { font-style: normal; font-size: 18px; }
.checkpoint .actions { margin-top: 30px; animation: enter 0.9s var(--ease) 1.1s both; }
.cp-ring .sonar-ring { inset: -22%; animation-name: cp-pulse; }
@keyframes cp-pulse { 0% { transform: scale(0.7); opacity: 0.55; } 100% { transform: scale(1); opacity: 0; } }

/* Message for the creator, inside the door */
.say { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.say-eyebrow { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.say h3 { margin: 10px 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 4vw, 30px); }
.say-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.say-sent { margin: 12px 0 8px; font-family: var(--serif); font-style: italic; font-size: 19px; white-space: pre-wrap; overflow-wrap: anywhere; animation: enter 0.6s var(--ease) both; }

/* Door: Instagram and email side by side */
.contact-field { display: grid; gap: 6px; }
.contact-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.contact-field input[aria-invalid="true"] { border-color: #ff8a7a; }

/* Ping code behind the door */
.ping-code { margin: 26px 0 8px; padding: 18px 20px; border: 1px dashed var(--accent); border-radius: 18px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ping-code small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ping-code-value { margin: 6px 0 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(22px, 4vw, 28px); letter-spacing: 0.02em; color: var(--ink); user-select: all; }
.ping-code-note { margin: 0; font-size: 14px; color: var(--ink-soft); max-width: 34em; }

/* About you, behind the door */
.about-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 520px) { .about-row { grid-template-columns: 1fr; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); font: inherit; font-size: 15px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip-btn:hover { border-color: var(--accent); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #14121c; }
.about-saved { margin: 12px 0 6px; font-family: var(--serif); font-size: 21px; }
.about-form input[type="number"] { -moz-appearance: textfield; }
.about-form [hidden] { display: none; }
.about-form .error:empty { display: none; }

/* ---------- Checkpoint breaks: cinema, sunset layover, night departures ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
body[data-scene="cinema"] .scene, body[data-scene="sunset"] .scene, body[data-scene="night"] .scene { opacity: 1; }
.scene > span { position: absolute; display: block; }
body[data-scene="cinema"] .orb, body[data-scene="sunset"] .orb, body[data-scene="night"] .orb { opacity: 0.25; }
body[data-scene="cinema"] { --accent: #ffcf6b; }
body[data-scene="sunset"] { --accent: #ffd6a0; }
body[data-scene="night"] { --accent: #ffc75a; }

.scene[data-name="cinema"] { background: radial-gradient(ellipse at 50% 30%, #2a0d10, #0a0506 70%); }
.curtain { top: 0; bottom: 0; width: 52%; background: repeating-linear-gradient(90deg, #5c0d14 0 26px, #86141f 26px 40px, #4a0a10 40px 58px); box-shadow: inset 0 -120px 120px rgba(0, 0, 0, 0.6); }
.curtain-l { left: 0; transform-origin: left; animation: curtain-l 2.4s var(--ease) 0.2s both; }
.curtain-r { right: 0; transform-origin: right; animation: curtain-r 2.4s var(--ease) 0.2s both; }
@keyframes curtain-l { from { transform: scaleX(1); } to { transform: scaleX(0.16); } }
@keyframes curtain-r { from { transform: scaleX(1); } to { transform: scaleX(0.16); } }
.valance { top: 0; left: 0; right: 0; height: 46px; background: repeating-linear-gradient(90deg, #7a111b 0 30px, #5a0c13 30px 60px); border-bottom: 3px solid #c9a24a; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
.beam { top: -10%; left: 50%; width: 80vmax; height: 130%; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255, 230, 170, 0.1) 175deg, rgba(255, 230, 170, 0.14) 180deg, rgba(255, 230, 170, 0.1) 185deg, transparent 200deg); animation: flicker 3.2s steps(1) infinite; }
.spot { left: 50%; bottom: -30vh; width: 90vw; height: 60vh; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 210, 140, 0.14), transparent 70%); }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.8; } 49% { opacity: 1; } 83% { opacity: 0.9; } }

.scene[data-name="sunset"] { background: linear-gradient(180deg, #2b1a4a 0%, #8a3a5c 38%, #e8784e 68%, #f6c177 100%); }
.sun { left: 50%; bottom: -6vh; width: 40vmin; height: 40vmin; opacity: 0.85; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #fff1c9, #ffb15e 60%, transparent 72%); filter: blur(1px); }
.cloud { height: 26px; border-radius: 30px; background: rgba(255, 230, 220, 0.28); filter: blur(4px); animation: cloud 60s linear infinite; }
.cloud.c1 { top: 18%; width: 220px; left: -240px; }
.cloud.c2 { top: 34%; width: 320px; left: -340px; animation-duration: 85s; animation-delay: -30s; }
.cloud.c3 { top: 58%; width: 180px; left: -200px; animation-duration: 70s; animation-delay: -50s; }
@keyframes cloud { to { transform: translateX(calc(100vw + 400px)); } }
.plane { font-size: 30px; left: -60px; top: 26%; animation: fly 14s linear infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); }
@keyframes fly { 0% { transform: translate(0, 12vh) rotate(-8deg); } 100% { transform: translate(calc(100vw + 120px), -8vh) rotate(-8deg); } }

.scene[data-name="night"] { background: linear-gradient(180deg, #050814 0%, #0d1838 60%, #1c2a4f 100%); }
.star { width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.25; } }
.moon { top: 9%; right: 12%; width: 70px; height: 70px; border-radius: 50%; box-shadow: -14px 8px 0 0 #f4e7c4; transform: rotate(-20deg); }
.night-plane { font-size: 22px; top: 18%; animation-duration: 22s; opacity: 0.85; }
.horizon { left: 0; right: 0; bottom: 0; height: 18vh; background: repeating-linear-gradient(90deg, rgba(255, 200, 90, 0.5) 0 2px, transparent 2px 60px) bottom / 100% 3px no-repeat, linear-gradient(180deg, transparent, rgba(255, 170, 60, 0.12)); }

.break { max-width: 620px; position: relative; }
.break-eyebrow { letter-spacing: 0.2em; }
.break-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 8px 0 10px; animation: enter 0.9s var(--ease) 0.2s both; }
.break-title em { color: var(--accent); }
.break-sub { color: var(--ink-soft); margin: 0 0 22px; animation: enter 0.9s var(--ease) 0.4s both; }
.break-inputs { display: grid; gap: 10px; }
.break-field { display: flex; align-items: center; gap: 12px; }
.break-field span { font-family: var(--serif); color: var(--accent); width: 26px; font-size: 20px; }
.break-field input { flex: 1; }
.break-form .actions { margin-top: 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.twist { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(10, 8, 14, 0.62); border: 1px solid var(--line); backdrop-filter: blur(6px); font-family: var(--serif); font-size: 20px; color: var(--accent); opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.twist.show { opacity: 1; transform: none; }
.twist:empty { display: none; }

/* Now showing marquee with chasing bulbs */
.marquee { position: relative; margin: 0 0 22px; padding: 18px 22px 16px; text-align: center; background: #140a06; border: 2px solid #c9a24a; border-radius: 10px; animation: enter 0.9s var(--ease) 0.5s both;
  box-shadow: 0 0 0 6px #140a06, 0 0 0 8px #c9a24a, 0 0 40px rgba(255, 200, 100, 0.25); }
.marquee::before, .marquee::after { content: ""; position: absolute; left: 10px; right: 10px; height: 6px; background: radial-gradient(circle, #ffe7a3 2px, transparent 3px) 0 0 / 16px 6px repeat-x; animation: bulbs 0.8s steps(2) infinite; }
.marquee::before { top: 4px; }
.marquee::after { bottom: 4px; animation-delay: 0.4s; }
@keyframes bulbs { 50% { opacity: 0.35; } }
.marquee small { display: block; letter-spacing: 0.35em; text-transform: uppercase; color: #ffcf6b; font-size: 11px; margin-bottom: 6px; }
.mq-line { margin: 2px 0; font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff4d6; font-size: clamp(16px, 3.6vw, 22px); text-shadow: 0 0 10px rgba(255, 200, 100, 0.5); min-height: 1.3em; overflow-wrap: anywhere; }

/* Passport page with stamps that thump in */
.passport { margin: 0 0 22px; padding: 16px 18px 18px; border-radius: 12px; background: linear-gradient(135deg, #f6ecd6, #e9dcbc); color: #3a2c1a; box-shadow: 0 16px 40px rgba(60, 20, 20, 0.35); animation: enter 0.9s var(--ease) 0.5s both; }
.passport small { display: block; letter-spacing: 0.3em; text-transform: uppercase; font-size: 11px; color: #7a5a38; margin-bottom: 10px; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 76px; }
.stamp { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 70px; padding: 6px; border: 2px dashed rgba(122, 90, 56, 0.35); border-radius: 10px; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.05em; overflow-wrap: anywhere; transform: rotate(var(--r, 0deg)); }
.stamp.on { border: 3px double #b23a3a; color: #b23a3a; border-radius: 50% / 40%; background: rgba(178, 58, 58, 0.05); }
.stamp:nth-child(2).on { border-color: #2c5aa0; color: #2c5aa0; }
.stamp:nth-child(3).on { border-color: #2e7d4f; color: #2e7d4f; }
.stamp.thump { animation: thump 0.45s var(--ease); }
@keyframes thump { 0% { transform: scale(1.8) rotate(var(--r, 0deg)); opacity: 0; } 100% { transform: scale(1) rotate(var(--r, 0deg)); opacity: 1; } }

/* Split-flap departures board */
.departures { margin: 0 0 22px; padding: 14px 16px; border-radius: 10px; background: #0b0d12; border: 1px solid #262b36; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-family: ui-monospace, "SF Mono", Menlo, monospace; animation: enter 0.9s var(--ease) 0.5s both; }
.departures small { display: block; color: #ffc75a; letter-spacing: 0.3em; text-transform: uppercase; font-size: 11px; margin-bottom: 8px; }
.dep-row { display: grid; grid-template-columns: 52px 1fr 34px 84px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #1b1f28; font-size: 14px; color: #f2e6c9; }
.dep-time { color: #ffc75a; }
.dep-gate { color: #8a93a6; }
.dep-dest { min-height: 1.4em; padding: 2px 6px; background: #151923; border-radius: 3px; letter-spacing: 0.08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-dest.flip { animation: flap 0.35s steps(3); }
@keyframes flap { 0% { transform: scaleY(0.1); } 50% { transform: scaleY(0.6); } 100% { transform: none; } }
.dep-status { color: #5b6272; font-size: 12px; }
.dep-status.on { color: #6ee7a1; animation: bulbs 1.2s steps(2) infinite; }

@media (max-width: 420px) {
  .dep-row { grid-template-columns: 44px 1fr 70px; }
  .dep-gate { display: none; }
  .stamp { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain, .beam, .cloud, .plane, .star, .marquee::before, .marquee::after, .stamp.thump, .dep-dest.flip, .dep-status.on { animation: none !important; }
  .curtain-l, .curtain-r { transform: scaleX(0.16); }
  .plane { display: none; }
}

.break[data-scene="sunset"] .break-field input { background: rgba(40, 14, 30, 0.45); }
.break[data-scene="sunset"] .break-field input::placeholder { color: rgba(255, 230, 210, 0.6); }
.stamps { justify-items: center; }
.stamp { width: 100%; max-width: 150px; }
.break[data-scene="sunset"] .link { color: #fff1e0; }
