/*! © 2026 Dr. Oluwaseun Ogunmola · Dr. Ogunmola GameLabs · All rights reserved. Free to play at https://gamelabs.ogunmola.com.ng · Not licensed for re-hosting, copying or reuse. Terms: https://gamelabs.ogunmola.com.ng/terms/ · ref GL-3A191ADF */
/* Globe Hop game styles. body[data-level] changes the feel: playful for Nest/Fledgling, cleaner for Flyer/Navigator. */
@font-face { font-family: "Fredoka"; font-weight: 500 700; font-display: swap; src: url("../../../assets/fonts/fredoka-latin.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 400 600; font-display: swap; src: url("../../../assets/fonts/lexend-latin.woff2") format("woff2"); }

:root {
  --ink: #102D5A; --ink-soft: #4A5876; --paper: #FFFDF8; --sky: #DFF1FB; --sea: #CFE8F7; --line: #D9E6EF;
  --gold: #FFD166; --gold-deep: #E9A91A; --green: #1F8A45; --red: #D63848; --blue: #2583F5;
  --display: "Fredoka", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--body); font-size: 1rem; line-height: 1.5; color: var(--ink); background: linear-gradient(var(--sky), #F7FBFE 420px); }
body[data-level="flyer"], body[data-level="navigator"] { background: #F4F7FA; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
body[data-level="flyer"] h1, body[data-level="navigator"] h1, body[data-level="flyer"] h2, body[data-level="navigator"] h2 { font-family: var(--body); font-weight: 600; letter-spacing: -.01em; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px max(12px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.back { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .875rem; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.back:hover { background: var(--sky); }
.game-name { appearance: none; border: 0; background: none; font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--ink); cursor: pointer; padding: 6px 8px; border-radius: 10px; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp-total { appearance: none; border: 0; font-weight: 600; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 6px 12px; white-space: nowrap; cursor: pointer; min-height: 40px; }
.icon-btn { appearance: none; border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; flex: none; }
.icon-btn.off { opacity: .45; }
@media (max-width: 420px) { .back .long { display: none; } .game-name { font-size: 1rem; } }

/* ---------- Layout ---------- */
#app { padding: 16px 16px 48px; }
.screen { max-width: 980px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(16, 45, 90, .08); max-width: 700px; margin: 0 auto; }
.card.wide { max-width: 940px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions.center { justify-content: center; }
.btn { appearance: none; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 11px 20px; font-weight: 600; cursor: pointer; min-height: 46px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--gold); border-color: var(--gold-deep); box-shadow: 0 3px 0 var(--gold-deep); }
.btn.ghost { border-color: var(--line); }
.btn.small { padding: 6px 14px; min-height: 40px; font-size: .875rem; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.link-btn { appearance: none; border: 0; background: none; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 4px; font-weight: 600; }
.loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- Home ---------- */
.home { text-align: center; padding-top: 8px; }
.hero-ariana svg { width: 110px; height: 110px; animation: glide 3.5s ease-in-out infinite; }
@keyframes glide { 50% { transform: translateY(-8px) rotate(-4deg); } }
.title { font-size: clamp(2.25rem, 7vw, 3.5rem); margin-top: 4px; }
.tagline { color: var(--ink-soft); font-size: 1.125rem; margin: 8px auto 22px; max-width: 32em; }
.pick-title { font-size: 1.25rem; margin-bottom: 12px; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; max-width: 920px; margin: 0 auto; }
.level-card { appearance: none; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 20px; padding: 16px 18px; cursor: pointer; display: grid; gap: 4px; box-shadow: 0 6px 18px rgba(16, 45, 90, .06); transition: transform .15s ease, border-color .15s ease; color: var(--ink); }
.level-card:hover, .level-card.current { border-color: var(--gold-deep); }
.level-card:hover { transform: translateY(-2px); }
.level-icon { font-size: 2rem; line-height: 1; }
.level-name { font-family: var(--display); font-weight: 700; font-size: 1.375rem; }
.level-years { font-weight: 600; color: var(--green); font-size: .875rem; }
.level-blurb { color: var(--ink-soft); font-size: .9375rem; }
.ariana-fact { color: var(--ink-soft); font-size: .875rem; max-width: 34em; margin: 24px auto 0; }

/* ---------- Maps ---------- */
.map-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 6px 18px rgba(16, 45, 90, .06); }
.world-map, .zoom-map, .pieces-map, .pangaea { display: block; width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sphere, .sea { fill: var(--sea); }
.cont { cursor: pointer; transition: opacity .2s ease; }
.cont path:first-child { stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
.cont:hover path:first-child, .cont:focus-visible path:first-child { stroke: var(--ink); stroke-width: 2.5; }
.cont:focus { outline: none; }
.cont.dim { opacity: .25; }
.cont.suggest path:first-child { stroke: var(--gold-deep); stroke-width: 3; animation: pulseStroke 1.6s ease-in-out infinite; }
@keyframes pulseStroke { 50% { stroke-width: 6; } }
.cont.right path:first-child { stroke: var(--green); stroke-width: 4; }
.cont.wrong { animation: wiggle .5s ease; }
.cont.wrong path:first-child { stroke: var(--red); stroke-width: 3; }
.cont.start path:first-child { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 6 4; }
@keyframes wiggle { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cont-label { font: 700 15px var(--display); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.world-map.mini { max-width: 360px; margin: 0 auto; }
.world-map.mini .cont-label { display: none; }
.grid { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
.grid-equator { stroke: var(--red); stroke-width: 2; }
.grid-label { font: 600 12px var(--body); fill: var(--ink); paint-order: stroke; stroke: var(--sea); stroke-width: 4px; }
.ocean { cursor: pointer; }
.ocean circle { fill: rgba(255, 255, 255, .5); stroke: #fff; stroke-width: 2; stroke-dasharray: 4 4; }
.ocean:hover circle, .ocean:focus-visible circle { fill: rgba(255, 255, 255, .85); stroke: var(--ink); }
.ocean.right circle { fill: #ecfdf3; stroke: var(--green); stroke-dasharray: none; }
.ocean text { font: 700 13px var(--display); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.home-pin circle { fill: var(--red); stroke: #fff; stroke-width: 2; }
.home-pin text { font: 700 11px var(--body); fill: var(--red); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.ping circle:first-child { fill: rgba(214, 56, 72, .2); stroke: var(--red); stroke-width: 2; }
.ping circle:last-child { fill: var(--red); }
.map-hint { text-align: center; color: var(--ink-soft); font-size: .9375rem; margin: 8px 0 2px; }
.route circle { fill: var(--ink); }
.route line { stroke: var(--ink); stroke-width: 3.5; }
.route text { font: 700 16px var(--body); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.compass-rose { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; margin: 0 0 6px auto; }
.pop { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); font-size: 5rem; animation: popIn .5s ease; pointer-events: none; }
@keyframes popIn { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } }

/* Zoomable country map */
.zoom-wrap { position: relative; background: var(--sea); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.zoom-map { aspect-ratio: 4 / 3; max-height: 70vh; touch-action: none; }
.ctx { fill: #E7EDF2; stroke: none; }
.ctry { fill: #FBF3DC; stroke: #8A9BB0; stroke-width: 0.8; vector-effect: non-scaling-stroke; cursor: pointer; }
.ctry:hover { fill: #FFE7A8; }
.ctry.out { fill: #EEF1F4; }
.ctry.sel, .ctry.found, .ctry.path { fill: var(--gold); }
.ctry.right { fill: #7BD39A; }
.ctry.reveal { fill: #F7A8B0; }
.ctry.wrong { fill: #F28B95; }
.ctry.start { fill: #8EC5FF; }
.ctry.goal { fill: #C9A7F5; }
.grey { fill: #D5D9DE; stroke: #A3ADB8; stroke-width: 0.6; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; cursor: help; }
.disputed { fill: url(#pat-europe); stroke: #6B7785; stroke-width: 1; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; pointer-events: none; opacity: .6; }
.dot { cursor: pointer; }
.dot .hit { fill: transparent; }
.dot .pt { fill: #fff; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dot.found .pt, .dot.sel .pt, .dot.path .pt { fill: var(--gold); }
.dot.right .pt { fill: #1F8A45; }
.dot.reveal .pt, .dot.wrong .pt { fill: var(--red); }
.dot.start .pt { fill: #2583F5; }
.dot.goal .pt { fill: #8E5BD6; }
.dot.out { opacity: .35; }
.labels text { font-family: var(--body); font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.zoom-ctl { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; }
.zbtn { appearance: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.25rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.list-pick, .home-select { width: 100%; margin-top: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px; }

/* Big Pieces and Pangaea */
.slot { fill: rgba(255, 255, 255, .55); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 4; cursor: pointer; }
.slot.filled { stroke: #fff; stroke-dasharray: none; stroke-width: 1; cursor: default; }
.tray { fill: #F2F7FB; stroke: var(--line); stroke-width: 2; }
.piece { cursor: grab; }
.piece path { stroke: #fff; stroke-width: 1.5; }
.piece.sel path { stroke: var(--ink); stroke-width: 4; }
.piece:focus-visible path { stroke: var(--blue); stroke-width: 4; }
.piece:focus { outline: none; }
.piece.placed { cursor: default; }
.pangaea .ghost { fill: rgba(255, 255, 255, .45); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 4; cursor: pointer; }
.pangaea .ghost.filled { fill: none; stroke: none; }
.pangaea .piece-label { font: 700 22px var(--body); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 5px; pointer-events: none; }
.pangaea .piece.placed .piece-label { display: none; }

/* Size Surprise */
.size-map .faint { fill: #E3EAF0; }
.size-map .target { opacity: .85; }
.mover { cursor: grab; }
.mover path { fill: rgba(16, 45, 90, .75); stroke: #fff; stroke-width: 1.5; }
.mover.lift path { fill: rgba(16, 45, 90, .9); }
.merc .hl { stroke: var(--ink); stroke-width: 2; }
.merc .grl { fill: #102D5A; }

/* ---------- Tour ---------- */
.tour-head { text-align: center; margin-bottom: 12px; }
.tour-head h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.tour-level { color: var(--ink-soft); margin: 6px 0 0; }
.page-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; margin: 14px 0 6px; }
.chip-btn { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; min-height: 40px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.page-chip.done .chip-btn { border-color: var(--gold-deep); background: #FFF8E1; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.flights-title { font-size: 1.25rem; margin: 22px 0 10px; }
.flight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.flight-card { appearance: none; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.flight-card:hover { transform: translateY(-2px); border-color: var(--gold-deep); }
.flight-icon { grid-row: span 2; font-size: 1.75rem; line-height: 1.2; }
.flight-title { font-family: var(--display); font-weight: 700; font-size: 1.125rem; }
body[data-level="flyer"] .flight-title, body[data-level="navigator"] .flight-title { font-family: var(--body); font-weight: 600; }
.flight-text { color: var(--ink-soft); font-size: .875rem; }
.flight-note { grid-column: 1 / -1; color: var(--ink-soft); font-size: .875rem; margin: 0; }

/* Continent page */
.cont-top { display: grid; gap: 16px; }
@media (min-width: 760px) { .cont-top { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.cont-text h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.facts { padding-left: 1.2em; margin: 10px 0; }
.facts li { margin: 4px 0; }
.cont-emoji { font-size: 1.75rem; letter-spacing: 4px; margin: 6px 0 10px; }
.page-progress { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .9375rem; margin: 8px 0 0; flex-wrap: wrap; }
.bar { display: inline-block; width: 140px; height: 10px; border-radius: 99px; background: #E6EDF3; overflow: hidden; vertical-align: middle; }
.bar span { display: block; height: 100%; border-radius: 99px; }
.country-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 10px; min-height: 64px; }
.country-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.country-card h3 small { font-family: var(--body); font-weight: 400; color: var(--ink-soft); font-size: .8125rem; }
.country-card p { margin: 0; }
.country-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.country-card dt { font-weight: 600; color: var(--ink-soft); }
.country-card dd { margin: 0; }

/* ---------- Playing ---------- */
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.play-title { font-size: 1.375rem; }
.play-title small { font-family: var(--body); font-weight: 500; font-size: .875rem; color: var(--ink-soft); }
.play-intro { color: var(--ink-soft); margin: 0 0 10px; }
.progress-dots { display: flex; gap: 6px; justify-content: center; margin: 0 0 12px; }
.progress-dots span { width: 10px; height: 10px; border-radius: 50%; background: #D3DEE7; }
.progress-dots span.on { background: var(--green); }
.progress-dots span.now { background: var(--gold-deep); transform: scale(1.3); }
.quiz-q { font-size: 1.1875rem; font-weight: 600; margin: 0 0 12px; }
body[data-level="nest"] .quiz-q { font-family: var(--display); font-size: 1.5rem; text-align: center; }
.quiz-art { text-align: center; margin-bottom: 8px; }
.quiz-art .animal { font-size: 4.5rem; line-height: 1.1; display: inline-block; }
.hear { appearance: none; border: 2px solid var(--line); background: #fff; border-radius: 50%; width: 64px; height: 64px; font-size: 1.75rem; cursor: pointer; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.quiz-options.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.opt { appearance: none; text-align: left; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; min-height: 52px; cursor: pointer; font-weight: 500; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease, transform .15s ease; }
.opt:not(:disabled):hover { border-color: var(--gold-deep); transform: translateY(-1px); }
.opt .opt-art svg.shape { width: 100%; height: 110px; display: block; }
.opt.right { border-color: var(--green); background: #ecfdf3; }
.opt.right .opt-label::before { content: "✓ "; color: var(--green); font-weight: 700; }
.opt.wrong { border-color: var(--red); background: #fff1f2; opacity: .85; }
.opt.wrong .opt-label::before { content: "✗ "; color: var(--red); font-weight: 700; }
.opt:disabled { cursor: default; }
.feedback { margin-top: 12px; border-radius: 14px; }
.feedback:empty { display: none; }
.feedback.good, .feedback.bad, .feedback.soft { padding: 12px 16px; }
.feedback.good { background: #ecfdf3; border: 1px solid #bbf7d0; }
.feedback.bad { background: #fff7ed; border: 1px solid #fed7aa; }
.feedback.soft { background: #EEF6FF; border: 1px solid #CFE3FB; }
.feedback .next-btn { display: flex; margin-top: 12px; }
.feedback .world-map.mini { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.chip { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; min-height: 40px; cursor: pointer; color: var(--ink); font-size: .875rem; }
.chip:hover { border-color: var(--gold-deep); }
.count { font-weight: 600; margin: 0 0 8px; }
.country-chip { display: grid; justify-items: center; background: var(--ink); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 12px; text-align: center; }
.cc-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.cc-name { font-family: var(--display); font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 700; }
.baskets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.basket { appearance: none; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; min-height: 56px; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-align: left; }
.basket.right { border-color: var(--green); background: #ecfdf3; }
.basket.wrong { border-color: var(--red); background: #fff1f2; opacity: .7; }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 8px; margin-bottom: 10px; }
.rank-btn { appearance: none; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 8px; cursor: pointer; display: grid; gap: 4px; justify-items: center; position: relative; color: var(--ink); font-size: .875rem; font-weight: 600; }
.rank-btn svg.shape { width: 100%; height: 60px; }
.rank-btn.picked { border-color: var(--gold-deep); background: #FFF8E1; }
.rank-btn.right { border-color: var(--green); background: #ecfdf3; }
.rank-btn.wrong { border-color: var(--red); background: #fff1f2; }
.rank-n { position: absolute; top: 4px; left: 6px; font-weight: 700; color: var(--gold-deep); }
.type-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.type-input { flex: 1 1 200px; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; font-size: 1.0625rem; color: var(--ink); }
.type-input:focus { border-color: var(--blue); outline: none; }

/* ---------- Flight Log and passport ---------- */
.results .card, .captain .card { text-align: center; }
.results .actions, .captain .actions { justify-content: center; }
.log-kicker { font-weight: 600; color: var(--ink-soft); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }
.card h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.intro-text { font-size: 1.0625rem; color: var(--ink-soft); margin: 12px auto 0; max-width: 34em; }
.score-line, .stamp-line, .badge-line, .result-note { margin: 8px 0 0; }
.stamp-line, .badge-line { font-weight: 600; }
.nest-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.nest-cont { color: #102D5A; border-radius: 999px; padding: 8px 14px; font-family: var(--display); font-weight: 700; }
.learned-title { font-size: 1.125rem; margin-top: 18px; }
.learned, .missed { text-align: left; margin: 10px auto 0; max-width: 36em; padding: 0; list-style: none; display: grid; gap: 8px; }
.learned li { background: #EEF6FF; border-radius: 12px; padding: 10px 14px 10px 40px; position: relative; }
.learned li::before { content: "✓"; position: absolute; left: 14px; top: 9px; color: var(--green); font-weight: 700; }
.missed li { background: #FFF7ED; border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; }
.mq { font-weight: 600; }
.ma { color: var(--ink-soft); font-size: .9375rem; }
.review-note { color: var(--ink-soft); font-size: .875rem; margin: 8px 0 0; }
.passport-pages { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pp { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: #F7FAFC; border-radius: 12px; padding: 10px 14px; }
.pp.done { background: #FFF8E1; }
.pp-name { font-weight: 600; }
.pp-num { color: var(--ink-soft); font-size: .875rem; min-width: 4.5em; text-align: right; }
@media (max-width: 480px) { .pp { grid-template-columns: 1fr auto; } .pp .bar { grid-column: 1 / -1; width: 100%; grid-row: 2; } }
.balance { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 120px; margin-top: 10px; }
.bal { flex: 1; display: grid; justify-items: center; align-content: end; gap: 4px; min-width: 0; }
.bal-bar { width: 70%; border-radius: 8px 8px 2px 2px; }
.bal-name { font-size: .6875rem; color: var(--ink-soft); text-align: center; line-height: 1.1; overflow-wrap: anywhere; }
.badge-art { font-size: 6rem; line-height: 1.2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Small screens: map text is drawn in map units, so make it bigger to stay readable */
@media (max-width: 600px) {
  .cont-label { font-size: 32px; stroke-width: 7px; }
  .home-pin text { font-size: 24px; stroke-width: 5px; }
  .home-pin circle { r: 10; }
  .grid-label { font-size: 22px; }
  .ocean text { font-size: 24px; }
  .route text { font-size: 26px; }
  .world-map.mini .cont-label { display: none; }
}
