/* Polderprikker – topografie oefenen. Bouwt voort op style.css (kleuren, knoppen, overlays). */

/* Kaart zonder tegels: lichte zee, zachte landen */
.topo-kaart.leaflet-container,
.topo-spel #map { background: #b9dbef; cursor: pointer; }
.topo-spel .leaflet-control-attribution { background: rgba(255,255,255,.7) !important; color: #333; }
.topo-spel .leaflet-control-attribution a { color: #245; }

/* Bovenbalk: de vraag groot */
.topo-hud .hud-locatie { font-size: 24px; }
.chip-goed b { color: #7cd67c; }
.chip-fout b { color: #ff8b8b; }
.topo-hud .chip { font-variant-numeric: tabular-nums; }

/* Melding na een fout: onderaan, met knop Verder */
.topo-melding { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topo-melding p { margin: 0; flex: 1 1 200px; line-height: 1.4; }
.topo-melding b { color: var(--oranje); }
.topo-melding .knop { flex: 0 0 auto; min-height: 46px; }

/* Test 2: naam noemen */
.topo-antwoord { display: flex; flex-direction: column; gap: 8px; max-height: 38vh; padding: 10px; }
.antwoord-typ { display: flex; flex-direction: row; gap: 8px; }
.antwoord-typ input { flex: 1; min-height: 48px; font-size: 18px; }
.antwoord-typ .knop { margin: 0; min-height: 48px; flex: 0 0 auto; padding: 0 20px; }
.antwoord-lijst {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 5px;
  overflow-y: auto; min-height: 0; padding: 2px;
}
.antwoord-lijst button {
  min-height: 36px; padding: 5px 8px; margin: 0; text-align: left; font: inherit; font-size: 14px; line-height: 1.15;
  color: var(--tekst); background: rgba(255,255,255,.07); border: 1px solid var(--rand); border-radius: 10px; cursor: pointer;
}
.antwoord-lijst button:hover, .antwoord-lijst button:focus-visible { background: rgba(255,122,26,.2); border-color: var(--oranje); outline: none; }
.antwoord-lijst button.gekozen-fout { background: rgba(232,67,75,.35); border-color: #e8434b; }
.antwoord-lijst button.gekozen-goed { background: rgba(92,196,92,.35); border-color: #5cc45c; }
.antwoord-weet-niet { align-self: flex-end; background: none; border: 0; color: var(--tekst-zacht); font: inherit; font-size: 14px;
  text-decoration: underline; cursor: pointer; padding: 2px 4px; margin: 0; min-height: 0; }
.topo-noemen .hud-locatie { color: var(--oranje); }

/* Startscherm: modus kiezen */
.topo h1.titel::before { content: none; }
.topo-modi { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.topo-modus {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  width: 100%; padding: 14px 16px; margin: 0;
  font: inherit; color: var(--tekst); background: rgba(255,255,255,.05);
  border: 2px solid var(--rand); border-radius: 14px; cursor: pointer;
}
.topo-modus b { font-size: 17px; }
.topo-modus span { color: var(--tekst-zacht); font-size: 14px; line-height: 1.35; }
.topo-modus.klaar { border-color: var(--oranje); background: rgba(255,122,26,.12); }
.topo-modus.klaar:hover { background: rgba(255,122,26,.22); }
.topo-modus:not(.klaar):not(:disabled) { opacity: .6; cursor: wait; }   /* kaart nog aan het laden */
.topo-modus:disabled { opacity: .5; cursor: default; }
.topo-modus:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.topo-binnenkort {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 11px !important; font-weight: 600; color: var(--tekst) !important; background: rgba(255,255,255,.12);
}
.topo-tip { margin: 12px 0 0; font-size: 13px; color: var(--tekst-zacht); }

/* Uitslag */
.eind-score { margin: 4px 0 4px; font-size: 44px; font-weight: 800; color: var(--oranje); line-height: 1; }
.eind-score-label { font-size: 18px; font-weight: 600; color: var(--tekst); }
.topo-fouten td:nth-child(2) { color: var(--tekst-zacht); }

/* ---------- Toetsenlijst ---------- */
.topo-toetsen { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.topo-toets {
  display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box;
  padding: 16px; border: 1px solid var(--rand); border-radius: 16px; background: rgba(255,255,255,.04);
  color: var(--tekst); text-decoration: none; transition: background .15s, border-color .15s;
}
.topo-toets:hover, .topo-toets:focus-visible { background: rgba(255,122,26,.12); border-color: var(--oranje); }
.topo-toets b { font-size: 18px; }
.topo-aantal { font-size: 13px; color: var(--oranje); font-weight: 600; }
.topo-omschrijving { font-size: 14px; color: var(--tekst-zacht); line-height: 1.4; }
.topo-beste { font-size: 13px; color: #7cd67c; }
.topo-beste:empty { display: none; }
.topo-overzicht .voet { margin-top: 24px; }
