@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nacht: #05070d;
  --diep: #080c16;
  --zee: #0c1322;
  --paneel: #0e1626;
  --rand: rgba(190, 210, 255, .12);
  --rand-sterk: rgba(200, 220, 255, .26);
  --tekst: #e6e9f2;
  --zacht: #a4adc2;
  --stil: #717c93;
  --licht: #ffd9a0;
  --licht-heet: #fff4dd;
  --rood: #ff6a5e;
  --groen: #5bd98a;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Consolas', 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--tekst);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Korrel over de hele pagina: haalt het bandjes-effect uit de donkere verlopen. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.smal { width: min(720px, calc(100% - 3rem)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .005em; margin: 0; }
p { margin: 0 0 1.1em; }
a { color: inherit; }

.oogje {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stil);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.oogje::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, var(--rand-sterk), transparent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 8%, #101b30 0%, #080d18 45%, var(--nacht) 100%);
}
#straal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; z-index: 2; padding: 0 0 clamp(2.5rem, 7vh, 6rem); }

.hero h1 {
  font-size: clamp(3.1rem, 12.5vw, 10.5rem);
  line-height: .88;
  letter-spacing: -.02em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--licht);
  text-shadow: 0 0 60px rgba(255, 200, 120, .35);
}
.hero .inleiding { max-width: 46ch; color: var(--zacht); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero .inleiding strong { color: var(--tekst); font-weight: 500; }

.telling {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rand);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stil);
}
.telling b { display: block; font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--tekst); font-weight: 400; font-variant-numeric: tabular-nums; }
.telling b.aan { color: var(--licht); }

.pijl {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--stil);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  animation: zweef 3.4s ease-in-out infinite;
}
@keyframes zweef { 0%, 100% { transform: translate(-50%, 0); opacity: .55 } 50% { transform: translate(-50%, 7px); opacity: 1 } }

/* ---------- secties ---------- */
section { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; }
.streep { border-top: 1px solid var(--rand); }

h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.03; letter-spacing: -.015em; margin-bottom: 1.2rem; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--zacht); max-width: 60ch; }
.lead strong { color: var(--tekst); font-weight: 500; }

.op { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.op.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .op { opacity: 1; transform: none; transition: none; } }

/* ---------- kaart ---------- */
.kaartvlak {
  position: relative;
  margin-top: 3rem;
  border: 1px solid var(--rand);
  background: radial-gradient(80% 70% at 30% 25%, #0d1930 0%, #070c16 60%, #05070d 100%);
  overflow: hidden;
}
#kaart { display: block; width: 100%; height: auto; }
.kaartvlak .schaal {
  position: absolute; left: 1rem; bottom: .8rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stil);
}

.ketenlijn { fill: none; stroke: rgba(150, 190, 255, .22); stroke-width: 1.1; stroke-linecap: round; }
.ketenlijn.stippel { stroke-dasharray: 2 5; stroke: rgba(150, 190, 255, .18); }
.stip { cursor: pointer; }
.stip circle.kern { transition: r .25s ease; }
.stip:hover circle.kern, .stip:focus-visible circle.kern { r: 4.6; }
.stip:focus-visible { outline: none; }
.stip:focus-visible circle.raak { stroke: var(--licht); stroke-width: 1.2; }
.stiplabel { font-family: var(--mono); font-size: 4.6px; letter-spacing: .1em; text-transform: uppercase; fill: rgba(200, 214, 240, .5); pointer-events: none; }

.tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 190px;
  padding: .75rem .9rem;
  background: rgba(10, 16, 28, .92);
  border: 1px solid var(--rand-sterk);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
}
.tip.zichtbaar { opacity: 1; transform: none; }
.tip h4 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .1rem; font-weight: 400; }
.tip .plaats { font-size: .78rem; color: var(--stil); margin-bottom: .5rem; }
.tip .kar { font-family: var(--mono); font-size: .82rem; color: var(--licht); letter-spacing: .04em; }
.tip .feit { font-size: .75rem; color: var(--zacht); margin-top: .35rem; }

/* ---------- bediening ---------- */
.bediening {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem;
  margin-top: 1.6rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stil);
}
.knopjes { display: flex; border: 1px solid var(--rand); }
.knopjes button {
  background: none; border: 0; border-right: 1px solid var(--rand);
  color: var(--zacht); font: inherit; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem .9rem; cursor: pointer; transition: background .2s, color .2s;
}
.knopjes button:last-child { border-right: 0; }
.knopjes button:hover { color: var(--tekst); background: rgba(255,255,255,.04); }
.knopjes button[aria-pressed="true"] { background: var(--licht); color: #17120a; }

/* ---------- ontleding ---------- */
.ontleed { display: grid; gap: 3rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 900px) { .ontleed { grid-template-columns: .95fr 1.05fr; align-items: start; gap: 4rem; } }

.formule {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4.4vw, 2.5rem);
  letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; gap: .45em;
  margin-bottom: 2rem;
}
.formule span { position: relative; cursor: default; color: var(--stil); transition: color .2s; padding-bottom: .28em; border-bottom: 1px solid transparent; }
.formule span.actief, .formule span:hover { color: var(--licht); border-bottom-color: rgba(255, 217, 160, .45); }
.uitleg { min-height: 7.5rem; }
.uitleg dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--licht); margin-bottom: .4rem; }
.uitleg dd { margin: 0 0 1rem; color: var(--zacht); max-width: 46ch; }

