:root {
  --ink: #142037;
  --ink-2: #4a5874;
  --ink-3: #7c88a1;
  --line: rgba(20, 32, 55, 0.1);
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --soft: #f2f5fb;
  --brand: #2f6bff;
  --brand-ink: #1f4fd1;
  --good: #1fa463;
  --good-soft: #e3f6ec;
  --bad: #e5484d;
  --bad-soft: #fdecec;
  --shadow: 0 10px 30px rgba(10, 20, 45, 0.18), 0 2px 6px rgba(10, 20, 45, 0.08);
  --radius: 18px;
  --panel-w: 400px;

  --c-eur: #5b7ff0;
  --c-afr: #f0a03a;
  --c-azi: #e5646a;
  --c-nam: #3fae7c;
  --c-zam: #a874e6;
  --c-oce: #22aebb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #070d1f;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

#map {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, #1d3567 0%, #0d1b3d 45%, #060b1a 100%);
}

/* ---------- Bovenbalk ---------- */

.topbar {
  position: fixed;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
  z-index: 10;
  width: min(560px, calc(100vw - var(--panel-w) - 64px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 10px;
  height: 48px;
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo { width: 30px; height: 30px; color: var(--brand); }
.brand-logo svg { width: 100%; height: 100%; }
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: -0.2px; }

.search { position: relative; flex: 1; min-width: 0; }
.search input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px 0 44px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.search input:focus { box-shadow: var(--shadow), 0 0 0 3px rgba(47, 107, 255, 0.35); }
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-3); pointer-events: none;
}
.search-results {
  position: absolute;
  top: 56px; left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--card-solid);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-height: 340px;
  overflow-y: auto;
}
.search-results li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.search-results li[aria-selected="true"], .search-results li:hover { background: var(--soft); }
.search-results img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.search-results .r-name { font-weight: 800; }
.search-results .r-sub { font-size: 13px; color: var(--ink-3); }
.search-results .r-empty { color: var(--ink-3); cursor: default; }

/* ---------- Modi en werelddelen ---------- */

.modes {
  position: fixed;
  top: 76px;
  left: 16px;
  z-index: 9;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  max-width: calc(100vw - var(--panel-w) - 64px);
  overflow-x: auto;
  scrollbar-width: none;
}
.modes::-webkit-scrollbar { display: none; }
.mode {
  display: flex; align-items: center; gap: 6px;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.mode:hover { background: var(--soft); color: var(--ink); }
.mode[aria-pressed="true"] { background: var(--brand); color: #fff; }
.mode-ico { font-size: 16px; }

.continents {
  position: fixed;
  top: 132px;
  left: 16px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(560px, calc(100vw - var(--panel-w) - 64px));
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(10, 20, 45, 0.16);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-2);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #94a3b8); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; }

/* ---------- Paneel ---------- */

.panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: var(--panel-w);
  z-index: 10;
  background: var(--card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.panel-handle { display: none; }

.pad { padding: 22px 22px 8px; }
.pad-b { padding-bottom: 22px; }

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-3);
  margin: 0 0 6px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.3px; }
.panel h1 { font-size: 28px; font-weight: 900; line-height: 1.1; }
.panel h2 { font-size: 19px; font-weight: 900; }
.panel h3 { font-size: 16px; font-weight: 800; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
p { line-height: 1.55; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 15px;
  background: var(--soft);
  color: var(--ink);
  transition: transform 0.08s, background 0.15s;
}
.btn:hover { background: #e6ebf5; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-block { width: 100%; }

/* Welkom */
.hero-globe {
  height: 150px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), transparent 40%),
    linear-gradient(135deg, #2f6bff, #22aebb 60%, #3fae7c);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 64px;
  margin-bottom: 18px;
}
.feature-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
}
.feature-list .fi { font-size: 22px; line-height: 1; }
.feature-list b { display: block; }
.feature-list span { font-size: 14px; color: var(--ink-2); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 4px; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--dot); }

/* Landkaart */
.country-head { display: flex; gap: 14px; align-items: center; }
.flag-lg {
  width: 84px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(10, 20, 45, 0.12);
  background: var(--soft);
  flex-shrink: 0;
}
.cont-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dot) 16%, white);
  color: color-mix(in srgb, var(--dot) 70%, black);
  margin-top: 6px;
}
.cont-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.official { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 6px;
}
.fact {
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.fact dt { font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.5px; }
.fact dd { margin: 2px 0 0; font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.fact.wide { grid-column: 1 / -1; }
.fact-link { border: 0; background: none; padding: 0; font-weight: 800; color: var(--brand); text-align: left; }
.fact-link:hover { text-decoration: underline; }

.section { padding: 14px 22px; border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 8px; }
.extract { margin: 0; color: var(--ink-2); font-size: 15px; }
.wiki-link { display: inline-block; margin-top: 8px; font-weight: 800; color: var(--brand); text-decoration: none; font-size: 14px; }
.wiki-link:hover { text-decoration: underline; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.gallery button {
  border: 0; padding: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--soft);
}
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.gallery button:hover img { transform: scale(1.05); }

.capital-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
}
.capital-card .cap-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dfe5f0; }
.capital-card .cap-body { padding: 12px 14px 14px; }

