/* Missie 2026 — huisstijl: nachtblauw, crème, goud, met magenta/oranje/blauwe gloed.
   Mobile-first: basisstijlen zijn voor smartphones, grotere schermen via min-width queries. */
:root {
  --navy: #05022b;
  --cream: #fff2eb;
  --gold: #fcbd73;
  --muted: rgba(255, 242, 235, 0.74);
  --line: rgba(255, 242, 235, 0.3);
  --option-bg: rgba(13, 8, 70, 0.72);

  --font-display: "Antonio", "Arial Narrow", sans-serif;
  --font-body: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Achtergrondgloed + sterren in een vaste laag (background-attachment: fixed werkt niet op iOS) */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 64%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 82%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 32%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 78%, rgba(255,255,255,.6) 50%, transparent 51%);
  background-size: 320px 320px;
}
.stars::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80vmax 50vmax at 120% 30%, rgba(42, 107, 255, 0.26), transparent 70%),
    radial-gradient(70vmax 45vmax at -20% 55%, rgba(243, 6, 163, 0.2), transparent 70%),
    radial-gradient(70vmax 45vmax at 90% 100%, rgba(244, 123, 32, 0.16), transparent 70%);
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- voortgangsbalk ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: 4px;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 242, 235, 0.12);
}
.progress-bar span {
  display: block; height: 4px; width: 0;
  background: var(--gold);
  transition: width .35s ease;
}
.no-show .progress-bar { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 46vh; min-height: 46svh;
  display: flex; align-items: flex-end;
  padding: 0 calc(var(--gutter) + var(--safe-r)) 20px calc(var(--gutter) + var(--safe-l));
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background: url("/static/img/hero-small.jpg") 60% 18% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 2, 43, 0) 35%, rgba(5, 2, 43, .6) 80%),
    linear-gradient(90deg, rgba(5, 2, 43, .55) 0%, rgba(5, 2, 43, 0) 70%);
}
.hero-text { position: relative; width: 100%; margin: 0 auto; }

.kicker {
  margin: 0;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 15vw, 128px);
  line-height: .92;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- content ---------- */
main {
  max-width: 760px; margin: 0 auto;
  padding: 0 calc(var(--gutter) + var(--safe-r)) 0 calc(var(--gutter) + var(--safe-l));
}

.intro { padding: 20px 0 8px; }
.show-meta {
  margin: 0 0 14px;
  display: inline-block; max-width: 100%;
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 5px;
}
.show-meta:empty { display: none; }
.intro-title, .thanks-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 9vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}
.intro-text { margin: 0; color: var(--muted); max-width: 34em; }

.scroll-hint {
  display: inline-flex; margin-top: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line);
  align-items: center; justify-content: center;
}
.scroll-hint span {
  width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(4px) rotate(45deg); } }

/* zichtbaarheid per toestand */
.no-show .only-show, .has-show .only-noshow { display: none !important; }
.no-show:not(.not-found) .msg-404, .no-show.not-found .msg-noshow { display: none; }

/* ---------- vragen ---------- */
.question {
  min-height: 88vh; min-height: 88svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0;
  border: 0; margin: 0; min-width: 0;
  scroll-margin-top: 12px;
}
/* laatste vraag: geen extra hoogte, zodat de knop er direct onder staat */
.question:last-child {
  min-height: 0;
  justify-content: flex-start;
  padding-bottom: 0;
}
.question legend { padding: 0; float: left; width: 100%; }
.question legend + * { clear: both; }
.q-num {
  display: block;
  font-size: 12px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.q-text {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8.6vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.options { display: grid; gap: 10px; }
.option { position: relative; display: block; cursor: pointer; touch-action: manipulation; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: flex; align-items: center; gap: 14px;
  min-height: 58px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--option-bg);
  font-size: 18px; font-weight: 500; line-height: 1.25;
  transition: border-color .15s, background-color .15s, color .15s, transform .1s;
  user-select: none; -webkit-user-select: none;
}
.option span::before {
  content: ""; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--muted);
}
@media (hover: hover) {
  .option:hover span { border-color: var(--gold); }
}
.option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.option input:checked + span {
  background: var(--gold); border-color: var(--gold); color: var(--navy);
}
.option input:checked + span::before {
  border-color: var(--navy);
  background: radial-gradient(circle, var(--navy) 0 5px, transparent 6px);
}
.option:active span { transform: scale(.98); }

/* ---------- indienen (direct onder de laatste vraag) ---------- */
.submit-wrap {
  padding: 24px 0 calc(48px + var(--safe-b));
  scroll-margin-bottom: 24px;
}
.btn {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  display: block; width: 100%;
  min-height: 60px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 18px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy); background: var(--cream);
  padding: 18px 24px 17px;
  border-radius: 8px;
  touch-action: manipulation;
  transition: background-color .15s, opacity .15s, transform .1s;
}
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: var(--gold); }
}
.btn:not(:disabled) { background: var(--gold); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.is-loading { opacity: .7; cursor: progress; }
.progress { margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.error { margin: 14px 0 0; color: #ffb3c1; text-align: center; }

/* ---------- bedankt / al gestemd ---------- */
.thanks {
  min-height: 52vh; min-height: 52svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 0 64px;
  outline: none;
}
.thanks .kicker { margin-bottom: 10px; }
.thanks-title { font-size: clamp(52px, 16vw, 96px); }
.thanks[hidden] { display: none; }
.thanks .msg-voted { display: none; }
.thanks.is-voted .msg-voted { display: block; }
.thanks.is-voted .msg-thanks { display: none; }

/* ---------- stemming gesloten ---------- */
.closed {
  padding: 28px 0 48px;
}
.closed[hidden] { display: none; }
.closed .kicker { margin-bottom: 10px; }
.closed-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 10vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}
.radar {
  position: relative; width: 56px; height: 56px; margin-top: 28px;
  border-radius: 50%; border: 1.5px solid var(--line);
}
.radar span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold);
  animation: ping 2s ease-out infinite;
}
.radar::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--gold);
}
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.is-closed .intro-title, .is-closed .intro-text.only-show, .is-closed .scroll-hint { display: none !important; }

/* ---------- footer ---------- */
.footer {
  padding: 24px var(--gutter) calc(32px + var(--safe-b));
  text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.footer a { color: var(--muted); text-decoration: none; display: inline-block; padding: 8px; }

/* ---------- grotere schermen ---------- */
@media (min-width: 640px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .kicker { font-size: 18px; letter-spacing: .32em; }
  .show-meta { font-size: 14px; }
  .btn { width: auto; min-width: 280px; }
  .progress, .error { text-align: left; }
}
@media (min-width: 900px) {
  .hero { min-height: min(62vh, 560px); padding-bottom: 28px; }
  .hero-img { background-image: url("/static/img/hero.jpg"); background-position: 50% 25%; }
  .hero-text { max-width: calc(760px - 2 * var(--gutter)); }
  .kicker { font-size: 22px; }
}
