:root {
  --vilt: #0e3a2c;
  --vilt-diep: #0a2c21;
  --paneel: #134535;
  --paneel-2: #185240;
  --lijn-vilt: rgba(255, 255, 255, 0.08);
  --licht: #f3efe4;
  --licht-2: #b9c8be;
  --licht-3: #8aa194;
  --goud: #d6b25e;
  --goud-diep: #b38f3e;
  --goud-tekst: #2a2007;

  /* Tikkie's eigen kleuren (van tikkie.me) */
  --tikkie: #5656ac;
  --tikkie-diep: #2a2a57;
  --tikkie-geel: #ffce00;

  --papier: #f6f1e5;
  --papier-2: #ece5d4;
  --papier-lijn: #dcd2bc;
  --inkt: #1d1b17;
  --inkt-2: #57524a;
  --inkt-3: #8a8377;

  --winst: #1d6b3a;
  --verlies: #a8322a;
  --winst-v: #8fd9a8;
  --verlies-v: #ff9d91;
  --stempel: #a8322a;

  --s-G: #2a78d6;
  --s-H: #eb6834;
  --s-B: #1baf7a;
  --s-D: #eda100;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rond: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(130% 70% at 50% 0%, #155240 0%, var(--vilt) 50%, var(--vilt-diep) 100%) fixed;
  background-color: var(--vilt-diep);
  color: var(--licht);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.verborgen { display: none !important; }

/* ---------- kop en tabs ---------- */
header.kop {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 44, 33, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lijn-vilt);
  padding-top: env(safe-area-inset-top);
}
header.kop .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.merk { display: flex; align-items: center; gap: 8px; text-decoration: none; }
/* logo: G, H, B en D als vier kaarten in een waaier */
.waaier { position: relative; flex: none; width: 94px; height: 46px; }
.waaier .kaart {
  position: absolute; left: 50%; bottom: 5px; width: 24px; height: 34px; margin-left: -12px;
  background: #fffdf7; color: var(--inkt); border: 1px solid rgba(29, 27, 23, 0.22); border-radius: 3px;
  box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 230%;
  transform: rotate(calc((var(--i) - 1.5) * 14deg));
  transition: transform 0.25s ease;
}
.waaier .kaart.rd { color: #b3261e; }
.waaier .kaart b { position: absolute; top: 3px; left: 2.5px; font-family: var(--serif); font-weight: 700; font-size: 13.5px; line-height: 1; }
.waaier .kaart i { position: absolute; top: 18px; left: 3.5px; font-style: normal; font-size: 9px; line-height: 1; }
.merk:hover .waaier .kaart, .merk:focus-visible .waaier .kaart { transform: rotate(calc((var(--i) - 1.5) * 17deg)); }
@media (prefers-reduced-motion: reduce) { .waaier .kaart { transition: none; } }
.merk .titel { font-family: var(--serif); font-size: 18px; color: var(--licht); }
.ik-knop {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paneel); border: 1px solid var(--lijn-vilt); border-radius: 999px;
  padding: 4px 12px 4px 4px; font-size: 14px; color: var(--licht);
}
.ik-knop:empty { display: none; }

nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(8, 36, 27, 0.96);
  border-top: 1px solid var(--lijn-vilt);
  padding-bottom: env(safe-area-inset-bottom);
}
nav.tabs .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
nav.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 11px; color: var(--licht-3); text-decoration: none; font-size: 12px; font-weight: 500;
}
nav.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
nav.tabs a[aria-current="page"] { color: var(--goud); }

/* ---------- algemene bouwstenen ---------- */
.paginakop { margin: 22px 0 14px; }
.paginakop h1 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 0; }
.paginakop .sub { color: var(--licht-2); font-size: 14px; margin-top: 4px; }
.sectiekop { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 28px 0 10px; }
.sectiekop small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--licht-3); margin-top: 2px; }