.skeleton {
  background: linear-gradient(90deg, #eef1f7 25%, #f7f9fc 50%, #eef1f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}
.sk-line { height: 13px; margin: 8px 0; }
.sk-img { aspect-ratio: 16 / 9; }
@keyframes shimmer { to { background-position: -200% 0; } }

.credit { font-size: 12px; color: var(--ink-3); padding: 10px 22px 22px; }
.credit a { color: inherit; }

/* ---------- Oefenen ---------- */

.quiz-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.score-pills { display: flex; gap: 6px; }
.pill {
  font-size: 13px; font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
}
.pill.good { background: var(--good-soft); color: var(--good); }
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
  margin-bottom: 18px;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #22aebb);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.question { font-size: 24px; font-weight: 900; line-height: 1.2; margin: 0 0 6px; }
.question em { font-style: normal; color: var(--brand); }
.hint { color: var(--ink-2); margin: 0 0 16px; font-size: 15px; }

.flag-question {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
  margin: 6px 0 16px;
}
.flag-question img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(10, 20, 45, 0.2));
}

.options { display: grid; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  text-align: left;
  border: 2px solid var(--line);
  background: var(--card-solid);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 16px;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
}
.option:hover:not(:disabled) { border-color: var(--brand); }
.option:active:not(:disabled) { transform: scale(0.99); }
.option kbd {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--soft);
  font-family: inherit; font-size: 13px; font-weight: 900;
  color: var(--ink-3);
  flex-shrink: 0;
}
.option:disabled { cursor: default; }
.option.correct { border-color: var(--good); background: var(--good-soft); }
.option.correct kbd { background: var(--good); color: #fff; }
.option.wrong { border-color: var(--bad); background: var(--bad-soft); }
.option.wrong kbd { background: var(--bad); color: #fff; }
.option.faded { opacity: 0.55; }

.feedback {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  display: none;
}
.feedback.show { display: block; animation: pop 0.25s ease; }
.feedback.good { background: var(--good-soft); color: #11663d; }
.feedback.bad { background: var(--bad-soft); color: #9b1c20; }
.feedback b { font-weight: 900; }
.feedback .fb-title { font-size: 17px; display: block; margin-bottom: 2px; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

.quiz-actions { display: flex; gap: 8px; margin-top: 14px; }
.quiz-actions .btn { flex: 1; }

.target-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
  margin-bottom: 4px;
}
.target-card .flag-sm { width: 54px; height: 36px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.target-card .t-name { font-size: 24px; font-weight: 900; line-height: 1.1; }

.result {
  text-align: center;
  padding: 10px 0 6px;
}
.result .big {
  font-size: 64px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand), #22aebb);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stars { font-size: 30px; letter-spacing: 4px; margin: 6px 0 4px; }
.mistakes { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; text-align: left; }
.mistakes li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 14px;
}
.mistakes img { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.mistakes b { font-weight: 900; }

.mode-intro .big-ico { font-size: 44px; margin-bottom: 8px; }
.length-pick { display: flex; gap: 6px; margin: 14px 0 18px; }
.length-pick button {
  flex: 1;
  border: 2px solid var(--line);
  background: var(--card-solid);
  border-radius: 12px;
  padding: 8px 6px;
  font-weight: 800;
}
.length-pick button[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: #eef3ff; }
.best { font-size: 14px; color: var(--ink-2); margin-top: 12px; }

/* ---------- Kaartdetails ---------- */

.tooltip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translate(12px, 12px);
  white-space: nowrap;
}

.cap-marker {
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.cap-marker .star {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.cap-marker .label {
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.maplibregl-ctrl-bottom-right { right: calc(var(--panel-w) + 24px); }
.maplibregl-ctrl-attrib { font-size: 11px; border-radius: 8px 0 0 0; }

/* ---------- Lightbox en laden ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6, 11, 26, 0.86);
  display: grid; place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #dbe3f3; text-align: center; margin-top: 10px; font-size: 14px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 28px; line-height: 1;
}

.loading {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  background: radial-gradient(ellipse at 50% 45%, #1d3567 0%, #0d1b3d 45%, #060b1a 100%);
  color: #dbe3f3; font-weight: 800;
  transition: opacity 0.5s;
}
.loading.done { opacity: 0; pointer-events: none; }
.loading-globe {
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(from 0deg, #2f6bff, #22aebb, #3fae7c, #2f6bff);
  animation: spin 1.4s linear infinite;
  mask: radial-gradient(circle, transparent 52%, #000 54%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading .error { color: #ffb4b4; max-width: 320px; text-align: center; }


/* ---------- Spreekbeurt: buurlanden, hoofdstukken, tips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mini-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: var(--card-solid);
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 800; font-size: 13px;
}
.mini-chip:hover { box-shadow: 0 0 0 2px var(--brand); }
.mini-chip img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.place-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 14px;
  background: var(--soft);
  cursor: zoom-in;
}
.source { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }

.tip {
  background: #fff7e6;
  border: 1px solid #f6dfae;
  color: #6b4a0c;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0 12px;
}
.tip b { display: block; margin-bottom: 2px; }

.chapter {
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 8px;
  overflow: hidden;
}
.chapter summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary::after { content: "＋"; color: var(--ink-3); font-weight: 900; }
.chapter[open] summary::after { content: "−"; }
.chapter-body { padding: 0 14px 12px; }
.chapter-body p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.chapter-body h4 { margin: 14px 0 6px; font-size: 14px; font-weight: 900; color: var(--ink); }

.search-results .r-group {
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ink-3); padding: 8px 10px 4px; cursor: default;
}
.search-results .r-group:hover { background: none; }
.search-results .r-wiki img { width: 28px; height: 28px; border-radius: 6px; }
.search-results .r-ico { width: 28px; text-align: center; font-size: 18px; }

.place-marker {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}


/* ---------- Weetjes en foto's raden ---------- */

.cat-chip {
  border: 2px solid var(--line);
  background: var(--card-solid);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800; font-size: 14px;
}
.cat-chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: #eef3ff; }

.fact-list { display: grid; gap: 10px; margin-top: 14px; }
.fact-card {
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.fact-card:hover, .fact-card.active { border-color: var(--brand); }
.fact-card p { margin: 6px 0; font-size: 15px; }
.fact-card-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fact-card-top img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.cat-badge {
  margin-left: auto;
  font-size: 12px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  background: var(--card-solid); color: var(--ink-2);
  white-space: nowrap;
}
.did-you-know {
  background: #fff7e6;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.did-you-know p { margin: 0 0 4px; font-size: 15px; }

.photo-question {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  margin: 6px 0 16px;
}
.photo-question img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photo-caption { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; opacity: 0.85; }
.feedback .wiki-link { display: block; margin-top: 6px; color: inherit; }

/* ---------- Afdrukken (spreekbeurt op papier of als PDF) ---------- */

@media print {
  html, body { overflow: visible; height: auto; background: #fff; }
  #map, .topbar, .modes, .continents, .tooltip, .lightbox, .loading, .maplibregl-control-container, .no-print, .panel-handle { display: none !important; }
  .panel {
    position: static; width: auto; max-height: none; overflow: visible;
    box-shadow: none; background: #fff; backdrop-filter: none; border-radius: 0;
  }
  .panel.collapsed { max-height: none; }
  .section { break-inside: avoid-page; }
  .chapter { background: none; break-inside: auto; }
  .chapter summary { padding: 8px 0; font-size: 17px; }
  .chapter summary::after { content: none; }
  .chapter-body { padding: 0; }
  .fact { background: #f4f6fa; }
  a.wiki-link { color: #333; }
}

/* ---------- Telefoon ---------- */

@media (max-width: 760px) {
  :root { --panel-w: 0px; }

  .topbar { top: 10px; left: 10px; right: 10px; width: auto; }
  .brand { padding: 0 9px; }
  .brand-name { display: none; }
  .search input { height: 44px; font-size: 16px; }
  .brand { height: 44px; }

  .modes { top: 62px; left: 10px; right: 10px; max-width: none; }
  .mode { padding: 7px 11px; font-size: 14px; }

  .continents {
    top: 112px; left: 0; right: 0; max-width: none;
    flex-wrap: nowrap; overflow-x: auto; padding: 0 10px 8px;
    scrollbar-width: none;
  }
  .continents::-webkit-scrollbar { display: none; }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto;
    max-height: 52vh;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transition: max-height 0.25s ease;
  }
  .panel.collapsed { max-height: 120px; overflow: hidden; }
  .panel-handle {
    display: block;
    position: sticky; top: 0; z-index: 2;
    width: 100%; height: 22px;
    border: 0; background: var(--card);
  }
  .panel-handle::before {
    content: ""; display: block;
    width: 44px; height: 5px; border-radius: 999px;
    background: #cdd5e3; margin: 8px auto 0;
  }
  .pad { padding: 6px 18px 8px; }
  .section { padding: 12px 18px; }
  .panel h1 { font-size: 24px; }
  .question { font-size: 21px; }
  .hero-globe { display: none; }
  .maplibregl-ctrl-bottom-right { right: 0; bottom: 52vh; }
  .maplibregl-ctrl-top-right { display: none; }
}