.baan {
  position: relative;
  height: 84px;
  border: 1px solid var(--rand);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  overflow: hidden;
}
.baan .blok { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(255,217,160,.85), rgba(255,217,160,.35)); }
.baan .naald { position: absolute; top: 0; bottom: 0; width: 1px; background: #fff; box-shadow: 0 0 12px 2px rgba(255,255,255,.6); }
.baan .tik { position: absolute; bottom: 4px; font-family: var(--mono); font-size: .58rem; color: var(--stil); transform: translateX(-50%); }
.baan .tikstreep { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rand); }

.lamp {
  width: 100%; aspect-ratio: 5 / 1; margin-top: 1rem;
  border: 1px solid var(--rand);
  background: #06090f;
  transition: background .06s linear, box-shadow .06s linear;
}

/* ---------- torens ---------- */
.rooster { display: grid; gap: 1px; background: var(--rand); border: 1px solid var(--rand); margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rooster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rooster { grid-template-columns: repeat(3, 1fr); } }

.toren { background: var(--diep); padding: 1.6rem 1.5rem 1.4rem; position: relative; transition: background .3s; }
.toren:hover { background: #0b1220; }
.toren header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.toren h3 { font-size: 1.6rem; line-height: 1.1; }
.toren .jaar { font-family: var(--mono); font-size: .72rem; color: var(--stil); font-variant-numeric: tabular-nums; }
.toren .plaats { font-size: .82rem; color: var(--stil); margin: .15rem 0 1rem; }
.toren p { font-size: .88rem; color: var(--zacht); margin: .9rem 0 0; }
.toren .strip { height: 6px; background: #070b12; border: 1px solid var(--rand); position: relative; overflow: hidden; }
.toren .strip i { position: absolute; top: 0; bottom: 0; display: block; }
.toren .voet { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .7rem; font-family: var(--mono); font-size: .74rem; color: var(--licht); letter-spacing: .03em; }
.toren .voet span { color: var(--stil); }
.bol { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1a2233; vertical-align: -1px; margin-right: .5rem; }

/* ---------- spel ---------- */
.spel { border: 1px solid var(--rand); padding: clamp(1.6rem, 4vw, 2.6rem); background: linear-gradient(180deg, #0b1220, #070b13); margin-top: 2.6rem; }
.spelvak { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .spelvak { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; } }
.spellamp { aspect-ratio: 4 / 3; border: 1px solid var(--rand); background: #05080e; position: relative; overflow: hidden; }
.spellamp .gloed { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255,225,180,1) 0%, rgba(255,190,110,.55) 18%, rgba(255,160,70,.14) 38%, transparent 62%); opacity: 0; }
.keuzes { display: grid; gap: .6rem; }
.keuze {
  text-align: left; padding: .85rem 1rem; background: rgba(255,255,255,.02);
  border: 1px solid var(--rand); color: var(--tekst); font: inherit; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: border-color .2s, background .2s;
}
.keuze:hover:not(:disabled) { border-color: var(--rand-sterk); background: rgba(255,255,255,.045); }
.keuze small { font-family: var(--mono); font-size: .72rem; color: var(--stil); }
.keuze.goed { border-color: var(--groen); background: rgba(91, 217, 138, .1); }
.keuze.fout { border-color: var(--rood); background: rgba(255, 106, 94, .08); }
.keuze:disabled { cursor: default; }
.uitslag { margin-top: 1rem; min-height: 1.6rem; font-size: .9rem; color: var(--zacht); }
.uitslag b { color: var(--licht); font-weight: 500; }
.opnieuw { margin-top: 1rem; background: none; border: 1px solid var(--rand-sterk); color: var(--tekst); font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding: .6rem 1.1rem; cursor: pointer; }
.opnieuw:hover { background: rgba(255,255,255,.05); }

/* ---------- verhaal ---------- */
.verhaal p { font-size: 1.06rem; color: var(--zacht); }
.verhaal p strong { color: var(--tekst); font-weight: 500; }
.citaat { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; color: var(--tekst); margin: 2.6rem 0; padding-left: 1.4rem; border-left: 1px solid var(--licht); font-style: italic; }

.feiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rand); border: 1px solid var(--rand); margin-top: 3rem; }
.feiten div { background: var(--diep); padding: 1.4rem 1.2rem; }
.feiten b { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--licht); font-weight: 400; margin-bottom: .4rem; }
.feiten span { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stil); }

footer { padding: 4rem 0 5rem; border-top: 1px solid var(--rand); color: var(--stil); font-size: .84rem; }
footer h3 { font-size: 1.4rem; color: var(--tekst); margin-bottom: .8rem; }
footer a { color: var(--zacht); }
footer .kolommen { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { footer .kolommen { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
footer ul { margin: 0; padding-left: 1.1rem; }
footer li { margin-bottom: .4rem; }

/* ---------- kaartrooster + paneel ---------- */
.kaartrooster { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 2.4rem; }
@media (min-width: 900px) { .kaartrooster { grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: start; } }
#kaartpaneel { position: sticky; top: 2rem; }
.pk h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; }
.pk .plaats { color: var(--stil); font-size: .86rem; margin: .2rem 0 1.2rem; }
.pk .lamp { margin: 0 0 1.4rem; aspect-ratio: 6 / 1; }
.pklijst { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.pklijst dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stil); margin-bottom: .25rem; }
.pklijst dd { margin: 0; font-size: .95rem; }
.pklijst dd.kar { font-family: var(--mono); color: var(--licht); }
.pktekst { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--rand); color: var(--zacht); font-size: .92rem; }
.pk .oogje { margin-bottom: .7rem; }
