@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.visible{visibility:visible}.start{inset-inline-start:var(--spacing)}.grid{display:grid}.table{display:table}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--ink:#17131c;--paper:#fff8e7;--paper-deep:#f3e8ce;--red:#e52d3d;--red-dark:#b7172a;--purple:#6f3cc3;--green:#82c341;--green-dark:#3d7a2b;--yellow:#ffd84d;--blue:#4c87d9;--pink:#e85b9b;--orange:#d97827;--success:#2f9b65;--muted:#706b76;--line:#17131c2e;--shadow:0 14px 0 #17131c1a;--font-ui:"Trebuchet MS", "Segoe UI", Arial, sans-serif}*{box-sizing:border-box}html{background:var(--paper);scroll-behavior:smooth;min-width:320px}body{color:var(--ink);background:var(--paper);font-family:var(--font-ui);margin:0;font-size:18px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:4px solid var(--blue);outline-offset:3px}button{color:inherit}.page-shell{min-height:100vh;padding:28px max(18px,50vw - 550px) 118px}.narrow-shell{max-width:880px;margin:0 auto}.loading-screen{background:var(--paper);place-content:center;justify-items:center;gap:18px;min-height:100vh;display:grid}.loading-screen p{margin:0;font-weight:800}.scribble-loader{border:4px solid var(--ink);background:var(--red);color:#fff;border-radius:46% 54% 48% 52%;place-items:center;width:72px;height:72px;font-size:38px;font-weight:900;animation:.9s ease-in-out infinite alternate bob;display:grid;transform:rotate(-5deg)}.kicker{color:var(--red-dark);letter-spacing:.11em;text-transform:uppercase;margin:0 0 8px;font-size:13px;font-weight:900}.button{border:3px solid var(--ink);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:18px;min-height:52px;padding:10px 20px;font-weight:900;transition:transform .18s,box-shadow .18s,background .18s;display:inline-flex}.button:hover:not(:disabled){transform:translateY(-2px)rotate(-.5deg)}.button:active:not(:disabled){box-shadow:none;transform:translateY(2px)}.button-primary{background:var(--red);color:#fff;box-shadow:5px 6px 0 var(--ink)}.button-secondary{background:#fff;box-shadow:4px 5px #17131c38}.button-hint{background:var(--yellow);margin-right:auto}.button-danger{color:var(--red-dark);border-color:var(--red-dark);background:#fff}.button:disabled,.button-disabled{opacity:.48;cursor:not-allowed;box-shadow:none}.back-link{align-items:center;min-height:48px;font-weight:900;display:inline-flex}.centered-page{flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;max-width:700px;margin:0 auto;display:flex}.centered-page h1{margin:0;font-size:clamp(42px,8vw,78px);line-height:.98}.centered-page>p:not(.kicker){max-width:620px}.bottom-nav{z-index:40;border:3px solid var(--ink);width:min(620px,100% - 24px);min-height:72px;box-shadow:0 8px 0 var(--ink);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff8e7f5;border-radius:22px;grid-template-columns:repeat(4,1fr);padding:7px;display:grid;position:fixed;bottom:14px;left:50%;transform:translate(-50%)}.bottom-nav a{border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-height:54px;font-weight:800;display:flex}.bottom-nav a>span{font-size:24px;line-height:1}.bottom-nav small{font-size:11px}.bottom-nav a[aria-current=page]{background:var(--ink);color:#fff}.score-pill{border:3px solid var(--ink);background:var(--yellow);min-width:146px;min-height:54px;box-shadow:3px 4px 0 var(--ink);border-radius:16px;grid-template-rows:24px 16px;grid-template-columns:32px auto;align-items:center;padding:5px 14px 5px 8px;display:grid}.score-pill>span{grid-row:1/3;place-items:center;font-size:26px;display:grid}.score-pill strong{font-size:20px;line-height:1}.score-pill small{font-size:10px;font-weight:800;line-height:1}.home-screen{background-color:var(--paper);background-image:radial-gradient(#17131c14 1px,#0000 1px);background-size:18px 18px;position:relative;overflow:hidden}.home-topbar{justify-content:space-between;align-items:center;max-width:1100px;margin:0 auto;display:flex}.brand-lockup{align-items:center;gap:12px;font-weight:900;display:flex}.brand-dot{border:3px solid var(--ink);background:var(--red);color:#fff;border-radius:50% 45% 52% 48%;place-items:center;width:48px;height:48px;font-size:28px;display:grid;transform:rotate(-7deg)}.hero-grid{grid-template-columns:1.05fr .95fr;align-items:center;gap:clamp(34px,6vw,86px);max-width:1100px;min-height:calc(100vh - 235px);margin:42px auto 24px;display:grid}.hero-copy h1{letter-spacing:-.065em;margin:0;font-size:clamp(58px,7vw,102px);line-height:.88}.hero-copy h1 em{color:var(--red);text-shadow:3px 3px 0 var(--ink);-webkit-text-stroke:2px var(--ink);font-style:normal}.hero-dialogue{border-left:6px solid var(--purple);max-width:620px;margin:30px 0;padding-left:18px;font-size:clamp(19px,2vw,24px);font-weight:700;line-height:1.45}.hero-actions{flex-wrap:wrap;gap:16px;display:flex}.privacy-note{color:var(--muted);margin-top:24px;font-size:13px;font-weight:700}.privacy-note span{color:var(--success)}.hero-scene{border:4px solid var(--ink);background:var(--purple);min-height:510px;box-shadow:14px 16px 0 var(--ink);place-items:center;display:grid;position:relative;overflow:hidden;transform:rotate(1.5deg)}.hero-scene:before{content:"";border:2px dashed #ffffff73;position:absolute;inset:18px}.hero-character{border:5px solid var(--ink);background:var(--red);color:#fff;border-radius:45% 55% 44% 56%;width:260px;height:310px;font-size:150px;transform:rotate(-5deg);box-shadow:12px 12px #17131c8c}.asset-fallback{place-items:center;font-weight:900;display:grid}.speech-bubble{border:4px solid var(--ink);background:#fff;border-radius:24px 24px 5px;flex-direction:column;width:240px;padding:18px 20px;display:flex;position:absolute;bottom:28px;right:22px;transform:rotate(-2deg)}.speech-bubble strong{color:var(--red-dark);letter-spacing:.12em;text-transform:uppercase;font-size:11px}.speech-bubble span{font-size:21px;font-weight:900;line-height:1.1}.speech-bubble small{margin-top:7px;font-size:12px}.tape{z-index:2;background:#ffd84dd4;width:110px;height:28px;position:absolute}.tape-one{top:10px;left:-24px;transform:rotate(-23deg)}.tape-two{top:40px;right:-20px;transform:rotate(28deg)}.doodle{color:#fff;font-family:cursive;font-size:70px;position:absolute}.doodle-arrow{bottom:50px;left:25px;transform:rotate(34deg)}.doodle-burst{top:75px;right:24px}.home-progress{border:3px solid var(--ink);max-width:1100px;box-shadow:6px 7px 0 var(--ink);background:#fff;grid-template-columns:repeat(3,1fr);margin:0 auto;display:grid}.home-progress article{border-right:2px solid var(--ink);align-items:center;gap:14px;min-height:88px;padding:14px 20px;display:flex}.home-progress article:last-child{border-right:0}.home-progress article div{flex-direction:column;display:flex}.home-progress strong{font-size:22px}.home-progress small{color:var(--muted);font-size:12px;font-weight:700}.progress-icon{border:3px solid var(--ink);border-radius:50%;place-items:center;width:48px;height:48px;font-size:24px;font-weight:900;display:grid}.progress-icon.red{background:var(--red);color:#fff}.progress-icon.purple{background:var(--purple);color:#fff}.progress-icon.green{background:var(--green)}.section-header{justify-content:space-between;align-items:flex-end;gap:30px;max-width:1100px;margin:0 auto 42px;display:flex}.section-header.compact{align-items:center;margin-bottom:30px}.section-header h1{letter-spacing:-.055em;margin:0;font-size:clamp(46px,6vw,78px);line-height:.95}.section-header p:not(.kicker){color:var(--muted);margin:10px 0 0}.briefing-screen{background:var(--paper)}.briefing-hero{grid-template-columns:340px 1fr;align-items:center;gap:48px;max-width:1100px;margin:0 auto 54px;display:grid}.briefing-art{border:4px solid var(--ink);background:var(--red);min-height:280px;box-shadow:10px 12px 0 var(--ink);border-radius:32% 68% 54% 46%;place-items:center;display:grid;transform:rotate(-3deg)}.briefing-art .asset-fallback{color:#fff;border:5px dashed #fff;border-radius:50%;width:150px;height:150px;font-size:90px}.briefing-hero h1{letter-spacing:-.06em;margin:0;font-size:clamp(52px,7vw,88px);line-height:.92}.briefing-dialogue{margin:22px 0;font-size:20px;font-weight:700}.briefing-facts{flex-wrap:wrap;gap:9px;display:flex}.briefing-facts span{border:2px solid var(--ink);background:#fff;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:900}.level-section{max-width:1100px;margin:0 auto}.level-heading{justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:22px;display:flex}.level-heading h2{margin:0;font-size:36px;line-height:1}.level-heading>p{max-width:420px;color:var(--muted);margin:0;font-size:14px}.level-grid{grid-template-columns:repeat(4,1fr);gap:16px;display:grid}.level-card{border:3px solid var(--ink);min-height:330px;box-shadow:5px 6px 0 var(--ink);background:#fff;border-radius:20px;flex-direction:column;padding:22px;display:flex}.level-card:nth-child(2n){transform:rotate(.6deg)}.level-card:nth-child(odd){transform:rotate(-.45deg)}.level-card-top{justify-content:space-between;align-items:center;display:flex}.level-card-top>span{color:var(--red);font-size:36px;font-weight:900}.level-card-top small{background:var(--paper-deep);text-transform:uppercase;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900}.level-card h3{margin:14px 0 8px;font-size:24px;line-height:1.05}.level-card>p{color:var(--muted);margin:0;font-size:14px}.stars{color:var(--yellow);letter-spacing:2px;-webkit-text-stroke:1px var(--ink);margin:auto 0 12px;font-size:26px}.button-card{background:var(--ink);color:#fff;justify-content:space-between;min-height:48px;padding:8px 13px;font-size:14px}.level-card.status-locked{opacity:.52;box-shadow:2px 3px #17131c8c}.exercise-screen{background:#f3ead8;min-height:100svh;overflow:hidden}.exercise-topbar{border-bottom:3px solid var(--ink);background:var(--ink);color:#fff;grid-template-columns:130px 1fr 95px;align-items:center;height:68px;padding:0 max(14px,50vw - 550px);display:grid}.pause-link{align-items:center;gap:7px;min-height:48px;font-weight:900;display:flex}.exercise-progress-label{flex-direction:column;align-items:center;line-height:1.1;display:flex}.exercise-progress-label strong{font-size:15px}.exercise-progress-label small{color:#c9c2cd;font-size:11px}.session-score{color:var(--yellow);justify-content:flex-end;align-items:baseline;gap:5px;display:flex}.session-score strong{font-size:22px}.session-score small{font-size:10px}.exercise-progress{background:#d6cdbd;height:8px}.exercise-progress span{background:var(--red);height:100%;transition:width .3s;display:block}.exercise-stage{grid-template-columns:230px 1fr;gap:18px;width:min(1100px,100%);height:calc(100svh - 76px);margin:0 auto;padding:18px;display:grid}.mentor-strip{border:3px solid var(--ink);background:var(--blue);color:#fff;box-shadow:5px 6px 0 var(--ink);text-align:center;border-radius:18px;flex-direction:column;align-self:start;align-items:center;gap:12px;padding:22px 16px;display:flex}.mentor-avatar{border:4px solid var(--ink);width:76px;height:76px;color:var(--blue);background:#fff;border-radius:48% 52% 43% 57%;place-items:center;font-size:38px;font-weight:900;display:grid}.mentor-strip strong{text-transform:uppercase;letter-spacing:.1em;font-size:13px}.mentor-strip p{margin:7px 0 0;font-size:14px;font-weight:700}.exercise-panel{border:3px solid var(--ink);min-height:0;box-shadow:7px 8px 0 var(--ink);background:#fff;border-radius:22px;flex-direction:column;align-items:center;padding:18px 28px;display:flex;overflow-y:auto}.exercise-question{text-align:center}.question-tag{background:var(--paper-deep);color:var(--red-dark);text-transform:uppercase;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:900;display:inline-block}.exercise-question h1{max-width:760px;margin:8px auto 10px;font-size:clamp(22px,3vw,34px);line-height:1.14}.number-line{border:2px solid var(--line);background:var(--paper);border-radius:16px;width:min(720px,94%);margin:8px auto 10px;padding:20px 22px 12px}.track{border:3px solid var(--ink);background:#fff;border-radius:999px;height:16px;margin:18px 10px 0;position:relative}.track:before{content:"";background:repeating-linear-gradient(90deg,#0000 0 calc(20% - 2px),#17131c38 calc(20% - 2px) 20%);position:absolute;inset:3px}.track-fill{background:var(--red);height:4px;position:absolute;top:3px}.pawn{z-index:2;border:3px solid var(--ink);background:var(--red);color:#fff;border-radius:50%;place-items:center;width:42px;height:42px;font-weight:900;transition:left .55s;display:grid;position:absolute;top:50%;transform:translate(-50%,-50%)}.track-labels{color:var(--muted);justify-content:space-between;margin-top:23px;font-size:11px;font-weight:900;display:flex}.jump-note{text-align:center;margin:5px 0 0;font-size:13px}.answer-choices{grid-template-columns:repeat(4,1fr);gap:11px;width:min(560px,100%);margin:4px auto;display:grid}.answer-choices button{border:3px solid var(--ink);cursor:pointer;background:#fff;border-radius:13px;min-height:64px;font-size:28px;font-weight:900;box-shadow:3px 4px #17131c4d}.answer-choices button.selected{background:var(--yellow);box-shadow:4px 5px 0 var(--ink);transform:rotate(-2deg)}.answer-choices button:disabled{cursor:default}.number-entry{grid-template-columns:110px 1fr;align-items:start;gap:8px 18px;display:grid}.number-entry label{align-self:center;font-size:13px;font-weight:900}.number-entry>input{border:3px solid var(--ink);background:var(--paper);text-align:center;border-radius:12px;width:130px;height:62px;font-size:34px;font-weight:900}.mini-keypad{grid-column:1/3;grid-template-columns:repeat(6,48px);gap:5px;display:grid}.mini-keypad button{border:2px solid var(--ink);background:#fff;border-radius:9px;min-width:48px;min-height:48px;font-weight:900}.mini-keypad button:nth-last-child(2){grid-column:span 2;font-size:11px}.feedback-panel{border:2px solid var(--ink);background:var(--paper);border-radius:12px;align-items:center;gap:12px;width:min(650px,100%);min-height:52px;margin-top:10px;padding:10px 15px;display:flex}.feedback-panel>span{border:2px solid;border-radius:50%;flex:none;place-items:center;width:32px;height:32px;font-weight:900;display:grid}.feedback-panel p{margin:0;font-size:14px;font-weight:800}.feedback-panel.success{color:#176a43;background:#def5e7}.feedback-panel.retry{color:#8a4f13;background:#fff0d8}.feedback-panel.hint{color:#24578f;background:#edf4ff}.solution-box{border:2px dashed var(--blue);border-radius:10px;width:min(650px,100%);margin-top:8px;padding:8px 12px;font-size:13px}.solution-box summary{cursor:pointer;font-weight:900}.solution-box p,.solution-box ol{margin:7px 0}.exercise-actions{gap:12px;width:min(650px,100%);margin-top:auto;padding-top:12px;display:flex}.exercise-actions .button-primary{margin-left:auto}.result-screen{background:var(--purple);background-image:radial-gradient(#fff3 2px,#0000 2px);background-size:24px 24px;place-items:center;min-height:100svh;padding:24px;display:grid}.result-card{border:4px solid var(--ink);background:var(--paper);width:min(650px,100%);box-shadow:12px 14px 0 var(--ink);text-align:center;border-radius:28px;flex-direction:column;align-items:center;padding:clamp(26px,6vw,54px);display:flex}.result-kicker{color:var(--red-dark);letter-spacing:.12em;text-transform:uppercase;font-size:12px;font-weight:900}.reward-emblem{border:5px solid var(--ink);background:var(--yellow);width:96px;height:96px;box-shadow:5px 6px 0 var(--ink);border-radius:50%;place-items:center;margin:18px 0;font-size:48px;font-weight:900;display:grid}.reward-emblem.badge-large{background:var(--red);color:#fff;transform:rotate(-6deg)}.result-card h1{margin:4px 0 12px;font-size:clamp(34px,6vw,54px);line-height:1}.result-card>p{color:var(--muted);margin:0}.result-stars{color:#c9c3b8;-webkit-text-stroke:1px var(--ink);margin:20px 0 12px;font-size:38px}.result-stars .earned{color:var(--yellow)}.result-stats{border:3px solid var(--ink);border-radius:14px;grid-template-columns:repeat(2,1fr);width:100%;margin:12px 0 20px;display:grid;overflow:hidden}.result-stats div{background:#fff;flex-direction:column;padding:12px;display:flex}.result-stats div:first-child{border-right:2px solid var(--ink)}.result-stats strong{font-size:28px}.result-stats small{font-size:11px}.result-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.hq-screen{background:#efe5ce}.hq-room{border:4px solid var(--ink);color:#fff;max-width:1100px;min-height:340px;box-shadow:10px 12px 0 var(--ink);background:#2c2640;grid-template-columns:160px 1fr 230px;align-items:center;gap:30px;margin:0 auto 48px;padding:42px;display:grid;position:relative;overflow:hidden}.hq-room:before{content:"";background:linear-gradient(110deg,#0000 0 48%,#ffd84d14 48% 50%,#0000 50%);position:absolute;inset:0}.room-lock{background:var(--purple);border:5px solid #fff;border-radius:50%;place-items:center;width:120px;height:120px;font-size:58px;font-weight:900;display:grid}.room-copy{z-index:1;position:relative}.room-copy span{color:var(--yellow);text-transform:uppercase;font-size:12px;font-weight:900}.room-copy h2{margin:8px 0;font-size:38px;line-height:1}.room-copy p{color:#d8d2e1;max-width:520px}.workbench{z-index:1;border:4px solid var(--ink);text-align:center;background:#8e582e;place-items:center;min-height:160px;padding:20px;display:grid;position:relative;box-shadow:5px 6px #0b0910}.spring{color:var(--yellow);font-size:76px;line-height:1;transform:rotate(30deg)}.workbench small{font-size:11px;font-weight:800}.collection-section{max-width:1100px;margin:0 auto}.badge-grid{grid-template-columns:repeat(5,1fr);gap:12px;display:grid}.badge-card{border:3px solid var(--ink);text-align:center;background:#fff;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;min-height:180px;padding:16px;display:flex}.badge-card.locked{opacity:.48;filter:grayscale()}.badge-card.unlocked{box-shadow:4px 5px 0 var(--ink);background:#fff5c4;transform:rotate(-1deg)}.badge-card .asset-fallback,.badge-placeholder{border:4px solid var(--ink);background:var(--red);color:#fff;border-radius:50%;place-items:center;width:70px;height:70px;margin-bottom:10px;font-size:32px;font-weight:900;display:grid}.badge-card strong{font-size:14px}.badge-card small{color:var(--muted);font-size:11px}.hq-action{margin-top:28px}.settings-list{gap:10px;display:grid}.setting-row{border:3px solid var(--ink);cursor:pointer;background:#fff;border-radius:15px;justify-content:space-between;align-items:center;gap:20px;min-height:78px;padding:14px 18px;display:flex;position:relative}.setting-row>span{flex-direction:column;display:flex}.setting-row strong{font-size:17px}.setting-row small{color:var(--muted);font-size:12px}.setting-row input{opacity:0;pointer-events:none;position:absolute}.setting-row i{border:3px solid var(--ink);background:#c9c3cb;border-radius:999px;flex:none;width:58px;height:34px;transition:background .2s;position:relative}.setting-row i:after{content:"";border:2px solid var(--ink);background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:3px}.setting-row input:checked+i{background:var(--green)}.setting-row input:checked+i:after{transform:translate(24px)}.setting-row.compact{border:0;border-top:2px solid var(--line);border-radius:0;margin-top:18px;padding:10px 0}.parent-access{border:3px dashed var(--ink);background:var(--paper-deep);justify-content:space-between;align-items:center;gap:30px;margin-top:32px;padding:26px;display:flex}.parent-access h2{margin:0;font-size:30px}.parent-access p:not(.kicker){color:var(--muted);margin:7px 0 0;font-size:14px}.parent-gate{background:var(--ink);place-items:center;min-height:100vh;padding:20px;display:grid}.parent-gate section{border:4px solid var(--ink);background:var(--paper);width:min(480px,100%);box-shadow:10px 12px 0 var(--red);border-radius:22px;flex-direction:column;align-items:stretch;padding:38px;display:flex}.gate-icon{border:4px solid var(--ink);background:var(--purple);color:#fff;border-radius:50%;place-items:center;width:74px;height:74px;margin:12px auto;font-size:36px;font-weight:900;display:grid}.parent-gate h1{text-align:center;margin:0;font-size:44px}.parent-gate>section>p{text-align:center}.parent-gate label{margin-top:18px;font-size:13px;font-weight:900}.parent-gate input{border:3px solid var(--ink);text-align:center;letter-spacing:.25em;background:#fff;border-radius:12px;height:64px;margin:7px 0 18px;font-size:34px}.parent-screen{background:#f2efe8}.parent-summary{grid-template-columns:repeat(3,1fr);gap:12px;max-width:1100px;margin:0 auto 18px;display:grid}.parent-summary article,.parent-panel{border:2px solid var(--ink);background:#fff;border-radius:14px;padding:22px}.parent-summary article{flex-direction:column;display:flex}.parent-summary small,.parent-summary span{color:var(--muted);font-size:11px}.parent-summary strong{margin:8px 0;font-size:26px}.parent-grid{grid-template-columns:1.4fr .6fr;gap:18px;max-width:1100px;margin:0 auto 18px;display:grid}.parent-panel h2{margin:0 0 20px;font-size:30px}.skill-row{border-top:1px solid var(--line);grid-template-columns:1fr 170px 42px;align-items:center;gap:14px;padding:14px 0;display:grid}.skill-row>div:first-child{flex-direction:column;display:flex}.skill-row small{color:var(--muted);font-size:11px}.skill-row b{text-align:right}.mastery-bar{border:2px solid var(--ink);border-radius:999px;height:12px;overflow:hidden}.mastery-bar span{background:var(--green);height:100%;display:block}.select-field{flex-direction:column;gap:7px;font-size:13px;font-weight:900;display:flex}.select-field select{border:2px solid var(--ink);background:#fff;border-radius:9px;min-height:48px;padding:0 10px}.data-actions{grid-template-columns:1fr auto;align-items:center;gap:20px;max-width:1100px;margin:0 auto;display:grid}.data-actions h2{margin-bottom:7px}.data-actions p:not(.kicker){color:var(--muted);margin:0;font-size:13px}.data-buttons{flex-wrap:wrap;gap:9px;display:flex}.file-button{cursor:pointer;position:relative}.file-button input{opacity:0;width:1px;height:1px;position:absolute}.form-message{border-left:4px solid var(--blue);background:#edf4ff;padding:10px;font-size:13px}.danger-zone{background:#fff5f5;border:2px solid #b54955;border-radius:12px;max-width:1100px;margin:18px auto 0;padding:14px 18px;font-size:13px}.danger-zone summary{cursor:pointer;color:#8f2431;font-weight:900}.danger-zone label{align-items:center;gap:10px;margin:12px 0;display:flex}.danger-zone input{border:2px solid var(--ink);border-radius:8px;min-height:48px;padding:0 10px}.offline-icon{border:4px solid var(--ink);background:var(--yellow);border-radius:50%;place-items:center;width:80px;height:80px;font-size:42px;display:grid}html[data-large-text=true] body{font-size:20px}html[data-calm=true] .hero-scene,html[data-calm=true] .level-card,html[data-calm=true] .badge-card{transform:none}html[data-calm=true] .doodle,html[data-calm=true] .tape{display:none}@keyframes bob{0%{transform:translateY(0)rotate(-5deg)}to{transform:translateY(-9px)rotate(2deg)}}@media (max-width:860px){.hero-grid{grid-template-columns:1fr;margin-top:34px}.hero-scene{min-height:390px}.home-progress{grid-template-columns:1fr}.home-progress article{border-right:0;border-bottom:2px solid var(--ink)}.home-progress article:last-child{border-bottom:0}.briefing-hero{grid-template-columns:220px 1fr}.briefing-art{min-height:220px}.level-grid{grid-template-columns:repeat(2,1fr)}.exercise-stage{grid-template-columns:1fr;height:calc(100svh - 76px);padding:10px}.mentor-strip{text-align:left;grid-template-columns:52px 1fr;padding:9px 14px;display:grid}.mentor-avatar{width:48px;height:48px;font-size:24px}.mentor-strip p{margin:2px 0 0}.exercise-panel{padding:14px 18px}.badge-grid{grid-template-columns:repeat(3,1fr)}.parent-grid,.data-actions{grid-template-columns:1fr}}@media (max-width:620px){body{font-size:17px}.page-shell{padding:18px 14px 108px}.brand-lockup>span:last-child{font-size:13px}.brand-dot{width:42px;height:42px}.score-pill{grid-template-columns:28px auto;min-width:126px;padding-right:9px}.score-pill strong{font-size:18px}.hero-grid{gap:30px;min-height:0;margin:30px auto 22px}.hero-copy h1{font-size:clamp(50px,16vw,68px)}.hero-copy h1 em{text-shadow:2px 2px 0 var(--ink);-webkit-text-stroke:1.5px var(--ink)}.hero-dialogue{margin:22px 0;font-size:18px}.hero-actions{display:grid}.hero-actions .button{width:100%}.hero-scene{min-height:330px;box-shadow:8px 9px 0 var(--ink)}.hero-character{width:190px;height:220px;font-size:110px}.speech-bubble{width:200px;padding:13px;bottom:12px;right:10px}.speech-bubble span{font-size:17px}.section-header{align-items:flex-start;margin-bottom:28px}.section-header h1{font-size:48px}.section-header .score-pill{flex:none}.briefing-hero{grid-template-columns:1fr;gap:28px}.briefing-art{min-height:180px}.briefing-hero h1{font-size:56px}.level-heading{display:block}.level-heading>p{margin-top:10px}.level-grid{grid-template-columns:1fr}.level-card{min-height:270px;transform:none!important}.exercise-topbar{grid-template-columns:82px 1fr 58px;height:62px;padding:0 10px}.pause-link span{display:none}.exercise-progress-label strong{text-overflow:ellipsis;white-space:nowrap;max-width:190px;overflow:hidden}.exercise-stage{gap:8px;height:calc(100svh - 70px);padding:7px}.mentor-strip p{font-size:12px}.exercise-panel{box-shadow:4px 5px 0 var(--ink);border-radius:15px;padding:10px 12px}.question-tag{font-size:9px}.exercise-question h1{margin:5px auto;font-size:21px}.number-line{margin:3px auto 6px;padding:13px 10px 7px}.track{margin-top:14px}.track-labels{margin-top:21px}.jump-note{margin:2px 0 0}.answer-choices{gap:7px}.answer-choices button{min-height:54px;font-size:24px}.number-entry{grid-template-columns:78px 1fr}.number-entry>input{height:54px}.mini-keypad{grid-template-columns:repeat(6,42px);gap:4px}.mini-keypad button{min-width:42px;min-height:42px;font-size:14px}.feedback-panel{min-height:44px;margin-top:6px;padding:7px 10px}.feedback-panel p{font-size:12px}.feedback-panel>span{width:28px;height:28px}.exercise-actions{padding-top:7px}.exercise-actions .button{min-height:48px;padding:7px 12px;font-size:13px}.result-card{padding:24px 17px}.result-actions{width:100%;display:grid}.reward-emblem{width:82px;height:82px}.hq-room{grid-template-columns:80px 1fr;gap:18px;min-height:300px;padding:24px 18px}.room-lock{width:72px;height:72px;font-size:34px}.room-copy h2{font-size:29px}.workbench{grid-column:1/3;min-height:110px}.spring{font-size:56px}.badge-grid{grid-template-columns:repeat(2,1fr)}.badge-card{min-height:150px;padding:10px}.badge-card .asset-fallback,.badge-placeholder{width:58px;height:58px}.setting-row{min-height:84px}.parent-access{display:grid}.parent-summary{grid-template-columns:1fr}.parent-gate section{padding:26px 18px}.skill-row{grid-template-columns:1fr 42px}.mastery-bar{grid-column:1}.skill-row b{grid-area:1/2/3}.data-buttons{display:grid}.data-buttons .button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}html[data-reduced-motion=true] *,html[data-reduced-motion=true] :before,html[data-reduced-motion=true] :after{transition:none!important;animation:none!important}.dad-message-final{text-align:center;background:#fff4b8;border:4px solid #17141c;border-radius:20px;max-width:760px;margin:20px auto;padding:22px;box-shadow:6px 7px #17141c}.dad-message-final strong{color:#b52534;margin-bottom:8px;font-size:24px;display:block}.dad-message-final p{margin:0;font-size:18px;font-weight:800}
