/* De site van Spindrum, in de kleuren van de app (app/.../ui/Thema.kt en res/values/kleuren.xml):
   lakrood #9E1B32 van de trommel, goud #F2C14E van de bal, warm papier #FBF7F2. Licht en donker
   volgen het toestel (prefers-color-scheme), net als de app. Geen lettertypen van buiten: de letters
   van het toestel. Geen style-attributen (CSP). Richtingen met logische eigenschappen (inline-start
   en inline-end), zodat dir="rtl" (he) vanzelf goed staat. De tv, de loten en het horloge op de
   beginpagina zijn HTML van tools/site-build.py (aria-hidden, zonder woorden); het bord leest van
   links naar rechts, dus die staan vast op ltr. Hun maten schalen met de breedte van de tekening
   (container-eenheden cqi). De kleuren van de loten (lk0, lk1 ...) zet de bouw achter dit bestand,
   uit Teksten.LOTKLEUREN. */

:root {
  --papier: #fbf7f2;
  --vlak: #f3ece5;
  --kaart: #fffdf9;
  --rand: #e6dbd2;
  --lijn: #d3c4ba;
  --inkt: #201a1a;
  --inkt-zacht: #4f4540;
  --rood: #9e1b32;
  --rood-vlak: #ffdadc;
  --op-rood: #fbf7f2;
  --goud: #b07a00;
  --goud-tekst: #7f5800;
  --goud-licht: #f2c14e;
  --goud-vlak: #ffe9b0;
  --link: #9e1b32;
  --diep: #efe4dc;
  --schaduw: 0 1px 2px rgba(64, 0, 13, .08), 0 10px 28px rgba(64, 0, 13, .10);
  --zonder: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #14110f;
    --vlak: #1d1917;
    --kaart: #27221f;
    --rand: #3a322e;
    --lijn: #4a403b;
    --inkt: #ede0db;
    --inkt-zacht: #d7c3b8;
    --rood: #ffb2b9;
    --rood-vlak: #7f0e27;
    --op-rood: #40000d;
    --goud: #f2c14e;
    --goud-tekst: #f2c14e;
    --goud-licht: #f2c14e;
    --goud-vlak: #5b4300;
    --link: #ffb2b9;
    --diep: #100d0c;
    --schaduw: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:lang(ko) { word-break: keep-all; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--zonder);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, .merk, .voet-merk {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); margin: 0 0 .5em; letter-spacing: -.02em; color: var(--rood); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin: 0 0 .6em; color: var(--rood); }
h3 { font-size: 1.15rem; margin: 0 0 .4em; font-weight: 700; }
html:lang(ja) h1, html:lang(ko) h1, html:lang(zh-TW) h1 { text-wrap: wrap; }

p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-color: var(--goud); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .knop:focus-visible {
  outline: 3px solid var(--goud);
  outline-offset: 2px;
  border-radius: 4px;
}
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }
ul, ol { padding-inline-start: 1.3em; }
li { margin: .25em 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.smal { max-width: 46rem; }
.lead { font-size: 1.2rem; }
.klein { font-size: .875rem; color: var(--inkt-zacht); }

.overslaan {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--rood); color: var(--op-rood); font-weight: 700;
  padding: .5rem 1rem; border-radius: 0 0 8px 8px; z-index: 10;
}
.overslaan:focus { top: 0; }

/* ---------------------------------------------------------------- kop */

.kop { border-bottom: 1px solid var(--lijn); background: var(--papier); }
.kop-rij { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-top: .75rem; padding-bottom: .75rem; }
.merk { display: inline-flex; align-items: center; gap: .55rem; color: var(--rood); text-decoration: none; font-size: 1.35rem; }
.merk .logo { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-inline-start: auto; }
.menu a { color: var(--inkt); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--goud); }

.taalkeuze { position: relative; }
.taalkeuze summary {
  list-style: none; cursor: pointer; padding: .3rem .7rem; border: 1px solid var(--lijn);
  border-radius: 999px; font-size: .95rem; white-space: nowrap;
}
.taalkeuze summary::-webkit-details-marker { display: none; }
.taalkeuze summary::after { content: " \25BE"; color: var(--inkt-zacht); }
.taalkeuze[open] summary { background: var(--vlak); }
.talen {
  position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 5;
  list-style: none; margin: 0; padding: .4rem; min-width: 15rem; max-height: 70vh; overflow: auto;
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: 12px; box-shadow: var(--schaduw);
  columns: 2; column-gap: .25rem;
}
.talen li { margin: 0; break-inside: avoid; }
.talen a { display: block; padding: .3rem .55rem; border-radius: 8px; color: var(--inkt); text-decoration: none; }
.talen a:hover { background: var(--vlak); }
.talen a[aria-current] { background: var(--goud-vlak); font-weight: 600; }

