/* ==========================================================================
   Focus Arc — website
   ========================================================================== */
:root {
    --sea: #47aba9;
    --sea-2: #3d9c9a;
    --sea-deep: #23605f;
    --grass: #62aa63;
    --grass-deep: #3f7d48;
    --cream: #fbf6ea;
    --paper: #ffffff;
    --ink: #1c2629;
    --ink-2: #3b4a4d;
    --muted: #6b7a7d;
    --line: rgba(28, 38, 41, .09);
    --sun: #ffb547;
    --orange: #ff7a3d;
    --berry: #e9546b;
    --violet: #8b6cf6;
    --sky: #4fa3ff;
    --night: #121a2b;
    --night-2: #1b2640;

    --r-lg: 32px;
    --r-md: 22px;
    --r-sm: 14px;
    --shadow-1: 0 1px 2px rgba(20, 40, 40, .06), 0 8px 24px -8px rgba(20, 40, 40, .12);
    --shadow-2: 0 2px 4px rgba(20, 40, 40, .06), 0 30px 60px -20px rgba(20, 50, 50, .28);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --f-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
    --f-body: 'Nunito', ui-rounded, system-ui, sans-serif;
    --f-pixel: 'Pixelify Sans', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-pixel); font-size: 15px; letter-spacing: .04em;
    color: var(--grass-deep);
    padding: 6px 12px 6px 10px; border-radius: 999px;
    background: rgba(98, 170, 99, .14);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; background: currentColor; box-shadow: 0 0 0 3px rgba(98,170,99,.2); }
.h2 {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.02em;
    margin-top: 18px; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; margin-top: 18px; text-wrap: pretty; }
.hl { position: relative; white-space: nowrap; }
.hl::after {
    content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1;
    background: var(--sun); border-radius: 6px; transform-origin: left; transform: scaleX(0);
    transition: transform 1s var(--ease-out) .35s;
}
.is-in .hl::after, .hl.is-in::after { transform: scaleX(1); }

/* ---------- sprites ---------- */
.spr {
    --n: 1; --fps: 10;
    display: block;
    aspect-ratio: var(--ar, 1);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: 0 0;
    image-rendering: pixelated;
    animation: spr calc(var(--n) * 1s / var(--fps)) steps(var(--n), jump-none) infinite;
}
.spr[style*="--n:1;"], .spr.still { animation: none; }
@keyframes spr { from { background-position-x: 0%; } to { background-position-x: 100%; } }
.px { image-rendering: pixelated; }

/* ---------- buttons ---------- */
.btn {
    --bg: var(--ink); --fg: #fff;
    position: relative; display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 24px 14px 20px; border-radius: 18px;
    background: var(--bg); color: var(--fg); text-decoration: none;
    font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.1;
    box-shadow: 0 6px 0 rgba(0,0,0,.22), 0 18px 30px -12px rgba(0,0,0,.4);
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
    will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,.22), 0 26px 40px -14px rgba(0,0,0,.45); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.22), 0 10px 20px -10px rgba(0,0,0,.4); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-family: var(--f-body); font-weight: 600; font-size: 11px; opacity: .7; letter-spacing: .02em; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }

