/* Generated by npm run math:build. Edit public/math/math.css. */
:root{color-scheme:light;--paper:#f5f0e3;--paper-light:#fffdf5;--ink:#183e42;--muted:#71817b;--teal:#245b59;--dark:#173d40;--gold:#c99b4c;--gold-light:#eddbaf;--line:#dcd9c8;--peach:#f1dfc4;--safe-bottom:max(20px,env(safe-area-inset-bottom));font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}*{box-sizing:border-box}html{background:var(--paper);min-height:100%;scroll-behavior:smooth}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 85% 12%,#dfe8d966,transparent 44%),var(--paper);font-size:15px;line-height:1.6;-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;color:inherit;border:0;cursor:pointer;-webkit-touch-callout:none}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #d1a353;outline-offset:4px}a{color:inherit;text-decoration:none}button svg,a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.site-header{max-width:1260px;margin:auto;padding:25px max(28px,env(safe-area-inset-right)) 16px max(28px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:11px;font-size:13px;font-weight:800;letter-spacing:2.8px;line-height:1.35}.brand svg{width:37px;height:37px;color:var(--teal);stroke-width:1.6}.brand-dot{color:var(--gold)}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:500;color:var(--muted);margin-top:4px}.header-actions{display:flex;align-items:center;gap:14px}.soft-button,.text-button{min-height:48px;padding:10px 13px;display:inline-flex;gap:8px;align-items:center;justify-content:center;border-radius:10px;background:transparent;font-size:13px;font-weight:600}.soft-button{background:#e7e9db;border:1px solid #d7ddcb}.soft-button svg{width:19px;height:19px}.text-button{color:#60736d}.text-button:hover{background:#e6e7d8}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:56px;padding:15px 25px;border-radius:12px;background:var(--teal);color:#fffbed;font-size:16px;font-weight:700;box-shadow:0 4px 0 #153d3c;transition:transform .15s,box-shadow .15s}.primary-button:hover{background:#2a6762}.primary-button:active{transform:translateY(2px);box-shadow:0 2px 0 #153d3c}.eyebrow{display:flex;gap:9px;align-items:center;color:#869086;font-size:10px;font-weight:700;letter-spacing:2px}.eyebrow>span{height:1px;width:26px;background:var(--gold)}.home-screen{max-width:1204px;margin:0 auto;padding:0 28px var(--safe-bottom)}.home-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:358px;gap:16px;padding:24px 32px 35px}.hero-copy h1{font-family:Georgia,"Songti SC","SimSun",serif;font-size:clamp(40px,4.5vw,61px);font-weight:600;letter-spacing:3px;line-height:1.24;margin:15px 0 19px}.hero-copy h1 em{font-style:normal;color:var(--teal)}.hero-description{color:#6b7a70;font-size:14px;line-height:1.85;letter-spacing:.4px}.hero-actions{display:flex;align-items:center;gap:17px;margin-top:25px}.resume-button{font-size:13px;background:transparent;min-height:48px;padding:10px 0;border-bottom:1px solid #b4bfae;border-radius:0;color:var(--teal);font-weight:600}.gentle-note{font-size:11px;color:#879184;margin-top:18px;display:flex;gap:8px;align-items:center}.little-spark{color:#c49646}.hero-art{position:relative;isolation:isolate;min-height:322px;display:grid;place-items:center}.art-picture{width:90%;aspect-ratio:1.38;overflow:hidden;border-radius:47% 47% 43% 43%/45% 45% 48% 48%;transform:rotate(-5deg);box-shadow:0 12px 40px #193f3b13}.art-picture img{width:100%;height:100%;object-fit:cover;object-position:51% 48%;transform:rotate(5deg) scale(1.23)}.art-orbit{position:absolute;border:1px solid #aebdad66;border-radius:50%;z-index:-1;width:94%;height:87%;transform:rotate(-18deg)}.orbit-two{width:83%;height:105%;transform:rotate(37deg);border-color:#c8b67e55}.art-note{position:absolute;top:1%;right:9%;font-size:9px;letter-spacing:2px;color:#96a38b;transform:rotate(9deg)}.floating-clue{position:absolute;bottom:0;left:0;transform:rotate(-7deg);background:#fffef4;padding:13px 18px;border:1px solid #e4deca;border-radius:10px;box-shadow:0 8px 20px #3e51481c;text-align:center}.floating-clue>span{font-size:14px;font-weight:800;letter-spacing:5px}.floating-clue>div{display:flex;gap:4px;margin:6px 0}.floating-clue i{display:block;width:20px;height:20px;border:1px solid #cdd3c1;border-radius:3px}.floating-clue i.on{background:var(--teal);border-color:var(--teal)}.floating-clue small{font-size:8px;color:#929987;letter-spacing:1px}.art-star{position:absolute;color:#c7a263}.star-one{left:1%;top:7%;font-size:38px}.star-two{right:1%;bottom:6%;font-size:25px}.journey-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 25px;background:#e7e9dc;border:1px solid #d9dece;border-radius:13px}.journey-title{display:flex;align-items:center;gap:16px}.journey-title img{width:45px;height:52px;object-fit:contain}.journey-title strong{font-size:14px;letter-spacing:.4px;display:block;margin-bottom:3px}.journey-title div>span{font-size:11px;color:#7a877b}.collection-counts{display:flex;gap:29px;flex-shrink:0}.collection-counts>span{display:grid;grid-template-columns:23px auto;column-gap:6px;align-items:center}.collection-counts svg{width:22px;height:22px;fill:#d6b57122;stroke:#ba8c43;stroke-width:1.5}.collection-counts b{font-size:22px;font-weight:650;line-height:1.2}.collection-counts small{grid-column:1/3;text-align:center;font-size:9px;color:#7c877a;letter-spacing:1px;margin-top:4px}.badge-icon{font-size:26px;color:#5c8978;line-height:1}.puzzle-map{padding-top:34px}.map-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.map-heading h2{font-size:22px;letter-spacing:.8px;font-weight:650;margin-top:7px}.map-heading .eyebrow{font-size:9px;letter-spacing:1.5px}.chapter-tabs{display:flex;gap:5px;padding:4px;border:1px solid #d6dbc9;border-radius:12px;background:#e9eadf}.chapter-tabs button{min-width:66px;min-height:48px;border-radius:8px;background:transparent;color:#7b877b;font-size:13px;font-weight:600}.chapter-tabs button[aria-pressed=true]{background:#fffdf4;color:var(--teal);box-shadow:0 2px 5px #445b4210}.level-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.chapter-title{grid-column:1/-1;display:flex;gap:10px;align-items:center;font-size:14px;color:var(--teal);font-weight:650;margin:11px 0 1px}.chapter-title small{font-size:11px;color:#8a9284;font-weight:400}.level-card{position:relative;min-height:112px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;text-align:left;padding:16px 19px;border:1px solid #dedfcd;border-radius:12px;background:#fffcf2;box-shadow:0 3px 0 #e6e5d6;color:var(--ink);transition:transform .15s,border-color .15s}.level-card:hover{border-color:#839d89;transform:translateY(-2px)}.level-card:active{transform:translateY(1px)}.level-card.completed{background:#edf1e3;border-color:#bdcfb3;box-shadow:0 3px 0 #d9e4ce}.level-card.selected{border-color:#bb9651;background:#fbf0d6}.level-card .level-number,.level-card>small{font-size:10px;color:#93a088;letter-spacing:1.2px}.level-card strong{font-size:16px;font-weight:700}.level-card span{font-size:11px;color:#82917d}.level-card .level-size{font-size:10px;color:#929a88}.level-card .level-badge{position:absolute;right:15px;top:15px;color:#6f9162;font-size:16px}.level-card .level-preview{margin-top:4px}.learning-note{display:flex;align-items:center;gap:20px;border-top:1px solid #dcdccc;border-bottom:1px solid #dcdccc;padding:21px 0;margin-top:30px}.example-mini{display:flex;gap:4px;align-items:center;flex-shrink:0}.example-mini b{font-size:17px;letter-spacing:3px;margin-right:9px}.example-mini>span{height:22px;width:22px;background:#eeeede;border:1px solid #c7d0bc;border-radius:3px;display:grid;place-items:center;line-height:1;color:#8e9e87}.example-mini>span.on{background:var(--teal);border-color:var(--teal)}.learning-note p{font-size:12px;color:#7d8778;line-height:1.8}.learning-note strong{color:#526c5e}.note-decoration{color:#c4a467;font-size:25px;margin-left:auto}.home-footer{display:flex;justify-content:space-between;gap:20px;font-size:10px;letter-spacing:.6px;color:#929989;padding-top:20px}.home-footer a{min-height:44px;display:flex;align-items:center;margin-top:-12px}

.play-screen{max-width:1170px;margin:0 auto;padding:4px 28px var(--safe-bottom)}.play-heading{display:grid;grid-template-columns:160px 1fr 160px;align-items:center;gap:15px;margin:12px 0 24px}.back-button{background:transparent;display:flex;gap:8px;align-items:center;min-height:48px;padding:8px 0;font-size:13px;color:#73816f}.back-button svg{width:19px}.game-heading{text-align:center}.game-heading .eyebrow{justify-content:center;font-size:9px;letter-spacing:1.4px}.game-heading h1{font-size:25px;font-weight:650;letter-spacing:1px;margin-top:5px}.session-stars{justify-self:end;font-size:12px;font-weight:600;color:#a88240;background:#f0e6cf;padding:9px 14px;border:1px solid #e5d9b7;border-radius:99px}.play-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.85fr);gap:28px;align-items:start}.board-card{padding:18px 20px 19px;background:var(--paper-light);border:1px solid #dbddca;box-shadow:0 5px 0 #e3e5d3;border-radius:17px;min-width:0}.board-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.board-label{display:flex;gap:7px;align-items:center;font-size:11px;color:#87937e;letter-spacing:.5px}.board-label i{width:5px;height:5px;background:var(--gold);border-radius:50%}.rule-button{height:38px;width:38px;min-width:38px;border-radius:50%;background:#edf0e2;border:1px solid #dbe1cc;font-size:16px;color:#72906b}.board-scroll{overflow-x:auto;overscroll-behavior-x:contain;padding:8px 3px 13px;-webkit-overflow-scrolling:touch}.puzzle-board{--size:5;--cell:clamp(48px,5.4vw,68px);--clue-width:54px;--clue-height:70px;display:grid;grid-template-columns:var(--clue-width) repeat(var(--size),var(--cell));grid-template-rows:var(--clue-height) repeat(var(--size),var(--cell));width:max-content;margin:0 auto;gap:0;touch-action:pan-y;user-select:none;-webkit-user-select:none}.puzzle-board .corner{display:flex;align-items:flex-end;justify-content:center;padding:8px;font-size:10px;color:#a4ad96}.clue{background:transparent;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:0;font-size:18px;font-weight:750;line-height:1.1;border:0;border-radius:4px;color:#36564b;transition:background .15s}.row-clue{justify-content:flex-end;padding:5px 11px 5px 3px;grid-column:1}.col-clue{flex-direction:column;justify-content:flex-end;padding:3px 4px 11px;grid-row:1}.clue span{display:block}.clue.selected,.clue.hinted,.clue.peer{background:#eee2b7;color:#6e592e}.clue.completed,.clue.complete{color:#8b9e77}.clue.conflict{background:#f2dec2;color:#946037}.puzzle-cell{width:var(--cell);height:var(--cell);min-width:var(--cell);min-height:var(--cell);border:1px solid #c6d0bc;border-radius:0;background:#f5f7eb;position:relative;display:grid;place-items:center;font-size:30px;line-height:1;font-weight:500;color:#94a68d;padding:0;touch-action:none;transition:background .1s}.puzzle-cell.filled{background:#2e6560;border-color:#204e4b;box-shadow:inset 0 0 0 4px #497b6f}.puzzle-cell.filled:after{content:"";display:block;width:12px;height:12px;border-top:1px solid #a8bd9475;border-left:1px solid #a8bd9475;transform:rotate(45deg);margin-top:7px;opacity:.7}.puzzle-cell.crossed{background:#edf0e0;color:#a2af98}.puzzle-cell.selected{outline:3px solid #d0a35a;outline-offset:-4px;z-index:1}.puzzle-cell.peer:not(.filled){background:#f5edcb}.puzzle-cell.hinted{box-shadow:inset 0 0 0 4px #dfb964;background:#f4e3a9}.puzzle-cell.hinted.filled{background:#42796c}.puzzle-cell.conflict{box-shadow:inset 0 0 0 3px #d89965}.puzzle-cell:focus-visible{outline:3px solid #c68f35;outline-offset:-4px;z-index:2}.board-legend{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:8px;font-size:10px;color:#93a086}.board-legend>span{display:flex;gap:7px;align-items:center}.board-legend i{display:grid;place-items:center;width:14px;height:14px;font-style:normal;border-radius:2px;font-size:19px;line-height:1}.legend-filled{background:var(--teal)}.legend-empty{color:#91a187;background:#edf0e1;border:1px solid #d0d7bf}.adventure-tools{padding:2px 0}.helper-card{display:flex;align-items:center;gap:13px;padding:15px 17px;background:#e8eddf;border:1px solid #d9e2ce;border-radius:14px;min-height:93px}.helper-card img{width:58px;height:58px;object-fit:cover;border-radius:50%;border:3px solid #fffdf0;box-shadow:0 2px 0 #cfd8c2;flex-shrink:0;transition:transform .2s}.helper-card img.happy{transform:rotate(-6deg) scale(1.07)}.helper-name{display:block;color:#6f8869;font-size:10px;letter-spacing:.6px;margin-bottom:4px}.helper-card p{font-size:13px;line-height:1.75;font-weight:550;color:#3f604f}.tool-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:23px 0 10px}.tool-heading strong{font-size:12px;color:#5c7562;font-weight:600}.tool-heading small{font-size:9px;color:#99a18b}.paint-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.paint-tool{min-height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#faf9ed;border:1px solid #d9ddc9;border-radius:11px;box-shadow:0 3px 0 #e2e5d2;font-size:12px;color:#7b8e73;font-weight:600}.paint-tool[aria-pressed=true]{background:#e7eddb;border:2px solid #698f73;color:#315e48;box-shadow:0 3px 0 #ccdabb}.tool-symbol{width:24px;height:24px;display:grid;place-items:center}.fill-symbol{border-radius:4px;background:#376e60;border:3px solid #6c9681;transform:rotate(-5deg)}.cross-symbol{font-size:33px;font-weight:400;line-height:1}.erase-symbol{height:19px;width:26px;border:2px solid #b8b5a0;background:linear-gradient(90deg,#e5d2b3 55%,#eee8d8 55%);border-radius:3px;transform:rotate(-33deg)}.secondary-tools{display:flex;align-items:center;justify-content:space-between;margin:13px 0}.secondary-tools .soft-button{background:transparent;border-color:transparent;padding-left:0;color:#82937b;font-size:12px}.secondary-tools .soft-button svg{width:17px;height:17px}.secondary-tools .text-button{font-size:12px;font-weight:500;color:#9a9d88}.hint-button{width:100%;display:flex;gap:10px;align-items:center;justify-content:center;min-height:50px;border-radius:10px;background:#eee5c8;border:1px solid #ddcca3;color:#8b7139;font-size:12px;font-weight:600}.hint-button svg{width:20px;height:20px;color:#b6924b}.hint-panel{padding:14px 15px;border-radius:11px;background:#fff6dd;border:1px solid #e4cf9e;margin-top:12px}.hint-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.hint-heading strong{font-size:12px;color:#8c713b}.hint-heading>button{min-width:40px;min-height:40px;font-size:24px;background:transparent;color:#a79263;margin-top:-7px;margin-right:-8px}.hint-panel>p{font-size:12px;color:#7e744f;line-height:1.8;margin-top:4px}.hint-patterns{display:flex;flex-direction:column;align-items:center;gap:5px;max-height:170px;overflow:auto;padding:8px 0;margin:4px 0}.hint-patterns>div{display:flex;gap:3px;align-items:center}.pattern-cell{display:grid;place-items:center;width:25px;height:25px;border:1px solid #d6c8a3;border-radius:2px;background:#fffdf0;color:#b6ac8c;font-size:21px;line-height:1}.pattern-cell.filled{background:#5c8572;border-color:#557b68}.pattern-cell.crossed{background:#f1ecd8}.pattern-cell.certain{outline:2px solid #caa24d;outline-offset:-2px}.hint-panel>.soft-button{width:100%;min-height:44px;font-size:12px;background:#f1e4bd;border-color:#deca98;color:#82652e}.check-actions{margin-top:16px}.check-actions .primary-button{width:100%;min-height:52px;font-size:14px;gap:13px}.feedback{min-height:0;font-size:11px;color:#8b947e;line-height:1.75;margin-top:13px;text-align:center}.feedback:empty{display:none}.feedback[data-kind=success]{color:#507c50;font-weight:600}.egg-progress{display:flex;align-items:center;gap:10px;padding:16px 0 0;margin-top:14px;border-top:1px solid #dcdfcc}.egg-progress img{width:37px;height:44px;object-fit:contain}.egg-progress>div{flex:1}.egg-progress span{font-size:10px;color:#8e977f}.progress-track{height:5px;background:#e0e4d1;border-radius:5px;margin-top:7px;overflow:hidden}.progress-track>span{display:block;height:100%;width:0;background:#a6bd87;border-radius:5px;transition:width .25s}.play-footer{font-size:10px;text-align:center;color:#a0a58f;margin:26px 0 3px;letter-spacing:.6px}

.modal-backdrop{position:fixed;inset:0;z-index:20;background:#163d3c70;backdrop-filter:blur(7px);padding:25px;overflow-y:auto;display:flex;align-items:center;justify-content:center}.modal{width:min(100%,500px);max-height:calc(100dvh - 50px);overflow-y:auto;background:#fffdf2;border:1px solid #e5e0c8;border-radius:23px;padding:32px;box-shadow:0 20px 70px #10353040}.modal h2{font-size:25px;line-height:1.4;font-weight:650;letter-spacing:.5px}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.close-button{width:48px;height:48px;border-radius:50%;background:#eff0e2;color:#7e8e73;font-size:27px}.result-modal{text-align:center;max-width:430px}.result-modal>.eyebrow{justify-content:center}.reward-illustration{display:flex;align-items:center;justify-content:center;gap:18px;margin:17px 0 12px}.reward-illustration img{width:100px;height:120px;object-fit:contain}.reward-illustration span{color:#ccaa65;font-size:28px}.reward-illustration span:first-child{align-self:flex-start;margin-top:16px}.result-stars{font-size:30px;color:#cca049;letter-spacing:5px;display:flex;align-items:center;justify-content:center;gap:10px;margin:12px 0}.result-stars img{height:85px;width:85px;object-fit:cover;border-radius:50%;border:3px solid #d9bf80}.result-modal>p{font-size:13px;color:#859176;line-height:1.8;margin-bottom:24px}.result-modal .primary-button{width:100%;min-height:53px;font-size:14px}.result-modal>.text-button{margin-top:11px;font-size:12px}.rules-intro{font-size:13px;line-height:1.9;color:#829075;margin:13px 0 22px}.rule-example{display:grid;grid-template-columns:40px 1fr;column-gap:15px;align-items:center;margin-top:17px}.rule-example>b{font-size:22px;font-weight:700;color:#44644d;white-space:nowrap}.rule-example>div{display:flex;gap:5px}.rule-example i{height:30px;width:30px;display:grid;place-items:center;border:1px solid #d1d8be;border-radius:4px;background:#f0f3e4;line-height:1;color:#9dab8b;font-style:normal;font-size:24px}.rule-example i.on{background:#386e5c;border-color:#386e5c}.rule-example p{grid-column:2;font-size:12px;line-height:1.8;color:#879176;margin-top:8px}.rule-example p strong{color:#9c7a39;font-weight:550}.rules-steps{padding-left:20px;margin:22px 0;color:#6d8565;font-size:12px;line-height:2.2}.parent-note{background:#ecf0e1;border-radius:12px;padding:16px 18px}.parent-note strong{font-size:12px;color:#6c8562}.parent-note p{font-size:11px;color:#8a967c;line-height:1.9;margin-top:7px}.boot-error{margin:25px auto;max-width:700px;padding:20px;background:#fff6db;border:1px solid #e3c58d;border-radius:12px;color:#846833}

@media(min-width:1100px){.puzzle-board{--cell:66px}.puzzle-board[style*="--size: 7"],.puzzle-board[style*="--size:7"]{--cell:59px;--clue-width:57px}.hero-art{min-height:350px}}
@media(max-width:1000px){.home-hero{padding-left:10px;padding-right:8px}.hero-art{min-height:285px}.hero-copy h1{font-size:46px}.play-layout{gap:20px;grid-template-columns:minmax(0,1.2fr) minmax(275px,.9fr)}.board-card{padding:12px 13px 16px}.puzzle-board{--cell:clamp(48px,5.8vw,60px);--clue-width:47px;--clue-height:66px}.puzzle-board[style*="--size: 7"],.puzzle-board[style*="--size:7"]{--cell:48px;--clue-width:45px}.helper-card{padding:13px 12px;gap:10px}.helper-card img{height:48px;width:48px}.helper-card p{font-size:12px}.tool-heading{flex-wrap:wrap;gap:3px}.tool-heading small{font-size:9px}.paint-tool{min-height:76px}.level-card{padding:14px 15px}.level-list{gap:11px}}
@media(max-width:800px){.site-header{padding:20px 24px 12px}.home-screen{padding-left:24px;padding-right:24px}.home-hero{min-height:350px;gap:0;padding-top:16px;padding-bottom:32px}.hero-copy h1{font-size:43px}.hero-copy .eyebrow{font-size:9px;letter-spacing:1px}.hero-description{font-size:12px}.hero-art{min-height:255px}.floating-clue{padding:9px 12px;bottom:-5px;left:0}.floating-clue i{width:17px;height:17px}.hero-actions{gap:12px}.hero-actions .primary-button{font-size:14px;padding:13px 20px;min-height:53px;gap:15px}.resume-button{font-size:11px}.gentle-note{font-size:9px;letter-spacing:-.1px}.journey-strip{padding:15px 20px}.journey-title strong{font-size:13px}.journey-title div>span{font-size:10px}.collection-counts{gap:19px}.collection-counts b{font-size:21px}.level-list{grid-template-columns:repeat(3,minmax(0,1fr))}.play-screen{padding:0 24px var(--safe-bottom)}.play-heading{grid-template-columns:125px 1fr 125px;margin:10px 0 20px}.game-heading h1{font-size:23px}.session-stars{font-size:10px;padding:8px 11px}.back-button{font-size:12px}.play-layout{grid-template-columns:1fr;gap:20px}.board-card{padding:15px 28px 18px}.puzzle-board{--cell:63px;--clue-width:61px;--clue-height:70px}.puzzle-board[style*="--size: 7"],.puzzle-board[style*="--size:7"]{--cell:61px;--clue-width:61px}.board-label{font-size:12px}.board-legend{font-size:11px}.adventure-tools{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px;align-items:start}.helper-card{grid-column:1/-1;min-height:76px;padding:12px 17px;gap:13px}.helper-card p{font-size:13px}.helper-name{font-size:10px}.tool-heading{grid-column:1;margin:0;align-self:end}.paint-tools{grid-column:1;grid-row:3}.secondary-tools{grid-column:1;grid-row:4;margin:0}.hint-button{grid-column:2;grid-row:2;min-height:48px}.hint-panel{grid-column:2;grid-row:3/6;margin-top:0}.check-actions{grid-column:2;grid-row:3;margin:0}.hint-panel:not([hidden])~.check-actions{grid-row:6}.feedback{grid-column:2;grid-row:4;margin:0}.hint-panel:not([hidden])~.feedback{grid-row:7}.egg-progress{grid-column:1;grid-row:5;margin:0;padding-top:9px}.play-footer{margin-top:18px}}
@media(max-width:600px){.site-header{padding:17px 18px 9px;gap:10px}.brand{font-size:10px;letter-spacing:1.8px;gap:8px}.brand svg{height:30px;width:30px}.brand small{font-size:8px;letter-spacing:1px}.header-actions{gap:5px}.header-actions .soft-button{font-size:11px;padding:8px 10px;gap:6px;min-height:45px}.header-actions .soft-button svg{width:17px;height:17px}.header-actions .text-button{font-size:11px;padding:8px 6px;min-height:45px}.home-screen{padding-left:18px;padding-right:18px}.home-hero{grid-template-columns:1fr 1fr;min-height:302px;padding:18px 0 31px;gap:0}.hero-copy h1{font-size:37px;letter-spacing:1px;margin:13px 0 13px}.hero-copy .eyebrow{font-size:8px;letter-spacing:.5px;gap:5px;white-space:nowrap}.hero-copy .eyebrow>span{width:13px}.hero-description{font-size:10px;line-height:1.85;letter-spacing:0;white-space:nowrap}.hero-art{min-height:210px;margin-left:-12px;margin-right:-9px;align-self:start;margin-top:21px}.art-picture{width:100%;aspect-ratio:1.05}.art-picture img{transform:rotate(5deg) scale(1.18);object-position:48% 50%}.art-orbit{height:87%;width:100%}.orbit-two{height:100%;width:88%}.art-note{font-size:6px;right:2%;top:-6px;letter-spacing:.8px}.floating-clue{bottom:-11px;left:18px;padding:7px 10px;transform:rotate(-7deg)}.floating-clue>span{font-size:11px;letter-spacing:3px}.floating-clue i{width:14px;height:14px;border-radius:2px}.floating-clue>div{gap:3px;margin:5px 0}.floating-clue small{font-size:6px;letter-spacing:.6px}.star-one{font-size:26px;left:1%;top:-2%}.star-two{font-size:20px;right:-1%;bottom:2%}.hero-actions{margin-top:21px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.hero-actions .primary-button{min-height:51px;padding:12px 18px;font-size:13px;gap:18px}.resume-button{font-size:10px;min-height:40px;padding:8px 0}.gentle-note{font-size:8px;margin-top:13px;gap:4px;white-space:nowrap}.journey-strip{padding:12px 13px;gap:12px;border-radius:11px}.journey-title{gap:9px}.journey-title img{width:33px;height:41px}.journey-title strong{font-size:11px;letter-spacing:0}.journey-title div>span{font-size:9px;line-height:1.7;display:block;max-width:180px}.collection-counts{gap:13px}.collection-counts>span{grid-template-columns:17px auto;gap:3px}.collection-counts b{font-size:18px}.collection-counts svg{height:17px;width:17px}.badge-icon{font-size:22px}.collection-counts small{font-size:8px;letter-spacing:0;margin-top:3px}.puzzle-map{padding-top:26px}.map-heading{align-items:flex-start;gap:10px;margin-bottom:16px;flex-wrap:wrap}.map-heading .eyebrow{font-size:8px;letter-spacing:.8px}.map-heading h2{font-size:19px;letter-spacing:.3px;margin-top:5px}.chapter-tabs{padding:3px;gap:2px}.chapter-tabs button{min-width:49px;min-height:44px;font-size:11px;border-radius:7px}.level-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.level-card{min-height:104px;padding:13px 15px}.level-card strong{font-size:15px}.level-card span{font-size:10px}.learning-note{gap:14px;flex-wrap:wrap;padding:18px 0;margin-top:25px}.learning-note p{font-size:11px;flex:1;min-width:160px}.example-mini{gap:3px}.example-mini>span{height:18px;width:18px}.example-mini b{font-size:14px;margin-right:5px}.note-decoration{display:none}.home-footer{font-size:8px;gap:12px;padding-top:18px}.play-screen{padding:0 14px var(--safe-bottom)}.play-heading{grid-template-columns:90px 1fr 91px;gap:5px;margin:12px 0 18px}.back-button{font-size:10px;gap:4px;white-space:nowrap}.back-button svg{width:17px;height:17px}.game-heading h1{font-size:18px;letter-spacing:.2px;line-height:1.35;margin-top:6px}.game-heading .eyebrow{font-size:8px;letter-spacing:.4px}.session-stars{font-size:9px;padding:6px 9px;white-space:nowrap}.board-card{padding:10px 10px 15px;border-radius:13px}.board-card-top{margin-bottom:4px}.board-label{font-size:10px;letter-spacing:.2px}.rule-button{height:40px;width:40px;font-size:15px}.puzzle-board{--cell:clamp(48px,9.2vw,55px);--clue-width:45px;--clue-height:62px}.puzzle-board[style*="--size: 7"],.puzzle-board[style*="--size:7"]{--cell:48px;--clue-width:43px}.board-scroll{padding-top:4px;padding-bottom:12px}.clue{font-size:16px;gap:4px}.row-clue{padding-right:8px}.col-clue{padding-bottom:8px}.board-legend{font-size:9px;gap:19px;margin-top:4px}.adventure-tools{gap:12px 15px}.helper-card{min-height:80px;padding:11px 13px;gap:10px;border-radius:12px}.helper-card img{width:48px;height:48px}.helper-card p{font-size:12px}.helper-name{font-size:9px}.tool-heading strong{font-size:11px}.tool-heading small{font-size:8px}.paint-tools{gap:6px}.paint-tool{min-height:71px;font-size:10px;gap:7px;border-radius:9px}.tool-symbol{height:21px;width:21px}.fill-symbol{border-width:3px}.cross-symbol{font-size:29px}.erase-symbol{height:16px;width:23px}.secondary-tools .soft-button{font-size:10px;padding-right:3px;gap:5px}.secondary-tools .text-button{font-size:10px;padding-left:6px;padding-right:3px}.hint-button{font-size:10px;gap:7px;padding:9px;min-height:49px;line-height:1.5}.hint-button svg{width:18px;height:18px}.check-actions .primary-button{font-size:12px;min-height:53px;gap:5px;padding:12px 10px}.check-actions .primary-button svg{width:18px;height:18px}.egg-progress{gap:7px}.egg-progress img{width:28px;height:36px}.egg-progress span{font-size:8px;line-height:1.8;display:block}.feedback{font-size:10px}.hint-panel{padding:9px 10px}.hint-heading strong{font-size:10px}.hint-panel>p{font-size:10px}.pattern-cell{width:19px;height:19px;font-size:17px}.hint-patterns>div{gap:2px}.hint-panel>.soft-button{font-size:10px;padding:8px}.play-footer{font-size:9px;letter-spacing:0;margin-top:18px}.modal-backdrop{padding:16px}.modal{padding:25px 23px;border-radius:18px;max-height:calc(100dvh - 32px)}.modal h2{font-size:23px}.rules-intro{font-size:12px}.modal-heading{margin-bottom:12px}.reward-illustration{margin-top:16px}.result-modal>p{font-size:12px}.result-stars{font-size:27px}}
@media(max-width:400px){.home-hero{grid-template-columns:1.08fr .92fr}.hero-copy h1{font-size:34px}.hero-art{min-height:190px;margin-top:28px}.hero-description{font-size:9px}.gentle-note{font-size:7px}.journey-title div>span{font-size:8px}.journey-title strong{font-size:10px}.collection-counts{gap:9px}.collection-counts small{font-size:7px}.journey-strip{padding:11px 10px}.map-heading h2{font-size:18px}.chapter-tabs button{min-width:45px}.game-heading h1{font-size:16px}.play-heading{grid-template-columns:80px 1fr 85px}.play-screen{padding-left:10px;padding-right:10px}.board-card{padding-left:8px;padding-right:8px}.puzzle-board{--cell:48px;--clue-width:41px}.adventure-tools{gap:11px}.header-actions .text-button{font-size:10px}.header-actions .soft-button{font-size:10px}.brand{font-size:9px}.brand svg{height:27px;width:27px}}
@media(max-height:600px) and (min-width:801px){.site-header{padding-top:14px;padding-bottom:9px}.play-heading{margin:4px 0 15px}.game-heading h1{font-size:21px}.puzzle-board{--cell:48px;--clue-height:57px}.puzzle-board[style*="--size: 7"],.puzzle-board[style*="--size:7"]{--cell:48px}.helper-card{min-height:77px}.tool-heading{margin-top:13px}.paint-tool{min-height:67px}.secondary-tools{margin:6px 0}.play-footer{margin-top:17px}}
.puzzle-board,.puzzle-board[style*="--size"]{--clue-width:max(48px,calc(var(--clue-cols,1)*21px + 15px));--clue-height:max(60px,calc(var(--clue-rows,1)*22px + 14px))}.puzzle-board .corner{grid-row:1;grid-column:1}.puzzle-cell.filled{font-size:0}.puzzle-cell.block-right{border-right-width:3px}.puzzle-cell.block-bottom{border-bottom-width:3px}.clue.active{background:#eee2b7;color:#6e592e}.clue[data-status=complete]{color:#8b9e77}.clue[data-status=conflict]{background:#f2dec2;color:#946037}.pattern-label{font-size:10px;color:#9a865b;text-align:center;align-self:stretch;margin-bottom:4px}.pattern-cell.filled{font-size:0}.puzzle-board.solved .puzzle-cell{opacity:1}.puzzle-board.solved .puzzle-cell.filled{background:#2e7560;border-color:#245e4f;box-shadow:inset 0 0 0 4px #5c9980}.rule-button{width:48px;height:48px;min-width:48px}.hint-heading>button{min-width:48px;min-height:48px}.helper-card p{font-size:14px}.hint-panel>p{font-size:13px}.hint-button{font-size:13px}.hint-panel>.soft-button{min-height:48px}.resume-button{min-height:48px}
@media(max-width:600px){.header-actions .soft-button,.header-actions .text-button,.chapter-tabs button{min-height:48px}.chapter-tabs button{min-width:48px}.helper-card p{font-size:13px}.hint-button{font-size:11px}.hint-panel>p{font-size:12px}.hint-heading strong{font-size:11px}.hint-panel>.soft-button{font-size:11px}.pattern-label{font-size:10px}}
.result-stars{flex-wrap:wrap;gap:18px;margin:18px 0}.pixel-reward{--pixel:18px;display:grid;grid-template-columns:repeat(var(--size,5),var(--pixel));grid-template-rows:repeat(var(--size,5),var(--pixel));gap:2px;width:max-content;padding:12px;background:#edf0df;border:1px solid #d8dec5;border-radius:12px;box-shadow:0 3px 0 #e2e5d1;flex-shrink:0}.pixel-reward>span{display:block;width:var(--pixel);height:var(--pixel);border:1px solid #d8dfc8;background:#fafbf0;border-radius:3px}.pixel-reward>span.filled{background:#397663;border-color:#2c6454;box-shadow:inset 0 0 0 2px #5c9680}.result-stars .hatch-reward{height:118px;width:118px;object-fit:cover;border-radius:18px;border:3px solid #dfc78e;box-shadow:0 5px 15px #8195701a;flex-shrink:0}.result-modal{flex-shrink:0;overscroll-behavior:contain}.result-modal .primary-button{flex-shrink:0}@media(max-width:420px){.pixel-reward{--pixel:16px;padding:10px;gap:2px}.result-stars .hatch-reward{width:96px;height:96px}.result-stars{gap:12px}}@media(max-height:650px){.result-modal{padding-top:23px;padding-bottom:23px}.reward-illustration{margin:9px 0}.reward-illustration img{width:72px;height:80px}.result-stars{margin:12px 0}.pixel-reward{--pixel:15px;padding:9px}.result-stars .hatch-reward{width:92px;height:92px}}
.audio-strip{max-width:1148px;width:calc(100% - 56px);margin:0 auto 6px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 10px 1px 5px;border:1px solid #dce1cf;border-radius:12px;background:#e9edde80}.audio-buttons{display:flex;align-items:center;gap:4px;flex-shrink:0}.audio-button{min-height:48px;min-width:113px;padding:9px 12px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;background:transparent;color:#668267;font-size:12px;font-weight:600}.audio-button:hover{background:#fffdf080}.audio-button[aria-pressed=false]{color:#8c9683;background:#e2e6d8}.audio-button[aria-pressed=true] .music-mark{color:#b69451}.audio-button svg{width:17px;height:17px;color:#a39164}.music-mark{font-size:20px;line-height:1;font-weight:400;width:20px;text-align:center}.audio-strip>p{font-size:10px;line-height:1.5;color:#929b85;text-align:right;letter-spacing:.2px}.math-ambient-active #homeScreen:not([hidden]) .art-picture{animation:math-dragon-drift 7.5s ease-in-out infinite}.math-ambient-active #homeScreen:not([hidden]) .journey-title>img{animation:math-egg-rest 8s ease-in-out infinite}.math-cell-touch{box-shadow:inset 0 0 0 3px #c7b574!important}.math-line-glow{background:#f1e6bb!important;color:#87713a!important}.math-warm{box-shadow:0 0 0 4px #d6bc7a66!important}.math-reward-warm{outline:2px solid #d8b974;outline-offset:4px}.math-sparkles{position:fixed;inset:0;overflow:hidden;z-index:25;pointer-events:none;contain:strict}.math-sparkle{position:absolute;display:block;color:#d0aa52;line-height:1;pointer-events:none;user-select:none;opacity:0;text-shadow:0 1px 4px #fff4d9;font-family:Georgia,serif}@keyframes math-dragon-drift{0%,100%{transform:rotate(-5deg) translateY(0)}50%{transform:rotate(-4.2deg) translateY(-4px)}}@keyframes math-egg-rest{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}@media(max-width:800px){.audio-strip{width:calc(100% - 48px)}}@media(max-width:600px){.audio-strip{width:calc(100% - 36px);padding:0 6px;margin-top:2px;margin-bottom:5px;gap:2px;flex-wrap:wrap}.audio-buttons{gap:2px}.audio-button{min-width:105px;min-height:48px;font-size:11px;padding:9px 10px;gap:6px}.audio-strip>p{font-size:9px;text-align:left;padding:0 9px 7px;width:100%;line-height:1.35}.music-mark{font-size:19px}.audio-button svg{width:16px;height:16px}}@media(max-width:400px){.audio-strip{width:calc(100% - 36px)}.audio-button{min-width:108px}.audio-strip>p{font-size:8px}}
.home-hero{overflow:hidden}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.math-ambient-active #homeScreen .art-picture,.math-ambient-active #homeScreen .journey-title>img{animation:none!important}}
