:root {
  --bg: #25434f;
  --bg-deep: #07131c;
  --panel: #0c1d27;
  --gold: #b8934b;
  --gold-soft: #d3b47a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .68);
  --dim: rgba(255, 255, 255, .42);
  --faint: rgba(255, 255, 255, .13);
  --line: rgba(184, 147, 75, .35);
  --ok: #5fd38a;
  --warn: #f0a44a;
  --danger: #e0574b;

  --ff-display: 'Audiowide', 'Eurostile', sans-serif;
  --ff-body: 'Barlow', system-ui, sans-serif;
  --ff-label: 'Barlow Semi Condensed', 'Barlow', sans-serif;

  --gutter: 16px;
  --r-sm: 8px;
  --r: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg-deep); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--ff-body);
  overflow-x: clip;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.label {
  font-family: var(--ff-label); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- spinner ---------- */
.spinner { width: 28px; height: 28px; color: var(--gold); overflow: visible; }
.spinner--lg { width: 72px; height: 72px; }
.spinner .sp-orbit { transform-origin: 50px 50px; animation: spin 2.4s linear infinite; }
.spinner .sp-sweep { transform-origin: 50px 50px; animation: spin 1.1s linear infinite reverse; }
.spinner .sp-core { transform-origin: 50px 50px; animation: pulse 1.2s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg-deep);
  transition: opacity .5s var(--ease), visibility .5s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__label { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- shared bits ---------- */
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; color: var(--gold); }
.eyebrow__icon { width: 14px; height: 14px; }
.blip { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blip 2s infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(95,211,138,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(95,211,138,0); } }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--gold); border-radius: var(--r-sm);
  font: 700 15px/1 var(--ff-label); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .12s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--gold); color: var(--bg-deep); }
@media (hover: hover) { .btn--primary:hover { background: var(--gold-soft); } }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--block { width: 100%; }
.btn .btn__spinner { position: absolute; width: 26px; height: 26px; color: var(--bg-deep); opacity: 0; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn__text { opacity: 0; }
.btn.is-busy .btn__spinner { opacity: 1; }

.field { display: grid; gap: 6px; }
.field__label { font-size: 12px; color: var(--muted); }
input[type="text"], input[type="password"] {
  width: 100%; min-height: 54px; padding: 0 14px;
  background: rgba(7, 19, 28, .7);
  border: 1px solid var(--faint); border-radius: var(--r-sm);
  color: var(--text); font: 500 18px var(--ff-body); letter-spacing: .02em;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 147, 75, .2); }

.pw { position: relative; }
.pw input { padding-right: 56px; }
.pw__toggle {
  position: absolute; top: 3px; right: 3px; bottom: 3px; width: 48px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-sm); color: var(--dim); cursor: pointer;
  transition: color .2s;
}
.pw__toggle svg { width: 22px; height: 22px; }
.pw__toggle[aria-pressed="true"] { color: var(--gold); }

.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--muted); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: none; width: 22px; height: 22px; border: 1px solid var(--gold); border-radius: 5px;
  display: grid; place-items: center; transition: background-color .15s;
}
.check__box::after {
  content: ''; width: 10px; height: 6px; margin-top: -3px;
  border: solid var(--bg-deep); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}
.check input:checked + .check__box { background: var(--gold); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(184, 147, 75, .35); }

.form-msg { min-height: 1.4em; margin: 0; font: 600 14px var(--ff-label); letter-spacing: .03em; color: var(--danger); }

