/*
 * De Studio 375 muziekquiz. Huisstijl:
 *   Jumbo koppen: Alfarn Regular in kapitalen (#B3CDEC)
 *   Koppen:       Forma DJR Deck Bold (#B3CDEC)
 *   Lopende tekst: Forma DJR Deck Regular (#FFFFFF), op zwart
 *
 * Alfarn en Forma DJR Deck komen uit de Adobe Fonts-kit kmf8ajw (link in de <head>).
 * Laadt de kit niet (bijvoorbeeld omdat het domein nog niet in de kit staat), dan vallen we
 * terug op lijkende open letters: Archivo Expanded en Inter Tight.
 * Let op: het live domein moet in de kit worden toegevoegd op fonts.adobe.com.
 */

@font-face {
  font-family: 'Studio Kop Reserve';
  src: url('/assets/fonts/reserve-kop-archivo-expanded.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Studio Tekst Reserve';
  src: url('/assets/fonts/reserve-tekst-inter-tight.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Studio Tekst Reserve';
  src: url('/assets/fonts/reserve-tekst-inter-tight-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --zwart: #000000;
  --blauw: #B3CDEC;
  --blauw-zacht: rgba(179, 205, 236, .14);
  --wit: #ffffff;
  --grijs: #a3a3a3;
  --lijn: #4a4a4a;
  --vlak: #121212;
  --rood: #ff8a7a;
  --kop: 'alfarn', 'Studio Kop Reserve', 'Arial Black', sans-serif;
  --tekst: 'forma-djr-deck', 'Studio Tekst Reserve', 'Helvetica Neue', Arial, sans-serif;
  --rand: 16px;
  --breed: 560px;
  --pil: 999px;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--zwart); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent; /* zwart komt van <html>; zo kan het startbeeld (z-index -1) erachter */
  color: var(--wit);
  font-family: var(--tekst);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blauw); outline-offset: 3px; }
a { color: var(--blauw); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* ---------- Bovenbalk ---------- */

.balk {
  width: 100%;
  max-width: calc(var(--breed) + 2 * var(--rand));
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) var(--rand) 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.balk-logo img { width: 132px; height: auto; }
.balk-track {
  margin: 0;
  font-weight: 700;
  color: var(--blauw);
  font-variant-numeric: tabular-nums;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--breed) + 2 * var(--rand));
  margin: 0 auto;
  padding: 8px var(--rand) 0;
}

/*
 * Elk scherm past op één telefoonscherm: de schermen vullen de hoogte en de knop staat
 * vast onderaan (.knop-balk). Ruimte die overblijft gaat naar het beeld of de plaat.
 */
