:root {
  --achter1: #141e30;
  --achter2: #243b55;
  --goud: #ffbd2e;
  --goud-licht: #ffdc73;
  --vak: #34465e;
  --groen: #27ae60;
  --rood: #e74c3c;
  --tekst: #ffffff;
  --zacht: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, var(--achter1), var(--achter2)) fixed;
  color: var(--tekst);
  text-align: center;
}
header { padding: 18px 16px 6px; font-size: 30px; font-weight: bold; color: var(--goud); }
header small { display: block; font-size: 14px; color: #c9d3e0; font-weight: normal; margin-top: 4px; }
.container { max-width: 1100px; margin: auto; padding: 12px 16px 40px; }
.blok { background: var(--zacht); border-radius: 12px; padding: 16px; margin: 16px 0; }
.rij { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
input, select, button, textarea {
  padding: 12px 16px; border: none; border-radius: 8px; font-size: 16px; font-family: inherit;
}
input, select, textarea { background: #fff; color: #172033; }
button { background: var(--goud); color: #222; font-weight: bold; cursor: pointer; }
button:hover { background: var(--goud-licht); }
button.stil { background: #4b5d78; color: #fff; }
button.gevaar { background: var(--rood); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--goud-licht); }
.bal {
  width: 190px; height: 190px; line-height: 190px; margin: 20px auto; border-radius: 50%;
  background: var(--goud); color: #172033; font-size: 80px; font-weight: bold; box-shadow: 0 0 30px var(--goud);
}
.bal.klein { width: 110px; height: 110px; line-height: 110px; font-size: 46px; margin: 10px auto; }
.omroep { font-size: 20px; min-height: 28px; margin: 8px auto 4px; max-width: 700px; font-style: italic; }
.info { font-size: 18px; margin: 10px; }
.grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 16px; }
.grid.g75 { grid-template-columns: repeat(15, 1fr); }
.cel { background: var(--vak); padding: 10px 2px; border-radius: 5px; font-size: 16px; font-weight: bold; }
.cel.getrokken { background: var(--groen); }
.cel.laatste { background: var(--goud); color: #111; transform: scale(1.08); }
.kaarten { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.kaart { background: #fff; color: #172033; border-radius: 10px; padding: 10px; }
.kaart table { border-collapse: collapse; margin: auto; }
.kaart th { color: var(--achter2); font-size: 22px; padding: 4px; }
.kaart td { width: 46px; height: 46px; border: 2px solid #d0d7e2; font-size: 20px; font-weight: bold; }
.kaart.k90 td { width: 36px; height: 40px; font-size: 17px; }
.kaart td.leeg { background: #eef1f6; }
.kaart td.raak { background: var(--groen); color: #fff; }
.kaart td.vrij { background: var(--goud); font-size: 12px; }
.kaart .code { font-size: 13px; color: #556; margin-top: 6px; letter-spacing: 2px; }
.melding { padding: 12px; border-radius: 8px; margin: 10px auto; max-width: 600px; font-weight: bold; }
.melding.goed { background: var(--groen); }
.melding.fout { background: var(--rood); }
.melding.neutraal { background: #4b5d78; }
.klein { font-size: 13px; color: #c9d3e0; overflow-wrap: anywhere; }
.verborgen { display: none !important; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lijst { text-align: left; max-height: 260px; overflow: auto; font-size: 15px; line-height: 1.6; }
.chat { text-align: left; max-height: 300px; overflow: auto; }
.chat p { margin: 6px 0; }
.chat .vraag { color: var(--goud-licht); }
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .grid.g75 { grid-template-columns: repeat(8, 1fr); }
  .bal { width: 150px; height: 150px; line-height: 150px; font-size: 62px; }
  header { font-size: 24px; }
  .twee { grid-template-columns: 1fr; }
  .kaart td { width: 52px; height: 52px; }
  .kaart.k90 td { width: 9.6vw; height: 40px; font-size: 15px; }
}
@media print {
  body { background: #fff; color: #000; }
  header, .geen-print { display: none !important; }
  .kaarten { gap: 10px; }
  .kaart { border: 1px solid #999; break-inside: avoid; }
}