/* ---------- gate ---------- */
.gate { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg-deep); }
.gate__media { position: relative; flex: 1 1 auto; min-height: 44dvh; overflow: hidden; background: var(--bg-deep); }
.gate__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 52% 40%;
  opacity: 0;
  transform: scale(1.08) translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: opacity 1s ease, transform 7s var(--ease-out);
}
.gate.is-ready .gate__media img { opacity: 1; transform: scale(1) translateZ(0); }
.gate__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,19,28,0) 45%, var(--bg-deep) 100%);
}
.gate__panel {
  position: relative; z-index: 1;
  padding: 4px var(--gutter) calc(24px + var(--safe-b));
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s .25s var(--ease), transform .7s .25s var(--ease);
}
.gate.is-ready .gate__panel { opacity: 1; transform: none; }
.gate__title { margin: 0 0 6px; font: 400 25px/1.15 var(--ff-display); color: var(--gold); }
.gate__lede { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.gate__form { display: grid; gap: 12px; }
.gate__form .field { gap: 0; margin-bottom: -6px; }
.gate__form .btn { width: 100%; margin-top: 2px; }

/* ---------- app shell ---------- */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr; background: var(--bg-deep); }
.art { display: none; }
.shell {
  position: relative; min-width: 0; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.appbar {
  position: relative; z-index: 5;
  padding: var(--safe-t) var(--gutter) 10px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.appbar__row { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.appbar__brand { display: flex; align-items: center; gap: 10px; font: 400 14px var(--ff-display); color: var(--gold); white-space: nowrap; }
.appbar__brand em { font-style: normal; color: var(--text); }
.appbar__mark { width: 22px; height: 22px; color: var(--gold); }
.icon-btn {
  width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--dim); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { background: rgba(255,255,255,.06); }

/* voortgang: gelijke kolommen, labels passen altijd */
.track__list {
  position: relative; list-style: none; margin: 0 calc(var(--gutter) * -.5); padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.track__list::before, .track__progress {
  content: ''; position: absolute; top: 15px; height: 2px; margin-top: -1px;
  left: calc(100% / 12);
}
.track__list::before { right: calc(100% / 12); background: repeating-linear-gradient(90deg, var(--faint) 0 4px, transparent 4px 8px); }
.track__progress { background: var(--gold); transition: width .8s var(--ease); }
.track__item { position: relative; z-index: 1; min-width: 0; }
.track__btn {
  width: 100%; display: grid; justify-items: center; gap: 5px;
  padding: 0; background: none; border: 0; cursor: pointer;
}
.track__node {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--bg-deep); border: 1.5px solid var(--faint); border-radius: 50%;
  font: 700 13px var(--ff-label); color: var(--muted); font-variant-numeric: tabular-nums;
  transition: border-color .3s, background-color .3s, color .3s, transform .35s var(--ease-out), box-shadow .3s;
}
.track__node svg { width: 14px; height: 14px; }
.track__name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 10.5px/1.2 var(--ff-label); letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
  transition: color .3s;
}
.track__item.is-open .track__node { border-color: var(--gold); color: var(--text); }
.track__item.is-cured .track__node { background: var(--node-color, var(--gold)); border-color: var(--node-color, var(--gold)); color: #fff; }
.track__item.is-locked .track__node { color: var(--dim); }
.track__item.is-current .track__node { transform: scale(1.12); box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 4.5px var(--gold); }
.track__item.is-current .track__name { color: var(--gold); }

/* paginaruimte */
.viewport { position: relative; overflow: hidden; min-height: 0; }
.page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
}
.page.is-current { visibility: visible; }
.page__inner { max-width: 620px; margin: 0 auto; padding: 22px var(--gutter) 36px; }
.page.enter-next { animation: in-next .42s var(--ease-out) both; }
.page.enter-prev { animation: in-prev .42s var(--ease-out) both; }
.page.leave-next { visibility: visible; animation: out-next .32s var(--ease) both; }
.page.leave-prev { visibility: visible; animation: out-prev .32s var(--ease) both; }
@keyframes in-next { from { opacity: 0; transform: translate3d(48px, 0, 0); } }
@keyframes in-prev { from { opacity: 0; transform: translate3d(-48px, 0, 0); } }
@keyframes out-next { to { opacity: 0; transform: translate3d(-36px, 0, 0); } }
@keyframes out-prev { to { opacity: 0; transform: translate3d(36px, 0, 0); } }

/* onderbalk */
.tabbar {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px;
  padding: 8px var(--gutter) calc(8px + var(--safe-b));
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.tabbar__btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--gold); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, opacity .25s, transform .12s;
}
.tabbar__btn:active { transform: scale(.92); }
.tabbar__btn svg { width: 20px; height: 20px; }
.tabbar__btn--prev svg { transform: scaleX(-1); }
.tabbar__btn:disabled { opacity: 0; pointer-events: none; }
.tabbar__btn.is-ready { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); animation: nudge 2.4s 1s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(4px); } 90% { transform: translateX(-1px); } }
.tabbar__info { min-width: 0; display: grid; justify-items: center; text-align: center; line-height: 1.25; }
.tabbar__title {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 15px var(--ff-label); letter-spacing: .02em;
}
.tabbar__count { font: 600 11px var(--ff-label); letter-spacing: .16em; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- page header ---------- */
.ph { margin-bottom: 20px; }
.ph__kicker { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.ph__code { font: 600 12px var(--ff-label); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ph__title { margin: 0; font: 400 clamp(26px, 7.6vw, 34px)/1.12 var(--ff-display); color: var(--gold); }
.ph__sub { margin: 4px 0 0; font: 600 13px var(--ff-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.status {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: 99px;
  font: 700 11px var(--ff-label); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.06);
}
.status--active { color: var(--warn); background: rgba(240,164,74,.12); }
.status--active::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; animation: flash 1.2s steps(2) infinite; }
.status--cured { color: var(--ok); background: rgba(95,211,138,.12); }
.status--locked { color: var(--dim); }
@keyframes flash { 50% { opacity: .2; } }

/* ---------- intro: tabs ---------- */
.seg {
  position: sticky; top: 0; z-index: 3;
  margin: 0 calc(var(--gutter) * -1) 18px; padding: 8px var(--gutter);
  background: linear-gradient(var(--bg) 80%, rgba(37,67,79,0));
}
.seg__track {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 4px; border-radius: 12px;
  background: rgba(7,19,28,.75); border: 1px solid var(--faint);
}
.seg__ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 9px; background: var(--gold);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .4s var(--ease-out);
}
.seg__btn {
  position: relative; z-index: 1; height: 40px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font: 700 13px var(--ff-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.seg__btn svg { width: 15px; height: 15px; }
.seg__btn[aria-selected="true"] { color: var(--bg-deep); }
.seg__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.seg__btn[aria-selected="true"] .seg__dot { background: var(--bg-deep); }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; }
.tabpanel.in-next { animation: in-next .4s var(--ease-out) both; }
.tabpanel.in-prev { animation: in-prev .4s var(--ease-out) both; }

/* ---------- video player ---------- */
.player {
  position: relative; margin: 0 auto;
  width: min(100%, calc((100dvh - 300px) * 9 / 16)); min-width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.35);
}
.player--wide { width: 100%; min-width: 0; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__cover {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; align-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(7,19,28,.15), rgba(7,19,28,.65));
  border: 0; cursor: pointer; color: var(--text);
  transition: opacity .35s;
}
.player__btn {
  position: relative; width: 76px; height: 76px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold); color: var(--bg-deep);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .15s;
}
.player__btn::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--gold); opacity: .6;
  animation: ring 2s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
