/*
    CROJAK — derde ontwerp.

    Strak en modern. Geen textuur, geen schreefletter, geen meme-chaos.
    Eén accent, een neutrale grijsschaal, en rust. Alles staat op een
    8-punts raster en alle randen zijn 1px.

    Dit ontwerp doet bewust iets anders dan de twee andere: het verbergt
    het verhaal niet, maar laat het getal voorop lopen. De fase bepaalt
    nog steeds de tekst en de foto, alleen niet meer de kleuren -- een
    product-site die per fase van kleur wisselt is geen strakke site.
*/
:root{
  color-scheme: light;

  --bg:        #ffffff;
  --surface:   #fafafa;
  --surface-2: #f4f4f5;
  --line:      #e8e8ea;
  --line-2:    #d9d9dd;

  --ink:    #0a0a0b;
  --ink-2:  #52525b;
  --ink-3:  #8e8e97;

  --accent:    #2f5bff;
  --accent-in: #ffffff;
  --accent-sv: rgba(47,91,255,.09);
  --up:        #0a7f4f;
  --down:      #c62f3c;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r:   10px;
  --r-l: 16px;
  --schaduw:   0 1px 2px rgba(10,10,11,.04), 0 1px 1px rgba(10,10,11,.03);
  --schaduw-h: 0 6px 16px rgba(10,10,11,.07), 0 2px 4px rgba(10,10,11,.04);

  --breedte: 1120px;
  --nav: 60px;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme: dark;
    --bg:        #0a0a0b;
    --surface:   #111113;
    --surface-2: #17171a;
    --line:      #212125;
    --line-2:    #2d2d33;
    --ink:    #f4f4f5;
    --ink-2:  #a1a1aa;
    --ink-3:  #71717a;
    --accent:    #6f8dff;
    --accent-in: #0a0a0b;
    --accent-sv: rgba(111,141,255,.13);
    --up:        #3ddc97;
    --down:      #ff6b78;
    --schaduw:   0 1px 2px rgba(0,0,0,.4);
    --schaduw-h: 0 8px 24px rgba(0,0,0,.5);
  }
}

:root[data-theme="dark"]{
    color-scheme: dark;
    --bg:        #0a0a0b;
    --surface:   #111113;
    --surface-2: #17171a;
    --line:      #212125;
    --line-2:    #2d2d33;
    --ink:    #f4f4f5;
    --ink-2:  #a1a1aa;
    --ink-3:  #71717a;
    --accent:    #6f8dff;
    --accent-in: #0a0a0b;
    --accent-sv: rgba(111,141,255,.13);
    --up:        #3ddc97;
    --down:      #ff6b78;
    --schaduw:   0 1px 2px rgba(0,0,0,.4);
    --schaduw-h: 0 8px 24px rgba(0,0,0,.5);
  }


*{ box-sizing:border-box; }
/* Het spel en de feeds zetten hun panelen met het hidden-attribuut aan
   en uit. Eigen display-regels winnen daarvan, dus dit moet erbij. */
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-size:15px; line-height:1.6;
  -webkit-font-smoothing:antialiased; letter-spacing:-.004em;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }

.wrap{ max-width:var(--breedte); margin:0 auto; padding:0 24px; }

/* ── navigatie ─────────────────────────────────────── */
.nav{
  position:sticky; top:0; z-index:50; height:var(--nav);
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:saturate(1.6) blur(12px);
  -webkit-backdrop-filter:saturate(1.6) blur(12px);
}
.nav__in{ height:100%; display:flex; align-items:center; gap:20px; }
.merk{
  display:flex; align-items:center; gap:9px; text-decoration:none;
  font-weight:650; letter-spacing:-.02em; font-size:15px;
}
.merk img{ width:24px; height:24px; border-radius:7px; }
.pil{
  display:inline-flex; align-items:center; gap:6px; height:22px; padding:0 9px;
  border:1px solid var(--line-2); border-radius:999px;
  font-family:var(--mono); font-size:10px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-2); white-space:nowrap;
}
.pil__stip{
  width:5px; height:5px; border-radius:50%; background:var(--up);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--up) 18%, transparent);
}
.nav__links{ display:flex; gap:4px; margin-left:auto; }
.nav__links a{
  padding:7px 11px; border-radius:7px; text-decoration:none;
  color:var(--ink-2); font-size:13.5px; font-weight:500;
  transition:background .14s ease, color .14s ease;
}
.nav__links a:hover{ background:var(--surface-2); color:var(--ink); }

