@font-face{font-family:Vazirmatn;src:url("/assets/fonts/Vazirmatn-variable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
:root{--ink:#0B1235;--muted:#6B7390;--pink:#FF2266;--blue:#2463FF;--teal:#00CDB6;--yellow:#FFC400;--purple:#9B5CFF;--orange:#FF8A00;--line:#E5E7EB;--paper:#F8FAFC;--font:Vazirmatn,Tahoma,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.8}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button:disabled{cursor:default}button{border:0} .layout{max-width:1250px;margin:auto;display:grid;grid-template-columns:218px minmax(0,1fr) 285px;min-height:100vh;gap:26px;padding:0 20px}.sidebar{position:sticky;top:0;height:100vh;padding:30px 0 20px 12px;border-left:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:30px;font-weight:900;letter-spacing:-2px;line-height:1}.brand img{width:48px;height:48px;border-radius:15px}.brand span span{color:var(--pink)}.brand-note{font-size:12px;color:var(--muted);margin:9px 0 32px}.nav{display:grid;gap:9px}.nav button{display:flex;align-items:center;gap:12px;text-align:right;padding:12px 14px;background:transparent;border:2px solid transparent;border-radius:16px;color:var(--muted);font-weight:bold}.nav button.active{color:var(--blue);background:#EAF0FF;border-color:#C7D6FF}.nav button:hover{background:#EEF2F8}.nav .ico{font-size:24px;width:32px;text-align:center}.side-note{position:absolute;bottom:26px;font-size:12px;color:var(--muted)}main{min-width:0;padding:24px 0 55px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px}.top h1{font-size:21px;margin:0}.stats{display:flex;gap:8px}.stat{background:white;border:1px solid var(--line);padding:5px 10px;border-radius:14px;font-size:14px;font-weight:bold;white-space:nowrap}.hero{background:linear-gradient(135deg,#E3F9F8,#DDF0FF);border:1px solid #C4E9EF;border-radius:26px;padding:22px;display:flex;gap:15px;align-items:center;overflow:hidden;position:relative}.hero img{width:40%;max-width:210px;aspect-ratio:1;object-fit:cover;object-position:55% 35%;border-radius:22px;border:4px solid #fff;box-shadow:0 5px 0 #B8DDE5}.hero h2{font-size:clamp(19px,2.2vw,28px);margin:0 0 5px;line-height:1.5}.hero p{font-size:14px;margin:0 0 17px;color:#39536C}.primary,.secondary{border-radius:15px;padding:12px 20px;font-weight:bold;min-height:48px;transition:transform .1s;line-height:1.5}.primary{background:var(--blue);color:white;box-shadow:0 5px 0 #1748CF}.primary:hover{filter:brightness(1.04)}.primary:active,.secondary:active{transform:translateY(3px);box-shadow:none}.secondary{background:#fff;border:2px solid var(--line);color:var(--ink);box-shadow:0 3px 0 var(--line)}.primary:disabled{background:#E4E7ED;color:#858DA1;box-shadow:none}.unit{margin:30px 0 12px;background:var(--teal);color:#0B1235;padding:15px 19px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:8px;box-shadow:0 4px 0 #00A99A}.unit strong{display:block;font-size:19px}.unit small{font-size:12px}.unit-icon{font-size:38px;line-height:1}.path{position:relative;padding:12px 0 8px;display:flex;flex-direction:column;align-items:center;gap:15px}.step-wrap{display:flex;flex-direction:column;align-items:center;position:relative;z-index:1;transform:translateX(var(--offset))}.step{height:76px;width:85px;border-radius:50%;background:var(--teal);color:#fff;box-shadow:0 7px 0 #009D91;font-size:38px;line-height:1;display:grid;place-items:center;border:3px solid #fff;position:relative}.step.current{outline:4px solid #B2F2E8;animation:pulse 2.5s infinite}.step.done{background:var(--yellow);box-shadow:0 7px 0 #D89A00;color:#7B4A00}.step.locked{background:#E1E5EE;box-shadow:0 7px 0 #C8CFDD;color:#8C96AD}.step-label{font-size:13px;font-weight:bold;margin-top:10px;text-align:center}.step-tag{background:#fff;border:2px solid #B5EEE7;border-radius:10px;color:#087C71;padding:2px 11px;font-size:12px;font-weight:bold;margin:0 0 8px;box-shadow:0 2px 0 #DBF6F2}.path-line{position:absolute;inset:15px 0 30px;width:100%;height:calc(100% - 45px);pointer-events:none}.aside{padding-top:76px;position:sticky;top:0;align-self:start}.panel{background:white;border:1px solid var(--line);border-radius:22px;padding:19px;margin-bottom:16px;box-shadow:0 3px 0 #EBEEF3}.panel h3{margin:0 0 8px;font-size:16px}.panel p{color:var(--muted);font-size:13px;margin:5px 0}.meter{height:12px;border-radius:20px;background:#E9EDF3;overflow:hidden;margin:13px 0 5px}.meter>span{height:100%;display:block;border-radius:20px;background:var(--teal)}.daily{display:flex;gap:10px;align-items:center}.daily b{font-size:35px}.badge-list{display:flex;gap:8px;margin-top:12px}.badge-icon{font-size:27px;display:grid;place-items:center;width:54px;height:54px;background:#FFF4CF;border-radius:14px}.badge-icon.locked{filter:grayscale(1);opacity:.48}.footer-nav{display:none}.screen-title{margin:0 0 8px;font-size:24px}.lesson-shell{max-width:610px;margin:auto;padding:24px 18px 35px}.lesson-top{display:flex;align-items:center;gap:16px}.close{background:white;border:2px solid var(--line);height:44px;width:44px;border-radius:13px;color:var(--muted);font-size:25px}.lesson-top .meter{flex:1;margin:0;height:16px}.lesson-meta{font-size:13px;color:var(--muted);white-space:nowrap}.lesson-card{margin-top:28px}.speech{display:flex;align-items:center;gap:14px;margin:0 0 20px}.speech img{height:78px;width:78px;border-radius:25px;object-fit:cover;border:3px solid #fff;box-shadow:0 3px 0 #E1D7F5}.bubble{background:#fff;border:2px solid var(--line);border-radius:20px;padding:12px 16px;font-weight:bold;flex:1;line-height:1.8}.question{font-size:clamp(19px,4vw,25px);margin:0 0 15px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{border:2px solid var(--line);border-radius:19px;background:white;min-height:110px;padding:13px;color:var(--ink);box-shadow:0 4px 0 var(--line);font-weight:bold}.choice .piece{display:block;font-size:48px;line-height:1.3;font-family:Arial,sans-serif}.choice.selected{background:#EAF0FF;border-color:var(--blue);box-shadow:0 4px 0 #B5C8FF}.choice.correct{background:#DDF8EB;border-color:#1BAA71}.choice.incorrect{background:#FFE9EE;border-color:#FF6688}.actions{margin-top:25px;display:flex;gap:10px;align-items:stretch}.actions .primary{flex:1}.feedback{margin:18px 0 0;padding:15px;border-radius:16px;background:#DFF8EC;color:#176344;font-weight:bold}.feedback.bad{background:#FFF0DD;color:#8B4A00}.chessboard{direction:ltr;display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;max-width:410px;margin:0 auto;border:6px solid #263D62;border-radius:12px;overflow:hidden}.square{position:relative;min-width:0;padding:0;font-family:Arial,sans-serif;font-size:clamp(24px,7vw,48px);color:#0B1235;line-height:1;display:grid;place-items:center}.square.light{background:#F4EEDB}.square.dark{background:#83B9B4}.square.selected{box-shadow:inset 0 0 0 5px #2463FF}.square.correct{box-shadow:inset 0 0 0 5px #0C9B55}.square.incorrect{box-shadow:inset 0 0 0 5px #F04F74}.square small{font-size:10px;position:absolute;bottom:3px;left:3px;color:#334E60}.board-help{text-align:center;color:var(--muted);font-size:13px;margin:10px 0}.board-piece{color:#fff;text-shadow:1px 1px 2px #0B1235,-1px -1px 1px #0B1235}.review-grid{display:grid;gap:13px;margin-top:20px}.review-item{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;gap:12px}.review-item h3{margin:0;font-size:16px}.review-item p{margin:0;font-size:13px;color:var(--muted)}.center{text-align:center}.victory{font-size:80px;line-height:1.4}.modal-bg{position:fixed;inset:0;background:#0B12356b;display:grid;place-items:center;padding:20px;z-index:10}.modal{width:min(100%,430px);background:white;border-radius:25px;padding:25px;box-shadow:0 16px 50px #0B123533}.modal h2{margin:0 0 8px}.modal p{color:var(--muted);font-size:14px}.modal label{display:block;font-size:14px;font-weight:bold;margin:12px 0 6px}.modal input{width:100%;min-height:50px;padding:9px 13px;border:2px solid var(--line);border-radius:12px}.modal .primary{width:100%;margin-top:15px}.muted{color:var(--muted);font-size:13px}.profile-avatar{font-size:60px}.profile-actions{display:grid;gap:12px;max-width:340px;margin:20px auto}.notice{background:#FFF4D8;padding:12px 15px;border-radius:12px;font-size:13px;color:#734800}.error{color:#B00036;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes pulse{50%{outline-color:#DDF8F4}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:1050px){.layout{grid-template-columns:185px minmax(0,1fr);max-width:900px}.aside{display:none}}@media(max-width:650px){.layout{display:block;padding:0 15px}.sidebar{display:none}main{padding:16px 0 95px}.top h1{font-size:18px}.hero{padding:15px;gap:10px}.hero img{width:35%;border-radius:18px}.hero p{font-size:13px}.hero h2{font-size:19px}.hero .primary{font-size:13px;padding:10px 13px}.stats{gap:5px}.stat{padding:4px 8px;font-size:12px}.footer-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;z-index:5;justify-content:space-around;padding:7px 5px calc(8px + env(safe-area-inset-bottom))}.footer-nav button{background:none;display:grid;place-items:center;gap:0;color:var(--muted);font-size:11px;padding:5px 12px;border-radius:13px}.footer-nav button.active{background:#EAF0FF;color:var(--blue)}.footer-nav .ico{font-size:23px;line-height:1.2}.unit{margin-top:24px}.lesson-shell{padding:14px 15px 30px}.speech img{width:60px;height:60px}.bubble{font-size:14px}.choice{min-height:90px}.actions{margin-top:20px}.top{margin-bottom:15px}} 

.coach-hero{background:linear-gradient(135deg,#E5D7FF,#E3F9F8);border-radius:24px;padding:24px;display:flex;align-items:center;gap:18px;margin-bottom:20px}.coach-icon{background:#fff;border:3px solid #fff;border-radius:24px;width:82px;height:82px;display:grid;place-items:center;font-size:56px;flex-shrink:0;color:#2463FF}.coach-hero h2{margin:0;font-size:clamp(22px,4vw,32px)}.coach-hero p{margin:0;color:#39536C}.eyebrow{font-size:12px;font-weight:bold;color:#6541AD}.coach-copy p{font-size:15px;line-height:1.9}.adult-form{display:grid;gap:8px;margin:18px 0}.adult-form label{font-weight:bold;font-size:14px}.adult-form input:not([type=checkbox]){min-height:48px;padding:10px 12px;border:2px solid var(--line);border-radius:12px;width:100%;font:inherit}.consent{display:flex;align-items:flex-start;gap:9px;line-height:1.8}.consent input{width:20px;height:20px;flex-shrink:0;accent-color:var(--blue)}.adult-form .primary{margin-top:8px}.badge-list{flex-wrap:wrap}.footer-nav{overflow-x:auto;justify-content:flex-start}.footer-nav button{flex:1 0 58px;padding:5px 5px;min-height:44px}.footer-nav .ico{font-size:20px}@media(min-width:651px){.sidebar{overflow-y:auto}.side-note{position:static;margin-top:20px}}

.form-fields{display:grid;gap:8px;border:0;margin:0;padding:0;min-width:0}.adult-form select{font:inherit;min-height:48px;border:2px solid var(--line);border-radius:12px;background:white;padding:8px}.adult-form fieldset:disabled{opacity:.65}.footer-nav button{flex-shrink:0}.sidebar{scrollbar-width:thin}

.board-mode{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.board-mode button{padding:8px 12px;min-height:44px}.legal-target::after{content:'';position:absolute;width:20%;height:20%;border-radius:50%;background:#2463FF;opacity:.8;pointer-events:none}.coach-shortcut{margin:16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:18px;border:1px solid var(--line);background:#fff}.coach-shortcut small{display:block;color:var(--muted)}.footer-nav{scrollbar-width:thin}.square:disabled{opacity:1}

/* Story-first adventure campaign */
.story-hero{background:linear-gradient(145deg,#E4F9F3,#E8E4FF);border-color:#D9D5F3}.story-kicker{display:inline-block;color:#6244A5;font-weight:900;font-size:12px;letter-spacing:.1px;margin-bottom:5px}.story-count{font-size:12px;margin:12px 0 0!important}.story-world{margin:14px 0;border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden}.world-summary{display:flex;align-items:center;gap:12px;list-style:none;padding:16px;background:var(--world);cursor:pointer;min-height:90px}.world-summary::-webkit-details-marker{display:none}.world-symbol{width:52px;height:52px;flex-shrink:0;display:grid;place-items:center;background:#fff;border-radius:16px;font-size:33px;box-shadow:0 3px 0 #0B12351A}.world-heading{display:grid;flex:1;gap:1px}.world-heading strong{font-size:18px;line-height:1.45}.world-heading small{font-size:12px;color:#42516B}.world-arrow{font-size:25px;line-height:1;color:var(--ink)}.story-world[open] .world-arrow{transform:rotate(180deg)}.world-locked .world-summary{filter:saturate(.6)}.world-body{padding:12px 16px 22px}.world-story{background:#F8FAFC;border-radius:15px;padding:12px 14px;font-size:14px;line-height:1.8;margin:0 0 12px}.world-body .path{gap:20px}.step-kind{font-size:11px;color:var(--muted)}.story-intro>.close{margin-bottom:16px}.story-scene{position:relative;isolation:isolate;display:grid;justify-items:center;gap:9px;background:linear-gradient(155deg,#E8E4FF,#DDF8F4 75%);padding:22px;border-radius:25px;border:1px solid #DCD7F7;text-align:center;overflow:hidden}.story-scene img{width:clamp(120px,42vw,220px);aspect-ratio:1;object-fit:cover;border:5px solid white;border-radius:30px;box-shadow:0 6px 0 #0B123514}.scene-icon{font-size:70px;position:absolute;top:35px;right:18px;opacity:.30;z-index:-1}.story-scene h1{margin:2px 0 0;line-height:1.5;font-size:clamp(23px,5vw,32px)}.story-scene .bubble{width:100%;text-align:right}.world-prologue{font-size:14px;margin:0;text-align:right}.story-speaker{font-weight:900;color:#6244A5;margin:0;font-size:14px;justify-self:start}.mission-preview{margin-top:16px}.mission-preview h2{margin:0;font-size:18px}.mission-preview p{font-size:14px}.mission-dots{font-size:26px;color:#9B5CFF;letter-spacing:10px;text-align:center}.story-start{width:100%;margin:10px 0}.mission-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 15px}.game-label{background:#FFF0C2;border:1px solid #F0D787;border-radius:12px;color:#704800;font-weight:900;font-size:12px;padding:5px 10px}.mission-progress{display:flex;gap:6px;font-size:22px;line-height:1;color:#A0A8BC}.mission-progress .now{color:#9B5CFF}.mission-progress .collected{color:#FF8A00}.mission-head .muted{margin-inline-start:auto}.mission-board .square.mission-origin{box-shadow:inset 0 0 0 4px #9B5CFF}.mission-board .square.selected{box-shadow:inset 0 0 0 5px #2463FF}.mission-board .square.correct{box-shadow:inset 0 0 0 5px #0C9B55}.mission-token{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(19px,5vw,34px);pointer-events:none}.mission-token.on-piece{inset:auto 2px 2px auto;font-size:clamp(11px,3vw,21px);background:white;border-radius:50%;padding:2px}.earned-token{position:absolute;top:2px;right:3px;font-size:clamp(14px,3vw,25px);pointer-events:none}.mission-arrival>span:first-child{animation:mission-arrive .3s ease-out}.story-ending{background:#FFF5D4;border-radius:18px;padding:16px;line-height:1.9;font-weight:bold}.story-victory .panel{margin-top:20px}@keyframes mission-arrive{0%{transform:scale(.65);opacity:.5}100%{transform:scale(1);opacity:1}}@media(max-width:650px){.world-summary{padding:13px 10px;gap:9px}.world-heading strong{font-size:16px}.world-symbol{width:46px;height:46px;font-size:29px}.story-scene{padding:15px}.mission-head{gap:8px}.mission-head .muted{font-size:11px}.story-hero .story-count{font-size:11px}}

.narration-button{font-size:13px;padding:7px 12px;min-height:44px}#narration-status:empty{display:none}#narration-status{margin:0}

/* Rainbow adventure visual system — no third-party requests. */
:root{--paper:#F8FAFC;--shadow:0 5px 0 #DDE4F0;--soft-shadow:0 12px 30px #0B123509;--blue-deep:#1B46CC;--muted:#515C77}
body{background:radial-gradient(ellipse at 15% 0,#EAE4FF 0,transparent 36rem),radial-gradient(ellipse at 92% 20%,#DFFAF4 0,transparent 30rem),var(--paper);font-size:16px;font-weight:400;letter-spacing:0;line-height:1.85}
button,input,select,textarea{font-family:var(--font)}h1,h2,h3,strong,b{font-weight:800}button{font-weight:750}a{color:var(--blue-deep)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #1643C4;outline-offset:3px}button,summary{touch-action:manipulation}
.layout{max-width:1320px;grid-template-columns:228px minmax(0,1fr) 260px;gap:24px;padding:0 24px}.sidebar{background:#FFFFFFD9;border:1px solid #E4E8F2;border-radius:0 0 28px 28px;box-shadow:var(--soft-shadow);padding:23px 13px;position:sticky;top:0}.brand{letter-spacing:0;font-size:29px;gap:9px;justify-content:center}.brand img{width:52px;height:52px;border-radius:16px}.brand-note{font-size:11px;text-align:center;margin:12px 0 6px;line-height:1.8}.brand-rainbow{height:5px;border-radius:9px;margin:0 10px 26px;background:linear-gradient(90deg,#FF2266 0 16.66%,#FF8A00 16.66% 33.33%,#FFC400 33.33% 50%,#00CDB6 50% 66.66%,#2463FF 66.66% 83.33%,#9B5CFF 83.33%)}.nav{gap:7px}.nav button{min-height:49px;border-radius:15px;gap:10px;font-size:14px}.nav .ico{background:#F0E9FF;border-radius:11px;min-width:34px;height:34px;display:grid;place-items:center;font-size:21px;color:#6940AC}.nav button:nth-child(2n) .ico{background:#DDF8F4;color:#087C75}.nav button:nth-child(3n) .ico{background:#FFF0C2;color:#885100}.nav button.active{background:#E8EEFF;border-color:#B8CBFF;color:#1B46CC}.nav button.active .ico{background:#2463FF;color:#fff}.side-note{font-size:11px;text-align:center}.top{background:#fff;border:1px solid #E4E8F2;border-radius:19px;padding:12px 15px;box-shadow:0 4px 0 #E3E8F3;margin-bottom:23px}.top h1{font-size:20px}.stats .stat{background:#FFF5D4;border:1px solid #F2D987;color:#634500;min-height:35px;display:flex;align-items:center}.stats .stat:first-child{background:#EEE6FF;border-color:#D9CAFF;color:#55338D}.panel{border-radius:23px;border:1px solid #E1E6F1;box-shadow:var(--shadow);padding:18px}.panel p{font-size:14px;line-height:1.9}.aside .panel:nth-child(1){border-top:4px solid #FF8A00}.aside .panel:nth-child(2){border-top:4px solid #9B5CFF}.aside .panel:nth-child(3){border-top:4px solid #00CDB6}.aside .panel:nth-child(4){border-top:4px solid #2463FF}.aside{padding-top:90px}.daily b{background:#FFF0C2;border-radius:14px;min-width:48px;text-align:center}.badge-icon{width:44px;height:44px;font-size:23px;box-shadow:0 3px 0 #F4DB87}.badge-icon.locked{opacity:.65;box-shadow:none}.meter{height:13px;background:#E6EAF4;border:1px solid #D9E2EF}.meter>span{background:linear-gradient(90deg,#00CDB6,#2463FF);transition:width .25s ease}
.primary,.secondary{border-radius:17px;min-height:52px;font-size:15px;line-height:1.6;box-shadow:0 5px 0 #1748CF;transition:transform .15s,background .15s,box-shadow .15s}.primary{background:#2463FF;color:white;border:2px solid #2463FF}.primary:hover{background:#1B46CC;border-color:#1B46CC;filter:none}.primary:disabled{background:#E5E9F1;border-color:#E5E9F1;color:#606C83;box-shadow:none}.secondary{border:2px solid #D7DFEC;box-shadow:0 4px 0 #D7DFEC;background:#fff}.secondary:hover{background:#F1F5FF;border-color:#B8CBFF}.primary:active,.secondary:active{transform:translateY(3px);box-shadow:0 1px 0 #1748CF}.primary:disabled:active{transform:none;box-shadow:none}.story-hero{isolation:isolate;background:linear-gradient(135deg,#D6FBF2 0,#E2E8FF 53%,#F5DFFF 100%);border:2px solid #fff;box-shadow:0 7px 0 #D0D8EF,var(--soft-shadow);border-radius:30px;padding:25px 22px;min-height:260px;gap:14px}.story-hero::before{content:"";position:absolute;z-index:-1;inset:auto -24px -70px auto;width:220px;height:220px;border:24px solid #FFFFFF73;border-radius:50%}.hero-copy{min-width:0;flex:1}.hero-copy h2{font-size:clamp(24px,2.8vw,36px);line-height:1.45;margin:10px 0 9px}.hero-copy p{font-size:15px;line-height:1.85;color:#334564}.story-hero .story-kicker{color:#6040A0;background:#FFFFFFD9;border:1px solid #E6D9FD;padding:4px 10px;border-radius:20px;line-height:1.7}.hero-copy .primary{min-height:54px;padding:10px 22px;background:#2463FF}.hero-copy .meter{background:#FFFFFFAC}.hero-art{position:relative;width:41%;max-width:225px;flex-shrink:0;align-self:center;isolation:isolate}.hero-art img{width:100%;height:auto;max-width:none;aspect-ratio:1;object-fit:cover;border:5px solid #fff;border-radius:50% 50% 28% 28%;box-shadow:0 7px 0 #B0C9E1;display:block}.hero-spark{position:absolute;z-index:2;color:#FF8A00;text-shadow:0 2px #fff;font-size:29px}.spark-one{inset:-12px auto auto 3px}.spark-two{inset:auto 0 4px auto;color:#9B5CFF}.hero-crown{position:absolute;inset:auto auto -13px 15%;display:grid;place-items:center;background:#FFF1B7;border:3px solid #fff;border-radius:18px;width:48px;height:48px;font-size:29px;box-shadow:0 3px 0 #D2AA3B;transform:rotate(-9deg)}.coach-shortcut{background:#fff;border:1px solid #DCE3EE;box-shadow:0 3px 0 #E4E9F3;margin:22px 0;gap:10px}.coach-shortcut-icon{width:45px;height:45px;background:#EDE7FF;color:#6844B5;border-radius:14px;display:grid;place-items:center;font-size:30px;flex:none}.coach-shortcut>div{flex:1;min-width:0}.coach-shortcut .secondary{font-size:12px;min-height:44px;padding:8px 10px}.coach-shortcut small{font-size:12px}.map-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:26px 0 15px}.map-heading h2{margin:0;font-size:25px}.map-heading p{margin:4px 0}.map-count{display:grid;place-items:center;background:#FFF0C2;color:#775000;min-width:68px;padding:5px 10px;border:2px solid #F8D979;border-radius:18px;font-weight:900;font-size:27px;line-height:1.3;box-shadow:0 3px 0 #E7C563}.map-count small{font-size:11px;font-weight:700}
.story-world{overflow:hidden;border:2px solid var(--world,#DDE8F5);border-radius:25px;box-shadow:0 5px 0 #DCE3EF;margin:16px 0;background:white}.world-summary{position:relative;gap:13px;padding:12px;background:linear-gradient(110deg,var(--world-soft),var(--world));min-height:106px}.world-art{width:105px;aspect-ratio:1.28;position:relative;display:block;flex-shrink:0;border-radius:17px;overflow:hidden;border:2px solid #fff;box-shadow:0 4px 0 #0B12351A}.world-art img{width:100%;height:100%;display:block;object-fit:cover}.world-symbol{position:absolute;bottom:3px;right:3px;width:33px;height:33px;font-size:23px;border-radius:11px;background:#fff;box-shadow:0 2px 0 #0B12351A}.world-heading{gap:2px;min-width:0}.world-heading strong{font-size:19px;line-height:1.55;color:#0B1235}.world-heading small{font-size:12px;color:#43516E}.world-arrow{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#FFFFFFB8;font-size:25px;flex-shrink:0;color:var(--world-ink)}.world-progress{height:6px;background:#FFFFFFC9;max-width:185px;border-radius:9px;overflow:hidden;margin-top:5px;display:block}.world-progress i{height:100%;display:block;background:var(--world-ink);border-radius:9px}.world-locked .world-summary{filter:none}.world-locked .world-art{opacity:.86}.world-body{background:linear-gradient(180deg,#fff,var(--world-soft));padding:14px 14px 24px}.world-banner{position:relative;overflow:hidden;border-radius:18px;margin-bottom:10px;border:1px solid var(--world);aspect-ratio:2.6;display:grid}.world-banner img{width:100%;height:100%;object-fit:cover;display:block}.world-banner-label{position:absolute;right:9px;bottom:9px;background:#fff;color:var(--world-ink);padding:5px 11px;border-radius:12px;font-weight:800;font-size:12px;box-shadow:0 3px 0 #0B12351A}.world-story{border:1px solid var(--world);background:#fff;font-size:15px;color:#263754;padding:13px 15px;border-radius:16px;margin-bottom:15px}.adventure-path{position:relative;padding-top:15px;padding-bottom:15px;gap:24px!important}.adventure-path::before{content:"";position:absolute;inset:17px auto 26px 50%;width:0;border-left:5px dotted var(--world-ink);opacity:.2}.step-wrap{min-width:130px}.step{height:79px;width:88px;border-radius:28px;box-shadow:0 6px 0 var(--world-ink);background:var(--world);color:var(--world-ink);border:3px solid #fff;font-size:36px}.step.current{background:var(--world-ink);color:white;outline:4px solid var(--world);animation:none;box-shadow:0 6px 0 #0B1235}.step.current:hover{transform:translateY(-2px)}.step.done{background:#FFC400;color:#765000;box-shadow:0 6px 0 #D49500}.step.locked{background:#E4E8F0;color:#5F6C85;box-shadow:0 5px 0 #C7D0DF;border-color:#F7F9FC}.gate-step .step{border-radius:24px 24px 15px 15px;width:96px;height:86px}.step-label{font-size:14px;background:#FFFFFFDF;padding:2px 9px;border-radius:9px;line-height:1.7;margin-top:11px}.step-kind{font-size:12px;color:#526079}.step-tag{color:var(--world-ink);background:#fff;border-color:var(--world);border-width:2px;font-size:12px;box-shadow:0 3px 0 var(--world);margin-bottom:10px}
.lesson-shell{max-width:650px}.lesson-top{background:white;border:1px solid #DFE5EF;border-radius:19px;padding:10px;box-shadow:0 4px 0 #E4E9F3}.lesson-top .meter>span{background:linear-gradient(90deg,var(--world-accent,#00CDB6),#2463FF)}.close{background:#FFF;border-color:#DDE5EF;color:#4C5970;box-shadow:0 3px 0 #E3E8F0;font-weight:700}.story-scene{background:linear-gradient(155deg,var(--world-soft),var(--world));border:2px solid white;border-radius:28px;box-shadow:0 6px 0 #D6DEEC;gap:12px;padding:18px}.story-scene>.story-kicker{color:var(--world-ink);background:white;border-radius:16px;padding:5px 12px;font-size:13px}.scene-landscape{position:relative;width:100%;aspect-ratio:2.15;border-radius:20px;overflow:hidden;border:3px solid #fff;box-shadow:0 5px 0 #0B12351A}.scene-landscape>img:first-child{width:100%;height:100%;object-fit:cover;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;display:block}.scene-landscape img.scene-rangi{position:absolute;inset:auto 9px 9px auto;width:clamp(76px,27%,130px);height:auto;aspect-ratio:1;border-radius:24px;object-fit:cover;border:4px solid #fff;box-shadow:0 4px 0 #0B123526}.scene-icon{position:absolute;top:auto;right:auto;bottom:13px;left:12px;font-size:33px;opacity:1;z-index:1;background:#fff;border-radius:13px;min-width:47px;display:grid;place-items:center}.story-scene h1{font-size:clamp(24px,4.5vw,34px);color:#0B1235}.world-prologue{background:#FFFFFFA6;padding:10px 13px;border-radius:16px;color:#263754;font-size:15px}.story-speaker{color:var(--world-ink);font-size:15px}.bubble{border:2px solid #DDE4F0;box-shadow:0 3px 0 #DDE4F0;font-size:16px;font-weight:650;line-height:1.85;border-radius:19px}.story-scene .bubble{border-color:#fff}.mission-preview{border-top:4px solid var(--world-accent,#9B5CFF);background:white;margin-top:20px}.mission-dots,.mission-progress .now{color:#6940AC}.narration-button{min-height:44px;font-size:13px}.story-start{min-height:56px;font-size:16px}.mission-shell .lesson-card{background:#fff;border:1px solid #E0E5EF;border-radius:25px;box-shadow:0 5px 0 #DDE4F0;padding:20px;margin-top:20px}.mission-head{padding-bottom:12px;border-bottom:1px solid #E9EDF3}.game-label{background:var(--world-soft,#FFF0C2);border-color:var(--world,#F0D787);color:var(--world-ink,#704800);font-size:12px}.mission-progress{font-size:25px}.mission-progress .collected{color:#A85B00}.speech img{border-color:#fff;box-shadow:0 4px 0 #DADFF0;border-radius:20px}.question{font-size:clamp(19px,4vw,25px);font-weight:800;line-height:1.65}.choices{gap:13px}.choice{min-height:108px;border-radius:20px;background:#F9FBFF;border:2px solid #DDE5F0;box-shadow:0 4px 0 #DDE5F0;color:#0B1235;font-size:16px;line-height:1.65;padding:12px}.choice:nth-child(2n){background:#F9F4FF}.choice:nth-child(3n){background:#EFFCF8}.choice.selected{border-color:#2463FF;box-shadow:0 4px 0 #B5C8FF;background:#E9EFFF}.choice.correct{background:#DDF8EB;border-color:#168557;box-shadow:0 4px 0 #A7DEBD}.choice.incorrect{background:#FFF0DC;border-color:#D48B24;box-shadow:0 4px 0 #F1CF9C}.feedback{border:1px solid #B8E6CF;color:#176344;border-radius:17px;font-size:15px}.feedback.bad{border-color:#F1D3A6;color:#794600}.chessboard{max-width:438px;border:6px solid #334B78;border-radius:15px;box-shadow:0 6px 0 #DDE4F0;overflow:hidden}.square.light{background:#FFF4D5}.square.dark{background:#79BDB6}.square{font-family:"Arial Unicode MS","DejaVu Sans","Segoe UI Symbol",Arial,sans-serif}.square small{font-family:var(--font);font-size:10px;font-weight:700;color:#233D56}.square:focus-visible{outline:3px solid #1643C4;outline-offset:-3px;z-index:2}.square.selected,.mission-board .square.selected{box-shadow:inset 0 0 0 4px #2463FF}.square.correct,.mission-board .square.correct{box-shadow:inset 0 0 0 4px #087C51}.square.incorrect{box-shadow:inset 0 0 0 4px #BA6900}.mission-token{filter:drop-shadow(0 1px 1px #0B123540)}.story-victory{padding-top:30px}.story-victory .victory{font-size:68px;background:var(--world,#FFF1B7);border:3px solid #fff;border-radius:28px;width:108px;height:108px;display:grid;place-items:center;margin:0 auto 16px;box-shadow:0 6px 0 #DCE3EF}.story-victory>img{border:4px solid white;box-shadow:0 5px 0 #DCE3EF}.story-ending{background:var(--world-soft,#FFF5D4);border:1px solid var(--world,#F1D787);color:#253550}.review-item{border-radius:21px;border:1px solid #DDE4EF;box-shadow:0 4px 0 #E4E9F3;padding:16px}.review-item:nth-child(3n+1){border-inline-start:5px solid #00CDB6}.review-item:nth-child(3n+2){border-inline-start:5px solid #9B5CFF}.review-item:nth-child(3n){border-inline-start:5px solid #FF8A00}.review-item h3{font-size:17px}.coach-hero{border:2px solid white;box-shadow:0 5px 0 #DADAF0}.adult-form input:not([type=checkbox]),.adult-form select,.modal input{font:inherit;border-radius:13px;border-color:#D7DFEC;background:#FCFDFF}.profile-avatar{background:#E8E2FF;border:3px solid #fff;border-radius:28px;width:100px;height:100px;display:grid;place-items:center;margin:auto;box-shadow:0 5px 0 #D8CCF3}.notice{line-height:1.85}.lesson-shell .actions{margin-top:20px}.actions .primary{min-height:55px}.footer-nav button{font-weight:700}
@media(max-width:1120px){.layout{grid-template-columns:200px minmax(0,1fr);max-width:980px}.aside{display:none}}
@media(max-width:650px){body{font-size:15px}.layout{display:block;padding:0 12px}.sidebar{display:none}.layout main{padding:12px 0 calc(132px + env(safe-area-inset-bottom))}.top{padding:9px 10px;margin-bottom:16px;gap:6px}.top h1{font-size:17px}.stats{gap:4px}.stats .stat{min-height:29px;font-size:11px;padding:3px 7px}.story-hero{min-height:215px;padding:18px 13px;gap:9px;border-radius:24px}.hero-copy h2{font-size:clamp(20px,5.5vw,29px);margin:6px 0}.hero-copy p{font-size:13px}.hero-copy .primary{font-size:14px;padding:8px 12px;min-height:47px}.hero-art{width:36%}.hero-crown{width:36px;height:36px;font-size:22px;border-radius:12px}.hero-spark{font-size:22px}.story-hero .story-kicker{font-size:10px;padding:3px 7px}.coach-shortcut{margin:17px 0;padding:10px;gap:7px}.coach-shortcut b{font-size:14px}.coach-shortcut-icon{width:36px;height:36px;font-size:24px}.coach-shortcut small{font-size:10px}.coach-shortcut .secondary{padding:6px 8px;font-size:11px}.map-heading{margin-top:22px}.map-heading h2{font-size:21px}.map-heading p{font-size:12px}.map-count{min-width:58px;font-size:23px}.world-summary{padding:10px;gap:10px;min-height:90px}.world-art{width:79px;border-radius:14px}.world-symbol{width:27px;height:27px;font-size:19px}.world-heading strong{font-size:16px}.world-heading small{font-size:11px}.world-arrow{width:26px;height:26px}.world-body{padding:10px 10px 20px}.world-story{font-size:14px}.world-banner{aspect-ratio:2.15}.footer-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;overflow:visible;background:#FFFFFFF5;border-top:2px solid #E0E5EF;box-shadow:0 -4px 20px #0B123510;padding:5px 9px calc(6px + env(safe-area-inset-bottom))}.footer-nav button{min-width:0;min-height:44px;display:grid;gap:0;font-size:11px;line-height:1.3;padding:4px 2px;border-radius:11px}.footer-nav .ico{font-size:19px;line-height:1.2}.footer-nav button.active{background:#E8EEFF;color:#1B46CC}.lesson-shell{padding:12px 12px 26px}.story-scene{padding:12px;border-radius:23px}.scene-landscape{aspect-ratio:1.9}.mission-shell .lesson-card{padding:13px;margin-top:16px;border-radius:21px}.bubble{font-size:14px;padding:10px 11px}.speech{gap:10px;margin-bottom:15px}.speech img{width:59px;height:59px}.question{font-size:19px}.choice{min-height:95px;font-size:14px;padding:9px}.choice .piece{font-size:39px}.actions{gap:7px}.actions .secondary{font-size:13px;padding:10px 11px}.actions .primary{font-size:14px;padding:10px 13px}.chessboard{border-width:4px;border-radius:11px}.square small{font-size:9px;left:2px;bottom:2px}.mission-head{gap:8px}.mission-head .muted{font-size:10px}.mission-progress{font-size:22px}.board-help{font-size:12px}.review-item{padding:12px;gap:8px}.review-item h3{font-size:15px}.review-item .primary,.review-item .secondary{font-size:13px;padding:8px 12px}}
@media(max-width:350px){.hero-art{width:31%}.hero-copy h2{font-size:19px}.world-art{width:65px}.world-heading strong{font-size:15px}.world-heading small{font-size:10px}.coach-shortcut-icon{display:none}.mission-shell .lesson-card{padding:9px}.lesson-shell{padding-inline:9px}.square small{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.site-footer{margin-top:35px;border-top:5px solid transparent;border-image:linear-gradient(90deg,#FF2266,#FF8A00,#FFC400,#00CDB6,#2463FF,#9B5CFF) 1;background:#fff;border-radius:14px;padding:20px 14px;color:#334564;display:grid;gap:12px}.footer-brand{display:flex;gap:12px;align-items:center}.footer-brand img{border-radius:12px}.footer-brand p{margin:0;font-size:13px}.footer-links{display:flex;flex-wrap:wrap;gap:12px;font-size:13px}.footer-credit{margin:0;color:#6940AC;font-weight:700;text-align:center;border-top:1px solid #E5E7EB;padding-top:12px}.video-episode{padding:10px;border:1px solid #E5E7EB;border-radius:12px;margin:8px 0}.video-episode video{width:100%;max-height:320px;background:#0B1235;border-radius:12px}

.runner-panel{background:linear-gradient(145deg,#E6F9FF,#FFF1E1);margin:16px 0}.runner-panel canvas{display:block;width:100%;max-width:480px;height:auto;border:3px solid white;border-radius:18px;margin:12px auto;touch-action:manipulation}.runner-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.runner-actions button{min-height:48px}.runner-panel #runner-score{font-weight:800;text-align:center;color:#6940AC}.runner-panel #runner-notice{min-height:2.5em}

/* lightweight local play and review */
.boot-scene{min-height:65vh;display:grid;place-content:center;justify-items:center;gap:12px;color:#6940AC;font-weight:800;text-align:center}.boot-scene img{border-radius:24px;animation:rangi-bob .8s ease-in-out 2 alternate}.boot-dots{color:#FF2266;letter-spacing:9px}.extra-games{margin:16px 0;background:linear-gradient(145deg,#F4E9FF,#E6FAF4)}.extra-actions,.board-preferences{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.board-preferences select{font:inherit;padding:8px;border:1px solid #CBD5E1;border-radius:10px;background:white;color:#0B1235}.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:420px;margin:15px auto}.memory-card{aspect-ratio:1;min-height:44px;border:2px solid #D9C7FF;border-radius:14px;background:#fff;color:#6940AC;font-size:clamp(23px,6vw,38px);box-shadow:0 3px 0 #D9C7FF}.memory-card.matched{background:#DDF8EB;color:#176344;border-color:#A7DEBD;opacity:1}.mini-maze .square:disabled{opacity:1}.chessboard.theme-ocean .light{background:#E4F3FF}.chessboard.theme-ocean .dark{background:#76A9D7}.chessboard.theme-berry .light{background:#FFF0E7}.chessboard.theme-berry .dark{background:#CBA4E7}.rangi-talk{display:flex;align-items:center;gap:12px;margin:24px 0;background:#F0E9FF}.rangi-talk img{border-radius:18px}.rangi-talk p{margin:0 0 8px}.rangi-talk .secondary{font-size:13px;min-height:44px}.story-victory .victory{animation:rangi-bob .45s ease-out 2 alternate}.feedback:not(.bad){animation:rangi-bob .2s ease-out 1}@keyframes rangi-bob{from{transform:translateY(0)}to{transform:translateY(-5px)}}@media(prefers-reduced-motion:reduce){.boot-scene img,.story-victory .victory,.feedback{animation:none!important}}

/* Four destinations, shared visual vocabulary. Secondary routes stay deep-linkable. */
.section-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.section-nav button{min-height:44px;font-size:14px;padding:7px 15px}.section-nav .primary{background:#2463FF}.play-chess-card,.path-review{display:flex;align-items:center;gap:15px;background:linear-gradient(125deg,#E9E4FF,#DDF8F4);margin:14px 0}.play-chess-card .play-piece{display:grid;place-items:center;width:75px;height:75px;flex:none;border-radius:22px;background:#fff;color:#6940AC;font-size:48px;box-shadow:0 4px 0 #D9CAFF}.path-review>span{font-size:35px}.path-review h3,.play-chess-card h3{margin:0}.path-review p,.play-chess-card p{margin:5px 0 12px}.profile-progress .secondary{margin-top:12px}.footer-nav button.active .ico{color:#2463FF}.sidebar .nav button{min-height:56px}.footer-nav{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:650px){.layout main{padding-bottom:calc(85px + env(safe-area-inset-bottom))}.footer-nav button{min-height:52px;font-size:12px}.section-nav button{font-size:12px;padding:7px 12px}.play-chess-card .play-piece{width:58px;height:58px;font-size:38px}}

.video-shortcut,.video-learning-hero{display:flex;align-items:center;gap:14px;margin:14px 0;background:linear-gradient(125deg,#E5F1FF,#F3E9FF)}.video-learning-icon{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:#2463FF;color:#fff;font-size:26px;box-shadow:0 4px 0 #1B46CC}.video-shortcut h3,.video-learning-hero h2{margin:0}.video-shortcut p,.video-learning-hero p{margin:5px 0 10px}.video-shortcut .secondary{min-height:44px}.course-card{margin:14px 0}.course-card summary{cursor:pointer;padding:8px;min-height:44px}.video-learning-hero>div,.video-shortcut>div{min-width:0}

/* Editable navigation names must fit even on narrow phones. */
.footer-nav button{min-width:0;overflow:hidden}.footer-nav button>span:last-child{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-nav button{max-width:100%;overflow-wrap:anywhere}
