@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700;750&family=Manrope:wght@500;600;650;700;750;800&display=swap');

:root{--paper:#f7f5ed;--ink:#283d30;--muted:#858b7e;--orange:#dc7946;--green:#637f51;--line:#e6e6da;--white:#fffef9;font-family:'DM Sans','Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #d88847;outline-offset:4px}button svg,svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.page-shell{max-width:1320px;margin:0 auto;padding:0 44px}.site-header{height:105px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-family:'Manrope','Segoe UI',sans-serif;font-size:21px;font-weight:800;letter-spacing:-.9px}.brand-mark{display:grid;place-items:center;width:35px;height:39px;transform:rotate(-12deg);background:#ee995d;border-radius:13px 13px 11px 11px;color:#fff8e8}.brand-mark svg{width:22px;height:28px;stroke-width:1.8;fill:#fff3dc;stroke:#fff3dc}.brand-mark svg path+path{stroke:#edb07c}.brand-light{font-weight:500}.brand-dot{color:var(--orange)}.header-actions{display:flex;align-items:center;gap:31px}.break-label{font-size:12px;color:#91968a;display:flex;align-items:center;gap:8px}.break-label>span{width:6px;height:6px;border-radius:50%;background:#99ad82}.help-button{display:flex;align-items:center;gap:8px;padding:10px 0 10px 10px;border:0;background:none;font-size:12px;font-weight:600;color:#596453}.help-button svg{width:17px;height:17px}.help-button:hover{color:var(--orange)}
.intro{display:flex;align-items:center;justify-content:space-between;padding:38px 0 32px}.eyebrow{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:2px;font-weight:700;color:#88917c}.eyebrow>span{width:17px;height:2px;background:var(--orange)}h1{font-family:'Manrope','Segoe UI',sans-serif;font-size:46px;line-height:1.17;letter-spacing:-2px;margin:12px 0 11px;font-weight:800;display:flex;align-items:center;gap:13px}.title-spark{display:inline-flex;transform:rotate(12deg);color:#e99857}.title-spark svg{width:33px;height:33px;stroke-width:1.5;fill:#f8dfb5}.intro p{margin:0;font-size:14px;color:#7d8577}.intro-note{display:flex;align-items:center;gap:11px;transform:rotate(-4deg);font-size:12px;line-height:1.75;margin:15px 12px 0 20px;color:#91917e}.intro-note strong{font-weight:500;color:#6e7865}.note-egg{font-size:31px;filter:saturate(.65);transform:rotate(14deg)}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:23px;align-items:start}.game-frame{position:relative;border-radius:20px;overflow:hidden;background:#dcead6;aspect-ratio:12/7;box-shadow:0 4px 20px #33452305;border:1px solid #d7dfcb;isolation:isolate}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.stage-top{position:absolute;left:23px;right:19px;top:19px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.farm-label{display:flex;align-items:center;gap:7px;background:#fffef4cc;backdrop-filter:blur(8px);border:1px solid #ffffff6b;padding:9px 11px;border-radius:8px;font-size:8px;letter-spacing:1.2px;font-weight:700;color:#66735c}.live-dot{width:5px;height:5px;background:#7f9f69;border-radius:50%}.stage-actions{display:flex;gap:7px;pointer-events:auto}.round-button{width:32px;height:32px;border:1px solid #fff9;background:#fffef2b3;backdrop-filter:blur(8px);display:grid;place-items:center;border-radius:50%;color:#58704c;transition:background .15s,transform .15s}.round-button svg{width:15px;height:15px;stroke-width:1.8}.round-button:hover:not(:disabled){background:#fffef9;transform:translateY(-1px)}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:54px 18px 80px;pointer-events:none;transition:opacity .2s}.overlay.hidden{opacity:0;visibility:hidden}.start-card{pointer-events:auto;text-align:center;width:340px;padding:25px 27px 21px;background:#fffdf5f5;border:1px solid #fff;border-radius:18px;box-shadow:0 12px 35px #39532812}.card-icon{width:48px;height:48px;border-radius:50%;background:#f6ead2;display:grid;place-items:center;margin:0 auto 15px;color:#b78c48;transform:rotate(-10deg)}.card-icon svg{width:23px;height:28px;fill:#fff6e1;stroke:#c6a676;stroke-width:1.3}.card-icon.trophy{color:#c7a054;background:#f9ecd2;transform:rotate(0)}.card-icon.trophy svg{fill:none;stroke:currentColor}.card-eyebrow{font-size:8px;letter-spacing:1.8px;color:#9a9c89;font-weight:650}.start-card h2{font-family:'Manrope','Segoe UI',sans-serif;font-size:21px;letter-spacing:-.7px;font-weight:800;margin:9px -12px 10px;line-height:1.3}.start-card p{font-size:11px;color:#88907d;line-height:1.8;margin:0 0 18px}.primary-button{border:none;border-radius:9px;background:var(--orange);color:white;display:flex;align-items:center;justify-content:center;gap:23px;padding:13px 22px;font-size:12px;font-weight:600;box-shadow:0 3px 0 #b95e3330;transition:background .15s,transform .15s}.primary-button:hover{background:#c66b3d;transform:translateY(-1px)}.primary-button:active{transform:translateY(1px)}.primary-button svg{width:17px;height:17px}.start-card .primary-button{width:100%}.start-hint{font-size:9px;color:#a5a896;display:block;margin-top:12px}.start-hint kbd{font:inherit;border-bottom:1px solid #d5d7c8;margin:0 2px;padding-bottom:1px}.level-toast{position:absolute;top:65px;left:50%;transform:translate(-50%,-6px);background:#344d35;color:#fff9e9;font-size:11px;padding:10px 16px;border-radius:50px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s}.level-toast.visible{opacity:1;transform:translate(-50%,0)}.control-strip{display:flex;align-items:center;justify-content:center;gap:18px;min-height:57px;color:#939889;font-size:10px}.control-strip>div{display:flex;align-items:center;gap:8px}.control-strip b{font-weight:500;color:#64725d}.control-strip svg{width:16px;height:16px;color:#899780;stroke-width:1.4}.keycaps{display:flex;gap:4px}.keycaps kbd{font:12px 'Segoe UI',sans-serif;display:grid;place-items:center;min-width:23px;height:23px;border:1px solid #dfe1d3;border-bottom-width:2px;border-radius:5px;background:#fffdf7;color:#718265}.control-separator{width:1px;height:13px;background:#dcdfd1}
.dashboard{display:flex;flex-direction:column;gap:14px}.score-card{background:var(--white);border:1px solid var(--line);border-radius:17px;padding:23px 24px 19px}.section-label{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#8b9680}.score-card>.section-label{display:flex;align-items:center;justify-content:space-between}.score-card>.section-label svg{width:16px;height:21px;color:#babdaa;stroke-width:1.3;transform:rotate(15deg)}.score-number{font-family:'Manrope','Segoe UI',sans-serif;font-size:66px;line-height:1.16;letter-spacing:-4px;color:var(--orange);font-weight:750;margin-top:9px;transition:transform .15s}.score-number.bump{transform:scale(1.06);transform-origin:left center}.score-caption{font-size:11px;color:#9b9e8e;margin:2px 0 20px}.card-divider{height:1px;background:#ebece0;margin-bottom:18px}.lives-heading{display:flex;justify-content:space-between;font-size:11px;font-weight:550;color:#65735c}.lives-heading>span+span{color:#98a087;font-size:10px}.lives{display:flex;gap:9px;margin-top:13px}.life{width:41px;height:43px;border:1px solid #efe3cd;border-radius:10px;background:#faf0dc;display:grid;place-items:center;transition:background .2s,opacity .2s}.life svg{width:17px;height:24px;fill:#fff8e9;stroke:#bd9d69;stroke-width:1.4;transform:rotate(-7deg)}.life:nth-child(2) svg{transform:rotate(8deg)}.life.lost{background:#f2f2ec;border-color:#e8e8e0;opacity:.55}.life.lost svg{fill:none;stroke:#aeb5a4;stroke-dasharray:3 3}.lives-note{font-size:9px;color:#9a9f8e;margin:11px 0 0;min-height:13px}.level-card{padding:20px 23px 18px;border:1px solid #dfe5d4;border-radius:16px;background:#edf1e5}.level-heading{display:flex;justify-content:space-between;align-items:center}.level-card .section-label{font-size:8px;color:#7d8b6d}.level-number{font-size:7px;letter-spacing:.6px;font-weight:600;background:#dde5d1;color:#748462;padding:4px 6px;border-radius:4px}.level-card h3{font-size:14px;letter-spacing:-.2px;margin:13px 0 12px;font-weight:650;color:#536948}.speed-meter{display:flex;gap:5px}.speed-meter i{height:5px;flex:1;background:#d9e2cb;border-radius:3px;transition:background .4s}.speed-meter i.active{background:#849f65}.level-card p{font-size:10px;line-height:1.7;color:#929d84;margin:11px 0 0}.record-card{display:flex;align-items:center;gap:13px;padding:17px 20px;border:1px solid #e9e3d0;background:#f4f0e3;border-radius:14px}.record-icon{color:#b99c61;width:36px;height:36px;border-radius:10px;background:#ece4cd;display:grid;place-items:center}.record-icon svg{width:19px;height:19px;stroke-width:1.5}.record-card>div{display:flex;flex-direction:column;gap:4px}.record-card>div>span{font-size:7px;letter-spacing:1.3px;color:#9c947c;font-weight:600}.record-card strong{font-family:'Manrope',sans-serif;font-size:21px;font-weight:700;line-height:1.1;color:#71674d}.record-card small{font-family:'DM Sans',sans-serif;font-size:10px;font-weight:400;color:#a59c86;margin-left:3px}.page-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:19px 0 30px;margin-top:10px;font-size:9px;color:#a4a797}.page-footer>span{display:flex;align-items:center;gap:7px}.footer-dot{width:4px;height:4px;border-radius:50%;background:#93a381}.page-footer svg{width:10px;height:14px;stroke-width:1.5;transform:rotate(12deg)}
dialog{border:1px solid #e1e3d2;border-radius:22px;width:min(440px,calc(100% - 32px));padding:36px;color:var(--ink);background:#fffdf5;box-shadow:0 30px 100px #203a3133}dialog::backdrop{background:#263c3255;backdrop-filter:blur(4px)}.dialog-close{position:absolute;top:12px;right:16px;border:none;background:none;color:#8b967f;font-size:26px;line-height:1;padding:5px}.dialog-eyebrow{font-size:8px;letter-spacing:1.7px;color:#9ba288}dialog h2{font-family:'Manrope',sans-serif;font-size:24px;letter-spacing:-1px;margin:10px 0 24px}.help-steps{list-style:none;padding:0;margin:0 0 25px;display:flex;flex-direction:column;gap:21px}.help-steps li{display:flex;gap:15px}.help-steps li>span{font-size:11px;font-weight:600;color:#c17f4b;padding-top:2px}.help-steps strong{font-size:12px;font-weight:650}.help-steps p{font-size:11px;line-height:1.8;color:#859178;margin:5px 0 0}.dialog-done{width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){.page-shell{padding:0 32px}.intro{padding-top:45px;padding-bottom:35px}.game-layout{grid-template-columns:minmax(0,1fr) 260px;gap:25px}.score-card{padding-bottom:26px}.score-number{font-size:72px}.lives-note{margin-top:17px}.level-card{padding-top:23px;padding-bottom:23px}.record-card{padding-top:20px;padding-bottom:20px}.page-footer{margin-top:16px}}
@media(max-width:1050px){.page-shell{padding:0 28px}.site-header{height:85px}.intro{padding:30px 0 25px}h1{font-size:39px}.game-layout{grid-template-columns:minmax(0,1fr) 210px;gap:16px}.score-card{padding:18px 19px 15px}.score-number{font-size:52px}.score-caption{margin-bottom:15px}.card-divider{margin-bottom:14px}.lives{margin-top:10px}.life{width:36px;height:37px}.level-card{padding:16px 18px}.record-card{padding:14px 16px}.control-strip{font-size:9px;gap:10px}.start-card{padding:19px 23px 16px;width:300px}.card-icon{width:40px;height:40px;margin-bottom:11px}.start-card h2{font-size:19px}.start-card p{margin-bottom:14px}.overlay{padding-top:54px;padding-bottom:61px}.stage-top{left:15px;right:14px;top:14px}.dashboard{gap:11px}}
@media(max-width:1000px){.game-layout{grid-template-columns:minmax(0,1fr)}.dashboard{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:12px}.score-card{position:relative;padding:16px;display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.score-card>.section-label{grid-column:1/-1}.score-card>.section-label svg{display:none}.score-number{font-size:42px;grid-column:1;grid-row:2;margin-top:8px}.score-caption{grid-column:1;grid-row:3;font-size:8px;margin:3px 0 0}.card-divider{display:none}.lives-heading{grid-column:2;grid-row:2;font-size:9px;padding-top:11px;gap:6px}.lives-heading>span+span{font-size:8px}.lives{grid-column:2;grid-row:2;margin-top:32px;gap:5px}.life{width:26px;height:30px;border-radius:7px}.life svg{width:12px;height:18px}.lives-note{display:none}.level-card{padding:16px 16px 12px}.level-card h3{font-size:12px;margin:10px 0}.level-card p{font-size:8px;line-height:1.5;margin:8px 0 0}.level-number{font-size:6px}.record-card{flex-direction:column;align-items:flex-start;gap:9px;padding:15px;border-radius:16px}.record-icon{width:25px;height:25px;border-radius:7px}.record-icon svg{width:14px;height:14px}.record-card>div{gap:5px}.record-card strong{font-size:20px}.record-card>div>span{font-size:6px;letter-spacing:1px}.record-card small{font-size:8px}.control-strip{min-height:50px;font-size:10px}.intro-note{font-size:10px}.page-footer{margin-top:24px}.start-card{width:340px;padding:24px 27px 21px}.start-card h2{font-size:22px}.start-card p{font-size:12px}.card-icon{width:45px;height:45px}.overlay{padding-bottom:78px}}
@media(max-width:550px){.page-shell{padding:0 17px}.site-header{height:73px}.brand{font-size:18px;gap:8px}.brand-mark{width:29px;height:33px;border-radius:11px}.brand-mark svg{width:18px;height:24px}.break-label{display:none}.help-button{font-size:10px;gap:5px}.help-button svg{width:15px;height:15px}.intro{padding:25px 0 22px}.eyebrow{font-size:7px;letter-spacing:1.5px}h1{font-size:32px;letter-spacing:-1.5px;margin:10px 0}.title-spark svg{width:24px;height:24px}h1{gap:8px}.intro p{font-size:11px}.intro-note{display:none}.game-frame{aspect-ratio:4/5;border-radius:16px}.stage-top{left:12px;right:12px;top:12px}.farm-label{font-size:7px;letter-spacing:.7px;padding:8px 9px}.round-button{width:29px;height:29px}.overlay{padding:52px 18px 96px}.start-card{width:285px;max-width:100%;padding:23px 20px 19px}.start-card h2{font-size:20px}.start-card p{font-size:11px}.card-eyebrow{font-size:7px}.control-strip{min-height:49px}.control-strip>div:first-child,.control-separator{display:none}.control-strip>div:nth-child(3){font-size:10px}.dashboard{grid-template-columns:1.2fr 1fr;gap:10px}.score-card{padding:15px;column-gap:10px}.score-number{font-size:42px}.level-card{padding:15px}.level-card p{font-size:9px}.level-card h3{font-size:12px}.record-card{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:center;padding:12px;gap:10px}.record-card>div{flex-direction:row;align-items:center;gap:14px}.record-card>div>span{font-size:7px}.record-card strong{font-size:17px}.record-icon{width:25px;height:25px}.page-footer{padding-top:15px;margin-top:21px;font-size:8px;justify-content:center}.page-footer>span+span{display:none}.level-toast{top:55px;font-size:10px}.lives-heading{font-size:8px}.lives-heading>span+span{font-size:7px}.life{width:23px;height:29px}.lives{gap:4px}dialog{padding:30px 25px}dialog h2{font-size:22px}}
.goal-caption{display:block;margin-top:5px;font-size:9px;color:#a9a88f}.basket-progression{border-top:1px solid #dbe2cf;margin-top:15px;padding-top:13px}.basket-goal-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.basket-goal-row>span{font-size:7px;letter-spacing:.8px;color:#88967a;font-weight:650}.basket-goal-row strong{font-size:9px;font-weight:600;color:#667b54;white-space:nowrap}.basket-progress{height:4px;background:#d8e1ca;border-radius:4px;overflow:hidden;margin:9px 0}.basket-progress>i{display:block;height:100%;width:0;background:#c98e4e;border-radius:4px;transition:width .2s,background-color .2s}.basket-current{display:flex;align-items:center;gap:6px;color:#8c967f;font-size:9px}.basket-current>span:first-child{width:7px;height:7px;border-radius:50%;background:#c98e4e;box-shadow:0 0 0 2px #fff8}.level-toast{max-width:calc(100% - 30px);text-align:center;white-space:normal;line-height:1.5}
@media(max-width:1000px){.goal-caption{font-size:7px;margin-top:3px}.basket-progression{margin-top:12px;padding-top:10px}.basket-goal-row{flex-wrap:wrap;gap:4px}.basket-goal-row>span{font-size:6px;letter-spacing:.5px}.basket-goal-row strong{font-size:8px}.basket-current{font-size:8px}.basket-progress{margin:7px 0}.score-number.four-digits{font-size:32px;letter-spacing:-2px}.score-card{align-content:start}}
[hidden]{display:none!important}
.play-hud{display:flex;gap:8px;align-items:center}.hud-score,.hud-lives{display:flex;align-items:center;gap:9px;min-height:37px;padding:7px 12px;background:#fffdf0eb;border:1px solid #fff8;border-radius:10px;backdrop-filter:blur(8px)}.hud-score>span,.hud-lives>span{font-size:8px;letter-spacing:.8px;font-weight:750;color:#879278}.hud-score>strong{font-family:'Manrope',sans-serif;font-size:20px;font-weight:800;line-height:1;color:#cc7644;min-width:13px}.hud-lives>strong{font:750 17px 'Manrope',sans-serif;color:#86644a}.hud-lives svg{width:16px;height:16px;fill:#dc9174;stroke:#c18066;stroke-width:1.4}.hud-lives.low svg{fill:#e8bba4;stroke:#bd9176}.life svg{width:20px;height:20px;fill:#e6b590;stroke:#bf916f;transform:none!important}.life.lost svg{fill:#d7d9ce;stroke:#b5bbab;stroke-dasharray:none}.goal-caption b{font-weight:650}
@media(max-width:1000px){.life svg{width:14px;height:14px}}
@media(max-width:550px){.stage-top{top:11px}.hud-score,.hud-lives{min-height:32px;padding:5px 9px;gap:6px;border-radius:8px}.hud-score>strong{font-size:18px}.hud-score>span,.hud-lives>span{font-size:7px}.hud-lives>strong{font-size:15px}.hud-lives svg{width:14px;height:14px}.play-hud{gap:6px}.life svg{width:13px;height:13px}.start-card{padding:19px 20px 16px}.card-icon{margin-bottom:10px}.start-card h2{margin-top:6px}.start-card p{margin-bottom:14px}.overlay{padding-bottom:67px}.intro p{max-width:300px}.level-toast{top:auto;bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

@media(min-width:551px) and (max-width:1000px){.game-frame{aspect-ratio:4/3}}

.math-controls{position:absolute;inset:0;z-index:2;pointer-events:none}.math-answer{position:absolute;pointer-events:auto;touch-action:manipulation;border:0;border-radius:12px;padding:0;background:transparent;color:transparent;font-size:0;box-shadow:none}.math-answer:disabled{pointer-events:none;opacity:1}.math-answer:focus-visible{outline:3px solid #dc7946;outline-offset:3px}.stage-top{z-index:3}.overlay{z-index:4}.level-toast{z-index:3;top:auto;bottom:14px}

.player-button{display:flex;align-items:center;gap:8px;max-width:230px;border:1px solid #e2e5d6;border-radius:12px;background:#fffdf5;color:#617353;padding:8px 12px;font-size:11px;font-weight:600;min-height:42px}.player-button>span:first-child{font-size:22px}.player-button>span+span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.round-status{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;text-align:center;font-size:11px;color:#798772;min-height:26px;margin:0 0 12px}.round-status button,.leaderboard-bottom button{color:#a5673d;background:transparent;border:0;text-decoration:underline;padding:6px;font-size:11px}.round-status[data-state="error"]{color:#a96b51}.round-status[data-state="saved"]{color:#597d49}.challenge-container{display:flex;justify-content:center;margin:12px 0;min-height:66px}.leaderboard-card{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;margin:25px 0 26px;padding:28px 30px;border:1px solid #e3e5d5;border-radius:20px;background:#fffdf5}.leaderboard-intro{padding:10px 0}.leaderboard-intro h2{font:800 25px 'Manrope','Segoe UI',sans-serif;letter-spacing:-1px;margin:12px 0;color:#4d6643}.leaderboard-intro h2 span{font-size:21px}.leaderboard-intro p{font-size:12px;color:#87937a;line-height:1.8;margin:0 0 24px}.leaderboard-note{display:block;font-size:10px;color:#9b9f8d;line-height:1.7;max-width:220px}.leaderboard-tabs{display:flex;gap:5px;margin-bottom:13px;padding:4px;background:#f1f2e7;border-radius:11px;width:fit-content;max-width:100%}.leaderboard-tabs button{border:0;background:none;padding:10px 16px;border-radius:8px;font-size:11px;color:#8b957f;min-height:40px;white-space:nowrap}.leaderboard-tabs button[aria-selected="true"]{background:#fffdf5;box-shadow:0 2px 6px #4b583b0a;color:#58754a;font-weight:700}.leaderboard-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}.leaderboard-list li{display:flex;align-items:center;gap:9px;border-bottom:1px solid #efefe3;padding:10px 3px;min-width:0}.leaderboard-list li.is-you{background:#edf3e6;border-radius:9px;border-color:transparent;padding:10px 8px}.rank-number{width:24px;flex-shrink:0;font-size:12px;font-weight:700;color:#b2aa90;text-align:center}.rank-avatar{font-size:24px;line-height:1;flex-shrink:0}.rank-name{font-size:11px;color:#607055;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-name small{display:inline-block;margin-left:5px;font-size:9px;color:#c18150}.rank-score{font:750 14px 'Manrope','Segoe UI',sans-serif;color:#aa7648;white-space:nowrap}.leaderboard-message{color:#8d9681;font-size:12px;line-height:1.8;margin:0;min-height:100px;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px}.own-rank{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#f1f4e9;border:1px solid #e1e8d7;padding:11px 14px;border-radius:10px;font-size:11px;color:#6e805f;margin-top:13px}.own-rank strong{color:#587446}.leaderboard-bottom{display:flex;align-items:center;justify-content:space-between;min-height:24px;margin-top:11px;gap:10px;font-size:9px;color:#a0a590}.profile-intro{font-size:12px;color:#829076;line-height:1.8;margin-top:-10px;margin-bottom:21px}.profile-label,.avatar-fieldset legend{font-size:11px;font-weight:650;color:#64765a;display:block;margin-bottom:9px}#nicknameSelect{font:600 14px 'DM Sans','Segoe UI',sans-serif;width:100%;min-height:46px;border:1px solid #dbe2cf;border-radius:10px;padding:10px 12px;background:#f6f7ed;color:#4f6b41}#nicknameSelect:focus-visible{outline:3px solid #d88847;outline-offset:2px}.avatar-fieldset{margin:22px 0;padding:0;border:0}.avatar-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.avatar-choice{position:relative;cursor:pointer}.avatar-choice input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0}.avatar-choice span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #e2e5d7;border-radius:12px;background:#f7f7ee;min-height:67px;font-size:27px;transition:background .15s,border .15s}.avatar-choice small{font-size:9px;color:#869179}.avatar-choice input:checked+span{background:#e9f1e1;border:2px solid #9db986}.avatar-choice input:focus-visible+span{outline:3px solid #d88847;outline-offset:2px}.profile-error{color:#b47251;font-size:11px;line-height:1.7}.quiet-button{display:block;border:0;background:transparent;color:#8b977d;font-size:11px;text-decoration:underline;padding:13px 8px;margin:6px auto 0;min-height:44px}.profile-privacy{font-size:9px;line-height:1.7;color:#a4aa95;text-align:center;margin:5px 0 0}.header-actions{gap:20px}
@media(max-width:1000px){.leaderboard-card{grid-template-columns:200px minmax(0,1fr);gap:22px;padding:23px}.leaderboard-list{grid-template-columns:1fr}.leaderboard-intro h2{font-size:23px}.leaderboard-card{margin-top:18px}}
@media(max-width:550px){.header-actions{gap:8px}.player-button{max-width:112px;font-size:9px;gap:5px;padding:6px 8px;border-radius:9px;min-height:38px}.player-button>span:first-child{font-size:19px}.brand{font-size:17px}.help-button{font-size:0;padding:10px}.help-button svg{width:19px;height:19px}.leaderboard-card{display:block;margin-top:16px;padding:20px 17px;border-radius:17px}.leaderboard-intro{padding:0 0 16px}.leaderboard-intro h2{margin:9px 0;font-size:23px}.leaderboard-intro p{font-size:11px;margin:0}.leaderboard-intro p br{display:none}.leaderboard-note{display:none}.leaderboard-tabs{width:100%;gap:2px}.leaderboard-tabs button{flex:1;padding:10px 8px;font-size:10px}.leaderboard-list li{padding:10px 2px}.rank-name{font-size:12px}.rank-score{font-size:14px}.round-status{font-size:10px}.avatar-choices{gap:7px}.avatar-choice span{min-height:62px;font-size:25px}.avatar-choice small{font-size:8px}.own-rank{padding:10px;font-size:10px}.leaderboard-bottom{font-size:8px}.profile-privacy{font-size:9px}#profileDialog{padding:32px 23px 24px}}

/* Locale changes preserve the canvas coordinates while surrounding text follows its language. */
:root{--font-body:'DM Sans','Segoe UI','Noto Sans','Noto Sans Arabic','Noto Sans CJK SC','Microsoft YaHei','Meiryo','Malgun Gothic','Leelawadee UI','Noto Sans Meetei Mayek','Noto Sans Ol Chiki','Noto Sans NKo','Noto Sans Adlam','Noto Sans Chakma','Noto Sans Tifinagh',Arial,sans-serif;--font-heading:'Manrope',var(--font-body);font-family:var(--font-body)}
.brand,h1,.start-card h2,dialog h2,.leaderboard-intro h2,.score-number,.record-card strong,.rank-score{font-family:var(--font-heading)}
#nicknameSelect,.record-card small{font-family:var(--font-body)}
.eyebrow>span:first-child{flex:0 0 17px}.eyebrow>span[data-i18n]{width:auto;height:auto;background:none;min-width:0}
.leaderboard-intro h2>span[data-i18n]{font:inherit}.title-spark,.primary-button svg,.help-button svg{flex-shrink:0}
.language-picker{display:flex;align-items:center;gap:5px;min-height:42px;border:1px solid #e2e5d6;border-radius:10px;background:#fffdf5;padding:0 8px;max-width:150px;flex-shrink:0}
.language-globe{font-size:17px;line-height:1}#languageSelect{font:600 11px var(--font-body);min-height:40px;max-width:112px;width:100%;border:0;background:transparent;color:#617353;cursor:pointer;padding:0 2px}#languageSelect:focus-visible{outline:2px solid #d88847;outline-offset:2px;border-radius:4px}
.header-actions{min-width:0;gap:12px}.intro-copy{min-width:0}.intro-copy h1{flex-wrap:wrap}.intro-copy h1>span[data-i18n]{overflow-wrap:anywhere}.intro-note{flex-shrink:0}.card-eyebrow,.dialog-eyebrow,.level-number,.section-label{overflow-wrap:anywhere}.start-card{max-width:100%}.start-card h2,.start-card p,.help-steps p,.profile-intro,.profile-privacy,.level-card h3{overflow-wrap:anywhere}
.leaderboard-tabs{flex-wrap:wrap}.leaderboard-tabs button{white-space:normal;overflow-wrap:anywhere}.leaderboard-intro h2{overflow-wrap:anywhere}.leaderboard-bottom>span,.own-rank>span,.help-steps li>div{min-width:0;overflow-wrap:anywhere}.basket-goal-row strong{white-space:normal;text-align:end}.help-steps li>span{flex-shrink:0}.primary-button{gap:12px}.score-card,.level-card,.record-card{min-width:0}
#gameCanvas,.math-controls,.control-strip,.keycaps{direction:ltr}.math-answer{direction:ltr}.game-frame{direction:ltr}.overlay,.level-toast{direction:inherit}
html[dir=rtl] .site-header,html[dir=rtl] .intro,html[dir=rtl] .dashboard,html[dir=rtl] .leaderboard-card,html[dir=rtl] dialog,html[dir=rtl] .page-footer{direction:rtl}
html[dir=rtl] .brand{direction:ltr}html[dir=rtl] .overlay,html[dir=rtl] .level-toast{direction:rtl}html[dir=rtl] .start-card,html[dir=rtl] .round-status{direction:rtl}html[dir=rtl] .dialog-close{right:auto;left:16px}html[dir=rtl] .record-card small{margin-left:0;margin-right:3px}html[dir=rtl] .rank-name small{margin-left:0;margin-right:5px}html[dir=rtl] .score-number.bump{transform-origin:right center}
html[dir=rtl] h1,html[dir=rtl] .start-card h2,html[dir=rtl] dialog h2,html[dir=rtl] .leaderboard-intro h2{letter-spacing:normal}html[dir=rtl] .eyebrow,html[dir=rtl] .card-eyebrow,html[dir=rtl] .dialog-eyebrow,html[dir=rtl] .section-label,html[dir=rtl] .level-number{letter-spacing:normal}
@media(max-width:760px){.header-actions{gap:7px}.player-button{max-width:150px}.language-picker{max-width:136px}.intro-note{max-width:160px}}
@media(max-width:550px){.header-actions{gap:5px}.language-picker{padding:0 5px;min-height:38px;max-width:111px}.language-globe{font-size:14px}#languageSelect{font-size:10px;min-height:36px;max-width:81px}.player-button{max-width:91px}.help-button{padding:8px 4px}.help-button>span{display:none}.intro-copy h1{font-size:clamp(27px,8vw,32px)}.leaderboard-tabs{align-items:stretch}.leaderboard-tabs button{min-width:0}.page-footer>span{flex-wrap:wrap;justify-content:center}.level-heading{gap:6px;align-items:flex-start}}
@media(max-width:380px){.site-header{height:auto;min-height:73px;gap:8px;padding:14px 0;flex-wrap:wrap}.header-actions{margin-inline-start:auto}.brand{font-size:16px}.player-button{max-width:87px}.language-picker{max-width:107px}.help-button svg{width:17px;height:17px}}
@media(max-width:550px){.overlay{padding:52px 10px 30px}.start-card{padding:16px 15px 14px}.start-card .card-icon{width:33px;height:33px;margin-bottom:8px}.start-card p{line-height:1.55;margin-bottom:12px}.start-card h2{margin:7px 0 8px}.start-hint{margin-top:8px}}

.site-header{height:128px}.brand-logo{display:block;width:160px;height:107px;object-fit:contain;border-radius:13px}.fun-hud{position:absolute;left:14px;bottom:14px;display:flex;gap:6px;pointer-events:none;z-index:2}.fun-hud>span{padding:7px 10px;border:1px solid #fff8;border-radius:10px;background:#fffdf0ed;color:#68834b;font-size:12px;font-weight:800}.fun-hud>span#fireHud{background:#ffe2b1;color:#b86422}.boss-tap-target{position:absolute;z-index:4;min-width:44px;min-height:44px;border:0;border-radius:50%;background:transparent;touch-action:manipulation;cursor:pointer}.boss-tap-target:focus-visible{outline:3px solid #b781d2;outline-offset:2px}.game-frame.fire-active{box-shadow:0 0 0 3px #f7b169,0 4px 24px #f49b4b25}.collection-card,.daily-card,.badges-card{background:#fffdf6;border:1px solid var(--line);border-radius:20px;padding:28px;margin-top:24px}.collection-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.collection-heading h2,.adventure-panels h2{font:800 25px var(--font-heading);letter-spacing:-.5px;margin:10px 0}.collection-heading p,.collection-note,.daily-card>p{font-size:11px;color:#8a957b;line-height:1.7}.album-count{display:flex;flex-direction:column;gap:7px;text-align:center;padding:15px 20px;border-radius:15px;background:#f1ecd7;flex-shrink:0}.album-count strong{font-size:23px;color:#a58036}.album-count span{font-size:10px;color:#938b70}.collection-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:9px;margin-top:22px}.collectible{position:relative;min-width:0;text-align:center;padding:9px 3px;border-radius:14px;background:#f5f3e8;border:1px solid #ece7d5}.collectible.unlocked{background:#fff6df;border-color:#ead598}.collectible canvas{width:100%;height:auto;aspect-ratio:1;touch-action:auto}.collectible .mystery-icon{display:grid;place-items:center;aspect-ratio:1;color:#c0c6ae;font-size:36px;font-weight:700}.collectible strong{display:block;font-size:10px;font-weight:650;overflow-wrap:anywhere}.collectible small{display:block;font-size:9px;color:#8e947e;margin-top:4px}.collectible .duplicate-badge{position:absolute;right:5px;top:4px;background:#e9eccf;border-radius:20px;padding:2px 5px;font-size:9px;color:#78824f}.adventure-panels{display:grid;grid-template-columns:1fr 1fr;gap:20px}.adventure-panels>div{margin-top:20px}.quest-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #eeeee1;font-size:12px}.quest-row>span{font-size:21px}.quest-info{flex:1;min-width:0}.quest-info strong{font-size:12px;display:block;overflow-wrap:anywhere}.quest-meter{height:5px;margin-top:8px;background:#e9ecd9;border-radius:6px;overflow:hidden}.quest-meter i{display:block;height:100%;background:#9fbe72;border-radius:6px}.quest-row>small{white-space:nowrap;color:#8b9a70;font-size:10px}.badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:18px}.badge-tile{padding:12px 7px;text-align:center;border:1px dashed #e0e3d1;border-radius:13px;background:#f7f7ed;color:#9da48b}.badge-tile.unlocked{background:#fff1d4;color:#9a752d;border:1px solid #edd398}.badge-tile span{font-size:26px;display:block;filter:grayscale(1);opacity:.5}.badge-tile.unlocked span{filter:none;opacity:1}.badge-tile strong{display:block;font-size:10px;margin-top:7px;overflow-wrap:anywhere}.badge-tile small{display:block;font-size:9px;margin-top:5px;line-height:1.4}.collection-note{margin-bottom:0}html[dir=rtl] .collection-card,html[dir=rtl] .adventure-panels{direction:rtl}
@media(max-width:1000px){.collection-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:550px){.level-toast{bottom:42px}}
@media(max-width:550px){.site-header{min-height:85px;height:auto;padding:10px 0;flex-wrap:wrap;gap:9px}.brand-logo{width:94px;height:63px;border-radius:9px}.collection-card,.daily-card,.badges-card{padding:18px}.collection-heading{gap:10px;align-items:flex-start}.collection-heading h2,.adventure-panels h2{font-size:21px}.collection-heading p{font-size:10px}.album-count{padding:11px;min-width:70px}.album-count strong{font-size:18px}.album-count span{font-size:8px;max-width:65px}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.collectible{padding:6px 2px}.collectible strong{font-size:9px}.adventure-panels{grid-template-columns:1fr;gap:0}.badge-grid{gap:7px}.fun-hud{left:10px;bottom:10px}.fun-hud>span{padding:5px 7px;font-size:10px}.collection-heading .dialog-eyebrow{font-size:7px;letter-spacing:.8px}}
