/* Top Vijf — gedeelde stijl voor de app en het beheer */

@font-face { font-family: "Big Shoulders"; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-800-normal.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: "Big Shoulders"; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-display-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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; }
@font-face { font-family: "Big Shoulders"; font-weight: 900; font-display: swap; src: url(fonts/big-shoulders-display-latin-900-normal.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: "Big Shoulders"; font-weight: 900; font-display: swap; src: url(fonts/big-shoulders-display-latin-ext-900-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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; }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.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: "Figtree"; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.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: "Figtree"; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(fonts/figtree-latin-700-normal.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: "Figtree"; font-weight: 700; font-display: swap; src: url(fonts/figtree-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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 {
  --grond: #F5F4EF;
  --inkt: #141414;
  --geel: #FFC629;
  --zachtgeel: #FFF1C2;
  --gedempt: #5C5B55;
  --zacht: #8A877D;
  --lijn: #E3E1D9;
  --rand: #D6D3C8;
  --streep: #C9C6BA;
  --wit: #FFFFFF;
  --donker2: #262624;
  --opdonker: #CFCDC5;
  --fout: #B42318;
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --tekst: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --veilig-onder: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grond);
  color: var(--inkt);
  font-family: var(--tekst);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--inkt); }
a:hover { color: #000; }
/* Donkere kaarten die een link zijn: tekst blijft wit bij aanwijzen */
a.donker:hover, a.strook-kaart:hover { color: var(--wit); }
:focus-visible { outline: 3px solid var(--inkt); outline-offset: 2px; }
.op-donker :focus-visible { outline-color: var(--geel); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Opbouw */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.inhoud { flex: 1; padding: 8px 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.met-nav .inhoud { padding-bottom: calc(110px + var(--veilig-onder)); }
.stapel { display: flex; flex-direction: column; gap: 10px; }
.stapel-s { display: flex; flex-direction: column; gap: 6px; }
.rij-h { display: flex; align-items: center; gap: 10px; }
.tussen { justify-content: space-between; }
.groei { flex: 1; min-width: 0; }
.raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Kop */
.kop { padding: 20px 20px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kop-klein { padding: 12px 12px 8px; display: flex; align-items: center; gap: 4px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-blok { width: 40px; height: 40px; border-radius: 10px; background: var(--geel); color: var(--inkt); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; }
.logo-tekst { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: 0.02em; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--inkt); color: var(--wit); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; text-decoration: none; flex: none; }
.avatar.groot { width: 64px; height: 64px; font-size: 22px; }
.icoonknop { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 0; background: transparent; cursor: pointer; text-decoration: none; flex: none; }

/* Tekst */
.titel { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 0.95; text-transform: uppercase; }
.titel-m { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 0.95; text-transform: uppercase; }
.kopje { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.naam-groot { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.02; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gedempt); }
.op-donker .label { color: var(--opdonker); }
.zacht { color: var(--gedempt); }
.op-donker .zacht { color: var(--opdonker); }
.klein { font-size: 14px; }
.mini { font-size: 13px; }
.vet { font-weight: 700; }
.cijfer { font-family: var(--display); font-weight: 900; }

/* Kaarten */
.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kaart.donker, .donker { background: var(--inkt); color: var(--wit); border-color: var(--inkt); }
.kaart.zacht-geel { background: var(--zachtgeel); border-color: var(--zachtgeel); }
.kaart.gestreept { background: transparent; border: 2px dashed var(--streep); }
.kaart-link { text-decoration: none; color: inherit; }
.melding { background: var(--zachtgeel); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: #3B3A36; }
.melding.fout { background: #FDECEA; color: var(--fout); }
.vak { background: var(--grond); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }

/* Knoppen */
.knop { min-height: 52px; border-radius: 14px; border: 0; background: var(--geel); color: var(--inkt); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; width: 100%; }
.knop.m { min-height: 48px; font-size: 16px; border-radius: 12px; }
.knop.s { min-height: 44px; font-size: 15px; border-radius: 10px; width: auto; padding: 0 14px; }
.knop.donker { background: var(--inkt); color: var(--wit); }
.knop.rand { background: transparent; border: 1px solid var(--rand); color: var(--inkt); }
.op-donker .knop.rand { border-color: var(--gedempt); color: var(--wit); }
.knop.gestreept { background: transparent; border: 2px dashed var(--streep); }
.knop.gevaar { background: transparent; border: 1px solid #E9B8B3; color: var(--fout); }
.knop.tussen { justify-content: space-between; }
.knop:disabled, .knop[aria-disabled="true"] { background: var(--lijn); color: var(--gedempt); cursor: default; }
.tekstknop { min-height: 44px; border: 0; background: transparent; padding: 0 4px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Chips en tabs */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--rand); background: var(--wit); font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--inkt); color: var(--wit); border-color: var(--inkt); }
.chip .stip { width: 8px; height: 8px; border-radius: 99px; background: var(--geel); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: #E9E7DF; border-radius: 12px; padding: 4px; }
.tab { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--gedempt); font-weight: 600; font-size: 15px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--wit); color: var(--inkt); font-weight: 700; }

/* Velden */
.veld { display: flex; flex-direction: column; gap: 8px; }
.veld label, .veldlabel { font-weight: 700; font-size: 15px; }
.invoer { min-height: 52px; width: 100%; border: 1px solid var(--streep); border-radius: 12px; padding: 0 14px; font-size: 17px; background: var(--wit); color: var(--inkt); }
textarea.invoer { padding: 12px 14px; min-height: 160px; font-size: 14px; line-height: 1.45; font-family: ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.invoer.pin { font-size: 22px; letter-spacing: 0.4em; }
.zoekveld { display: flex; align-items: center; gap: 8px; background: var(--wit); border: 1px solid var(--rand); border-radius: 12px; padding: 0 12px; min-height: 48px; }
.zoekveld input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; min-height: 44px; }
.vinkje { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.vinkje input { width: 22px; height: 22px; accent-color: var(--inkt); }

/* Top 5: plekken en namenlijst */
.plekken { display: flex; flex-direction: column; gap: 6px; }
.plek { min-height: 46px; display: flex; align-items: center; gap: 12px; border-radius: 12px; }
.plek.leeg { border: 2px dashed var(--streep); }
.plek.vol { background: var(--inkt); color: var(--wit); border: 0; padding-right: 12px; cursor: pointer; text-align: left; width: 100%; }
.plek-nr { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 26px; flex: none; }
.plek.vol .plek-nr { background: var(--geel); color: var(--inkt); }
.plek.leeg .plek-nr { color: var(--zacht); width: 40px; height: 40px; }
.plek-naam { flex: 1; font-weight: 700; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renners { display: flex; flex-direction: column; gap: 6px; }
.ploegkop { position: sticky; top: 0; z-index: 1; background: var(--grond); padding: 12px 2px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gedempt); }
.renner { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lijn); background: var(--wit); cursor: pointer; text-align: left; width: 100%; }
.renner[aria-pressed="true"] { border-color: var(--inkt); box-shadow: inset 0 0 0 1px var(--inkt); }
.renner-naam { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.renner-naam b { font-weight: 600; font-size: 16px; }
.renner-naam span { font-size: 13px; color: var(--gedempt); }
.renner-nr { font-size: 13px; font-weight: 700; color: var(--gedempt); width: 30px; flex: none; }
.vakje { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rand); display: flex; align-items: center; justify-content: center; flex: none; }
.vakje.gekozen { background: var(--geel); border-color: var(--geel); font-family: var(--display); font-weight: 900; font-size: 20px; }
.renner.uit { background: var(--grond); color: #6E6C64; }
.renner.uit .renner-naam b { text-decoration: line-through; }

/* Onderbalk met opslaan */
.onderbalk { position: sticky; bottom: 0; background: var(--wit); border-top: 1px solid var(--lijn); padding: 12px 20px calc(16px + var(--veilig-onder)); margin: 0 -20px -28px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }

/* Klassement */
.stand { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stand li { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; background: var(--wit); border: 1px solid var(--lijn); }
.stand li.ik { background: var(--geel); border-color: var(--geel); }
.stand-plek { min-width: 30px; width: auto; font-family: var(--display); font-weight: 900; font-size: 24px; flex: none; }
.stand-naam { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stand-naam b { font-weight: 600; font-size: 16px; }
.stand li.ik .stand-naam b { font-weight: 700; }
.stand-naam span { font-size: 13px; color: var(--gedempt); }
.stand li.ik .stand-naam span { color: #3B3A36; }
.stand-punten { min-width: 44px; text-align: right; font-family: var(--display); font-weight: 800; font-size: 22px; }
.beweging { font-size: 13px; font-weight: 700; min-width: 30px; text-align: right; }

/* Badges */
.badge { border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--wit); border: 1px solid var(--lijn); color: var(--gedempt); }
.badge b { color: var(--inkt); font-size: 16px; }
.badge span { font-size: 13px; line-height: 1.35; }
.badge.behaald { background: var(--geel); border-color: var(--geel); color: var(--inkt); }
.stat { background: var(--wit); border: 1px solid var(--lijn); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.stat .cijfer { font-size: 32px; line-height: 1; }

/* Profiel-icoontje in een klein vakje, zodat een vlakke rit ook als profiel leest */
.profiel-vak { display: inline-flex; align-items: flex-end; justify-content: center; background: var(--grond); border: 1px solid var(--lijn); border-radius: 6px; padding: 2px 5px 1px; color: var(--inkt); flex: none; }
.kaart .vak .profiel-vak, .vak .profiel-vak { background: var(--wit); }
.label.rij-h { flex-wrap: nowrap; }

/* Navigatie */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--wit); border-top: 1px solid var(--lijn); padding: 6px 8px calc(10px + var(--veilig-onder)); z-index: 5; }
.nav-binnen { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav a { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--gedempt); text-decoration: none; }
.nav a span { padding: 4px 18px; display: flex; border-radius: 999px; }
.nav a[aria-current="page"] { color: var(--inkt); font-weight: 700; }
.nav a[aria-current="page"] span { background: var(--geel); }

/* Donkere kopblokken */
.blok-donker { background: var(--inkt); color: var(--wit); padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.blok-donker .binnen { background: var(--donker2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vel { background: var(--grond); border-radius: 24px 24px 0 0; margin-top: -8px; }

/* Meldingen onderin */
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--veilig-onder)); transform: translateX(-50%); background: var(--inkt); color: var(--wit); border-radius: 12px; padding: 12px 18px; font-weight: 600; font-size: 15px; z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.toast.fout { background: var(--fout); }

.laden { padding: 60px 20px; text-align: center; color: var(--gedempt); }
.leeg-staat { padding: 28px 16px; text-align: center; color: var(--gedempt); border: 2px dashed var(--streep); border-radius: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .renner, .chip, .knop, .plek { transition: background-color 0.12s, border-color 0.12s; }
}

/* ------------------------------------------------------------------ */
/* Opbouw per pagina: op de telefoon gewoon onder elkaar              */
/* ------------------------------------------------------------------ */
.home-hoofd { display: flex; flex-direction: column; gap: 22px; }
/* Schuifstrook met de laatste uitslagen */
.strook { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 6px; scroll-padding: 0 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.strook::-webkit-scrollbar { display: none; }
.strook-kaart { flex: 0 0 auto; width: 42%; min-width: 150px; max-width: 190px; min-height: 148px; scroll-snap-align: start; background: var(--inkt); color: var(--wit); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.strook-kaart:focus-visible { outline: 3px solid var(--geel); outline-offset: 2px; }
.strook-naam { font-weight: 700; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strook-bollen { display: flex; gap: 3px; padding-bottom: 4px; }
.bol { width: 9px; height: 9px; border-radius: 50%; }
.bol.raak { background: var(--geel); }
.bol.half { border: 2px solid var(--geel); }
.bol.mis { background: #4A4945; }
@media (min-width: 900px) {
  .strook { margin: 0; padding: 2px 0 6px; overflow: visible; }
  .strook-kaart { flex: 1 1 0; width: auto; min-width: 0; max-width: 25%; }
}
.strook-uitleg { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.strook-uitleg .bol { display: inline-block; margin-right: 5px; vertical-align: -1px; }
.strook-uitleg .bol.mis { background: #C9C7BF; }
.meer-uitslagen > summary { list-style: none; }
.stand li.stand-gat { justify-content: center; color: var(--gedempt); font-weight: 700; letter-spacing: 0.2em; min-height: 0; padding: 0; background: none; border: 0; }
.ingevuld-label { gap: 4px; background: var(--zachtgeel); color: var(--inkt); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.meer-uitslagen > summary::-webkit-details-marker { display: none; }
.meer-uitslagen > summary::after { content: "+"; margin-left: auto; font-size: 26px; }
.meer-uitslagen[open] > summary::after { content: "−"; }
.kies-links { display: contents; }
.kies .onderbalk { order: 10; }
.kies-rechts { display: flex; flex-direction: column; gap: 14px; }
.raster-desk { display: flex; flex-direction: column; gap: 22px; }
.nav a.nav-logo { display: none; }

/* ------------------------------------------------------------------ */
/* Desktop en tablet in de breedte                                    */
/* ------------------------------------------------------------------ */
@media (min-width: 900px) {
  .app { max-width: 1080px; }
  .app:not(.breed) .inhoud { padding: 28px 32px 56px; }
  .smal { max-width: 760px; margin-inline: auto; width: 100%; }

  /* Menu bovenin in plaats van onderin */
  body.heeft-nav { padding-top: 68px; }
  .nav { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--lijn); padding: 0 32px; }
  .nav-binnen { max-width: 1016px; display: flex; align-items: center; gap: 6px; height: 68px; }
  .nav a.nav-logo { display: flex; margin-right: auto; min-height: 44px; }
  .nav a { flex-direction: row; min-height: 44px; font-size: 15px; gap: 4px; padding: 0 4px; }
  .nav a span { padding: 6px 10px; }
  .nav a.nav-logo span, .nav a.nav-logo div { padding: 0; }
  .met-nav .kop { display: none; }
  .met-nav .inhoud { padding-bottom: 56px; }
  .toast { bottom: 28px; }

  /* Home: wedstrijden links, poules rechts */
  .home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
  .home-zij { position: sticky; top: 96px; }
  .home .titel { font-size: 56px; }

  /* Top 5 kiezen: keuze links (blijft staan), namen rechts */
  .kies { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
  .kies > .chips { grid-column: 1 / -1; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .kies-links { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
  .kies .onderbalk { position: static; margin: 0; border: 1px solid var(--lijn); border-radius: 16px; padding: 14px; }
  .kies-rechts .renners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kies-rechts .ploegkop { grid-column: 1 / -1; position: static; }

  .raster-desk { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .badges-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Donker kopblok (poule): inhoud even breed als de pagina eronder */
  .app:not(.welkom) .blok-donker {
    padding: 32px max(32px, calc((100% - 760px) / 2)) 28px;
    /* zwart tot de rand van het scherm */
    box-shadow: 0 0 0 100vmax var(--inkt);
    clip-path: inset(0 -100vmax);
  }

  /* Welkom: links het verhaal, rechts aanmelden */
  .app.welkom { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
  .welkom .blok-donker { padding: 64px 72px !important; justify-content: center; gap: 48px; }
  .welkom .blok-donker .titel { font-size: 88px !important; }
  .welkom .blok-donker p { font-size: 18px; max-width: 520px; }
  .welkom .vel { margin: 0; border-radius: 0; justify-content: center; align-items: center; padding: 48px !important; }
  .welkom .vel > form { width: 100%; max-width: 420px; }
}
@media (min-width: 900px) {
  .nav a.nav-logo { color: var(--inkt); font-weight: 400; }
}
