/* Mapnitrix — palette taken from brand/brand.html and engine/style.css */
:root {
  --sky-0: #06111f;   /* night sky, page base */
  --sky-1: #0b1b2e;   /* ink navy */
  --sky-2: #0d2c4f;   /* upper sky */
  --sea-0: #0b2746;   /* deep ocean */
  --sea-1: #2264a0;   /* ocean */
  --glow: #6eb4ff;    /* atmosphere glow */
  --land: #ece5d3;    /* sand / landmass */
  --land-2: #ddd2b8;
  --earth: #8d6e63;   /* soil */
  --earth-ink: #4a3a30;
  --gold: #ffc531;    /* the line */
  --gold-2: #ffd60a;
  --pin: #e63946;     /* the pin */
  --teal: #2a9d8f;    /* vegetation / success */
  --mist: #9fb3c8;    /* tagline grey-blue */
  --mist-2: #48627d;
  --white: #fff;
  --r: 22px;
  --display: 'Montserrat', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--sky-0); color: var(--white); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg.ic { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--sky-1); padding: 8px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.2px;
  padding: 15px 26px; border-radius: 16px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(3px); }
.btn-gold { background: var(--gold); color: var(--sky-1); box-shadow: 0 5px 0 #b8860b, 0 14px 30px rgba(255,197,49,.25); }
.btn-gold:hover { background: var(--gold-2); }
.btn-gold:active { box-shadow: 0 2px 0 #b8860b; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); box-shadow: inset 0 0 0 2px rgba(159,179,200,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(6,17,31,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(159,179,200,.12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.wm { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.5px; font-style: normal; }
.wm b { color: var(--white); } .wm i { color: var(--gold); font-style: normal; }
.hud { margin-left: auto; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 13px; }
.hud-rank { color: var(--gold); text-transform: uppercase; letter-spacing: 1.2px; }
.hud-bar { width: 120px; height: 10px; border-radius: 99px; background: rgba(159,179,200,.18); overflow: hidden; }
.hud-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: inherit; transition: width .8s cubic-bezier(.2,.9,.3,1.2); }
.hud-xp { color: var(--mist); } .hud-xp b { color: var(--white); }
.hud.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); position: relative; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -1px; line-height: 1.02; }
h2 { font-size: clamp(34px, 5vw, 54px); }
.sub { color: var(--mist); margin-top: 14px; font-size: 18px; }

/* ---------- hero ---------- */
.hero { min-height: min(820px, calc(100svh - 64px)); display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 72% 45%, rgba(34,100,160,.35), transparent 70%), linear-gradient(180deg, var(--sky-2), var(--sky-0)); }
.worldmap { position: absolute; inset: 6% -4% auto; aspect-ratio: 2 / 1; max-height: 92%; margin: 0 auto; opacity: .9;
  -webkit-mask: linear-gradient(90deg, rgba(0,0,0,.35), #000 55%); mask: linear-gradient(90deg, rgba(0,0,0,.35), #000 55%); }
.worldmap svg, .story-map svg { width: 100%; height: 100%; display: block; }
.worldmap .d { fill: var(--land); opacity: .12; }
.stories { background: var(--sky-0); padding-top: clamp(48px, 6vw, 80px); }
.story-map { position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 1000 / 420; border-radius: 28px; padding: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(34,100,160,.35), transparent 70%), var(--sky-1); border: 1.5px solid rgba(110,180,255,.16); }
.story-map svg { position: absolute; inset: 0; }
.story-map .d { fill: var(--land); opacity: .55; }
.mpin.right .tip { left: auto; right: -10px; translate: 0 0; }
.mpin { position: absolute; width: 0; height: 0; z-index: 2; }
.mpin button { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--pin); border: 3px solid var(--white); cursor: pointer; padding: 0;
  box-shadow: 0 0 0 0 rgba(230,57,70,.6); animation: ping 2.4s infinite; }