/* ---------- nav ---------- */
.nav {
    position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
    width: min(1180px, 100% - 24px);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 10px 10px 14px; border-radius: 22px;
    transition: background .4s, box-shadow .4s, translate .5s var(--ease-out);
}
.nav.is-solid {
    background: rgba(251, 246, 234, .78);
    backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: 0 0 0 1px var(--line), 0 10px 30px -14px rgba(0,0,0,.25);
}
.nav.is-hidden { translate: -50% -130%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 20px; color: #fff; transition: color .4s; }
.nav.is-solid .brand { color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 10px -2px rgba(0,0,0,.3); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
    text-decoration: none; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.9);
    padding: 9px 14px; border-radius: 12px; transition: background .25s, color .4s;
}
.nav__links a:hover { background: rgba(255,255,255,.16); }
.nav.is-solid .nav__links a { color: var(--ink-2); }
.nav.is-solid .nav__links a:hover { background: rgba(28,38,41,.06); }
.nav .btn { padding: 10px 16px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.nav .btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: max(760px, 100svh);
    background:
        radial-gradient(120% 80% at 50% 0%, #5cc0bd 0%, rgba(92,192,189,0) 60%),
        var(--sea);
    color: #fff;
    border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
    display: flex; flex-direction: column; align-items: center;
}
/* subtle animated water shimmer */
.hero__water {
    position: absolute; inset: -50%; z-index: -2; opacity: .5;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.6), transparent 60%),
        radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(2px 2px at 90% 15%, rgba(255,255,255,.45), transparent 60%);
    background-size: 220px 180px, 300px 240px, 260px 200px, 340px 280px;
    animation: shimmer 18s linear infinite;
}
@keyframes shimmer { to { transform: translate(-220px, -90px); } }

.hero__copy {
    position: relative; z-index: 5; text-align: center;
    padding: clamp(120px, 17vh, 170px) 20px 0;
    display: flex; flex-direction: column; align-items: center;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-weight: 700; font-size: 14px;
}
.hero__badge b { font-family: var(--f-pixel); font-weight: 500; background: var(--sun); color: var(--ink); padding: 2px 9px; border-radius: 999px; font-size: 13px; }
.hero__title {
    font-family: var(--f-display); font-weight: 600;
    font-size: clamp(48px, 9vw, 120px); line-height: .92; letter-spacing: -.035em;
    margin-top: 22px; text-wrap: balance;
    text-shadow: 0 5px 0 var(--sea-deep), 0 20px 40px rgba(16, 70, 70, .35);
}
.hero__title .w { display: inline-block; }
.hero__title em { font-style: normal; color: #fff4d6; }
.hero__sub { margin-top: 22px; font-size: clamp(17px, 1.7vw, 21px); max-width: 33em; font-weight: 600; color: rgba(255,255,255,.92); text-wrap: balance; text-shadow: 0 1px 12px rgba(20,80,80,.35); }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

/* the world: an island built from tiles, positioned in tile units */
.world {
    --cols: 22; --rows: 10;
    --w: min(1500px, max(150vw, 860px));
    --t: calc(var(--w) / var(--cols));
    position: relative; width: var(--w); aspect-ratio: 22 / 10;
    margin-top: clamp(-30px, -2vw, 0px);
    flex: none;
}
@media (max-width: 700px) { .world { --w: 210vw; margin-top: 10px; } }
.world__layer { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.world__foam {
    background-repeat: no-repeat; background-size: 800% 100%;
    animation: foam 1.1s steps(8, jump-none) infinite;
    image-rendering: pixelated;
}
@keyframes foam { to { background-position-x: 100%; } }
.ent {
    position: absolute; left: calc(var(--x) * var(--t)); top: calc(var(--y) * var(--t));
    width: calc(var(--s) * var(--t));
}
.ent > .spr, .ent > img { width: 100%; }
.ent img { image-rendering: pixelated; }
.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 calc(var(--t) * .08); rotate: 1.2deg; } }
.ent.walker { animation: walk var(--dur, 14s) linear infinite; }
.ent.walker > .spr { animation-name: spr, face; animation-duration: calc(var(--n) * 1s / var(--fps)), var(--dur, 14s); animation-timing-function: steps(var(--n), jump-none), step-end; }
@keyframes walk { 0%, 100% { translate: 0 0; } 50% { translate: calc(var(--dx) * var(--t)) calc(var(--dy, 0) * var(--t)); } }
@keyframes face { 0% { scale: 1 1; } 50% { scale: -1 1; } }

