:root {
    --bg: #ecebe6; --screen: #f7f6f2; --surface: #ffffff; --text: #1d1e27; --muted: #6c6e7a; --line: #e2e1dc;
    --accent: #5a4cc8; --accent-ink: #3d3196; --accent-tint: #eeecfb; --accent-soft: #c9c3f2;
    --fout: #8a8c97; --ok: #23925a; --ok-tint: #e6f4ec; --nok: #d0413a; --nok-tint: #fbe9e7;
    --press: #d9d7cf;
    --sea: #d4e4ee; --land: #f3f1ec; --eu: #e4e0d6; --grat: #c3d6e3;
    --berg: #8a3f0f; --berg-bg: #e2b98a; --water: #8ec4ea;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
h1, h2 { margin: 0; font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.brand { font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.035em; line-height: .95; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* De app vult altijd het venster; de schermen zelf bepalen hun breedte (zie "Tablet en desktop" onderaan) */
body { background: var(--screen); }
.phone { height: 100vh; height: 100dvh; background: var(--screen); overflow: hidden; display: flex; flex-direction: column; position: relative; }

.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: calc(16px + var(--safe-top)) 20px calc(24px + var(--safe-bottom)); gap: 16px; }
.muted { color: var(--muted); }
.kicker { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.title { font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: #f0efea; }
.icon-btn svg { width: 16px; height: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; width: 100%; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s, transform .1s, opacity .2s; border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn-goed { background: var(--accent); color: #fbfaff; }
.btn-goed:not(:disabled):hover { background: var(--accent-ink); }
.btn-fout { background: var(--surface); border-color: var(--line); }
.btn-fout:not(:disabled):hover { background: #f0efea; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent-soft); }
.btn-ghost:hover { background: var(--accent-tint); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Opstartscherm en startscherm */
.splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fbfaff; cursor: pointer; position: relative; }
.hero { position: absolute; inset: 0; z-index: 0; background: #2f2580; }
.hero picture { display: contents; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Logo (zie LOGO in app.js en icon.svg) */
.logo { display: block; flex: none; overflow: visible; }
.logo-back { fill: var(--accent-soft); }
.logo-front { fill: var(--accent); }
.logo-globe { stroke: #fff; }
.splash-logo .logo { width: 92px; height: auto; filter: drop-shadow(0 10px 18px rgba(20, 12, 80, .35)); }
.splash-logo .logo-back { fill: #fff; opacity: .45; }
.splash-logo .logo-front { fill: #fff; }
.splash-logo .logo-globe { stroke: var(--accent); }
.brand-lockup { display: inline-flex; align-items: center; gap: .28em; }
.brand-lockup .logo { width: .78em; height: auto; transform: translateY(-.02em); }
.title-logo { display: inline-flex; align-items: center; gap: 6px; }
.title-logo .logo { width: 16px; height: auto; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 30% 20%, #7a6ce0, var(--accent) 45%, #2f2580); opacity: .82; }

/* Startscherm: titel, keuzeknoppen en een grote kaart met een reizend vliegtuigje */
.home { gap: 0; padding-top: calc(24px + var(--safe-top)); }
.deck { position: relative; flex: 1; min-height: 170px; margin-top: 22px; }
.deck-card { position: absolute; inset: 0; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--press); overflow: hidden; animation: deal .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.deck-map { width: 100%; height: 100%; }
@keyframes deal { from { transform: translateY(16px); opacity: 0; } }
.home-title { display: flex; flex-direction: column; gap: 4px; }
.home-title h1 { font-size: 34px; }
.home-title .muted { font-size: 15px; }
.modes { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
/* Startscherm: drie grote kaarten onder elkaar, elk met een kaartje van het eigen gebied in eigen kleuren */
.regions { flex: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 22px; min-height: 0; }
.region, .tone { --rc: var(--accent); --rc-ink: var(--accent-ink); --rc-bg: #eeecfb; }
.region {
    position: relative; flex: 1; min-height: 132px; max-height: 230px; width: 100%; padding: 0; overflow: hidden; display: flex; align-items: stretch;
    border-radius: 24px; background: var(--rc-bg); border: 2px solid color-mix(in srgb, var(--rc) 22%, transparent); box-shadow: 0 5px 0 color-mix(in srgb, var(--rc) 30%, var(--press));
    cursor: pointer; text-align: left; transition: transform .08s, box-shadow .08s, border-color .15s; }
.region:hover { border-color: color-mix(in srgb, var(--rc) 55%, transparent); }
.region:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--rc) 30%, var(--press)); }
.region-europa, .tone-europa { --rc-bg: #e4e0fa; --sea: #e4e0fa; --grat: #d5cff5; --land: #d2ccf2; --eu: #8c80e2; }
.region-belgie, .tone-belgie { --rc: #c9791a; --rc-ink: #8a4c08; --rc-bg: #fdf1dc; --sea: #fdf1dc; --grat: #f6e2bd; --land: #f8e5c2; --eu: #e9a640; }
.region-wereld, .tone-wereld { --rc: #1f8a82; --rc-ink: #135f59; --rc-bg: #dcf1ef; --sea: #dcf1ef; --grat: #c6e6e2; --land: #49aaa2; --eu: #49aaa2; }
.region-map { position: absolute; top: 0; bottom: 0; right: 0; width: 64%; -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); pointer-events: none; }
.region-map .map { display: block; }
.region-wereld .region-map { width: 70%; }
.region-wereld .region-txt { max-width: 54%; }
.region-map .map .sea, .region-map .map rect.sea { fill: var(--sea); }
.region-map .map .eu, .region-map .map .land { stroke: var(--rc-bg); }
.region-txt { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px; max-width: 62%; }
.region-t { font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--rc-ink); }
.region-b { font-size: 13px; line-height: 1.35; color: color-mix(in srgb, var(--rc-ink) 75%, var(--muted)); }
.region-go { position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--rc); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.region-go svg { width: 18px; height: 18px; }
/* Subkeuze: compacte rijen met een themakaartje in de kleur van het gebied; altijd allemaal zichtbaar, zonder scrollen */
.tone .home-title h1 { color: var(--rc-ink); }
.picks { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; min-height: 0; }
.pick { flex: 1 1 0; min-height: 58px; max-height: 100px; width: 100%; display: flex; align-items: center; gap: 14px; padding: 6px 14px 6px 6px; border-radius: 18px;
    background: var(--surface); border: 2px solid color-mix(in srgb, var(--rc) 18%, var(--line)); box-shadow: 0 4px 0 color-mix(in srgb, var(--rc) 22%, var(--press));
    cursor: pointer; text-align: left; transition: transform .08s, box-shadow .08s, border-color .15s; }
.pick:hover { border-color: color-mix(in srgb, var(--rc) 50%, transparent); }
.pick:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--rc) 22%, var(--press)); }
.pick-map { flex: none; align-self: stretch; aspect-ratio: 4 / 3; max-width: 36%; border-radius: 13px; overflow: hidden; background: var(--rc-bg); pointer-events: none; }
.pick-map .map { display: block; }
.tone-europa .pick-map { --eu: #c9c2f2; --land: #ddd8f6; }
.tone-belgie .pick-map { --eu: #f4d497; --land: #f9e8c8; }
.tone-wereld .pick-map { --eu: #a3d6d1; --land: #a3d6d1; }
.pick-map .map .hl:not(.berg):not(.water) { fill: var(--rc); fill-opacity: 1; }
.pick-map .map .rgn { stroke: var(--rc-ink); }
.pick-map .map .river.sel { stroke: #2f80c4; stroke-width: 1.8; }
.pick-map .map .river.other, .pick-map .map .river.other.zij { stroke-width: .6; }
/* Buurlanden: België donker in het midden, elk buurland in een eigen tint */
.pick-map[data-map-series="be-buurlanden"] .map .eu { fill: var(--rc-ink); stroke: var(--rc-ink); }
.pick-map[data-map-series="be-buurlanden"] .map .n-nl { fill: #f0b54e; }
.pick-map[data-map-series="be-buurlanden"] .map .n-de { fill: #e39a3c; }
.pick-map[data-map-series="be-buurlanden"] .map .n-fr { fill: #f6cd85; }
.pick-map[data-map-series="be-buurlanden"] .map .n-lu { fill: #d07f22; }
.pick-map[data-map-series="be-buurlanden"] .map .n-gb { fill: #f6cd85; }
.pick-map[data-map-series="be-buurlanden"] .map .land { stroke: #fff; stroke-width: 1; }
.pick-map .map .wborder { stroke-width: .3; }
.pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pick-t { font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; color: var(--rc-ink); }
.pick-b { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.pick-go { flex: none; display: flex; color: var(--rc); }
.pick-go svg { width: 20px; height: 20px; }
@media (max-height: 700px) { .pick-b { display: none; } .picks { gap: 8px; margin-top: 14px; } }
/* Modusscherm: de kleur van het gekozen gebied loopt door in de knoppen en het infokader */
.tone .mode { border-color: color-mix(in srgb, var(--rc) 18%, var(--line)); box-shadow: 0 5px 0 color-mix(in srgb, var(--rc) 22%, var(--press)); }
.tone .mode:hover { border-color: color-mix(in srgb, var(--rc) 50%, transparent); }
.tone .mode:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--rc) 22%, var(--press)); }
.tone .mode .ic { color: var(--rc); }
.tone .mode .t { color: var(--rc-ink); }
.tone .info { background: var(--rc-bg); }
.tone .info .kicker { color: var(--rc-ink); }
@media (max-width: 360px) { .region-t { font-size: 28px; } .region-txt { padding: 14px 18px; } }

/* Grote, tactiele keuzeknoppen die indrukken als je tikt */
.mode { display: flex; align-items: center; gap: 18px; padding: 0 24px; min-height: 92px; width: 100%; border-radius: 20px; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--press); cursor: pointer; text-align: left; transition: transform .08s, box-shadow .08s, border-color .15s; }
.mode:hover { border-color: var(--accent-soft); }
.mode:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--press); }
.mode .ic { display: flex; color: var(--accent); flex: none; }
.mode .ic svg { width: 36px; height: 36px; }
/* Lange modusnamen (Provincie → Hoofdstad) krimpen mee op een smalle gsm en mogen desnoods naar een tweede regel */
.mode .t { font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; font-size: min(24px, 5.9vw); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; }
.mode .t svg { width: 18px; height: 18px; color: var(--muted); }
/* Lijst met reeksen: compacter en scrollbaar */
.modes.list { overflow-y: auto; min-height: 0; padding-bottom: 6px; }
.modes.list .mode { flex: none; }
@media (max-width: 360px) { .mode { padding: 0 18px; gap: 14px; } .mode .t { font-size: min(22px, 5.9vw); } .mode .ic svg { width: 34px; height: 34px; } }
@media (max-height: 640px) { .deck { display: none; } }
@media (prefers-reduced-motion: reduce) { .deck-card { animation: none; } }

/* Voortgang */
.dots { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.dots i { height: 6px; border-radius: 2px; background: #dddcd6; transition: background .3s; }
.dots i.g { background: var(--accent); }
.dots i.f { background: var(--fout); }
.dots i.cur { background: var(--text); }
.dots.res i.g { background: var(--ok); }
.dots.res i.f { background: var(--nok); }

/* Flitskaart */
.flip { perspective: 1200px; flex: 1; min-height: 0; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; cursor: pointer; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(30, 30, 60, .08); overflow: hidden; display: flex; flex-direction: column; }
.face.back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--accent-tint), var(--surface) 65%); }

/* Score en fouten */
.list { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: auto; min-height: 0; flex: 1; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; }
.item + .item { border-top: 1px solid var(--line); }
.item svg { width: 14px; height: 14px; color: var(--muted); }
.item .a { font-weight: 500; text-align: right; }
.item.ok .a { color: var(--ok); }
.item.nok .a { color: var(--nok); }
.mk { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mk svg { width: 12px !important; height: 12px !important; }
.ok .mk { background: var(--ok-tint); }
.nok .mk { background: var(--nok-tint); }
.ok .mk svg { color: var(--ok); }
.nok .mk svg { color: var(--nok); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 10px; font-size: 12px; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { color: var(--text); background: #f0efea; font-weight: 500; }

.fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.fadein { animation: fi .3s ease both; }
@keyframes fi { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { r: 8; opacity: .8; } 100% { r: 22; opacity: 0; } }

/* Kaart */
svg.map { display: block; }
.map .sea { fill: var(--sea); }
.map .grat { fill: none; stroke: var(--grat); stroke-width: .6; }
.map .land { fill: var(--land); stroke: #fbfaf7; stroke-width: .6; }
.map .eu { fill: var(--eu); stroke: #fbfaf7; stroke-width: .7; }
.map .river { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.5; }
.map .river.zij { stroke-width: 2.5; }
.map .river.other, .map .river.other.zij { stroke: #7a7d89; stroke-width: 1; }
.map .river.sel { stroke-width: 4; }
.map .hl.relief { fill-opacity: .85; stroke: none; }
.map .hl.water { fill: var(--water); fill-opacity: 1; stroke: none; }
.map .tap { stroke: #fff; stroke-width: 2.5; }
.map .tap.ok { fill: var(--ok); }
.map .tap.nok { fill: var(--nok); }
.flip.tapq [data-map] { cursor: crosshair; }
.withflag { display: inline-flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.withflag .cflag { height: .72em; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.item .cflag { height: 12px; }
.map .lbl-f { opacity: 1; }
.sub { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.sub .flag { width: 33px; height: 22px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; }
.result { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.result svg { width: 14px; height: 14px; }
.result.ok { background: var(--ok-tint); color: var(--ok); }
.result.nok { background: var(--nok-tint); color: var(--nok); }
.map .eu.nb { stroke: none; }
.map .rgn { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.map .hl { fill: var(--accent); stroke: #fff; stroke-width: 1; }
.map .hl.soft { fill: #d6d0f7; stroke: var(--accent); stroke-width: 1.2; }
.map .hl.nb { stroke: none; }
.map .ring { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.map .pulse { fill: none; stroke: var(--accent); stroke-width: 2; animation: pulse 1.6s ease-out infinite; }
.map .dot { fill: var(--accent); }
.map .route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.map .stop { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.map .lbl { opacity: 0; transition: opacity .3s; text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.map .lbl.on { opacity: 1; }
.map .lbl-c { font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; font-size: 17px; font-weight: 800; fill: var(--accent-ink); }
.map .lbl-l { font-size: 11px; font-weight: 500; fill: var(--muted); }
.map .plane { transition: opacity .3s; fill: var(--accent); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.map .cap { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.map.zoom .land, .map.zoom .eu { stroke-width: 1; }
.map-error { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; text-align: center; color: var(--muted); font-size: 13px; background: var(--sea); }

/* Flitskaart en resultaat: onderdelen met een vaste plaats, zodat de brede layout ze kan herschikken */
.face-txt { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); }
.face-txt .ask { font-size: 30px; }
.face-txt .hint { font-size: 12px; margin-top: 6px; }
.back-txt { padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.ans { line-height: 1.05; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 700; letter-spacing: -.025em; color: var(--accent-ink); }
.ans-s { font-size: 26px; } .ans-m { font-size: 36px; } .ans-l { font-size: 44px; }
.e-list { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Sneltoetsen: alleen zichtbaar met muis of trackpad */
kbd { display: none; font: 500 11px/1 Inter, system-ui, sans-serif; padding: 3px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: .55; margin-left: 4px; }
.mouse-only { display: none; }
@media (hover: hover) and (pointer: fine) {
    kbd { display: inline-block; }
    .mouse-only { display: inline; }
    .touch-only { display: none; }
}

/* ---------- Tablet en desktop ---------- */

/* Groot: tablet staand en alles vanaf 700 px breed (niet op een laag, gekanteld scherm) */
@media (min-width: 700px) and (min-height: 501px) {
    body { font-size: 16px; }
    .screen { padding: calc(28px + var(--safe-top)) 40px calc(36px + var(--safe-bottom)); gap: 22px; width: 100%; margin: 0 auto; }
    .screen.home { max-width: 760px; padding-top: calc(48px + var(--safe-top)); }
    .home-title h1 { font-size: 48px; }
    .home-title .muted { font-size: 17px; }
    .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; align-content: start; }
    .mode { min-height: 120px; }
    .modes.list { background: none; box-shadow: none; flex: none; }
    .modes.list .mode { min-height: 110px; }
    .regions { gap: 18px; margin-top: 32px; }
    .region { min-height: 160px; max-height: 260px; border-radius: 28px; }
    .region-txt { padding: 24px 32px; }
    .region-t { font-size: 44px; }
    .region-b { font-size: 15px; }
    .region-go { width: 44px; height: 44px; right: 20px; bottom: 20px; }
    .picks { gap: 14px; margin-top: 32px; }
    .pick { max-height: 120px; padding: 8px 22px 8px 8px; gap: 20px; border-radius: 22px; }
    .pick-map { border-radius: 16px; }
    .pick-t { font-size: 24px; }
    .pick-b { font-size: 14px; display: block; }
    .deck { margin-top: 32px; }
    .topbar { height: 44px; }
    .icon-btn { width: 44px; height: 44px; border-radius: 12px; }
    .icon-btn svg { width: 18px; height: 18px; }
    .title { font-size: 20px; }
    .btn { height: 60px; font-size: 16px; }
    .face-txt { padding: 22px 28px 26px; }
    .face-txt .ask { font-size: 40px; }
    .face-txt .hint { font-size: 13px; }
    .back-txt { padding: 32px; }
    .ans-s { font-size: 34px; } .ans-m { font-size: 48px; } .ans-l { font-size: 60px; }
    .sub { font-size: 16px; }
    .dots i { height: 8px; }
    .item { padding: 14px 20px; font-size: 15px; }
    .screen.quiz, .screen.end { max-width: 900px; }
}

/* Breed (tablet liggend, desktop) en laag liggend (gekantelde telefoon): flitskaart en resultaat in twee kolommen */
@media (min-width: 1024px) and (orientation: landscape) and (min-height: 501px), (orientation: landscape) and (max-height: 500px) {
    .screen.quiz {
        display: grid; max-width: 1200px; column-gap: 32px; row-gap: 20px;
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas: "flip top" "flip prog" "flip ." "flip btns";
    }
    .q-top { grid-area: top; } .q-prog { grid-area: prog; } .q-btns { grid-area: btns; } .screen.quiz .flip { grid-area: flip; }
    .q-btns { grid-template-columns: 1fr; }
    .q-btns .btn-goed { order: -1; }

    .screen.end {
        display: grid; max-width: 1200px; column-gap: 40px; row-gap: 14px;
        grid-template-columns: 340px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto 1fr auto;
        grid-template-areas: "top lhead" "score list" "dots list" "leg list" ". list" "btns list";
    }
    .e-top { grid-area: top; } .e-score { grid-area: score; } .e-dots { grid-area: dots; } .e-leg { grid-area: leg; }
    .e-lhead { grid-area: lhead; margin-top: 0 !important; align-self: end; }
    .e-list { grid-area: list; } .e-btns { grid-area: btns; }
}

/* Laag liggend: compacte zijkolom, menu's scrollen */
@media (orientation: landscape) and (max-height: 500px) {
    .screen { padding: calc(10px + var(--safe-top)) calc(16px + env(safe-area-inset-right, 0px)) calc(10px + var(--safe-bottom)) calc(16px + env(safe-area-inset-left, 0px)); }
    .screen.home { overflow-y: auto; }
    .screen.home .modes { flex: none; }
    .screen.home .regions { flex: none; }
    .region { flex: none; height: 120px; min-height: 0; }
    .screen.home .picks { flex: none; display: grid; grid-template-columns: 1fr 1fr; }
    .pick { height: 76px; flex: none; }
    .screen.quiz { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 16px; row-gap: 10px; }
    .screen.quiz .q-btns .btn { height: 44px; }
    .face-txt { padding: 10px 16px 12px; }
    .face-txt .ask { font-size: 22px; }
    .face-txt .hint { margin-top: 2px; }
    .back-txt { padding: 14px 18px; }
    .ans-s { font-size: 22px; } .ans-m { font-size: 28px; } .ans-l { font-size: 34px; }
    .screen.end { grid-template-columns: 260px minmax(0, 1fr); column-gap: 20px; row-gap: 8px; }
    .e-score > div { font-size: 44px !important; }
    .e-btns .btn { height: 44px; }
}
/* Gebergtes in atlaskleur (oranjebruin); na .map .hl zodat de kleur wint */
.map .hl.relief.berg { fill: var(--berg); fill-opacity: 1; }
.map .berg-bg { fill: var(--berg-bg); fill-opacity: .7; stroke: none; pointer-events: none; }
/* Wereldkaart: landsgrenzen dun en licht; infokader met de definitie op het modusscherm */
.map .wborder { fill: none; stroke: #fbfaf7; stroke-width: .6; }
.info { margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: var(--accent-tint); display: flex; flex-direction: column; gap: 6px; }
.info p { margin: 0; font-size: 14px; line-height: 1.45; }

/* Inzoomen op de kaart van een tikvraag */
.zoomable { position: relative; }
.zoomable .map { touch-action: none; }
.map .zl path { vector-effect: non-scaling-stroke; }
.zoom-ctl { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.zoom-ctl button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(30, 30, 60, .12); font: 500 20px/1 inherit; cursor: pointer; display: grid; place-items: center; }
.zoom-ctl button:hover { background: var(--accent-tint); }
.zoom-ctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