/* ---------------------------------------------------------------- beginpagina */

.held { padding: 3rem 0 3.5rem; }
.held-rij { display: grid; gap: 2.5rem; align-items: center; }
.held-klein { color: var(--inkt-zacht); font-size: .95rem; }
.held-beeld { display: flex; justify-content: center; min-width: 0; }

.knop {
  display: inline-block; background: var(--rood); color: var(--op-rood); text-decoration: none;
  padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700;
}
.knop-stil { background: transparent; color: var(--rood); border: 1px solid var(--rood); }

.blok { padding: 3.25rem 0; }
.blok-zacht { background: var(--vlak); border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
.blok-accent { background: #9e1b32; color: #fbf7f2; }
.blok-accent h2 { color: #f2c14e; }
.blok-accent a { color: #fff; text-decoration-color: #f2c14e; }

.kaarten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.kaart {
  background: var(--kaart); border: 1px solid var(--rand); border-radius: 16px; padding: 1.25rem 1.25rem .5rem;
}
.kaart h3 { color: var(--rood); }
.kaart-plus { border-color: var(--goud); border-width: 2px; }
.kaart-plus h3 { color: var(--goud-tekst); }
.noot { margin: 1.5rem 0 0; color: var(--inkt-zacht); }
.noot-icoon { margin-top: 1.5rem; }

.twee { display: grid; gap: 2rem; }
.twee-midden { align-items: center; }
.prijs { margin-top: 1.5rem; gap: 1rem; }
.beeld-plek { display: flex; justify-content: center; min-width: 0; }

/* Opsommingen met een gouden bal ervoor, met een witte kern zoals de ballen in de app. */
.vinkjes { list-style: none; padding: 0; }
.vinkjes li { position: relative; padding-inline-start: 1.9rem; }
.vinkjes li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .32em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: radial-gradient(circle closest-side, #fffdf9 0 42%, var(--goud-licht) 46%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.vraag { border-bottom: 1px solid var(--lijn); padding: .75rem 0; }
.vraag summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.vraag summary::marker { color: var(--goud); }
.vraag .antwoord { padding-top: .5rem; }

@media (min-width: 52rem) {
  .held-rij { grid-template-columns: 1fr 1.05fr; }
  .twee { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- de ballen (aria-hidden)
   Zoals Bal in Bord.kt: de kleur van de rij met een lichte glans, en een witte kern met het nummer.
   Kolomkleuren in Bord.kt: blauw, rood, wit, groen, geel. */

.k1 { --kleur: #1e6fd9; --op-kleur: #fff; }
.k2 { --kleur: #d7263d; --op-kleur: #fff; }
.k3 { --kleur: #eceff4; --op-kleur: #15151a; }
.k4 { --kleur: #2e9e4f; --op-kleur: #fff; }
.k5 { --kleur: #f4c430; --op-kleur: #15151a; }

.bal {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; flex: none;
  color: #15151a; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle closest-side, rgba(255, 255, 255, .94) 0 66%, transparent 68%),
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), var(--kleur) 58%);
}

/* ---------------------------------------------------------------- de tv (aria-hidden)
   Zoals TvBingo in Bord.kt, liggend: links de grote bal en de ballen ervoor, rechts het bord van
   5 rijen van 15 op donkerblauw, de getrokken nummers in de kleur van hun rij en het laatste met
   een witte rand. */

.tv { direction: ltr; width: 100%; max-width: 32rem; container-type: inline-size; }
.tv-kast { background: linear-gradient(160deg, #2b2e35, #121318); border-radius: 3.5cqi; padding: 2.6cqi; box-shadow: var(--schaduw); }
.tv-scherm {
  aspect-ratio: 16 / 9; background: #0b0f1e; border-radius: 1.2cqi; overflow: hidden;
  display: grid; grid-template-columns: 30% 1fr; align-items: center; gap: 2.5cqi; padding: 2.5cqi 3cqi;
}
.tv-voet { display: block; width: 26%; height: 2.4cqi; margin: 0 auto; background: #2b2e35; border-radius: 0 0 1.5cqi 1.5cqi; }
.tv-links { display: flex; flex-direction: column; align-items: center; gap: 3cqi; }
.tv-links .groot { width: 100%; font-size: 10.5cqi; box-shadow: 0 0 0 .9cqi rgba(244, 196, 48, .18); }
.vorige { display: flex; gap: .9cqi; justify-content: center; }
.vorige .bal { width: 5.6cqi; font-size: 2.3cqi; }

.bord {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(15, 1fr); gap: .45cqi;
}
.bord li {
  margin: 0; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: #1a2138; color: #8a90a8; font-size: 1.55cqi; font-weight: 700; font-variant-numeric: tabular-nums;
}
.bord .uit { background: var(--kleur); color: var(--op-kleur); }
.bord .laatst { box-shadow: 0 0 0 .4cqi #fff; }

/* ---------------------------------------------------------------- de loten (aria-hidden)
   Twee loten van de tombola, zoals de lotkaart in de app: het nummer groot, met een afscheurstrook
   achter een stippellijn. De kleur komt uit lk0, lk1 ... (achter dit bestand, van de bouw). */

.loten { direction: ltr; position: relative; width: 100%; max-width: 22rem; aspect-ratio: 1.45; container-type: inline-size; }
.lot {
  position: absolute; display: flex; width: 86%; aspect-ratio: 2.1; border-radius: 4.5cqi;
  box-shadow: var(--schaduw); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
}
.lot-achter { top: 0; inset-inline-end: 0; transform: rotate(7deg); }
.lot-voor { bottom: 3%; inset-inline-start: 0; transform: rotate(-5deg); }
.lot-strook {
  width: 28%; display: grid; place-items: center; font-size: 5.5cqi; opacity: .85;
  border-inline-end: .9cqi dashed currentColor;
}
.lot-nr { flex: 1; display: grid; place-items: center; font-size: 17cqi; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- het horloge (aria-hidden)
   Zoals Afstand in wear: zwart rond scherm, het laatste nummer groot op een gouden schijf, en
   daaronder ongedaan en pauze in goud. */

.horloge {
  direction: ltr; width: 16rem; max-width: 78vw; aspect-ratio: 1; border-radius: 50%; padding: .9rem;
  background: linear-gradient(145deg, #3b3f46, #15171b); box-shadow: var(--schaduw); container-type: inline-size;
}
.wijzerplaat {
  width: 100%; height: 100%; border-radius: 50%; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqi; padding-top: 6cqi;
}
.schijf {
  width: 50%; aspect-ratio: 1; border-radius: 50%; background: #f2c14e; color: #15151a;
  display: grid; place-items: center; font-size: 19cqi; font-weight: 900; line-height: 1;
}
.knopjes { display: flex; gap: 12cqi; align-items: center; }
.pauze { width: 7cqi; height: 8cqi; border-inline: 2.4cqi solid #f2c14e; }
.ongedaan {
  position: relative; width: 8cqi; height: 6cqi; border: 2cqi solid #f2c14e; border-inline-start-color: transparent;
  border-bottom-color: transparent; border-radius: 0 6cqi 0 0;
}
.ongedaan::before {
  content: ""; position: absolute; left: -3.6cqi; top: -4.2cqi;
  border: 3.2cqi solid transparent; border-right: 4cqi solid #f2c14e; border-left: 0;
}

/* ---------------------------------------------------------------- tekstpagina's */

.tekst { max-width: 46rem; padding: 2.5rem 0 3rem; }
.tekst h2 { margin-top: 2rem; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.bijgewerkt { color: var(--inkt-zacht); font-size: .95rem; }
.tekst ol > li { margin: .6em 0; }

/* ---------------------------------------------------------------- voet */

.voet { border-top: 1px solid var(--lijn); background: var(--diep); padding: 2.5rem 0 2rem; font-size: .95rem; }
.voet-rij { display: grid; gap: 1.5rem; }
.voet-merk { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin-bottom: .5rem; color: var(--rood); }
.voet-merk .logo { width: 29px; height: 29px; border-radius: 50%; }
.voet-kop { font-weight: 700; margin-bottom: .25rem; }
.impressum { line-height: 1.5; }
.voet-links { list-style: none; padding: 0; margin: 0; }
.voet-links a { color: var(--inkt); }
@media (min-width: 46rem) { .voet-rij { grid-template-columns: 2fr 1fr; } }

/* 404 */
.terug { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

@media print {
  .kop, .voet, .taalkeuze, .overslaan { display: none; }
  body { background: #fff; color: #000; }
}

/* Loten: de kleuren uit Teksten.LOTKLEUREN, toegevoegd door tools/site-build.py. */
.lk0 { background-color: #e53935; color: #ffffff; }
.lk1 { background-color: #1e88e5; color: #ffffff; }
.lk2 { background-color: #fdd835; color: #15151a; }
.lk3 { background-color: #43a047; color: #ffffff; }
.lk4 { background-color: #fb8c00; color: #15151a; }
.lk5 { background-color: #ec407a; color: #ffffff; }
.lk6 { background-color: #8e24aa; color: #ffffff; }
.lk7 { background-color: #f5f5f5; color: #15151a; }
.lk8 { background-color: #00acc1; color: #ffffff; }
.lk9 { background-color: #6d4c41; color: #ffffff; }