.paneel {
  background: var(--paneel);
  border: 1px solid var(--lijn-vilt);
  border-radius: var(--rond);
  padding: 14px;
}
.papier {
  background: var(--papier);
  color: var(--inkt);
  border-radius: var(--rond);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.25);
}
.papier .sectiekop { color: var(--inkt); margin-top: 0; }

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--lijn-vilt); background: var(--paneel-2); color: var(--licht);
  border-radius: 12px; padding: 11px 16px; font-weight: 600; font-size: 15px; min-height: 46px;
  text-decoration: none;
}
.knop.hoofd { background: var(--goud); border-color: var(--goud-diep); color: var(--goud-tekst); }
.knop.hoofd:active { background: var(--goud-diep); }
.knop.breed { width: 100%; }
.knop:disabled { opacity: 0.45; cursor: not-allowed; }
.papier .knop { background: var(--papier-2); border-color: var(--papier-lijn); color: var(--inkt); }
.papier .knop.hoofd { background: var(--inkt); border-color: var(--inkt); color: var(--papier); }
.tekstknop { background: none; border: 0; padding: 6px 0; color: var(--licht-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.papier .tekstknop { color: var(--inkt-2); }

/* spelers als speelkaartje, net als de kaarten in het logo */
.avatar {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none;
  width: 26px; height: 36px; border-radius: 4px;
  background: #fffdf7; color: var(--inkt);
  border: 1px solid rgba(29, 27, 23, 0.22);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  line-height: 1;
}
.avatar.rd { color: #b3261e; }
.avatar b { font-family: var(--serif); font-weight: 700; font-size: 15px; }
.avatar i { font-style: normal; font-size: 10px; }
.avatar.klein { width: 20px; height: 28px; border-radius: 3px; gap: 1px; }
.avatar.klein b { font-size: 12px; }
.avatar.klein i { font-size: 8px; }

.plus { color: var(--winst-v); }
.min { color: var(--verlies-v); }
.papier .plus { color: var(--winst); }
.papier .min { color: var(--verlies); }
.nul { color: inherit; opacity: 0.7; }

.proefbalk {
  margin: 14px 0 0; padding: 9px 12px; border-radius: 10px;
  background: rgba(214, 178, 94, 0.12); border: 1px dashed rgba(214, 178, 94, 0.45);
  color: var(--licht-2); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.proefbalk b { color: var(--goud); font-weight: 600; }
.proefbalk button { flex: none; }

/* ---------- fiches ---------- */
.fiche {
  --f: #1b1b1b; --r: #f2efe6; --t: #f2efe6;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--f);
  border: 5px dashed var(--r);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 3px var(--f);
  font-size: 10px; font-weight: 700; color: var(--t); letter-spacing: -0.02em;
}
.fiche::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--r) 55%, transparent);
}
.fiche.zwart { --f: #1c1c1c; --r: #efece4; --t: #efece4; }
.fiche.groen { --f: #1f7a3e; --r: #f2efe6; --t: #fff; }
.fiche.rood { --f: #b3261e; --r: #f2efe6; --t: #fff; }
.fiche.wit { --f: #f4f1ea; --r: #2f63ad; --t: #1d1b17; }
.fiche.klein { width: 28px; height: 28px; border-width: 3px; font-size: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 2px var(--f); }
.fiche.klein::after { inset: 2px; }

.fichestrook { padding: 14px 14px 12px; }
.fichestrook .fs-kop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.fichestrook .fs-kop span { color: var(--licht-2); font-size: 14px; }
.fichestrook .fs-kop strong { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--goud); }
.fs-rij { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fs-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fs-aantal { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; }
.fs-aantal small { font-size: 15px; color: var(--licht-3); margin-right: 1px; }
.fs-som { font-size: 12px; color: var(--licht-3); }
.fs-voet { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--lijn-vilt); font-size: 13px; color: var(--licht-3); }

/* ---------- avond ---------- */
.avondkop { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pot { text-align: right; }
.pot .bedrag { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--goud); line-height: 1; }
.pot .label { font-size: 12px; color: var(--licht-3); white-space: nowrap; }

.spelers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.speler { display: flex; flex-direction: column; gap: 10px; }
.speler-kop { display: flex; align-items: center; gap: 10px; }
.speler-kop .naam { font-weight: 600; line-height: 1.2; }
.speler-kop .rol { font-size: 12px; color: var(--licht-3); }
.teller { display: flex; align-items: baseline; gap: 6px; }
.teller .aantal { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.teller .eenheid { color: var(--licht-2); font-size: 14px; }
.teller .inleg { margin-left: auto; color: var(--licht-3); font-size: 13px; }
.knoppen { display: grid; grid-template-columns: 46px 1fr; gap: 8px; }
.knoppen .knop { padding: 10px 8px; }
.knoppen .eraf { font-size: 22px; font-weight: 500; color: var(--licht-2); }

.momentvorm { display: flex; gap: 8px; }
.invoer, .momentvorm input, textarea, select, input[type="date"] {
  width: 100%; min-height: 46px; border-radius: 12px; padding: 10px 12px;
  background: var(--vilt-diep); border: 1px solid var(--lijn-vilt); color: var(--licht);
}
.papier .invoer, .papier textarea, .papier select, .papier input[type="date"] {
  background: #fffdf7; border-color: var(--papier-lijn); color: var(--inkt);
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 46px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23f3efe4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
}
.papier select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%2357524a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
}
.momentvorm .knop { flex: none; }
.momenten { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.momenten li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--licht-2); }
.momenten li .tijd { color: var(--licht-3); font-size: 12px; flex: none; padding-top: 2px; min-width: 38px; }
.papier .momenten li { color: var(--inkt-2); }
.papier .momenten li .tijd { color: var(--inkt-3); }

.onderaan { display: grid; gap: 10px; margin-top: 22px; }
.klein-midden { text-align: center; }

/* ---------- start ---------- */
.veld { display: grid; gap: 6px; margin-bottom: 14px; }
.veld > span { font-size: 13px; font-weight: 600; color: var(--inkt-2); }
.keuzes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.keuze {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid var(--papier-lijn); background: #fffdf7; border-radius: 12px; padding: 10px 4px; font-size: 13px;
}
.keuze[aria-pressed="true"] { border-color: var(--inkt); box-shadow: 0 0 0 1px var(--inkt) inset; background: var(--papier-2); }
.vink { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--inkt-2); margin: 4px 0 16px; }
.vink input { width: 20px; height: 20px; accent-color: var(--inkt); }
.hint { font-size: 12px; color: var(--inkt-3); }

/* ---------- tellen ---------- */
.telkaart { display: grid; gap: 10px; }
.telkaart + .telkaart { margin-top: 10px; }
.tel-kop { display: flex; align-items: center; gap: 10px; }
.tel-kop .naam { font-weight: 600; }
.tel-kop .inleg { font-size: 12px; color: var(--licht-3); }
.tel-kop .status { margin-left: auto; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--licht-3); }
.tel-kop .status.klaar { background: rgba(143, 217, 168, 0.14); color: var(--winst-v); }
.tel-rij { display: grid; grid-template-columns: 30px 1fr 40px 64px 40px; gap: 6px; align-items: center; }
.tel-rij .tel-naam { font-size: 13px; color: var(--licht-2); line-height: 1.2; }
.tel-rij .tel-naam small { display: block; color: var(--licht-3); }
.tel-rij button { height: 40px; border-radius: 10px; border: 1px solid var(--lijn-vilt); background: var(--paneel-2); font-size: 20px; }
.tel-rij input { height: 40px; min-height: 40px; text-align: center; padding: 0 4px; border-radius: 10px; background: var(--vilt-diep); border: 1px solid var(--lijn-vilt); font-weight: 600; font-variant-numeric: tabular-nums; }
.tel-uitkomst { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--licht-2); padding-top: 8px; border-top: 1px solid var(--lijn-vilt); }
.tel-uitkomst b { font-size: 16px; }
.tel-uitkomst .tekstknop { font-size: 12px; padding: 0; }