.player__cover:active .player__btn { transform: scale(.94); }
.player__btn svg { width: 32px; height: 32px; margin-left: 4px; }
.player__btn--replay svg { margin-left: 0; width: 30px; height: 30px; }
.player__hint { font: 600 13px var(--ff-label); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.player.is-started .player__cover { opacity: 0; pointer-events: none; }

/* tikvlak + grote speelknop bij pauze */
.player__tap {
  position: absolute; inset: 0; z-index: 1;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.player__state {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  pointer-events: none; opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .25s var(--ease-out);
}
.player__state .player__btn::before { display: none; }
.player.is-started.is-paused:not(.is-ended):not(.is-loading) .player__state { opacity: 1; transform: none; }

/* bedieningsbalk */
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: 40px 1fr auto 40px; align-items: center; gap: 6px;
  padding: 26px 8px 8px;
  background: linear-gradient(180deg, rgba(7,19,28,0), rgba(7,19,28,.85));
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.player.is-started:not(.is-ended) .player__bar { opacity: 1; pointer-events: auto; }
.player.is-started.is-idle:not(.is-seeking) .player__bar { opacity: 0; pointer-events: none; }
.player__ctl {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
}
.player__ctl svg { width: 20px; height: 20px; }
.player__ctl:active { background: rgba(255,255,255,.12); }
.player__progress {
  position: relative; height: 28px; cursor: pointer; touch-action: none;
}
.player__progress::before, .player__buffer, .player__fill {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 2px; transform-origin: left;
}
.player__progress::before { background: rgba(255,255,255,.22); }
.player__buffer { background: rgba(255,255,255,.35); transform: scaleX(0); }
.player__fill { background: var(--gold); transform: scaleX(0); }
.player.is-seeking .player__progress::before, .player.is-seeking .player__buffer, .player.is-seeking .player__fill { height: 6px; margin-top: -3px; }
.player__time { font: 600 12px var(--ff-label); letter-spacing: .06em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player:fullscreen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.player.is-ended .player__cover { opacity: 1; pointer-events: auto; }
.player__loading {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  background: rgba(7,19,28,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.player.is-loading .player__loading { opacity: 1; transition-delay: .12s; }
.player__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 100%; margin: 14px auto 0;
  font: 600 12px var(--ff-label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.player__meta b { color: var(--danger); font-weight: 600; }

.panel-cta { display: grid; gap: 10px; margin-top: 20px; }

/* brief */
.letter {
  position: relative; padding: 24px 20px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.letter::before {
  content: 'Vertrouwelijk'; position: absolute; top: -10px; left: 16px; padding: 0 8px;
  background: var(--bg); border-radius: 4px;
  font: 700 11px/20px var(--ff-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.letter p { margin: 0 0 1em; }
.letter__salute { font: 600 20px var(--ff-label); color: var(--gold-soft); }
.letter__sign { margin-top: 1.6em !important; white-space: pre-line; color: var(--muted); font-style: italic; }
.letter.is-revealing p { animation: line-in .6s var(--ease-out) both; }
.letter__end { display: flex; align-items: flex-end; gap: 6px; }
.letter__end .letter__sign { margin-bottom: 0; }
.letter.is-revealing .letter__end p { animation-delay: 1.05s; }
/* handgeschreven kus */
.kiss {
  flex: none; width: 38px; height: 34px; margin: 0 0 0 4px;
  transform: rotate(-6deg);
  overflow: visible;
}
.kiss path {
  fill: none; stroke: #e46a5e; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.letter.is-revealing .kiss path { animation: ink .45s cubic-bezier(.5, 0, .3, 1) 1.55s both; }
.letter.is-revealing .kiss path + path { animation-delay: 1.95s; }
@keyframes ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes line-in { from { opacity: 0; transform: translateY(12px); } }

/* missie */
.mission-hero {
  position: relative; margin-bottom: 22px; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--bg-deep);
}
.mission-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%; }
.mission-hero__tag {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; border-radius: 99px; background: rgba(7,19,28,.82);
  font: 700 11px var(--ff-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.section-label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 700 12px var(--ff-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.diseases { display: grid; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.disease {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 14px; text-align: left;
  background: var(--panel); border: 1px solid var(--faint); border-radius: var(--r);
  cursor: pointer; transition: border-color .2s, transform .12s;
}
.disease:active { transform: scale(.985); }
.disease__cube {
  width: 18px; height: 18px; background: var(--c);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.28), inset 2px 2px 0 rgba(255,255,255,.18);
}
.disease__cube.is-dark { outline: 1px solid rgba(255,255,255,.35); }
.disease__name { display: grid; line-height: 1.25; }
.disease__name strong { font: 600 16px var(--ff-label); letter-spacing: .02em; }
.disease__name small { font: 600 11px var(--ff-label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.steps { display: grid; gap: 14px; margin: 0 0 6px; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font: 700 14px var(--ff-label);
}
.steps strong { display: block; color: var(--text); font-weight: 600; }

/* ---------- dossier (level) ---------- */
.dossier { position: relative; background: var(--panel); border: 1px solid var(--faint); border-radius: var(--r); overflow: hidden; }
.dossier__band { height: 5px; background: var(--level-color); }
.dossier__body { padding: 20px 18px 22px; }
.dossier__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cubes { display: flex; gap: 5px; }
.cube {
  width: 13px; height: 13px; background: var(--level-color);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.28), inset 2px 2px 0 rgba(255,255,255,.18);
  animation: cube-in .5s var(--ease) both;
}
.cube:nth-child(2) { animation-delay: .08s; }
.cube:nth-child(3) { animation-delay: .16s; }
.dossier[data-level="4"] .cube { outline: 1px solid rgba(255,255,255,.35); }
@keyframes cube-in { from { opacity: 0; transform: translateY(-10px) rotate(-20deg); } }
.dossier.is-cured .cube { animation: cube-out .6s var(--ease) both; }
.dossier.is-cured .cube:nth-child(2) { animation-delay: .1s; }
.dossier.is-cured .cube:nth-child(3) { animation-delay: .2s; }
@keyframes cube-out { to { opacity: .18; transform: scale(.7); } }
.meta-label { font: 600 12px var(--ff-label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.briefing { margin: 0 0 22px; }
.answer { display: grid; gap: 8px; }
.answer .section-label { margin-bottom: 4px; }
.answer__row { display: flex; gap: 8px; }
.answer__row input { flex: 1; min-width: 0; }
.btn--send { flex: none; min-width: 54px; padding: 0 16px; }
.btn--send .btn__text { display: flex; align-items: center; gap: 8px; }
.btn--send .btn__text svg { width: 20px; height: 20px; }
@media (max-width: 400px) { .btn--send .btn__text span { display: none; } .btn--send { padding: 0; width: 54px; } }
.answer.is-wrong input, .gate__form.is-wrong input { border-color: var(--danger); animation: shake .45s; }
@keyframes shake {
  20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}

.outbreak { position: fixed; z-index: 40; pointer-events: none; width: 0; height: 0; }
.outbreak span {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px;
  border: 2px solid var(--danger); border-radius: 50%;
  animation: ripple .9s var(--ease) forwards;
}
.outbreak span:nth-child(2) { animation-delay: .12s; }
.outbreak span:nth-child(3) { animation-delay: .24s; }
@keyframes ripple { from { transform: scale(.1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

.cured { position: relative; padding-top: 4px; }
.stamp {
  display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 20px;
  padding: 8px 14px 8px 10px;
  border: 2px solid var(--ok); border-radius: 6px; color: var(--ok);
  font: 400 20px var(--ff-display); letter-spacing: .06em;
  transform: rotate(-4deg);
}
.stamp svg { width: 24px; height: 24px; }
.stamp.is-new { animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }
.reward p { margin: 0 0 1em; }
.reward.is-new p { animation: line-in .6s var(--ease-out) both; }

.hints { margin-top: 22px; }
.hints__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hintbtn {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 10px 12px; text-align: left;
  background: rgba(7,19,28,.5); border: 1px solid var(--faint); border-radius: var(--r);
  color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .12s;
}
.hintbtn:active { transform: scale(.97); }
.hintbtn.is-available { border-color: var(--gold); background: rgba(184,147,75,.1); }
.hintbtn.is-locked, .hintbtn.is-open { cursor: default; }
.hintbtn.is-locked:active, .hintbtn.is-open:active { transform: none; }
.hintbtn__icon {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold);
}
.hintbtn__icon svg { width: 15px; height: 15px; }
.hintbtn.is-open .hintbtn__icon { background: var(--gold); color: var(--bg-deep); }
.hintbtn.is-locked .hintbtn__icon { border-color: var(--faint); color: var(--dim); }
.hintbtn__text { display: grid; min-width: 0; line-height: 1.25; }
.hintbtn__text strong { font: 700 14px var(--ff-label); letter-spacing: .1em; text-transform: uppercase; }
.hintbtn__text small { font: 500 13px var(--ff-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hintbtn.is-locked .hintbtn__text strong { color: var(--dim); }
.hintbtn.is-available .hintbtn__text small { color: var(--gold-soft); }
.hint__spinner { display: none; width: 22px; height: 22px; }
.hintbtn.is-loading .hintbtn__icon > svg:not(.hint__spinner) { display: none; }
.hintbtn.is-loading .hint__spinner { display: block; }
.hints__texts { display: grid; gap: 10px; margin-top: 10px; }
.hinttext { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease-out), opacity .4s; }
.hinttext.is-collapsed { grid-template-rows: 0fr; opacity: 0; }
.hinttext > div { overflow: hidden; }
.hinttext p {
  margin: 0; padding: 12px 14px;
  border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(184,147,75,.08);
}
.hinttext__n { display: block; font: 700 11px var(--ff-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.quarantine { position: relative; padding: 6px 0 4px; }
.redacted { display: grid; gap: 10px; margin-bottom: 24px; }
.redacted span { height: 14px; background: rgba(255,255,255,.08); border-radius: 3px; }
.redacted span:nth-child(1) { width: 92%; }
.redacted span:nth-child(2) { width: 78%; }
.redacted span:nth-child(3) { width: 85%; }
.redacted span:nth-child(4) { width: 40%; }
.quarantine__note {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px dashed var(--faint); border-radius: var(--r-sm);
  color: var(--muted); font-size: 15px;
}
.quarantine__note svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.tape {
  position: absolute; left: -30px; right: -30px; top: 34px;
  padding: 6px 0; text-align: center; transform: rotate(-6deg);
  background: repeating-linear-gradient(-45deg, #e8c33a 0 14px, #07131c 14px 28px);
  font: 700 12px var(--ff-label); letter-spacing: .3em; text-transform: uppercase; color: transparent;
  opacity: .85;
}
.tape span { background: var(--bg-deep); color: #e8c33a; padding: 2px 10px; }

/* finale */
.words { display: grid; gap: 10px; margin-bottom: 4px; }
.word { display: flex; align-items: stretch; }
.word__n {
  flex: none; width: 48px; display: grid; place-items: center;
  border: 1px solid var(--faint); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--bg-deep); font: 400 16px var(--ff-display); color: var(--gold);
}
.word input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.finale-media { margin-top: 6px; }
.pending {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted);
}

/* ---------- modal (bottom sheet) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 10, 15, .7); animation: fade .25s both; }
.modal__card {
  position: relative; margin: 0; padding: 12px var(--gutter) calc(20px + var(--safe-b));
  background: var(--bg-deep); border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  animation: sheet .4s var(--ease-out) both;
}
.modal__grip { display: block; width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 2px; background: var(--faint); }
.modal__title { margin: 0 0 8px; font: 400 22px/1.2 var(--ff-display); color: var(--gold); }
.modal__text { margin: 0 0 20px; color: var(--muted); }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); z-index: 70;
  max-width: calc(100% - 32px); padding: 10px 16px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 99px;
  font: 600 14px var(--ff-label); letter-spacing: .03em;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tablet: app gecentreerd ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .app { grid-template-columns: minmax(0, 640px); justify-content: center; }
  .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .modal { align-items: center; justify-items: center; }
  .modal__card { width: min(440px, 92vw); border: 1px solid var(--line); border-radius: 16px; padding-bottom: 22px; }
  .modal__grip { display: none; }
  @keyframes sheet { from { transform: translateY(24px); opacity: 0; } }
}

/* ---------- desktop: kunst links, app rechts ---------- */
@media (min-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(440px, 540px); justify-content: stretch; }
  .shell { border-right: 0; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
  .art { position: relative; display: block; overflow: hidden; background: var(--bg-deep); }
  .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,19,28,.35) 0%, rgba(7,19,28,0) 22%, rgba(7,19,28,0) 75%, rgba(7,19,28,.6) 100%); }
  .art__copy {
    position: absolute; left: 32px; top: 28px; z-index: 1;
    padding: 14px 18px; border-radius: var(--r);
    background: rgba(7,19,28,.72); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .art__eyebrow { margin: 0 0 10px; font-size: 12px; color: var(--gold); }
  .art__progress { display: flex; align-items: center; gap: 16px; }
  .art__cubes { display: flex; gap: 8px; }
  .art__cubes i {
    width: 18px; height: 18px; background: var(--c); opacity: .25;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,.28), inset 2px 2px 0 rgba(255,255,255,.18);
    transition: opacity .5s;
  }
  .art__cubes i.is-on { opacity: 1; }
  .art__cubes i:last-child { outline: 1px solid rgba(255,255,255,.45); }
  .art__count { margin: 0; font: 600 14px var(--ff-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

  .gate { flex-direction: row; }
  .gate__media { min-height: 100dvh; }
  .gate__media::after { background: linear-gradient(90deg, rgba(7,19,28,0) 60%, var(--bg-deep) 100%); }
  .gate__panel { flex: 0 0 440px; display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spinner .sp-orbit, .spinner .sp-sweep { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
}
.page--intro .page__inner { padding-top: 6px; }

/* =========================================================
   Mobiel als app: volledige hoogte, zo min mogelijk scrollen
   ========================================================= */
.app { top: var(--vv-top, 0px); bottom: auto; height: var(--app-h, 100%); }
img { -webkit-touch-callout: none; }
.briefing { margin-bottom: 18px; }
.ph { margin-bottom: 14px; }
.ph__kicker { margin-bottom: 4px; }
.dossier__body { padding: 16px 16px 18px; }
.dossier__meta { margin-bottom: 12px; }
.page__inner { padding-top: 16px; padding-bottom: 24px; }

@media (hover: none) {
  .page { scrollbar-width: none; }
  .page::-webkit-scrollbar { display: none; }
}

/* toegangsscherm: precies één scherm hoog */
.gate { height: 100dvh; min-height: 0; overflow-y: auto; }
.gate__media { min-height: 120px; }

/* compacte bovenbalk op telefoons: alleen de voortgang */
@media (max-width: 639px) {
  .appbar { padding-top: calc(var(--safe-t) + 10px); padding-bottom: 8px; }
  .appbar__row { display: none; }
}
.linkbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; margin: 0 auto; padding: 0 12px;
  background: none; border: 0; cursor: pointer;
  font: 600 13px var(--ff-label); letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.linkbtn svg { width: 16px; height: 16px; }
@media (min-width: 640px) { .linkbtn { display: none; } }

.tabbar { padding-top: 6px; padding-bottom: calc(6px + var(--safe-b)); }

/* intro-video vult de resterende ruimte */
.page--intro.is-video { overflow: hidden; }
.page--intro.is-video .page__inner { height: 100%; display: flex; flex-direction: column; padding-bottom: 14px; }
.page--intro.is-video .seg { flex: none; }
.page--intro.is-video #panel-0 { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player-fit { position: relative; flex: 1; min-height: 0; }
.player-fit .player {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 100%; width: auto; min-width: 0; max-width: 100%;
}
.seg { margin-bottom: 12px; }

/* missie: compacte lijst */
.mission-hero { aspect-ratio: 2.4 / 1; margin-bottom: 16px; }
.diseases { gap: 6px; margin-bottom: 18px; }
.disease { min-height: 50px; padding: 7px 12px; }
.steps { gap: 8px; margin-bottom: 4px; }
.steps li { grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.4; }
.steps li::before { width: 26px; height: 26px; font-size: 13px; }
.panel-cta { margin-top: 16px; gap: 4px; }
@media (max-height: 760px) { .mission-hero { display: none; } }

/* lage schermen (iPhone SE e.d.) */
@media (max-height: 700px) {
  .ph__title { font-size: 24px; }
  .track__node { width: 26px; height: 26px; }
  .track__list::before, .track__progress { top: 13px; }
  .tabbar__btn { width: 44px; height: 44px; }
  input[type="text"], input[type="password"] { min-height: 50px; }
  .btn { min-height: 50px; }
  .btn--send { width: 50px; min-width: 50px; }
  .hintbtn { min-height: 54px; }
}

/* tijdens typen: onderbalk weg, meer ruimte boven het toetsenbord */
.kb-open .tabbar { display: none; }
.kb-open .track__name { display: none; }
@media (max-height: 760px) {
  .page--intro .section-label { margin-bottom: 8px; }
  .diseases { gap: 5px; margin-bottom: 12px; }
  .disease { min-height: 46px; }
  .disease__name small { display: none; }
  .steps { gap: 6px; }
  .steps li { font-size: 14px; line-height: 1.3; }
  .page--intro .panel-cta { margin-top: 12px; }
}
@media (max-height: 700px) {
  .words { gap: 6px; }
  .word input { min-height: 46px; }
  .word__n { width: 42px; }
  .briefing { font-size: 16px; line-height: 1.5; margin-bottom: 14px; }
  .form-msg:empty { min-height: 0; }
}