.mpin:nth-child(2n) button { animation-delay: .8s; } .mpin:nth-child(3n) button { animation-delay: 1.6s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(230,57,70,.6); } 70%,100% { box-shadow: 0 0 0 16px rgba(230,57,70,0); } }
.mpin .tip { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; background: var(--white); color: var(--sky-1); border-radius: 12px; padding: 8px 12px; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.2; box-shadow: 0 8px 22px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(6px); }
.mpin .tip small { display: block; font-weight: 600; color: var(--mist-2); }
.mpin.open .tip, .mpin button:hover + .tip, .mpin button:focus-visible + .tip { opacity: 1; transform: none; }
.hero-inner { position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -3px; text-shadow: 0 6px 30px rgba(6,17,31,.6); }
.hero h1 span { color: var(--gold); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: #d5e1ee; max-width: 520px; margin-top: 22px; text-shadow: 0 2px 12px rgba(6,17,31,.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: flex; gap: 32px; list-style: none; margin-top: 40px; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--white); }
.hero-stats span { font-size: 13px; color: var(--mist); }
.hero-globe { position: relative; aspect-ratio: 1; }
.globe { width: 100%; height: 100%; overflow: visible; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.route-draw { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 .9; stroke-dashoffset: 1; animation: run 2.8s linear infinite; opacity: .55; }
@keyframes run { to { stroke-dashoffset: 0; } }
.orbit-chip { position: absolute; font-family: var(--display); font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 14px; background: var(--white); color: var(--sky-1); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.chip-a { left: -2%; bottom: 4%; animation: float 6s ease-in-out infinite .6s; }
.chip-b { right: 2%; top: 8%; background: var(--gold); animation: float 5s ease-in-out infinite 1.2s; }
.hint { position: relative; z-index: 3; text-align: center; color: var(--mist); font-size: 13px; margin-top: 40px; opacity: .8; }

/* ---------- quests ---------- */
.quests { background: linear-gradient(180deg, var(--sky-0), var(--sky-1)); }
.quest-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.passport { position: sticky; top: 90px; background: var(--land); color: var(--sky-1); border-radius: 26px; padding: 26px; box-shadow: 0 10px 0 var(--land-2), 0 30px 60px rgba(0,0,0,.4);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(141,110,99,.12) 27px 28px); }
.pp-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px dashed rgba(141,110,99,.4); padding-bottom: 14px; }
.pp-title { font-family: var(--display); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; color: var(--earth-ink); }
.pp-mark { width: 44px; height: 44px; }
.pp-rank { margin-top: 18px; }
.pp-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--earth); font-weight: 700; }
.pp-rank strong { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -1px; line-height: 1.1; }
.pp-next { font-size: 14px; color: var(--earth-ink); }
.pp-bar { height: 14px; border-radius: 99px; background: rgba(141,110,99,.22); margin: 14px 0 22px; overflow: hidden; }
.pp-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: inherit; transition: width .9s cubic-bezier(.2,.9,.3,1.2); }
.stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stamps .stamp { flex: 0 0 calc((100% - 20px) / 3); }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed rgba(141,110,99,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: rgba(141,110,99,.55); text-align: center; }
.stamp svg { width: 26px; height: 26px; }
.stamp span { font-family: var(--display); font-weight: 800; font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; line-height: 1.1; }
.stamp.on { border-style: solid; border-width: 3px; color: var(--c); border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transform: rotate(var(--rot, -8deg)); }
.stamp.on.fresh { animation: stampIn .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes stampIn { 0% { transform: scale(2.2) rotate(18deg); opacity: 0; } 100% { transform: scale(1) rotate(var(--rot, -8deg)); opacity: 1; } }
.stamp[data-stamp=youtube] { --c: var(--pin); --rot: -9deg; }
.stamp[data-stamp=instagram] { --c: #b5338a; --rot: 7deg; }
.stamp[data-stamp=tiktok] { --c: var(--sky-1); --rot: -4deg; }
.stamp[data-stamp=quiz] { --c: var(--teal); --rot: 10deg; }
.stamp[data-stamp=share] { --c: #b8860b; --rot: -12deg; }
.ranks { list-style: none; margin-top: 22px; display: grid; gap: 6px; font-size: 14px; }
.ranks li { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 10px; color: var(--earth); }
.ranks li.done { color: var(--earth-ink); font-weight: 700; }
.ranks li.cur { background: var(--sky-1); color: var(--gold); font-weight: 700; }
.pp-reset { margin-top: 16px; background: none; border: 0; color: var(--earth); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

.quest-list { display: grid; gap: 14px; }
.quest { --c: var(--glow); display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--r);
  background: rgba(255,255,255,.04); border: 1.5px solid rgba(159,179,200,.14); transition: transform .2s, border-color .2s, background .2s; }
.quest:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: rgba(255,255,255,.06); }
.q-yt { --c: var(--pin); } .q-ig { --c: #e1306c; } .q-tt { --c: #25f4ee; } .q-quiz { --c: var(--teal); } .q-share { --c: var(--gold); }
.q-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.q-ic svg { width: 28px; height: 28px; }
.q-body h3 { font-size: 20px; letter-spacing: -.4px; }
.q-body p { color: var(--mist); font-size: 15px; margin-top: 3px; }
.q-xp { font-family: var(--display); font-weight: 900; font-size: 14px; color: var(--gold); background: rgba(255,197,49,.12); padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.q-go { background: var(--c); color: var(--sky-0); }
.q-go:hover { filter: brightness(1.1); }
.quest.done { border-color: rgba(42,157,143,.5); background: rgba(42,157,143,.08); }
.quest.done .q-xp { color: var(--teal); background: rgba(42,157,143,.15); }
.quest.done .q-xp::before { content: '✓ '; }
.quest.done .q-go { background: rgba(255,255,255,.1); color: var(--mist); }
.honor { font-size: 13px; color: var(--mist-2); margin-top: 4px; }

/* ---------- quiz ---------- */
.play { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,100,160,.45), transparent 70%), linear-gradient(180deg, var(--sky-1), var(--sea-0)); }
.quiz { max-width: 880px; margin: 0 auto; background: rgba(6,17,31,.55); border: 1.5px solid rgba(110,180,255,.22); border-radius: 30px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.quiz-top { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--mist); }
.quiz-dots { display: flex; gap: 6px; margin: 0 auto; }
.quiz-dots i { width: 28px; height: 8px; border-radius: 99px; background: rgba(159,179,200,.2); }
.quiz-dots i.ok { background: var(--teal); } .quiz-dots i.no { background: var(--pin); } .quiz-dots i.cur { background: var(--gold); }
.quiz-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; align-items: center; }
.sil-wrap { position: relative; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 40% 35%, var(--sea-1), var(--sea-0)); overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.1), inset 0 -30px 60px rgba(0,0,0,.25); }
.sil-wrap::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; }
.sil { position: relative; width: 100%; height: 100%; }
.sil path { fill: var(--land); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); transform-origin: 100px 100px; animation: pop .45s cubic-bezier(.3,1.5,.5,1); }
.sil.ok path { fill: var(--teal); } .sil.no path { fill: var(--pin); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.sil-hint { position: absolute; left: 14px; bottom: 12px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); }
.choices { display: grid; gap: 12px; }
.choice { font-family: var(--display); font-weight: 800; font-size: 18px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 0; cursor: pointer; color: var(--sky-1); background: var(--white);
  box-shadow: 0 5px 0 #c9d4e0; transition: transform .12s, background .2s; display: flex; align-items: center; gap: 14px; }
.choice kbd { font-family: inherit; font-size: 12px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--sky-1); color: var(--white); flex: none; }
.choice:hover:not(:disabled) { transform: translateY(-2px); }
.choice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #c9d4e0; }
.choice:disabled { cursor: default; opacity: .55; }
.choice.ok { background: var(--teal); color: #fff; opacity: 1; box-shadow: 0 5px 0 #1f7a6f; }
.choice.no { background: var(--pin); color: #fff; opacity: 1; box-shadow: 0 5px 0 #c1121f; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-end { text-align: center; padding: 30px 10px 10px; }
.end-score { font-family: var(--display); font-weight: 900; font-size: 84px; letter-spacing: -3px; color: var(--gold); line-height: 1; }
.end-msg { color: #d5e1ee; font-size: 18px; margin: 12px auto 24px; max-width: 460px; }
.end-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.quiz.ended .quiz-stage { display: none; }

/* ---------- roadmap (the land) ---------- */
.roadmap { background: var(--land); color: var(--sky-1); overflow: hidden;
  background-image: radial-gradient(circle at 12% 20%, rgba(42,157,143,.12), transparent 30%), radial-gradient(circle at 88% 80%, rgba(141,110,99,.18), transparent 35%); }
.roadmap::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 60px; background: var(--sea-0);
  -webkit-mask: radial-gradient(40px 30px at 40px 0, #000 98%, transparent) 0 0 / 80px 60px repeat-x; mask: radial-gradient(40px 30px at 40px 0, #000 98%, transparent) 0 0 / 80px 60px repeat-x; }
.section-head.dark .eyebrow { color: var(--earth); }
.section-head.dark .sub { color: var(--earth-ink); }
.route { list-style: none; max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.route::before { content: ''; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 6px dashed var(--gold); filter: drop-shadow(0 3px 0 rgba(141,110,99,.35)); }
.stop { position: relative; background: #fffaf0; border-radius: 26px; padding: 84px 26px 28px; box-shadow: 0 8px 0 var(--land-2), 0 20px 40px rgba(74,58,48,.12); }
.stop-pin { position: absolute; top: 4px; left: 50%; translate: -50% 0; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 5px solid #fff; box-shadow: 0 6px 16px rgba(74,58,48,.3); }
.stop-pin svg { width: 26px; height: 26px; }
.live .stop-pin { background: var(--teal); }
.progress .stop-pin { background: var(--gold); color: var(--sky-1); animation: ping-gold 2.2s infinite; }
@keyframes ping-gold { 0% { box-shadow: 0 0 0 0 rgba(255,197,49,.7); } 70%,100% { box-shadow: 0 0 0 18px rgba(255,197,49,0); } }
.soon .stop-pin { background: var(--mist-2); }
.badge { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; }
.badge-live { background: rgba(42,157,143,.15); color: #1f7a6f; }
.badge-progress { background: var(--gold); color: var(--sky-1); }
.badge-soon { background: rgba(72,98,125,.12); color: var(--mist-2); }
.stop h3 { font-size: 26px; margin: 12px 0 8px; }
.stop p { color: var(--earth-ink); font-size: 16px; }
.stop .link { display: inline-block; margin-top: 16px; font-family: var(--display); font-weight: 800; color: #1f7a6f; text-decoration: none; }
.stop .link:hover { text-decoration: underline; }
.progress { box-shadow: 0 8px 0 #e8b820, 0 0 0 3px var(--gold), 0 24px 50px rgba(184,134,11,.25); transform: translateY(-10px); }
.build-bar { height: 12px; border-radius: 99px; background: rgba(141,110,99,.2); margin-top: 18px; overflow: hidden; }
.build-bar span { display: block; height: 100%; width: 100%; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, #f2b200 12px 24px); background-size: 34px 34px; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 34px 0; } }
.build-note { display: block; font-size: 13px; color: var(--earth); margin-top: 10px; }
.soon { opacity: .82; }
.soon h3, .soon p { filter: saturate(.6); }

/* ---------- follow band ---------- */
.follow { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(34,100,160,.4), transparent 70%), linear-gradient(180deg, var(--sky-2), var(--sky-0)); }
.follow-mark { width: 120px; height: 120px; animation: float 7s ease-in-out infinite; }
.follow h2 { margin-top: 10px; }
.follow > p { color: var(--mist); margin-top: 10px; }
.follow-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.soc { display: flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 18px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 18px; transition: transform .15s; }
.soc svg { width: 26px; height: 26px; }
.soc:hover { transform: translateY(-3px); }
.soc-yt { background: #ff0033; color: #fff; box-shadow: 0 5px 0 #a3001f; }
.soc-ig { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); color: #fff; box-shadow: 0 5px 0 #6d2a8f; }
.soc-tt { background: #000; color: #fff; box-shadow: 0 5px 0 #25f4ee, 0 5px 0 2px #fe2c55; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px clamp(16px, 4vw, 48px); font-size: 13px; color: var(--mist-2); border-top: 1px solid rgba(159,179,200,.1); }
.foot a { color: var(--mist); }

/* ---------- toast & level-up ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 80; translate: -50% 0; background: var(--gold); color: var(--sky-1); font-family: var(--display); font-weight: 900; font-size: 17px;
  padding: 14px 22px; border-radius: 16px; box-shadow: 0 6px 0 #b8860b, 0 20px 40px rgba(0,0,0,.4); opacity: 0; transform: translateY(30px) scale(.9); transition: all .35s cubic-bezier(.3,1.5,.5,1); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: none; }
.levelup { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(6,17,31,.75); backdrop-filter: blur(6px); padding: 16px; }
.levelup[hidden] { display: none; }
.lu-card { background: var(--land); color: var(--sky-1); border-radius: 28px; padding: 34px 34px 30px; text-align: center; max-width: 380px; width: 100%; box-shadow: 0 10px 0 var(--land-2), 0 40px 80px rgba(0,0,0,.5); animation: pop .5s cubic-bezier(.3,1.5,.5,1); }
.lu-mark { width: 110px; height: 110px; }
.lu-eyebrow { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--earth); margin-top: 6px; }
.lu-rank { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: -1.5px; }
.lu-text { color: var(--earth-ink); margin: 6px 0 22px; }
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 95; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- cookie consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 85; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  background: var(--sky-1); border: 1.5px solid rgba(159,179,200,.25); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5); font-size: 14px; color: #d5e1ee; }
.consent[hidden] { display: none; }
.consent p { flex: 1; }
.consent-btns { display: flex; gap: 8px; flex: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--mist); text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .consent { flex-direction: column; align-items: stretch; } .consent-btns .btn { flex: 1; justify-content: center; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-globe { max-width: 320px; margin: 0 auto; order: -1; }
  .worldmap { inset: auto -40% 4% -40%; }
  .quest-grid { grid-template-columns: 1fr; }
  .passport { position: relative; top: 0; }
  .route { grid-template-columns: 1fr; gap: 22px; max-width: 520px; }
  .route::before { top: 30px; bottom: 30px; left: 50%; right: auto; border-top: 0; border-left: 6px dashed var(--gold); }
  .progress { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hud-bar, .nav-cta { display: none; }
  .hero { min-height: auto; padding-top: 28px; }
  .hero-globe { max-width: 220px; }
  .chip-a { left: -16%; } .chip-b { right: -10%; }
  .hero-stats { gap: 20px; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .quest { grid-template-columns: 46px 1fr auto; gap: 12px; padding: 14px; }
  .q-ic { width: 46px; height: 46px; border-radius: 13px; }
  .q-go { grid-column: 1 / -1; justify-content: center; }
  .q-xp { font-size: 12px; }
  .quiz-stage { grid-template-columns: 1fr; gap: 16px; }
  .sil-wrap { max-width: 280px; margin: 0 auto; width: 100%; }
  .choice { padding: 14px 16px; font-size: 16px; }
  .quiz-dots i { width: 18px; }
  .soc { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