.scherm {
  --balk-h: 64px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--balk-h) - 8px);
  min-height: calc(100dvh - var(--balk-h) - 8px);
  padding-bottom: 140px; /* ruimte voor de vaste knop */
}
.scherm-klaar { padding-bottom: 8px; }
.link-opnieuw { margin-bottom: 24px !important; }
/* Op het startscherm ligt de bovenbalk over het beeld heen. */
body[data-scherm="start"] .balk { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.scherm-start { min-height: calc(100vh - 8px); min-height: calc(100dvh - 8px); padding-bottom: 124px; }

/* ---------- Typografie ---------- */

.jumbo {
  margin: 0 0 16px;
  font-family: var(--kop);
  font-weight: 400;
  font-stretch: 125%;
  text-transform: uppercase;
  color: var(--blauw);
  font-size: clamp(2.6rem, 13vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.01em;
  overflow-wrap: normal;
  hyphens: manual;
}
/* De reserveletter is lichter dan Alfarn; daarom vetter zetten zolang Alfarn er niet is. */
.jumbo { font-variation-settings: 'wght' 800; }

.bovenkop {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--wit);
  font-size: 1rem;
}
.stip { color: var(--blauw); }

.haak {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.tekst { margin: 0 0 12px; }
.tekst-sterk { font-weight: 700; }

.meta {
  margin: 12px 0 0;
  color: var(--grijs);
  font-size: .95rem;
  text-align: center;
}

/* ---------- Knoppen ---------- */

.knop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 14px 24px;
  border: 2px solid var(--blauw);
  border-radius: var(--pil);
  background: var(--blauw);
  color: var(--zwart);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.knop:active { transform: scale(.98); }
.knop:disabled { opacity: .6; cursor: default; }
.knop.is-bezig { opacity: .7; pointer-events: none; }

.knop-rand {
  background: transparent;
  color: var(--wit);
  border-color: var(--wit);
}

.knop-spotify {
  background: transparent;
  color: var(--wit);
  border-color: var(--lijn);
  margin-top: 12px;
}
.knop-spotify svg { color: #1ed760; flex: none; }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blauw);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-opnieuw {
  display: block;
  margin: 28px auto 0;
  font-size: 1rem;
}

/* ---------- Startscherm ---------- */

/*
 * Campagnebeeld als achtergrond bovenaan het startscherm, met een verloop naar zwart
 * waar de tekst begint. Op telefoons het staande beeld, op grote schermen het brede.
 */
.start-beeld {
  position: relative;
  z-index: -1;
  flex: 1 1 0;
  min-height: 150px;
  max-height: 64vh;
  margin: -8px calc(50% - 50vw) -72px;
  overflow: hidden;
  animation: in-beeld 1.2s cubic-bezier(.2, .8, .2, 1) both;
}
.start-beeld img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
}
.start-beeld::after {
  content: '';
  position: absolute;
  inset: -2px; /* iets ruimer, zodat er geen dun randje van het beeld zichtbaar blijft */
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 18%,
    rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .85) 80%, #000 92%);
}
.start-tekst { position: relative; }
.scherm-start .jumbo { animation: in-op .6s .1s cubic-bezier(.2, .8, .2, 1) both; }

@media (min-width: 700px) {
  .start-beeld img { object-position: center 40%; }
}


/* ---------- Vraagscherm ---------- */

.voortgang {
  display: flex;
  gap: 6px;
  margin: 8px 0 28px;
}
.voortgang span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--lijn);
  transition: background-color .3s ease;
}
.voortgang span.is-klaar { background: var(--blauw); }
.voortgang span.is-nu { background: var(--wit); }

.vraag-kaart.is-in { animation: in-op .35s cubic-bezier(.2, .8, .2, 1) both; }
.vraag-kaart.is-uit { opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease; }

.vraag-tekst {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: clamp(1.45rem, 6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  outline: none;
}

/* Antwoorden als tracklist */
.opties {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--lijn);
}
.opties li {
  border-bottom: 1px solid var(--lijn);
  animation: in-op .35s cubic-bezier(.2, .8, .2, 1) both;
}
.optie {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 14px 12px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--wit);
  text-align: left;
  font-size: 1.15rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.optie-letter {
  flex: none;
  width: 1.4em;
  font-weight: 700;
  color: var(--blauw);
}
.optie-tekst { flex: 1; font-weight: 700; }
.optie-teken { flex: none; font-weight: 700; font-size: 1.2rem; }
.optie:disabled { cursor: default; }

.optie.is-goed { background: var(--blauw); color: var(--zwart); }
.optie.is-goed .optie-letter { color: var(--zwart); }
.optie.is-goed { animation: tik .35s ease; }
.optie.is-fout { color: var(--rood); }
.optie.is-fout .optie-letter { color: var(--rood); }
.optie.is-fout .optie-tekst { text-decoration: line-through; text-decoration-thickness: 2px; }
.optie.is-andere { opacity: .45; }