.knop{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  height:36px; padding:0 15px; border-radius:8px; border:1px solid transparent;
  font:inherit; font-size:13.5px; font-weight:550; letter-spacing:-.008em;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:transform .12s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.knop:active{ transform:translateY(1px); }
.knop--vol{ background:var(--ink); color:var(--bg); }
.knop--vol:hover{ box-shadow:var(--schaduw-h); }
.knop--accent{ background:var(--accent); color:var(--accent-in); }
.knop--accent:hover{ box-shadow:0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.knop--rand{ background:var(--bg); color:var(--ink); border-color:var(--line-2); }
.knop--rand:hover{ background:var(--surface-2); border-color:var(--ink-3); }
.knop--groot{ height:42px; padding:0 20px; font-size:14.5px; border-radius:9px; }
:is(a,button):focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* menuknop: alleen op smalle schermen */
.menu{
  display:none; align-items:center; justify-content:center;
  width:36px; height:36px; flex:none; margin-left:2px;
  border:1px solid var(--line-2); border-radius:8px;
  background:var(--bg); color:var(--ink); cursor:pointer; padding:0;
}
.menu span{
  display:block; position:relative; width:17px; height:1.6px;
  background:currentColor; border-radius:2px;
  transition:transform .18s ease, background .18s ease;
}
.menu span::before, .menu span::after{
  content:""; position:absolute; left:0; width:17px; height:1.6px;
  background:currentColor; border-radius:2px; transition:transform .18s ease;
}
.menu span::before{ top:-5.5px; }
.menu span::after{ top:5.5px; }
.nav[data-open] .menu span{ background:transparent; }
.nav[data-open] .menu span::before{ transform:translateY(5.5px) rotate(45deg); }
.nav[data-open] .menu span::after{ transform:translateY(-5.5px) rotate(-45deg); }

/* thema-knop: zelfde maat als de rest van de navigatie */
.thema{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; flex:none; margin-left:2px;
  border:1px solid var(--line-2); border-radius:8px;
  background:var(--bg); color:var(--ink-2); cursor:pointer; padding:0;
  transition:background .14s ease, color .14s ease, border-color .14s ease;
}
.thema:hover{ background:var(--surface-2); color:var(--ink); }
.thema svg{ width:16px; height:16px; }
.thema .maan{ display:none; }
:root[data-theme="dark"] .thema .zon{ display:none; }
:root[data-theme="dark"] .thema .maan{ display:block; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .thema .zon{ display:none; }
  :root:not([data-theme="light"]) .thema .maan{ display:block; }
}

/* ── hero ──────────────────────────────────────────── */
.hero{ padding:76px 0 64px; }
.hero__in{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; }
.merkje{
  display:inline-flex; align-items:center; gap:7px; margin-bottom:20px;
  padding:5px 11px 5px 7px; border:1px solid var(--line-2); border-radius:999px;
  background:var(--surface); font-size:12px; color:var(--ink-2); font-weight:500;
}
.merkje b{ color:var(--ink); font-weight:600; }
.hero h1{
  margin:0 0 18px; font-size:clamp(2.3rem,5vw,3.6rem); line-height:1.04;
  letter-spacing:-.034em; font-weight:680;
}
.hero__sub{ margin:0 0 30px; font-size:17px; color:var(--ink-2); max-width:46ch; line-height:1.55; }
.hero__knoppen{ display:flex; gap:10px; flex-wrap:wrap; }
.hero__noot{
  margin:22px 0 0; font-family:var(--mono); font-size:11.5px;
  color:var(--ink-3); letter-spacing:.01em;
}

.hero__beeld{ position:relative; }
.hero__beeld img{
  width:100%; aspect-ratio:4/3; object-fit:cover;
  border-radius:var(--r-l); border:1px solid var(--line); box-shadow:var(--schaduw-h);
}
.zwevend{
  position:absolute; left:-18px; bottom:-18px;
  background:var(--bg); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--schaduw-h); padding:12px 15px; min-width:146px;
}
.zwevend__l{
  font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-3); font-weight:600; margin-bottom:3px;
}
.zwevend__w{ font-family:var(--mono); font-size:19px; font-weight:700; letter-spacing:-.02em; }