.controlebalk {
  position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 5;
  margin-top: 14px; padding: 8px 14px; border-radius: 12px;
  background: rgba(8, 36, 27, 0.97); border: 1px solid rgba(214, 178, 94, 0.35);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}
.controlebalk .regels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.controlebalk .regels div { font-size: 10px; color: var(--licht-3); text-transform: uppercase; letter-spacing: 0.06em; }
.controlebalk .regels b { display: block; font-size: 15px; color: var(--licht); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.controlebalk .regels b.min { color: var(--verlies-v); }
.controlebalk .uitleg { font-size: 12px; color: var(--licht-2); margin: 2px 0 0; }

/* ---------- uitslag & ranglijst ---------- */
.ranglijst { list-style: none; margin: 0; padding: 0; }
.ranglijst li { display: grid; grid-template-columns: 24px 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--papier-lijn); }
.ranglijst li:last-child { border-bottom: 0; }
.subkop { font-family: var(--serif); font-weight: 600; font-size: 17px; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--papier-lijn); }
.verdeling { list-style: none; margin: 0; padding: 0; }
.verdeling li { display: grid; grid-template-columns: 1fr auto 96px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--papier-lijn); }
.verdeling li:last-child { border-bottom: 0; }
.verdeling .vd-namen { font-weight: 600; min-width: 0; }
.verdeling .pijl { color: var(--inkt-3); font-weight: 400; padding: 0 2px; }
.verdeling .bedrag { font-family: var(--serif); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Tikkie-knop in Tikkie-stijl: paars, pilvorm, geel stipje */
.papier .knop.tikkie {
  min-height: 38px; padding: 6px 16px 6px 12px; gap: 7px; font-size: 14px; font-weight: 700;
  border-radius: 999px; background: transparent; border: 2px solid var(--tikkie); color: var(--tikkie);
}
.papier .knop.tikkie::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tikkie-geel); flex: none; }
.papier .verdeling .voor-mij .knop.tikkie { background: var(--tikkie); border-color: var(--tikkie); color: #fff; }
.papier .knop.tikkie:active { background: var(--tikkie-diep); border-color: var(--tikkie-diep); color: #fff; }
.papier .knop.tikkie:focus-visible { outline: 3px solid var(--tikkie-geel); outline-offset: 2px; }
.verdeling .vd-wacht { font-size: 12px; line-height: 1.3; color: var(--inkt-3); text-align: right; }
.verdeling .knop.tikkie { justify-self: end; }
.ranglijst .plaats { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--inkt-3); text-align: center; }
.ranglijst .naam { font-weight: 600; }
.ranglijst .details { font-size: 12px; color: var(--inkt-3); }
.ranglijst .bedrag { font-family: var(--serif); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.etiket {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 600; vertical-align: 1px;
  background: var(--papier-2); color: var(--inkt-2); border: 1px solid var(--papier-lijn);
}
.etiket.vriend { background: #f3e2c4; border-color: #e2c792; color: #6b4a12; }

/* ---------- stand ---------- */
.grafiek-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--inkt-2); margin-bottom: 6px; }
.grafiek-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.grafiek-legenda i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--kl); }
.grafiek { position: relative; }
.grafiek svg { display: block; width: 100%; overflow: visible; }
.grafiek .tip {
  position: absolute; top: 0; pointer-events: none; z-index: 2;
  background: #fffdf7; color: var(--inkt); border: 1px solid var(--papier-lijn); border-radius: 10px;
  padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.15); min-width: 150px;
}
.grafiek .tip .t-kop { font-weight: 600; margin-bottom: 4px; }
.grafiek .tip .t-rij { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.grafiek .tip .t-rij i { width: 8px; height: 8px; border-radius: 50%; background: var(--kl); }
.grafiek .tip .t-rij span:last-child { text-align: right; }

.tabel-wrap { overflow-x: auto; margin: 0 -4px; }
table.uitslagen { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.uitslagen th, table.uitslagen td { padding: 8px 4px; text-align: right; border-bottom: 1px solid var(--papier-lijn); white-space: nowrap; }
table.uitslagen th:first-child, table.uitslagen td:first-child { text-align: left; }
table.uitslagen th:nth-child(2), table.uitslagen td:nth-child(2) { text-align: center; color: var(--inkt-3); }
table.uitslagen thead th { font-size: 12px; color: var(--inkt-3); font-weight: 600; }
table.uitslagen tfoot td { border-bottom: 0; font-weight: 700; padding-top: 10px; }
table.uitslagen tfoot td:first-child { font-family: var(--serif); font-style: italic; font-weight: 400; white-space: normal; }

.gastheer-rij { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gastheer-rij .cel { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--inkt-2); }
.gastheer-rij .cel b { display: block; color: var(--inkt); font-size: 15px; }

/* ---------- handen ---------- */
.handen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: hand; }
.hand { display: grid; gap: 8px; }
.hand-kop { display: flex; align-items: baseline; gap: 10px; }
.hand-kop .rang { font-family: var(--serif); font-size: 15px; color: var(--goud); font-weight: 600; min-width: 22px; }
.hand-kop .naam { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.hand-kop .kans { margin-left: auto; font-size: 12px; color: var(--licht-3); white-space: nowrap; }
.kaarten { display: flex; gap: 6px; }
.kaartje {
  width: 44px; height: 60px; border-radius: 6px; background: #fbf8f1; color: #1d1b17;
  display: flex; flex-direction: column; justify-content: space-between; padding: 4px 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); font-weight: 700; line-height: 1;
}
.kaartje .w { font-size: 15px; }
.kaartje .k { font-size: 18px; align-self: flex-end; }
.kaartje.rd { color: #b3261e; }
.kaartje.uit { opacity: 0.38; }
.hand p { margin: 0; font-size: 14px; color: var(--licht-2); }
.weetjes { margin: 0; padding-left: 18px; font-size: 14px; color: var(--inkt-2); display: grid; gap: 6px; }

/* ---------- verslag ---------- */
.avondkiezer { margin-top: 4px; }
.recensies { display: grid; gap: 10px; }
.recensie { display: grid; gap: 6px; }
.recensie .r-kop { display: flex; align-items: center; gap: 10px; }
.recensie .r-kop .naam { font-weight: 600; }
.recensie .r-tekst { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--licht); }
.recensie .leeg { font-size: 13px; color: var(--licht-3); }
.sterren { color: var(--goud); letter-spacing: 2px; font-size: 15px; margin-left: auto; }
.sterkeuze { display: flex; gap: 4px; }
.sterkeuze button { background: none; border: 0; font-size: 30px; line-height: 1; padding: 2px; color: rgba(255,255,255,.22); }
.sterkeuze button.aan { color: var(--goud); }
.recensie textarea { min-height: 70px; resize: vertical; }

/* het officiële verslag */
.rapport {
  position: relative; overflow: hidden;
  background: var(--papier) repeating-linear-gradient(0deg, transparent 0 31px, rgba(29,27,23,.025) 31px 32px);
  color: var(--inkt); border-radius: 6px; padding: 26px 22px 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 15px; line-height: 1.55;
}
.rapport::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--inkt) 0 18px, var(--goud) 18px 22px);
}
.rapport .r-instantie { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 2px solid var(--inkt); }
.rapport .r-instantie .naam { font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; }
.rapport .r-instantie .naam small { display: block; font-family: var(--sans); font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--inkt-3); font-size: 12px; margin-top: 2px; }
.rapport .r-instantie .naam { flex: 1; min-width: 0; }
.rapport .r-instantie .kenmerk { flex: none; font-size: 11px; color: var(--inkt-3); text-align: right; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rapport .plus { color: var(--winst); }
.rapport .min { color: var(--verlies); }
.rapport h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 18px 0 4px; }
.rapport .r-meta { color: var(--inkt-2); font-size: 14px; margin-bottom: 14px; }
.rapport h3 { font-family: var(--serif); font-weight: 600; font-size: 17px; margin: 22px 0 8px; padding-top: 12px; border-top: 1px solid var(--papier-lijn); }
.rapport p { margin: 0 0 10px; }
.rapport .voorbehoud { font-size: 13px; color: var(--inkt-2); background: var(--papier-2); border-left: 3px solid var(--goud-diep); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.rapport .bevinding { margin-bottom: 14px; }
.rapport .bv-kop { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rapport .bv-kop .naam { font-weight: 700; }
.rapport .bv-kop .rol { font-size: 12px; color: var(--inkt-3); }
.rapport .bv-kop .bedrag { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.rapport .bv-ondertitel { font-family: var(--serif); font-style: italic; color: var(--inkt-2); margin-bottom: 2px; }
.rapport ol.punten { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.zekerheid {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 4px; vertical-align: 1px; margin-right: 2px;
  border: 1px solid currentColor;
}
.zekerheid.zeker { color: #1d6b3a; }
.zekerheid.waarschijnlijk { color: #8a5a00; }
.zekerheid.mogelijk { color: #6b6357; }
.onderscheidingen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.onderscheidingen li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.medaille {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3dc9c, var(--goud) 55%, var(--goud-diep));
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--goud-tekst); font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.onderscheidingen .titel { font-weight: 700; }
.onderscheidingen .wie { color: var(--inkt-2); font-size: 14px; }
table.klein { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.klein td { padding: 6px 0; border-bottom: 1px dotted var(--papier-lijn); }
table.klein td:last-child { text-align: right; font-weight: 600; }
table.klein td.plek { width: 26px; color: var(--inkt-3); }
.ondertekening { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.ondertekening .wie { font-size: 14px; color: var(--inkt-2); line-height: 1.4; }
.ondertekening .handtekening { display: block; font-family: var(--serif); font-style: italic; font-size: 24px; color: #22324f; margin: 2px 0; }
.stempel {
  flex: none; transform: rotate(-9deg);
  border: 3px double var(--stempel); color: var(--stempel); border-radius: 8px;
  padding: 6px 12px; text-align: center; opacity: 0.82;
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 15px;
}
.stempel small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.08em; font-weight: 600; }
.kleine-lettertjes { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--papier-lijn); font-size: 11px; color: var(--inkt-3); }
.onder-rapport { display: grid; gap: 6px; margin-top: 14px; }
.hint-licht { margin: 0; font-size: 12px; color: var(--licht-3); text-align: center; }
.voorbeeld-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--goud); margin-bottom: 8px; }

/* ---------- melding & lagen ---------- */
.melding {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: min(560px, calc(100% - 32px));
  background: var(--papier); color: var(--inkt); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s, transform 0.2s;
  display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.melding.zichtbaar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.melding .m-tekst { flex: 1; }
.melding .m-tekst b { display: block; }
.melding .m-fiches { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.melding .m-fiches span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.melding .tekstknop { color: var(--inkt-2); flex: none; }
.melding.fout { background: #ffe6e2; }

.laag {
  position: fixed; inset: 0; z-index: 50; background: rgba(4, 20, 14, 0.72);
  display: grid; place-items: end center; padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .laag { place-items: center; } }
.laag .papier { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.laag h2 { font-family: var(--serif); font-weight: 600; margin: 0 0 6px; font-size: 22px; }
.laag p { margin: 0 0 14px; color: var(--inkt-2); font-size: 14px; }
.ik-keuzes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ik-keuzes button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--papier-lijn); background: #fffdf7; text-align: left; color: var(--inkt); }
.ik-keuzes button small { display: block; color: var(--inkt-3); font-size: 12px; }
.instel-rij { display: grid; grid-template-columns: 30px 1fr 90px 80px; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.instel-rij input { min-height: 40px; padding: 6px 8px; text-align: right; }
.instel-kop { display: grid; grid-template-columns: 30px 1fr 90px 80px; gap: 8px; font-size: 11px; color: var(--inkt-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.laag-knoppen { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.deel { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--papier-lijn); }
.deel h3 { font-family: var(--serif); font-weight: 600; font-size: 17px; margin: 0 0 4px; }
body.op-slot nav.tabs { display: none; }

@media (max-width: 360px) {
  .teller .aantal { font-size: 34px; }
  .fiche { width: 38px; height: 38px; border-width: 4px; }
}

/* ---------- verslag als pdf (via afdrukken) ---------- */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body.print-verslag { background: #fff !important; color: var(--inkt); padding: 0 !important; }
  body.print-verslag header.kop,
  body.print-verslag nav.tabs,
  body.print-verslag #melding,
  body.print-verslag #laag,
  body.print-verslag #app > :not(.rapport) { display: none !important; }
  body.print-verslag #app { max-width: none; margin: 0; padding: 0; }
  body.print-verslag .rapport { background: #fff; box-shadow: none; border-radius: 0; padding: 18px 0 0; font-size: 12pt; overflow: visible; }
  body.print-verslag .rapport,
  body.print-verslag .rapport * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-verslag .rapport h3 { break-after: avoid; }
  body.print-verslag .rapport .bevinding,
  body.print-verslag .rapport table,
  body.print-verslag .rapport li,
  body.print-verslag .rapport .ondertekening { break-inside: avoid; }
}
