:root{font-family:'Poppins',system-ui,sans-serif;color:#24385c;background:#eef8ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:0;overflow-x:clip;background:radial-gradient(circle at 50% 0%,#fffbe5,#e9f8ff 60%,#deefff);-webkit-text-size-adjust:100%}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #1f6eb3;outline-offset:3px}.journey{max-width:680px;margin:auto;padding:clamp(12px,3vw,24px);min-width:0}.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;color:#3c6284;font-weight:800;min-height:44px}.back{display:inline-flex;align-items:center;min-height:44px;border:0;background:transparent;color:#315e84;text-decoration:none;font-weight:700;padding:0}.stage,.question-card,.finish{text-align:center;background:rgba(255,255,255,.86);border:1px solid #d4e8ef;border-radius:28px;padding:clamp(18px,5vw,34px);box-shadow:0 15px 40px rgba(63,116,151,.13)}.eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:800;color:#427c98;margin:0 0 .5rem}.heading h1,.finish h1{font-size:clamp(1.6rem,5vw,2.5rem);line-height:1.14;margin:.2rem 0;color:#263d69}.heading p:not(.eyebrow),.finish>p:not(.eyebrow){color:#59718a;margin:.5rem 0}.globe-wrap{position:relative;width:min(100%,370px);margin:0 auto}canvas{display:block;width:100%;height:auto}.penguin{position:absolute;transform:translate(-50%,-83%);font-size:clamp(2.4rem,10vw,4rem);line-height:1;filter:drop-shadow(0 4px 4px #244d7d55);transition:left .1s,top .1s;pointer-events:none}.penguin span{position:absolute;color:#ffc955;font-size:1rem;right:-10px;top:0}.penguin.travel{animation:hop .4s ease-in-out infinite alternate}@keyframes hop{to{transform:translate(-50%,-110%) rotate(12deg)}}.progress{text-align:left;max-width:420px;margin:.2rem auto 1rem;font-size:.85rem;color:#365671}.progress>div:first-child{display:flex;justify-content:space-between;gap:.5rem}.track{height:12px;border-radius:10px;background:#e1edf2;overflow:hidden;margin-top:.4rem}.track span{display:block;height:100%;background:#f7bc4d;border-radius:10px}.primary{display:block;width:100%;max-width:420px;min-height:58px;margin:auto;padding:.85rem 1rem;border:0;border-radius:18px;background:#ffbd4d;color:#3d2c16;font-weight:800;font-size:1.1rem;box-shadow:0 5px 0 #d6922e}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #d6922e}.hint{font-size:.8rem;color:#667e91;margin:1rem 0}.stops{text-align:left;border-top:1px solid #e1edf1}.stops summary{padding:1rem 0;min-height:44px;cursor:pointer;font-weight:700;color:#356789}.stop-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.stop{display:flex;justify-content:space-between;align-items:center;gap:.3rem;min-width:0;min-height:48px;padding:.5rem;border:1px solid #d6e7ef;border-radius:12px;background:#f5fbff;text-align:left;font-size:.8rem;color:#365671}.stop span:first-child{overflow-wrap:anywhere}.stop.locked{opacity:.55;cursor:not-allowed}.question-card,.finish{margin-top:1rem}.question-progress{display:flex;justify-content:space-between;gap:1rem;color:#607d92;font-weight:700;font-size:.85rem}.mascot{font-size:4rem;line-height:1.4}.mascot span{font-size:2rem}.fact{background:#fff5d8;border-radius:18px;padding:1rem;color:#504221;line-height:1.5;font-size:1rem}.question-card h1{font-size:clamp(1.25rem,4vw,1.65rem);line-height:1.35}.answers{display:grid;gap:.65rem}.answers button{min-height:55px;padding:.7rem;border:2px solid #c8e2ed;border-radius:15px;background:#f5fbff;color:#294d69;font-weight:700}.answers button.correct{background:#d6f7dc;border-color:#66ba78}.answers button.try-again{background:#fff1d5;border-color:#f2c467}.feedback{min-height:1.5em;font-weight:700;color:#59836c}.celebration{font-size:clamp(3rem,15vw,6rem);animation:cheer 1s ease-in-out infinite alternate}@keyframes cheer{to{transform:translateY(-10px) rotate(3deg)}}.finish{padding-block:3rem}.stamp{margin:1.5rem auto;padding:.8rem;background:#fff4cf;border-radius:15px;font-weight:700;color:#715627;max-width:350px}.loading{text-align:center;padding:2rem}@media(max-width:640px){.journey{padding:10px}.stage,.question-card,.finish{border-radius:20px;padding:18px}.globe-wrap{width:min(100%,320px)}.top{font-size:.9rem}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* The map and postcard keep the next step visible while making the whole journey tangible. */
.journey{max-width:900px}.stage{padding:clamp(16px,3vw,28px)}.progress{max-width:620px;margin:1.3rem auto .8rem}.progress small{display:block;margin-top:.4rem;color:#607b8e}.map-wrap{position:relative;width:100%;margin:.5rem auto 0;background:#d9f2fa;border:1px solid #c4e5ed;border-radius:18px;overflow:hidden}.map-wrap svg{display:block;width:100%;height:auto;touch-action:pan-y}.map-country{stroke:#fff;stroke-width:.7;stroke-linejoin:round}.map-country.muted{fill:#cbd7d8}.map-country.visited{fill:#56bc8b}.map-country.next{fill:#ffbf51}.map-country[role=button]{cursor:pointer}.map-country[role=button]:focus-visible,.map-dot:focus-visible{outline:none;stroke:#193f78;stroke-width:3}.map-dot{stroke:white;stroke-width:2;cursor:pointer}.map-dot.visited{fill:#16845a}.map-dot.next{fill:#ffad2f}.map-dot.locked{fill:#a8b8bb;opacity:.7}.map-penguin{position:absolute;transform:translate(-50%,-100%);font-size:clamp(1.4rem,4vw,2.6rem);line-height:1;pointer-events:none;filter:drop-shadow(0 2px 2px #365d7855)}.map-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.2rem;margin:.65rem 0;color:#546c7c;font-size:.75rem;font-weight:700}.map-legend span{display:inline-flex;align-items:center;gap:.35rem}.map-legend i{width:11px;height:11px;border-radius:50%}.legend-visited{background:#56bc8b}.legend-next{background:#ffbf51}.legend-locked{background:#cbd7d8}.map-message{min-height:1.3em;margin:.25rem;color:#776046;font-size:.8rem}.postcard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);overflow:hidden;border:1px solid #dbeaf0;border-radius:20px;background:#f7fcfe;text-align:left}.country-photo{width:100%;height:100%;min-height:220px;object-fit:cover;background:#cde8ef}.postcard-content{padding:1.1rem;min-width:0}.postcard-status{font-size:.7rem;letter-spacing:.08em;font-weight:800;color:#598667}.postcard h2{margin:.3rem 0 .8rem;font-size:1.35rem}.country-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-bottom:1rem}.country-facts small,.country-facts strong{display:block;overflow-wrap:anywhere}.country-facts small{color:#688093;font-size:.7rem}.country-facts strong{font-size:.78rem;line-height:1.35}.postcard .primary{font-size:.95rem;min-height:50px}.next-link{display:block;width:100%;min-height:44px;margin-top:.4rem;border:0;background:transparent;color:#376c8c;font-weight:700}.stops{margin-top:1rem}@media(max-width:640px){.postcard{grid-template-columns:1fr}.country-photo{height:145px;min-height:0}.postcard-content{padding:.9rem}.country-facts{gap:.35rem}.map-penguin{font-size:1.65rem}.map-dot{stroke-width:3}.map-legend{gap:.4rem .8rem}}

/* Fuel and flight controls */
.journey-play { max-width: 640px; }
.adventure-card { padding: clamp(1rem, 4vw, 2rem); }
.adventure-card h1 { color: #263d69; }
.adventure-card [hidden] { display: none !important; }
.adventure-card .fact { margin: .75rem 0; }
.adventure-card .feedback { margin: .6rem 0; }
.adventure-card .question-progress { margin-top: 1rem; }
.fuel-tank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  padding: .65rem .8rem;
  border-radius: 14px;
  background: #e7f2f8;
  color: #2c4c68;
  font-size: .84rem;
}
.postcard .fuel-tank { margin-bottom: .85rem; }
.fuel-lights { display: flex; gap: .4rem; }
.fuel-lights i {
  width: clamp(20px, 7vw, 34px);
  height: 13px;
  border-radius: 99px;
  border: 1px solid #bed2df;
  background: #ccdee8;
}
.fuel-lights .filled {
  border-color: #c18322;
  background: linear-gradient(180deg, #ffda81, #ffb945);
  animation: fuel-flash .55s ease-out;
}
@keyframes fuel-flash { 35% { transform: scale(1.12); box-shadow: 0 0 10px #ffbd4d; } }

.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin-top: .75rem;
  text-align: left;
}
.game-heading h1 { margin: 0; }
.game-clock {
  min-width: 4.6rem;
  padding: .35rem .65rem;
  text-align: center;
  border-radius: 10px;
  background: #253e63;
  color: white;
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.game-help { color: #435e76; font-size: .88rem; }
.game-art, .game-board-wrap, .game-postcard {
  background: radial-gradient(ellipse at 75% 20%, #fff9 0%, transparent 45%),
    linear-gradient(145deg, var(--game-sky, #a9dcf3), var(--game-ground, #b5ebe3));
  border: 1px solid #c9dfeb;
  border-radius: 16px;
}
.palette-frost { --game-sky: #e2f8ff; --game-ground: #a6d6f4; }
.palette-forest { --game-sky: #c9efd8; --game-ground: #8fcfaf; }
.palette-coast { --game-sky: #cef5f7; --game-ground: #8fd7e2; }
.palette-sunset { --game-sky: #ffe9b5; --game-ground: #ffc4a2; }
.palette-blossom { --game-sky: #fde5ee; --game-ground: #edbbdf; }
.palette-night { --game-sky: #dae3ff; --game-ground: #afa9e5; }
.game-art {
  display: grid;
  place-items: center;
  min-height: 8rem;
  margin-top: 1rem;
  font-size: clamp(2rem, 10vw, 3.4rem);
}
.game-board-wrap { padding: .55rem; }
.game-target { margin: .1rem 0 .55rem; font-weight: 800; color: #233a5a; }
.game-target:empty { display: none; }
.game-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.game-board button {
  min-width: 0;
  min-height: clamp(52px, 13vw, 70px);
  padding: .15rem;
  font-size: clamp(1.55rem, 7vw, 2.3rem);
  line-height: 1.1;
  border: 2px solid #6285ac;
  border-radius: 13px;
  background: #fafdff;
  color: #395d80;
}
.game-board button:active { transform: scale(.95); }
.game-board .game-hit { border-color: #4a8c68; background: #dbf6de; }
.game-results { margin-top: .65rem; }
.game-results p { margin: .2rem 0 0; min-height: 2.6em; color: #425c71; }
.game-postcard {
  position: relative;
  height: clamp(82px, 18vw, 120px);
  margin-bottom: .5rem;
  overflow: hidden;
}
.game-postcard img, .reveal-tiles { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-postcard img { object-fit: cover; }
.reveal-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.reveal-tiles span {
  display: grid;
  place-items: center;
  color: #446787;
  background: #e3f2fb;
  border-right: 1px dashed #94b8d2;
}
.runway {
  position: relative;
  min-height: 150px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 16px;
  background:
    repeating-linear-gradient(90deg, #fffbdf 0 18px, transparent 18px 36px) 0 78% / 100% 4px no-repeat,
    linear-gradient(#bbe9fa 0 58%, #98c9a3 58% 65%, #587181 65% 90%, #98c9a3 90%);
}
.runway-pip {
  position: absolute;
  left: 50%;
  bottom: 24%;
  translate: -50% 0;
  font-size: 3.5rem;
  line-height: 1;
}
.runway.is-launching .runway-pip { animation: runway-takeoff 3s ease-in-out both; }
@keyframes runway-takeoff {
  0%, 45% { transform: translate(-1.75rem, 0); }
  80% { transform: translate(2.4rem, -.2rem) rotate(-10deg); }
  100% { transform: translate(7rem, -5rem) rotate(-18deg); }
}
.launch-count {
  margin: .1rem 0;
  font-size: clamp(3rem, 16vw, 5rem);
  line-height: 1.15;
  font-weight: 900;
  color: #304e77;
  font-variant-numeric: tabular-nums;
}
.milestone { color: #69401b; font-weight: 800; }
.pip-scarf {
  position: absolute;
  top: 57%;
  left: 27%;
  width: 52%;
  height: 13%;
  border-radius: 2px 4px 5px 4px;
  background: #d3485b;
  transform: rotate(15deg);
}
.pip-scarf::after {
  position: absolute;
  content: '';
  width: 26%;
  height: 190%;
  right: 4%;
  top: 40%;
  background: inherit;
  border-radius: 2px;
  transform: rotate(-26deg);
}
.scarf-1 { background: #2378c8; }
.scarf-2 { background: #198056; }
.scarf-3 { background: #824ca7; }
@media (max-width: 640px) {
  .adventure-card { margin-top: .3rem; }
  .adventure-card .answers button { min-height: 49px; }
  .game-board button { min-height: 54px; }
}
.postcard-art {
  display: grid;
  place-content: center;
  gap: .35rem;
  text-align: center;
  color: #24425e;
  background: radial-gradient(ellipse at 75% 20%, #fff9 0%, transparent 45%),
    linear-gradient(145deg, var(--game-sky), var(--game-ground));
}
.postcard > .postcard-art { min-height: 160px; }
.postcard-art > div { display: flex; justify-content: center; gap: .3em; font-size: clamp(1.6rem, 7vw, 3.5rem); }
.postcard-art > div span:nth-child(2) { transform: translateY(-.15em); }
.postcard-art small { font-weight: 800; }
.game-postcard .postcard-art { position: absolute; inset: 0; }
.game-postcard .postcard-art > div { font-size: clamp(1.25rem, 5vw, 2.25rem); }
@media (max-width: 640px) {
  .postcard > .postcard-art { min-height: 128px; }
}
/* Map challenges and Pip's flight. */
.map-game-board { display:block; }
.challenge-map { display:block; width:100%; height:auto; border-radius:12px; background:#d6f0f8; }
.challenge-country { fill:#c2d2c9; stroke:#fff; stroke-width:1; stroke-linejoin:round; cursor:pointer; }
.challenge-country.home { fill:#ffbf51; }
.challenge-country:hover { fill:#80be9c; }
.challenge-marker { cursor:pointer; }
.challenge-marker circle { fill:#fff; stroke:#315d85; stroke-width:2; }
.challenge-marker text { fill:#244263; font-size:14px; font-weight:800; pointer-events:none; }
.challenge-marker:focus-visible circle { stroke:#112d54; stroke-width:4; }
.map-clue { margin:.65rem 0 .2rem; font-size:.85rem; color:#29475c; }
.map-research { display:inline-flex; align-items:center; justify-content:center; min-height:44px; color:#174e7a; font-weight:700; }
.map-zoom { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; padding:.5rem .8rem; border:1px solid #88a9be; border-radius:10px; background:#fff; color:#244263; font-weight:700; }
.challenge-dot { fill:#fff; stroke:#315d85; stroke-width:3; cursor:pointer; }
.challenge-country[role=button]:focus-visible { outline:none; stroke:#183e70; stroke-width:4; }
.flight-sound { min-height:44px; margin:.5rem; padding:.5rem .9rem; color:#294f70; border:1px solid #adcddd; border-radius:12px; background:#fff; font-weight:700; }
.runway-plane { position:absolute; left:50%; bottom:3%; transform:translateX(-50%); width:clamp(180px, 65%, 285px); height:auto; filter:drop-shadow(0 5px 3px rgba(33,65,72,.25)); }
.runway.is-launching .runway-plane { animation:plane-takeoff 3s ease-in forwards; }
@keyframes plane-takeoff { 0%,35% { transform:translateX(-50%); } 65% { transform:translateX(15%) rotate(-12deg); } 100% { transform:translate(210%,-140%) rotate(-20deg); } }
.map-plane { display:none; width:clamp(72px, 16vw, 110px); max-width:none; height:auto; }
.map-penguin.is-flying .map-pip { display:none; }
.map-penguin.is-flying .map-plane { display:block; }
@media (prefers-reduced-motion:reduce) { .runway.is-launching .runway-plane { animation:none; } }

/* Bring each destination into focus before it settles above the map. */
.map-game-board { position: relative; }
.game-board-wrap .game-target {
  margin: .15rem 0 .65rem;
  padding: .5rem .65rem;
  border-radius: 12px;
  background: #243e63;
  color: #fff;
  font-size: clamp(1.15rem, 5vw, 1.55rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.map-prompt-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: max-content;
  max-width: 92%;
  padding: .8rem 1rem;
  border: 3px solid #fff;
  border-radius: 18px;
  background: #243e63;
  color: #fff;
  box-shadow: 0 5px 20px rgba(31, 57, 88, .3);
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: map-prompt-intro 2.3s ease-in-out forwards;
}
@keyframes map-prompt-intro {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
  12%, 65% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 85px)) scale(.58); }
}
@media (prefers-reduced-motion: reduce) {
  .map-prompt-overlay { display: none; }
}

.island-touch-target { display:none; fill:rgba(255,255,255,.30); stroke:#315d85; stroke-width:1; cursor:pointer; }
.is-atlantic-zoom .island-touch-target { display:block; }

.visit-sync-status { margin:.6rem 0; padding:.6rem; border-radius:10px; background:#fff1d4; color:#573e17; font-size:.8rem; line-height:1.4; }