/* ── paginakop (alle subpagina's) ───────────────────── */
.pkop{ padding:56px 0 40px; border-bottom:1px solid var(--line); margin-bottom:40px; }
.pkop h1{
  margin:0 0 12px; font-size:clamp(2rem,4.2vw,3rem); line-height:1.06;
  letter-spacing:-.032em; font-weight:680;
}
.pkop__sub{ margin:0; font-size:16.5px; color:var(--ink-2); max-width:56ch; line-height:1.55; }
.pkop__knoppen{ display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }

/* genummerde regels, gebruikt op /shift en /game */
.regels{ list-style:none; counter-reset:g; margin:0; padding:0; display:grid; gap:1px; }
.regels li{
  counter-increment:g; position:relative; padding:14px 0 14px 42px;
  border-bottom:1px solid var(--line); color:var(--ink-2); font-size:15px;
}
.regels li:first-child{ border-top:1px solid var(--line); }
.regels li b{ color:var(--ink); font-weight:600; }
.regels li::before{
  content:counter(g); position:absolute; left:0; top:14px;
  width:24px; height:24px; border-radius:7px; background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:11px; font-weight:650; color:var(--ink-2);
}
.nav__links a[aria-current="page"]{ background:var(--surface-2); color:var(--ink); }

/* ── cijfers ───────────────────────────────────────── */
.cijfers{
  display:grid; grid-template-columns:repeat(6,1fr);
  border:1px solid var(--line); border-radius:var(--r-l);
  background:var(--surface); overflow:hidden;
}
.cijfer{ padding:18px 20px; border-right:1px solid var(--line); }
.cijfer:last-child{ border-right:none; }
.cijfer__l{
  font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-3); font-weight:600; margin-bottom:6px;
}
.cijfer__w{ font-family:var(--mono); font-size:17px; font-weight:650; letter-spacing:-.02em; }
.op{ color:var(--up); } .neer{ color:var(--down); }

/* ── secties ───────────────────────────────────────── */
.sectie{ padding:68px 0; }
.sectie--lijn{ border-top:1px solid var(--line); }
.kopje{
  font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent); font-weight:650; margin:0 0 10px;
}
.sectie h2{
  margin:0 0 10px; font-size:clamp(1.5rem,2.6vw,2rem);
  letter-spacing:-.028em; font-weight:650; line-height:1.15;
}
.sectie__sub{ margin:0 0 32px; color:var(--ink-2); max-width:58ch; font-size:15.5px; }

/* ── voortgang ─────────────────────────────────────── */
.voort{
  border:1px solid var(--line); border-radius:var(--r-l);
  background:var(--surface); padding:26px 28px;
}
.voort__top{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.voort__nu{ font-family:var(--mono); font-size:26px; font-weight:700; letter-spacing:-.025em; }
.voort__doel{ color:var(--ink-3); font-size:13px; margin-left:auto; font-family:var(--mono); }
.balk{
  position:relative; height:8px; border-radius:999px;
  background:var(--surface-2); overflow:hidden; border:1px solid var(--line);
}
.balk__vul{
  position:absolute; inset:0 auto 0 0; border-radius:999px;
  background:linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--up)));
  width:0; transition:width .7s cubic-bezier(.2,.7,.2,1);
}
.stappen{
  display:grid; grid-template-columns:repeat(8,1fr); gap:6px;
  margin-top:14px; list-style:none; padding:0;
}
.stap{ border-top:2px solid var(--line-2); padding-top:9px; }
.stap--klaar{ border-top-color:var(--accent); }
.stap--nu{ border-top-color:var(--ink); }
.stap__n{
  font-size:10.5px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--ink-3); font-weight:600; line-height:1.3;
}
.stap--nu .stap__n{ color:var(--ink); }
.stap__b{ font-family:var(--mono); font-size:11px; color:var(--ink-3); margin-top:2px; }

