:root {
  --bg: #fff7f0;
  --ink: #2d2a4a;
  --soft: #6b6788;
  --line: rgba(45,42,74,.12);

  --pink: #ffc4dc;   --pink-d: #f06aa8;
  --lilac: #d8cbff;  --lilac-d: #8f73f0;
  --mint: #bff2da;   --mint-d: #2fbf86;
  --sky: #c6e4ff;    --sky-d: #4aa8f0;
  --butter: #ffe9a6; --butter-d: #e8b02a;
  --peach: #ffd2bd;

  --acrylic: rgba(255,255,255,.55);
  --acrylic-edge: rgba(255,255,255,.9);
  --shadow: 0 18px 40px -18px rgba(110,80,170,.35);
  --r: 12px;
  --r-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Nunito', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, h4, .brand, .btn, .num, .sticker, .tape, .badge, .lvl { font-family: 'Fredoka', sans-serif; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 700; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.01em; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.muted { color: var(--soft); font-size: 1.1rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.section { padding: 110px 0; position: relative; }
.head { margin-bottom: 56px; }

.tile {
  background: var(--acrylic);
  border: 1.5px solid var(--acrylic-edge);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 30px;
}

/* background */
.blobs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; animation: drift 24s ease-in-out infinite alternate; }
.blobs span:nth-child(1) { background: var(--pink); width: 46vmax; height: 46vmax; top: -14vmax; left: -12vmax; }
.blobs span:nth-child(2) { background: var(--sky); width: 40vmax; height: 40vmax; top: 30%; right: -14vmax; animation-delay: -6s; }
.blobs span:nth-child(3) { background: var(--butter); width: 34vmax; height: 34vmax; bottom: -12vmax; left: 20%; animation-delay: -12s; opacity: .6; }
.blobs span:nth-child(4) { background: var(--lilac); width: 30vmax; height: 30vmax; top: 10%; left: 40%; animation-delay: -18s; opacity: .55; }
@keyframes drift { 50% { transform: translate(6vmax, 5vmax) scale(1.08); } 100% { transform: translate(-5vmax, 8vmax) scale(.95); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: var(--r-sm); font-weight: 600; font-size: 1.02rem; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn-sm { padding: 8px 18px; font-size: .92rem; }
.btn-pop { background: var(--pink); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.btn-pop:hover { transform: translate(-1px,-2px); box-shadow: 4px 6px 0 var(--ink); }
.btn-pop:active { transform: translate(2px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-soft { background: var(--acrylic); border: 2px solid var(--acrylic-edge); backdrop-filter: blur(12px); color: var(--ink); }
.btn-soft:hover { transform: translateY(-2px); background: rgba(255,255,255,.8); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--lilac-d); outline-offset: 3px; }

/* nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 1120px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 18px; border-radius: var(--r); border: 1.5px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.nav.scrolled { background: var(--acrylic); border-color: var(--acrylic-edge); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.3rem; }
.brand-mark { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(var(--pink-d), var(--butter-d), var(--mint-d), var(--sky-d), var(--lilac-d), var(--pink-d)); position: relative; animation: spin 10s linear infinite; }
.brand-mark::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.nav-links { display: flex; gap: 28px; font-weight: 600; color: var(--soft); }
.nav-links a:hover { color: var(--pink-d); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-c { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; max-width: 1180px; width: 100%; margin: 0 auto; padding: 130px 20px 110px; pointer-events: none; }
.hero-inner > * { max-width: 590px; pointer-events: auto; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--soft); margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.sticker { display: inline-block; padding: 6px 14px; border-radius: 4px; background: var(--butter); border: 2px solid var(--ink); font-weight: 600; font-size: .95rem; transform: rotate(-3deg); box-shadow: 2px 3px 0 var(--ink); margin-bottom: 26px; }
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--pink-d); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 14px; opacity: .5; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* tape strip */
.tape { overflow: hidden; background: var(--lilac); border-block: 2px solid var(--ink); padding: 14px 0; transform: rotate(-1.5deg); margin: 0 -20px; }
.tape-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 28s linear infinite; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; }
.tape i { width: 14px; height: 14px; border-radius: 50%; background: var(--pink-d); border: 2px solid var(--ink); }
.tape i:nth-of-type(3n+2) { background: var(--butter-d); } .tape i:nth-of-type(3n) { background: var(--mint-d); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* why mosaic */
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile-text { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.tile-stat { background: var(--bgc); border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); display: flex; flex-direction: column; gap: 14px; }
.tile-stat.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; }
.tile-stat p { font-size: 1.05rem; }
.ring { position: relative; width: 120px; flex-shrink: 0; }
.tile-stat.wide .ring { width: 150px; }
.ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.ring .track { fill: rgba(255,255,255,.65); stroke: rgba(255,255,255,.9); stroke-width: 10; }
.ring .fill { fill: none; stroke: var(--c); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327px; stroke-dashoffset: 327px; }
.ring > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 1.5rem 'Fredoka'; color: var(--ink); }
.tile-stat.wide .ring > span { font-size: 1.8rem; }

/* quest path */
.quest-path { position: relative; display: grid; gap: 70px; padding: 20px 0; }
.path-svg { position: absolute; left: 50%; top: 0; width: 14%; height: 100%; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.path-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.path-bg { stroke: rgba(45,42,74,.18); stroke-width: 3; stroke-dasharray: 2 10; }
.path-fg { stroke: var(--pink-d); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stop.flip .viz { order: 2; }
.stop-text { max-width: 400px; }
.stop:not(.flip) .stop-text { justify-self: start; }
.stop.flip .stop-text { justify-self: end; text-align: right; }
.num { display: block; font-size: 4.5rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 8px; }
.stop-text p { color: var(--soft); font-size: 1.05rem; }
.viz { position: relative; aspect-ratio: 4/3; max-width: 420px; width: 100%; border-radius: var(--r); overflow: hidden; border: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); justify-self: center; }
.viz-radar { background: var(--sky); }
.viz-walk { background: var(--mint); }
.viz-scan { background: var(--lilac); }
.viz-coin { background: var(--butter); }

.viz-radar .ring-r { position: absolute; top: 50%; left: 50%; border: 2px dashed rgba(45,42,74,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.viz-radar .r1 { width: 30%; aspect-ratio: 1; } .viz-radar .r2 { width: 60%; aspect-ratio: 1; } .viz-radar .r3 { width: 90%; aspect-ratio: 1; }
.radar-sweep { position: absolute; top: 50%; left: 50%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,.85), transparent 28%); animation: spin-c 4s linear infinite; }
.qpin { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--pc); border: 2px solid #fff; animation: blip 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.qpin::after { content: ''; position: absolute; inset: -7px; border: 2px solid var(--pc); border-radius: 50%; animation: ping 2.4s infinite; animation-delay: var(--d, 0s); }
@keyframes blip { 50% { transform: scale(1.25); } }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.me { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--sky-d); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(45,42,74,.3); }

.walk-svg { width: 100%; height: 100%; }
.walk-path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 5 7; stroke-linecap: round; opacity: .45; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.zone { fill: rgba(255,255,255,.6); stroke: var(--mint-d); stroke-width: 2; stroke-dasharray: 4 4; animation: breathe 3s ease-in-out infinite; transform-origin: 170px 30px; }
@keyframes breathe { 50% { transform: scale(1.12); } }
.goal { fill: var(--pink-d); }
.walker { fill: var(--sky-d); stroke: #fff; stroke-width: 3; }
.tag-300 { position: absolute; right: 10px; bottom: 10px; font: 600 .8rem 'Fredoka'; padding: 2px 9px; border-radius: 4px; background: #fff; color: var(--mint-d); border: 1.5px solid var(--ink); }

.viz-scan { display: flex; align-items: center; justify-content: center; }
.frame { position: relative; width: 70%; aspect-ratio: 10/7; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(#cfe8ff, #ffe1ef); border: 3px solid #fff; box-shadow: 0 8px 20px -8px rgba(45,42,74,.35); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hill2 { fill: #b7a3f5; } .hill1 { fill: #8ee0b9; } .scene circle { fill: var(--butter-d); }
.corner { position: absolute; width: 14px; height: 14px; border: 3px solid #fff; }
.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; } .tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; } .br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.scanline { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(255,255,255,.75)); border-bottom: 3px solid var(--pink-d); animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 55% { top: 100%; } 100% { top: 100%; } }
.stamp { position: absolute; top: 50%; left: 50%; font: 700 1rem 'Fredoka'; letter-spacing: .05em; color: var(--mint-d); border: 3px solid var(--mint-d); border-radius: 4px; padding: 2px 12px; background: #fff; opacity: 0; animation: stamp 3s ease-in-out infinite; }
@keyframes stamp { 0%, 55% { opacity: 0; transform: translate(-50%,-50%) scale(1.6) rotate(-10deg); } 65%, 90% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(-10deg); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1) rotate(-10deg); } }

.viz-coin { display: flex; align-items: center; justify-content: center; perspective: 600px; }
.coin3d { position: relative; width: 84px; height: 84px; transform-style: preserve-3d; animation: coinspin 3s cubic-bezier(.5,0,.5,1) infinite; }
.face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff6d6, #ffd75e 50%, #f0b429); border: 3px solid var(--ink); backface-visibility: hidden; }
.face span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(45,42,74,.5); }
.face.back { transform: rotateY(180deg); }
.face.back span { border-radius: 4px; transform: rotate(45deg); width: 28px; height: 28px; }
@keyframes coinspin { 0% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-16px) rotateY(180deg); } 100% { transform: translateY(0) rotateY(360deg); } }
.coin-shadow { position: absolute; bottom: 20%; width: 60px; height: 10px; border-radius: 50%; background: rgba(45,42,74,.2); filter: blur(3px); animation: shadow 3s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes shadow { 50% { transform: scale(.7); opacity: .5; } }
.plus { position: absolute; top: 16%; right: 22%; font: 700 1.3rem 'Fredoka'; color: var(--ink); animation: rise 3s ease-out infinite; }
@keyframes rise { 0%, 40% { opacity: 0; transform: translateY(10px); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }

/* app: sticky phone */
.app { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.phone-col { position: relative; }
.phone-stage { position: sticky; top: calc(50vh - 300px); display: flex; justify-content: center; perspective: 1200px; padding: 20px 0; }
.phone { position: relative; width: 270px; height: 560px; border-radius: 40px; padding: 10px; background: #fff; border: 3px solid var(--ink);
  box-shadow: 10px 14px 0 var(--lilac), 10px 14px 0 2px var(--ink);
  transform: rotateY(-12deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .2s ease-out; }
.notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 10px; background: var(--ink); z-index: 5; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #f6f1ff; }
.scr { position: absolute; inset: 0; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .45s, transform .45s; pointer-events: none; }
.phone[data-screen="map"] .scr-map, .phone[data-screen="cam"] .scr-cam, .phone[data-screen="store"] .scr-store, .phone[data-screen="friends"] .scr-friends { opacity: 1; transform: none; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { animation: dash 1.2s linear infinite; }
.mpin { position: absolute; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pink-d); border: 2px solid var(--ink); animation: bob 2.6s ease-in-out infinite; }
.mpin::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.p1 { top: 27%; left: 62%; } .p2 { top: 52%; left: 18%; background: var(--lilac-d); animation-delay: .8s; } .p3 { top: 64%; left: 70%; background: var(--butter-d); animation-delay: 1.6s; }
@keyframes bob { 50% { translate: 0 -6px; } }
.mme { position: absolute; top: 72%; left: 34%; width: 16px; height: 16px; border-radius: 50%; background: var(--sky-d); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(45,42,74,.3); }
.mme::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: rgba(74,168,240,.25); animation: ping 2.4s infinite; }
.mtop { position: absolute; top: 48px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 4; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--lilac)); border: 2px solid var(--ink); }
.coins { display: inline-flex; align-items: center; gap: 6px; font: 600 .82rem 'Fredoka'; padding: 3px 10px; border-radius: 6px; background: #fff; border: 2px solid var(--ink); }
.coins i { width: 12px; height: 12px; border-radius: 50%; background: #ffd75e; border: 2px solid var(--ink); }
.qcard { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.8); border: 2px solid var(--ink); backdrop-filter: blur(12px); }
.qicon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--pink); flex-shrink: 0; }
.qicon svg, .fi svg, .ok svg, .state svg { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qicon svg { width: 22px; height: 22px; }
.qcard b { display: block; font-size: .88rem; } .qcard small { color: var(--soft); font-size: .72rem; }
.qcard button, .friend button { margin-left: auto; border: 2px solid var(--ink); border-radius: 6px; padding: 5px 12px; font: 600 .8rem 'Fredoka'; color: var(--ink); background: var(--mint); }

.scr-cam .cam-view { position: absolute; inset: 0 0 110px; overflow: hidden; }
.cam-view svg { width: 100%; height: 100%; display: block; }
.cam-result { position: absolute; left: 12px; right: 12px; bottom: 20px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: #fff; border: 2px solid var(--ink); }
.ok { width: 38px; height: 38px; border-radius: 8px; background: var(--mint); display: grid; place-items: center; }
.ok svg { width: 22px; }
.cam-result b { display: block; font-size: .9rem; } .cam-result small { color: var(--mint-d); font-weight: 700; font-size: .75rem; }

.scr-store, .scr-friends { padding: 96px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.scr h4 { font-size: 1.15rem; margin-bottom: 4px; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #fff; border: 2px solid var(--ink); }
.thumb { width: 36px; height: 36px; border-radius: 6px; background: var(--c); }
.item b { display: block; font-size: .85rem; } .item small { color: var(--pink-d); font-weight: 700; font-size: .75rem; }
.item em { margin-left: auto; font: 600 .82rem 'Fredoka'; font-style: normal; display: flex; align-items: center; gap: 4px; }
.item em::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #ffd75e; border: 2px solid var(--ink); }
.code { margin-top: auto; text-align: center; padding: 12px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--butter); font: 600 1rem 'Fredoka'; letter-spacing: .12em; }
.friend { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #fff; border: 2px solid var(--ink); }
.friend .av { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); flex-shrink: 0; }
.friend i { height: 10px; width: 70px; border-radius: 4px; background: var(--line); }
.friend button.ghost { background: #fff; color: var(--soft); border-color: var(--line); }
.gallery { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery span { aspect-ratio: 1; border-radius: 8px; background: var(--c); border: 2px solid var(--ink); }

.features { padding-top: 10px; }
.feat { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0 20px 28px; border-left: 3px solid var(--line); transition: border-color .3s; }
.feat.active { border-left-color: var(--pink-d); }
.feat h3 { font-size: 1.6rem; }
.feat p { color: var(--soft); font-size: 1.08rem; max-width: 440px; }
.fi { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c); border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); margin-bottom: 16px; }
.fi svg { width: 26px; height: 26px; }

/* story + tech mosaic */
.story-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile-quote { grid-column: span 2; background: var(--lilac); border: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); padding: 44px; }
.quote-mark { width: 52px; fill: var(--pink-d); margin-bottom: 16px; display: block; }
.quote { font-family: 'Fredoka'; font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; }
.tile-orbit { grid-row: span 2; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tile-origin { background: var(--butter); border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.tile-stack { background: var(--mint); border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.badge { display: inline-block; font-weight: 600; font-size: .85rem; padding: 2px 10px; border-radius: 4px; background: #fff; border: 2px solid var(--ink); margin-bottom: 12px; }
.tile-origin p { font-size: 1.1rem; }
.tech-list { list-style: none; display: grid; gap: 6px; }
.tech-list li { padding-left: 18px; position: relative; }
.tech-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }

.orbit-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 340px; }
.core { position: absolute; top: 50%; left: 50%; width: 28%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--pink) 45%, var(--lilac)); border: 3px solid var(--ink); box-shadow: 4px 6px 0 var(--ink); font: 700 1.4rem 'Fredoka'; animation: wobble 5s ease-in-out infinite; }
@keyframes wobble { 50% { transform: translate(-50%,-50%) scale(1.05) rotate(4deg); } }
.orbit { position: absolute; top: 50%; left: 50%; border: 2px dashed rgba(45,42,74,.2); border-radius: 50%; transform: translate(-50%,-50%); animation: spin-c linear infinite; }
.o1 { width: 48%; aspect-ratio: 1; animation-duration: 14s; }
.o2 { width: 66%; aspect-ratio: 1; animation-duration: 22s; animation-direction: reverse; }
.o3 { width: 84%; aspect-ratio: 1; animation-duration: 30s; }
.o4 { width: 100%; aspect-ratio: 1; animation-duration: 40s; animation-direction: reverse; }
.sat { position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); padding: 4px 10px; border-radius: 6px; font: 600 .8rem 'Fredoka'; white-space: nowrap; background: var(--c); border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.o1 .sat { animation: counter 14s linear infinite; } .o2 .sat { animation: counter 22s linear infinite reverse; }
.o3 .sat { animation: counter 30s linear infinite; } .o4 .sat { animation: counter 40s linear infinite reverse; }
@keyframes counter { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(-360deg); } }

/* levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.level { position: relative; padding: 26px; border-radius: var(--r); border: 2px solid var(--ink); background: #fff; box-shadow: 5px 6px 0 var(--ink); }
.level.done { background: var(--mint); }
.level.now { background: var(--pink); margin-bottom: 56px; }
.level.locked { background: rgba(255,255,255,.5); border-style: dashed; box-shadow: none; color: var(--soft); margin-bottom: 112px; }
.lvl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lvl { font-weight: 700; font-size: .95rem; padding: 2px 10px; border-radius: 4px; background: var(--ink); color: #fff; }
.locked .lvl { background: var(--soft); }
.state { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; }
.state svg { width: 18px; height: 18px; }
.locked .state svg { stroke: var(--soft); }
.level h3 { font-size: 1.45rem; }
.level p { font-size: 1rem; }
.done p, .now p { color: var(--ink); opacity: .8; }
.xp { margin-top: 18px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.7); border: 2px solid var(--ink); overflow: hidden; }
.locked .xp { border-color: var(--line); }
.xp span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, #4a4670 6px 12px); }

/* ticket */
.ticket { display: grid; grid-template-columns: 1fr 150px; max-width: 900px; margin: 0 auto; filter: drop-shadow(6px 7px 0 var(--ink)); }
.ticket-main, .ticket-stub { border: 2px solid var(--ink); position: relative; }
.ticket-main { padding: 50px 46px; border-right: 0; border-radius: var(--r) 0 0 var(--r); background: linear-gradient(135deg, var(--pink), var(--lilac) 55%, var(--sky)); }
.ticket-stub { border-left: 3px dashed var(--ink); border-radius: 0 var(--r) var(--r) 0; background: var(--butter); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 24px 0; font-family: 'Fredoka'; }
.ticket-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; letter-spacing: .2em; font-size: .85rem; }
.ticket-stub b { font-size: 2rem; }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; left: -14px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.ticket-stub::before { top: -14px; } .ticket-stub::after { bottom: -14px; }
.form { display: flex; gap: 10px; max-width: 480px; margin-top: 26px; }
.form input { flex: 1; min-width: 0; padding: 13px 18px; border-radius: var(--r-sm); border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 600; }
.form input::placeholder { color: #a5a2bd; }
.fine { font-size: .9rem; color: var(--ink); opacity: .7; margin-top: 16px; }

/* polaroids */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 22px; }
.polaroid { width: 200px; background: #fff; padding: 12px 12px 16px; border-radius: 3px; box-shadow: 0 14px 30px -12px rgba(45,42,74,.45); transform: rotate(var(--r)); transition: transform .25s; position: relative; }
.polaroid:nth-child(even) { margin-top: 30px; }
.polaroid::before { content: ''; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; transform: translateX(-50%) rotate(-4deg); background: rgba(255,233,166,.85); border: 1px solid rgba(45,42,74,.08); }
.polaroid:nth-child(3n+2)::before { background: rgba(255,196,220,.85); transform: translateX(-50%) rotate(5deg); }
.polaroid:nth-child(3n)::before { background: rgba(191,242,218,.85); }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.polaroid b { font-family: 'Fredoka'; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.polaroid figcaption > span { color: var(--pink-d); font-weight: 700; font-size: .85rem; }
.polaroid .links { display: flex; gap: 12px; justify-content: center; font-size: .8rem; color: var(--soft); margin-top: 4px; }
.polaroid .links a:hover { color: var(--lilac-d); }

/* footer */
.footer { padding: 30px 0; color: var(--soft); font-weight: 600; border-top: 2px dashed var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* reveal */
.reveal { opacity: 0; translate: 0 36px; transition: opacity .8s cubic-bezier(.2,.8,.2,1), translate .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 1000px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .tile-text { grid-column: span 2; grid-row: auto; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .tile-quote { grid-column: span 2; }
  .tile-orbit { grid-row: auto; }
  .nav-links { gap: 18px; }
}
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .hero-inner { padding-top: 110px; }
  .mosaic, .story-grid { grid-template-columns: 1fr; }
  .tile-text, .tile-stat.wide, .tile-quote { grid-column: auto; }
  .tile-stat, .tile-stat.wide { flex-direction: row; align-items: center; gap: 18px; }
  .tile-stat .ring, .tile-stat.wide .ring { width: 100px; }
  .tile-stat.wide .ring > span, .ring > span { font-size: 1.3rem; }
  .path-svg { display: none; }
  .quest-path { gap: 48px; }
  .stop, .stop.flip { grid-template-columns: 1fr; gap: 20px; }
  .stop.flip .viz { order: 0; }
  .stop.flip .stop-text { justify-self: start; text-align: left; }
  .num { font-size: 3rem; }
  .app { grid-template-columns: 1fr; gap: 0; }
  .phone-stage { position: relative; top: 0; padding: 0 0 20px; }
  .phone { width: 190px; height: 390px; border-radius: 30px; padding: 7px; transform: none; }
  .screen { border-radius: 23px; }
  .notch { top: 13px; width: 56px; height: 14px; }
  .feat { min-height: 0; padding: 26px 0 26px 20px; }
  .levels { grid-template-columns: 1fr; }
  .level.now, .level.locked { margin-bottom: 0; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { border-right: 2px solid var(--ink); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding: 36px 24px; }
  .ticket-stub { border-left: 2px solid var(--ink); border-top: 3px dashed var(--ink); border-radius: 0 0 var(--r) var(--r); flex-direction: row; padding: 14px 24px; }
  .ticket-stub span { writing-mode: horizontal-tb; transform: none; }
  .ticket-stub::before, .ticket-stub::after { top: -14px; bottom: auto; }
  .ticket-stub::before { left: -14px; } .ticket-stub::after { left: auto; right: -14px; }
  .form { flex-direction: column; }
  .polaroid { width: 150px; }
  .polaroid:nth-child(even) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
  .scribble path { stroke-dashoffset: 0; }
}
