.app { max-width: 480px; margin: 0 auto; min-height: 100%; min-height: 100dvh; position: relative;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); }
.screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 0 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen[hidden] { display: none; }
.screen.center { justify-content: center; text-align: center; align-items: center; }

/* Welkom (licht, met het jubileumbeeld) */
.welcome { padding: 0; background: #fff; color: #17202e; color-scheme: light; }
.hero-visual { flex: 1 1 auto; min-height: 120px; width: 100%; object-fit: contain; padding: 8px 6px 0; mix-blend-mode: multiply; }
.welcome-body { flex: none; padding: 0 22px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; text-align: left; font-size: .9rem; color: #3b4556; }
.field input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #c9d0da; background: #fff; color: #17202e; font-size: 16px; }
.field input:focus { outline: 2px solid #b38a3c; outline-offset: 0; border-color: #b38a3c; }
.field input.invalid { border-color: #c0392b; }
.field small { color: #c0392b; font-size: .82rem; }
@media (max-height: 760px) {
  .welcome-title { font-size: 2.3rem; }
  .lead { font-size: .98rem; }
  .welcome-body { gap: 10px; }
  .btn-gold { min-height: 52px; }
}
.welcome-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 13vw, 3.6rem); line-height: 1; margin: 0;
  letter-spacing: .04em; text-transform: uppercase; color: #17202e; }
.lead { margin: 0; font-size: 1.08rem; line-height: 1.5; color: #3b4556; max-width: 30ch; justify-self: center; }
.consent { display: flex; gap: 12px; align-items: flex-start; text-align: left; font-size: .92rem; line-height: 1.4; color: #3b4556;
  padding: 12px 14px; border: 1px solid #dde2ea; border-radius: 12px; cursor: pointer; background: #f6f7f9; }
.consent input { width: 22px; height: 22px; accent-color: #b38a3c; flex: none; margin: 0; }
.fine { margin: 0; font-size: .78rem; color: #6b7585; }
@media (min-width: 481px) { body:has(#s-welcome:not([hidden])) { background: #fff; } }

/* Kop per stap */
.bar { height: 52px; display: flex; align-items: center; }
.back { background: none; border: 0; display: inline-flex; gap: 4px; align-items: center; color: #c3ccd8; font-size: .95rem; padding: 8px 4px 8px 0; cursor: pointer; }
.step { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 1.3rem; text-align: center; margin: 4px 0 6px; }
.step span { color: var(--gold); }
.hint { text-align: center; color: #c9d1dc; margin: 0 auto 18px; font-size: .95rem; line-height: 1.45; max-width: 34ch; }

/* Camera */
.viewfinder { position: relative; flex: 1 1 auto; min-height: 200px; border-radius: 18px; overflow: hidden; background: #1d2533;
  border: 1px solid #344156; box-shadow: 0 20px 50px -25px #000; }
.viewfinder video, .viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.viewfinder video { transform: scaleX(-1); }
.viewfinder video.rear { transform: none; }
.count { position: absolute; inset: auto 0 18px; margin: auto; width: 96px; height: 96px; display: grid; place-items: center; }
.count svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.count circle { fill: rgba(16,21,29,.7); stroke-width: 6; }
.count .trk { stroke: rgba(255,255,255,.15); }
.count .prg { fill: none; stroke: var(--gold-hi); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 0; }
.count span { position: relative; font-family: var(--display); font-size: 2.8rem; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #dfe5ec; line-height: 1.5; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: .9 } to { opacity: 0 } }
.cam-actions { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 0 8px env(safe-area-inset-bottom, 0px); }
.cam-actions.two { padding: 0; }
.cam-actions.two .btn-line { flex: 0 0 auto; }
.cam-actions[hidden] { display: none; }
.round { width: 54px; height: 54px; padding: 0; border-radius: 50%; }
.shutter { width: 82px; height: 82px; border-radius: 50%; border: 3px solid var(--gold-hi); background: none; padding: 5px; cursor: pointer; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); transition: transform .12s; }
.shutter:active span { transform: scale(.9); }
.shutter:disabled { opacity: .4; }

/* Auto's */
.cars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); flex: none; }
.car { position: relative; border-radius: 12px; overflow: hidden; border: 1.5px solid #2f3a4a; background: #18202b; cursor: pointer;
  text-align: center; padding: 0; transition: border-color .15s, transform .15s var(--ease); }
.car:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
.car .ph { aspect-ratio: 3/2; position: relative; background: #1d2533; }
.car .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.car .meta { padding: 8px 6px 9px; font-size: .84rem; color: #dfe5ec; font-weight: 500; }
.car .tick { position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-hi); color: #1d150a; transform: scale(0); transition: transform .2s var(--ease); }
.car .tick .icon { width: 18px; height: 18px; }
.car[aria-checked="true"] { border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi), 0 12px 30px -14px rgba(234,208,143,.6); }
.car[aria-checked="true"] .tick { transform: scale(1); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--ink) 35%); max-width: 480px; margin: 0 auto; }

/* Wachten */
.wait-visual { position: relative; width: 100%; aspect-ratio: 3/2; border-radius: 18px; overflow: hidden; margin: 10px 0 22px;
  background: radial-gradient(90% 80% at 50% 110%, #6a5236, #1a212c 70%); }
.wait-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.8); animation: drift 14s ease-in-out infinite alternate; }
.wait-visual img[src=""], .wait-visual img:not([src]) { display: none; }
@keyframes drift { from { transform: scale(1.02) } to { transform: scale(1.12) } }
.spinner { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold-hi); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.wait-sub { color: var(--muted); font-size: .88rem; margin: 0; }

/* Klaar */
.result { flex: 0 1 auto; min-height: 0; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid #344156; box-shadow: 0 24px 60px -28px #000; }
.result img { width: 100%; animation: reveal 1s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: scale(1.04); filter: blur(8px) } to { opacity: 1; transform: none; filter: none } }
.onscreen { text-align: center; color: var(--gold-hi); margin: 16px 0 0; font-size: .95rem; }
.done-actions { flex: none; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; margin-top: 18px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.autoback { text-align: center; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.done-actions .btn-line { padding: 0 .5em; font-size: .85rem; text-decoration: none; }

dialog { background: var(--panel); color: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 24px; max-width: 340px; text-align: center; }
dialog::backdrop { background: rgba(8,11,16,.78); }
dialog p { margin: 0 0 16px; line-height: 1.45; color: #c9d1dc; }
dialog img { margin: 0 auto 18px; border-radius: 12px; background: #fff; padding: 8px; }
dialog .btn-line { width: 100%; margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.screen > .step:first-child { margin-top: calc(24px + env(safe-area-inset-top, 0px)); }
.cam-actions.two .btn-gold { font-size: .95rem; padding: 0 1em; letter-spacing: .05em; }