.clouds { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.cloud {
    position: absolute; left: 0; width: var(--cw, 360px); aspect-ratio: 576/256;
    background-size: 100% 100%; image-rendering: pixelated; opacity: .95;
    animation: drift var(--d, 70s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(140vw); } }

.hero__scroll {
    position: absolute; z-index: 7; bottom: 22px; left: 50%; translate: -50% 0;
    display: grid; place-items: center; gap: 6px;
    font-family: var(--f-pixel); font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.85);
    text-decoration: none;
}
.hero__scroll i { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); position: relative; }
.hero__scroll i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { opacity: 0; translate: 0 -4px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 10px; } }

/* bubble above a character */
.bubble {
    position: absolute; left: 50%; bottom: 100%; translate: -50% 0;
    white-space: nowrap; font-weight: 800; font-size: clamp(11px, 1vw, 14px);
    background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 12px;
    box-shadow: 0 4px 0 rgba(0,0,0,.12);
    transition: opacity .4s, scale .5s var(--ease-spring);
    transform-origin: 50% 120%;
}
.bubble::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
.bubble.is-out { opacity: 0; scale: .6; }

/* ---------- intro animations ---------- */
.js .hero [data-intro] { opacity: 0; translate: 0 30px; filter: blur(8px); }
.js .hero.is-ready [data-intro] { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.js .hero .world { opacity: 0; translate: 0 120px; scale: .92; }
.js .hero.is-ready .world { opacity: 1; translate: 0 0; scale: 1; transition: opacity 1.2s var(--ease-out) .35s, translate 1.6s var(--ease-out) .35s, scale 1.6s var(--ease-out) .35s; }

/* ==========================================================================
   MARQUEE — heroes running by
   ========================================================================== */
.parade { position: relative; padding: 70px 0 40px; overflow: hidden; }
.parade__head { text-align: center; }
.parade__head p { font-family: var(--f-pixel); color: var(--muted); font-size: 16px; }
.parade__track {
    position: relative; margin-top: 18px; height: 180px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.parade__ground {
    position: absolute; left: 0; right: 0; bottom: 18px; height: 34px;
    background:
        repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 6px, transparent 6px 24px),
        linear-gradient(#7cc07a, #62aa63);
    border-radius: 999px;
    box-shadow: inset 0 4px 0 rgba(255,255,255,.3), inset 0 -6px 0 rgba(0,0,0,.12);
}
.parade__row { position: absolute; bottom: 0; left: 0; display: flex; gap: 46px; width: max-content; animation: parade 38s linear infinite; }
.parade__row:hover { animation-play-state: paused; }
@keyframes parade { to { transform: translateX(-50%); } }
.runner { position: relative; width: 120px; height: 170px; flex: none; }
.runner .spr { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: calc(var(--k, 1) * 190px); }
.runner .tag {
    position: absolute; left: 50%; top: 4px; translate: -50% 0; opacity: 0;
    font-family: var(--f-pixel); font-size: 13px; background: var(--ink); color: #fff;
    padding: 3px 8px; border-radius: 8px; white-space: nowrap;
    transition: opacity .25s, translate .35s var(--ease-spring);
}
.runner:hover .tag { opacity: 1; translate: -50% -6px; }

/* ==========================================================================
   STORY — sticky phone
   ========================================================================== */
.story { position: relative; padding: 80px 0 40px; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.story__stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.phone {
    position: relative; width: min(330px, 76vw); aspect-ratio: 1206 / 2622;
    border-radius: 54px; padding: 11px;
    background: linear-gradient(145deg, #2c3336, #0d1213);
    box-shadow: inset 0 0 0 2px #3c4548, inset 0 0 0 5px #111, var(--shadow-2), 0 60px 100px -40px rgba(30, 90, 90, .55);
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; }
.phone__screen img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; scale: 1.06; filter: blur(6px);
    transition: opacity .7s var(--ease-out), scale 1s var(--ease-out), filter .7s var(--ease-out);
}
.phone__screen img.is-on { opacity: 1; scale: 1; filter: blur(0); }
.phone__glow { position: absolute; inset: 10% -30%; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; background: var(--glow, var(--sea)); transition: background 1s; }
.phone__float {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 18px; padding: 10px 14px 10px 10px;
    box-shadow: var(--shadow-2); font-weight: 800; font-size: 14px; white-space: nowrap;
    opacity: 0; translate: 0 16px; scale: .9;
    transition: opacity .5s var(--ease-out), translate .7s var(--ease-spring), scale .7s var(--ease-spring);
}
.phone__float.is-on { opacity: 1; translate: 0 0; scale: 1; }
.phone__float small { display: block; font-weight: 700; font-size: 12px; color: var(--muted); }
.phone__float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); overflow: hidden; }
.phone__float .ico .spr { width: 64px; }
.pf-1 { left: -22%; top: 18%; }
.pf-2 { right: -24%; top: 52%; }
.pf-3 { left: -18%; bottom: 14%; }

.story__steps { padding: 18vh 0 22vh; }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s var(--ease-out); }
.step.is-active { opacity: 1; }
.step__num {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    font-family: var(--f-pixel); font-size: 20px; color: #fff; background: var(--c, var(--grass));
    box-shadow: 0 5px 0 rgba(0,0,0,.18);
}
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; margin-top: 20px; letter-spacing: -.015em; }
.step p { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.step ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink-2); }
.step li::before { content: ''; width: 18px; height: 18px; border-radius: 6px; flex: none; background: var(--c, var(--grass)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; }

@media (max-width: 900px) {
    .story__grid { grid-template-columns: 1fr; }
    .story__stage { height: auto; position: sticky; top: 70px; z-index: 2; padding: 10px 0 0; }
    .phone { width: 210px; border-radius: 36px; padding: 7px; }
    .phone__screen { border-radius: 30px; }
    .phone__float { display: none; }
    .story__steps { padding: 6vh 0 10vh; position: relative; z-index: 3; }
    .step { min-height: 0; padding: 28px 24px; margin-bottom: 40vh; border-radius: var(--r-md); background: rgba(255,255,255,.94); box-shadow: var(--shadow-2); backdrop-filter: blur(12px); opacity: 1; }
    .step:last-child { margin-bottom: 10vh; }
}

/* ==========================================================================
   TRY IT — interactive timer
   ========================================================================== */
.try { padding: 90px 0; }
.try__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.try__card {
    margin-top: 50px; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
    background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.try__scene {
    position: relative; min-height: 460px; overflow: hidden;
    background: var(--sea);
    display: grid; place-items: center;
}
.try__scene::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(60% 55% at 50% 58%, rgba(255,255,255,.18), transparent 70%);
}
.plate { --w: min(520px, 84vw); --t: calc(var(--w) / 7); position: relative; width: var(--w); aspect-ratio: 7 / 6; }
.try__hero { transition: scale .5s var(--ease-spring); transform-origin: 50% 65%; }
.try__hero .bubble { bottom: 64%; font-size: 14px; }
.try__coins { position: absolute; inset: 0; pointer-events: none; }
.coin { position: absolute; left: 50%; top: 50%; width: 30px; image-rendering: pixelated; }
.try__panel { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.chars { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
    font-weight: 800; font-size: 14px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line);
    transition: background .25s, box-shadow .25s, transform .3s var(--ease-spring);
}
.chip img { width: 30px; height: 30px; border-radius: 50%; background: #fff; image-rendering: pixelated; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.timer { position: relative; margin: 30px auto 0; width: min(280px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.timer .track { stroke: rgba(28,38,41,.07); }
.timer .prog { stroke: var(--grass); stroke-linecap: round; transition: stroke .4s; }
.timer__time { font-family: var(--f-display); font-weight: 600; font-size: clamp(56px, 6vw, 74px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.timer__label { position: absolute; top: 68%; font-family: var(--f-pixel); font-size: 14px; color: var(--muted); }
.try__actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.try__actions .btn { box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.btn--go { --bg: var(--grass); }
.btn--soft { --bg: var(--cream); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line) !important; }
.try__note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; font-weight: 700; }
.try__earned { display: flex; justify-content: center; gap: 22px; margin-top: 18px; font-weight: 800; }
.try__earned span { display: inline-flex; align-items: center; gap: 6px; }
.try__earned img { width: 20px; image-rendering: pixelated; }
@media (max-width: 900px) {
    .try__card { grid-template-columns: 1fr; }
    .try__scene { min-height: 340px; }
}

/* ==========================================================================
   DEEP FOCUS — night section
   ========================================================================== */
.deep {
    position: relative; overflow: hidden; isolation: isolate;
    margin: 40px clamp(0px, 1.6vw, 24px); border-radius: clamp(28px, 4vw, 56px);
    background: radial-gradient(90% 70% at 70% 20%, #2a3a62 0%, var(--night) 65%);
    color: #eef2ff; padding: clamp(80px, 11vw, 140px) 0;
}
.deep .eyebrow { color: #ffd37a; background: rgba(255, 211, 122, .12); }
.deep .eyebrow::before { box-shadow: 0 0 0 3px rgba(255,211,122,.2); }
.deep .lead { color: rgba(238,242,255,.72); }
.stars { position: absolute; inset: 0; z-index: -1; }
.star { position: absolute; width: 3px; height: 3px; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle var(--t, 3s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 50% { opacity: .2; scale: .6; } }
.deep__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.apps {
    position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px);
    padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg);
    background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.app {
    position: relative; aspect-ratio: 1; border-radius: 24%;
    display: grid; place-items: center;
    background: var(--a); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18);
    transition: filter .6s, scale .6s var(--ease-spring), opacity .6s;
}
.app svg { width: 46%; height: 46%; color: #fff; }
.app::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: rgba(18, 26, 43, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd37a'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.5 8 11 4.6-1.5 8-6 8-11V5l-8-3Zm-1 13.6-3.3-3.3 1.4-1.4 1.9 1.9 4.6-4.6 1.4 1.4-6 6Z'/%3E%3C/svg%3E") center/44% no-repeat;
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; scale: 1.3; transition: opacity .5s var(--ease-out), scale .6s var(--ease-spring);
}
.apps.is-locked .app { filter: grayscale(.85) brightness(.7); scale: .94; }
.apps.is-locked .app::after { opacity: 1; scale: 1; }
.apps.is-locked .app.ok { filter: none; scale: 1; }
.apps.is-locked .app.ok::after { opacity: 0; }
.app.ok { --a: linear-gradient(145deg, #7ad07c, #3f9b55); }
.apps .app { transition-delay: calc(var(--i) * 70ms); }
.apps .app::after { transition-delay: calc(var(--i) * 70ms); }
.apps__status {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 6px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.07);
    font-weight: 800;
}
.apps__status small { display: block; color: rgba(238,242,255,.6); font-weight: 700; font-size: 13px; }
.switch { width: 56px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; transition: background .4s; flex: none; }
.switch::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: translate .5s var(--ease-spring); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.apps.is-locked .switch { background: #ffb547; }
.apps.is-locked .switch::after { translate: 24px 0; }
.deep__panda { position: absolute; right: 8px; top: -112px; width: 170px; pointer-events: none; }
.deep__list { margin-top: 30px; display: grid; gap: 14px; }
.deep__list div { display: flex; gap: 14px; align-items: flex-start; }
.deep__list b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.deep__list span { color: rgba(238,242,255,.66); }
.deep__list i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,211,122,.14); color: #ffd37a; }
.deep__list svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .deep__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   VILLAGE — scroll scrubbed growth
   ========================================================================== */
.village { position: relative; height: 340vh; }
.village__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.village__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.village__stats { display: flex; gap: 10px; }
.stat {
    min-width: 116px; padding: 12px 16px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-1);
}
.stat b { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 600; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat b img { width: 22px; image-rendering: pixelated; }
.stat small { font-family: var(--f-pixel); color: var(--muted); font-size: 13px; }
.village__world-wrap { position: relative; margin-top: 2vh; display: grid; place-items: center; }
.village__world-wrap::before {
    content: ''; position: absolute; inset: 4% 3% 10%; border-radius: 48px; z-index: -1;
    background: var(--sea);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 40px 80px -40px rgba(30,100,100,.6);
}
.vworld {
    --cols: 16; --rows: 8;
    --w: min(1100px, 100vw - 30px, 115vh);
    --t: calc(var(--w) / var(--cols));
    position: relative; width: var(--w); aspect-ratio: 16 / 8;
}
.slot { position: absolute; left: calc(var(--x) * var(--t)); top: calc(var(--y) * var(--t)); width: calc(var(--s) * var(--t)); }
.slot img { position: absolute; left: 0; top: 0; width: 100%; image-rendering: pixelated; opacity: 0; transform-origin: 50% 100%; }
.slot img.is-on { opacity: 1; animation: pop .6s var(--ease-spring); }
.slot .dust { position: absolute; left: 50%; bottom: 0; width: 130%; translate: -50% 20%; opacity: 0; pointer-events: none; }
@keyframes pop { 0% { scale: .7 .5; } 60% { scale: 1.06 1.08; } 100% { scale: 1; } }
.appear { opacity: 0; scale: .4; transition: opacity .5s, scale .6s var(--ease-spring); transform-origin: 50% 100%; }
.appear.is-on { opacity: 1; scale: 1; }
.village__bar { margin-top: 2vh; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; font-family: var(--f-pixel); color: var(--muted); }
.village__bar .bar { height: 14px; border-radius: 999px; background: rgba(28,38,41,.07); overflow: hidden; box-shadow: inset 0 2px 0 rgba(0,0,0,.05); }
.village__bar .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--grass), #a3d86a); border-radius: inherit; }
.village__phase { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 18px; min-width: 9em; text-align: right; }
@media (max-width: 700px) {
    .village__stats .stat { min-width: 0; padding: 10px 12px; }
    .stat b { font-size: 22px; }
}

/* ==========================================================================
   HEROES — collection
   ========================================================================== */
.heroes { padding: 110px 0 60px; }
.heroes__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, color .25s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.roster { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card {
    --tint: #eef6ef; --rc: var(--grass-deep);
    position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--paper);
    box-shadow: var(--shadow-1); transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out), opacity .4s;
    transform-style: preserve-3d;
}
.card[data-r="rare"] { --tint: #e7f1ff; --rc: #2f74d0; }
.card[data-r="epic"] { --tint: #f1eaff; --rc: #7a4fe0; }
.card[data-r="legendary"] { --tint: #fff2dc; --rc: #d9861a; }
.card[data-r="special"] { --tint: #e3f6f3; --rc: #1f8b84; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.card.is-hidden { display: none; }
.card__stage { position: relative; height: 170px; background: var(--tint); overflow: hidden; }
.card__stage::after { content: ''; position: absolute; left: 50%; bottom: 22px; width: 90px; height: 16px; translate: -50% 0; background: rgba(0,0,0,.1); border-radius: 50%; filter: blur(2px); }
.card__stage .spr { position: absolute; left: 50%; bottom: -8px; translate: -50% 0; width: calc(var(--k, 1) * 210px); z-index: 1; }
.card__stage .spr.run { display: none; }
.card:hover .card__stage .spr.idle { display: none; }
.card:hover .card__stage .spr.run { display: block; }
.card__body { padding: 14px 16px 16px; }
.card__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 21px; }
.rar { font-family: var(--f-pixel); font-size: 12px; color: var(--rc); background: var(--tint); padding: 3px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: .03em; }
.card__how { margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 700; }
.card[data-r="legendary"] .card__stage::before {
    content: ''; position: absolute; inset: -50%; z-index: 0;
    background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255,200,90,.35) 30deg, transparent 40deg 80deg, rgba(255,200,90,.3) 90deg, transparent 100deg 140deg, rgba(255,200,90,.35) 150deg, transparent 160deg 200deg, rgba(255,200,90,.3) 210deg, transparent 220deg 260deg, rgba(255,200,90,.35) 270deg, transparent 280deg 320deg, rgba(255,200,90,.3) 330deg, transparent 340deg);
    animation: spin 18s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

/* ==========================================================================
   BENTO
   ========================================================================== */
.bento-sec { padding: 90px 0 110px; }
.bento { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile {
    position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1);
    padding: 28px; display: flex; flex-direction: column;
}
.tile h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.tile p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.t-watch { grid-column: span 2; grid-row: span 2; background: linear-gradient(170deg, #1d2a2d, #0d1415); color: #fff; }
.t-watch p { color: rgba(255,255,255,.7); }
.t-live { grid-column: span 4; background: linear-gradient(135deg, #ffe8c7, #ffd6e1 60%, #e4dcff); }
.t-streak { grid-column: span 2; background: linear-gradient(160deg, #ff9a4d, #ff6a3d); color: #fff; }
.t-streak p { color: rgba(255,255,255,.85); }
.t-potion { grid-column: span 2; }
.t-sync { grid-column: span 3; }
.t-quests { grid-column: span 3; background: #eaf5ff; }
@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .t-watch, .t-live, .t-streak, .t-potion, .t-sync, .t-quests { grid-column: span 2; grid-row: auto; }
}
.watch {
    margin: auto auto 0; margin-top: 28px; width: 190px; aspect-ratio: 416 / 496; padding: 12px; border-radius: 52px;
    background: linear-gradient(145deg, #3a4245, #121718); box-shadow: inset 0 0 0 2px #4a5356, 0 30px 50px -20px #000;
    position: relative;
}
.watch::before, .watch::after { content: ''; position: absolute; left: 22%; right: 22%; height: 40px; background: #20282a; z-index: -1; border-radius: 16px; }
.watch::before { top: -32px; } .watch::after { bottom: -32px; }
.watch img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }
.watch i { position: absolute; right: -9px; top: 26%; width: 10px; height: 30px; border-radius: 4px; background: #4a5356; }
.lock {
    margin-top: 22px; align-self: center; width: min(460px, 100%);
    padding: 16px 18px; border-radius: 26px; background: rgba(30, 30, 34, .78); color: #fff;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
    box-shadow: 0 20px 40px -18px rgba(0,0,0,.5);
}
.lock__av { width: 54px; height: 54px; border-radius: 16px; background: #2d3a3c; overflow: hidden; display: grid; place-items: center; }
.lock__av img { width: 80%; image-rendering: pixelated; }
.lock b { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.lock small { display: block; color: rgba(255,255,255,.6); font-weight: 700; font-size: 13px; }
.lock__time { font-family: var(--f-display); font-weight: 600; font-size: 34px; color: #7ee08a; font-variant-numeric: tabular-nums; }
.lock__bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.lock__bar i { display: block; height: 100%; width: 40%; background: #7ee08a; border-radius: inherit; transition: width 1s linear; }
.island-pill { margin: 0 auto 4px; width: 126px; height: 36px; border-radius: 99px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 6px; color: #7ee08a; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; transition: width .7s var(--ease-spring); }
.island-pill span:first-child { width: 26px; height: 26px; border-radius: 50%; background: #233; overflow: hidden; display: grid; place-items: center; }
.island-pill img { width: 90%; image-rendering: pixelated; }
.flame { font-family: var(--f-display); font-weight: 600; font-size: 88px; line-height: 1; margin-top: auto; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.flame svg { width: 64px; height: 64px; animation: flicker 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 50% { scale: 1.06 .94; rotate: -3deg; } }
.days { display: flex; gap: 6px; margin-top: 14px; }
.days span { flex: 1; height: 8px; border-radius: 9px; background: rgba(255,255,255,.3); }
.days span.on { background: #fff; }
.potions { display: flex; gap: 6px; margin-top: auto; padding-top: 20px; justify-content: center; }
.potions img { width: 74px; image-rendering: pixelated; animation: float 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes float { 50% { translate: 0 -10px; rotate: -4deg; } }
.devices { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; }
.dev { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--cream); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.dev svg { width: 26px; height: 26px; }
.sync-line { flex: 1; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--sea) 0 10px, transparent 10px 18px); background-size: 36px 4px; animation: dash .8s linear infinite; }
@keyframes dash { to { background-position: 36px 0; } }
.qlist { margin-top: 18px; display: grid; gap: 10px; }
.q { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: #fff; padding: 10px 14px 10px 10px; border-radius: 16px; box-shadow: var(--shadow-1); }
.q img { width: 40px; height: 40px; border-radius: 12px; background: var(--cream); image-rendering: pixelated; }
.q b { font-weight: 800; font-size: 15px; display: block; }
.q .qb { height: 6px; border-radius: 9px; background: rgba(0,0,0,.07); margin-top: 6px; overflow: hidden; }
.q .qb i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sky); transition: width 1.4s var(--ease-out); }
.tile.is-in .q .qb i { width: var(--w); }
.q small { font-family: var(--f-pixel); color: var(--muted); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { padding: 30px 0 110px; overflow: hidden; }
.shots {
    margin-top: 40px; display: flex; gap: 22px; padding: 10px max(20px, calc((100vw - 1180px) / 2)) 40px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.shots::-webkit-scrollbar { display: none; }
.shots.is-drag { cursor: grabbing; scroll-snap-type: none; }
.shot { flex: none; width: 250px; scroll-snap-align: center; text-align: center; }
.shot .phone { width: 100%; border-radius: 42px; padding: 8px; transition: transform .6s var(--ease-spring); }
.shot .phone__screen { border-radius: 35px; }
.shot .phone__screen img { opacity: 1; scale: 1; filter: none; pointer-events: none; }
.shot:hover .phone { transform: translateY(-10px) rotate(-1.5deg); }
.shot p { margin-top: 18px; font-family: var(--f-display); font-weight: 600; font-size: 18px; }

/* ==========================================================================
   CTA + FOOTER
   ========================================================================== */
.cta {
    position: relative; overflow: hidden; isolation: isolate;
    margin: 0 clamp(0px, 1.6vw, 24px); border-radius: clamp(28px, 4vw, 56px);
    background: linear-gradient(180deg, #ffcf8a 0%, #ff9f6b 45%, #f07b7b 100%);
    color: #3a1f12; text-align: center; padding: clamp(90px, 12vw, 150px) 20px 0;
}
.cta__sun { position: absolute; left: 50%; top: 52%; width: 520px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, #fff3c4 0 34%, rgba(255, 236, 170, .5) 35% 50%, transparent 70%); animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { scale: 1.06; } }
.cta h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(42px, 7vw, 92px); line-height: .95; letter-spacing: -.03em; text-wrap: balance; }
.cta p { margin: 18px auto 0; font-size: 19px; font-weight: 700; max-width: 30em; color: rgba(58,31,18,.8); }
.cta .btn { margin-top: 30px; }
.cta__ground { position: relative; margin-top: 70px; height: 180px; }
.cta__ground::before { content: ''; position: absolute; left: -5%; right: -5%; bottom: -60px; height: 160px; border-radius: 50% 50% 0 0 / 70% 70% 0 0; background: linear-gradient(#5fa15e, #3f7d48); box-shadow: inset 0 8px 0 rgba(255,255,255,.18); }
.cta__ground .spr { position: absolute; bottom: 30px; }
.foot { padding: 50px 0 60px; }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot small { display: block; margin-top: 26px; color: var(--muted); font-weight: 600; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js [data-reveal="scale"] { translate: 0 0; scale: .92; transition-property: opacity, scale; }
.js [data-reveal="scale"].is-in { scale: 1; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
    .cloud, .parade__row { animation: none !important; }
}

@media (max-width: 700px) {
    .cta__ground { height: 130px; }
    .cta__ground .spr { scale: .6; transform-origin: 50% 100%; }
    .hero__title { font-size: clamp(44px, 12.5vw, 60px); }
    .hero__copy { padding-top: 104px; }
}
