/* Home route — colours follow the app (Theme.swift Palette, dark | light). */
:root[data-theme]{background:var(--h-bg);color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
:root[data-theme]{--h-bg:#f4f4ed;--h-panel:#fffef9;--h-panel2:#eef3ea;--h-ink:#193b3c;--h-muted:#4f6a69;--h-line:#d5dfd6;--h-cta:#1f7f6f;--h-cta-ink:#fff;--h-cta-depth:#145c50;--h-opt:#fffef9;--h-opt-ink:#193b3c;--h-opt-sub:#566b69;--h-opt-depth:#d3dacd;--h-good:#14634f;--h-good-bg:#dcf4e8;--h-bad:#a53f27;--h-bad-bg:#fbe4dc;--h-thai:#a04f1f;--h-gold:#88600b;--h-blue:#246b92;--h-off:#dfe6dd;--h-off-ink:#5c706b;--h-header:#f4f4edeb;--h-shadow:#163d3a26;color-scheme:light}
:root[data-theme=dark]{--h-bg:#143238;--h-panel:#1d4246;--h-panel2:#18393e;--h-ink:#f2f5ef;--h-muted:#b4cbca;--h-line:#3b6264;--h-cta:#a0e8d2;--h-cta-ink:#143c36;--h-cta-depth:#56a891;--h-opt:#fff1d9;--h-opt-ink:#1c3b3d;--h-opt-sub:#4f625b;--h-opt-depth:#c9b796;--h-good:#a9edcc;--h-good-bg:#255850;--h-bad:#ffb49c;--h-bad-bg:#5a3a38;--h-thai:#f6b985;--h-gold:#ffd34d;--h-blue:#7fd8ff;--h-off:#2b5052;--h-off-ink:#a3bebc;--h-header:#143238eb;--h-shadow:#0007;color-scheme:dark}
:root.theme-fade body,:root.theme-fade body *{transition:background-color .4s,color .4s,border-color .4s!important}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}

/* page chrome on the home */
:root[data-theme] body{background:var(--h-bg);color:var(--h-ink)}
:root[data-theme] #header{background:var(--h-header);border-bottom-color:color-mix(in srgb,var(--h-ink) 10%,transparent)}
:root[data-theme] #header .brand{color:var(--h-ink)}
:root[data-theme] .nav nav a,:root[data-theme] .language-toggle,:root[data-theme] .menu-toggle{color:var(--h-ink)}
:root[data-theme] .header-cta{background:var(--h-cta);color:var(--h-cta-ink);box-shadow:0 3px 0 var(--h-cta-depth)}
:root[data-theme] #header.menu-open .nav nav{background:var(--h-bg)}
:root[data-theme] #header.menu-open .nav nav a{color:var(--h-ink)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:none;border:0;color:var(--h-ink,#245b54);cursor:pointer;flex:none;position:relative;overflow:hidden}
.theme-toggle svg{position:absolute;width:22px;height:22px;transition:transform .5s cubic-bezier(.3,1.4,.5,1),opacity .3s}
.theme-toggle .moon{transform:translateY(130%) rotate(-60deg);opacity:0}
:root[data-theme=dark] .theme-toggle .sun{transform:translateY(-130%) rotate(90deg);opacity:0}
:root[data-theme=dark] .theme-toggle .moon{transform:none;opacity:1}
.theme-toggle:hover{background:color-mix(in srgb,var(--h-ink) 8%,transparent)}
:root[data-theme] #footer{font-size:13px}
:root[data-theme] .footer-links{font-size:13px}
:root[data-theme] .footer-links a,:root[data-theme] .footer-brand p{opacity:.9}
:root[data-theme] .footer-brand small{font-size:12px;opacity:.78}
:root[data-theme] .footer-bottom,:root[data-theme] .footer-bottom button{font-size:12px}
:root[data-theme] .footer-links a{display:inline-flex;align-items:center;min-height:44px}

/* hero */
.home-hero{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:72px;align-items:center;padding:48px 0 72px}
.hero-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:6px 14px 6px 6px;border-radius:99px;background:var(--h-panel);border:1px solid var(--h-line);font-size:14px;font-weight:600;color:var(--h-muted)}
.hero-kicker img{border-radius:50%}
.home-hero h1{font-size:clamp(40px,5vw,72px);letter-spacing:-.035em;color:var(--h-ink);max-width:620px}
.hero-desc{font-size:19px;line-height:1.55;color:var(--h-muted);margin:20px 0 30px;max-width:520px}
.hero-actions,.final-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.dl-button{display:inline-flex;align-items:center;gap:14px;min-height:64px;padding:10px 26px 10px 20px;border-radius:18px;background:var(--h-cta);color:var(--h-cta-ink);text-decoration:none;box-shadow:0 5px 0 var(--h-cta-depth),0 14px 30px -10px var(--h-cta-depth);transition:transform .12s,box-shadow .12s;position:relative;overflow:hidden}
.dl-button svg{width:30px;height:30px;flex:none}
.dl-button span{display:flex;flex-direction:column;line-height:1.2;text-align:left}
.dl-button strong{font-family:Outfit,DM,sans-serif;font-size:19px;letter-spacing:-.01em}
.dl-button small{font-size:13px}
.dl-button:hover{transform:translateY(-1px)}
.dl-button:active{transform:translateY(4px);box-shadow:0 1px 0 var(--h-cta-depth)}
.dl-button:after{content:"";position:absolute;inset:-20% auto -20% -40%;width:30%;background:linear-gradient(90deg,#fff0,#ffffff55,#fff0);transform:skewX(-24deg);animation:dl-sweep 3.6s ease-in-out 1.5s infinite}
@keyframes dl-sweep{0%{left:-40%}35%,100%{left:130%}}
.dl-android{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:8px 16px;border-radius:14px;border:1.5px solid var(--h-line);background:var(--h-panel);color:var(--h-ink);font-size:14px;font-weight:600;cursor:pointer}
.dl-android svg{width:20px;height:22px}
.hero-points{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:10px;font-size:15px;color:var(--h-ink)}
.hero-points li{display:flex;gap:10px;align-items:center}
.hero-points svg{width:20px;height:20px;color:var(--h-cta);flex:none;stroke-width:2.4}
:root[data-theme=dark] .hero-points svg{color:var(--h-good)}

/* the device / stage */
.device{position:relative;justify-self:center;width:100%;max-width:440px;padding:12px;border-radius:52px;background:#0b2023;box-shadow:0 0 0 1px #ffffff14 inset,0 40px 80px -30px var(--h-shadow),0 18px 40px -20px #0006}
.route-stage{position:relative;height:min(660px,calc(100svh - 92px));min-height:500px;border-radius:40px;overflow:hidden;overflow:clip;background:#1b4a4a url('/assets/route/route-bg.webp') center top/100% auto;isolation:isolate;font-family:DM,system-ui,sans-serif;color:#f2f5ef;-webkit-tap-highlight-color:transparent}
.route-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(#0b2a2e99,#0b2a2e00 22%,#0b2a2e00 80%,#0b2a2e66);z-index:0;pointer-events:none}
.route-top{position:absolute;inset:0 0 auto;z-index:6;display:flex;align-items:center;gap:8px;padding:14px 14px 10px;background:linear-gradient(#0d2c30e6,#0d2c3000)}
.route-unit{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.route-unit img{border-radius:50%;border:2px solid #a0e8d2;flex:none}
.route-unit span{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.route-unit small{font-size:12px;color:#c7dedb;font-weight:600}
.route-unit strong{font-family:Outfit,DM,sans-serif;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xp-pill{display:inline-flex;align-items:center;gap:4px;padding:6px 11px;border-radius:99px;background:#0d2c30cc;border:1px solid #ffd34d55;color:#ffe08a;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;flex:none}
.xp-pill svg{width:15px;height:15px;color:#ffd34d}
.xp-pill.bump{animation:xp-bump .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes xp-bump{40%{transform:scale(1.22)}}
.route-sound{width:44px;height:44px;border-radius:50%;border:0;background:#0d2c30aa;color:#f2f5ef;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.route-sound svg{width:21px;height:21px}
.route-landmark{position:absolute;right:-26px;top:58px;width:170px;padding:0;border:0;background:none;z-index:2;cursor:pointer;filter:drop-shadow(0 10px 8px #04191c66);transition:transform .2s cubic-bezier(.3,1.5,.5,1)}
.route-landmark img{display:block;width:100%;height:auto;pointer-events:none}
.route-landmark:hover{transform:translateY(-3px) scale(1.03)}
.route-landmark.tap{animation:tap .32s}
.route-landmark:focus-visible{outline:3px solid #ffd34d;outline-offset:-6px;border-radius:16px}
.peek.temple-card{background:#3b8fc4;color:#fff;box-shadow:0 4px 0 #1c4c72,0 14px 22px #0006}
.peek.temple-card:before{border-bottom-color:#3b8fc4}
.peek.temple-card .peek-start{box-shadow:0 4px 0 #1c4c72;color:#0b2330}
.peek.temple-card .peek-start:before{background:linear-gradient(90deg,#3b8fc400,#3b8fc459,#3b8fc400)}
.temple-thai{margin:4px 0 0;font-size:14px;font-weight:600}
.temple-thai span[lang]{font-family:Thai,sans-serif;font-size:20px;margin-right:6px}

/* Chang sitting on the corner of the phone, half outside the screen */
.device{transform:perspective(1400px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.corner-chang{position:absolute;z-index:12;right:-62px;bottom:-30px;width:132px;padding:0;border:0;background:none;cursor:pointer;transform:translateZ(70px);transform-origin:50% 100%;filter:drop-shadow(-10px 16px 12px #04191c73) drop-shadow(0 2px 1px #04191c40);transition:transform .45s cubic-bezier(.3,1.4,.5,1)}
.corner-chang img{display:block;width:100%;height:auto;pointer-events:none;animation:breathe 3.4s ease-in-out infinite;transform-origin:50% 100%}
@keyframes breathe{50%{transform:scaleY(1.025) scaleX(.99)}}
.corner-chang:hover{transform:translateZ(70px) translateY(-4px) rotate(-3deg)}
.corner-chang.cheer img{animation:cheer .7s cubic-bezier(.3,1.5,.5,1)}
@keyframes cheer{30%{transform:translateY(-22px) rotate(-6deg) scale(1.05)}60%{transform:translateY(0) scaleY(.94)}80%{transform:translateY(-6px)}}
.corner-chang:focus-visible{outline:3px solid var(--h-blue);outline-offset:2px;border-radius:24px}
.route-stage.opened~.corner-chang{animation:chang-in .6s .8s cubic-bezier(.3,1.5,.5,1) backwards}
.device:has(.in-lesson) .corner-chang,.device:has(.in-done) .corner-chang{transform:translateZ(70px) translateX(14px) translateY(10px) rotate(6deg)}
.trail{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.trail path{fill:none;stroke-linecap:round}
.trail path{stroke:#cdeee0;stroke-opacity:.6;stroke-width:6;stroke-dasharray:0 14}
.trail path.walked{stroke:#ffd34d;stroke-opacity:1;stroke-width:7}
.trail path.fresh{animation:fade 1s}
.route-hint{position:absolute;left:0;right:0;top:94px;z-index:5;margin:0 auto;width:max-content;max-width:calc(100% - 32px);padding:7px 14px;border-radius:99px;background:#0d2c30d9;color:#fff;font-size:13px;font-weight:600;text-align:center;opacity:0;transform:translateY(6px);transition:opacity .4s .9s,transform .4s .9s}
.opened .route-hint{opacity:1;transform:none}
.route-chang{position:absolute;z-index:3;width:76px;height:auto;left:calc(var(--x) * 100% + 40px);top:calc(var(--y) * var(--k,1) * 1px - 58px);filter:drop-shadow(0 6px 4px #04191c66);pointer-events:none;transition:left .7s cubic-bezier(.4,0,.2,1),top .7s cubic-bezier(.4,0,.2,1)}
.route-chang.left{left:calc(var(--x) * 100% - 116px)}
.route-stage.intro-done .route-chang{animation:chang-in .5s cubic-bezier(.3,1.5,.5,1)}

/* stops: 3D disc like the app (face gradient, depth, diagonal shine) */
.stop{position:absolute;z-index:4;left:calc(var(--x) * 100% - 46px);top:calc(var(--y) * var(--k,1) * 1px - 46px);width:92px;height:92px;padding:0;border:0;background:none;cursor:pointer;border-radius:50%;--c0:#2fb394;--c1:#1f8f76;--c2:#14634f}
.stop .disc{position:absolute;left:12px;top:10px;width:68px;height:68px}
.stop .disc:before{content:"";position:absolute;inset:0;border-radius:50%;transform:translateY(7px) scaleY(.9);background:var(--c2);box-shadow:0 6px 8px #072d3260}
.stop .disc .face{position:absolute;inset:0;border-radius:50%;transform:scaleY(.9);background:linear-gradient(var(--c0),var(--c1));box-shadow:inset 0 0 0 1.5px #ffffff52;overflow:hidden;display:flex;align-items:center;justify-content:center;transition:transform .08s}
.stop .disc .face:before,.stop .disc .face:after{content:"";position:absolute;width:20%;height:140%;left:22%;top:-20%;background:#ffffff3d;transform:rotate(38deg);border-radius:9px}
.stop .disc .face:after{width:7%;left:44%;background:#ffffff24}
.stop .face svg{width:32px;height:32px;color:#fff;transform:scaleY(1.11);filter:drop-shadow(0 2.5px 0 var(--c2));position:relative;transition:transform .35s,opacity .25s}
.stop .lock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;transform:translateY(-1px);opacity:0;transition:opacity .25s,transform .35s}
.stop .lock svg{width:28px;height:28px;color:#e1e5e4;filter:drop-shadow(0 2px 0 #3a3e3d80)}
.stop.locked{--c0:#8d9391;--c1:#6a6f6e;--c2:#4a4f4e}
.stop.locked .face svg{opacity:0;transform:scale(.2)}
.stop.locked .lock{opacity:1}
.stop:active .disc .face{transform:translateY(6px) scaleY(.9)}
.stop .ring{position:absolute;inset:0;border-radius:50%;opacity:0}
.stop .ring i{position:absolute;inset:0;border-radius:50%;border:7px solid transparent}
.stop.current .ring{opacity:1;background:conic-gradient(from -90deg,#ffffff38 0 49%,transparent 49% 51%,#ffffff38 51% 99%,transparent 99%);-webkit-mask:radial-gradient(circle,transparent 39px,#000 40px);mask:radial-gradient(circle,transparent 39px,#000 40px)}
.stop.current:after{content:"";position:absolute;inset:0;border-radius:50%;border:3px solid #43d5b1;opacity:0;animation:beat 2.2s ease-out infinite;pointer-events:none}
@keyframes beat{0%{transform:scale(.92);opacity:.85}70%,100%{transform:scale(1.32);opacity:0}}
.stop.done .face svg{color:#fff}
.stop.dip .disc{animation:dip .5s}
@keyframes dip{30%{transform:translateY(7px)}}
.stop.tap .disc{animation:tap .32s}
@keyframes tap{35%{transform:translateY(5px) scale(.96)}}
.stop.gift{width:96px;height:96px;left:calc(var(--x) * 100% - 48px);top:calc(var(--y) * var(--k,1) * 1px - 50px)}
.stop.gift img{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 8px 6px #04191c80)}
.stop.gift.locked img{filter:grayscale(.85) brightness(.8) drop-shadow(0 8px 6px #04191c80)}
.stop.gift.current img{animation:hop 1.6s ease-in-out infinite}
@keyframes hop{0%,60%,100%{transform:none}70%{transform:translateY(-8px) rotate(-4deg)}80%{transform:translateY(0) rotate(3deg)}88%{transform:translateY(-3px)}}
.stop:focus-visible{outline:3px solid #ffd34d;outline-offset:2px}

/* unlock: lock opens, colour grows from inside */
.stop.unlocking{--c0:#8d9391;--c1:#6a6f6e;--c2:#4a4f4e}
.stop.unlocking .face svg{opacity:0;transform:scale(.2)}
.stop.unlocking .lock{opacity:1}
.stop.unlocking.unlocked{--c0:#2fb394;--c1:#1f8f76;--c2:#14634f;animation:pop .6s cubic-bezier(.3,1.6,.5,1)}
.stop.unlocking.unlocked .lock{opacity:0;transform:translateY(-14px) scale(.6)}
.stop.unlocking.unlocked .face svg{opacity:1;transform:scaleY(1.11)}
.stop.unlocking.unlocked .face{animation:grow .5s ease-out}
@keyframes grow{from{box-shadow:inset 0 0 0 40px #8d9391}to{box-shadow:inset 0 0 0 1.5px #ffffff52}}
@keyframes pop{40%{transform:scale(1.18)}}
.stop.unlocking:not(.unlocked) .lock{animation:shake .5s .1s}
@keyframes shake{25%{transform:rotate(-10deg)}50%{transform:rotate(9deg)}75%{transform:rotate(-5deg)}}

/* opening animation */
.route-stage .stop,.route-stage .route-landmark{opacity:0}
.route-stage .trail{opacity:0}
.route-stage.opened .stop,.route-stage.opened .route-landmark,.route-stage.opened .trail{opacity:1}
.route-stage.opened:not(.intro-done) .stop{animation:stop-in .55s cubic-bezier(.3,1.5,.5,1) backwards}
.route-stage.opened .stop[data-stop="1"]{animation-delay:.18s}
.route-stage.opened .stop[data-stop="2"]{animation-delay:.36s}
.route-stage.opened .stop[data-stop="3"]{animation-delay:.54s}
.route-stage.opened:not(.intro-done) .route-landmark{animation:fade-up .7s .1s backwards}
.route-stage.opened:not(.intro-done) .route-chang{animation:chang-in .6s .8s cubic-bezier(.3,1.5,.5,1) backwards}
.route-stage.opened:not(.intro-done) .trail{animation:fade .8s backwards}
@keyframes stop-in{from{opacity:0;transform:translateY(18px) scale(.4)}}
@keyframes fade-up{from{opacity:0;transform:translateY(16px)}}
@keyframes fade{from{opacity:0}}
@keyframes chang-in{from{opacity:0;transform:translateY(-30px) scale(.7)}}

/* peek card */
.peek-layer{position:absolute;inset:0;z-index:7;pointer-events:none}
.peek{position:absolute;pointer-events:auto;padding:16px 16px 14px;border-radius:20px;background:#2fb394;color:#0b2330;box-shadow:0 4px 0 #14634f,0 14px 22px #0006;transform-origin:var(--arrow) 0;animation:peek-in .38s cubic-bezier(.3,1.4,.5,1)}
.peek.above{transform-origin:var(--arrow) 100%}
.peek:before{content:"";position:absolute;left:calc(var(--arrow) - 9px);top:-9px;border:9px solid transparent;border-top:0;border-bottom:10px solid #2fb394}
.peek.above:before{top:auto;bottom:-9px;border-bottom:0;border-top:10px solid #2fb394}
.peek:after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(120% 60% at 30% 120%,#ffffff2e,#fff0 60%);pointer-events:none}
.peek.locked{background:#8d9391;box-shadow:0 4px 0 #4a4f4e,0 14px 22px #0006}
.peek.locked:before{border-bottom-color:#8d9391}.peek.locked.above:before{border-top-color:#8d9391}
.peek.gift-card:not(.locked){background:#f7c845;box-shadow:0 4px 0 #b57c14,0 14px 22px #0006}
.peek.gift-card:not(.locked):before{border-bottom-color:#f7c845}.peek.gift-card:not(.locked).above:before{border-top-color:#f7c845}
.peek h3{font-family:Outfit,DM,sans-serif;font-size:22px;letter-spacing:-.015em;margin:0;line-height:1.15}
.peek-meta{margin:6px 0 0;font-size:14px;font-weight:600;line-height:1.35}
.peek-bar{display:flex;gap:4px;margin-top:12px}
.peek-bar i{flex:1;height:6px;border-radius:4px;background:#14634f55}
.peek-bar i.on{background:#fff}
.peek-start{position:relative;z-index:1;width:100%;min-height:50px;margin-top:16px;border:0;border-radius:14px;background:#f4fff9;color:#0b2330;box-shadow:0 4px 0 #14634f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:6px;cursor:pointer;overflow:hidden;font:inherit}
.peek-start span{font-size:16px;font-weight:800;letter-spacing:.01em;text-transform:uppercase}
.peek-start small{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:800;opacity:.75}
.peek-start small svg{width:11px;height:11px}
.peek-start:before{content:"";position:absolute;top:-30%;bottom:-30%;width:30%;left:-40%;background:linear-gradient(90deg,#43d5b100,#43d5b159,#43d5b100);transform:skewX(-30deg);animation:dl-sweep 2.7s ease-in-out .6s infinite}
.peek-start:active{transform:translateY(4px);box-shadow:none}
.peek-start:disabled{cursor:default;background:#e6e9e8;color:#3c4342;box-shadow:0 4px 0 #4a4f4e}
.peek-start:disabled:before{display:none}
.gift-card:not(.locked) .peek-start{box-shadow:0 4px 0 #b57c14;background:#fffaee}
.peek-start:focus-visible{outline:3px solid #0b2330;outline-offset:3px}
.peek.leaving{animation:peek-out .18s ease-in forwards}
@keyframes peek-in{from{opacity:0;transform:scale(.6) translateY(-10px)}}
@keyframes peek-out{to{opacity:0;transform:scale(.85)}}

/* lesson sheet inside the stage */
.route-lesson,.route-done{position:absolute;inset:0;z-index:9;background:var(--h-bg);color:var(--h-ink);display:flex;flex-direction:column}
.route-lesson[hidden],.route-done[hidden]{display:none}
.route-stage .route-lesson .mini-top{display:flex;align-items:center;gap:12px;padding:14px 12px 10px;background:none}
.route-stage .mini-close{width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--h-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.route-stage .mini-close svg{width:24px;height:24px}
.route-stage .route-lesson .mini-progress{max-width:none;margin:0;gap:6px}
.route-stage .route-lesson .mini-progress i{height:12px;border-radius:8px;background:var(--h-off);position:relative;overflow:hidden}
.route-stage .route-lesson .mini-progress i.current{background:var(--h-off)}
.route-stage .route-lesson .mini-progress i.done{background:linear-gradient(#5fe0bd,#2fb394);box-shadow:inset 0 -3px 0 #0002}
.route-stage .route-lesson .mini-progress i.done:after{content:"";position:absolute;left:8px;right:8px;top:3px;height:3px;border-radius:2px;background:#ffffff70}
.route-stage .route-lesson .mini-sound-toggle{color:var(--h-muted);background:none;border:0}
.route-stage .route-lesson .mini-body{flex:1;min-height:0;overflow-y:auto;padding:6px 16px 8px;display:flex;flex-direction:column}
.route-stage .route-lesson .mini-body h2{font-size:22px;color:var(--h-ink);margin:0 0 14px;text-align:left;letter-spacing:-.015em}
.route-stage .route-lesson .mini-instruction,.route-stage .route-lesson .mini-mic-note{color:var(--h-muted);font-size:13px;margin:10px 0}
.route-stage .route-lesson .mini-scene{aspect-ratio:1.75;border-radius:18px}
.route-stage .route-lesson .mini-options{gap:8px}
.route-stage .route-lesson .mini-choice,.route-stage .route-lesson .mini-words button,.route-stage .route-lesson .mini-built button,.route-stage .route-lesson .mini-bank button{background:var(--h-opt);color:var(--h-opt-ink);border:0;border-radius:16px;box-shadow:0 4px 0 var(--h-opt-depth);transition:transform .08s,box-shadow .08s}
:root[data-theme=light] .route-stage .route-lesson .mini-choice,:root[data-theme=light] .route-stage .route-lesson .mini-words button,:root[data-theme=light] .route-stage .route-lesson .mini-built button,:root[data-theme=light] .route-stage .route-lesson .mini-bank button{box-shadow:0 0 0 1.5px var(--h-opt-depth) inset,0 4px 0 var(--h-opt-depth)}
.route-stage .route-lesson .mini-choice{min-height:84px}
:root[data-theme] .route-stage .route-lesson .mini-choice:active:not(:disabled),.route-stage .route-lesson .mini-words button:active:not(:disabled),.route-stage .route-lesson .mini-bank button:active:not(:disabled){transform:translateY(4px);box-shadow:0 0 0 var(--h-opt-depth)}
.route-stage .route-lesson .mini-choice:hover:not(:disabled){background:var(--h-opt)}
.route-stage .route-lesson .mini-choice strong{font-size:21px}
.route-stage .route-lesson .mini-choice span,.route-stage .route-lesson .mini-choice small,.route-stage .route-lesson .mini-words span,.route-stage .route-lesson .mini-built small,.route-stage .route-lesson .mini-bank small{font-size:12px;color:var(--h-opt-sub)}
.route-stage .route-lesson .meanings .mini-choice{min-height:56px;font-size:16px;font-weight:600}
:root[data-theme] .route-stage .route-lesson .mini-choice.right,:root[data-theme] .route-stage .route-lesson .mini-words .matched{background:#dcf4e8;color:#14634f;box-shadow:0 0 0 2px #2fb394 inset,0 4px 0 #2fb394}
:root[data-theme] .route-stage .route-lesson .mini-choice.incorrect{background:#fbe4dc;color:#7d2f1d;box-shadow:0 0 0 2px #d86a52 inset,0 4px 0 #d86a52;animation:nudge .35s}
@keyframes nudge{25%{transform:translateX(-5px)}50%{transform:translateX(4px)}75%{transform:translateX(-2px)}}
.route-stage .route-lesson .mini-object{background:var(--h-panel);border:0;box-shadow:0 0 0 1.5px var(--h-line) inset,0 4px 0 var(--h-line);border-radius:16px;height:84px}
.route-stage .route-lesson .mini-object img{height:72px;width:96px}
:root[data-theme] .route-stage .route-lesson .mini-object.chosen{box-shadow:0 0 0 2.5px #3b8fc4 inset,0 4px 0 #2a6fa3}
:root[data-theme] .route-stage .route-lesson .mini-object.matched{box-shadow:0 0 0 2px #2fb394 inset,0 4px 0 #2fb394}
.route-stage .route-lesson .mini-words button{min-height:84px}
.route-stage .route-lesson .mini-words strong{font-size:25px}
.route-stage .route-lesson .mini-match{margin-top:6px;gap:12px}
.route-stage .route-lesson .mini-audio{background:#3b8fc4;color:#fff;box-shadow:0 4px 0 #1c4c72;width:52px;height:52px}
.route-stage .route-lesson .mini-listen-stage,.route-stage .route-lesson .mini-built{background:var(--h-panel2);border-color:var(--h-line);color:var(--h-ink)}
.route-stage .route-lesson .mini-listen-stage{min-height:220px;margin-bottom:14px}
.route-stage .route-lesson .mini-listen-stage>span{color:var(--h-thai)}
.route-stage .route-lesson .mini-listen-stage small,.route-stage .route-lesson .mini-speech>span{color:var(--h-muted);font-size:13px}
.route-stage .route-lesson .mini-meaning{font-size:18px;margin:12px 0 16px;color:var(--h-ink)}
.route-stage .route-lesson .mini-built{min-height:88px}
.route-stage .route-lesson .mini-built>span{color:var(--h-muted)}
.route-stage .route-lesson .mini-bank{padding-top:16px;gap:10px;flex-wrap:wrap}
.route-stage .route-lesson .mini-check,.route-stage .route-lesson .mini-feedback button,.route-stage .route-lesson .mini-record{background:var(--h-cta);color:var(--h-cta-ink);box-shadow:0 4px 0 var(--h-cta-depth);border-radius:16px;min-height:52px;font-size:16px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.route-stage .route-lesson .mini-check:disabled,.route-stage .route-lesson .mini-feedback button:disabled{background:var(--h-off);color:var(--h-off-ink);box-shadow:0 4px 0 color-mix(in srgb,var(--h-off) 70%,#000)}
.route-stage .route-lesson .mini-distance{height:220px;border-radius:18px}
.route-stage .route-lesson .mini-speech strong{font-size:36px;color:var(--h-thai)}
.route-stage .route-lesson .mini-text-button{color:var(--h-ink);font-size:14px;min-height:44px}
.route-stage .route-lesson .mini-transcript{color:var(--h-ink)}
.route-stage .route-lesson .mini-feedback{margin:0;padding:12px 16px 16px;min-height:0;display:grid;gap:10px;background:var(--h-bg);border-top:1px solid var(--h-line);transition:background .25s}
.route-stage .route-lesson .mini-feedback p{font-size:16px;font-weight:700;color:var(--h-bad);min-height:0}
.route-stage .route-lesson .mini-feedback p:empty{display:none}
.route-stage .route-lesson .mini-feedback button{width:100%}
.route-stage .route-lesson .mini-feedback.success{background:var(--h-good-bg);border-top-color:transparent;animation:sheet-up .3s cubic-bezier(.2,.9,.3,1.2)}
.route-stage .route-lesson .mini-feedback.success p{color:var(--h-good)}
.route-stage .route-lesson .mini-feedback.matching-feedback{display:none}
.route-stage .route-lesson .mini-feedback.matching-feedback.success{display:grid}
@keyframes sheet-up{from{transform:translateY(30px)}}
.route-stage .route-lesson button:focus-visible{outline:3px solid var(--h-blue);outline-offset:3px}

/* finished route */
.route-done{align-items:center;justify-content:center;text-align:center;padding:24px 22px;overflow-y:auto;animation:fade .4s}
.done-inner{display:flex;flex-direction:column;align-items:center;gap:0;width:100%}
.done-gift{width:120px;height:120px;object-fit:contain;animation:stop-in .7s cubic-bezier(.3,1.5,.5,1) backwards}
.done-chang{width:96px;height:96px;object-fit:contain;margin-top:-34px;margin-left:120px;animation:chang-in .6s .35s cubic-bezier(.3,1.5,.5,1) backwards}
.route-done h2{font-size:28px;color:var(--h-ink);margin:2px 0 8px;outline:none}
.route-done p{font-size:15px;line-height:1.5;color:var(--h-muted);margin:0 0 16px}
.done-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin-bottom:18px}
.done-stats span{display:flex;flex-direction:column;padding:10px 4px;border-radius:14px;background:var(--h-panel);box-shadow:0 0 0 1px var(--h-line) inset;font-size:12px;color:var(--h-muted);font-weight:600}
.done-stats b{font-family:Outfit,DM,sans-serif;font-size:24px;color:var(--h-ink)}
.route-done .dl-button{width:100%;justify-content:center}
.route-done .dl-android{margin-top:12px}
.done-again{margin-top:6px;min-height:44px;background:none;border:0;color:var(--h-ink);text-decoration:underline;text-underline-offset:4px;font-size:14px;cursor:pointer}

/* features */
.home-features{padding:40px 0 80px}
.home-features h2{color:var(--h-ink);max-width:640px}
.features-desc{color:var(--h-muted);font-size:17px;max-width:640px;margin:16px 0 32px}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.feature-grid article{background:var(--h-panel);border-radius:24px;padding:22px;box-shadow:0 0 0 1px var(--h-line) inset,0 4px 0 var(--h-line)}
.feature-grid img{width:56px;height:56px;object-fit:contain}
.feature-grid h3{font-size:19px;margin:12px 0 8px;color:var(--h-ink)}
.feature-grid p{font-size:14px;line-height:1.55;color:var(--h-muted);margin:0}

/* existing sections, retinted */
:root[data-theme] .topics-section,:root[data-theme] .faq-section{background:var(--h-bg);color:var(--h-ink)}
:root[data-theme] .topics-section h2,:root[data-theme] .faq-section h2,:root[data-theme] summary{color:var(--h-ink)}
:root[data-theme] .topics-copy p,:root[data-theme] .topic-context,:root[data-theme] details p{color:var(--h-muted)}
:root[data-theme] .faq,:root[data-theme] details{border-color:var(--h-line)}
:root[data-theme] summary span{color:var(--h-muted)}
:root[data-theme=dark] .topic-tabs button{background:var(--h-panel);color:var(--h-ink);border-color:var(--h-line)}
:root[data-theme=dark] .topic-tabs button[aria-selected=true]{background:var(--h-cta);color:var(--h-cta-ink)}
:root[data-theme=dark] .topic-phrase{background:var(--h-panel);color:var(--h-ink)}
:root[data-theme=dark] .topic-phrase .roman{color:var(--h-thai)}
:root[data-theme=dark] .topic-phrase strong{color:var(--h-ink)}

/* final + sticky bar */
.home-final{padding:72px 0 84px;text-align:center;background:linear-gradient(var(--h-bg),color-mix(in srgb,var(--h-cta) 16%,var(--h-bg)))}
.home-final .shell{max-width:720px;display:flex;flex-direction:column;align-items:center}
.home-final img{width:140px;height:140px;object-fit:contain}
.home-final h2{color:var(--h-ink);margin-top:16px}
.home-final p{color:var(--h-muted);font-size:17px;margin:16px 0 26px}
.final-actions{justify-content:center}
.home-final .beta-note{font-size:13px;margin:18px 0 0}
.dl-bar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:30;display:none;align-items:center;gap:10px;padding:8px 8px 8px 10px;border-radius:20px;background:color-mix(in srgb,var(--h-panel) 92%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 0 0 1px var(--h-line) inset,0 12px 30px -8px #0005;transform:translateY(140%);transition:transform .35s cubic-bezier(.2,.9,.3,1.1)}
.dl-bar.show{transform:none}
.dl-bar img{border-radius:12px;flex:none}
.dl-bar span{display:flex;flex-direction:column;line-height:1.2;flex:1;min-width:0}
.dl-bar strong{font-family:Outfit,DM,sans-serif;font-size:16px;color:var(--h-ink)}
.dl-bar small{font-size:12px;color:var(--h-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dl-bar-button{display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border-radius:14px;background:var(--h-cta);color:var(--h-cta-ink);font-weight:800;font-size:15px;text-decoration:none;box-shadow:0 3px 0 var(--h-cta-depth);white-space:nowrap}

@media(max-width:1100px){.home-hero{grid-template-columns:minmax(0,1fr) 400px;gap:40px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){
 .home-hero{grid-template-columns:1fr;gap:22px;padding:20px 0 48px}
 .hero-copy{text-align:left}
 .home-hero h1{font-size:clamp(34px,9vw,48px)}
 .hero-desc{font-size:16px;margin:12px 0 18px}
 .hero-kicker{margin-bottom:12px;font-size:13px}
 .hero-points{display:none}
 .hero-kicker{display:none}
 .hero-actions{gap:8px}
 .hero-actions .dl-android{min-height:44px;border:0;background:none;padding:0 4px;font-size:13px;color:var(--h-muted)}
 :root[data-theme] body[data-page=""] .header-cta{display:none}
 .device{padding:0;background:none;box-shadow:none;max-width:460px}
 .route-stage{border-radius:30px;box-shadow:0 20px 40px -20px var(--h-shadow)}
 .dl-bar{display:flex}
 body:has(.dl-bar){padding-bottom:0}
 .home-final{padding-bottom:110px}
}
@media(max-width:560px){
 .shell.home-hero,.shell.home-features{width:calc(100% - 32px)}
 .hero-actions .dl-button{flex:1 1 100%;justify-content:center}
 .hero-actions .dl-android{flex:1 1 100%;justify-content:center}
 .home-hero h1{font-size:34px}
 .hero-desc{font-size:15px;line-height:1.5}
 .feature-grid{grid-template-columns:1fr}
 .route-landmark{width:140px;right:-34px}
 .corner-chang{width:88px;right:-10px;bottom:-22px}
 .device:has(.in-lesson) .corner-chang,.device:has(.in-done) .corner-chang{transform:translateY(70%);opacity:0;pointer-events:none}
}
@media(max-width:360px){
 .shell.home-hero,.shell.home-features{width:calc(100% - 24px)}
 .route-unit strong{font-size:15px}
 .xp-pill{padding:5px 8px;font-size:13px}
 .route-stage .route-lesson .mini-choice strong{font-size:18px}
 .route-stage .route-lesson .mini-body{padding-inline:12px}
 .dl-bar small{display:none}
 .dl-button{padding-inline:16px}
 .dl-button strong{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
 .route-stage *,.route-stage *:before,.route-stage *:after,.dl-button:after,.dl-bar,.corner-chang,.corner-chang img,.device{animation:none!important;transition:none!important}
 .device{transform:none}
 .stop.current:after{display:none}
}
:root[data-theme] .route-stage .route-lesson .mini-object.pair-wrong,:root[data-theme] .route-stage .route-lesson .mini-words .pair-wrong,:root[data-theme] .route-stage .route-lesson .mini-built .tile-wrong{background:#fbe4dc;color:#7d2f1d;box-shadow:0 0 0 2px #d86a52 inset,0 4px 0 #d86a52;animation:nudge .35s}
:root[data-theme] .route-stage .route-lesson .mini-object small{background:var(--h-good-bg);color:var(--h-good);font-size:12px}
.route-stage{container-type:size;container-name:stage}
@container stage (max-height:600px){
 .route-lesson .mini-top{padding-top:8px!important;padding-bottom:4px!important}
 .route-lesson .mini-body h2{font-size:19px!important;margin-bottom:8px!important}
 .route-lesson .mini-scene{aspect-ratio:2.2!important}
 .route-lesson .mini-distance{height:150px!important;margin-bottom:10px!important}
 .route-lesson .mini-listen-stage{min-height:150px!important;margin-bottom:10px!important}
 .route-lesson .mini-listen-stage>img{width:84px!important;height:84px!important}
 .route-lesson .mini-choice{min-height:72px!important;padding-block:6px!important}
 .route-lesson .mini-object,.route-lesson .mini-words button{height:72px!important;min-height:72px!important}
 .route-lesson .mini-object img{height:60px!important}
 .route-lesson .mini-meaning{margin:6px 0 10px!important}
 .route-lesson .mini-instruction{margin:6px 0!important}
 .route-lesson .mini-feedback{padding-top:8px!important;padding-bottom:10px!important}
 .done-gift{width:84px!important;height:84px!important}.done-chang{width:70px!important;height:70px!important;margin-top:-26px!important}
 .route-done h2{font-size:23px!important}.route-done p{font-size:14px!important;margin-bottom:10px!important}
 .done-stats{margin-bottom:10px!important}.done-stats span{padding:6px 2px!important}.done-stats b{font-size:20px!important}
}
/* the lesson reads as its own screen, never melting into the page */
.route-lesson,.route-done{background:var(--h-panel)}
:root[data-theme=dark] .route-lesson,:root[data-theme=dark] .route-done{background:#183f44}
.route-stage .route-lesson .mini-feedback{background:inherit}
.route-stage:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff1f;pointer-events:none;z-index:20}
:root[data-theme=light] .route-stage:after{box-shadow:inset 0 0 0 1px #0b2a2e26}
@media(max-width:850px){.route-stage{box-shadow:0 0 0 1px var(--h-line),0 22px 44px -18px var(--h-shadow)}}
:root[data-theme] body{overflow-x:clip}

/* Lesson layout owned here: older .mini-lesson rules (stretching matching rows, fixed feedback rows) must not leak in. */
.route-stage .route-lesson .mini-match{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:6px 0 0;align-items:start}
.route-stage .route-lesson .mini-objects,.route-stage .route-lesson .mini-words{display:grid;grid-template-rows:none;grid-auto-rows:var(--pair-h,92px);gap:10px;min-height:0}
.route-stage .route-lesson .mini-match .mini-object,.route-stage .route-lesson .mini-match .mini-words button{height:100%;min-height:0;max-height:none;margin:0}
.route-stage .route-lesson .mini-match .mini-object img{width:auto;max-width:86%;height:calc(var(--pair-h,92px) - 8px);max-height:none;object-fit:contain;transform:scale(1.15)}
.route-stage .route-lesson .mini-object small{bottom:5px;left:8px;right:8px;border-radius:8px;padding:1px 4px}
.route-stage .route-lesson .mini-words strong{font-size:24px;line-height:1.2}
.route-stage .route-lesson .mini-match-instruction{height:auto;min-height:0;margin:0 0 6px;font-size:13px;color:var(--h-muted);text-align:left;justify-content:flex-start}
.route-stage .route-lesson .mini-feedback{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;align-content:end;height:auto}
@container stage (max-height:600px){.route-stage .route-lesson{--pair-h:74px}}
@container stage (max-height:540px){
 .route-lesson .mini-listen-stage{min-height:128px!important;gap:4px!important}
 .route-lesson .mini-listen-stage>img{width:64px!important;height:64px!important}
 .route-lesson .mini-speech{padding-top:0!important}
 .route-lesson .mini-speech>img{width:64px!important;height:64px!important}
 .route-lesson .mini-speech .mini-audio{margin:4px 0!important}
 .route-lesson .mini-distance{height:130px!important}
}

/* ===== Rest of the home, in the app's look ===== */
:root[data-theme] .home-features{border-top:0}
:root[data-theme] .topics-section{padding-block:72px;gap:64px;border:0}
:root[data-theme] .topics-section,:root[data-theme] .faq-section{border-top:0}
:root[data-theme] .topics-copy h2,:root[data-theme] .faq-section h2{color:var(--h-ink)}
:root[data-theme] .topic-tabs{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;margin-top:26px;border-radius:16px;background:var(--h-off)}
:root[data-theme] .topic-tabs button{border:0;border-radius:12px;background:none;color:var(--h-ink);font-size:14px;font-weight:600;padding:10px 16px;min-height:44px;transition:background .2s,color .2s,box-shadow .2s}
:root[data-theme] .topic-tabs button[aria-selected=true]{background:var(--h-panel);color:var(--h-ink);box-shadow:0 2px 0 var(--h-line),0 4px 10px -4px var(--h-shadow)}
:root[data-theme=dark] .topic-tabs button[aria-selected=true]{background:var(--h-cta);color:var(--h-cta-ink);box-shadow:0 3px 0 var(--h-cta-depth)}
:root[data-theme] .topic-scene{min-height:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"card card" "ctx chang";align-items:end;gap:6px 12px}
:root[data-theme] #topicPanel{grid-area:card;outline:none}
:root[data-theme] .topic-phrase{transform:none;width:100%;max-width:none;padding:24px 84px 22px 24px;border-radius:24px;background:var(--h-panel);color:var(--h-ink);box-shadow:0 0 0 1.5px var(--h-line) inset,0 5px 0 var(--h-line);animation:fade-up .35s cubic-bezier(.2,.8,.2,1)}
:root[data-theme] .topic-phrase>span[lang=th]{font-size:40px;color:var(--h-ink);line-height:1.25}
:root[data-theme] .topic-phrase .roman{color:var(--h-thai);font-size:15px;font-weight:600;margin-top:4px}
:root[data-theme] .topic-phrase>strong{color:var(--h-ink);font-size:18px;margin-top:10px}
:root[data-theme] .topic-phrase .round-audio{position:absolute;right:20px;top:50%;transform:translateY(-50%);width:56px;height:56px;border-radius:50%;border:0;background:#3b8fc4;color:#fff;box-shadow:0 4px 0 #1c4c72;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
:root[data-theme] .topic-phrase .round-audio svg{width:24px;height:24px}
:root[data-theme] .topic-phrase .round-audio:active{transform:translateY(calc(-50% + 4px));box-shadow:none}
:root[data-theme] .topic-phrase .round-audio.is-playing{outline:3px solid #7fd8ff;outline-offset:3px}
:root[data-theme] .topic-context{grid-area:ctx;max-width:none;padding:14px 4px 0;font-size:15px;line-height:1.6;color:var(--h-muted)}
:root[data-theme] .topic-chang{grid-area:chang;position:static;width:150px;height:auto;object-fit:contain}
:root[data-theme] .audio-status{grid-column:1/-1;font-size:13px;color:var(--h-bad)}

:root[data-theme] .faq-section{padding-top:56px;padding-bottom:80px}
:root[data-theme] .faq{border:0;display:grid;gap:10px}
:root[data-theme] .faq details{border:0;border-radius:18px;background:var(--h-panel);box-shadow:0 0 0 1.5px var(--h-line) inset,0 4px 0 var(--h-line);overflow:hidden}
:root[data-theme] .faq summary{padding:16px 16px 16px 20px;min-height:56px;font-size:17px;color:var(--h-ink)}
:root[data-theme] .faq summary span{flex:none;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--h-off);color:var(--h-ink);font-size:20px;line-height:1;transition:transform .3s cubic-bezier(.3,1.4,.5,1),background .2s}
:root[data-theme] .faq details[open] summary span{background:var(--h-cta);color:var(--h-cta-ink)}
:root[data-theme] .faq details p{padding:0 20px 18px;font-size:15px;line-height:1.65;color:var(--h-muted)}
:root[data-theme] .faq details[open] p{animation:fade-up .3s}

/* ===== Footer ===== */
:root[data-theme] #footer{background:#0f2a2d;color:#e3efe9}
:root[data-theme=light] #footer{background:#193b3c}
:root[data-theme] .footer-links a{color:#e3efe9}
:root[data-theme] .footer-bottom{color:#c3d6cf;border-top-color:#ffffff1f}

/* ===== Other pages ===== */
:root[data-theme] .resource{color:var(--h-ink);padding-top:32px}
:root[data-theme] .resource h1{color:var(--h-ink);letter-spacing:-.03em}
:root[data-theme] .resource-intro,:root[data-theme] .resource>.quiet,:root[data-theme] .resource .quiet{color:var(--h-muted)}
:root[data-theme] .back-link{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;background:var(--h-panel);box-shadow:0 0 0 1px var(--h-line) inset;color:var(--h-ink);font-size:14px;font-weight:600;text-decoration:none}
:root[data-theme] .resource-band,:root[data-theme] .policy-copy{max-width:780px;margin-top:28px;padding:8px 28px 28px;border-radius:24px;background:var(--h-panel);box-shadow:0 0 0 1.5px var(--h-line) inset,0 5px 0 var(--h-line)}
:root[data-theme] .resource-band h2,:root[data-theme] .policy-copy>h2{color:var(--h-ink);font-size:24px;margin:26px 0 10px}
:root[data-theme] .resource-band p,:root[data-theme] .policy-copy>p{color:var(--h-muted);font-size:16px;line-height:1.75;margin-top:12px}
:root[data-theme] .policy-copy>h2:first-child{margin-top:20px}
:root[data-theme] .policy-copy{padding-top:12px}
:root[data-theme] .soft-button{background:var(--h-cta);color:var(--h-cta-ink);box-shadow:0 4px 0 var(--h-cta-depth);border-radius:14px;min-height:48px;text-decoration:none;border:0;cursor:pointer}
:root[data-theme] .soft-button:active{transform:translateY(4px);box-shadow:none}
:root[data-theme] .policy-copy #clearStatus,:root[data-theme] .contact-options a{color:var(--h-ink)}
:root[data-theme] .contact-options a{min-height:44px}
:root[data-theme] .resource .faq{max-width:780px}
:root[data-theme] .stores{gap:10px}
:root[data-theme] .store-button{border:0;border-radius:16px;min-height:64px;background:var(--h-panel);color:var(--h-ink);box-shadow:0 0 0 1.5px var(--h-line) inset,0 4px 0 var(--h-line);text-decoration:none}
:root[data-theme] .store-button.apple{background:var(--h-cta);color:var(--h-cta-ink);box-shadow:0 5px 0 var(--h-cta-depth)}
:root[data-theme] .store-button:hover{background:var(--h-panel);transform:translateY(-1px)}
:root[data-theme] .store-button.apple:hover{background:var(--h-cta)}
:root[data-theme] .store-button small{font-size:12px;opacity:1}
:root[data-theme] .resource-note{color:var(--h-muted);font-size:13px}
:root[data-theme] dialog{background:var(--h-bg);color:var(--h-ink);border-color:var(--h-line)}
:root[data-theme] dialog h2,:root[data-theme] dialog p{color:var(--h-ink)}
:root[data-theme] dialog .quiet{color:var(--h-muted)}
:root[data-theme] .language-grid button{background:var(--h-panel);color:var(--h-ink);border-color:var(--h-line)}
:root[data-theme] .language-grid button[aria-pressed=true]{background:var(--h-cta);color:var(--h-cta-ink)}
:root[data-theme] .dialog-close{color:var(--h-ink);background:var(--h-panel)}
:root[data-theme] .resource-fallback,:root[data-theme] .resource-fallback h1{color:var(--h-ink)}

@media(max-width:850px){
 :root[data-theme] .topics-section{padding-block:48px;gap:28px}
 :root[data-theme] .faq-section{padding-top:24px}
}
@media(max-width:560px){
 :root[data-theme] .topic-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
 :root[data-theme] .topic-tabs button{padding:10px 4px;font-size:13px}
 :root[data-theme] .topic-phrase{padding:20px 76px 18px 18px}
 :root[data-theme] .topic-phrase>span[lang=th]{font-size:32px}
 :root[data-theme] .topic-phrase .round-audio{right:14px;width:52px;height:52px}
 :root[data-theme] .topic-chang{width:110px}
 :root[data-theme] .topic-context{font-size:14px}
 :root[data-theme] .resource-band,:root[data-theme] .policy-copy{padding:4px 18px 22px;border-radius:20px}
 :root[data-theme] .faq summary{font-size:16px}
}
@media(prefers-reduced-motion:reduce){:root[data-theme] .topic-phrase,:root[data-theme] .faq details[open] p{animation:none}}
@container stage (max-height:540px){.route-lesson .mini-record{margin:8px auto!important}.route-lesson .mini-mic-note{margin:6px auto!important;line-height:1.4!important}.route-lesson .mini-text-button{margin:4px auto!important}}

/* ===== Easy lesson: learn a word, then one easy question ===== */
.route-stage .route-lesson .ls-body{justify-content:flex-start}
.ls-kicker{margin:4px 0 8px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--h-good)}
.ls-learn{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:16px;border-radius:24px;background:var(--h-panel2);box-shadow:0 0 0 1.5px var(--h-line) inset;text-align:center;animation:fade-up .45s cubic-bezier(.2,.8,.2,1)}
.ls-learn img{width:min(150px,38cqh);height:min(150px,38cqh);object-fit:contain;filter:drop-shadow(0 8px 6px #0002);animation:chang-in .6s .1s cubic-bezier(.3,1.5,.5,1) backwards}
.ls-learn strong{font-family:Thai,sans-serif;font-size:46px;line-height:1.3;color:var(--h-ink);margin-top:6px}
.ls-ro{font-size:18px;font-weight:600;color:var(--h-thai)}
.ls-mean{margin-top:6px;padding:6px 16px;border-radius:99px;background:var(--h-good-bg);color:var(--h-good);font-size:18px;font-weight:800}
.ls-tip{margin:10px 0 0;font-size:13px;line-height:1.4;color:var(--h-muted);text-align:center}
.ls-audio{width:48px;height:48px;border-radius:50%;border:0;background:#3b8fc4;color:#fff;box-shadow:0 4px 0 #1c4c72;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none;vertical-align:middle}
.ls-audio svg{width:22px;height:22px}
.ls-audio.big{width:64px;height:64px;margin:8px 0 2px}
.ls-audio.big svg{width:28px;height:28px}
.ls-audio:active{transform:translateY(4px);box-shadow:none}
.ls-audio.is-playing{animation:ls-pulse 1s ease-out infinite}
@keyframes ls-pulse{0%{box-shadow:0 4px 0 #1c4c72,0 0 0 0 #3b8fc480}100%{box-shadow:0 4px 0 #1c4c72,0 0 0 16px #3b8fc400}}
.route-stage .route-lesson .ls-body h2{margin-bottom:12px}
.ls-listen{display:flex;justify-content:center;padding:18px 0 22px}
.ls-listen .ls-audio.big{width:96px;height:96px}
.ls-listen .ls-audio.big svg{width:40px;height:40px}
.ls-target{display:flex;align-items:center;gap:10px;margin:0 0 14px;flex-wrap:wrap}
.ls-target strong{font-family:Thai,sans-serif;font-size:34px;color:var(--h-ink)}
.ls-target span{font-size:16px;font-weight:600;color:var(--h-thai)}
.ls-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ls-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ls-opt{position:relative;min-height:96px;border:0;border-radius:18px;background:var(--h-opt);color:var(--h-opt-ink);box-shadow:0 0 0 1.5px var(--h-opt-depth) inset,0 5px 0 var(--h-opt-depth);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:10px 6px;cursor:pointer;font:inherit;transition:transform .08s,box-shadow .08s;animation:fade-up .35s backwards}
.ls-opt:nth-child(2){animation-delay:.06s}.ls-opt:nth-child(3){animation-delay:.12s}
.ls-opt strong{font-family:Thai,sans-serif;font-size:28px;line-height:1.3}
.ls-opt span{font-size:14px;color:var(--h-opt-sub)}
.ls-opt small{font-size:13px;font-weight:700;color:var(--h-opt-sub)}
.ls-opt:active:not(:disabled){transform:translateY(5px);box-shadow:0 0 0 1.5px var(--h-opt-depth) inset}
.ls-img{min-height:0;aspect-ratio:1;padding:8px}
.ls-img img{width:100%;height:100%;object-fit:contain}
.ls-img small{position:absolute;left:6px;right:6px;bottom:6px;border-radius:8px;background:#dcf4e8;color:#14634f;font-size:12px}
.ls-opt.right{background:#dcf4e8;color:#14634f;box-shadow:0 0 0 2.5px #2fb394 inset,0 5px 0 #2fb394;animation:pop .45s cubic-bezier(.3,1.6,.5,1)}
.ls-opt.right span,.ls-opt.right small{color:#14634f}
.ls-opt.incorrect{background:#fbe4dc;color:#7d2f1d;box-shadow:0 0 0 2px #d86a52 inset,0 5px 0 #d86a52;opacity:.75;animation:nudge .35s}
.ls-opt.incorrect span,.ls-opt.incorrect small{color:#7d2f1d}
.ls-opt:disabled{cursor:default}
.ls-opt:focus-visible,.ls-audio:focus-visible{outline:3px solid var(--h-blue);outline-offset:3px}
.route-stage .route-lesson .mini-feedback p.ls-hint{color:var(--h-ink);font-weight:600}
.peek-word{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:8px 0 0;padding:8px 12px;border-radius:12px;background:#ffffff4d}
.peek-word span[lang]{font-family:Thai,sans-serif;font-size:22px;font-weight:700;line-height:1.2}
.peek-word span:last-child{font-size:14px;font-weight:700}
.done-words{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin-bottom:10px}
.done-words span{display:flex;flex-direction:column;align-items:center;padding:8px 4px;border-radius:14px;background:var(--h-good-bg)}
.done-words b{font-family:Thai,sans-serif;font-size:22px;color:var(--h-good);line-height:1.3}
.done-words small{font-size:12px;font-weight:700;color:var(--h-good)}
@container stage (max-height:600px){
 .ls-learn{padding:10px}.ls-learn strong{font-size:38px}.ls-audio.big{width:54px;height:54px;margin:4px 0 0}
 .ls-listen{padding:6px 0 12px}.ls-listen .ls-audio.big{width:80px;height:80px}
 .ls-opt{min-height:80px}.ls-tip{margin-top:6px}
 .done-words b{font-size:18px}.done-words span{padding:4px}
}
@media(prefers-reduced-motion:reduce){.ls-learn,.ls-learn img,.ls-opt,.ls-audio.is-playing{animation:none!important}}

.route-stage .mini-close,.route-stage .route-lesson .mini-sound-toggle{width:48px;height:48px;min-width:48px}
.route-done .done-stats{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 14px;padding:6px 14px;border-radius:99px;background:var(--h-panel2);box-shadow:0 0 0 1px var(--h-line) inset;font-size:14px;color:var(--h-muted);width:auto}
.route-done .done-stats svg{width:15px;height:15px;color:var(--h-gold)}
.route-done .done-stats b{font-family:DM,system-ui,sans-serif;font-size:14px;color:var(--h-ink)}
.done-gift{width:96px;height:96px}.done-chang{width:80px;height:80px;margin-top:-30px;margin-left:100px}
.route-done h2{font-size:26px}
.route-done p{margin-bottom:12px}
.route-done .done-again{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;padding:0 14px;flex:none}
@container stage (max-height:600px){
 .route-done{padding:14px 16px}
 .done-chang{display:none}
 .done-gift{width:64px!important;height:64px!important}
 .route-done h2{font-size:21px!important;margin:0 0 4px}
 .route-done p{font-size:13px!important;line-height:1.4;margin-bottom:8px!important}
 .done-words{margin-bottom:8px}
 .route-done .done-stats{margin-bottom:10px;padding:4px 12px}
 .route-done .dl-button{min-height:54px;padding-block:6px}
 .route-done .dl-android{margin-top:8px;min-height:46px}
 .route-done .done-again{margin-top:2px;min-height:46px}
}
.stop.gift.shake img{animation:chest-shake .38s ease-in-out}@keyframes chest-shake{20%{transform:rotate(-8deg) scale(1.04)}45%{transform:rotate(7deg) scale(1.06)}70%{transform:rotate(-4deg)}}
/* card waves (PeekWaves): two white sine layers drifting in opposite directions */
.peek-waves{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none}
.peek-waves i{position:absolute;left:0;width:200%;height:100%;background-repeat:repeat-x;background-size:50% 100%;animation:waves 9.7s linear infinite}
.peek-waves i:first-child{top:0;opacity:.16;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 36 C25 17 25 17 50 36 S75 55 100 36 V100 H0Z' fill='white'/%3E%3C/svg%3E")}
.peek-waves i:last-child{top:0;opacity:.21;animation-duration:7.4s;animation-direction:reverse;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 59 C25 43 25 43 50 59 S75 75 100 59 V100 H0Z' fill='white'/%3E%3C/svg%3E")}
@keyframes waves{to{transform:translateX(-50%)}}
.peek h3,.peek .peek-meta,.peek .peek-bar{position:relative;z-index:1}
.peek .peek-bar{margin-top:14px}
.peek .peek-start{margin-top:20px}
@media(prefers-reduced-motion:reduce){.peek-waves i{animation:none}}

/* ===== Route v2: the app's own layout (route.json), scaled by --s = stage width / 420 ===== */
.route-stage{background:#1d4b4b url('/assets/route/route-bg1.webp') center top/100% auto no-repeat}
.route-stage:before{background:linear-gradient(#0b2a2eb3,#0b2a2e00 16%)}
.route-top{padding:12px 14px 8px;gap:8px;justify-content:space-between;background:linear-gradient(#0d2c30d9,#0d2c3000)}
.top-pill{flex:1 1 0;max-width:86px;min-width:0;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#0b2629b3;box-shadow:inset 0 0 0 1px #ffffff1c;color:#f2f5ef;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.top-pill img{width:20px;height:22px;object-fit:contain}
.top-pill b{font-weight:800}
.top-pill.xp-pill{border:0;padding:0;color:#ffe08a}
button.top-pill{border:0;cursor:pointer;padding:0}
button.top-pill svg{width:21px;height:21px}
.section-banner{position:absolute;z-index:5;left:calc(18px * var(--s));right:calc(18px * var(--s));top:calc(68px * var(--s) + 4px);height:calc(78px * var(--s));display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 18px;border-radius:20px;background:linear-gradient(135deg,#87ead6,#61cfbd);box-shadow:inset 0 0 0 1px #9debdc,0 5px 0 #286f70,0 12px 14px -4px #082e3566;color:#0b3a3a;transform-origin:50% 0;animation:banner-swing 6.7s ease-in-out infinite}
.section-banner span{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.section-banner small{font-size:12px;font-weight:800;letter-spacing:.09em}
.section-banner strong{font-family:Outfit,DM,sans-serif;font-size:calc(22px * var(--s));letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.section-banner i{flex:none;width:50px;height:28px;border-radius:16px;background:#ffffff40;display:inline-flex;align-items:center;justify-content:center}
.section-banner i svg{width:18px;height:18px}
@keyframes banner-swing{0%{transform:rotate(0) translateY(0)}14%{transform:rotate(.6deg) translateY(1px)}28%{transform:rotate(0) translateY(1.5px)}43%{transform:rotate(-.6deg) translateY(.6px)}57%{transform:rotate(0) translateY(0)}71%{transform:rotate(.6deg) translateY(1px)}86%{transform:rotate(.2deg) translateY(.3px)}100%{transform:rotate(0) translateY(0)}}
.route-landmark{left:calc(236px * var(--s));right:auto;top:calc(300px * var(--s));width:calc(176px * var(--s))}
.trail{inset:0 auto auto 0;width:100%;height:auto}
.trail path{stroke-width:5;stroke-dasharray:0 13}
.route-stage .stop{left:0;top:0;width:104px;height:104px;translate:-50% -50%;scale:var(--s)}
.route-stage .stop .disc{left:14px;top:12px;width:76px;height:76px}
.route-stage .stop .face img{position:relative;width:46px;height:46px;object-fit:contain;transform:scaleY(1.11);filter:drop-shadow(0 2px 0 #0003)}
.route-stage .stop.locked .face img{opacity:0}
.route-stage .stop.current .ring{opacity:1;inset:0;background:conic-gradient(#ffffff40 0 100%);-webkit-mask:radial-gradient(circle,transparent 43px,#000 44px,#000 51px,transparent 52px);mask:radial-gradient(circle,transparent 43px,#000 44px,#000 51px,transparent 52px)}
.route-stage .stop.current:after{inset:2px}
.route-stage .stop.nudge .lock{animation:shake .5s}
.stop-label{position:absolute;z-index:4;translate:-50% 0;padding:3px 10px;border-radius:10px;background:#0b2629b3;color:#f2f5ef;font-size:13px;font-weight:700;white-space:nowrap;pointer-events:none;opacity:0}
.stop-label.locked{color:#c3d3d1}
.route-stage.opened .stop-label{opacity:1;transition:opacity .4s .5s}
.route-fade{position:absolute;left:0;right:0;bottom:0;height:90px;z-index:4;background:linear-gradient(#0d2c3000,#0d2c30cc);pointer-events:none}
.peek.locked{background:#8d9391}
.peek.locked .peek-meta{color:#0b2330}
a.peek-start.peek-download{flex-direction:row;gap:8px;text-decoration:none;background:#f4fff9;color:#0b2330;box-shadow:0 4px 0 #14634f}
a.peek-start.peek-download svg{width:20px;height:20px}
a.peek-start.peek-download:before{display:block}
/* Chang sits on top of the phone's corner, feet over the edge */
.corner-chang{top:-104px;bottom:auto;right:-30px;width:112px}
.device:has(.in-lesson) .corner-chang{transform:translateZ(70px) translateY(-6px)}
@media(max-width:850px){.device{margin-top:72px}.corner-chang{top:-86px;bottom:auto;right:-6px;width:92px}.device:has(.in-lesson) .corner-chang{transform:none;opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.section-banner{animation:none}}
.home-hero .device{margin-top:96px}
.corner-chang{top:-96px;right:-34px;width:112px}
@media(max-width:850px){.home-hero .device{margin-top:76px}.corner-chang{top:-72px;bottom:auto;right:-4px;width:88px}}
.corner-chang{top:-112px}
.device:has(.in-lesson) .corner-chang{transform:translateZ(70px) translateY(-14px)}
@media(max-width:850px){.corner-chang{top:-90px}.device:has(.in-lesson) .corner-chang{transform:translateY(-12px)}}
/* no top bar: the section banner sits at the top; Chang sits on the bottom edge of the phone */
.section-banner{top:14px}
.home-hero .device{margin-top:0}
.corner-chang{top:auto;bottom:-34px;right:22px;width:104px}
.device:has(.in-lesson) .corner-chang{transform:translateZ(70px) translateX(96px) translateY(-4px) rotate(4deg)}
@media(max-width:850px){.home-hero .device{margin-top:0;margin-bottom:34px}.corner-chang{top:auto;bottom:-30px;right:16px;width:84px}.device:has(.in-lesson) .corner-chang{transform:translateY(62%);pointer-events:none}}
.corner-chang{bottom:-8px}
@media(max-width:850px){.corner-chang{bottom:-10px}.home-hero .device{margin-bottom:14px}}
.corner-chang{bottom:8px}
@media(max-width:850px){.corner-chang{bottom:4px}.home-hero .device{margin-bottom:0}}
.ls-opt.ls-mean-opt{min-height:72px}.ls-opt.ls-mean-opt strong{font-family:DM,system-ui,sans-serif;font-size:19px;font-weight:700}.route-stage .route-lesson .ls-body h2 span[lang]{font-family:Thai,sans-serif}
@media(max-width:850px){.device:has(.in-lesson) .corner-chang{transform:translateY(46px) scale(.8);opacity:0;pointer-events:none;transition:transform .35s,opacity .25s}}
/* stops as in the app's StopButton: white star, label only on the current stop, START bubble bouncing above it */
.route-stage .stop .face svg{width:31px;height:31px}
.route-stage .stop.locked{filter:saturate(0);opacity:.82}
.route-stage .stop.current .disc{animation:breathe-op 6.2s ease-in-out infinite}
@keyframes breathe-op{50%{opacity:.88}}
.route-stage .stop.current .ring{-webkit-mask:radial-gradient(circle,transparent 46px,#000 47px,#000 54px,transparent 55px);mask:radial-gradient(circle,transparent 46px,#000 47px,#000 54px,transparent 55px);background:#ffffff38}
.route-stage .stop:focus{outline:none}
.route-stage .stop:focus-visible{outline:3px solid #ffffffcc;outline-offset:4px}
.stop-label{padding:0;background:none;font-size:calc(17px * var(--s));font-weight:700;color:#eff5ee;text-shadow:0 1px 3px #072d328c}
.start-bubble{position:absolute;z-index:5;translate:-50% -100%;padding:calc(9px * var(--s)) calc(14px * var(--s));border-radius:99px;background:linear-gradient(#e7ffe5,#8edfc0);box-shadow:inset 0 0 0 1px #efffe2,0 3px 0 #367f6c,0 5px 6px #123d36aa;color:#123d35;font-size:max(12px,calc(13px * var(--s)));font-weight:800;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;pointer-events:none;animation:bubble-bob 1.4s ease-in-out infinite}
.start-bubble:after{content:"";position:absolute;left:50%;bottom:calc(-6px * var(--s));translate:-50% 0;border:calc(6px * var(--s)) solid transparent;border-bottom:0;border-top:calc(7px * var(--s)) solid #8edfc0}
@keyframes bubble-bob{50%{transform:translateY(-5px)}}
.route-stage:has(.peek-layer .peek) .start-bubble{opacity:1}
@media(prefers-reduced-motion:reduce){.start-bubble,.route-stage .stop.current .disc{animation:none}}

/* ===== Store badges (App Store / Google Play style) ===== */
.store-badges{display:flex;flex-wrap:wrap;gap:12px;align-items:center;max-width:none}
:root[data-theme] .store-badge,.store-badge{display:inline-flex;align-items:center;gap:10px;height:60px;min-width:190px;padding:0 20px 0 16px;border-radius:13px;background:#000;color:#fff;border:1.5px solid #a6a6a6;box-shadow:0 8px 20px -10px #0008;text-decoration:none;cursor:pointer;font:inherit;transition:transform .15s,box-shadow .15s}
.store-badge svg{width:30px;height:30px;flex:none}
.store-badge.google svg{width:28px;height:30px}
.store-badge span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05;text-align:left}
.store-badge small{font-size:12px;font-weight:500;letter-spacing:.01em;opacity:1}
.store-badge.google small{text-transform:uppercase;font-size:12px;letter-spacing:.04em}
.store-badge strong{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",DM,sans-serif;font-size:24px;font-weight:600;letter-spacing:-.02em}
.store-badge:hover{transform:translateY(-2px);box-shadow:0 12px 24px -10px #0009}
.store-badge:active{transform:translateY(1px)}
.store-badge:focus-visible{outline:3px solid var(--h-blue,#246b92);outline-offset:3px}
:root[data-theme=dark] .store-badge{border-color:#cfd8d6}
/* the visitor's store leads; the other one stays, smaller */
.store-badges[data-lead=ios] .store-badge:nth-child(2),.store-badges[data-lead=android] .store-badge:nth-child(2){height:48px;min-width:0;padding:0 14px 0 12px;opacity:.92}
.store-badges[data-lead=ios] .store-badge:nth-child(2) strong,.store-badges[data-lead=android] .store-badge:nth-child(2) strong{font-size:19px}
.store-badges[data-lead=ios] .store-badge:nth-child(2) svg,.store-badges[data-lead=android] .store-badge:nth-child(2) svg{width:22px;height:24px}
.store-badges[data-lead=ios] .store-badge:first-child,.store-badges[data-lead=android] .store-badge:first-child{height:64px;min-width:220px}
.home-final .store-badges,.route-done .store-badges{justify-content:center}
@media(max-width:560px){
 .hero-actions .store-badges{width:100%}
 .hero-actions .store-badge:first-child{flex:1 1 100%;justify-content:center}
 .store-badges[data-lead=both] .store-badge{flex:1 1 100%;justify-content:center}
 .store-badges[data-lead=ios] .store-badge:nth-child(2),.store-badges[data-lead=android] .store-badge:nth-child(2){margin:0 auto}
}
a.peek-start.peek-download svg{width:20px;height:22px}
.dl-bar .dl-bar-button{border:0;cursor:pointer;font:inherit;font-weight:800}

/* ===== Store badges, official look: same height, thin grey border, small radius, no shadow ===== */
.store-badges{gap:10px}
:root[data-theme] .store-badge,.store-badge,.store-badges[data-lead] .store-badge:first-child,.store-badges[data-lead] .store-badge:nth-child(2){height:54px;min-width:0;padding:0 16px 0 12px;gap:9px;border-radius:9px;border:1px solid #a6a6a6;background:#000;color:#fff;box-shadow:none;opacity:1;transform:none;transition:opacity .15s}
.store-badge:hover{transform:none;box-shadow:none;opacity:.86}
.store-badge:active{transform:none;opacity:.75}
.store-badge svg,.store-badges[data-lead] .store-badge svg{width:26px;height:28px}
.store-badge.google svg,.store-badges[data-lead] .store-badge.google svg{width:24px;height:26px}
.store-badge span{line-height:1.08}
.store-badge small,.store-badge.google small{font-size:12px;font-weight:400;letter-spacing:0;text-transform:none}
.store-badge.google small{text-transform:uppercase;letter-spacing:.03em}
.store-badge strong,.store-badges[data-lead] .store-badge strong{font-size:22px;font-weight:500;letter-spacing:-.03em}
:root[data-theme=dark] .store-badge{border-color:#a6a6a6}
.store-alt{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;border:0;background:none;color:var(--h-muted,#4f6a69);font:inherit;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
@media(max-width:560px){
 .store-badges[data-lead=ios],.store-badges[data-lead=android]{flex-direction:column;align-items:center;gap:4px}
 .hero-actions .store-badges .store-badge:first-child,.store-badges[data-lead] .store-badge:first-child{flex:none;width:auto;justify-content:flex-start;height:58px}
 .store-badges[data-lead=both] .store-badge{flex:1 1 0;justify-content:center;padding:0 10px}
 .store-badges[data-lead=both] .store-badge strong{font-size:19px}
}
@media(max-width:360px){.store-badges[data-lead=both]{flex-direction:column;align-items:stretch}}

/* ===== Badges: one size everywhere. Phones: own store on top, centred, the other right below. Desktop: side by side. ===== */
.store-badges,.store-badges[data-lead]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}
:root[data-theme] .store-badges .store-badge,.store-badges .store-badge,.store-badges[data-lead] .store-badge:first-child,.store-badges[data-lead] .store-badge:nth-child(2),.hero-actions .store-badges .store-badge:first-child{flex:none;width:200px;height:56px;justify-content:flex-start;padding:0 12px 0 16px;margin:0}
.store-badges .store-badge strong,.store-badges[data-lead] .store-badge strong,.store-badges[data-lead=both] .store-badge strong{font-size:22px}
.store-badges .store-badge svg{width:26px;height:28px}
.store-badges .store-badge.google svg{width:24px;height:26px}
.home-final .store-badges,.resource .store-badges{justify-content:center}
.resource .store-badges{justify-content:flex-start}
@media(max-width:850px){
 .store-badges,.store-badges[data-lead]{flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%}
 .hero-actions{justify-content:center}
}
@media(max-width:850px){.store-badges[data-lead=both]{flex-direction:row;flex-wrap:wrap}}

/* ===== Badges under the game, side by side, gently floating with a passing shine ===== */
.device-col{display:flex;flex-direction:column;align-items:center;justify-self:center;width:100%;max-width:440px}
.hero-stores{width:100%;margin-top:44px;display:flex;justify-content:center}
.hero-stores .store-badges,.hero-stores .store-badges[data-lead]{flex-direction:row;flex-wrap:nowrap;justify-content:center;gap:12px;width:100%}
.hero-stores .store-badges .store-badge,.hero-stores .store-badges[data-lead] .store-badge:first-child,.hero-stores .store-badges[data-lead] .store-badge:nth-child(2){flex:1 1 0;width:auto;max-width:200px;min-width:0;position:relative;overflow:hidden;animation:badge-float 3.6s ease-in-out infinite}
.hero-stores .store-badges .store-badge:nth-child(2){animation-delay:-1.8s}
.hero-stores .store-badge:after{content:"";position:absolute;top:-20%;bottom:-20%;width:34%;left:-50%;background:linear-gradient(90deg,#fff0,#ffffff38,#fff0);transform:skewX(-22deg);animation:badge-shine 5s ease-in-out infinite;pointer-events:none}
.hero-stores .store-badge:nth-child(2):after{animation-delay:.35s}
@keyframes badge-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes badge-shine{0%,62%{left:-50%}82%,100%{left:130%}}
.hero-stores .store-badge:hover{animation-play-state:paused}
@media(max-width:850px){.hero-stores{margin-top:40px}}
@media(max-width:430px){
 .hero-stores .store-badges .store-badge,.hero-stores .store-badges[data-lead] .store-badge:first-child,.hero-stores .store-badges[data-lead] .store-badge:nth-child(2){height:52px;padding:0 10px 0 10px;gap:7px;justify-content:center}
 .hero-stores .store-badge strong,.hero-stores .store-badges[data-lead] .store-badge strong{font-size:18px}
 .hero-stores .store-badge svg{width:22px;height:24px}
 .hero-stores .store-badge.google svg{width:20px;height:22px}
}
@media(max-width:360px){
 .hero-stores .store-badges{gap:8px}
 .hero-stores .store-badge strong,.hero-stores .store-badges[data-lead] .store-badge strong{font-size:16px}
 .hero-stores .store-badge small{font-size:12px}
 .hero-stores .store-badges .store-badge,.hero-stores .store-badges[data-lead] .store-badge:first-child,.hero-stores .store-badges[data-lead] .store-badge:nth-child(2){padding:0 8px;gap:5px}
}
@media(prefers-reduced-motion:reduce){.hero-stores .store-badge,.hero-stores .store-badge:after{animation:none}.hero-stores .store-badge:after{display:none}}
.peek .peek-title{position:relative;z-index:1;font-family:Outfit,DM,sans-serif;font-size:22px;letter-spacing:-.015em;margin:0;line-height:1.15;color:inherit}
/* header download button: never cut or overflow in long languages; icon only on narrow phones (text stays for screen readers) */
:root[data-theme] .header-cta span{max-width:none;white-space:nowrap;overflow:visible}
@media(max-width:520px){:root[data-theme] .header-cta{padding:10px;min-width:44px;min-height:44px;justify-content:center}:root[data-theme] .header-cta span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
