@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800;900&display=swap');
:root{--navy:#091627;--indigo:#111d53;--yellow:#FFCF00;--bright-yellow:#FFCF00;--purple:#9B79ED;--light-purple:#eee0ff;--cream:#FFFFF5;--paper:#ffffff;--muted:#516386;--line:#e3d9ee;--shadow:0 12px 24px rgba(18,23,78,.09);--radius:23px;font-family:Inter,Arial,sans-serif;color:var(--navy);background:#fffefa;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(124deg,#fffefb,#fffdfb 47%,#fffafa)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8c31f9;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Montserrat,Inter,sans-serif}h1{font-size:clamp(2.55rem,5vw,5.15rem);font-weight:900;line-height:1.12;letter-spacing:-.055em}h2{font-size:clamp(1.7rem,3vw,2.75rem);font-weight:800;letter-spacing:-.04em}h3{font-size:1.18rem;font-weight:800;letter-spacing:-.025em}p{line-height:1.55;color:var(--muted)}.skip-link{position:absolute;left:-9999px;z-index:100}.skip-link:focus{left:12px;top:10px;background:white;padding:10px}.site-header{max-width:1600px;margin:auto;padding:16px clamp(18px,4vw,54px);display:flex;align-items:center;gap:20px;justify-content:space-between;position:relative;z-index:4}.brand{display:flex;align-items:center;gap:10px;background:none;border:none;color:#0a164c;padding:0;white-space:nowrap}.brand-name{font:900 clamp(1.7rem,3vw,2.6rem) Montserrat,Arial,sans-serif;letter-spacing:-.055em}.brand-divider{height:27px;width:2px;background:#ae42ff;margin:0 8px}.brand-tagline{font-weight:800;color:var(--purple);font-size:.92rem}.brand-emblem{position:relative;width:55px;height:50px;display:inline-block}.brand-emblem i,.brand-emblem b{position:absolute;width:17px;height:49px;top:0;border-radius:20px;transform-origin:center 80%}.brand-emblem i{left:11px;background:linear-gradient(#ffe700,#f0ab00);transform:rotate(-35deg)}.brand-emblem b{left:25px;background:linear-gradient(#e6a4ff,#a434f2);transform:rotate(29deg)}.brand-eye{position:absolute;left:19px;top:32px;border:3px solid #151a4e;border-radius:50%;background:#ffdf00;width:21px;height:21px;line-height:13px;font-size:12px;color:#171d50;z-index:2}.primary-nav,.header-actions{display:flex;gap:clamp(10px,1.5vw,28px);align-items:center}.nav-link{background:none;border:none;color:#111747;font-weight:750;padding:10px 5px;white-space:nowrap}.nav-link[aria-current="page"]{color:var(--purple)}.demo-chip,.eyebrow{color:var(--purple);font-weight:900;letter-spacing:.13em;font-size:.75rem}.demo-chip{font-size:.61rem;background:#f1e7ff;border-radius:50px;padding:10px}.button{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;border-radius:999px;font-weight:850;min-height:53px;padding:12px 30px;color:#091627;box-shadow:0 3px 0 rgba(1,12,47,.08);transition:transform .15s ease,box-shadow .15s ease}.button:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(18,23,78,.12)}.button-yellow{background:linear-gradient(145deg,#FFE600,#FFC300)}.button-ghost{background:#fff;border:1.6px solid #a88fef}.button-purple{background:linear-gradient(135deg,#8d34fb,#b976ff);color:white}.button-small{min-height:40px;padding:9px 18px;font-size:.85rem}.button-link{background:none;border:0;color:var(--purple);font-weight:800}.mobile-menu{display:none;background:none;border:0;font-size:26px}.demo-banner{text-align:center;background:#faf4ff;border-top:1px solid #f4e9fd;border-bottom:1px solid #f4e9fd;padding:7px 12px;color:#735b9b;font-size:.74rem;font-weight:650}main{min-height:calc(100vh - 170px);overflow:hidden}.container{width:min(1435px,calc(100% - 70px));margin:0 auto;position:relative}.orbit{position:absolute;pointer-events:none;border:1.5px solid transparent;border-top-color:#a849ff;border-radius:50%;width:120%;height:370px;top:-190px;left:-20%;transform:rotate(-7deg);opacity:.88}.orbit:after{content:"";position:absolute;inset:8px 0 auto 0;border-top:1px solid #ffc900;border-radius:50%;height:370px}.hero{position:relative;padding:42px 0 18px}.hero-grid{display:grid;grid-template-columns: 41% 59%;gap:18px;align-items:center;min-height:480px}.hero-copy{padding:35px 15px 35px 25px;position:relative;z-index:1}.hero-copy h1{margin:18px 0 18px}.gradient-text{background:linear-gradient(110deg,#c44dff,#7a19ef 80%);color:transparent;background-clip:text}.hero-copy p{font-size:1.25rem;max-width:520px;margin:0 0 24px}.hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.tiny-note{font-size:.77rem;margin-top:12px!important}.math-stage{background:linear-gradient(150deg,#1a4d86,#071d3c 75%);border-radius:65px;padding:27px 32px 35px;position:relative;box-shadow:0 15px 30px rgba(9,22,39,.09)}.math-panel{background:linear-gradient(#faf3ff,#fff);border:6px solid #d8aeff;border-radius:51px;padding:25px 38px;box-shadow:inset 0 0 0 2px #fff,0 6px 0 #8f35e2;min-height:320px}.stage-mascot{position:absolute;right:17px;bottom:8px;font-size:2rem;transform:rotate(-20deg);filter:drop-shadow(0 3px 4px #0004)}.lesson-heading{font:800 1.55rem Montserrat,Inter,Arial,sans-serif;letter-spacing:-.035em;text-align:center;background:#e9dbff;border-radius:40px;padding:12px;margin-bottom:15px}.equation{font:900 clamp(2.3rem,5vw,4.25rem) Montserrat,Inter,Arial,sans-serif;text-align:center;letter-spacing:-.035em;line-height:1.4;color:#08174a}.equation span{color:#9333ea}.choices,.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}.choice{border:2px solid #b347ff;background:linear-gradient(#fff,#faf4ff);box-shadow:0 4px 0 #d6b6ee;border-radius:17px;padding:12px;font:900 clamp(1.35rem,2.5vw,2.15rem) Montserrat,Inter,Arial,sans-serif;color:var(--navy);min-height:64px}.choice:not(:disabled):hover{background:#f0e1ff;transform:translateY(-2px)}.choice.correct{border-color:#3aa76c;background:#ddfbe9}.choice.incorrect{border-color:#d67070;background:#ffebeb}.mode-tabs{display:flex;border:1px solid #d2a3ff;background:#eaddff;border-radius:40px;gap:0;margin:0 auto 18px;overflow:hidden}.mode-tabs button{flex:1;min-width:0;background:none;border:none;padding:10px 6px;font-weight:700;color:#1a194c;border-radius:35px}.mode-tabs button[aria-pressed="true"]{background:linear-gradient(145deg,#FFE600,#FFC300);box-shadow:0 2px 6px #5c2a8d40;font-weight:900}.count-row{display:flex;gap:12px;align-items:center;justify-content:center;margin:8px auto 13px;min-height:85px}.counter-group{border:1.7px solid #c577ff;background:#fff;border-radius:20px;padding:12px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;max-width:240px;min-width:120px;box-shadow:0 5px 9px #8e4db118}.counter{display:inline-block;border-radius:50%;width:28px;height:28px;background:linear-gradient(135deg,#bf70ff,#7515dc);box-shadow:inset -3px -3px 5px #4613ae66,0 2px 4px #521e7730}.counter.gold{background:linear-gradient(135deg,#fff58a,#ffb900);box-shadow:inset -3px -3px 5px #a6700066}.count-plus{font:800 2rem Montserrat,Inter,Arial,sans-serif}.section-head{text-align:center;margin:48px auto 22px}.section-head h2{margin-bottom:9px}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:18px auto 26px;padding:18px 8px;border-top:1px solid #ebdfed}.feature{display:flex;align-items:center;gap:15px;justify-content:center}.feature-icon{font-size:2.5rem;color:#8f34ee}.feature strong{font:800 1.15rem Montserrat,Inter,Arial,sans-serif}.world-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:25px auto 0}.world-card{background:#fff;border:1px solid #eee0ff;border-radius:25px;overflow:hidden;box-shadow:var(--shadow);position:relative}.world-visual{height:110px;background:linear-gradient(135deg,#424b8e,#8a51c9);display:flex;align-items:center;justify-content:center;font-size:3.1rem}.world-card:nth-child(2) .world-visual{background:linear-gradient(135deg,#006c9d,#1ed4c6)}.world-card:nth-child(3) .world-visual{background:linear-gradient(135deg,#624552,#edb455)}.world-card-content{padding:17px}.world-card h3{margin:0 0 4px}.world-card p{font-size:.8rem;margin:0}.pill{display:inline-block;padding:7px 10px;border-radius:30px;background:#ead8ff;color:#8533c9;font-size:.66rem;font-weight:800}.site-footer{max-width:1535px;margin:44px auto 0;padding:20px 3.2%;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px;color:#121c4f}.footer-brand{font-family:Montserrat;font-weight:900;font-size:1.25rem}.footer-tagline{font-family:Inter,Arial,sans-serif;font-size:.8rem;font-weight:700;color:#882bdb;margin-left:12px}.mini-emblem{color:#ffc400}.footer-links{display:flex;align-items:center;gap:15px;font-size:.77rem;color:#667}.footer-links button{border:0;background:none;color:#1a1b4d;font-weight:700}.page-top{position:relative;padding:48px 0 10px;text-align:center}.page-top .eyebrow{margin-bottom:12px}.page-top h1{font-size:clamp(2.1rem,4vw,3.55rem);max-width:1000px;margin:0 auto 12px}.page-top p{font-size:1.06rem;max-width:710px;margin:0 auto}.content{padding:22px 0 65px}.profile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin:18px 0 30px}.profile-card{border:2px solid #e7d4fa;background:white;border-radius:28px;overflow:hidden;text-align:center;box-shadow:var(--shadow);padding:0 0 20px;transition:.2s;position:relative}.profile-card:hover{border-color:#983bff;transform:translateY(-5px)}.profile-card.selected{border-color:#ffc400;box-shadow:0 0 0 3px #ffe998, var(--shadow)}.portrait{background-image:url('assets/hero-team.png');background-size:680% auto;background-repeat:no-repeat;background-position-y:0;aspect-ratio:1.06/1;width:100%;background-color:#f6e9ff}.portrait.p0{background-position-x:0%}.portrait.p1{background-position-x:29.5%}.portrait.p2{background-position-x:59.1%}.portrait.p3{background-position-x:88.7%}.profile-card h3{font-size:1.55rem;margin:15px 0 1px}.profile-card .role{color:#8232d5;font-weight:800;font-size:.85rem}.profile-card p{font-size:.8rem;padding:0 12px;min-height:38px}.profile-badge{position:absolute;top:13px;left:12px;background:#fff9dc;color:#554102;padding:7px 10px;border-radius:20px;font-size:.68rem;font-weight:900}.selected-marker{position:absolute;top:11px;right:11px;background:#ffcc00;border-radius:20px;padding:6px 10px;font-size:.8rem;font-weight:900}.surface{border:1.5px solid #e7d7fb;border-radius:27px;background:#fff;padding:26px;box-shadow:var(--shadow)}.surface.soft{background:linear-gradient(135deg,#fbf8ff,#fffdfa)}.two-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);gap:22px}.dashboard{display:grid;grid-template-columns:1fr 1fr;gap:20px}.welcome-banner{grid-column:1/-1;display:flex;align-items:center;gap:22px;justify-content:space-between;overflow:hidden;background:linear-gradient(115deg,#f8efff,#fffffb)}.welcome-banner .learning-card{display:flex;gap:15px;align-items:center;justify-content:space-between;min-height:160px}.badge-icon{width:65px;height:65px;border-radius:20px;background:#e8d3fc;display:grid;place-items:center;font-size:2rem}.learning-card p,.learning-card h3{margin-bottom:6px}.progress-track{height:12px;border-radius:100px;background:#e6d9ff;overflow:hidden}.progress-fill{height:100%;border-radius:100px;background:linear-gradient(90deg,#9d4bff,#e3b7fa);transition:width .2s}.practice-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.68fr);gap:22px;align-items:start}.practice-card{padding:24px;background:linear-gradient(145deg,#fdf8ff,#fff);border:5px solid #d9aaff;border-radius:34px;box-shadow:0 8px 0 #9f55dd}.practice-card .mode-tabs{margin-bottom:24px}.exercise-box{min-height:340px;text-align:center;display:flex;flex-direction:column;justify-content:center}.exercise-box h2{font-size:1.3rem;color:#1b2860;margin-bottom:18px}.exercise-box .equation{font-size:clamp(2rem,4.5vw,3.6rem)}.practice-card .count-row{min-height:105px}.support-note{border-radius:16px;background:#f4e8ff;padding:14px;color:#452970;line-height:1.45}.result-note{padding:15px;border-radius:16px;margin:16px 0;font-weight:750}.result-note.good{background:#e7f8ef;color:#246440}.result-note.try{background:#fff1e6;color:#8e4b25}.tool-row{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-top:20px}.muted{color:var(--muted)}.mini-label{font-size:.67rem;letter-spacing:.09em;font-weight:900;color:#675c8d}.select-row{display:flex;gap:10px;flex-wrap:wrap}.select-row button{border:1.5px solid #d7b6f5;background:#fff;padding:10px 14px;border-radius:18px;color:#4a2471;font-weight:800}.select-row button.active{background:#e9d6ff;border-color:#9c4eed}.choice-stack{display:grid;gap:10px}.choice-stack button{display:block;text-align:left;border:1.5px solid #e5d4f9;background:#fff;padding:16px;border-radius:16px;color:#202256;font-weight:700}.choice-stack button.chosen{border-color:#9141e1;background:#eee0ff}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat-number{font:900 2.4rem Montserrat,Inter,Arial,sans-serif;color:#8035db;margin:10px 0}.report-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid #eee}.report-row:last-child{border:0}.tag{display:inline-flex;padding:7px 10px;border-radius:30px;background:#f2e7ff;color:#7129b2;font-size:.73rem;font-weight:800}.tag.green{background:#e6f7ec;color:#2b7752}.tag.gray{background:#f1f0f4;color:#667}.task-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.task-dots{display:flex;gap:6px}.task-dot{height:10px;width:25px;background:#e6d6f9;border-radius:100px}.task-dot.done{background:#883cf1}.focus-active .practice-layout{grid-template-columns:1fr}.focus-active .practice-side,.focus-active .task-top .mini-label,.focus-active .secondary-distraction{display:none}.focus-active .exercise-box{min-height:400px}.focus-active .practice-card{max-width:880px;width:100%;margin:auto}.screen-reader-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.label-row{display:flex;justify-content:space-between;margin-bottom:8px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid #eee}.settings-row:last-child{border:0}.settings-row label{font-weight:800}.settings-row select{padding:12px 14px;border-radius:13px;background:#fff;border:1px solid #d2b9e8}.note-box{background:#fff8e6;padding:14px 17px;border:1px solid #ffe5a1;border-radius:16px;color:#6b5517;font-size:.85rem;line-height:1.45}.progress-circle{display:grid;place-items:center;width:110px;height:110px;border-radius:50%;background:conic-gradient(#ac4fff var(--angle),#efdefe 0);font:900 1.5rem Montserrat,Inter,Arial,sans-serif;margin:0 auto 12px}.progress-circle>span{background:#fff;width:86px;height:86px;border-radius:50%;display:grid;place-items:center}.demo-field{width:100%;height:48px;border:1.5px solid #d9b9f3;border-radius:13px;padding:12px;background:white}.muted-small{font-size:.76rem}.state-calm .world-cards{display:none}@media(max-width:1180px){.brand-tagline,.demo-chip{display:none}.site-header{gap:10px}.primary-nav{gap:9px}.hero-grid{grid-template-columns:1fr 1.1fr}.hero-copy{padding-left:0}.math-stage{padding:20px}.math-panel{padding:20px}.profile-grid{gap:12px}}@media(max-width:780px){.site-header{padding:12px 18px;flex-wrap:wrap}.brand-name{font-size:1.65rem}.brand-emblem{transform:scale(.8);margin-right:-10px}.brand-divider{display:none}.primary-nav{order:5;flex-basis:100%;display:none;justify-content:center;flex-wrap:wrap}.primary-nav.mobile-open{display:flex}.header-actions{margin-left:auto}.header-actions .button{padding:9px 12px;min-height:36px;font-size:.75rem}.mobile-menu{display:block}.container{width:calc(100% - 30px)}.hero{padding-top:22px}.hero-grid,.two-column,.practice-layout{grid-template-columns:1fr}.hero-copy{padding:10px 2px}.hero-copy p{font-size:1rem}.math-stage{border-radius:35px}.math-panel{border-radius:25px;padding:16px;min-height:260px}.equation{font-size:2.8rem}.section-head{margin-top:28px}.profile-grid{grid-template-columns:repeat(2,1fr)}.dashboard{grid-template-columns:1fr}.feature-strip{grid-template-columns:1fr;gap:10px}.feature{justify-content:flex-start}.world-cards{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.site-footer{flex-direction:column;align-items:flex-start}.footer-links{flex-wrap:wrap}.mode-tabs button{font-size:.76rem;padding:11px 3px}.practice-card{padding:14px}.practice-side{order:2}.welcome-banner{flex-wrap:wrap}.welcome-banner .page-top{padding-top:32px}.page-top h1{font-size:2.1rem}.settings-row{align-items:flex-start}.settings-row select{max-width:140px}.orbit{width:160%;left:-40%}}@media(max-width:400px){.header-actions .button{font-size:.68rem}.brand-name{font-size:1.45rem}.profile-grid{gap:8px}.profile-card h3{font-size:1.25rem}.choices{gap:7px}.choice{min-height:58px;padding:9px}.count-row{gap:5px}.counter{width:20px;height:20px}.counter-group{min-width:90px;padding:8px;gap:4px}.math-stage{padding:14px}.math-panel{padding:11px}.mode-tabs button{font-size:.65rem}.hero-copy h1{font-size:2.5rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* VUMBO visual refinement v0.2 — approved character sheet portraits, framed consistently. */
.brand-mark{width:59px;height:54px;object-fit:contain;flex:none;filter:drop-shadow(0 3px 1px rgba(34,12,83,.07))}
.footer-logo-mark{width:39px;height:38px;object-fit:contain;vertical-align:middle;margin-right:5px}



.profile-card:hover 
.profile-card{border-radius:27px;padding-bottom:20px;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.profile-card h3{margin-top:12px}
.profile-card.selected{box-shadow:0 0 0 3px #fff0a8,0 15px 35px rgba(49,24,117,.16)}
.profile-badge,.selected-marker{z-index:2;box-shadow:0 3px 10px rgba(15,26,70,.09)}
.profile-card p{min-height:32px}

.avatar-small 
.welcome-banner 
.stage-mascot{position:absolute;right:-14px;bottom:-7px;width:110px;height:104px;z-index:2;transform:rotate(-9deg);filter:drop-shadow(0 9px 9px rgba(6,14,44,.15));animation:buddyBob 5s ease-in-out infinite}
.stage-sparkle{position:absolute;z-index:2;pointer-events:none;color:#ffdc3d;text-shadow:0 2px 7px rgba(255,215,50,.4)}
.sparkle-a{top:12px;left:14px;font-size:1.7rem;animation:sparkle 4s ease-in-out infinite}
.sparkle-b{bottom:25px;left:28px;font-size:1.2rem;animation:sparkle 5s ease-in-out 1s infinite}
.page-buddy{width:78px;height:74px;position:absolute;right:2%;top:20px;opacity:.95;filter:drop-shadow(0 5px 7px rgba(7,18,50,.1));animation:buddyBob 5s ease-in-out infinite;pointer-events:none}
.page-top .eyebrow,.page-top h1,.page-top p{position:relative;z-index:1}
.math-stage{border-radius:56px;box-shadow:0 18px 46px rgba(5,21,61,.18),inset 0 1px 0 rgba(255,255,255,.1);background:radial-gradient(circle at 25% 5%,#245d9a,transparent 53%),linear-gradient(145deg,#123f79,#071731 84%)}
.math-panel{box-shadow:inset 0 0 0 2px #fff,0 8px 0 #8b34d8,0 20px 45px rgba(20,8,69,.18)}
.choice{transition:transform .19s ease,background .2s ease,box-shadow .19s ease}
.choice:focus-visible{outline-offset:4px}
.mode-tabs button{transition:background .2s,transform .18s}
.mode-tabs button[aria-pressed="true"]{transform:scale(1.012)}
.button-yellow{background:linear-gradient(145deg,#ffe600,#ffc300);box-shadow:0 4px 0 rgba(171,116,0,.17),0 7px 17px rgba(222,178,0,.12)}
.button:hover:not(:disabled){transform:translateY(-3px)}
.profile-grid{align-items:stretch}
.profile-card{display:flex;flex-direction:column;align-items:stretch}
.profile-card .tag{align-self:center;margin-top:auto}
.world-card{transition:transform .22s ease,box-shadow .22s ease}
.world-card:hover{transform:translateY(-3px);box-shadow:0 17px 30px rgba(26,14,75,.14)}
.world-visual{position:relative;overflow:hidden}
.world-visual:after{content:"";position:absolute;width:260px;height:180px;border-radius:50%;left:60%;top:-100px;border:1px solid rgba(255,255,255,.4);transform:rotate(-24deg)}
.hero-copy .eyebrow:before{content:"✦";display:inline-block;margin-right:7px;color:#ffcb00}
.eyebrow{letter-spacing:.12em}
@keyframes buddyBob{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-8px) rotate(-2deg)}}
@keyframes sparkle{0%,100%{opacity:.55;transform:scale(.85)}50%{opacity:1;transform:scale(1.13)}}
@media(min-width:1000px){.hero-copy{padding-right:28px}.profile-grid{gap:19px}}
@media(max-width:1180px){}
@media(max-width:780px){.stage-mascot{width:83px;height:78px;right:-12px;bottom:-12px}.page-buddy{width:53px;right:-4px;top:-6px;opacity:.65}.brand-mark{width:44px;height:42px;margin-right:-3px}}
@media(max-width:420px){.profile-card h3{font-size:1.17rem}.profile-badge{font-size:.59rem;padding:6px 8px}.brand-mark{width:38px;height:37px}.page-buddy{opacity:.3}.stage-sparkle{display:none}}
.reduce-motion *, .reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.stage-mascot,.page-buddy,.stage-sparkle{animation:none!important}}


/* v0.3 official assets integration */
.brand{min-width:240px;justify-content:flex-start}
.brand-lockup{display:block;width:clamp(210px,25vw,320px);height:auto}
.brand-mark{display:none}
.brand-name,.brand-divider,.brand-tagline{display:none}
.footer-lockup{display:block;width:220px;max-width:100%;height:auto}
.footer-brand{display:flex;align-items:center}
.page-buddy,.stage-mascot{filter:drop-shadow(0 7px 16px rgba(23,29,80,.18))}
.page-buddy{width:74px;height:74px;object-fit:contain;opacity:.92}
.stage-mascot{width:92px;height:92px;object-fit:contain;right:18px;bottom:10px;transform:rotate(-8deg)}
.profile-card{background:linear-gradient(180deg,#ffffff 0%, #fffdf8 100%)}
.profile-card.selected{box-shadow:0 0 0 3px #ffe998, 0 12px 24px rgba(18,23,78,.12)}
.profile-badge{background:linear-gradient(145deg,#FFE600,#FFC300)}
.button-yellow,.mode-tabs button[aria-pressed="true"]{background:linear-gradient(145deg,#FFE600,#FFC300)}
.brand:hover,.footer-brand:hover{opacity:.96}
@media(max-width:780px){.brand-lockup{width:180px}.footer-lockup{width:185px}.stage-mascot{width:78px;height:78px;right:-6px;bottom:-6px}.page-buddy{width:54px;height:54px}}
@media(max-width:420px){.brand-lockup{width:155px}.footer-lockup{width:170px}}

/* v0.3.1 — single authoritative portrait geometry, following Double browser QA. */
.portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: radial-gradient(circle at 40% 10%, #faf3ff 0%, #ede2ff 67%, #e5d7ff 100%);
  isolation: isolate;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28px;
  background: linear-gradient(0deg, rgba(253,249,255,.75), transparent);
  pointer-events: none;
}
.profile-card .portrait-frame { height: auto; aspect-ratio: 1 / 1; }
.portrait-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: none;
  transition: transform .35s ease;
}
.profile-card:hover .portrait-photo { transform: scale(1.03); }
.avatar-small {
  width: 91px;
  height: 91px;
  aspect-ratio: 1 / 1;
  flex: 0 0 91px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(38,13,75,.13);
  overflow: hidden;
}
.avatar-small .portrait-photo {
  object-fit: cover;
  object-position: 50% 18%;
  transform: none;
}
.welcome-banner .avatar-small { width: 110px; height: 110px; flex-basis: 110px; }
@media (max-width: 780px) {
  .welcome-banner .avatar-small { width: 91px; height: 91px; flex-basis: 91px; }
}

/* v0.3.2: photo alignment, learner cards, responsive layout and accessibility */
.profile-grid{grid-template-columns:repeat(4,minmax(0,1fr));justify-items:center}
.profile-card{max-width:290px;width:100%;justify-self:center;display:flex;flex-direction:column;align-items:stretch}
.portrait-frame{display:block;position:relative;width:100%;overflow:hidden;background:#fcfaf4;isolation:isolate}
.profile-card .portrait-frame{height:auto;aspect-ratio:4/5}
.portrait-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%;transform:none;transition:transform .2s ease}
.profile-card:hover .portrait-photo{transform:scale(1.03)}
.profile-card .portrait-frame::after{content:"";position:absolute;left:0;right:0;bottom:0;height:18px;background:linear-gradient(to top,rgba(255,255,245,.7),transparent);pointer-events:none}
.avatar-small{width:96px;height:96px;min-width:96px;flex:0 0 96px;border-radius:50%;aspect-ratio:1;overflow:hidden;border:3px solid #e2c9ff;background:#fffdf6}
.avatar-small .portrait-photo{width:100%;height:100%;object-fit:cover;object-position:50% 28%;transform:none}
.profile-status{margin:5px 0 12px;border:1px solid #9c79ed;background:#faf7ff;border-radius:12px;padding:12px 18px;font-weight:700;color:#091627}
.profile-card p{flex:1}
.counter.empty{background:#fff;box-shadow:inset 0 0 0 2px #a68bcd;border:2px dashed #c4ace0}
.counter.taken{background:#c6bdb5;opacity:.4;position:relative;box-shadow:none}
.counter.taken::after{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:3px;background:#777;transform:rotate(-35deg)}
.ten-frame{max-width:310px;display:grid;grid-template-columns:repeat(5,32px)}
.twelve-frame{max-width:310px;display:grid;grid-template-columns:repeat(6,32px)}
.star-group{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:310px}
.counter-star{width:39px;height:39px;filter:drop-shadow(0 2px 3px #b7852944)}
.practice-companion{display:flex;align-items:center;gap:12px;text-align:left;background:#fffdf7;border:1px solid #e6deea;padding:8px 14px;border-radius:19px;max-width:380px;margin:0 auto 18px}
.emotion-image{width:76px;height:76px;object-fit:cover;object-position:center;border-radius:17px;background:#fff;flex-shrink:0}
.practice-companion strong{display:block;font-weight:800;font-size:.9rem}
.practice-companion span{display:block;color:#4c5872;font-size:.84rem;margin-top:3px}
.exercise-box{background:#fffdfb}
.practice-card,.surface{background:#fff}
.practice-companion.celebrate .emotion-image{animation:gentle-bounce .55s ease-out 1}
.is-success{box-shadow:0 0 0 2px #caefd6,inset 0 0 24px rgba(60,156,103,.04)}
@keyframes gentle-bounce{0%,100%{transform:translateY(0)}40%{transform:translateY(-8px)}70%{transform:translateY(1px)}}
html.large-text{font-size:112.5%}
html.large-text .profile-card p{font-size:.9rem}
body.high-contrast{--muted:#152641;--line:#27375a;--shadow:0 2px 8px #09162730;color:#071324}
.high-contrast p,.high-contrast .muted-small{color:#152641}
.high-contrast .surface,.high-contrast .profile-card,.high-contrast .practice-card,.high-contrast .exercise-box{border:2px solid #33446e}
.high-contrast .button,.high-contrast .choice,.high-contrast .mode-tabs button,.high-contrast .choice-stack button{border:2px solid #091627}
.high-contrast [aria-pressed="true"],.high-contrast .choice-stack .chosen{outline:3px solid #091627;outline-offset:2px}
.high-contrast .choice.correct{background:#bbf1d1;border:3px solid #175a33}
.high-contrast .choice.incorrect{background:#ffd1d1;border:3px solid #8a1f25}
.high-contrast button:focus-visible{outline:4px solid #0c2a66;outline-offset:3px}
.learning-card{position:relative;padding-right:85px}
.learning-card .badge-icon{position:absolute;right:22px;top:26px;pointer-events:none}
.brand-compact{display:none}
@media(max-width:1180px){.profile-grid{gap:14px}}
@media(max-width:780px){.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome-banner{display:flex;flex-direction:column;align-items:flex-start}.welcome-banner .avatar-small{width:90px;height:90px;min-width:90px;flex:none}.practice-tools{display:flex;flex-direction:column}.practice-tools .button{width:100%;min-height:50px}.practice-tools [data-action="next-question"]{order:-1}.profile-card{max-width:290px}.profile-card .portrait-frame{height:auto}.learning-card .badge-icon{right:18px;top:18px}}
@media(max-width:480px){.site-header{flex-wrap:nowrap;gap:7px;padding:10px 12px;align-items:center}.brand-lockup{display:none}.brand-compact{display:block;width:39px;height:39px;object-fit:contain}.brand{min-width:0;flex:0 0 auto}.header-actions{margin-left:auto;min-width:0}.header-actions .button{white-space:nowrap;font-size:.72rem;padding:7px 9px;min-height:38px}.mobile-menu{display:block;flex:0 0 auto;padding:4px;font-size:22px}.primary-nav{position:absolute;top:100%;left:8px;right:8px;background:#fff;z-index:10;border-radius:14px;padding:8px;border:1px solid #ddd}.page-buddy{max-width:48px;max-height:48px;top:4px;right:2px}.profile-card .portrait-frame{aspect-ratio:4/5}.profile-grid{gap:10px}.practice-companion{padding:6px}.emotion-image{width:64px;height:64px}.ten-frame{grid-template-columns:repeat(5,26px);gap:4px}.twelve-frame{grid-template-columns:repeat(6,24px);gap:3px}}
.reduce-motion .practice-companion.celebrate .emotion-image{animation:none!important}
@media(prefers-reduced-motion:reduce){.practice-companion.celebrate .emotion-image{animation:none!important}}

/* Double QA consolidated fixes — isolated browser demo */
:root{--cream:#FDF9F5}
body{background:linear-gradient(125deg,#FDF9F5,#fffcf8 57%,#fff)}
.profile-card .portrait-photo{object-position:50% 30%}
.avatar-small .portrait-photo{object-position:50% 31%}
.world-image-card{border:0;box-shadow:none;background:none}
.world-image-card img{width:100%;height:auto;aspect-ratio:2.33;object-fit:cover;border-radius:20px;display:block}
.learning-steps{padding:15px 0 45px;text-align:center}
.learning-steps h2{font-size:clamp(1.3rem,3vw,2rem);margin:0 0 14px}
.step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.step-grid img{max-width:100%;width:100%;height:auto;object-fit:contain}
.practice-card{position:relative}
.practice-mascot{position:absolute;right:8px;top:5px;width:58px;height:58px;object-fit:contain;pointer-events:none}
.practice-companion{max-width:430px;min-height:120px;padding:6px 16px;gap:16px}
.emotion-image{width:115px;height:110px;border-radius:16px;object-fit:cover;object-position:50% 29%}
.visual-area{min-height:122px;display:flex;justify-content:center;align-items:center}
.visual-area .count-row{margin:4px auto 8px;min-height:110px}
.count-reserve{height:110px;min-height:110px}
.quantity-wrap{display:flex;flex-direction:column;align-items:center;gap:1px}
.quantity-label{padding:2px 16px;border-radius:12px;background:#f2e5ff;border:1px solid #d5a4ff;font-weight:850;font-size:1rem;color:#111d53;margin-top:-3px}
.addition-eight{width:180px;min-width:180px;display:grid;grid-template-columns:repeat(4,28px);gap:7px;justify-content:center}
.addition-five{min-width:190px;display:flex;flex-wrap:nowrap;gap:7px}
.question-mark-box{display:inline-flex;align-items:center;justify-content:center;width:1.13em;height:1.12em;border:2px solid #9b36f5;border-radius:13px;background:#f6ecff;color:#9631ed;line-height:1}
.practice-card{border:5px solid #0c3158;border-radius:31px;box-shadow:0 6px 12px #05182b2b}
.practice-card .exercise-box{border:2px solid #dcb5fa;border-radius:22px;padding:22px;box-sizing:border-box}
.result-note:focus{outline:3px solid #372c9f;outline-offset:3px}
@media(max-width:780px){.step-grid{gap:7px}.practice-mascot{width:40px;height:40px;top:2px;right:2px}.emotion-image{width:82px;height:82px}.practice-companion{min-height:90px}.visual-area{min-height:110px}.addition-eight{min-width:145px;width:145px;grid-template-columns:repeat(4,23px);gap:4px}.addition-five{min-width:130px;gap:3px}.addition-five .counter,.addition-eight .counter{width:23px;height:23px}.quantity-label{font-size:.85rem}.practice-card{border-width:3px}}
@media(max-width:480px){.world-image-card img{border-radius:14px}.learning-steps h2{font-size:1.2rem}.step-grid{grid-template-columns:1fr;max-width:340px;margin:auto}.step-grid img{width:100%}}

/* v0.3.2 Double Re-QA refinement R1-R8 (review candidate) */
.task-dots{margin-right:58px;flex-shrink:0}
.practice-mascot{z-index:1;right:8px;top:5px}
.exercise-box h2{min-height:3.9em;display:flex;align-items:center;justify-content:center;line-height:1.3;text-align:center}
.step-grid img{display:block;width:100%;height:auto}
@media(max-width:780px){
  .task-dots{margin-right:43px;gap:3px}
  .task-dot{width:16px;height:8px}
  .practice-mascot{right:2px;top:2px}
  .exercise-box h2{min-height:5.2em}
  .practice-card .exercise-box{padding:14px;border-radius:18px}
}


/* PO Review — refined Welcome headline and illustrative parent report */
@media(min-width:781px){
  .hero-grid{grid-template-columns:minmax(0,45%) minmax(0,55%);gap:10px}
  .hero-copy{padding-left:0;padding-right:0}
  .hero-copy h1{font-size:clamp(2.7rem,3.8vw,3.85rem);line-height:1.13;letter-spacing:-.06em}
  .hero-copy .gradient-text{white-space:nowrap}
}
@media(max-width:780px){
  .hero-copy h1{font-size:clamp(2.5rem,8vw,3.35rem)}
  .hero-copy .gradient-text{white-space:normal}
}
.report-interpretation{background:#fffefa;border:1.5px solid #e6d9f1}
.report-interpretation h3{margin-bottom:9px}
.report-lead{font-size:1rem;color:#182a50;font-weight:650;line-height:1.55;margin-bottom:18px}
.report-insights{display:grid;gap:12px}
.report-insight{border:1px solid #e9e1ef;border-radius:16px;background:#fff;padding:14px 16px}
.report-insight .insight-title{font-size:.72rem;letter-spacing:.075em;color:#6543a2;font-weight:850;text-transform:uppercase;margin-bottom:6px}
.report-insight p{font-size:.92rem;line-height:1.5;color:#243552;margin:0}
.report-insight.highlighted{border-color:#ead59a;background:#fffaf0}
.report-fineprint{font-size:.75rem;color:#5f6880;line-height:1.5;border-top:1px solid #e4ddeb;padding-top:12px;margin-top:18px}
.report-interpretation .note-box{font-size:.75rem;margin-top:12px;padding:10px 12px}
.step-grid img{image-rendering:auto;filter:contrast(1.025) saturate(1.025);}
@media(max-width:780px){.report-lead{font-size:.94rem}.report-insight{padding:13px 14px}}
