:root{--green-950: oklch(.28 .055 165);--green-800: oklch(.39 .07 164);--green-600: oklch(.55 .095 158);--green-100: oklch(.94 .035 150);--paper: oklch(.985 .016 92);--paper-deep: oklch(.955 .028 91);--ink: oklch(.31 .035 165);--muted: oklch(.49 .028 165);--coral: oklch(.69 .16 34);--coral-dark: oklch(.54 .15 31);--sun: oklch(.82 .14 82);--blue: oklch(.65 .085 232);--line: oklch(.84 .03 150);--shadow: 0 7px 0 oklch(.28 .055 165 / .12), 0 18px 45px oklch(.28 .055 165 / .09);font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans CJK SC,sans-serif;color:var(--ink);background:var(--green-100);font-synthesis:none}*{box-sizing:border-box}html{min-width:320px;background:var(--green-100)}body{margin:0;min-width:320px;min-height:100dvh;overflow-x:hidden}button,input{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible{outline:3px solid var(--sun);outline-offset:3px}button{transition:transform .16s ease-out,box-shadow .16s ease-out,background-color .16s ease-out,color .16s ease-out}button:not(:disabled):active{transform:translateY(2px)}svg{flex-shrink:0}#game-root{position:relative;min-height:100dvh;isolation:isolate}#game-canvas{position:fixed;inset:0;z-index:-3;width:100%;height:100%;display:block;pointer-events:none}.paper-grain{position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.15;background-image:radial-gradient(oklch(.31 .035 165 / .25) .55px,transparent .7px);background-size:6px 6px}.topbar{width:min(1240px,calc(100% - 48px));min-height:84px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.brand-mark{filter:drop-shadow(0 3px 0 oklch(.28 .055 165 / .12))}.brand>div{display:flex;flex-direction:column}.brand strong{font-size:20px;font-weight:900;letter-spacing:-.04em}.brand span{font-size:9px;font-weight:800;letter-spacing:.12em;color:var(--muted)}.brand .version-badge{margin-left:2px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--green-800);font-size:11px;letter-spacing:0;line-height:1;white-space:nowrap}.top-actions{display:flex;align-items:center;gap:8px}.nav-button,.parent-button,.icon-button{min-height:44px;border:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:750}.nav-button{position:relative;padding:0 14px;border-radius:14px;background:#fefaee9e}.nav-button:hover{background:var(--paper);transform:translateY(-1px)}.nav-button b{min-width:20px;height:20px;display:grid;place-items:center;border-radius:10px;background:var(--coral);color:var(--paper);font-size:12px}.challenge-nav{color:var(--coral-dark)}.parent-button{padding:0 16px;border-radius:14px;color:var(--paper);background:var(--green-800);box-shadow:0 3px 0 var(--green-950)}.parent-button:hover{background:var(--green-600)}.icon-button{width:44px;height:44px;padding:0;border-radius:14px;background:#fefaeead}.icon-button:hover{background:var(--paper);transform:translateY(-1px)}.home-screen{padding-bottom:24px}.hero-section{width:min(1180px,calc(100% - 48px));min-height:410px;margin:12px auto 0;display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:24px}.hero-copy{position:relative;z-index:2;padding:28px 0}.eyebrow{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid oklch(.39 .07 164 / .18);border-radius:999px;background:#fefaee99;color:var(--green-800);font-size:14px;font-weight:750}.hero-copy h1{margin:20px 0 18px;font-size:clamp(64px,7.2vw,94px);line-height:.99;letter-spacing:-.075em;font-weight:950}.hero-copy h1 em{color:var(--coral);font-style:normal;position:relative}.hero-copy h1 em:after{content:"";position:absolute;left:4%;right:-2%;bottom:-8px;height:9px;border-radius:50%;background:var(--sun);transform:rotate(-2deg);opacity:.75}.title-dot{color:var(--sun);margin-left:6px}.hero-copy>p{margin:0;color:var(--muted);font-size:17px;line-height:1.8;font-weight:550}.hero-actions{margin-top:28px}.start-button{min-height:78px;padding:10px 20px 10px 12px;display:inline-flex;align-items:center;gap:13px;border:2px solid var(--green-950);border-radius:22px;background:var(--green-800);color:var(--paper);box-shadow:0 6px 0 var(--green-950),0 13px 24px #05312229;text-align:left}.start-button:hover{transform:translateY(-2px);box-shadow:0 8px 0 var(--green-950),0 16px 28px #0531222e;background:#1f5d45}.start-button:active{box-shadow:0 3px 0 var(--green-950)}.start-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:var(--sun);color:var(--green-950)}.start-button>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.start-button b{font-size:21px;font-weight:900}.start-button small{font-size:12px;opacity:.8}.hero-proof{margin-top:19px;display:flex;flex-wrap:wrap;gap:17px;color:var(--green-800);font-size:13px;font-weight:700}.hero-proof span{display:inline-flex;align-items:center;gap:5px}.hero-art{position:relative;height:390px;min-width:0}.sun-disc{position:absolute;width:290px;height:290px;top:38px;left:50%;transform:translate(-50%);border-radius:50%;background:#f5d073a3;box-shadow:0 0 0 22px #f5d0731f}.hero-fruit{position:absolute;width:250px;height:250px;top:52px;left:50%;transform:translate(-50%) rotate(-4deg);filter:drop-shadow(0 20px 18px oklch(.28 .055 165 / .18));animation:fruit-float 4s ease-in-out infinite}.hero-fruit>.item-icon{width:100%;height:100%}.fruit-face{position:absolute;left:50%;top:48%;transform:translate(-50%);display:flex;gap:43px}.fruit-face i{width:10px;height:14px;border-radius:50%;background:var(--green-950)}.fruit-face b{position:absolute;left:50%;top:24px;width:30px;height:15px;transform:translate(-50%);border-bottom:5px solid var(--green-950);border-radius:50%}.math-tile{position:absolute;z-index:2;width:62px;height:62px;display:grid;place-items:center;border:2px solid var(--green-950);border-radius:19px;box-shadow:0 5px 0 var(--green-950);font-size:35px;font-weight:900}.tile-plus{left:7%;top:66px;color:var(--green-950);background:var(--paper);transform:rotate(-12deg)}.tile-times{right:5%;top:102px;color:var(--paper);background:var(--coral);transform:rotate(10deg)}.tile-divide{left:11%;bottom:72px;color:var(--green-950);background:var(--sun);transform:rotate(7deg)}.hero-equation{position:absolute;z-index:3;left:50%;bottom:19px;transform:translate(-50%) rotate(2deg);min-width:330px;padding:15px 18px;display:flex;align-items:center;justify-content:center;gap:12px;border:2px solid var(--green-950);border-radius:18px;background:var(--paper);box-shadow:0 6px 0 var(--green-950);font-size:26px}.hero-equation b,.hero-equation strong{color:var(--coral)}.hero-equation small{font-size:15px;font-weight:800}.hero-sticker{position:absolute;z-index:4;right:3%;bottom:76px;width:82px;height:82px;display:grid;place-content:center;border-radius:50%;background:var(--green-800);color:var(--paper);text-align:center;font-size:12px;line-height:1.35;transform:rotate(9deg);box-shadow:0 4px 0 var(--green-950)}.hero-sticker strong{font-size:16px}.trail-section{width:min(1180px,calc(100% - 48px));margin:8px auto 0;padding:24px 28px 26px;border:1px solid oklch(.39 .07 164 / .13);border-radius:28px;background:#fefaeed9;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:21px}.section-heading>div>span{color:var(--coral-dark);font-size:13px;font-weight:800}.section-heading h2{margin:4px 0 0;font-size:23px;letter-spacing:-.035em}.section-heading p{margin:0;color:var(--muted);font-size:13px}.skill-trail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.skill-stop{position:relative;min-width:0;padding:17px 13px 13px;display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--line);border-radius:19px;background:var(--paper);text-align:left;overflow:hidden}.skill-stop:hover{transform:translateY(-4px);border-color:var(--skill-color);box-shadow:0 8px 20px #05312217}.stop-number{position:absolute;right:10px;top:8px;color:var(--line);font-size:24px;font-weight:950}.stop-icon{width:46px;height:46px;display:grid;place-items:center;margin-bottom:10px;border-radius:14px;background:color-mix(in oklch,var(--skill-color) 16%,var(--paper))}.stop-icon .item-icon{width:39px;height:39px}.skill-stop strong{font-size:15px;white-space:nowrap}.skill-stop small{margin-top:3px;color:var(--muted);font-size:12px}.stop-track{width:100%;height:5px;margin-top:12px;border-radius:4px;background:var(--green-100);overflow:hidden}.stop-track i{display:block;height:100%;border-radius:inherit;background:var(--skill-color)}.focus-label{width:100%;margin-top:10px;display:flex;align-items:center;justify-content:space-between;color:var(--green-800);font-size:12px;font-weight:750;opacity:0;transform:translateY(4px);transition:opacity .16s,transform .16s}.skill-stop:hover .focus-label,.skill-stop:focus-visible .focus-label{opacity:1;transform:translateY(0)}.home-footer{width:min(1180px,calc(100% - 48px));margin:20px auto 0;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px}.home-footer>div{display:flex;gap:18px}.home-footer b{color:var(--green-800)}@keyframes fruit-float{0%,to{transform:translate(-50%) translateY(0) rotate(-4deg)}50%{transform:translate(-50%) translateY(-9px) rotate(-1deg)}}.play-screen{width:min(1240px,calc(100% - 40px));min-height:100dvh;margin:0 auto;padding:14px 0 12px;display:flex;flex-direction:column}.play-topbar{min-height:58px;display:flex;align-items:center;gap:18px}.play-brand{display:flex;align-items:center;gap:8px;font-weight:900}.run-info{display:flex;align-items:center;gap:12px}.mode-chip{min-height:34px;padding:0 11px;display:inline-flex;align-items:center;gap:6px;border-radius:11px;background:#fefaeeb3;color:var(--green-800);font-size:13px;font-weight:800}.question-count{color:var(--muted);font-size:14px;white-space:nowrap}.question-count b{color:var(--ink);font-size:20px}.play-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.score-box{margin-right:6px;display:flex;flex-direction:column;align-items:flex-end;line-height:1}.score-box span{color:var(--muted);font-size:11px}.score-box strong{margin-top:5px;font-size:24px;font-weight:950;font-variant-numeric:tabular-nums}.combo-box,.timer-box{min-width:78px;height:44px;padding:0 11px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.combo-box strong,.timer-box strong{font-size:21px}.combo-box span,.timer-box span{font-size:12px;color:var(--muted)}.combo-box.is-hot{color:var(--coral-dark);border-color:var(--coral);animation:combo-pop .24s ease-out}.timer-box.is-urgent{color:var(--paper);background:var(--coral);border-color:var(--coral-dark)}.timer-box.is-urgent span{color:var(--paper)}.sprint-track{height:5px;margin:4px 0 9px;border-radius:4px;background:#fefaee8c;overflow:hidden}.sprint-track span{display:block;height:100%;border-radius:inherit;background:var(--coral);transition:width .1s linear}.game-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:22px;align-items:stretch}.question-paper,.answer-pad{border:2px solid var(--green-950);border-radius:27px;background:var(--paper);box-shadow:var(--shadow)}.question-paper{position:relative;min-width:0;padding:20px 24px 16px;display:flex;flex-direction:column;overflow:hidden}.question-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.question-meta>div{display:flex;gap:7px}.skill-chip,.reason-chip{min-height:28px;padding:0 10px;display:inline-flex;align-items:center;border-radius:9px;font-size:12px;font-weight:800}.skill-chip{color:var(--paper);background:var(--green-800)}.reason-chip{color:var(--coral-dark);background:#ed71551f}.difficulty{align-items:flex-end;gap:3px!important;color:var(--muted)}.difficulty span{margin-right:3px;font-size:11px}.difficulty i{width:5px;height:12px;border-radius:3px;background:var(--line)}.difficulty i:nth-of-type(2){height:15px}.difficulty i:nth-of-type(3){height:18px}.difficulty i:nth-of-type(4){height:21px}.difficulty i:nth-of-type(5){height:24px}.difficulty i.filled{background:var(--sun)}.question-heading{margin-top:16px;text-align:center}.question-label{color:var(--coral-dark);font-size:12px;font-weight:850;letter-spacing:.12em}.question-heading h1{margin:5px 0;font-size:clamp(22px,2.2vw,29px);line-height:1.35;letter-spacing:-.035em}.question-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.picture-stage{flex:1;min-height:250px;margin-top:15px;padding:16px;display:grid;place-items:center;border:1px dashed oklch(.39 .07 164 / .25);border-radius:21px;background-color:#dcf2df91;background-image:radial-gradient(oklch(.39 .07 164 / .12) .7px,transparent .8px);background-size:14px 14px;overflow:hidden}.feedback-line{min-height:48px;margin-top:12px;padding:8px 12px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:13px;color:var(--muted);font-size:13px;line-height:1.5;text-align:center}.feedback-line svg{display:none}.feedback-success{color:var(--green-950);background:#3a825c26;font-weight:800}.feedback-error{color:var(--coral-dark);background:#ed71551f;font-weight:700}.feedback-info{color:#125d7c;background:#5598ba1f;font-weight:650}.feedback-success svg,.feedback-error svg,.feedback-info svg{display:block}.question-paper.is-correct{animation:correct-pop .24s ease-out}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:38%;width:9px;height:15px;border-radius:3px;animation:confetti-fly .7s ease-out both}.confetti .c0{background:var(--coral)}.confetti .c1{background:var(--sun)}.confetti .c2{background:var(--green-600)}.confetti .c3{background:var(--blue)}.item-icon{display:block;width:100%;height:100%}.picture-groups{width:100%;display:flex;align-items:center;justify-content:center;align-content:center;flex-wrap:wrap;gap:12px;transform:scale(var(--picture-density))}.picture-group{position:relative;min-width:70px;max-width:180px;padding:12px 10px 10px;border:2px dashed oklch(.39 .07 164 / .25);border-radius:18px;background:#fefaeead}.items-cloud{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px}.math-item{position:relative;width:35px;height:35px;flex:0 0 35px}.math-item.is-crossed{opacity:.36}.math-item.is-crossed:after{content:"";position:absolute;left:48%;top:-3px;width:3px;height:42px;border-radius:2px;background:var(--coral);transform:rotate(-42deg)}.math-item.is-ghost{opacity:.17;filter:grayscale(1)}.group-label{position:absolute;left:50%;top:-10px;transform:translate(-50%);padding:2px 7px;border-radius:7px;background:var(--green-800);color:var(--paper);font-size:11px;font-weight:800;white-space:nowrap}.remainder-group{border-color:var(--coral);background:#ed715514}.remainder-group .group-label{background:var(--coral)}.layout-sharing .picture-group{border:0;border-bottom:5px solid oklch(.65 .085 232 / .4);border-radius:50%;background:#5598ba17}.picture-array{width:auto;height:100%;max-width:100%;display:grid;gap:5px}.picture-array .item-icon{width:100%;height:auto;aspect-ratio:1}.picture-takeaway{width:min(100%,530px);transform:scale(var(--picture-density))}.picture-takeaway .items-cloud{gap:6px}.picture-takeaway .math-item{width:39px;height:39px;flex-basis:39px}.takeaway-legend{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:12px}.takeaway-legend span{width:18px;height:3px;background:var(--coral);transform:rotate(-30deg)}.picture-comparison{width:100%;display:flex;flex-direction:column;gap:15px;transform:scale(var(--picture-density))}.comparison-row{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:8px;padding:10px;border-radius:15px;background:#fefaeead}.comparison-label{color:var(--green-800);font-size:13px;font-weight:850}.comparison-row .items-cloud{justify-content:flex-start}.comparison-row .math-item{width:30px;height:30px;flex-basis:30px}.picture-groups.is-highlighted .picture-group,.picture-array.is-highlighted,.picture-takeaway.is-highlighted,.picture-comparison.is-highlighted{animation:hint-pulse .65s ease-out}.run-footer{min-height:38px;display:flex;align-items:center;justify-content:center;gap:13px;color:var(--muted);font-size:11px}.run-footer>span{white-space:nowrap}.run-footer b{color:var(--green-800)}.milestone-track{position:relative;width:min(180px,24vw);height:5px;border-radius:5px;background:#fefaeea6}.milestone-track span{display:block;height:100%;border-radius:inherit;background:var(--sun);transition:width .2s}.milestone-track i{position:absolute;top:50%;width:11px;height:11px;transform:translate(-50%,-50%) rotate(45deg);border:2px solid var(--green-800);border-radius:3px;background:var(--paper);transition:left .2s}@keyframes correct-pop{0%{transform:scale(1)}45%{transform:scale(1.012)}to{transform:scale(1)}}@keyframes combo-pop{0%{transform:scale(.9)}to{transform:scale(1)}}@keyframes hint-pulse{0%,to{filter:none}50%{filter:drop-shadow(0 0 8px var(--sun))}}@keyframes confetti-fly{0%{opacity:1;transform:translateY(0) rotate(0)}to{opacity:0;transform:translateY(-190px) rotate(280deg)}}.answer-pad{min-width:0;padding:18px;display:flex;flex-direction:column;gap:15px}.answer-workbench{padding-bottom:14px;border-bottom:1px solid var(--line)}.equation-row{display:flex;align-items:stretch;gap:7px}.answer-field{min-width:0;min-height:62px;padding:8px 10px;display:grid;place-items:center;border:2px solid var(--line);border-radius:14px;background:var(--paper-deep);font-size:23px;font-weight:900;font-variant-numeric:tabular-nums;overflow:hidden}.answer-field:first-child{flex:1}.answer-field span{max-width:100%;overflow-wrap:anywhere}.answer-field.is-active{border-color:var(--green-600);background:#3a825c17;box-shadow:0 0 0 3px #3a825c1a}.answer-field .placeholder{color:#52665c8f;font-size:14px;font-weight:650}.result-field{width:76px;flex-shrink:0}.unit-field{width:82px;flex-shrink:0;font-size:18px}.equals{align-self:center;font-size:25px;font-weight:900}.remainder-row{width:62%;margin:9px 0 0 auto}.remainder-dots{align-self:center;font-size:22px;font-weight:900;letter-spacing:2px}.unit-picker{margin-top:13px;display:flex;align-items:center;gap:10px}.unit-picker-label{flex-shrink:0;color:var(--muted);font-size:12px}.unit-options{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.unit-options button{min-height:44px;border:1px solid var(--line);border-radius:11px;background:var(--paper);font-size:16px;font-weight:800}.unit-options button:hover{border-color:var(--green-600)}.unit-options button.is-selected{border-color:var(--green-800);background:var(--green-800);color:var(--paper)}.keypad-wrap{flex:1;display:flex;flex-direction:column}.keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.math-key{min-height:54px;border:1px solid var(--line);border-bottom-width:3px;border-radius:14px;background:var(--paper-deep);font-size:24px;font-weight:850}.math-key:hover{background:var(--green-100);border-color:var(--green-600)}.math-key:active{border-bottom-width:1px}.operator-key{color:var(--coral-dark);background:#ed715514;font-size:27px}.utility-key{color:var(--muted)}.answer-actions{margin-top:auto;padding-top:13px;display:grid;grid-template-columns:.82fr 1.18fr;gap:9px}.hint-button,.submit-button,.primary-button,.secondary-button,.text-button,.danger-button{min-height:48px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;font-weight:850}.hint-button{border:1px solid var(--line);background:var(--paper);color:var(--muted)}.hint-button:hover{color:var(--green-800);background:var(--green-100)}.submit-button,.primary-button{border:2px solid var(--green-950);background:var(--green-800);color:var(--paper);box-shadow:0 4px 0 var(--green-950)}.submit-button:hover,.primary-button:hover{background:var(--green-600);transform:translateY(-1px)}.secondary-button{border:1px solid var(--line);background:var(--paper)}.secondary-button:hover{background:var(--green-100)}.text-button{border:0;background:transparent;color:var(--muted)}.text-button:hover{color:var(--green-800);background:var(--green-100)}.danger-button{border:0;background:var(--coral);color:var(--paper)}.full-button{width:100%}.modal-backdrop{position:fixed;inset:0;z-index:30;padding:24px;display:grid;place-items:center;background:#05312273;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:modal-in .18s ease-out}.modal-panel{width:min(520px,100%);max-height:calc(100dvh - 48px);padding:24px;border:2px solid var(--green-950);border-radius:26px;background:var(--paper);box-shadow:0 8px 0 var(--green-950),0 30px 80px #05312240;overflow-y:auto}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.modal-heading h2{margin:0;font-size:25px;letter-spacing:-.04em}.modal-heading .icon-button{background:var(--green-100)}.modal-actions{margin-top:22px;display:flex;justify-content:flex-end;gap:10px}.result-hero{padding:22px;display:flex;flex-direction:column;align-items:center;border-radius:20px;background:var(--green-100)}.result-mode{color:var(--green-800);font-size:13px;font-weight:800}.result-hero>strong{margin-top:4px;font-size:56px;line-height:1.1;letter-spacing:-.05em;color:var(--coral)}.result-hero>span:not(.result-mode){color:var(--muted);font-size:12px}.result-ribbon{margin-top:12px;padding:6px 13px;border-radius:999px;background:var(--paper);color:var(--green-800);font-size:13px;font-weight:800}.result-grid,.parent-summary{margin-top:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.result-grid>div,.parent-summary>div{padding:13px 5px;display:flex;flex-direction:column;align-items:center;border:1px solid var(--line);border-radius:14px}.result-grid strong,.parent-summary strong{font-size:23px}.result-grid small{font-size:12px}.result-grid span,.parent-summary span{margin-top:4px;color:var(--muted);font-size:11px}.result-note,.storage-note{color:var(--muted);font-size:13px;line-height:1.65}.pause-illustration{padding:25px;display:flex;flex-direction:column;align-items:center;gap:12px;border-radius:18px;background:var(--green-100);color:var(--green-800)}.stack-actions{margin-top:18px;display:flex;flex-direction:column;gap:10px}.parent-modal{width:min(700px,100%)}.parent-summary{margin-top:0}.report-section{margin-top:21px;padding-top:19px;border-top:1px solid var(--line)}.report-title{display:flex;align-items:center;gap:8px}.report-title h3{margin:0;font-size:16px}.report-title>span{margin-left:auto;color:var(--muted);font-size:11px}.mastery-list{margin-top:15px;display:flex;flex-direction:column;gap:13px}.mastery-meta{display:grid;grid-template-columns:120px 1fr 35px;align-items:center;gap:10px}.mastery-meta strong{font-size:14px}.mastery-meta span{color:var(--muted);font-size:12px}.mastery-meta b{text-align:right;font-size:14px}.mastery-track{height:7px;margin-top:6px;border-radius:5px;background:var(--green-100);overflow:hidden}.mastery-track span{display:block;height:100%;border-radius:inherit;transition:width .25s}.adaptive-report ul{margin:12px 0 0;padding-left:20px;color:var(--muted);font-size:13px;line-height:1.8}.parent-footer{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.reset-button{padding-left:0;color:var(--coral-dark);font-size:12px}.reset-confirm{display:flex;align-items:center;gap:7px;font-size:12px}.help-steps{display:flex;flex-direction:column;gap:18px;margin-bottom:24px}.help-steps>div{display:flex;gap:13px}.help-steps>div>span{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;border-radius:14px;background:var(--green-100);color:var(--green-800)}.help-steps b{font-size:16px}.help-steps p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.65}@keyframes modal-in{0%{opacity:0}to{opacity:1}}@media(max-width:1050px){.hero-copy h1{font-size:68px}.skill-trail{grid-template-columns:repeat(3,minmax(0,1fr))}.focus-label{opacity:1;transform:none}}@media(max-width:900px){.hero-section{grid-template-columns:1fr 330px;gap:4px}.hero-copy h1{font-size:60px}.hero-art{transform:scale(.86);transform-origin:center}.game-layout{grid-template-columns:1fr;gap:16px}.question-paper{min-height:500px}.picture-stage{min-height:245px}.answer-pad{padding:18px}.math-key{min-height:58px}.run-footer{padding:8px 0}}@media(max-width:700px){.topbar{width:calc(100% - 28px);padding:10px 0;flex-wrap:wrap;gap:8px}.top-actions{width:100%;justify-content:space-between}.nav-button,.parent-button{flex:1;padding:0 9px}.hero-section{width:calc(100% - 32px);margin-top:8px;grid-template-columns:1fr}.hero-copy{padding:18px 0 0;text-align:center}.eyebrow{font-size:12px}.hero-copy h1{margin-top:18px;font-size:clamp(52px,16vw,68px)}.hero-copy>p{font-size:15px}.start-button{width:min(100%,380px)}.hero-proof{justify-content:center;gap:12px}.hero-art{width:min(100%,390px);height:285px;margin:-5px auto 0;transform:none}.sun-disc{width:205px;height:205px;top:22px}.hero-fruit{width:180px;height:180px;top:33px}.fruit-face{gap:30px}.fruit-face i{width:8px;height:11px}.fruit-face b{top:19px;width:24px}.math-tile{width:48px;height:48px;border-radius:14px;font-size:27px}.tile-plus{top:44px}.tile-times{top:67px}.tile-divide{bottom:54px}.hero-equation{bottom:4px;min-width:0;width:82%;padding:11px;font-size:20px}.hero-sticker{width:64px;height:64px;right:0;bottom:55px;font-size:10px}.hero-sticker strong{font-size:13px}.trail-section{width:calc(100% - 28px);padding:19px 16px;border-radius:23px}.section-heading{align-items:flex-start}.section-heading h2{font-size:19px}.section-heading p{display:none}.skill-trail{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.skill-stop:last-child{grid-column:1 / -1}.skill-stop{padding:13px}.home-footer{width:calc(100% - 32px);flex-direction:column;align-items:center;text-align:center}.home-footer>div{gap:13px}.play-screen{width:calc(100% - 22px);padding-top:8px}.play-topbar{gap:8px;flex-wrap:wrap}.play-brand>span{display:none}.run-info{gap:6px}.mode-chip,.question-count{font-size:12px}.play-actions{width:100%;margin-left:0}.score-box{margin-right:auto;align-items:flex-start}.score-box strong{font-size:22px}.combo-box,.timer-box{min-width:70px}.question-paper{min-height:460px;padding:15px 14px 12px;border-radius:22px}.answer-pad{padding:14px;border-radius:22px}.question-meta{gap:5px}.skill-chip,.reason-chip{padding:0 8px}.question-heading{margin-top:13px}.question-heading h1{font-size:22px}.question-heading p{font-size:13px}.picture-stage{min-height:225px;margin-top:12px;padding:12px 8px}.feedback-line{min-height:50px;padding:7px;font-size:12px}.picture-groups{gap:9px}.picture-group{min-width:60px;padding:11px 7px 8px}.math-item{width:31px;height:31px;flex-basis:31px}.picture-array{width:auto;height:100%}.comparison-row{grid-template-columns:51px minmax(0,1fr);padding:7px 4px}.comparison-row .math-item{width:26px;height:26px;flex-basis:26px}.answer-field{min-height:57px;padding:7px;font-size:20px}.result-field{width:64px}.unit-field{width:72px;font-size:16px}.unit-picker{align-items:flex-start;flex-direction:column;gap:7px}.unit-options{width:100%}.math-key{min-height:52px}.answer-actions{padding-top:11px}.run-footer{flex-wrap:wrap;gap:8px}.milestone-track{width:110px}}@media(max-width:430px){.brand strong{font-size:18px}.nav-button span,.parent-button span{font-size:12px}.top-actions{gap:5px}.top-actions .icon-button{width:42px}.hero-proof{font-size:12px}.start-button b{font-size:19px}.hero-art{height:260px}.question-count{display:none}.play-actions{gap:6px}.play-actions .icon-button{width:42px}.equation-row{gap:5px}.answer-field{font-size:18px}.answer-field .placeholder{font-size:12px}.result-field{width:58px}.unit-field{width:66px;font-size:14px}.remainder-row{width:72%}.answer-actions{grid-template-columns:.9fr 1.1fr}.hint-button,.submit-button{padding:0 9px;font-size:14px}.modal-backdrop{padding:12px}.modal-panel{max-height:calc(100dvh - 24px);padding:18px;border-radius:22px}.result-grid,.parent-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.parent-footer{align-items:stretch;flex-direction:column-reverse}.reset-confirm{flex-wrap:wrap}.mastery-meta{grid-template-columns:105px 1fr 28px}.report-title>span{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(min-width:901px){.game-layout{flex:0 0 auto;height:clamp(590px,72dvh,720px);min-height:0}.keypad{flex:1;grid-template-rows:repeat(4,minmax(54px,1fr))}.run-footer{margin-top:auto}}@media(max-width:700px){.nav-button,.parent-button{white-space:nowrap}.play-topbar{min-height:50px;flex-wrap:nowrap}.play-brand{display:none}.run-info{flex-shrink:0}.play-actions{width:auto;margin-left:auto;flex-wrap:nowrap}.score-box span{display:none}.score-box strong{margin:0;font-size:19px}.combo-box,.timer-box{min-width:58px;padding:0 7px}.combo-box span,.timer-box span{display:none}.question-paper{min-height:0;padding:11px 12px 9px}.question-label{display:none}.question-heading{margin-top:8px}.question-heading h1{margin-top:0;font-size:20px}.question-heading p{font-size:12px}.picture-stage{flex:none;height:140px;min-height:140px;margin-top:8px}.feedback-line{min-height:42px;margin-top:7px}.answer-pad{gap:10px}.answer-workbench{padding-bottom:10px}.answer-field{min-height:50px}.unit-picker{margin-top:8px}.unit-picker-label{display:none}.math-key{min-height:44px}.keypad{gap:7px}.answer-actions{padding-top:8px}.run-footer{min-height:28px;padding:5px 0 0;font-size:10px}}@media(max-width:430px){.top-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.top-actions .nav-button,.top-actions .icon-button,.top-actions .parent-button{width:100%;min-width:0;padding:0}.top-actions .nav-button span{display:none}.parent-button{flex:0 0 44px;padding:0}.parent-button span{display:none}.mode-chip{padding:0 8px;font-size:11px}.play-actions{gap:5px}.picture-stage{height:132px;min-height:132px}}.picture-array .item-icon{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}@media(max-width:700px){.picture-stage{flex:none;height:auto;min-height:132px}.picture-groups{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;transform:none}.picture-groups.group-count-2,.picture-groups.group-count-3,.picture-groups.group-count-4{grid-template-columns:repeat(2,minmax(0,1fr))}.picture-group,.group-count-2 .picture-group{width:auto;min-width:0;max-width:none;padding:12px 5px 7px}.picture-group .math-item,.group-count-2 .math-item{width:20px;height:20px;flex-basis:20px}.picture-group .items-cloud{gap:2px}.picture-array{width:min(100%,var(--array-mobile-width));height:auto;max-height:none;gap:2px;transform:none}.picture-takeaway{width:100%;transform:none}.picture-takeaway .items-cloud{gap:2px}.picture-takeaway .math-item{width:20px;height:20px;flex-basis:20px}.picture-comparison{gap:8px;transform:none}.comparison-row{grid-template-columns:48px minmax(0,1fr);gap:5px;padding:7px 4px}.comparison-row .items-cloud{gap:2px}.comparison-row .math-item{width:20px;height:20px;flex-basis:20px}.takeaway-legend{margin-top:8px}}.math-key,.unit-options button,.submit-button{touch-action:manipulation;user-select:none;-webkit-user-select:none}.adventure-hud{position:relative;margin:2px 0 13px;padding:10px 15px;display:grid;grid-template-columns:120px minmax(220px,1fr) 70px auto;align-items:center;gap:15px;border:1px solid oklch(.39 .07 164 / .17);border-radius:19px;background:#fefaeec2;box-shadow:0 4px #05312214}.adventure-hud.is-boss{border-color:#ed71557a;background:#fff9ece6;background:oklch(.985 .025 82 / .9)}.adventure-stage{display:flex;flex-direction:column}.adventure-stage span{color:var(--muted);font-size:11px;font-weight:750}.adventure-stage strong{margin-top:2px;font-size:15px}.adventure-path{position:relative;height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 9px}.path-line{position:absolute;left:18px;right:18px;top:50%;height:5px;transform:translateY(-50%);border-radius:5px;background:var(--line)}.path-node{position:relative;z-index:1;width:25px;height:25px;display:grid;place-items:center;border:2px solid var(--line);border-radius:50%;background:var(--paper);color:var(--muted);font-size:11px;font-weight:850}.path-node.is-done{border-color:var(--green-600);background:var(--green-600);color:var(--paper)}.path-node.is-current{border-color:var(--sun);box-shadow:0 0 0 4px #f1ba4b33}.path-traveler{position:absolute;z-index:3;top:-5px;transform:translate(-50%);transition:left .35s cubic-bezier(.2,.8,.2,1)}.path-bug{position:absolute;z-index:2;right:-7px;top:0;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--paper-deep);color:var(--muted);transform:rotate(7deg)}.path-bug.is-awake{color:var(--paper);background:var(--coral);animation:bug-bounce .5s ease-in-out infinite alternate}.harvest-count{display:flex;align-items:center;gap:4px;color:var(--coral-dark)}.harvest-count strong{font-size:22px}.harvest-count span{color:var(--muted);font-size:11px}.perk-inventory{display:flex;gap:5px}.perk-inventory>span{min-height:28px;padding:0 8px;display:inline-flex;align-items:center;gap:4px;border-radius:9px;background:var(--green-100);color:var(--green-800);font-size:12px;font-weight:850}@keyframes bug-bounce{to{transform:translateY(-4px) rotate(-7deg)}}.boss-chip{min-height:28px;padding:0 10px;display:inline-flex;align-items:center;border-radius:9px;color:var(--paper);background:var(--coral);font-size:12px;font-weight:850}.question-paper.is-boss-question{border-color:var(--coral-dark)}.challenge-pad{min-width:0;padding:20px;display:flex;flex-direction:column;gap:16px;border:2px solid var(--green-950);border-radius:27px;background:var(--paper);box-shadow:var(--shadow)}.challenge-intro{display:flex;align-items:center;gap:11px;color:var(--green-800)}.challenge-intro>div{display:flex;flex-direction:column;gap:3px}.challenge-intro strong{font-size:18px}.challenge-intro span{color:var(--muted);font-size:13px;line-height:1.5}.choice-options{flex:1;display:grid;grid-template-rows:repeat(3,minmax(82px,1fr));gap:12px}.choice-options button{min-width:0;min-height:82px;padding:13px 15px;display:flex;align-items:center;gap:13px;border:2px solid var(--line);border-bottom-width:5px;border-radius:18px;background:var(--paper-deep);text-align:left;touch-action:manipulation}.choice-options button:hover:not(:disabled){border-color:var(--green-600);background:var(--green-100);transform:translate(-3px)}.choice-options button:active:not(:disabled){border-bottom-width:2px;transform:translateY(2px)}.choice-options button.is-wrong{border-color:var(--coral);background:#ed715514;text-decoration:line-through}.choice-letter{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:var(--green-800);color:var(--paper);font-size:20px;font-weight:900}.choice-options strong{min-width:0;overflow-wrap:anywhere;font-size:clamp(17px,1.7vw,23px);line-height:1.45}.detective-work{padding:20px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;border:2px dashed oklch(.69 .16 34 / .38);border-radius:18px;background:#ed71550f}.detective-work span{color:var(--muted);font-size:12px}.detective-work strong{overflow-wrap:anywhere;font-size:clamp(22px,2.2vw,30px);text-align:center}.detective-options{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.detective-options button{min-height:72px;padding:11px;display:flex;align-items:center;justify-content:center;gap:7px;border:2px solid var(--line);border-bottom-width:4px;border-radius:16px;background:var(--paper-deep);font-weight:850}.detective-options button:hover:not(:disabled){border-color:var(--green-600);background:var(--green-100)}.detective-options button.is-wrong{border-color:var(--coral);text-decoration:line-through}.picture-stage.is-memory-hidden{display:grid}.memory-cover{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--green-800);text-align:center}.memory-cover strong{font-size:23px}.memory-cover span{color:var(--muted);font-size:13px}.memory-cover button{min-height:44px;margin-top:6px;padding:0 17px;border:1px solid var(--green-600);border-radius:13px;background:var(--paper);color:var(--green-800);font-weight:800}.harvest-pop{position:absolute;z-index:5;right:26px;top:47%;padding:9px 13px;border:2px solid var(--green-950);border-radius:13px;background:var(--sun);color:var(--green-950);font-weight:900;box-shadow:0 4px 0 var(--green-950);animation:harvest-rise .62s ease-out both;pointer-events:none}@keyframes harvest-rise{0%{opacity:0;transform:translateY(20px) rotate(5deg) scale(.7)}35%{opacity:1}to{opacity:0;transform:translateY(-70px) rotate(-5deg) scale(1.08)}}.perk-modal{width:min(760px,100%)}.perk-lead{margin:-8px 0 18px;color:var(--muted);font-size:14px}.perk-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.perk-choices button{min-height:190px;padding:20px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:2px solid var(--line);border-bottom-width:5px;border-radius:19px;background:var(--paper-deep);text-align:center}.perk-choices button:hover{border-color:var(--green-600);background:var(--green-100);transform:translateY(-4px)}.perk-choices button>span{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--sun);color:var(--green-950)}.perk-choices strong{font-size:17px}.perk-choices small{color:var(--muted);font-size:13px;line-height:1.6}@media(max-width:700px){.adventure-hud{margin:3px 0 10px;padding:7px 9px;grid-template-columns:73px minmax(0,1fr) 47px;gap:7px;border-radius:16px}.adventure-stage span{font-size:10px}.adventure-stage strong{font-size:12px}.adventure-path{height:38px;padding:0 5px}.path-node{width:21px;height:21px;font-size:10px}.path-traveler{top:0}.path-traveler .brand-mark{width:30px;height:30px}.path-bug{right:-4px;top:4px;width:29px;height:29px}.path-bug svg{width:20px}.harvest-count span{display:none}.harvest-count strong{font-size:19px}.harvest-count svg{width:19px}.perk-inventory{grid-column:1 / -1;justify-content:center}.boss-chip{display:none}.challenge-pad{padding:14px;gap:12px;border-radius:22px}.challenge-intro strong{font-size:16px}.challenge-intro span{font-size:12px}.choice-options{grid-template-rows:none;gap:9px}.choice-options button{min-height:76px;padding:10px;gap:9px;border-radius:15px}.choice-letter{width:38px;height:38px;border-radius:11px;font-size:18px}.choice-options strong{font-size:17px}.detective-work{padding:16px 9px}.detective-work strong{font-size:21px}.detective-options{gap:8px}.detective-options button{min-height:64px;padding:8px 5px;font-size:13px}.memory-cover{min-height:132px}.harvest-pop{right:17px;top:45%;font-size:13px}.perk-choices{grid-template-columns:1fr;gap:9px}.perk-choices button{min-height:92px;padding:12px;display:grid;grid-template-columns:52px 1fr;gap:3px 12px;text-align:left}.perk-choices button>span{width:52px;height:52px;grid-row:1 / 3}.perk-choices strong,.perk-choices small{align-self:end}.perk-choices small{align-self:start}}@media(prefers-reduced-motion:reduce){.path-bug.is-awake,.harvest-pop{animation:none}.harvest-pop{opacity:1}}.hero-section{min-height:470px}.hero-copy h1{font-size:clamp(52px,5.6vw,78px);line-height:1.09;letter-spacing:-.065em}.hero-copy>p{line-height:1.85}.world-art{height:440px;display:flex;align-items:center;justify-content:center}.orchard-world{width:100%;height:auto;overflow:visible;filter:drop-shadow(0 18px 20px oklch(.28 .055 165 / .08))}.world-math{transform-box:fill-box;transform-origin:center;animation:world-token 3.8s ease-in-out infinite}.world-math.second{animation-delay:-1.7s}.world-bug{transform-box:fill-box;transform-origin:center;animation:world-bug 1.8s ease-in-out infinite alternate}.world-note{position:absolute;right:0;bottom:20px;padding:11px 16px;display:flex;flex-direction:column;gap:2px;border:2px solid var(--green-950);border-radius:15px;background:var(--paper);box-shadow:0 4px 0 var(--green-950);transform:rotate(-2deg)}.world-note span{color:var(--muted);font-size:10px;font-weight:750}.world-note strong{font-size:13px}@keyframes world-token{0%,to{translate:0 0}50%{translate:0 -8px}}@keyframes world-bug{to{translate:0 -7px;rotate:5deg}}.mode-dock{width:min(1180px,calc(100% - 48px));margin:2px auto 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.mode-card{min-width:0;min-height:116px;padding:17px;display:grid;grid-template-columns:51px 1fr 20px;align-items:center;gap:13px;border:2px solid var(--green-950);border-radius:22px;background:var(--paper);box-shadow:0 5px #05312229;text-align:left}.mode-card:hover:not(:disabled){transform:translateY(-4px) rotate(-.4deg);box-shadow:0 9px #05312224}.mode-card-icon{width:51px;height:58px;display:grid;place-items:center;border:2px solid currentColor;border-radius:17px 17px 22px 22px}.mode-card>span:nth-child(2){min-width:0;display:flex;flex-direction:column}.mode-card small{font-size:10px;font-weight:800;opacity:.72}.mode-card strong{margin:3px 0;font-size:20px;font-weight:950;letter-spacing:-.035em}.mode-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.mental-mode{color:#9b4b38;background:#fff2df}.mental-mode .mode-card-icon{background:#f7b96e}.times-mode{color:#805b20;background:#fff5c9}.times-mode .mode-card-icon{background:#f4d56b}.story-mode{color:#356a76;background:#e7f3ee}.story-mode .mode-card-icon{background:#9dd5c5}.review-mode{color:#65557f;background:#f1eaf4}.review-mode .mode-card-icon{background:#cbb9d8}.orchard-home-panel{width:min(1180px,calc(100% - 48px));margin:0 auto 20px;padding:18px 20px;display:grid;grid-template-columns:minmax(235px,.85fr) 100px minmax(450px,1.65fr);align-items:center;gap:20px;border:2px solid var(--green-950);border-radius:24px;background:#fffaf0;box-shadow:var(--shadow)}.orchard-level-copy{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:10px}.level-medal{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:var(--sun);color:var(--green-950);border:2px solid var(--green-950)}.orchard-level-copy small{color:var(--muted);font-size:10px;font-weight:750}.orchard-level-copy h2{margin:1px 0 0;font-size:22px;letter-spacing:-.04em}.orchard-xp{grid-column:1 / -1;display:flex;align-items:center;gap:9px}.orchard-xp>span{flex:1;height:7px;border-radius:8px;background:var(--green-100);overflow:hidden}.orchard-xp i{display:block;height:100%;border-radius:inherit;background:var(--coral)}.coin-bank{min-height:65px;display:grid;grid-template-columns:28px 1fr;align-content:center;padding:8px 12px;border-left:1px solid var(--line);border-right:1px solid var(--line);color:#a76527}.coin-bank strong{font-size:25px;line-height:1}.coin-bank span{grid-column:1 / -1;margin-top:5px;color:var(--muted);font-size:10px;text-align:center}.upgrade-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.upgrade-list button{min-width:0;min-height:67px;padding:9px;display:grid;grid-template-columns:29px 1fr;align-items:center;gap:7px;border:1px solid var(--line);border-radius:14px;background:var(--paper);text-align:left}.upgrade-list button:hover:not(:disabled){border-color:var(--green-600);background:var(--green-100)}.upgrade-list button>span{color:var(--green-800)}.upgrade-list button div{min-width:0}.upgrade-list button strong{display:block;font-size:12px;white-space:nowrap}.upgrade-list button strong small{color:var(--muted);font-size:9px}.upgrade-list button p{margin:3px 0 0;color:var(--muted);font-size:9px;white-space:nowrap}.upgrade-list button>b{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;gap:3px;color:#a76527;font-size:10px}.input-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:14px;background:var(--paper-deep)}.input-mode-switch button{min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-size:13px;font-weight:800}.input-mode-switch button.is-active{background:var(--paper);color:var(--green-800);box-shadow:0 2px 7px #0531221a}.handwriting-pad{display:flex;flex-direction:column;gap:9px}.handwriting-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.handwriting-heading>span{display:inline-flex;align-items:center;gap:6px;color:var(--green-800);font-size:12px;font-weight:800}.handwriting-heading small{color:var(--muted);font-size:10px}.handwriting-canvas-wrap{position:relative;border:2px solid var(--green-800);border-radius:17px;overflow:hidden;background:#fffdf4;box-shadow:inset 0 0 0 5px #fffdf4,inset 0 0 0 6px #18513b1f}.handwriting-canvas-wrap canvas{width:100%;height:155px;display:block;touch-action:none;cursor:crosshair}.handwriting-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;color:#52665c73;pointer-events:none;font-size:13px;font-weight:700}.handwriting-result{display:flex;align-items:center;gap:7px}.handwriting-result>div{flex:1;min-width:0;display:flex;align-items:center;gap:10px}.handwriting-result>div span{color:var(--muted);font-size:11px}.handwriting-result>div strong{min-width:50px;color:var(--coral-dark);font-size:28px;line-height:1;font-variant-numeric:tabular-nums}.handwriting-result>button{min-height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:11px;background:var(--paper);font-size:12px;font-weight:800}.handwriting-submit{width:100%}.handwrite-choice-button{min-height:45px;display:flex;align-items:center;justify-content:center;gap:7px;border:2px dashed var(--green-600);border-radius:14px;background:var(--green-100);color:var(--green-800);font-weight:850}.back-to-choices{align-self:center;min-height:36px}.mental-answer-row{display:flex;align-items:center;justify-content:center;gap:15px}.mental-answer-row>span{color:var(--muted);font-size:13px;font-weight:800}.mental-result{width:130px;min-height:66px;font-size:35px;color:var(--coral-dark)}.mental-keypad{grid-template-columns:repeat(3,minmax(0,1fr))}.unitless-note{margin-top:10px;padding:9px 11px;display:flex;align-items:center;gap:9px;border-radius:11px;background:#fff2cf;font-size:11px}.unitless-note strong{color:#9b5d27;white-space:nowrap}.unitless-note span{color:var(--muted)}.items-cloud.is-condensed{min-width:108px;padding:5px;position:relative}.quantity-total{min-width:51px;height:51px;display:grid;place-items:center;border:2px solid var(--green-800);border-radius:15px;background:var(--sun);color:var(--green-950);font-size:24px;font-weight:950;font-variant-numeric:tabular-nums;box-shadow:0 3px 0 var(--green-800)}.is-condensed .math-item{width:27px;height:27px;flex-basis:27px}.condensed-note{width:100%;color:var(--coral-dark);font-size:10px;font-weight:800;text-align:center}.math-table{width:min(100%,430px);padding:15px;border:2px solid var(--green-800);border-radius:18px;background:var(--paper);box-shadow:0 5px #18513b2e}.math-table h3{margin:0 0 10px;color:var(--green-800);font-size:17px;text-align:center}.math-table table{width:100%;border-collapse:collapse;font-size:14px}.math-table th,.math-table td{padding:10px 8px;border:1px solid var(--line);text-align:center}.math-table th{background:var(--green-100);font-size:12px}.math-table td{font-weight:800}.math-table>span{margin-top:9px;display:block;color:var(--muted);font-size:10px;text-align:center}.mental-sun{position:relative;min-height:120px;display:flex;align-items:center;justify-content:center;gap:12px;color:#d8912f}.mental-sun>span{padding:8px 12px;border-radius:999px;background:var(--paper);color:var(--green-800);font-size:12px;font-weight:800}.sun-rays{position:absolute;width:105px;height:105px;border:4px dashed #eab84c;border-radius:50%;animation:sun-spin 16s linear infinite}@keyframes sun-spin{to{transform:rotate(360deg)}}.question-paper.is-mental .question-heading h1{margin:9px 0;color:var(--green-950);font-size:clamp(40px,5vw,64px);font-variant-numeric:tabular-nums;letter-spacing:.01em}.question-paper.is-mental .picture-stage{min-height:145px}.energy-count{display:flex;align-items:center;gap:4px;color:#ad722b}.energy-count strong{font-size:20px}.energy-count span{color:var(--muted);font-size:10px}.adventure-hud{grid-template-columns:112px minmax(180px,1fr) 62px 62px auto}.orchard-backdrop{padding:16px;background:#16392fad}.orchard-modal{width:min(900px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;border:3px solid #244b3e;border-radius:28px;background:#fffaf0;box-shadow:0 9px #173b31,0 35px 90px #08251d59}.orchard-play{padding:19px}.orchard-play-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.orchard-play-heading>div:first-child span{color:var(--coral-dark);font-size:11px;font-weight:850;letter-spacing:.12em}.orchard-play-heading h2{margin:2px 0 0;font-size:28px;letter-spacing:-.04em}.orchard-timer{min-width:91px;min-height:45px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:5px;border:2px solid var(--green-950);border-radius:14px;background:var(--sun)}.orchard-timer strong{font-size:24px;font-variant-numeric:tabular-nums}.orchard-timer span{font-size:11px}.orchard-stats{margin:12px 0 10px;display:flex;align-items:center;gap:8px}.orchard-stats>span{min-height:32px;padding:0 10px;display:inline-flex;align-items:center;gap:4px;border-radius:10px;background:var(--green-100);color:var(--green-800);font-size:12px}.orchard-stats>span:nth-child(2){color:var(--coral-dark);background:#fff0e5}.orchard-stats>span:nth-child(3){color:#a56b22;background:#fff2c9}.orchard-stats b{font-size:17px}.orchard-stats>strong{margin-left:auto;color:var(--coral-dark);font-size:14px}.orchard-canvas-wrap{position:relative;border:3px solid #244b3e;border-radius:21px;overflow:hidden;background:#a8ddda}.orchard-canvas-wrap canvas{width:100%;height:auto;display:block;touch-action:none;cursor:grab}.orchard-canvas-wrap canvas:active{cursor:grabbing}.harvest-summary{position:absolute;inset:0;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fffae7eb;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--green-950);text-align:center;animation:modal-in .18s ease-out}.harvest-summary>svg{color:#d99c31}.harvest-summary h3{margin:8px 0 15px;font-size:25px}.harvest-summary>div{display:flex;gap:10px}.harvest-summary>div span{min-width:95px;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:13px;background:var(--paper);font-size:12px}.harvest-summary>div b{font-size:22px}.harvest-summary p{margin:13px 0;color:var(--green-800);font-size:13px;font-weight:800}.orchard-controls{margin-top:12px;display:grid;grid-template-columns:1fr 205px auto;align-items:center;gap:10px}.basket-controls{display:flex;align-items:center;gap:8px}.basket-controls button{width:46px;height:46px;display:grid;place-items:center;flex-shrink:0;border:2px solid var(--green-950);border-radius:13px;background:var(--paper);box-shadow:0 3px 0 var(--green-950);touch-action:none}.basket-controls>span{color:var(--green-800);font-size:11px;font-weight:750;line-height:1.45}.basket-controls small{color:var(--muted);font-size:9px}.sun-burst{min-height:53px;padding:7px 11px;display:flex;align-items:center;gap:8px;border:2px solid #8c6428;border-radius:14px;background:#ffdc72;color:#6e4b20;box-shadow:0 3px #8c6428;text-align:left}.sun-burst>span{display:flex;flex-direction:column}.sun-burst b{font-size:13px}.sun-burst small{font-size:9px}.orchard-skip{min-height:42px;padding:0 10px;display:flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--muted);font-size:11px}@media(max-width:1050px){.mode-dock{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy h1{font-size:56px}.orchard-home-panel{grid-template-columns:220px 85px 1fr;gap:12px}.upgrade-list{grid-template-columns:1fr}.upgrade-list button{min-height:42px;grid-template-columns:25px 1fr auto}.upgrade-list button>b{grid-column:auto}.upgrade-list button p{display:none}.adventure-hud{grid-template-columns:95px minmax(150px,1fr) 50px 55px auto;gap:8px}}@media(max-width:700px){.hero-copy h1{font-size:clamp(43px,13vw,60px)}.world-art{height:330px;width:100%;margin:0 auto}.world-note{right:5px;bottom:0}.mode-dock{width:calc(100% - 28px);grid-template-columns:1fr;gap:9px}.mode-card{min-height:92px;padding:12px 14px;border-radius:18px}.mode-card strong{font-size:18px}.mode-card p{font-size:11px}.orchard-home-panel{width:calc(100% - 28px);padding:15px;grid-template-columns:1fr 82px;gap:13px;border-radius:20px}.coin-bank{border-right:0}.upgrade-list{grid-column:1 / -1;grid-template-columns:repeat(3,minmax(0,1fr))}.upgrade-list button{min-height:72px;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center}.upgrade-list button>span{display:none}.upgrade-list button>b{margin-top:2px}.upgrade-list button p{display:none}.handwriting-canvas-wrap canvas{height:150px}.handwriting-heading small{display:none}.question-paper.is-mental .question-heading h1{font-size:42px}.question-paper.is-mental .picture-stage{min-height:100px;height:100px}.mental-sun{min-height:90px}.sun-rays{width:80px;height:80px}.items-cloud.is-condensed{min-width:85px;flex-wrap:wrap}.quantity-total{min-width:43px;height:43px;font-size:20px}.is-condensed .math-item{width:20px;height:20px;flex-basis:20px}.math-table{padding:9px}.math-table h3{margin-bottom:6px;font-size:14px}.math-table th,.math-table td{padding:7px 4px;font-size:12px}.adventure-hud{grid-template-columns:71px minmax(0,1fr) 40px 40px}.energy-count span{display:none}.energy-count strong{font-size:17px}.energy-count svg{width:17px}.perk-inventory{grid-column:1 / -1}.orchard-backdrop{padding:7px}.orchard-modal{max-height:calc(100dvh - 14px);border-radius:22px}.orchard-play{padding:12px}.orchard-play-heading h2{font-size:22px}.orchard-stats{gap:5px}.orchard-stats>span{padding:0 7px;font-size:10px}.orchard-stats>strong{display:none}.orchard-canvas-wrap{border-radius:16px}.orchard-controls{grid-template-columns:1fr 145px;gap:8px}.basket-controls>span{display:none}.basket-controls{justify-content:space-between}.sun-burst{min-height:46px;padding:5px 8px}.sun-burst small{display:none}.orchard-skip{grid-column:1 / -1;justify-self:center;min-height:34px}.harvest-summary{padding:13px}.harvest-summary h3{margin:5px 0 10px;font-size:19px}.harvest-summary>div{gap:5px}.harvest-summary>div span{min-width:80px;padding:7px;font-size:10px}.harvest-summary p{margin:8px 0;font-size:11px}}@media(max-width:390px){.hero-copy h1{font-size:43px}.world-art{height:295px}.orchard-home-panel{grid-template-columns:1fr 70px}.orchard-level-copy h2{font-size:19px}.handwriting-result>div span{font-size:10px}.handwriting-result>button{padding:0 8px}}@media(prefers-reduced-motion:reduce){.world-math,.world-bug,.sun-rays{animation:none}}.handwriting-symbols{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border-radius:12px;background:#eef6ed}.handwriting-symbols>span{color:var(--muted);font-size:10px;font-weight:750}.handwriting-symbols>div{display:flex;gap:5px}.handwriting-symbols button{width:40px;height:36px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--coral-dark);font-size:21px;font-weight:900}.handwriting-lab-backdrop{padding:18px;background:#14322ac2}.handwriting-lab{width:min(1120px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;border:2px solid var(--green-950);border-radius:28px;background:#fffaf0;box-shadow:0 9px 0 var(--green-950),0 30px 90px #09221b59}.lab-header{padding:22px 25px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:#f0f6df}.lab-header>div>span{display:flex;align-items:center;gap:6px;color:var(--green-800);font-size:11px;font-weight:800}.lab-header h2{margin:5px 0 3px;font-size:29px;letter-spacing:-.045em}.lab-header p{margin:0;color:var(--muted);font-size:13px}.lab-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(285px,.75fr)}.lab-write-section{min-width:0;padding:22px 25px 25px}.lab-step{margin:0 0 11px;display:flex;align-items:center;gap:8px;color:var(--green-800);font-size:13px;font-weight:800}.lab-step:not(:first-child){margin-top:18px}.lab-step b{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:var(--green-800);color:#fff}.lab-step strong{margin-left:auto;padding:5px 10px;border-radius:9px;background:var(--sun);color:var(--green-950)}.digit-targets{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}.digit-targets button{min-width:0;height:45px;border:1px solid var(--line);border-radius:11px;background:var(--paper);font-size:20px;font-weight:900}.digit-targets button.is-active{border:2px solid var(--green-950);background:var(--green-800);color:#fff;box-shadow:0 3px 0 var(--green-950);transform:translateY(-2px)}.lab-write-section .handwriting-canvas-wrap canvas{height:190px}.lab-save{width:100%;margin-top:13px}.lab-message{min-height:40px;margin:12px 0 0;padding:10px 12px;border-radius:11px;background:var(--green-100);color:var(--green-800);font-size:12px;line-height:1.55}.lab-side{padding:25px 23px;border-left:1px solid var(--line);background:#fffdf6}.lab-side-eyebrow{color:var(--coral-dark);font-size:10px;font-weight:900;letter-spacing:.13em}.lab-side h3{margin:6px 0;font-size:23px}.lab-side>p{margin:0 0 17px;color:var(--muted);font-size:12px;line-height:1.65}.sample-counts{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.sample-counts>div{padding:8px 4px;display:flex;flex-direction:column;align-items:center;border:1px solid var(--line);border-radius:10px;color:var(--muted)}.sample-counts>div.has-samples{border-color:var(--green-600);background:var(--green-100);color:var(--green-800)}.sample-counts strong{font-size:20px}.sample-counts span{font-size:9px}.lab-file-actions{margin-top:18px;display:grid;gap:9px}.lab-export-backup{margin-top:12px;padding:12px;border:1px solid #b9cbae;border-radius:13px;background:#eff6e8}.lab-export-backup>div{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--green-900);font-size:13px}.lab-export-backup>div button{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--green-800)}.lab-export-backup>p{margin:3px 0 8px;overflow-wrap:anywhere;color:var(--muted);font-size:10px}.lab-export-backup textarea{width:100%;height:92px;padding:8px;resize:vertical;border:1px solid var(--line);border-radius:9px;background:#fffdf8;color:var(--green-950);font:10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}.lab-export-backup>button{width:100%;margin-top:8px}.lab-export-backup>small{margin-top:8px;display:block;color:var(--muted);font-size:10px;line-height:1.55}.lab-privacy{margin-top:16px;padding:11px;border-radius:11px;background:#f3ecdd;color:var(--muted);font-size:10px;line-height:1.65}.lab-clear{margin:12px auto 0;min-height:34px;display:flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--muted);font-size:11px}.lab-clear-confirm{margin-top:12px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:var(--coral-dark);font-size:11px}.lab-clear-confirm button{min-height:32px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:11px}.battle-home-banner{position:relative;width:min(1180px,calc(100% - 48px));min-height:174px;margin:0 auto 20px;padding:22px 24px;display:grid;grid-template-columns:245px minmax(0,1fr) 245px;align-items:center;gap:24px;overflow:hidden;border:2px solid #0e112b;border-radius:27px;background:radial-gradient(circle at 16% 20%,#494886 0,transparent 33%),linear-gradient(130deg,#20234b,#171831 70%);color:#fff;box-shadow:0 7px #0e112b,0 22px 50px #18183c33}.battle-home-banner:after{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#fff 1px,transparent 1.5px);background-size:49px 49px;opacity:.1}.battle-home-scene{position:relative;z-index:1;height:112px;display:flex;align-items:center;justify-content:center;gap:5px}.battle-home-scene span{font-size:47px;filter:drop-shadow(0 8px 6px rgba(0,0,0,.3));animation:parade-bob 2.4s ease-in-out infinite}.battle-home-scene span:first-child{font-size:70px;z-index:2}.battle-home-scene span:nth-of-type(3){animation-delay:-.7s}.battle-home-scene i{position:absolute;left:50px;bottom:3px;font-size:34px;font-style:normal;transform:rotate(-20deg)}.battle-home-scene b{color:#ffe879;font-size:26px}.battle-home-copy{position:relative;z-index:1;min-width:0}.battle-home-copy>span{display:flex;align-items:center;gap:6px;color:#ffe879;font-size:11px;font-weight:850;letter-spacing:.08em}.battle-home-copy h2{margin:5px 0 4px;font-size:27px;letter-spacing:-.04em}.battle-home-copy>p{margin:0;color:#c8c9eb;font-size:12px}.battle-home-loadout{margin-top:12px;color:#fff;font-size:20px}.battle-home-loadout small{margin-left:12px;color:#aef0dc;font-size:10px;font-weight:700}.battle-home-button{position:relative;z-index:1;min-height:72px;padding:10px 15px;display:flex;align-items:center;gap:10px;border:2px solid #fff3b0;border-radius:18px;background:#ffe879;color:#232447;box-shadow:0 5px #b89437;text-align:left}.battle-home-button:hover{transform:translateY(-3px) rotate(-.5deg);background:#fff2a8}.battle-home-button>span{flex:1;display:flex;flex-direction:column}.battle-home-button strong{font-size:15px}.battle-home-button small{margin-top:3px;font-size:10px;opacity:.72}@keyframes parade-bob{50%{transform:translateY(-7px) rotate(3deg)}}.loot-backdrop{background:#171939c2}.loot-modal{position:relative;width:min(570px,calc(100vw - 32px));padding:28px;overflow:hidden;border:3px solid #fff0a1;border-radius:28px;background:radial-gradient(circle at 50% 0,#484780,#20213f 70%);color:#fff;box-shadow:0 9px #111228,0 30px 90px #05061880;text-align:center}.loot-eyebrow{color:#ffe879;font-size:12px;font-weight:850;letter-spacing:.08em}.loot-modal h2{margin:8px 0 20px;font-size:28px}.loot-items{max-height:min(48dvh,430px);padding:2px;display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,230px));justify-content:center;gap:10px;overflow-y:auto}.loot-items>div{min-width:0;padding:16px 9px;display:flex;flex-direction:column;align-items:center;border:1px solid #7678ae;border-radius:19px;background:#ffffff14}.loot-items>div>span{font-size:60px;filter:drop-shadow(0 7px 8px rgba(0,0,0,.3))}.loot-items strong{margin-top:8px;color:#fff2a8;font-size:18px}.loot-items small{margin-top:5px;color:#d4d4ef;font-size:11px;line-height:1.55}.loot-items.is-large{max-height:min(52dvh,500px);grid-template-columns:repeat(3,minmax(0,1fr))}.loot-items.is-large>div{padding:10px 7px}.loot-items.is-large>div>span{font-size:44px}.loot-items.is-large strong{margin-top:4px;font-size:14px}.loot-items.is-large small{font-size:10px}.loot-modal>p{color:#c8c9e5;font-size:12px}.loot-actions{margin-top:20px;display:grid;grid-template-columns:1fr 1.25fr;gap:10px}.loot-modal .secondary-button{border-color:#7779a8;background:transparent;color:#fff}.loot-modal .primary-button{border-color:#fff0a1;background:#ffe879;color:#242542;box-shadow:0 4px #aa8831}.spooky-mist{margin:-28px -28px 18px;padding:24px 20px 17px;display:flex;flex-direction:column;align-items:center;background:linear-gradient(#303353,#656888,#303353);color:#f2efff}.spooky-mist i{font-size:66px;font-style:normal;animation:ghost-float 2.8s ease-in-out infinite}.spooky-mist span{margin-top:5px;font-size:12px}@keyframes ghost-float{50%{transform:translateY(-5px) rotate(-4deg)}}.rogue-shell{min-height:100dvh;background:#15162f;color:#f8f7ff}.rogue-topbar{width:min(1240px,calc(100% - 36px));min-height:70px;margin:0 auto;display:flex;align-items:center;gap:10px}.rogue-back,.rogue-icon{min-height:43px;border:1px solid #45476e;background:#232544;color:#e4e4f7}.rogue-back{padding:0 14px;display:flex;align-items:center;gap:7px;border-radius:13px;font-size:12px;font-weight:800}.rogue-icon{width:43px;padding:0;display:grid;place-items:center;border-radius:13px}.rogue-back:hover,.rogue-icon:hover{background:#34365d}.rogue-mini-brand{margin:0 auto;display:flex;align-items:center;gap:7px;color:#ffe879;font-weight:900}.rogue-title-screen{overflow:hidden;background:radial-gradient(circle at 75% 20%,#3e3d76 0,transparent 34%),radial-gradient(circle at 15% 85%,#253f55 0,transparent 30%),#15162f}.rogue-title-layout{width:min(1180px,calc(100% - 48px));margin:24px auto 0;display:grid;grid-template-columns:minmax(0,.95fr) minmax(440px,1.05fr);gap:50px;align-items:center}.rogue-eyebrow{display:flex;align-items:center;gap:7px;color:#8fe9d5;font-size:11px;font-weight:850;letter-spacing:.1em}.rogue-title-copy h1{margin:13px 0 15px;color:#fff;font-size:clamp(55px,6.5vw,82px);line-height:.95;letter-spacing:-.07em;text-shadow:0 6px 0 #0c0d22}.rogue-title-copy h1 small{margin-top:16px;display:block;color:#ffe879;font-size:23px;letter-spacing:.08em;text-shadow:none}.rogue-title-copy>p{max-width:490px;color:#c4c5e4;font-size:15px;line-height:1.8}.rogue-score-card{max-width:490px;margin:23px 0 17px;padding:15px 17px;border:1px solid #4e517e;border-radius:17px;background:#212346b8}.rogue-score-card>div:first-child{display:flex;align-items:baseline;justify-content:space-between}.rogue-score-card span{color:#bfc0df;font-size:12px}.rogue-score-card strong{color:#ffe879;font-size:29px}.rogue-reward-progress{height:8px;margin:9px 0 7px;overflow:hidden;border-radius:8px;background:#111229}.rogue-reward-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#68dfc4,#ffe879)}.rogue-score-card small{color:#aef0dc;font-size:10px}.rogue-start-button{width:min(490px,100%);min-height:77px;padding:11px 20px;display:flex;align-items:center;gap:14px;border:2px solid #fff4b0;border-radius:20px;background:#ffe879;color:#222341;box-shadow:0 6px #a88630,0 14px 32px #00000040;text-align:left}.rogue-start-button:hover{transform:translateY(-3px);background:#fff3aa}.rogue-start-button span{display:flex;flex-direction:column}.rogue-start-button b{font-size:23px}.rogue-start-button small{margin-top:3px;font-size:11px;opacity:.7}.rogue-title-stats{margin-top:18px;display:flex;flex-wrap:wrap;gap:13px;color:#bfc0df;font-size:11px}.rogue-loadout{padding:22px;border:1px solid #4d4f79;border-radius:25px;background:#1f2141e0;box-shadow:0 24px 65px #03041259}.loadout-heading{margin-bottom:16px;display:flex;align-items:baseline;justify-content:space-between}.loadout-heading span{font-size:21px;font-weight:900}.loadout-heading small{color:#aeb0d3;font-size:10px}.gear-group{margin-top:14px}.gear-group-title{display:flex;justify-content:space-between;color:#ffe879;font-size:12px}.gear-group-title span{color:#9295bc;font-size:10px}.gear-options{margin-top:7px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gear-options button{min-width:0;min-height:66px;padding:8px;display:grid;grid-template-columns:39px 1fr;align-items:center;gap:7px;border:1px solid #484a73;border-radius:13px;background:#292b50;color:#fff;text-align:left}.gear-options button.is-selected{border:2px solid #ffe879;background:#3a3b60;box-shadow:0 0 0 3px #ffe87914}.gear-options button>span{font-size:31px;text-align:center}.gear-options button div{min-width:0}.gear-options strong{display:block;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.gear-options small{margin-top:3px;display:-webkit-box;overflow:hidden;color:#b9bbda;font-size:9px;line-height:1.4;-webkit-line-clamp:2;-webkit-box-orient:vertical}.loadout-tip{margin-top:16px;padding:10px;border-radius:11px;background:#1a1c38;color:#9fe4d2;font-size:10px;line-height:1.55}.rogue-parade{width:min(920px,90%);margin:30px auto 0;display:flex;align-items:center;justify-content:center;gap:25px;opacity:.8}.rogue-parade span{font-size:47px;animation:parade-bob 2.8s ease-in-out infinite}.rogue-parade span:first-child{font-size:68px}.rogue-parade i{margin-left:-48px;align-self:flex-end;font-size:30px;font-style:normal}.rogue-parade b{color:#ffe879;font-size:20px}.rogue-game-screen{padding-bottom:12px;background:radial-gradient(circle at 50% 0,#292b55,#111228 70%)}.rogue-game-topbar{min-height:64px}.rogue-hud-group{display:flex;align-items:center;gap:8px}.rogue-hud-group>span{min-height:38px;padding:0 12px;display:flex;align-items:center;gap:4px;border:1px solid #41436a;border-radius:12px;background:#222441;color:#c8c9e5;font-size:11px}.rogue-hud-group b{color:#fff;font-size:17px}.rogue-hud-score{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end}.rogue-hud-score small{color:#8f92b7;font-size:9px}.rogue-hud-score strong{color:#ffe879;font-size:24px;line-height:1}.rogue-arena-wrap{position:relative;width:min(1180px,calc(100% - 40px));margin:0 auto}.rogue-arena{width:100%;height:auto;max-height:calc(100dvh - 180px);display:block;border:2px solid #4d4f7e;border-radius:29px;background:#181932;box-shadow:0 9px #0a0b1d,0 25px 65px #00000059}.rogue-player{transform-box:fill-box;transform-origin:center}.rogue-player.is-invulnerable{opacity:.64}.rogue-enemy{transition:opacity .1s}.rogue-enemy.is-hit{filter:brightness(1.8)}.rogue-enemy.is-frozen{filter:hue-rotate(25deg) brightness(1.2)}.boss-ring{transform-box:fill-box;transform-origin:center;animation:boss-spin 8s linear infinite}.rogue-gem{animation:gem-glow 1s ease-in-out infinite alternate}.wave-announcement{animation:modal-in .16s ease-out}@keyframes boss-spin{to{transform:rotate(360deg)}}@keyframes gem-glow{to{opacity:.65}}.rogue-health-hud{position:absolute;left:18px;top:17px;width:220px;padding:10px 12px;border:1px solid #5d608c;border-radius:14px;background:#101128db;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.rogue-hearts{display:flex;align-items:baseline;gap:4px}.rogue-hearts>span{font-size:18px}.rogue-hearts strong{color:#ff9b9b;font-size:23px}.rogue-hearts small{color:#aeb0ce;font-size:10px}.rogue-health-track,.rogue-xp-track{height:7px;margin-top:5px;overflow:hidden;border-radius:6px;background:#0d0e22}.rogue-health-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff7e7e,#ffb08a);transition:width .1s}.rogue-xp-track{height:4px}.rogue-xp-track span{display:block;height:100%;background:#ffe879}.rogue-mobile-controls{position:absolute;inset:auto 20px 18px;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}.rogue-stick{width:104px;height:104px;display:grid;place-items:center;border:2px solid rgba(255,255,255,.25);border-radius:50%;background:#0e0f267a;pointer-events:auto;touch-action:none}.rogue-stick>span{font-size:38px;pointer-events:none}.rogue-skill-button{position:relative;width:90px;height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border:3px solid #fff0a1;border-radius:50%;background:#50477d;color:#fff;box-shadow:0 5px #191a35;pointer-events:auto;touch-action:none}.rogue-skill-button>span{position:relative;z-index:1;font-size:33px}.rogue-skill-button>b{position:relative;z-index:1;font-size:10px}.rogue-skill-button>i{position:absolute;inset:auto 0 0;background:#0c0d1fa6;pointer-events:none}.rogue-game-footer{width:min(1180px,calc(100% - 40px));min-height:45px;margin:7px auto 0;display:flex;align-items:center;gap:19px;color:#999cbe;font-size:10px}.rogue-build{margin-left:auto;color:#ffe879}.rogue-overlay{position:fixed;inset:0;z-index:20;padding:18px;display:grid;place-items:center;background:#080919c7;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.levelup-panel{width:min(880px,100%);padding:27px;border:2px solid #ffe879;border-radius:27px;background:#20213f;box-shadow:0 9px #0c0d20;text-align:center}.levelup-panel>span{color:#8fe9d5;font-size:11px;font-weight:900;letter-spacing:.15em}.levelup-panel h2{margin:6px 0;color:#ffe879;font-size:32px}.levelup-panel>p{margin:0 0 20px;color:#bfc0dd;font-size:12px}.upgrade-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.upgrade-choice-grid button{min-height:210px;padding:19px;display:flex;flex-direction:column;align-items:center;border:2px solid #51547f;border-radius:20px;background:#2d2f55;color:#fff}.upgrade-choice-grid button:hover{transform:translateY(-6px);border-color:#ffe879;background:#3a3c64}.upgrade-choice-grid button>span{font-size:51px}.upgrade-choice-grid strong{margin-top:9px;color:#ffe879;font-size:19px}.upgrade-choice-grid p{color:#d0d1e7;font-size:12px}.upgrade-choice-grid small{margin-top:auto;color:#8fe9d5;font-size:10px}.rogue-pause-panel,.rogue-end-panel{width:min(430px,100%);padding:28px;display:flex;flex-direction:column;gap:10px;border:2px solid #62658f;border-radius:25px;background:#242643;text-align:center}.rogue-pause-panel>span,.rogue-end-panel>span{font-size:60px}.rogue-pause-panel h2,.rogue-end-panel h2{margin:0;color:#ffe879;font-size:28px}.rogue-pause-panel p,.rogue-end-panel p{margin:0 0 10px;color:#c4c5df;font-size:12px;line-height:1.65}.rogue-end-panel>div{margin-bottom:10px;display:flex;justify-content:center;gap:8px}.rogue-end-panel>div b{padding:8px;border-radius:9px;background:#191b34;color:#aef0dc;font-size:11px}.rogue-primary,.rogue-secondary{min-height:48px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:13px;font-weight:850}.rogue-primary{border:2px solid #fff0a1;background:#ffe879;color:#242542;box-shadow:0 4px #a88630}.rogue-secondary{border:1px solid #55587f;background:#303253;color:#fff}@media(max-width:1000px){.battle-home-banner{grid-template-columns:190px 1fr}.battle-home-button{grid-column:1 / -1;min-height:59px;justify-content:center}.rogue-title-layout{grid-template-columns:1fr;gap:28px}.rogue-title-copy{max-width:680px;margin:0 auto}.rogue-loadout{width:min(680px,100%);margin:0 auto}.rogue-parade{display:none}.rogue-title-screen{padding-bottom:35px}}@media(max-width:800px){.lab-layout{grid-template-columns:1fr}.lab-side{border-top:1px solid var(--line);border-left:0}.sample-counts{grid-template-columns:repeat(10,1fr)}.rogue-game-footer{justify-content:center}.rogue-game-footer span:nth-child(2),.rogue-game-footer span:nth-child(3){display:none}}@media(max-width:700px){.handwriting-lab-backdrop{padding:6px}.handwriting-lab{max-height:calc(100dvh - 12px);border-radius:21px}.lab-header{padding:16px}.lab-header h2{font-size:23px}.lab-header p{font-size:11px}.lab-write-section,.lab-side{padding:15px}.digit-targets{gap:3px}.digit-targets button{height:39px;border-radius:8px;font-size:17px}.lab-write-section .handwriting-canvas-wrap canvas{height:155px}.sample-counts{grid-template-columns:repeat(5,1fr)}.handwriting-symbols>span{display:none}.handwriting-symbols{justify-content:center}.handwriting-symbols>div{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}.handwriting-symbols button{width:auto}.battle-home-banner{width:calc(100% - 28px);padding:17px;grid-template-columns:1fr;gap:12px;border-radius:22px}.battle-home-scene{height:72px}.battle-home-scene span{font-size:38px}.battle-home-scene span:first-child{font-size:54px}.battle-home-copy{text-align:center}.battle-home-copy>span{justify-content:center}.battle-home-copy h2{font-size:23px}.battle-home-copy>p{font-size:10px}.battle-home-loadout small{margin:4px 0 0;display:block}.loot-modal{padding:21px 16px}.loot-modal h2{font-size:23px}.loot-items{gap:7px}.loot-items>div{padding:13px 7px}.loot-items>div>span{font-size:48px}.loot-items strong{font-size:14px}.spooky-mist{margin:-21px -16px 16px}.rogue-topbar{width:calc(100% - 20px);min-height:58px}.rogue-mini-brand{font-size:13px}.rogue-back{padding:0 10px;font-size:11px}.rogue-title-layout{width:calc(100% - 28px);margin-top:12px}.rogue-title-copy h1{font-size:52px}.rogue-title-copy h1 small{font-size:17px}.rogue-title-copy>p{font-size:13px}.rogue-loadout{padding:15px}.loadout-heading small{display:none}.gear-options{grid-template-columns:1fr}.gear-options button{min-height:57px}.rogue-game-topbar{gap:5px}.rogue-game-topbar .rogue-back{width:42px;padding:0;font-size:0;justify-content:center}.rogue-hud-group{gap:4px}.rogue-hud-group>span{min-height:34px;padding:0 7px;font-size:9px}.rogue-hud-group>span:nth-child(3){display:none}.rogue-hud-group b{font-size:14px}.rogue-hud-score{display:none}.rogue-game-topbar .rogue-icon:last-child{margin-left:auto}.rogue-arena-wrap{width:calc(100% - 14px)}.rogue-arena{max-height:none;aspect-ratio:1;border-radius:20px}.rogue-health-hud{left:9px;top:9px;width:150px;padding:6px 8px}.rogue-hearts strong{font-size:17px}.rogue-mobile-controls{inset:auto 10px 9px}.rogue-stick{width:76px;height:76px}.rogue-stick>span{font-size:28px}.rogue-skill-button{width:70px;height:70px}.rogue-skill-button>span{font-size:26px}.rogue-game-footer{width:calc(100% - 20px);min-height:34px;font-size:9px}.rogue-build{display:none}.rogue-overlay{padding:9px;overflow-y:auto}.levelup-panel{padding:18px 13px}.levelup-panel h2{font-size:25px}.upgrade-choice-grid{grid-template-columns:1fr;gap:8px}.upgrade-choice-grid button{min-height:91px;padding:10px 13px;display:grid;grid-template-columns:49px 1fr;gap:3px 10px;text-align:left}.upgrade-choice-grid button>span{grid-row:1 / 4;font-size:39px}.upgrade-choice-grid strong,.upgrade-choice-grid p,.upgrade-choice-grid small{margin:0}}@media(prefers-reduced-motion:reduce){.battle-home-scene span,.rogue-parade span,.boss-ring,.rogue-gem,.spooky-mist i{animation:none}}.classic-practice-button{margin:11px auto 0;min-height:36px;padding:0 12px;display:flex;align-items:center;gap:6px;border:1px solid rgba(39,86,71,.2);border-radius:11px;background:#fffdf3a8;color:var(--green-800);font-size:11px;font-weight:800}.hero-copy .classic-practice-button{margin-left:0}.battle-home-scene{display:grid;grid-template-columns:70px 18px 46px 46px 48px;gap:4px}.battle-home-scene>svg{width:100%;height:auto;flex:0 0 auto;filter:drop-shadow(0 7px 6px rgba(0,0,0,.3))}.battle-home-scene>svg:first-child{animation:parade-bob 2.5s ease-in-out infinite}.battle-home-scene>i{display:grid;place-items:center;left:48px}.battle-home-scene>b{font-size:14px;text-align:center}.battle-home-loadout{display:flex;align-items:center;gap:4px}.battle-home-loadout>span{color:#fff}.battle-home-loadout>svg{flex:0 0 auto}.gear-options button>span{display:grid;place-items:center}.rogue-parade>svg{flex:0 0 auto;filter:drop-shadow(0 7px 6px rgba(0,0,0,.3));animation:parade-bob 2.8s ease-in-out infinite}.rogue-parade>i{display:grid;place-items:center}.rogue-stage-track{margin-top:18px;display:flex;align-items:center;gap:7px}.rogue-stage-track>span{width:35px;height:35px;display:grid;place-items:center;border:1px solid #54577f;border-radius:11px;background:#242646;color:#bfc1df;font-size:12px;font-weight:900}.rogue-stage-track>span.is-current{border:2px solid #ffe879;background:#4a4664;color:#ffe879;box-shadow:0 0 0 4px #ffe87914}.rogue-stage-track>span.is-done{border-color:#4c8c7c;background:#233f43;color:#8fe9d5}.rogue-stage-track>b{color:#ffe879;font-size:20px;letter-spacing:2px}.rogue-infinite-note{margin-top:7px;display:block;color:#8fe9d5;font-size:10px}.rogue-end-art{display:grid;place-items:center}.rogue-stick>span{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 25%,#b4f4b1,#54af69);color:#173f32;font-size:11px;font-weight:950;box-shadow:inset 0 -5px #14462d40}.rogue-math-charge{position:relative;width:116px;min-height:58px;padding:6px 10px;display:flex;align-items:center;justify-content:center;gap:7px;overflow:hidden;border:2px solid #8fe9d5;border-radius:18px;background:#273d59;color:#fff;box-shadow:0 4px #11182d;pointer-events:auto;touch-action:none}.rogue-math-charge>span{color:#8fe9d5;font-size:27px;font-weight:950}.rogue-math-charge>b{position:relative;z-index:1;font-size:11px}.rogue-math-charge>i{position:absolute;inset:auto auto 0 0;height:4px;background:#ffe879}.rogue-math-charge:not(:disabled){animation:math-ready 1.2s ease-in-out infinite alternate}.rogue-math-charge:disabled{opacity:.62}@keyframes math-ready{to{border-color:#ffe879;box-shadow:0 4px #11182d,0 0 20px #ffe87940}}.battle-math-overlay{position:fixed;inset:0;z-index:40;padding:20px;display:grid;place-items:center;background:#0a0b1fe0;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.battle-math-modal{position:relative;width:min(1160px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;border:3px solid #ffe879;border-radius:27px;background:#fffaf0;color:var(--green-950);box-shadow:0 10px #0c0d22,0 30px 100px #00000073;animation:modal-in .18s ease-out}.battle-math-exit{position:absolute;z-index:2;right:8px;top:8px;width:32px;height:32px;display:grid;place-items:center;border:1px solid #686b94;border-radius:10px;background:#292b50;color:#fff}.battle-math-header{min-height:91px;padding:13px 19px;display:grid;grid-template-columns:minmax(240px,.85fr) 1fr auto;align-items:center;gap:17px;background:linear-gradient(120deg,#26294f,#39345e);color:#fff}.battle-math-enemy{display:flex;align-items:center;gap:10px}.battle-math-enemy>svg{flex:0 0 auto}.battle-math-enemy>span{padding:8px 10px;border:1px solid #6c6d99;border-radius:12px 12px 12px 3px;background:#45466d;color:#fff2a8;font-size:11px;font-weight:800}.battle-math-header>div:nth-child(2)>span{display:flex;align-items:center;gap:5px;color:#8fe9d5;font-size:10px;font-weight:850}.battle-math-header h2{margin:4px 0 0;color:#ffe879;font-size:26px}.battle-math-header>strong{margin-right:26px;display:flex;align-items:center;gap:5px;color:#fff2a8;font-size:13px}.battle-math-body{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);align-items:stretch}.battle-math-question{min-width:0;padding:19px 21px;display:flex;flex-direction:column;background:#f4f6e9}.battle-math-question>span{color:var(--coral-dark);font-size:11px;font-weight:850}.battle-math-question h3{margin:7px 0 4px;font-size:24px}.battle-math-question>p{margin:0 0 8px;color:var(--muted);font-size:12px}.battle-math-picture{min-height:240px;flex:1;display:flex;align-items:center}.battle-math-picture .picture-stage{width:100%;height:100%;min-height:240px;margin-top:0;display:flex;align-items:center;justify-content:center}.battle-mental-equation{flex:1;min-height:210px;display:flex;align-items:center;justify-content:center;gap:17px;color:var(--green-950);font-size:clamp(50px,6vw,76px);font-weight:950;letter-spacing:-.04em}.battle-mental-equation b{color:var(--coral-dark)}.battle-math-feedback{min-height:48px;margin-top:10px;padding:9px 11px;display:flex;align-items:center;gap:7px;border-radius:12px;background:#e2edda;color:var(--green-800);font-size:12px;line-height:1.5}.battle-math-feedback.is-error{background:#fff0df;color:#9b4c35}.battle-math-body>.answer-pad{min-width:0;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none}.battle-math-body .answer-pad .handwriting-canvas-wrap canvas{height:190px}.battle-math-body .answer-pad .keypad{flex:1}.battle-math-body .answer-pad .answer-actions{margin-top:auto}@media(max-width:700px){.hero-copy .classic-practice-button{margin-left:auto}.battle-home-loadout{flex-wrap:wrap;justify-content:center}.rogue-math-charge{width:92px;min-height:52px;padding:4px 6px;border-radius:15px}.rogue-math-charge>span{font-size:23px}.rogue-math-charge>b{font-size:9px}.battle-math-overlay{padding:7px}.battle-math-modal{max-height:calc(100dvh - 14px);border-radius:20px}.battle-math-header{padding:8px 11px;grid-template-columns:46px 1fr auto;gap:7px}.battle-math-enemy{grid-column:auto}.battle-math-enemy>svg{width:44px;height:44px}.battle-math-enemy>span{display:none}.battle-math-header h2{font-size:18px}.battle-math-header>strong{font-size:10px}.battle-math-body{grid-template-columns:1fr}.battle-math-question{padding:10px 14px}.battle-math-question h3{margin:4px 0 2px;font-size:19px}.battle-math-picture,.battle-math-picture .picture-stage{min-height:108px;height:108px;flex:none}.battle-mental-equation{min-height:90px;font-size:45px}.battle-math-feedback{min-height:37px;margin-top:6px;padding:6px 9px;font-size:10px}.battle-math-body>.answer-pad{padding:10px 14px;gap:7px;border-top:1px solid var(--line);border-left:0}.battle-math-body .answer-pad .handwriting-canvas-wrap canvas{height:145px}.battle-math-body .answer-pad .math-key{min-height:41px}.battle-math-body .answer-pad .answer-actions{padding-top:5px}}@media(prefers-reduced-motion:reduce){.rogue-math-charge:not(:disabled),.rogue-parade>svg,.battle-home-scene>svg{animation:none}}.rogue-game-screen{overflow:hidden}.rogue-arena-wrap{transition:filter .14s}.rogue-arena-wrap.is-overdrive .rogue-arena{border-color:#8fe9d5;box-shadow:0 9px #0a0b1d,0 0 38px #8fe9d533}.overdrive-aura{transform-box:fill-box;transform-origin:center;animation:boss-spin 2.4s linear infinite}.overdrive-readout{margin-top:6px;color:#8fe9d5;font-size:9px;font-weight:850}.enemy-warning>circle{transform-box:fill-box;transform-origin:center;animation:warning-pulse .36s ease-in-out infinite alternate}.enemy-warning>text{paint-order:stroke;stroke:#351f36;stroke-width:4px}@keyframes warning-pulse{to{opacity:.5;transform:scale(.88)}}.rogue-move-banner{position:absolute;z-index:6;left:50%;top:18px;padding:5px 16px 5px 5px;display:flex;align-items:center;gap:8px;border:2px solid #ffe879;border-radius:18px;background:#1c1d3ef0;color:#ffe879;box-shadow:0 5px #0c0d20,0 0 32px #ffe8793d;pointer-events:none;transform:translate(-50%) rotate(-2deg);animation:move-callout .18s ease-out}.rogue-move-banner>span{font-size:18px;font-weight:950;white-space:nowrap}.rogue-move-banner.move-math,.rogue-move-banner.move-freeze{border-color:#8fe9d5;color:#c9ffff}.rogue-move-banner.move-triple{border-color:#ffb7df;color:#ffd5ed}@keyframes move-callout{0%{opacity:0;transform:translate(-50%) translateY(-15px) rotate(-5deg) scale(.8)}}.move-effect{mix-blend-mode:screen}.rogue-player{filter:drop-shadow(0 5px 4px rgba(0,0,0,.28))}.rogue-enemy{transform-box:fill-box;transform-origin:center}.rogue-enemy.is-hit{filter:brightness(2) saturate(.5)}@media(max-width:700px){.rogue-move-banner{top:8px;padding-right:10px;border-radius:13px}.rogue-move-banner>svg{width:37px;height:37px}.rogue-move-banner>span{font-size:12px}.overdrive-readout{font-size:8px}}@media(prefers-reduced-motion:reduce){.rogue-arena-wrap{transform:none!important}.overdrive-aura,.enemy-warning>circle{animation:none}}.treasure-shop-dock{width:min(1180px,calc(100% - 48px));margin:18px auto 0;display:grid;grid-template-columns:1.08fr .92fr;gap:15px}.treasure-entry{min-width:0;min-height:142px;padding:20px 23px;display:grid;grid-template-columns:76px 1fr 34px;align-items:center;gap:17px;border:3px solid var(--green-950);border-radius:25px;text-align:left;box-shadow:0 7px 0 var(--green-950),0 18px 34px #1e433324}.treasure-entry:hover{transform:translateY(-3px)}.chest-entry{background:linear-gradient(130deg,#fff0a8,#ffc862);color:#4b3a24}.shop-entry{background:linear-gradient(130deg,#285b4b,#397862);color:#fffdf0}.treasure-entry-icon{position:relative;width:72px;height:72px;display:grid;place-items:center;border:2px solid currentColor;border-radius:21px;background:#ffffff47}.treasure-entry-icon>b{position:absolute;right:-9px;top:-10px;min-width:29px;height:29px;padding:0 6px;display:grid;place-items:center;border:2px solid var(--green-950);border-radius:15px;background:var(--coral);color:#fff;font-size:15px}.treasure-entry>span:nth-child(2){min-width:0}.treasure-entry small{display:block;font-size:12px;font-weight:850;opacity:.78}.treasure-entry strong{display:block;margin-top:5px;font-size:clamp(20px,2vw,27px);font-weight:950;letter-spacing:-.035em}.treasure-entry p{margin:7px 0 0;display:flex;align-items:center;gap:5px;font-size:12px;font-weight:750;line-height:1.5}.play-chest-button{min-width:92px;height:48px;padding:0 11px;display:flex;align-items:center;justify-content:center;gap:7px;border:2px solid #9b6b28;border-radius:14px;background:#ffe58a;color:#5c4225;box-shadow:0 3px #9b6b28}.play-chest-button>span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}.play-chest-button b{font-size:15px}.play-chest-button small{margin-top:3px;font-size:9px;white-space:nowrap}.play-chest-button.is-ready{border-color:var(--coral-dark);background:#ffc861;animation:chest-ready 1s ease-in-out infinite alternate}@keyframes chest-ready{to{box-shadow:0 3px #9b6b28,0 0 20px #ffb8478c}}.chest-toast{position:fixed;z-index:70;right:22px;bottom:22px;width:min(430px,calc(100% - 28px));min-height:70px;padding:13px 14px;display:flex;align-items:center;gap:10px;border:2px solid #704b24;border-radius:18px;background:#fff0ae;color:#51391f;box-shadow:0 6px #704b24,0 16px 40px #0003;font-size:13px;font-weight:800}.chest-toast>span{flex:1}.chest-toast>button{min-height:39px;padding:0 13px;border-radius:11px;background:var(--green-800);color:#fff;font-weight:900;white-space:nowrap}.economy-modal{width:min(1120px,calc(100% - 30px));max-height:calc(100dvh - 36px);padding:22px;overflow-y:auto}.economy-wallet{min-height:74px;padding:13px 17px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 16px;border-radius:18px;background:linear-gradient(120deg,#263e3a,#3f6552);color:#fff}.economy-wallet>span{display:flex;align-items:center;gap:7px;color:#d4eadb;font-size:13px;font-weight:850}.economy-wallet>strong{grid-row:1 / 3;grid-column:2;color:#ffe879;font-size:34px;font-variant-numeric:tabular-nums}.economy-wallet>small{color:#bcd3c5;font-size:10px}.economy-tabs{margin:15px 0;display:grid;grid-template-columns:1fr 1fr;gap:9px}.economy-tabs>button{position:relative;min-height:51px;display:flex;align-items:center;justify-content:center;gap:8px;border:2px solid var(--line);border-radius:14px;background:var(--paper-deep);font-size:15px;font-weight:900}.economy-tabs>button.is-active{border-color:var(--green-800);background:var(--green-800);color:#fff}.economy-tabs>button>b{min-width:23px;height:23px;display:grid;place-items:center;border-radius:12px;background:var(--coral);color:#fff;font-size:12px}.chest-workshop{display:grid;grid-template-columns:270px 1fr;gap:22px;align-items:center}.chest-illustration{position:relative;min-height:280px;display:grid;place-items:center;border:2px solid #dac68f;border-radius:25px;background:radial-gradient(circle,#fff9d8,#eee4bf);overflow:hidden}.chest-illustration>span{width:154px;height:137px;display:grid;place-items:center;border:3px solid #76512c;border-radius:31px;background:linear-gradient(#ffc75e,#e8963f);color:#70451f;box-shadow:0 8px #9a652e}.chest-illustration>i{position:absolute;top:63px;color:#fff6c7;font-size:53px;font-style:normal;font-weight:950;text-shadow:0 3px 0 #825126}.chest-illustration>svg{position:absolute;right:-7px;bottom:-3px}.chest-illustration.is-ready>span{animation:chest-float 1.3s ease-in-out infinite alternate}@keyframes chest-float{to{transform:translateY(-8px) rotate(2deg);box-shadow:0 15px #9a652e,0 20px 35px #9f692340}}.chest-copy>span,.shop-heading span,.inventory-heading span{color:var(--coral-dark);font-size:12px;font-weight:900}.chest-copy h3,.shop-heading h3,.inventory-heading h3{margin:5px 0 8px;font-size:25px;letter-spacing:-.04em}.chest-copy>p,.shop-heading>p,.inventory-heading>p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.chest-progress{height:10px;margin:16px 0;overflow:hidden;border-radius:5px;background:#e1e7d7}.chest-progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#efad45,#ffe273);transition:width .22s}.chest-open-button{width:100%;min-height:75px;padding:10px 17px;display:flex;align-items:center;justify-content:center;gap:12px;border:2px solid #754c24;border-radius:18px;background:linear-gradient(120deg,#ffd96b,#ffb54f);color:#573819;box-shadow:0 5px #8d5a29;text-align:left}.chest-open-button>span{display:flex;flex-direction:column}.chest-open-button strong{font-size:20px}.chest-open-button small{margin-top:3px;font-size:10px}.chest-reveal{grid-column:1 / -1;padding:17px;border:2px solid #d9a847;border-radius:20px;background:#fff8d9;text-align:center;animation:modal-in .22s ease-out}.chest-reveal>span{display:flex;align-items:center;justify-content:center;gap:6px;color:#9a5a23;font-size:13px;font-weight:900}.chest-reveal>div{margin:12px 0;display:flex;justify-content:center}.chest-reveal article{min-width:180px;display:flex;flex-direction:column;align-items:center}.chest-reveal article>strong{margin-top:6px;font-size:18px}.chest-reveal article>b{color:#c77724;font-size:23px}.chest-reveal article>small{color:var(--muted)}.chest-reveal>p{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:850}.fusion-notice{display:block;color:#9a5a23;font-size:17px}.shop-heading,.inventory-heading{margin:5px 0 13px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.shop-heading>p,.inventory-heading>p{max-width:390px;text-align:right}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.shop-item{min-width:0;padding:10px;display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;background:#f4f5e9}.shop-item>div{min-width:0;display:flex;flex-direction:column}.shop-item strong{font-size:13px}.shop-item small{margin-top:3px;color:var(--muted);font-size:9px}.shop-item>button{min-height:35px;padding:0 9px;display:flex;align-items:center;gap:4px;border-radius:10px;background:var(--green-800);color:#fff;font-size:11px;font-weight:900}.inventory-heading{margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}.inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inventory-item{min-width:0;padding:12px;border:2px solid var(--line);border-radius:16px;background:var(--paper)}.inventory-item.is-equipped{border-color:#74a68c;background:#edf6e9}.inventory-item-top{display:flex;align-items:center;gap:9px}.inventory-item-top>span{min-width:0;display:flex;flex:1;flex-direction:column}.inventory-item-top strong{font-size:14px}.inventory-item-top small{color:#ba792c;font-size:10px}.inventory-item-top>b{display:flex;align-items:center;gap:3px;color:var(--green-800);font-size:10px;white-space:nowrap}.inventory-power{margin:10px 0;display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.inventory-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:7px}.inventory-actions>button{min-height:36px;display:flex;align-items:center;justify-content:center;gap:4px;border-radius:10px;background:#dfeadb;color:var(--green-800);font-size:11px;font-weight:850}.inventory-actions>.sell-button{background:#fff0ce;color:#885224}.economy-notice{margin-top:13px;padding:11px 13px;display:flex;align-items:center;gap:7px;border-radius:12px;background:#fff0c7;color:#805022;font-size:12px;font-weight:800}.economy-rules{margin-top:15px;padding:12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 15px;border-radius:13px;background:#e8eddf;color:var(--muted);font-size:10px}.economy-rules>strong{color:var(--green-800);font-size:12px}.economy-rules>b{color:#a45f26}.loot-fusions p{color:#9b6128;font-weight:800}@media(max-width:800px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.play-chest-button{min-width:52px;padding:0 8px}.play-chest-button>span{display:none}}@media(max-width:700px){.treasure-shop-dock{width:calc(100% - 28px);grid-template-columns:1fr;gap:12px}.treasure-entry{min-height:122px;padding:15px;grid-template-columns:60px 1fr 25px;gap:12px;border-radius:21px}.treasure-entry-icon{width:58px;height:58px;border-radius:17px}.treasure-entry-icon>svg{width:37px}.treasure-entry strong{font-size:21px}.treasure-entry p{font-size:10px}.economy-modal{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:14px;border-radius:21px}.economy-wallet>strong{font-size:27px}.economy-wallet>small{max-width:200px}.chest-workshop{grid-template-columns:1fr;gap:15px}.chest-illustration{min-height:175px}.chest-illustration>span{width:125px;height:105px}.chest-illustration>span>svg{width:72px}.chest-illustration>i{top:38px}.chest-illustration>svg{width:65px}.chest-copy h3,.shop-heading h3,.inventory-heading h3{font-size:21px}.shop-heading,.inventory-heading{align-items:flex-start;flex-direction:column;gap:5px}.shop-heading>p,.inventory-heading>p{text-align:left}.shop-grid,.inventory-grid{grid-template-columns:1fr}.shop-item{grid-template-columns:45px 1fr auto}.economy-rules{justify-content:flex-start}.chest-toast{right:14px;bottom:14px}}@media(prefers-reduced-motion:reduce){.chest-illustration.is-ready>span,.play-chest-button.is-ready{animation:none}}@media(max-width:430px){.play-topbar{gap:5px}.run-info .mode-chip{width:38px;padding:0;justify-content:center;overflow:hidden;font-size:0}.play-actions{gap:4px}.play-chest-button{width:44px;min-width:44px;padding:0}.score-box{margin-right:0}.combo-box,.timer-box{min-width:50px;padding:0 5px}.play-actions .icon-button{width:38px}}.rogue-title-stats>span{display:inline-flex;align-items:center;gap:4px}.rogue-trial-return{width:min(490px,100%);min-height:48px;margin-top:12px;padding:9px 15px;border:1px solid #8fe9d5;border-radius:14px;background:#46537e7a;color:#cffff3;font-size:12px;font-weight:850}.rogue-trial-return:hover{background:#4d707eb8;transform:translateY(-2px)}.rogue-boss-hud{position:absolute;z-index:5;top:15px;left:50%;width:min(430px,calc(100% - 510px));min-width:320px;padding:9px 13px;border:1px solid #8b78bb;border-radius:15px;background:#12132deb;box-shadow:0 5px 18px #05061847;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);transform:translate(-50%);pointer-events:none}.rogue-boss-hud.is-flower{border-color:#8fe9d5;background:#19343eed}.rogue-boss-hud>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.rogue-boss-hud strong{color:#eadfff;font-size:14px;white-space:nowrap}.rogue-boss-hud.is-flower strong{color:#cffff3}.rogue-boss-hud>div:first-child>span{overflow:hidden;color:#b9bad8;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.boss-health-track{height:7px;margin-top:6px;overflow:hidden;border-radius:6px;background:#0d0e22}.boss-health-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b98bea,#f0b5e7);transition:width .12s linear}.rogue-boss-hud.is-flower .boss-health-track>i{background:linear-gradient(90deg,#68dfc4,#ffe879)}.rogue-boss-hud>b{margin-top:5px;display:block;color:#ffe879;font-size:10px;text-align:center}.rogue-arena-wrap:has(.rogue-boss-hud) .rogue-move-banner{top:94px}.grain-hazard>circle{transform-box:fill-box;transform-origin:center}.grain-hazard.is-lethal>circle:nth-child(2){animation:grain-warning .7s ease-in-out infinite alternate}.grain-hazard>text{paint-order:stroke;stroke:#38273c;stroke-width:4px}.rogue-gem.is-trial{filter:drop-shadow(0 0 9px rgba(143,233,213,.7))}@keyframes grain-warning{to{opacity:.65;transform:scale(.92)}}.reward-stage-panel{width:min(760px,100%)}.reward-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.reward-stage-grid>button{min-height:180px;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px solid #555980;border-radius:19px;background:linear-gradient(145deg,#30345d,#272949);color:#fff}.reward-stage-grid>button:first-child{border-color:#69bda9}.reward-stage-grid>button:nth-child(2){border-color:#a58ac5}.reward-stage-grid>button:hover{border-color:#ffe879;background:#3b3e66;transform:translateY(-4px)}.reward-stage-grid>button>svg{color:#8fe9d5}.reward-stage-grid>button:nth-child(2)>svg{color:#e0b9ff}.reward-stage-grid strong{color:#ffe879;font-size:21px}.reward-stage-grid span{color:#f1f0ff;font-size:13px}.reward-stage-grid small{color:#aeb2d4;font-size:10px}.reward-stage-skip{min-height:43px;margin:14px auto 0;padding:0 16px;display:block;border:1px solid #555980;border-radius:12px;background:transparent;color:#bfc2df;font-size:11px}.reward-stage-skip:hover{background:#303253;color:#fff}.levelup-panel.is-epic{border-color:#d9b4ff;background:radial-gradient(circle at 50% 0,#47406d,#22213f 72%);box-shadow:0 9px #0c0d20,0 0 45px #cb9eff26}.levelup-panel.is-epic>span,.levelup-panel.is-epic h2{color:#e7c8ff}.levelup-panel.is-epic .upgrade-choice-grid button{border-color:#786792;background:linear-gradient(145deg,#3c355d,#2c2b50)}.levelup-panel.is-epic .upgrade-choice-grid button:hover{border-color:#ffe879}.chaos-panel{width:min(550px,100%);max-height:calc(100dvh - 36px);padding:30px;overflow-y:auto;border:2px solid #8fe9d5;border-radius:28px;background:radial-gradient(circle at 50% 30%,#4b3e70,#20213f 70%);box-shadow:0 9px #0c0d20,0 0 70px #8fe9d529;text-align:center}.chaos-panel>span{color:#8fe9d5;font-size:11px;font-weight:900;letter-spacing:.08em}.chaos-panel h2{margin:7px 0 13px;color:#ffe879;font-size:34px}.chaos-panel>p{margin:17px 0 21px;color:#d3d2e8;font-size:13px;line-height:1.75}.chaos-panel .rogue-primary{width:100%}.chaos-grain-art{position:relative;width:145px;height:145px;margin:0 auto;display:grid;place-items:center}.chaos-grain-art:before{content:"";position:absolute;inset:5px;border:1px solid rgba(143,233,213,.4);border-radius:50%;box-shadow:0 0 35px #8fe9d533}.chaos-grain-art>i{position:absolute;width:74px;height:105px;border:3px solid #342d50;border-radius:70% 30% 65% 35%;background:linear-gradient(145deg,#8fe9d5,#a68bd7 55%,#ffe879);box-shadow:inset 0 0 0 5px #ffffff21}.chaos-grain-art>i:nth-child(2){transform:rotate(60deg);opacity:.62}.chaos-grain-art>i:nth-child(3){transform:rotate(120deg);opacity:.42}.chaos-grain-art>b{position:relative;z-index:2;width:64px;height:64px;display:grid;place-items:center;border:2px solid #fff0a1;border-radius:50%;background:#292441;color:#fff2a8;font-size:16px;box-shadow:0 4px 15px #07081966}.battle-math-overlay.is-trial .battle-math-modal{border-color:#8fe9d5}.battle-math-overlay.is-trial .battle-math-header{background:linear-gradient(120deg,#283e55,#503e69)}.battle-math-overlay.is-trial .battle-math-header h2{color:#cffff3}.battle-math-overlay.is-trial .battle-math-question{background:#eff5ea}@media(max-width:700px){.rogue-boss-hud{top:9px;left:165px;right:9px;width:auto;min-width:0;padding:6px 8px;border-radius:11px;transform:none}.rogue-boss-hud>div:first-child{display:block}.rogue-boss-hud strong{display:block;overflow:hidden;font-size:11px;text-overflow:ellipsis}.rogue-boss-hud>div:first-child>span{display:none}.boss-health-track{height:5px;margin-top:4px}.rogue-boss-hud>b{margin-top:3px;font-size:8px}.rogue-arena-wrap:has(.rogue-boss-hud) .rogue-move-banner{top:79px}.reward-stage-grid{gap:8px}.reward-stage-grid>button{min-height:148px;padding:13px 8px;gap:6px}.reward-stage-grid>button>svg{width:34px;height:34px}.reward-stage-grid strong{font-size:17px}.reward-stage-grid span{font-size:11px}.reward-stage-grid small{font-size:9px;line-height:1.45}.chaos-panel{max-height:calc(100dvh - 18px);padding:22px 17px;border-radius:22px}.chaos-panel h2{font-size:28px}.chaos-panel>p{font-size:11px}.chaos-grain-art{width:120px;height:120px}.chaos-grain-art>i{width:62px;height:88px}.chaos-grain-art>b{width:56px;height:56px;font-size:14px}}@media(prefers-reduced-motion:reduce){.grain-hazard.is-lethal>circle:nth-child(2){animation:none}}.battle-home-actions{position:relative;z-index:1;display:grid;gap:9px}.battle-home-actions .battle-home-button{width:100%}.speedrun-home-button{min-height:57px;padding:9px 14px;display:flex;align-items:center;gap:10px;border:1px solid #8b80b7;border-radius:16px;background:#393457;color:#f7f3ff;text-align:left}.speedrun-home-button:hover{border-color:#ffb7df;background:#494167;transform:translateY(-2px)}.speedrun-home-button>svg{color:#ffb7df}.speedrun-home-button>span{min-width:0;display:flex;flex-direction:column}.speedrun-home-button strong{font-size:14px}.speedrun-home-button small{margin-top:3px;color:#d1cce7;font-size:9px;line-height:1.45}.lesson-home-banner{width:min(1180px,calc(100% - 48px));min-height:96px;margin:20px auto 0;padding:16px 19px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:16px;border:2px solid #346b60;border-radius:22px;background:#eff8ed;box-shadow:0 5px #27564726}.lesson-home-banner.is-urgent{border-color:#a55e43;background:#fff2df}.lesson-home-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:#2f7161;color:#fff}.lesson-home-banner.is-urgent .lesson-home-icon{background:#b56545}.lesson-home-banner>div{min-width:0}.lesson-home-banner small{display:block;color:#447266;font-size:11px;font-weight:850}.lesson-home-banner strong{display:block;margin-top:3px;color:#244b42;font-size:19px}.lesson-home-banner p{margin:4px 0 0;color:#546e66;font-size:12px;line-height:1.5}.lesson-home-banner>button{min-height:48px;padding:0 17px;display:flex;align-items:center;gap:7px;border:0;border-radius:14px;background:#2f7161;color:#fff;font-size:13px;font-weight:900;white-space:nowrap}.lesson-home-banner.is-urgent>button{background:#a9573b}.lesson-home-banner>button:hover{transform:translateY(-2px);filter:brightness(1.08)}.skill-trail{grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.skill-stop{padding-inline:11px}.rogue-icon{min-width:44px;min-height:44px}.rogue-loadout-button{border-color:#7971a5;color:#ffe8a0}.battle-math-overlay.is-live{padding:82px 18px 18px;display:flex;align-items:center;justify-content:flex-end;background:linear-gradient(90deg,#08091900,#0809190a 38%,#0809197a 67%,#080919b3);-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none}.battle-math-overlay.is-live .battle-math-modal{width:min(760px,62vw);max-height:calc(100dvh - 106px);border-width:2px;border-radius:22px;box-shadow:0 7px #0c0d22,0 20px 60px #00000059;pointer-events:auto}.battle-math-overlay.is-live .battle-math-header{min-height:70px;padding-block:8px;grid-template-columns:minmax(150px,.7fr) 1fr auto;gap:10px}.battle-math-overlay.is-live .battle-math-enemy>svg{width:48px;height:48px}.battle-math-overlay.is-live .battle-math-enemy>span{padding:6px 8px;font-size:9px}.battle-math-overlay.is-live .battle-math-header h2{font-size:20px}.battle-math-overlay.is-live .battle-math-body{grid-template-columns:minmax(0,1fr) minmax(300px,.95fr)}.battle-math-overlay.is-live .battle-math-question{padding:12px 14px}.battle-math-overlay.is-live .battle-math-question h3{font-size:19px}.battle-math-overlay.is-live .battle-math-picture,.battle-math-overlay.is-live .battle-math-picture .picture-stage{min-height:150px;height:150px}.battle-math-overlay.is-live .battle-math-picture.is-mental-picture{min-height:112px;height:112px;margin-top:5px}.battle-math-overlay.is-live .battle-mental-equation{min-height:90px;font-size:clamp(32px,3.4vw,48px)}.battle-math-overlay.is-live .battle-math-body .answer-pad{padding:12px;gap:8px}.battle-math-overlay.is-live .battle-math-body .answer-pad .handwriting-canvas-wrap canvas{height:135px}.battle-math-overlay.is-live .battle-math-body .answer-pad .math-key{min-height:44px}.battle-danger-banner{position:fixed;z-index:2;left:20px;top:18px;width:min(420px,34vw);min-height:60px;padding:9px 13px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:3px 8px;border:2px solid #8fe9d5;border-radius:16px;background:#192e39f5;color:#d5fff4;box-shadow:0 5px 20px #00000040;pointer-events:none}.battle-danger-banner>strong{font-size:13px}.battle-danger-banner>span{display:flex;align-items:center;gap:4px;color:#fff;font-size:11px;white-space:nowrap}.battle-danger-banner>i{grid-column:1 / -1;height:5px;overflow:hidden;border-radius:4px;background:#0000004d}.battle-danger-banner>i>b{display:block;height:100%;border-radius:inherit;background:#8fe9d5;transition:width .1s linear}.battle-danger-banner.is-active{border-color:#ff9b87;background:#552731f7;color:#fff0d8}.battle-danger-banner.is-active>i>b{background:#ff9b87}.math-dodge-pad{position:fixed;z-index:3;left:24px;bottom:24px;display:grid;grid-template-columns:repeat(3,52px);grid-template-rows:auto repeat(2,52px);gap:6px;pointer-events:auto}.math-dodge-pad>span{grid-column:1 / -1;padding:5px 8px;border-radius:10px;background:#141630e6;color:#fff2a8;font-size:11px;font-weight:900;text-align:center}.math-dodge-pad>button{width:52px;height:52px;display:grid;place-items:center;border:2px solid #8fe9d5;border-radius:15px;background:#233046f0;color:#d5fff4;box-shadow:0 4px #0b1424;touch-action:none;-webkit-user-select:none;user-select:none}.math-dodge-pad>button:active{background:#426a72;transform:translateY(2px)}.math-dodge-pad>button[data-testid=math-move-up]{grid-column:2;grid-row:2}.math-dodge-pad>button[data-testid=math-move-left]{grid-column:1;grid-row:3}.math-dodge-pad>button[data-testid=math-move-down]{grid-column:2;grid-row:3}.math-dodge-pad>button[data-testid=math-move-right]{grid-column:3;grid-row:3}.battle-loadout-panel{width:min(850px,100%);max-height:calc(100dvh - 36px);padding:24px;overflow-y:auto;border:2px solid #ffe879;border-radius:25px;background:#222441;box-shadow:0 9px #0c0d20}.battle-loadout-panel>span{color:#8fe9d5;font-size:11px;font-weight:900;letter-spacing:.08em}.battle-loadout-panel>h2{margin:5px 0;color:#ffe879;font-size:29px}.battle-loadout-panel>p{margin:0 0 13px;color:#c8c9e5;font-size:12px;line-height:1.6}.battle-loadout-panel .gear-options{grid-template-columns:repeat(3,minmax(0,1fr))}.battle-loadout-panel>.rogue-primary{width:100%;margin-top:20px}.fraction-picture,.geometry-picture{width:100%;min-height:190px;display:flex;align-items:center;justify-content:center;gap:18px}.fraction-picture>svg{width:min(225px,65%);max-height:235px;overflow:visible}.fraction-picture>strong{color:#765094;font-size:clamp(38px,5vw,66px);font-weight:950}.geometry-picture>svg{width:min(260px,82%);max-height:240px;overflow:visible}.fraction-picture.is-highlighted>svg,.geometry-picture.is-highlighted>svg{filter:drop-shadow(0 0 9px rgba(255,201,80,.75))}.picture-stage>.fraction-picture,.picture-stage>.geometry-picture{min-height:100%}.lesson-backdrop{position:fixed;inset:0;z-index:60;padding:18px;display:grid;place-items:center;overflow-y:auto;background:#121d27c7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.lesson-center{position:relative;width:min(1080px,100%);max-height:calc(100dvh - 36px);padding:25px;overflow-y:auto;border:2px solid #315d53;border-radius:26px;background:#fffaf0;box-shadow:0 8px #18372f,0 25px 80px #06171459;color:#24463e}.lesson-close{position:absolute;z-index:2;right:15px;top:15px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #b6c9c1;border-radius:13px;background:#f4f7ec;color:#315d53}.lesson-close:hover{background:#e2eee5}.lesson-heading{padding-right:48px}.lesson-heading>span{display:flex;align-items:center;gap:7px;color:#3d7768;font-size:12px;font-weight:900}.lesson-heading h2{margin:6px 0 4px;color:#24463e;font-size:29px;letter-spacing:-.035em}.lesson-heading p{margin:0;color:#5d706a;font-size:13px;line-height:1.55}.lesson-skill-tabs{margin:18px 0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.lesson-skill-tabs>button{position:relative;min-width:0;min-height:46px;padding:6px 4px;border:1px solid #c4d0c5;border-radius:12px;background:#f3f5e9;color:#46635b;font-size:12px;font-weight:850;white-space:nowrap}.lesson-skill-tabs>button.is-selected{border:2px solid #2f7161;background:#2f7161;color:#fff}.lesson-skill-tabs>button>b{position:absolute;right:-3px;top:-9px;padding:2px 5px;border:1px solid #9c5a3c;border-radius:7px;background:#fff0c8;color:#8a4a31;font-size:8px}.lesson-content{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:23px;align-items:start}.lesson-video-column{min-width:0}.lesson-video-frame{overflow:hidden;border:2px solid #263f39;border-radius:19px;background:#18233d}.lesson-video-frame>video{width:100%;aspect-ratio:16/9;display:block;background:#f6f8fc}.lesson-video-frame>span{min-height:38px;padding:8px 12px;display:flex;align-items:center;justify-content:center;gap:6px;color:#e9f5ef;font-size:11px}.lesson-mastery{margin-top:12px;padding:12px;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:5px 8px;border-radius:14px;background:#edf4e8;color:#42665c}.lesson-mastery>span{font-size:12px}.lesson-mastery>span>b{color:#285d50}.lesson-mastery>i{grid-column:1 / 3;height:7px;overflow:hidden;border-radius:5px;background:#d4e1d5}.lesson-mastery>i>b{display:block;height:100%;border-radius:inherit;background:#4a9a79}.lesson-mastery>small{grid-column:3;grid-row:1 / 3;color:#5c736a;font-size:10px}.lesson-notes{min-width:0;padding:4px 0}.lesson-notes>span{display:flex;align-items:center;gap:6px;color:#8b5d33;font-size:12px;font-weight:850}.lesson-notes h3{margin:7px 0 12px;color:#24463e;font-size:25px}.lesson-example{padding:13px;display:block;border:1px solid #dbc797;border-radius:13px;background:#fff1c9;color:#694c2e;font-size:17px;line-height:1.55;text-align:center}.lesson-notes ol{margin:15px 0;padding:0;display:grid;gap:11px;list-style:none}.lesson-notes li{display:grid;grid-template-columns:30px 1fr;align-items:start;gap:9px;color:#405d55;font-size:13px;line-height:1.6}.lesson-notes li>b{width:29px;height:29px;display:grid;place-items:center;border-radius:10px;background:#dfece1;color:#2f7161}.lesson-check{padding:11px;display:flex;align-items:flex-start;gap:8px;border-radius:12px;background:#eaf4ef;color:#38685a;font-size:11px;line-height:1.6}.lesson-check>svg{margin-top:2px}.lesson-footer{margin-top:21px;padding-top:17px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #d8dfd3}.lesson-footer>small{max-width:590px;color:#64736d;font-size:10px;line-height:1.65}.lesson-practice-button{min-height:54px;padding:0 19px;display:flex;align-items:center;justify-content:center;gap:8px;border:2px solid #214b41;border-radius:15px;background:#2f7161;color:#fff;box-shadow:0 4px #214b41;font-size:14px;font-weight:900;white-space:nowrap}.lesson-practice-button:hover{transform:translateY(-2px);background:#398573}@media(max-width:1050px){.skill-trail{grid-template-columns:repeat(3,minmax(0,1fr))}.battle-home-actions{grid-column:1 / -1;grid-template-columns:1fr 1fr}.battle-home-actions .battle-home-button{grid-column:auto}.lesson-skill-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.battle-home-actions{grid-template-columns:1fr;width:100%}.battle-home-actions .battle-home-button{min-height:62px}.speedrun-home-button{min-height:58px;justify-content:center;text-align:left}.lesson-home-banner{width:calc(100% - 28px);padding:14px;grid-template-columns:46px minmax(0,1fr);gap:11px;border-radius:19px}.lesson-home-icon{width:44px;height:44px;border-radius:13px}.lesson-home-icon>svg{width:25px}.lesson-home-banner strong{font-size:16px}.lesson-home-banner p{font-size:11px}.lesson-home-banner>button{grid-column:1 / -1;width:100%;min-height:46px;justify-content:center}.skill-trail{grid-template-columns:repeat(2,minmax(0,1fr))}.skill-stop{padding-inline:13px}.fraction-picture,.geometry-picture{min-height:130px;gap:8px}.fraction-picture>svg{width:min(170px,64%);max-height:170px}.fraction-picture>strong{font-size:38px}.geometry-picture>svg{width:min(190px,85%);max-height:175px}.battle-math-overlay.is-live{padding:0 7px 7px;align-items:flex-end;background:linear-gradient(180deg,#08091900,#0809190d 25%,#080919b3 52%,#080919db)}.battle-math-overlay.is-live .battle-math-modal{width:100%;max-height:64dvh;border-radius:18px}.battle-math-overlay.is-live .battle-math-header{min-height:48px;padding:6px 39px 6px 10px;grid-template-columns:1fr auto}.battle-math-overlay.is-live .battle-math-enemy{display:none}.battle-math-overlay.is-live .battle-math-header>div:nth-child(2)>span{font-size:9px}.battle-math-overlay.is-live .battle-math-header h2{margin-top:2px;font-size:15px}.battle-math-overlay.is-live .battle-math-header>strong{margin-right:0;font-size:10px}.battle-math-overlay.is-live .battle-math-body{display:block}.battle-math-overlay.is-live .battle-math-question{padding:8px 10px}.battle-math-overlay.is-live .battle-math-question>span{font-size:9px}.battle-math-overlay.is-live .battle-math-question h3{font-size:16px}.battle-math-overlay.is-live .battle-math-question>p{margin-bottom:4px;font-size:10px}.battle-math-overlay.is-live .battle-math-picture,.battle-math-overlay.is-live .battle-math-picture .picture-stage{min-height:86px;height:86px}.battle-math-overlay.is-live .battle-math-picture.is-mental-picture{min-height:88px;height:88px}.battle-math-overlay.is-live .battle-mental-equation{min-height:53px;font-size:31px}.battle-math-overlay.is-live .battle-math-feedback{min-height:32px;margin-top:4px;padding:5px 8px;font-size:9px}.battle-math-overlay.is-live .battle-math-body>.answer-pad{padding:8px 10px;gap:6px}.battle-math-overlay.is-live .answer-workbench{padding-bottom:5px}.battle-math-overlay.is-live .answer-field{min-height:44px}.battle-math-overlay.is-live .input-mode-switch>button{min-height:44px}.battle-math-overlay.is-live .battle-math-body .answer-pad .handwriting-canvas-wrap canvas{height:105px}.battle-math-overlay.is-live .battle-math-body .answer-pad .math-key{min-height:44px}.battle-math-overlay.is-live .answer-actions{padding-top:4px}.battle-math-overlay.is-live .answer-actions>button{min-height:44px}.battle-danger-banner{left:9px;right:9px;top:63px;width:auto;min-height:47px;padding:6px 9px;grid-template-columns:20px 1fr auto;border-radius:13px}.battle-danger-banner>strong{font-size:11px}.battle-danger-banner>span{font-size:9px}.math-dodge-pad{left:10px;bottom:calc(64dvh + 13px);grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:5px}.math-dodge-pad>span{display:none}.math-dodge-pad>button{width:44px;height:44px;border-radius:13px}.math-dodge-pad>button>svg{width:20px}.math-dodge-pad>button[data-testid=math-move-up]{grid-row:1}.math-dodge-pad>button[data-testid=math-move-left],.math-dodge-pad>button[data-testid=math-move-down],.math-dodge-pad>button[data-testid=math-move-right]{grid-row:2}.battle-loadout-panel{max-height:calc(100dvh - 18px);padding:18px 13px;border-radius:20px}.battle-loadout-panel>h2{font-size:24px}.battle-loadout-panel .gear-options{grid-template-columns:1fr}.battle-loadout-panel .gear-options button{min-height:61px}.lesson-backdrop{padding:6px;align-items:start}.lesson-center{max-height:calc(100dvh - 12px);padding:17px 13px;border-radius:20px}.lesson-close{right:9px;top:9px}.lesson-heading{padding-right:42px}.lesson-heading h2{font-size:22px}.lesson-heading p{font-size:12px}.lesson-skill-tabs{margin:14px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.lesson-skill-tabs>button{min-height:44px;font-size:12px}.lesson-content{grid-template-columns:1fr;gap:16px}.lesson-video-frame{border-radius:15px}.lesson-video-frame>span{font-size:10px}.lesson-notes h3{font-size:22px}.lesson-example{font-size:15px}.lesson-notes li{font-size:13px}.lesson-footer{align-items:stretch;flex-direction:column;gap:12px}.lesson-footer>small{font-size:10px}.lesson-practice-button{width:100%;min-height:52px;white-space:normal}}@media(max-width:370px){.battle-math-overlay.is-live .battle-math-modal{max-height:67dvh}.math-dodge-pad{bottom:calc(67dvh + 10px)}.battle-danger-banner>span{display:none}.battle-danger-banner{grid-template-columns:20px 1fr}}@media(prefers-reduced-motion:reduce){.fraction-picture.is-highlighted>svg,.geometry-picture.is-highlighted>svg{filter:none}.battle-math-overlay.is-live .battle-math-modal{animation:none}}@media(min-width:701px){.battle-loadout-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}.battle-loadout-panel>span,.battle-loadout-panel>h2,.battle-loadout-panel>p,.battle-loadout-panel>.rogue-primary{grid-column:1 / -1}.battle-loadout-panel .gear-options{grid-template-columns:1fr}}@media(max-width:700px){.battle-math-overlay.is-live .keypad{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.battle-math-overlay.is-live .battle-math-body .answer-pad .math-key{min-width:0;min-height:44px;padding:0}.battle-math-overlay.is-live .battle-math-body .answer-pad .math-key>svg{width:19px}}@media(max-width:430px){.top-actions{grid-template-columns:repeat(7,minmax(0,1fr))}}@media(max-width:700px){.battle-math-overlay.is-live .battle-math-modal{max-height:70dvh}.battle-math-overlay.is-live .battle-math-header{min-height:44px;padding-block:4px}.battle-math-overlay.is-live .battle-math-question>p{display:none}.battle-math-overlay.is-live .battle-math-picture,.battle-math-overlay.is-live .battle-math-picture .picture-stage{min-height:78px;height:78px}.math-dodge-pad{bottom:calc(70dvh + 10px)}}@media(max-width:370px){.battle-math-overlay.is-live .battle-math-modal{max-height:70dvh}.math-dodge-pad{bottom:calc(70dvh + 10px)}}@media(max-width:700px){.battle-math-overlay.is-live .battle-math-modal{max-height:68dvh}.battle-math-overlay.is-live .battle-math-header{min-height:40px}.battle-math-overlay.is-live .battle-math-question{padding-block:6px}.battle-math-overlay.is-live .battle-math-picture,.battle-math-overlay.is-live .battle-math-picture .picture-stage{min-height:68px;height:68px}.battle-math-overlay.is-live .battle-math-body>.answer-pad{gap:4px}.battle-math-overlay.is-live .answer-workbench{padding-bottom:3px}.battle-math-overlay.is-live .answer-actions{padding-top:2px}.math-dodge-pad{bottom:calc(68dvh + 10px)}}.bird-home-button{min-height:57px;padding:9px 14px;display:flex;align-items:center;gap:10px;border:1px solid #80c6b5;border-radius:16px;background:#254f50;color:#edfff8;text-align:left}.bird-home-button:hover{border-color:#ffe879;background:#316565;transform:translateY(-2px)}.bird-home-button>svg{color:#8fe9d5}.bird-home-button>span{min-width:0;display:flex;flex-direction:column}.bird-home-button strong{font-size:13px}.bird-home-button small{margin-top:3px;color:#c5e5dc;font-size:9px;line-height:1.45}.rogue-title-screen.is-bird-mode{background:radial-gradient(circle at 80% 18%,#385f67 0,transparent 34%),radial-gradient(circle at 14% 82%,#413b68 0,transparent 30%),#15162f}.bird-chapter-track{max-width:490px;margin-top:17px;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.bird-chapter-track>span{height:31px;display:grid;place-items:center;border:1px solid #515779;border-radius:9px;background:#242646;color:#bfc1df;font-size:11px;font-weight:900}.bird-chapter-track>span.is-current{border:2px solid #ffe879;background:#385f67;color:#fff2a8}.bird-chapter-track>span.is-done{border-color:#5ba997;background:#23484a;color:#bffff0}.rogue-game-screen.is-bird-mode .rogue-arena{border-color:#659c98}.bird-art{overflow:visible}.bird-art .bird-wing-left,.bird-art .bird-wing-right{transform-box:fill-box;animation:bird-flap 1.1s ease-in-out infinite alternate}.bird-art .bird-wing-left{transform-origin:right center}.bird-art .bird-wing-right{transform-origin:left center;animation-name:bird-flap-right}.bird-art.is-boss .bird-wing-left,.bird-art.is-boss .bird-wing-right{animation-duration:.72s}@keyframes bird-flap{to{transform:rotate(7deg) translateY(2px)}}@keyframes bird-flap-right{to{transform:rotate(-7deg) translateY(2px)}}.rogue-end-panel.is-bird-complete{border-color:#8fe9d5;background:radial-gradient(circle at 50% 0,#385f67,#242643 65%);box-shadow:0 0 50px #8fe9d52e}@media(max-width:1050px){.battle-home-actions .bird-home-button{grid-column:1 / -1}}@media(max-width:700px){.battle-home-actions .bird-home-button{grid-column:auto;min-height:58px}.bird-chapter-track{gap:4px}.bird-chapter-track>span{height:29px;font-size:10px}}@media(prefers-reduced-motion:reduce){.bird-art .bird-wing-left,.bird-art .bird-wing-right{animation:none}}