/* Schattingsvraag: schuifje met − en +, zodat er geen toetsenbord opent */
.schatting-hint { margin: 0 0 20px; color: var(--grijs); font-size: .95rem; }
.schatting-waarde {
  margin: 0 0 16px;
  text-align: center;
  color: var(--blauw);
  transition: opacity .2s ease;
}
.schatting-waarde.is-leeg { opacity: .35; }
.schatting-getal {
  font-family: var(--kop);
  font-size: clamp(3rem, 16vw, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.schatting-eenheid { display: block; margin-top: 4px; font-weight: 700; font-size: 1.2rem; }
.schatting-rij {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stap {
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--wit);
  border-radius: 50%;
  background: transparent;
  color: var(--wit);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stap:active { background: var(--blauw); border-color: var(--blauw); color: var(--zwart); }
.stap:disabled { opacity: .3; }
.schuif {
  --vul: 50%;
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.schuif::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--blauw) var(--vul), var(--lijn) var(--vul));
}
.schuif::-moz-range-track { height: 8px; border-radius: 4px; background: var(--lijn); }
.schuif::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--blauw); }
.schuif::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--blauw);
  border: 4px solid var(--zwart);
  box-shadow: 0 0 0 2px var(--blauw);
}
.schuif::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blauw);
  border: 4px solid var(--zwart);
  box-shadow: 0 0 0 2px var(--blauw);
}
.schuif:focus-visible { outline: none; }
.schuif:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--blauw), 0 0 0 6px rgba(179, 205, 236, .4); }
.schuif:disabled { opacity: .5; }
.schatting-schaal {
  display: flex;
  justify-content: space-between;
  margin: 4px 62px 0;
  color: var(--grijs);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.visueel-verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Vaste knop onderaan het scherm tijdens de vragen, met een zwart verloop erachter. */
.knop-balk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 28px var(--rand) max(28px, calc(env(safe-area-inset-bottom) + 16px));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 40%);
  pointer-events: none;
}
.knop-balk .meta { margin: 10px 0 0; pointer-events: auto; }
.knop-balk .knop {
  max-width: var(--breed);
  margin: 0 auto;
  pointer-events: auto;
}
.knop-volgende:disabled { opacity: .3; }
.schatting-hint { margin: -2px 0 10px; color: var(--grijs); font-size: .95rem; }
.schatting-eenheid { font-weight: 700; font-size: 1.3rem; color: var(--blauw); }

/* ---------- Eindscherm ---------- */

.plaat {
  position: relative;
  flex: 1 1 0;
  min-height: 120px;
  max-height: 280px;
  margin: 4px 0 20px;
  animation: in-zweef .7s cubic-bezier(.2, .8, .2, 1) both;
}
.plaat-svg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  animation: draai 6s linear infinite;
}
.plaat-label { fill: var(--blauw); }
.plaat-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--zwart);
  pointer-events: none;
}
.plaat-getal {
  font-family: var(--kop);
  font-stretch: 125%;
  font-variation-settings: 'wght' 800;
  font-size: clamp(2.2rem, 10vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plaat-van { font-weight: 700; font-size: .75rem; margin-top: 2px; }

.scherm-eind { text-align: left; }
.jumbo-eind { font-size: clamp(2.3rem, 11.5vw, 4rem); outline: none; }

.blok {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid var(--wit);
}
.blok-titel {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--blauw);
}

.bedankt { outline: none; animation: in-op .4s ease both; }
.bedankt-kort { margin: 16px 0 0; outline: none; }
.scherm-meedoen .blok-titel, .scherm-klaar .blok-titel { outline: none; }
#form-meedoen .veld-label:first-child { margin-top: 8px; }

/* Verzoekje: invulveld met de verstuurknop ernaast */
.veld-rij { display: flex; gap: 8px; margin-top: 12px; }
.veld-rij .veld { flex: 1; min-width: 0; }
.knop-pijl {
  flex: none;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--blauw);
  color: var(--zwart);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}
.knop-pijl:disabled { opacity: .5; }

