/* WEB-04: the D1 homepage's styles, moved out of the page (CSP: no inline styles). */
/* WEB-03 shared core. Layout concept: every scene is a fixed-proportion "board" (like a store-art frame) fitted
   inside a centred <=1400px container; only skies and light run full-bleed. Art is placed in % of the board and
   sized in board units (cqw), so the composition never breaks, stretches or leaves gaps at any width. */
@font-face{font-family:"Fredoka";src:url(../assets/fonts/Fredoka-Variable.ttf) format("truetype");font-weight:300 700;font-display:swap}
@font-face{font-family:"Nunito";src:url(../assets/fonts/Nunito-Variable.ttf) format("truetype");font-weight:200 1000;font-display:swap}
:root{--display:"Fredoka",ui-rounded,"SF Pro Rounded",system-ui,sans-serif;--body:"Nunito",ui-rounded,system-ui,sans-serif;
  --ink:#1A0B3F;--maxw:1400px;--gut:clamp(16px,3vw,40px);--nav:64px}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font-family:var(--body);overflow-x:clip}
img{max-width:100%;height:auto;display:block}
figure{margin:0}
.board img{width:100%}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* scenes, skies, container, boards */
.scene{position:relative;overflow:clip;isolation:isolate}
.sky{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.sky>img,.sky>picture>img,.sky>.lay{position:absolute;left:0;top:-6%;width:100%;height:112%;object-fit:cover}
.sky::before,.sky::after{content:"";position:absolute;left:0;right:0;z-index:2;pointer-events:none}
.sky::before{top:0;height:var(--fade-t,12%);background:linear-gradient(180deg,var(--bg),transparent)}
.sky::after{bottom:0;height:var(--fade-b,16%);background:linear-gradient(0deg,var(--bg),transparent)}
.nofade-t>.sky::before,.nofade-b>.sky::after{display:none}
.wrap{position:relative;z-index:1;width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gut)}
.board{position:relative;margin-inline:auto;container-type:inline-size;aspect-ratio:var(--ar,1.6);
  width:min(100%,calc((var(--avh,100svh) - var(--chrome,0px)) * var(--ar,1.6)))}
.board>*,.board>picture>img{position:absolute}
.pin{position:relative}
.stage{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center;overflow:clip}
.stage>.wrap{display:flex;justify-content:center}
.pin>.sky{position:sticky;top:0;height:100vh;height:100svh;margin-bottom:-100vh;margin-bottom:-100svh}
.ani{will-change:transform,opacity}
.fill{position:absolute;inset:0}

/* the two-tone store-art headline: white (or ink) line + gold power line with an ink outline */
.hl{margin:0;font-family:var(--display);font-weight:700;letter-spacing:-.01em;line-height:.92;text-wrap:balance}
.hl .l1,.hl .l2{display:block}
.gold{background:linear-gradient(180deg,#FFF7C8 6%,#FFDD5E 40%,#FFB524 74%,#F09A16 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.stroke{-webkit-text-stroke:var(--sw,.11em) var(--ink);paint-order:stroke fill}
/* gold words: an ink underlay carries the outline, the gradient word sits on top (no inner-contour strokes) */
.g2{position:relative;display:block}
.g2>.gs{position:absolute;left:0;right:0;top:0;color:var(--ink);-webkit-text-stroke:calc(var(--sw,.1em) * 2) var(--ink);pointer-events:none}
.g2>.gold{position:relative;display:block}

/* the store badge: Apple's official badge, unmodified, linking to the App Store (WEB-08); 40px tall at least */
.badge{display:inline-block;line-height:0}
.badge img{display:block;width:auto;height:max(40px,3.2em)}
.facts{margin:0;font-weight:700;letter-spacing:.01em}
.facts span+span::before{content:"·";margin:0 .55em;opacity:.6}

/* nav (static, part of the hero) */
.nav{position:absolute;left:0;right:0;top:0;z-index:5;height:var(--nav);display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:600;font-size:20px;letter-spacing:-.01em;white-space:nowrap}
.brand img{width:34px;height:34px;border-radius:9px}
.nav .badge{font-size:12px}

/* lifted UI callouts, drawn like the app's cards */
.card{font-family:var(--display);color:#2A1B4A;background:linear-gradient(180deg,#FFFFFF,#F4F0FF);border:max(2px,.25cqw) solid #2A1B4A;
  border-radius:1.4cqw;box-shadow:0 .45cqw 0 #2A1B4A,0 2.4cqw 4cqw rgba(10,2,40,.45)}

/* particles: capped, transform/opacity only, paused offscreen */
.sparks{pointer-events:none}
.sparks i{position:absolute;width:calc(1.1cqw * var(--z));height:calc(1.1cqw * var(--z));margin:-.55cqw;opacity:0;
  background:radial-gradient(circle,#fff 0 18%,rgba(255,240,190,.9) 30%,rgba(255,214,110,0) 70%);border-radius:50%;
  animation:twinkle 4s ease-in-out infinite;animation-play-state:paused}
.sparks.star i{background:none}
.sparks.star i::before{content:"";position:absolute;inset:0;background:#FFF3C4;clip-path:polygon(50% 0,58% 42%,100% 50%,58% 58%,50% 100%,42% 58%,0 50%,42% 42%)}
.live .sparks i{animation-play-state:running}
@keyframes twinkle{0%,100%{opacity:0;transform:translate3d(0,0,0) scale(.4)}45%{opacity:1;transform:translate3d(0,-30%,0) scale(1)}70%{opacity:.7}}

/* hero entrance (wrapper-level CSS animation; scroll transforms live on inner/outer elements, never the same node) */
.js .enter{opacity:0}
.js.ready .enter{animation:enter var(--t,.9s) cubic-bezier(.2,.8,.2,1) var(--d,0s) both}
@keyframes enter{from{opacity:0;transform:translate3d(var(--ex,0),var(--ey,24px),0) scale(var(--es,1)) rotate(var(--er,0deg))}to{opacity:1;transform:none}}

/* intro overlay */
#intro{position:fixed;inset:0;z-index:100;display:grid;place-items:center;transition:opacity .4s ease}
#intro.out{opacity:0;pointer-events:none}
#intro .skip{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom,0px));font:700 14px/1 var(--body);
  padding:12px 18px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer;opacity:.8}
#intro .skip:focus-visible,.badge:focus-visible{outline:3px solid #FFD45C;outline-offset:3px}

/* reduced motion: everything rests in its designed final frame */
.rm .enter{opacity:1!important;animation:none!important}
.rm .sparks i{animation:none;opacity:.6;transform:none}
/* pinned scenes become one full-screen still at their designed moment */
.rm .pin{height:auto!important}
.rm .stage{position:relative;height:100vh;height:100svh}
.rm .pin>.sky{position:absolute;height:auto;margin:0;inset:0}
@media (prefers-reduced-motion:reduce){.enter{opacity:1!important;animation:none!important}}

/* D1 "Store art alive": the approved twilight store art, lit and moving. Single dark theme by design. */
:root{color-scheme:dark;--bg:#120638;--fg:#FFFFFF;--soft:#E9DEFF;--muted:#BDAEE6;--gold:#FFD45C;--ink:#1A0B3F}
body{background:var(--bg);color:var(--fg)}
.brand{color:#fff}

/* ---------- hero */
.hero{--ar:1.6;--chrome:calc(var(--nav) + 40px);padding-top:var(--nav);padding-bottom:28px}
.hero .copy{left:0;top:19%;width:46%}
.hero .hl .l1{font-size:4.5cqw;color:#fff;--sw:.12em;text-shadow:0 .5cqw 1.6cqw rgba(8,0,30,.55)}
.hero .hl .l2{font-size:8.6cqw;margin-top:.05em;--sw:.1em;filter:drop-shadow(0 .5cqw 0 #12072F) drop-shadow(0 1.2cqw 2cqw rgba(8,0,30,.6))}
.hero .sub{margin:2.2cqw 0 0;font-size:clamp(15px,1.75cqw,26px);font-weight:800;color:var(--soft);max-width:30ch}
.hero .cta{margin-top:2.6cqw;display:flex;flex-direction:column;align-items:flex-start;gap:1.4cqw}
.hero .badge{font-size:clamp(12px,1.15cqw,17px)}
.hero .facts{font-size:clamp(12px,1.05cqw,15px);color:var(--muted)}
.hero .queen{left:57%;top:2%;width:42cqw}
.hero .phone{left:49%;top:6%;width:30cqw}
.hero .arc{left:45%;top:1%;width:52cqw;aspect-ratio:16/9;overflow:hidden}
.hero .arc img{width:52cqw;max-width:none}
.hero .knight{left:40.5%;top:45%;width:21cqw}
.hero .win{left:70%;top:76%;width:17cqw}
.hero .sparks{left:45%;top:0;width:55%;height:100%}
.hero .q-in{--ex:4cqw;--ey:0;--es:.94;--d:.15s;--t:1.1s}
.hero .p-in{--ey:6cqw;--d:.05s;--er:3deg}
.hero .k-in{--ex:-8cqw;--ey:8cqw;--er:-14deg;--d:.45s;--t:.8s}
.hero .c-in{--ey:2cqw;--d:.1s}
.hero .w-in{--es:.6;--ey:0;--d:.85s;--t:.6s}
.arc .wipe{position:absolute;inset:0}
.js .arc .wipe{transform:translateX(-100%)}.js .arc .wipe img{transform:translateX(100%)}
.js.ready .arc .wipe{animation:wipeO 1.1s cubic-bezier(.5,0,.2,1) .5s both}.js.ready .arc .wipe img{animation:wipeI 1.1s cubic-bezier(.5,0,.2,1) .5s both}
@keyframes wipeO{from{transform:translateX(-100%)}to{transform:none}}@keyframes wipeI{from{transform:translateX(100%)}to{transform:none}}
.rm .arc .wipe,.rm .arc .wipe img{transform:none!important;animation:none!important}

/* ---------- battle (pinned) */
.battle{height:340vh}
.battle .board{--ar:1.6;--chrome:40px}
.battle .copy{left:0;top:22%;width:42%;height:60%}
.beat{position:absolute;left:0;top:0;width:100%}
.battle .hl .l1{font-size:3.6cqw;color:#fff;--sw:.12em}
.battle .hl .l2{font-size:6.6cqw;margin-top:.06em;--sw:.1em;filter:drop-shadow(0 .45cqw 0 #12072F)}
.battle .sub{margin:2cqw 0 0;font-size:clamp(15px,1.6cqw,24px);font-weight:800;color:var(--soft);max-width:28ch}
.battle .burst{left:51%;top:-14%;width:58cqw}
.battle .phone,.battle .phone2{left:57%;top:6%;width:27cqw}
.battle .imp{left:79%;top:14%;width:17cqw}
.battle .knight{left:43%;top:44%;width:17cqw}
.battle .timer{left:47%;top:68%;width:20cqw;padding:.9cqw 1.4cqw 1cqw;text-align:center}
.timer .t{font-size:5.4cqw;line-height:1;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.timer .lab{font:800 1cqw/1.2 var(--body);color:#7B71A3;text-transform:uppercase;letter-spacing:.08em}
.battle .ult{left:66%;top:84%;width:26cqw;padding:.9cqw 1.2cqw}
.ult .row{display:flex;justify-content:space-between;font:800 1.05cqw/1 var(--body);text-transform:uppercase;letter-spacing:.06em;color:#4A30C9}
.ult .bar{margin-top:.7cqw;height:1.4cqw;border-radius:1cqw;background:#EAE4FF;border:.2cqw solid #2A1B4A;overflow:hidden}
.ult .bar i{display:block;height:100%;width:100%;transform-origin:0 50%;background:linear-gradient(180deg,#FFE88A,#FFC93C 60%,#F2A91C)}
.ult .glowring{position:absolute;inset:-1.2cqw;border-radius:2cqw;box-shadow:0 0 3cqw 1cqw rgba(255,212,92,.85);opacity:0}
.battle .sky2{opacity:0}
.skyword{left:42%;top:2%;width:58%;text-align:center;font-family:var(--display);font-weight:700;font-size:8cqw;line-height:1;color:#fff;--sw:.12em;
  filter:drop-shadow(0 .6cqw 0 #12072F) drop-shadow(0 0 3cqw rgba(255,200,90,.8));white-space:nowrap}
.dmg{left:79%;top:24%;width:max-content;font-family:var(--display);font-weight:700;font-size:6cqw;line-height:1;--sw:.13em;filter:drop-shadow(0 .5cqw 0 #12072F)}
.battle .sparks{left:44%;top:0;width:56%;height:100%}

/* ---------- world */
.world{--ar:1.6;padding-block:40px 20px}
.world .board{--chrome:0px;width:100%}
.world .head{left:0;right:0;top:3%;text-align:center}
.world .hl .l1{font-size:4cqw;color:#fff;--sw:.12em}
.world .hl .l2{font-size:8.4cqw;margin-top:.04em;--sw:.1em;filter:drop-shadow(0 .5cqw 0 #12072F) drop-shadow(0 1cqw 2cqw rgba(8,0,30,.6))}
.world .sub{margin:1.4cqw auto 0;font-size:clamp(15px,1.6cqw,24px);font-weight:800;color:var(--soft);max-width:40ch}
.world .arcw{left:24%;top:31%;width:52cqw;aspect-ratio:2000/700;overflow:hidden}
.world .arcw img{width:52cqw;max-width:none}
.world .isle{opacity:.9}
.world .i1{left:5%;top:30%;width:11cqw}
.world .i2{left:82%;top:27%;width:13cqw}
.world .i3{left:70%;top:42%;width:8cqw}
.world .queen{left:31%;top:36%;width:38cqw}
.m{width:11cqw}
.m figcaption{position:absolute;left:50%;bottom:-2.6cqw;transform:translateX(-50%);white-space:nowrap;font:800 clamp(11px,1.05cqw,15px)/1 var(--body);color:var(--soft);letter-spacing:.02em}
.m img{width:100%}
.world .ma{left:4%;top:64%;width:13cqw}
.world .mb{left:17%;top:46%;width:10cqw}
.world .mc{left:73%;top:61%;width:13cqw}
.world .md{left:84%;top:46%;width:10cqw}
.world .me{left:22%;top:72%;width:8cqw}
.world .mf{left:63%;top:76%;width:8cqw}
.world .sparks{left:0;top:30%;width:100%;height:70%}

/* ---------- finale */
.fin{--ar:2.1;padding-block:30px 40px}
.fin .board{--chrome:0px;width:100%}
.fin .hl{left:0;right:0;top:4%;text-align:center}
.fin .hl .l1{font-size:3.4cqw;color:#fff;--sw:.12em}
.fin .hl .l2{font-size:6.8cqw;--sw:.1em;filter:drop-shadow(0 .45cqw 0 #12072F)}
.fin .cta{left:0;right:0;top:70%;display:flex;flex-direction:column;align-items:center;gap:1.2cqw}
.fin .badge{font-size:clamp(12px,1.05cqw,16px)}
.fin .facts{font-size:clamp(12px,.9cqw,15px);color:var(--muted)}
.fin .sq{left:80%;top:26%;width:11cqw}
.fin .kn{left:8%;top:18%;width:12cqw}
footer{position:relative;z-index:1;text-align:center;padding:12px 16px 28px;color:var(--muted);font-size:13px}
footer .legal{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 28px;margin:0 0 14px;font:700 15px/1.3 var(--body)}
footer .legal a{color:var(--soft);text-decoration:none;padding:10px 4px;border-bottom:2px solid transparent}
footer .legal a:hover,footer .legal a:focus-visible{color:var(--gold);border-bottom-color:var(--gold)}

/* ---------- portrait boards (phones, narrow tablets) */
@media (max-aspect-ratio:1/1) and (max-width:900px){
  :root{--nav:56px}
  .nav .badge{display:none}
  .hero{--ar:.62}
  .hero .copy{left:0;top:2%;width:100%;text-align:center}
  .hero .hl .l1{font-size:9.6cqw}
  .hero .hl .l2{font-size:16.6cqw}
  .hero .sub{margin:3.2cqw auto 0;font-size:clamp(15px,4.4cqw,20px)}
  .hero .cta{align-items:center;margin-top:4.4cqw;gap:3cqw}
  .hero .badge{font-size:clamp(11px,3.3cqw,15px)}
  .hero .facts{font-size:clamp(11px,3.1cqw,14px);text-align:center;max-width:none}
  .hero .queen{left:44%;top:42%;width:62cqw}
  .hero .phone{left:20%;top:45%;width:56cqw}
  .hero .arc{left:4%;top:42%;width:92cqw}
  .hero .arc img{width:92cqw}
  .hero .knight{left:-2%;top:70%;width:36cqw}
  .hero .win{left:58%;top:86%;width:38cqw}
  .hero .sparks{left:0;top:40%;width:100%;height:60%}

  .battle .board{--ar:.56;--chrome:24px}
  .battle .copy{left:0;top:1%;width:100%;height:27%;text-align:center}
  .battle .hl .l1{font-size:8cqw}
  .battle .hl .l2{font-size:13.4cqw}
  .battle .sub{margin:2.6cqw auto 0;font-size:clamp(14px,4cqw,18px)}
  .battle .burst{left:-18%;top:20%;width:136cqw}
  .battle .phone,.battle .phone2{left:22%;top:31%;width:56cqw}
  .battle .imp{left:62%;top:30%;width:36cqw}
  .battle .knight{left:0%;top:56%;width:36cqw}
  .battle .timer{left:5%;top:83%;width:42cqw;padding:1.6cqw 2cqw}
  .timer .t{font-size:11cqw}
  .timer .lab{font-size:2.5cqw}
  .battle .ult{left:51%;top:86%;width:47cqw;padding:2cqw}
  .ult .row{font-size:2.5cqw}
  .ult .bar{height:3cqw;margin-top:1.4cqw}
  .card{border-radius:3cqw;box-shadow:0 1cqw 0 #2A1B4A,0 4cqw 8cqw rgba(10,2,40,.45)}
  .skyword{left:0;top:46%;width:100%;font-size:15cqw}
  .dmg{left:58%;top:24%;font-size:13cqw}
  .battle .sparks{left:0;top:30%;width:100%;height:70%}

  .world{--ar:.53}
  .world .head{top:1%}
  .world .hl .l1{font-size:8.6cqw}
  .world .hl .l2{font-size:13.6cqw}
  .world .sub{font-size:clamp(14px,4cqw,18px);margin-top:2.6cqw;padding-inline:2cqw}
  .world .arcw{left:6%;top:33%;width:88cqw}
  .world .arcw img{width:88cqw}
  .world .i1{left:0;top:30%;width:22cqw}
  .world .i2{left:76%;top:29%;width:24cqw}
  .world .i3{left:62%;top:40%;width:14cqw}
  .world .queen{left:10%;top:36%;width:80cqw}
  .m figcaption{font-size:clamp(11px,3cqw,13px);bottom:-5cqw}
  .world .ma{left:0;top:66%;width:30cqw}
  .world .mb{left:6%;top:86%;width:22cqw}
  .world .mc{left:68%;top:66%;width:30cqw}
  .world .md{left:70%;top:86%;width:22cqw}
  .world .me,.world .mf{display:none}

  .fin{--ar:.8}
  .fin .hl{top:2%}
  .fin .hl .l1{font-size:8.6cqw}
  .fin .hl .l2{font-size:15cqw}
  .fin .cta{top:47%;gap:3cqw}
  .fin .badge{font-size:clamp(12px,3.4cqw,15px)}
  .fin .facts{font-size:clamp(11px,3.1cqw,14px)}
  .fin .sq{left:62%;top:68%;width:30cqw}
  .fin .kn{left:6%;top:66%;width:30cqw}
}

/* ---------- D1 Mobile Fix: phones only (<= 600 px). Same elements, rearranged so nothing covers the phone. */
.skyfix{display:none}
@media (max-width:600px){
  .skyfix{display:block;position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--bg)}
  .skyfix img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none}
  .skyfix .k1,.skyfix .k2{opacity:0}
  .scene>.sky,.pin>.sky{display:none}
  .scene{overflow-x:clip;overflow-y:visible}

  .hero{--ar:.38}
  .hero .board{width:100%}
  .hero .copy{top:1%}
  .hero .arc{left:8%;top:26.4%;width:84cqw}
  .hero .arc img{width:84cqw}
  .hero .knight{left:0;top:32.2%;width:34cqw}
  .hero .queen{left:40%;top:29.6%;width:60cqw}
  .hero .phone{left:22%;top:53.4%;width:56cqw}
  .hero .win{left:31%;top:92%;width:38cqw}
  .hero .sparks{left:0;top:24%;width:100%;height:28%}

  .battle .board{--ar:.44;--chrome:24px}
  .battle .copy{top:.5%;height:20%}
  .battle .timer{left:3%;top:20.6%;width:44cqw;padding:1.4cqw 2cqw}
  .battle .ult{left:51%;top:22.2%;width:46cqw;padding:2cqw}
  .skyword{left:0;top:21.4%;width:100%;font-size:13.4cqw}
  .battle .burst{left:-18%;top:20.6%;width:136cqw;max-width:none}
  .battle .phone,.battle .phone2{left:22%;top:29.4%;width:56cqw}
  .battle .knight{left:0;top:74.5%;width:33cqw}
  .battle .imp{left:66%;top:79%;width:32cqw}
  .dmg{left:35.5%;top:81%;font-size:10cqw}
  .battle .sparks{left:0;top:20%;width:100%;height:8%}

  .world{--ar:.5}
  .world .i1{left:5%;top:26.5%;width:26cqw}
  .world .i3{left:41%;top:27%;width:18cqw}
  .world .i2{left:75%;top:25.5%;width:17cqw}
  .world .arcw{left:6%;top:36%;width:88cqw}
  .world .arcw img{width:88cqw}
  .world .queen{left:18%;top:36.5%;width:64cqw}
  .m figcaption{bottom:-5cqw}
  .world .ma{left:14.2%;top:68%;width:25.6cqw}
  .world .mc{left:60.6%;top:68%;width:24.8cqw}
  .world .mb{left:15%;top:85%;width:24cqw}
  .world .md{left:61.4%;top:85%;width:23.1cqw}
  .world .sparks{left:0;top:24%;width:100%;height:10%}
}
@media (max-width:600px) and (max-height:700px){
  .battle .board{--ar:.47}
}
/* narrow phones: the copy runs taller (font minimums), so the art starts lower */
@media (max-width:380px){
  .battle .sub{font-size:clamp(12px,3.8cqw,16px)}
  .battle .timer{top:23%}.battle .ult{top:24.4%}.skyword{top:23.6%}
  .battle .phone,.battle .phone2{top:31.4%}.battle .burst{top:22.6%}
}
/* one continuous sky at every width: it crossfades between D1's three sky images by section, so no section has a seam */
.skyfix{display:block!important;position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--bg)}
.skyfix img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;max-width:none}
.skyfix .k1,.skyfix .k2{opacity:0}
.scene>.sky,.pin>.sky{display:none!important}
/* ---------- Full site: feature sections in the D1 / App Store language */
.feat{padding-block:clamp(56px,6vw,96px);scroll-margin-top:8px}
.feat .board{width:100%}
.feat .board>img,.feat .board>picture>img{max-width:none}
.feat .fh{position:relative;z-index:2;max-width:980px;margin:0 auto clamp(28px,3.4vw,52px);text-align:center;container-type:inline-size}
.feat .txt{position:relative;z-index:2;min-width:0;container-type:inline-size}
.feat .eyebrow{margin:0 0 .9em;font:800 clamp(12px,1vw,14px)/1.2 var(--body);letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.feat .hl{margin:0}
.feat .hl .l1{font-size:min(50px,max(28px,3.4vw),calc(180cqi / var(--n1,12)));color:#fff;--sw:.12em;text-shadow:0 4px 14px rgba(8,0,30,.5)}
.feat .hl .l2{font-size:min(104px,max(40px,7vw),calc(150cqi / var(--n,10)));margin-top:.04em;--sw:.1em}
.feat .hl .l2 .gs{filter:drop-shadow(0 .07em 0 #12072F) drop-shadow(0 .14em .2em rgba(8,0,30,.55))}
.feat .sub{margin:1.1em 0 0;font-size:clamp(16px,1.45vw,22px);font-weight:800;line-height:1.45;color:var(--soft);max-width:38ch}
.feat .fh .sub{margin-inline:auto;max-width:52ch}
.fl{list-style:none;margin:1.6em 0 0;padding:0;display:grid;gap:.85em;font-size:clamp(16px,1.25vw,19px);line-height:1.45;color:var(--soft);font-weight:600}
.fl li{position:relative;padding-left:1.6em}
.fl li::before{content:"";position:absolute;left:0;top:.2em;width:1em;height:1em;background:linear-gradient(180deg,#FFF3B8,#FFC93C 60%,#F2A91C);
  clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
.fl b{color:#fff;font-weight:800}
.feat .sub,.fl,.steps p,.steps h3,.fine,.feat .eyebrow,.tile span{text-shadow:0 1px 2px rgba(16,6,52,.85),0 0 18px rgba(16,6,52,.75),0 0 4px rgba(16,6,52,.6)}
.fl{color:#F6F0FF}
.steps p{color:#F6F0FF}
.fl.cols{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1em 2.4em;max-width:1180px;margin:clamp(28px,3vw,44px) auto 0}
.fine{margin:1.6em 0 0;font-size:13px;line-height:1.5;color:var(--muted);max-width:52ch}
.grid{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(28px,4.4vw,72px);align-items:center}
.rev .txt{order:2}
.rev .grid{grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr)}
.feat .rays{opacity:.9}
.feat .ph{filter:none}

/* how it works: three phones, three steps */
.how .board{--ar:1.75}
.how .r1{left:22%;top:-20%;width:56cqw}
.how .p1{left:2%;top:5%;width:24cqw}
.how .p2{left:38%;top:0;width:24cqw;z-index:2}
.how .p3{left:74%;top:5%;width:24cqw}
.how .k{left:26.4%;top:50%;width:11.6cqw}
.how .s{left:62.2%;top:54%;width:11.6cqw}
.how .sparks{left:0;top:0;width:100%;height:40%}
.steps{list-style:none;margin:clamp(20px,2.4vw,36px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,48px);text-align:center}
.steps .num{display:block;font:700 clamp(44px,4.6vw,72px)/1 var(--display);--sw:.12em}
.steps .num .gs{filter:drop-shadow(0 .06em 0 #12072F)}
.steps h3{margin:.3em 0 .35em;font:700 clamp(20px,1.9vw,28px)/1.15 var(--display);color:#fff}
.steps p{margin:0 auto;max-width:30ch;font-size:clamp(15px,1.2vw,18px);line-height:1.5;color:var(--soft);font-weight:600}



/* the duo template (timers, gear, quests, stats): a big front phone, a second phone, a character, an anchored chip */
.duo{--ar:.72}
.duo .r1{left:18%;top:-6%;width:84cqw}
.duo .front{left:39%;top:0;width:60cqw;z-index:2}
.duo .back{left:0;top:6%;width:42cqw}
.duo .pop{left:2%;top:59%;width:31cqw;z-index:3}
.duo .chip{left:37%;top:80%;width:62cqw;z-index:3}
.duo .item{left:4%;top:0;width:9cqw;z-index:3}
.duo .sparks{left:0;top:0;width:100%;height:24%}
.duo.mir .r1{left:-2%}
.duo.mir .front{left:2%}
.duo.mir .back{left:60%}
.duo.mir .pop{left:67%}
.duo.mir .chip{left:2%}
.duo.mir .item{left:87%}
/* everywhere: the iPad, the Lock Screen and its Live Activity */
.everywhere .board{--ar:2.1}
.everywhere .r1{left:30%;top:-30%;width:52cqw}
.everywhere .ipad{left:0;top:2%;width:52cqw}
.everywhere .p1{left:54%;top:0;width:22cqw;z-index:2}
.everywhere .chip{left:78.5%;top:64%;width:21cqw;z-index:3}
.everywhere .pop{left:82%;top:4%;width:14cqw}
.everywhere .sparks{left:0;top:0;width:100%;height:30%}

/* classes: the three heroes around the class pick and the Hero screen */
.classes .board{--ar:2.1}
.classes .r1{left:24%;top:-24%;width:56cqw}
.classes .monk{left:0;top:22%;width:16cqw}
.classes .knight{left:15.5%;top:26%;width:17cqw}
.classes .p1{left:33%;top:0;width:24cqw;z-index:2}
.classes .p2{left:58%;top:4%;width:24cqw}
.classes .ranger{left:82.5%;top:24%;width:17.5cqw}
.classes .sparks{left:0;top:0;width:100%;height:30%}




/* ADHD: a collage of lifted callouts with Squiq and Nova */
.adhd .board{--ar:.95}
.adhd .r1{left:2%;top:-4%;width:96cqw}
.adhd .c1{left:0;top:2%;width:62cqw;z-index:2}
.adhd .c2{left:36%;top:22%;width:64cqw;z-index:2}
.adhd .c3{left:0;top:42%;width:58cqw;z-index:2}
.adhd .c4{left:61%;top:44%;width:38cqw;z-index:2}
.adhd .sq{left:6%;top:68%;width:22cqw}
.adhd .kr{left:44%;top:66%;width:18cqw}
.adhd .sparks{left:0;top:60%;width:100%;height:40%}


/* private */
.priv .board{--ar:2.2}
.priv .r1{left:26%;top:-34%;width:48cqw}
.priv .kn{left:5%;top:10%;width:17cqw}
.priv .sq{left:78%;top:28%;width:15cqw}
.tiles{position:absolute;left:27%;top:6%;width:46%;display:grid;grid-template-columns:1fr 1fr;gap:1.6cqw}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.6cqw;min-height:16cqw;padding:1.4cqw;text-align:center;border-radius:2cqw;
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.06));box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 2cqw 4cqw rgba(8,0,30,.35)}
.tile img{width:4.6cqw;height:4.6cqw;object-fit:contain;padding:1cqw;border-radius:50%;background:#fff;box-shadow:0 0 2cqw rgba(255,212,92,.6);box-sizing:content-box}
.tile b{font:700 clamp(15px,2cqw,30px)/1.1 var(--display);color:#fff}
.tile span{font-size:clamp(12px,1.1cqw,16px);font-weight:700;color:var(--soft)}

/* FAQ */
.qa{position:relative;z-index:2;max-width:900px;margin:0 auto;display:grid;gap:12px}
.qa details{border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.05));box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.qa summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;font:700 clamp(17px,1.5vw,21px)/1.25 var(--display);color:#fff}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{content:"+";flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font:700 22px/1 var(--display);color:#2A1B4A;background:linear-gradient(180deg,#FFE88A,#FFC93C 60%,#F2A91C)}
.qa details[open] summary::after{content:"–"}
.qa summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:18px}
.qa p{margin:0;padding:0 24px 22px;font-size:clamp(15px,1.15vw,17px);line-height:1.6;color:var(--soft);font-weight:600;max-width:70ch}

/* nav: section links on wide screens, a menu elsewhere */
.navr{display:flex;align-items:center;gap:clamp(12px,1.6vw,26px)}
.links{display:flex;gap:clamp(12px,1.3vw,22px);font:700 15px/1 var(--body)}
.links a,.menu a{color:var(--soft);text-decoration:none}
.links a:hover,.menu a:hover{color:var(--gold)}
.links a:focus-visible,.menu a:focus-visible,.menu summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-radius:6px}
.menu{position:relative;display:none}
.menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;font:700 15px/1 var(--body);color:#fff;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.menu summary::-webkit-details-marker{display:none}
.menu nav{position:absolute;right:0;top:48px;z-index:20;display:grid;gap:2px;min-width:200px;padding:10px;border-radius:16px;background:#1E0C5C;box-shadow:0 20px 40px rgba(6,0,24,.6),inset 0 0 0 1px rgba(255,255,255,.15)}
.menu nav a{padding:10px 12px;border-radius:10px;font:700 16px/1.2 var(--body)}
@media (max-width:1199px){.links{display:none}.menu{display:block}}

@media (max-width:900px){
  .grid{grid-template-columns:1fr}
  .rev .txt{order:0}
  .rev .grid{grid-template-columns:1fr}
  .feat .txt{text-align:left}
}
/* phones: their own compositions */
@media (max-width:600px){
  .feat{padding-block:64px}
  .feat .fh{text-align:left}
  .feat .fh .sub{margin-inline:0}
  .feat .eyebrow{font-size:12px}
  .steps{grid-template-columns:1fr;text-align:left;gap:22px}
  .steps li{display:grid;grid-template-columns:auto 1fr;column-gap:16px;align-items:start}
  .steps .num{grid-row:span 2;font-size:52px}
  .steps h3{margin-top:4px}
  .steps p{margin:0}

  .how .board{--ar:.78}
  .how .r1{left:-10%;top:-6%;width:120cqw}
  .how .p1{left:0;top:6%;width:42cqw}
  .how .p2{left:29%;top:0;width:42cqw;z-index:3}
  .how .p3{left:58%;top:6%;width:42cqw}
  .how .k{left:10%;top:66%;width:27cqw}
  .how .s{left:58%;top:70%;width:26cqw}


  .duo{--ar:.55}
  .duo .r1{left:-10%;top:-4%;width:120cqw}
  .duo .front{left:36%;top:0;width:62cqw}
  .duo .back{left:0;top:5%;width:42cqw}
  .duo .pop{left:3%;top:50%;width:28cqw}
  .duo .chip{left:0;top:75%;width:100cqw}
  .duo .item{display:none}
  .duo.mir .front{left:2%}
  .duo.mir .back{left:58%}
  .duo.mir .pop{left:69%}
  .duo.mir .chip{left:0}

  .everywhere .board{--ar:.62}
  .everywhere .r1{left:-10%;top:-4%;width:120cqw}
  .everywhere .chip{left:0;top:0;width:100cqw}
  .everywhere .p1{left:22%;top:30%;width:56cqw}
  .everywhere .ipad{display:none}
  .everywhere .pop{left:0;top:72%;width:20cqw}

  .classes .board{--ar:.62}
  .classes .r1{left:-10%;top:-6%;width:120cqw}
  .classes .p1{left:0;top:0;width:49cqw}
  .classes .p2{left:51%;top:3%;width:49cqw}
  .classes .monk{left:1%;top:62%;width:29cqw}
  .classes .knight{left:34.5%;top:63%;width:30cqw}
  .classes .ranger{left:68%;top:62%;width:31cqw}

  .adhd .board{--ar:.72}
  .adhd .r1{left:-10%;top:-4%;width:120cqw}
  .adhd .c1{left:0;top:0;width:90cqw}
  .adhd .c2{left:10%;top:21%;width:90cqw}
  .adhd .c3{left:0;top:42%;width:90cqw}
  .adhd .c4{left:0;top:64%;width:46cqw}
  .adhd .sq{left:52%;top:65%;width:24cqw}
  .adhd .kr{left:79%;top:63%;width:19cqw}

  .priv .board{--ar:.7}
  .priv .r1{left:-10%;top:-4%;width:120cqw}
  .tiles{left:0;top:0;width:100%;gap:3cqw}
  .tile{min-height:30cqw;gap:1.6cqw;padding:3cqw;border-radius:5cqw}
  .tile img{width:9cqw;height:9cqw;padding:2cqw}
  .tile b{font-size:clamp(15px,5cqw,20px)}
  .tile span{font-size:clamp(12px,3.4cqw,14px)}
  .priv .kn{left:6%;top:54%;width:38cqw}
  .priv .sq{left:56%;top:60%;width:34cqw}

  .qa summary{padding:16px 18px}
  .qa p{padding:0 18px 18px}
}

/* captions sit 44 px under their art on desktop and tablet, 24 px on phones: the board's empty tail scales with its
   width, so each section subtracts its own tail (measured, as % of the board width) */
.how .steps{margin-top:calc(44px - 10%)}
.classes .fl.cols{margin-top:calc(44px - 5.98%)}
.everywhere .fl.cols{margin-top:calc(44px - 7.95%)}
.priv .fl.cols{margin-top:calc(44px - 9.17%)}
@media (max-width:600px){
  .how .steps{margin-top:calc(24px - 7.54%)}
  .classes .fl.cols{margin-top:calc(24px - 25.4%)}
  .everywhere .fl.cols{margin-top:calc(24px - 18.4%)}
  .priv .fl.cols{margin-top:calc(24px - 22.1%)}
  .grid{gap:16px}
}

/* lazy images: a tiny blurred preview until the real image is decoded, then a short sharpen-in */
img.lzi{background-size:100% 100%;background-repeat:no-repeat;filter:blur(10px);transition:filter .4s ease}
img.lzi.ok{filter:none}
.rm img.lzi{transition:none}
@media (prefers-reduced-motion:reduce){img.lzi{transition:none}}

#intro{background:radial-gradient(ellipse at 50% 55%,#3E1BA6 0%,#1E0C66 45%,#0B0428 100%);color:#fff}
#intro .em{width:min(34vmin,220px);animation:emIn 1s cubic-bezier(.2,.9,.2,1) both}
#intro .flare{position:absolute;width:min(90vmin,640px);aspect-ratio:1;background:radial-gradient(circle,rgba(255,226,140,.9),rgba(255,200,90,.25) 35%,rgba(255,200,90,0) 65%);
  animation:flare 1.1s ease-out .3s both}
#intro .word{position:absolute;top:calc(50% + min(20vmin,130px));font:700 clamp(22px,4vmin,34px)/1 var(--display);letter-spacing:.01em;animation:wordIn .6s ease-out .45s both}
@keyframes emIn{0%{opacity:0;transform:scale(.6) rotate(-20deg)}60%{opacity:1;transform:scale(1.06) rotate(4deg)}100%{opacity:1;transform:none}}
@keyframes flare{0%{opacity:0;transform:scale(.3)}40%{opacity:1}100%{opacity:0;transform:scale(1.6)}}
@keyframes wordIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* former style="" attributes */
.s26f51d.s26f51d{--d:.2s}
.s3784df.s3784df{--d:.3s}
.s1b6a32.s1b6a32{--n1:13}
.sd0339d.sd0339d{--n:10}
.scb36b6.scb36b6{--n1:8}
.s492634.s492634{--n:7}
.s8a9355.s8a9355{--n1:12}
.s61b94a.s61b94a{--n1:9}
.s19284e.s19284e{--n:13}
.s785867.s785867{--n1:15}
.sf68a3f.sf68a3f{--n:6}
.sf0beee.sf0beee{--n1:10}
.s4fb4e2.s4fb4e2{--n:15}
.s26947d.s26947d{--n1:19}
.s96e258.s96e258{--n:11}
.s0727c6.s0727c6{--n1:4}
.s67d151.s67d151{--n:9}
/* WEB-04: the footer's fine print (privacy promise, copyright and Apple's trademarks) */
footer .fine{margin:.7em auto 0;max-width:70ch;font-size:13px;line-height:1.5;text-wrap:balance}
/* the footer sits over the bright horizon: a dark band under it keeps its small text at AA */
footer{margin-top:-64px;padding-top:76px;background:linear-gradient(180deg,rgba(14,5,44,0),rgba(14,5,44,.5) 56px,rgba(14,5,44,.8) 116px);color:#D9CFF5}

/* WEB-05: AVIF with a WebP fallback. The <picture> wrapper adds no box of its own. */
picture{display:contents}
picture>source{display:none}
