:root {
  color-scheme: dark;
  --ink: #fff9ff;
  --muted: #c9bbd7;
  --surface: rgba(34, 22, 51, 0.88);
  --surface-strong: #271938;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #ff5aa5;
  --accent-two: #8e6cff;
  --focus: #ffd166;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #100919; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(142, 108, 255, 0.24), transparent 35rem),
    radial-gradient(circle at 100% 90%, rgba(255, 90, 165, 0.18), transparent 30rem),
    #100919;
}

button, a { font: inherit; }

a { color: #f4c7e1; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.shell {
  position: relative;
  width: min(100%, 42rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1rem 1.25rem;
  overflow: hidden;
}

.shell.centered {
  display: grid;
  align-items: center;
}

.ambient {
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  filter: blur(35px);
  opacity: 0.25;
  pointer-events: none;
}

.ambient-one { top: -6rem; right: -5rem; background: var(--accent); }
.ambient-two { bottom: 2rem; left: -8rem; background: var(--accent-two); }

.card {
  position: relative;
  z-index: 1;
  padding: clamp(1.35rem, 6vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(45, 29, 65, 0.94), var(--surface));
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 2.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  color: #1a0e20;
  background: linear-gradient(135deg, #ff8fc2, #b3a1ff);
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: #ef9bc4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.15rem, 10vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 35rem;
  margin: 1.25rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.disclosure,
.notice,
.sponsor-note {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 0.9rem;
  color: #ffe8ac;
  background: rgba(255, 209, 102, 0.08);
  font-size: 0.88rem;
  line-height: 1.45;
}

.actions { display: flex; gap: 0.75rem; }
.actions.stacked { flex-direction: column; }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  color: #1a0e20;
  background: linear-gradient(135deg, #ff78b6, #b4a2ff);
  box-shadow: 0 0.75rem 2.5rem rgba(255, 90, 165, 0.18);
}

.button.primary:hover { filter: brightness(1.07); }

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.button.compact { min-height: 2.7rem; padding: 0.55rem 1rem; }
.button:disabled { cursor: not-allowed; opacity: 0.45; }

.fine-print {
  margin: 1.25rem 0 0;
  color: #9587a5;
  font-size: 0.76rem;
  line-height: 1.5;
}

.quiz-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.quiz-header h1 { max-width: 10ch; font-size: clamp(2rem, 8vw, 3.3rem); }

.text-button {
  padding: 0.4rem;
  border: 0;
  color: #e7bad4;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.progress-track {
  height: 0.45rem;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-two));
  transition: width 180ms ease;
}

.progress-copy { color: var(--muted); font-size: 0.82rem; }

.question-title {
  margin: 1.6rem 0 1rem;
  font-size: clamp(1.35rem, 6vw, 2rem);
  line-height: 1.2;
}

.answer-grid { display: grid; gap: 0.7rem; }

.answer {
  width: 100%;
  min-height: 3.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.answer:hover,
.answer[aria-pressed="true"] {
  border-color: rgba(255, 120, 182, 0.7);
  background: rgba(255, 120, 182, 0.11);
}

.quiz-nav { margin-top: 1rem; }

.result-card { text-align: center; }
.result-card h1 { max-width: none; font-size: clamp(1.8rem, 7vw, 3rem); }

.result-orbit {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  place-items: center;
  border: 1px solid rgba(255, 120, 182, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 182, 0.25), transparent 65%);
  font-size: 2rem;
}

.result-name {
  margin: 0.75rem 0 0;
  color: #ff9bca;
  font-size: clamp(2rem, 9vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.05em;
}

.result-card .lede { margin-inline: auto; }
.result-card .button { width: 100%; }
.result-restart { margin-top: 1rem; }

.verify-card form { display: grid; gap: 1.2rem; }
.cf-turnstile { min-height: 65px; }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 0 0;
  color: #8f809e;
  font-size: 0.78rem;
}

footer nav { display: flex; gap: 1rem; }
.legal { line-height: 1.7; }
.legal h1 { margin-bottom: 1.5rem; }

@media (min-width: 42rem) {
  .shell { padding-top: 4rem; }
  .actions.stacked { flex-direction: row; }
  .actions.stacked .button { flex: 1; }
}

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