/* Spotify: zoeken en toevoegen */
.veld-zoek { margin-top: 12px; -webkit-appearance: none; appearance: none; }
.veld-zoek::-webkit-search-cancel-button { filter: grayscale(1) invert(1); opacity: .5; }
.zoek-lijst { list-style: none; margin: 8px 0 0; padding: 0; }
.zoek-lijst li + li { border-top: 1px solid var(--lijn); }
.zoek-optie {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--wit);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zoek-optie img, .toegevoegd img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--vlak);
}
.zoek-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.zoek-tekst strong, .zoek-tekst span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoek-tekst span { color: var(--grijs); font-size: .9rem; }
.zoek-plus {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--blauw);
  color: var(--blauw);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}
.zoek-optie:active .zoek-plus, .zoek-optie.is-bezig .zoek-plus { background: var(--blauw); color: var(--zwart); }
.zoek-optie.is-bezig { opacity: .6; }
.zoek-status { margin: 8px 0 0; color: var(--grijs); font-size: .9rem; min-height: 0; }
.zoek-status:empty { display: none; }
.toegevoegd {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--blauw-zacht);
  outline: none;
  animation: in-op .3s ease both;
}
.toegevoegd p { flex: 1; min-width: 0; margin: 0; }
.toegevoegd strong { display: block; color: var(--blauw); font-size: 1.1rem; }
.toegevoegd .link { flex: none; align-self: flex-start; font-size: .9rem; }
/* Tijdens het zoeken: ruimte maken voor de resultaten */
.scherm-klaar.is-zoeken .bedankt,
.scherm-klaar.is-zoeken #voorbij,
.scherm-klaar.is-zoeken .knop-spotify,
.scherm-klaar.is-zoeken .link-opnieuw,
.scherm-klaar.is-zoeken .voet { display: none; }
.scherm-klaar.is-zoeken .blok { margin-top: 0; border-top: 0; padding-top: 0; }

/* Lage schermen (kleine telefoons): alles iets compacter, zodat het zonder scrollen past */
@media (max-height: 720px) {
  .haak { font-size: 1.25rem; margin-bottom: 8px; }
  .tekst { font-size: .95rem; margin-bottom: 8px; }
  .vraag-tekst { font-size: 1.35rem; margin-bottom: 16px; }
  .optie { min-height: 56px; padding: 10px 12px; }
  .voortgang { margin-bottom: 18px; }
  .veld-label { margin-top: 12px; }
  .veld { min-height: 48px; }
  .knop { min-height: 52px; }
}

/* ---------- Formulieren ---------- */

.veld-label {
  display: block;
  margin: 18px 0 6px;
  font-weight: 700;
}
.veld-hint { font-weight: 400; color: var(--grijs); }
.veld {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid var(--lijn);
  border-radius: 12px;
  background: var(--vlak);
  color: var(--wit);
  font: inherit;
  font-size: 1.1rem; /* 16px of meer: iOS zoomt dan niet in */
  transition: border-color .15s ease;
}
.veld::placeholder { color: #6d6d6d; }
.veld:focus { outline: none; border-color: var(--blauw); }

.vinkje {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 0;
  cursor: pointer;
  line-height: 1.35;
}
.vinkje input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vinkje-vak {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -2px;
  border: 2px solid var(--wit);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: background-color .15s ease;
}
.vinkje input:checked + .vinkje-vak { background: var(--blauw); border-color: var(--blauw); }
.vinkje input:checked + .vinkje-vak::after {
  content: '';
  width: 7px;
  height: 13px;
  border: solid var(--zwart);
  border-width: 0 3px 3px 0;
  transform: translateY(-1px) rotate(45deg);
}
.vinkje input:focus-visible + .vinkje-vak { outline: 3px solid var(--blauw); outline-offset: 3px; }

.melding {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 138, 122, .12);
  color: var(--rood);
  font-weight: 700;
}

.honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Voet ---------- */