/* ── kaarten ───────────────────────────────────────── */
.kaarten{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.kaart{
  display:flex; flex-direction:column; text-decoration:none;
  border:1px solid var(--line); border-radius:var(--r-l); background:var(--bg);
  overflow:hidden; box-shadow:var(--schaduw);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.kaart:hover{ transform:translateY(-2px); box-shadow:var(--schaduw-h); border-color:var(--line-2); }
.kaart img{
  width:100%; aspect-ratio:16/10; object-fit:cover;
  border-bottom:1px solid var(--line);
  filter:grayscale(1) contrast(1.03); transition:filter .3s ease;
}
.kaart:hover img{ filter:none; }
.kaart__in{ padding:18px 20px 20px; display:flex; flex-direction:column; flex:1; }
.kaart h3{ margin:0 0 7px; font-size:16px; font-weight:620; letter-spacing:-.018em; }
.kaart p{ margin:0 0 16px; color:var(--ink-2); font-size:14px; line-height:1.5; }
.kaart__pijl{
  margin-top:auto; font-size:13.5px; font-weight:550; color:var(--accent);
  display:inline-flex; align-items:center; gap:6px;
}
.kaart__pijl span{ transition:transform .16s ease; }
.kaart:hover .kaart__pijl span{ transform:translateX(3px); }

/* ── tabel ─────────────────────────────────────────── */
.tabelbox{
  border:1px solid var(--line); border-radius:var(--r-l);
  background:var(--bg); overflow:hidden;
}
.tabel{ width:100%; border-collapse:collapse; }
.tabel th{
  text-align:left; padding:11px 20px; background:var(--surface);
  border-bottom:1px solid var(--line);
  font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-3); font-weight:600;
}
.tabel td{ padding:13px 20px; border-bottom:1px solid var(--line); font-size:14px; }
.tabel tr:last-child td{ border-bottom:none; }
.tabel tbody tr{ transition:background .12s ease; }
.tabel tbody tr:hover{ background:var(--surface); }
.tabel .r{ text-align:right; font-family:var(--mono); }
.tabel th.r, .tabel td.r{ width:120px; }
.rang{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:6px; background:var(--surface-2);
  font-family:var(--mono); font-size:11px; font-weight:650; color:var(--ink-2);
}
.rang--1{ background:var(--accent); color:var(--accent-in); }
.adres{ font-family:var(--mono); font-size:13px; }
.leeg{ padding:28px 20px; text-align:center; color:var(--ink-3); font-size:14px; }

/* ── verhaal ───────────────────────────────────────── */
.verhaal{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:start; }
.verhaal p{ margin:0 0 15px; color:var(--ink-2); font-size:15.5px; line-height:1.65; }
.verhaal p:first-child{ color:var(--ink); font-size:17px; }
.feiten{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.feit{ display:flex; gap:16px; padding:13px 0; border-bottom:1px solid var(--line); }
.feit__l{ flex:none; width:118px; font-size:12.5px; color:var(--ink-3); font-weight:550; padding-top:1px; }
.feit__w{ font-size:14px; color:var(--ink); }
.feit__w b{ font-family:var(--mono); font-weight:650; }

/* ── voet ──────────────────────────────────────────── */
.voet{ border-top:1px solid var(--line); padding:40px 0 48px; }
.voet__in{ display:flex; gap:28px; justify-content:space-between; flex-wrap:wrap; }
.voet__links{ display:flex; gap:22px; flex-wrap:wrap; }
.voet a{ color:var(--ink-2); text-decoration:none; font-size:13.5px; }
.voet a:hover{ color:var(--ink); }
.ca{
  display:flex; align-items:center; gap:9px; margin-top:14px; flex-wrap:wrap;
  border:1px solid var(--line); border-radius:8px; background:var(--surface);
  padding:7px 9px 7px 12px; max-width:100%;
}
/* Een adres van 42 tekens kan niet krimpen; zonder dit duwt het de hele
   pagina breder dan het scherm. */
.ca code{
  font-family:var(--mono); font-size:11.5px; color:var(--ink-2);
  word-break:break-all; min-width:0; flex:1 1 auto;
}
.ca button{
  border:1px solid var(--line-2); background:var(--bg); color:var(--ink-2);
  border-radius:6px; font:inherit; font-size:11px; padding:3px 8px; cursor:pointer;
  transition:background .14s ease, color .14s ease;
}
.ca button:hover{ background:var(--surface-2); color:var(--ink); }
.klein{ margin:18px 0 0; font-size:12.5px; color:var(--ink-3); max-width:70ch; line-height:1.6; }

/* ── binnenkomen ───────────────────────────────────── */
.in{ opacity:0; transform:translateY(8px); }
.in--zichtbaar{ opacity:1; transform:none; transition:opacity .32s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion:reduce){
  .in{ opacity:1; transform:none; }
  .kaart:hover{ transform:none; }
  .balk__vul{ transition:none; }
}

/* ── smal ──────────────────────────────────────────── */
@media (max-width:960px){
  .hero__in{ grid-template-columns:1fr; gap:36px; }
  .hero{ padding:48px 0 40px; }
  .cijfers{ grid-template-columns:repeat(3,1fr); }
  .cijfer{ border-bottom:1px solid var(--line); }
  .cijfer:nth-child(3n){ border-right:none; }
  .cijfer:nth-last-child(-n+3){ border-bottom:none; }
  .kaarten{ grid-template-columns:1fr; }
  .verhaal{ grid-template-columns:1fr; gap:32px; }
  .stappen{ grid-template-columns:repeat(4,1fr); row-gap:14px; }
}
/* Onder de 760 passen vijf links niet meer naast de knoppen. Ze gaan
   dan in een paneel onder de balk, met een echte menuknop ervoor --
   anders is er op een telefoon geen enkele manier om ergens te komen. */
@media (max-width:760px){
  .menu{ display:inline-flex; }
  .nav__links{
    position:absolute; left:0; right:0; top:100%;
    display:none; flex-direction:column; gap:2px; margin:0; padding:10px 14px 14px;
    background:var(--bg); border-bottom:1px solid var(--line);
    box-shadow:0 14px 30px -12px rgba(10,10,11,.35);
  }
  .nav[data-open] .nav__links{ display:flex; }
  .nav__links a{ padding:13px 14px; font-size:15.5px; border-radius:9px; }
  .nav__in{ gap:10px; }
  .nav__in .pil{ margin-left:auto; }
}
@media (max-width:560px){
  /* de fase-pil past er niet meer bij; die staat ook op de pagina zelf */
  .nav__in > .pil{ display:none; }
  .nav__in{ gap:8px; }
  .merk span, .merk{ font-size:14.5px; }
}

@media (max-width:620px){
  .wrap{ padding:0 18px; }
  .cijfers{ grid-template-columns:repeat(2,1fr); }
  .cijfer:nth-child(3n){ border-right:1px solid var(--line); }
  .cijfer:nth-child(2n){ border-right:none; }
  .cijfer:nth-last-child(-n+2){ border-bottom:none; }
  .sectie{ padding:48px 0; }
  .zwevend{ left:auto; right:12px; bottom:-14px; }
  .stappen{ grid-template-columns:repeat(2,1fr); }
  .feit{ flex-direction:column; gap:3px; }
  .feit__l{ width:auto; }
  .tabel th:nth-child(4), .tabel td:nth-child(4){ display:none; }
}
