@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  color-scheme: dark;
  font-family: Poppins, system-ui, sans-serif;
  color: oklch(98% .005 240);
  background: oklch(20% .05 250);
  --base: oklch(20% .05 250);
  --muted: oklch(76% .025 245);
  --accent: oklch(82% .15 130);
  --border: oklch(72% .2 130 / .22);
  --primary: oklch(72% .2 130);
  --surface: oklch(29% .05 250 / .60);
  --gradient: linear-gradient(100deg, var(--primary), oklch(78% .16 155));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
}
.tech-backdrop { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; background: var(--base); }
.tech-backdrop::before {
  content: ''; position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(to right, oklch(72% .2 130 / .09) 1px, transparent 1px), linear-gradient(to bottom, oklch(72% .2 130 / .09) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, black 10%, transparent 75%);
}
.tech-backdrop i { position: absolute; border-radius: 50%; animation: aurora 18s infinite ease-in-out; }
.tech-backdrop i:nth-child(1) { top: -128px; left: -96px; width: 448px; height: 448px; background: oklch(72% .2 130 / .35); filter: blur(110px); }
.tech-backdrop i:nth-child(2) { top: 33.333%; right: -128px; width: 512px; height: 512px; background: oklch(72% .14 200 / .3); filter: blur(130px); animation-duration: 25s; }
.tech-backdrop i:nth-child(3) { bottom: -160px; left: 25%; width: 384px; height: 384px; background: oklch(72% .2 130 / .35); filter: blur(120px); }
@keyframes aurora { 33% { transform: translate(6%, -8%) scale(1.15) } 66% { transform: translate(-7%, 6%) scale(.92) } }
@media (prefers-reduced-motion: reduce) { .tech-backdrop i { animation: none; } }
header { padding: 2rem 1.25rem; text-align: center; }
header a { color: #e5cd80; text-decoration: none; letter-spacing: .11em; text-transform: uppercase; font-weight: 650; }
main { max-width: 46rem; padding: 2.5rem 1.25rem 4rem; margin: auto; }
#intro, #complete { text-align: center; }
h1, h2, h3 { font-family: Sora, system-ui, sans-serif; line-height: 1.1; letter-spacing: -.035em; }
h1, h2 { margin: .6rem 0 1.25rem; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.65rem); }
p { color: var(--muted); line-height: 1.55; }
#intro p:not(.stage) { max-width: 34rem; margin: 0 auto 2rem; }
#intro .privacy { margin: 1.2rem auto 0; font-size: .83rem; }
.stage { color: var(--accent); font-size: .83rem; text-transform: uppercase; font-weight: 730; letter-spacing: .06em; }
.progress { display: grid; gap: .5rem; color: var(--muted); margin-bottom: 2.5rem; }
progress { width: 100%; height: .6rem; accent-color: var(--accent); }
button, input, select, textarea { font: inherit; }
button {
  padding: .82rem 1.22rem;
  background: linear-gradient(105deg, #b0df64, #63d3a1);
  color: #082738;
  border: 0;
  border-radius: .7rem;
  font-weight: 730;
  cursor: pointer;
}
button:disabled { opacity: .65; cursor: wait; }
.back { background: #142f45; color: #f4f8fb; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
#fields { display: grid; gap: .6rem; margin-top: 1.25rem; }
#fields > input, #fields > select, textarea {
  width: 100%;
  background: #0b263c;
  border: 1px solid var(--border);
  border-radius: .65rem;
  color: inherit;
  padding: .85rem .9rem;
}
textarea { min-height: 8rem; resize: vertical; }
.option { padding: .8rem .9rem; border-radius: .65rem; border: 1px solid var(--border); background: #102d42; cursor: pointer; }
.option:has(:checked) { border-color: var(--accent); }
.option input { margin-right: .65rem; accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#error { color: #ffb1ab; }
#error:empty, #hint:empty { display: none; }

.quiz-page { padding: 0; max-width: unset; }
.quiz-page #intro, .quiz-page #complete { width: min(100% - 40px, 672px); margin: 0 auto; }
.quiz-page #intro { padding: 96px 0 88px; position: relative; }
.brand-logo { display: block; margin: 0 auto; border-radius: 16px; object-fit: cover; }
.quiz-page #intro .intro-badge {
  display: inline-block; margin: 24px 0 0; padding: 6px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: oklch(72% .2 130 / .13); color: var(--accent);
  font: 600 12px/16px Sora, sans-serif; text-transform: uppercase;
}
.quiz-page #intro h1 { font-size: 48px; line-height: 1.05; margin: 24px 0 0; }
.quiz-page #intro .intro-lead { font-size: 18px; line-height: 28px; max-width: 512px; margin: 20px auto 0; }
.gift { margin-top: 28px; background: oklch(72% .2 130 / .10); border: 1px solid oklch(72% .2 130 / .30); border-radius: 24px; padding: 24px 32px; text-align: left; }
.quiz-page #intro .gift p { margin: 16px auto 0; max-width: 512px; color: inherit; line-height: 26px; }
.quiz-page #intro .gift .gift-title { margin-top: 0; max-width: none; text-align: center; font: 700 18px/28px Sora, sans-serif; }
.quiz-page #intro .gift .gift-close { margin-top: 8px; max-width: none; text-align: center; font: 600 16px/24px Sora, sans-serif; }
.intro-actions { display: grid; justify-items: center; gap: 16px; margin-top: 36px; }
.quiz-page #intro .intro-actions p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; line-height: 16px; }
.intro-actions svg { width: 16px; height: 16px; flex-shrink: 0; }
.quiz-page #intro .review-note { margin: 12px auto 0; font-size: 11px; }
.required { color: oklch(65% .235 24); }
.quiz-page button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gradient); font-weight: 600; color: var(--base); }
.quiz-page #start { height: 56px; padding: 0 32px; border-radius: 18px; }
.quiz-page #quiz { display: grid; align-items: center; min-height: 100dvh; }
.quiz-page .progress { position: fixed; inset: 0 0 auto; z-index: 1; gap: 10px; margin: 0; }
.quiz-page progress { display: block; width: 100%; height: 4px; appearance: none; border: 0; border-radius: 0; background: oklch(30% .035 250); }
.quiz-page progress::-webkit-progress-bar { background: oklch(30% .035 250); }
.quiz-page progress::-webkit-progress-value { background: var(--gradient); }
.quiz-page progress::-moz-progress-bar { background: var(--gradient); }
#progress-label { width: min(100% - 40px, 672px); margin: 0 auto; font-size: 14px; }
.quiz-page #quiz form { width: min(100% - 40px, 672px); margin: 0 auto; padding: 64px 0; }
.quiz-page .stage { color: var(--muted); margin: 0 0 16px; font: 700 12px/16px Sora, sans-serif; letter-spacing: 0; }
.quiz-page .stage-start { color: var(--accent); }
.quiz-page h2 { font-size: 36px; margin: 0; line-height: 1.14; outline: 0; }
.quiz-page #hint { margin: 12px 0 0; line-height: 22px; }
.quiz-page #fields { margin-top: 28px; gap: 8px; }
.quiz-page #fields.city-fields { grid-template-columns: minmax(0, 3fr) minmax(96px, 1fr); }
.quiz-page #fields > :is(input, select, textarea) { min-height: 68px; padding: 0 20px; border-radius: 20px; background: transparent; }
.quiz-page #fields > :is(input, textarea):focus { border-color: var(--primary); outline: 1px solid var(--primary); outline-offset: 0; }
.quiz-page #fields input::placeholder, .quiz-page textarea::placeholder { color: var(--muted); }
.quiz-page #fields textarea { min-height: 144px; padding: 16px 20px; }
.quiz-page select option { background: var(--base); }
.quiz-page .option { display: flex; align-items: center; gap: 12px; position: relative; min-height: 52px; padding: 8px 16px; border-radius: 16px; background: var(--surface); font-weight: 500; font-size: 14px; }
.quiz-page .option:hover, .quiz-page .option:has(:checked) { border-color: var(--primary); }
.quiz-page .option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-page .option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-letter { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.option:has(:checked) .option-letter { background: var(--primary); color: var(--base); }
.quiz-page .actions { align-items: center; margin-top: 30px; gap: 12px; }
.quiz-page #next { min-height: 52px; padding: 0 28px; border-radius: 17px; }
.quiz-page .back { background: transparent; color: var(--muted); }
.keyboard-tip { color: var(--muted); font-size: 12px; }
.quiz-page #complete { padding: 112px 0; }
@media (max-width: 639px) {
  .brand-logo { width: 112px; height: 112px; }
  .quiz-page #intro { padding-top: 96px; padding-bottom: 96px; }
  .quiz-page #intro h1 { font-size: 30px; }
  .quiz-page #intro .intro-lead { font-size: 16px; line-height: 24px; }
  .gift { padding: 24px 20px; }
  .quiz-page #intro .gift p { font-size: 14px; line-height: 23px; }
  .quiz-page #intro .gift .gift-title { font-size: 16px; line-height: 24px; }
  .quiz-page #intro .gift .gift-close { font-size: 14px; line-height: 20px; }
  .quiz-page h2 { font-size: 24px; }
  .quiz-page #hint { font-size: 14px; line-height: 20px; }
  .quiz-page #fields > input { font-size: 18px; }
  .keyboard-tip { display: none; }
}