.voet {
  margin-top: auto; /* onderaan het laatste scherm */
  padding: 20px 0 max(8px, env(safe-area-inset-bottom));
  color: var(--grijs);
  font-size: .9rem;
  border-top: 1px solid var(--lijn);
}
.voet p { margin: 0 0 6px; }
.voet a { color: var(--grijs); }

/* ---------- Venster ---------- */

.venster {
  width: min(100% - 24px, 560px);
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid var(--lijn);
  border-radius: 20px;
  background: var(--zwart);
  color: var(--wit);
  overflow: hidden;
}
.venster[open] { display: flex; flex-direction: column; animation: in-op .25s ease both; }
.venster::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(3px); }
.venster-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px 20px;
  border-bottom: 1px solid var(--lijn);
}
.venster-kop h2 { margin: 0; font-size: 1.4rem; color: var(--blauw); }
.venster-sluit {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--vlak);
  color: var(--wit);
  font-size: 1.1rem;
  cursor: pointer;
}
.venster-inhoud { padding: 8px 20px 24px; overflow-y: auto; }

/* ---------- Tekstpagina (actievoorwaarden) ---------- */

.tekstpagina { max-width: 680px; margin: 0 auto; padding: 24px var(--rand) 64px; }
.tekstpagina h1 { color: var(--blauw); font-size: 1.9rem; line-height: 1.1; margin: 16px 0 24px; }
.tekstpagina-inhoud h2 { font-size: 1.15rem; color: var(--blauw); margin: 24px 0 8px; }
.tekstpagina-inhoud ul { padding-left: 1.2em; margin: 0; }
.tekstpagina-inhoud li { margin: 0 0 6px; }
.tekstpagina .terug { display: inline-block; margin-bottom: 8px; }
.concept {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--blauw-zacht);
  border: 1px solid var(--blauw);
}

/* Hover alleen op apparaten met een muis; op een telefoon blijft hover anders 'hangen'. */
@media (hover: hover) {
  .knop:hover { background: var(--wit); border-color: var(--wit); }
  .knop-rand:hover { background: var(--wit); color: var(--zwart); }
  .knop-spotify:hover { border-color: var(--wit); background: transparent; color: var(--wit); }
  .optie:hover:not(:disabled) { background: var(--blauw-zacht); }
}

/* Labelkleur van de plaat per uitslag */
.plaat.is-platina .plaat-label { fill: url(#platina); }
.plaat.is-goud .plaat-label { fill: url(#goud); }
.plaat.is-zilver .plaat-label { fill: url(#zilver); }

/* ---------- Animaties ---------- */

@keyframes in-op { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes in-zweef { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes draai { to { transform: rotate(360deg); } }
@keyframes in-beeld { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes tik { 50% { transform: scale(1.02); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 700px) {
  body { font-size: 18px; }

}

/* Heel lage schermen (iPhone SE en kleiner): nog wat compacter */
@media (max-height: 600px) {
  .scherm { --balk-h: 56px; padding-bottom: 120px; }
  .scherm-klaar { padding-bottom: 8px; }
  .balk { padding-top: max(10px, env(safe-area-inset-top)); }
  .balk-logo img { width: 116px; }
  .knop-balk { padding-top: 20px; padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
  .blok-titel { font-size: 1.35rem; }
  .blok { margin-top: 16px; padding-top: 14px; }
  .tekst { font-size: .9rem; line-height: 1.35; }
  .veld-label { margin: 8px 0 4px; font-size: .95rem; }
  .vinkje { margin-top: 12px; font-size: .9rem; }
  .schatting-hint { margin-bottom: 8px; font-size: .85rem; }
  .schatting-getal { font-size: 2.6rem; }
  .optie { min-height: 50px; padding: 8px 12px; font-size: 1.05rem; }
  .link-opnieuw { margin: 16px auto 12px !important; }
  .voet { padding-top: 12px; font-size: .8rem; }
  .voet p { margin-bottom: 2px; }
  .knop-spotify { margin-top: 8px; }
}
