:root{color-scheme:light;--ink:#23334d;--muted:#64728a;--purple:#7152d9;--purple-dark:#5736bf;--line:#e0e7f1;--bg:#f1f6fd;--green:#18764f;--red:#bd343e;--shadow:0 6px 0 rgba(35,51,77,.035);font-family:ui-rounded,'Avenir Next','Trebuchet MS',system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #5740bb;outline-offset:4px}button:disabled{cursor:default}button{touch-action:manipulation}a{color:inherit}button,select,input{-webkit-tap-highlight-color:transparent}button{transition:transform .15s,background .15s,box-shadow .15s}button:not(:disabled):active{transform:translateY(2px)}fieldset{border:0;padding:0;margin:0}legend,label{display:block;font-weight:750;font-size:.92rem;margin-bottom:12px}select{width:100%;padding:12px 14px;background:#fff;border:1.5px solid #d6deeb;border-radius:12px;color:var(--ink);font-weight:650;min-height:48px}select:hover{border-color:#aa9ce3}.skip-link{position:fixed;top:-100px;left:16px;z-index:50;background:#fff;padding:12px}.skip-link:focus{top:12px}.site-header{max-width:1256px;margin:auto;padding:30px 32px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:1.6rem;font-weight:850;letter-spacing:-.8px}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:var(--purple);color:#fff;font-size:2.6rem;line-height:1;box-shadow:0 4px 0 #d8d0f3;transform:rotate(-7deg)}.brand-accent{color:var(--purple)}.brand small{display:block;font-size:.63rem;letter-spacing:1.65px;margin-top:5px;color:var(--muted);font-weight:750}.header-actions{display:flex;gap:14px;align-items:center}.star-counter{display:flex;align-items:center;gap:8px;border:1.5px solid #eedb9c;background:#fff8e3;padding:10px 17px;border-radius:30px;font-size:.9rem}.star-counter>span:first-child{color:#a77206;font-size:1.3rem}.star-counter strong{font-size:1.1rem}.icon-button{display:grid;place-items:center;background:#fff;border:1.5px solid var(--line);border-radius:50%;height:40px;width:40px;font-weight:750;font-size:1.2rem;flex-shrink:0}.icon-button:hover{background:#e9e2ff}.layout{display:grid;grid-template-columns:262px minmax(0,1fr);gap:34px;max-width:1256px;margin:10px auto 36px;padding:0 32px;align-items:start}.settings{border:1.5px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.settings>summary{font-size:.97rem;font-weight:800;list-style:none;cursor:pointer;background:#eaf2ff;padding:22px 20px;display:flex;justify-content:space-between;gap:12px}.settings>summary::-webkit-details-marker{display:none}.settings>summary span{display:none}.settings-inner{padding:23px 20px}.grade-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.grade-options button{border:1.5px solid var(--line);border-radius:10px;background:#fff;min-height:54px;font-size:1.1rem;font-weight:800;padding:6px 0}.grade-options span{display:block;font-size:.68rem;font-weight:650;margin-top:2px}.grade-options button[aria-pressed=true]{background:var(--purple);border-color:var(--purple);color:#fff;box-shadow:0 3px 0 #d9d0f7}.range-field{margin:24px 0}.topic-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:24px}.topic{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:88px;border:2px solid transparent;border-radius:13px;padding:9px 2px;font-weight:750;font-size:.82rem}.topic>span{font-size:1.7rem;font-weight:750;line-height:1.2}.topic.green{color:#166b4c;background:#e3f7ed}.topic.orange{color:#96511c;background:#fff0dc}.topic.purple{color:#6341bc;background:#eee7ff}.topic.blue{color:#21629f;background:#e5f3ff}.topic[aria-pressed=true]{border-color:currentColor;box-shadow:0 3px 0 rgba(35,51,77,.07)}.topic:hover{filter:brightness(.97)}.topic.mixed{grid-column:1/-1;flex-direction:row;gap:10px;background:#f2f4fa;color:#536482;min-height:44px}.side-note{display:flex;align-items:center;gap:10px;padding:18px 2px 0;color:var(--muted)}.side-note p{font-size:.84rem;line-height:1.6;margin:0}.side-note strong{font-weight:650}.note-symbol{color:#ce951f;font-size:2rem}.game-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:7px 0 0}.eyebrow{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:700;font-size:.85rem}.eyebrow>span:first-child{background:#e6defc;color:#6445b3;border-radius:20px;padding:5px 12px}.eyebrow-dot{color:#9aa6b9}h1{font-size:clamp(1.75rem,3.2vw,2.45rem);letter-spacing:-1.2px;line-height:1.18;margin:15px 0 9px;font-weight:850}.game-heading p{color:var(--muted);font-size:.95rem;line-height:1.5;margin:0}.heading-symbol{display:grid;place-items:center;width:77px;height:77px;flex-shrink:0;font-size:3.8rem;font-weight:800;background:#deefeb;color:#25745b;border:2px solid #cae5dc;border-radius:23px;transform:rotate(8deg)}.journey{display:flex;align-items:center;gap:14px;margin:24px 0 20px;background:#fff;border:1px solid var(--line);padding:13px 17px;border-radius:13px;font-size:.82rem;color:#576780}.journey>span:first-child{flex:1}.journey-dots{display:flex;gap:7px}.journey-dots span{width:12px;height:12px;border:1.5px solid #d9e1ec;border-radius:50%;background:#eef2f9}.journey-dots .filled{background:#a18adf;border-color:#a18adf}.journey-dots .correct{background:#2c976a;border-color:#2c976a}.journey-count{font-weight:800;white-space:nowrap}.worksheet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;outline:none}.exercise{background:#fff;border:2px solid #e1e7f0;border-radius:19px;box-shadow:var(--shadow);padding:16px 19px 15px;min-height:157px;position:relative;transition:border-color .2s,background .2s}.exercise-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.exercise-number{border-radius:8px;width:28px;height:28px;display:grid;place-items:center;background:#eee8fc;color:#6a49be;font-size:.85rem;font-weight:800}.exercise:nth-child(3n+2) .exercise-number{background:#e2f3fd;color:#39719b}.exercise:nth-child(3n) .exercise-number{background:#fff0d3;color:#8f661c}.hint-button{font-size:.78rem;color:#66728a;border:0;background:transparent;padding:5px 0;text-decoration:underline;text-underline-offset:3px}.math-row{display:flex;align-items:center;justify-content:center;gap:10px;min-height:51px;flex-wrap:wrap}.expression{font-size:clamp(1.4rem,2.2vw,2rem);font-weight:750;letter-spacing:-.5px;font-variant-numeric:tabular-nums;white-space:nowrap}.exercise.long .expression{font-size:1.2rem;white-space:normal;line-height:1.6}.answer{min-width:0;width:90px;height:53px;border:2px solid #c9bdef;border-radius:12px;background:#f8f5ff;text-align:center;font-size:1.65rem;font-weight:750;color:#4f349d;font-variant-numeric:tabular-nums;transition:border-color .2s}.answer::placeholder{color:#c3b6df}.answer:focus{border-color:var(--purple);outline:3px solid #eee7ff;outline-offset:1px}.exercise.long .answer{width:116px;font-size:1.35rem}.suffix{font-size:.95rem;font-weight:700}.question-prompt{font-size:.9rem;line-height:1.6;margin:0 0 12px;color:#4d5e77}.exercise.word{min-height:195px}.exercise.word .question-prompt{font-size:1rem}.answer-status{font-size:.78rem;line-height:1.45;min-height:19px;margin:10px 0 0;text-align:center;font-weight:700;color:var(--muted)}.answer-status:empty{display:none}.exercise.correct{border-color:#81c9a3;background:#f1fbf4}.exercise.correct .answer{color:#14683e;background:#e4f8ea;border-color:#7dc19a}.exercise.correct .answer-status{color:#167344}.exercise.wrong{border-color:#e5a3a7;background:#fff6f6}.exercise.wrong .answer{color:#a52631;border-color:#d47078;background:#fff}.exercise.wrong .answer-status{color:#b12d38}.exercise.empty{border-color:#d5bc74}.exercise.empty .answer-status{color:#85610f}.hint-text{font-size:.85rem;line-height:1.6;margin:13px 0 0;padding:10px 12px;background:#f0ecfc;border-radius:10px;color:#55467b}.compare-choices{display:flex;justify-content:center;gap:9px;flex-basis:100%}.compare-choices button{height:42px;min-width:58px;background:#f5f2ff;border:2px solid #d8cff0;border-radius:10px;font-size:1.3rem;font-weight:800}.compare-choices button[aria-pressed=true]{background:var(--purple);border-color:var(--purple);color:#fff}.correct .compare-choices button[aria-pressed=true]{background:#218253;border-color:#218253}.wrong .compare-choices button[aria-pressed=true]{background:#b83140;border-color:#b83140}.feedback{font-size:.9rem;text-align:center;color:var(--muted);line-height:1.6;margin:19px 0 12px;min-height:26px}.feedback.success{color:#186d48;font-weight:750}.feedback.error{color:#9f2c38}.worksheet-actions{display:flex;justify-content:center;gap:13px}.primary-button{display:flex;justify-content:center;align-items:center;gap:20px;padding:15px 23px;min-height:52px;border:0;border-radius:13px;background:var(--purple);color:#fff;font-weight:750;font-size:.97rem;box-shadow:0 4px 0 #5034a9}.primary-button:hover{background:var(--purple-dark)}.primary-button:disabled{background:#c1b2e8;box-shadow:0 4px 0 #a695d3}.primary-button>span{font-size:1.2rem}.secondary-button{border:1.5px solid #d6dfec;background:#fff;border-radius:13px;padding:14px 19px;font-size:.92rem;font-weight:700;color:#596a85;display:flex;align-items:center;gap:16px}.secondary-button:hover{background:#e8edf7}.secondary-button span{font-size:1.4rem}.bottom-note{display:flex;justify-content:center;align-items:center;gap:8px;font-size:.83rem;color:#727d90;margin-top:24px}.bottom-note span{color:#a87b10;font-size:1.4rem}footer{display:flex;justify-content:space-between;gap:20px;max-width:1256px;margin:0 auto;padding:6px 32px 25px;color:#778398;font-size:.75rem;line-height:1.6}.footer-dot{padding:0 7px;color:#a5aec0}dialog{border:1px solid #ded9ed;border-radius:26px;padding:36px;max-width:550px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 25px 100px #27334d40;max-height:90dvh;overflow:auto}dialog::backdrop{background:#202b4966;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:15px;top:15px;font-size:1.5rem}.dialog-symbol{background:#eee7ff;color:var(--purple);width:54px;height:54px;display:grid;place-items:center;border-radius:18px;font-size:2rem;font-weight:800}dialog h2{font-size:1.9rem;letter-spacing:-.7px;line-height:1.2;margin:20px 0 14px}dialog ol{padding-left:23px;font-size:1rem;line-height:1.7}dialog li{padding-bottom:8px}dialog p{font-size:.9rem;line-height:1.65;color:var(--muted)}.dialog-done{width:100%;margin-top:22px}.celebration-dialog{text-align:center;overflow:visible;padding:40px 32px 26px;max-width:460px}.reward-star{font-size:5.5rem;line-height:1.1;color:#efb63a;text-shadow:0 5px 0 #ffe6a2;margin:4px 0 22px}.reward-kicker{font-weight:800;color:#6b4ec4;font-size:.8rem;letter-spacing:1.5px}.celebration-dialog h2{margin:13px 0;font-size:2.3rem}.celebration-dialog p{max-width:320px;margin:0 auto}.reward-badge{display:inline-block;background:#fff5d5;color:#89600d;border:1px solid #efdc9b;padding:10px 19px;border-radius:30px;margin:23px 0 28px;font-weight:750;font-size:.9rem}.celebration-dialog .primary-button{width:100%}.text-button{border:0;background:transparent;font-size:.9rem;color:var(--muted);padding:18px 10px 4px;text-decoration:underline;text-underline-offset:4px}#celebration-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1000;display:none}.noscript{position:fixed;inset:0;background:#fff;display:grid;place-items:center;padding:30px;font-size:1.5rem}
@media(min-width:1500px){.layout{margin-top:25px}.site-header{padding-top:40px}.exercise{min-height:174px;padding-top:20px}.journey{margin-bottom:24px}}
@media(max-width:1050px){.layout{gap:22px;grid-template-columns:236px minmax(0,1fr);padding:0 24px}.site-header{padding-left:24px;padding-right:24px}.settings-inner{padding:20px 16px}.expression{font-size:1.6rem}.answer{width:75px}.exercise{padding-left:12px;padding-right:12px}.heading-symbol{width:65px;height:65px}.journey>span:first-child{font-size:.74rem}.worksheet-actions{gap:9px}.primary-button{padding:14px 18px;gap:12px}.secondary-button{padding:12px 14px;gap:8px}.topic{font-size:.78rem}}
@media(max-width:760px){.site-header{padding:22px 20px}.brand{font-size:1.4rem}.brand-mark{width:41px;height:41px;font-size:2.3rem}.brand small{font-size:.57rem;letter-spacing:1.2px}.header-actions{gap:8px}.star-counter{padding:7px 12px}.counter-label{display:none}.icon-button{width:36px;height:36px}.layout{display:flex;flex-direction:column;gap:23px;padding:0 20px;margin-top:0}.settings{width:100%;border-radius:15px}.settings>summary{padding:14px 17px;background:#fff;font-size:.9rem}.settings>summary span{display:block}.settings-inner{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:18px}.settings-inner>fieldset:first-child{grid-column:1}.range-field{margin:0}.topic-field{grid-column:1/-1}.topic-options{grid-template-columns:repeat(5,1fr);margin:0;gap:7px}.topic.mixed{grid-column:auto;flex-direction:column;gap:4px}.topic{font-size:.76rem;min-height:72px}.topic>span{font-size:1.5rem}.settings-inner>label{grid-column:1/-1;margin:0}.settings-inner>select{grid-column:1/-1;margin-top:-12px}.side-note{display:none}.play-area{width:100%}.game-heading{padding:0}.game-heading p{font-size:.88rem}.heading-symbol{width:60px;height:60px;font-size:3rem;border-radius:18px}h1{font-size:1.85rem;margin:13px 0 8px;letter-spacing:-.6px}.journey{margin:19px 0 16px;padding:12px}.journey>span:first-child{font-size:.75rem}.journey-dots{gap:5px}.journey-dots span{height:10px;width:10px}.worksheet{gap:12px}.exercise{padding:13px 12px;min-height:153px}.math-row{gap:7px}.expression{font-size:1.65rem}.answer{width:78px;height:50px;font-size:1.5rem}.bottom-note{margin-top:23px}footer{padding:0 20px 24px;flex-direction:column;gap:4px}.exercise.long .expression{font-size:1.12rem}}
@media(max-width:480px){.site-header{padding:20px 16px}.layout{padding:0 16px}.brand{gap:9px;font-size:1.28rem}.brand small{font-size:.5rem}.brand-mark{width:38px;height:38px}.heading-symbol{display:none}.worksheet{gap:10px}.exercise{min-height:165px;padding:12px 10px}.exercise-top{margin-bottom:11px}.math-row{flex-direction:column;gap:9px}.expression{font-size:1.38rem}.answer{height:44px;width:90px;font-size:1.5rem}.exercise.long .expression{font-size:1.03rem;text-align:center;line-height:1.4}.exercise.long .answer{width:105px;font-size:1.2rem}.exercise-number{width:25px;height:25px;font-size:.75rem}.hint-button{font-size:.75rem}.journey>span:first-child{max-width:155px;font-size:.73rem}.journey{gap:8px}.journey-dots{gap:4px}.journey-dots span{width:8px;height:8px}.journey-count{font-size:.76rem}.feedback{font-size:.84rem}.worksheet-actions{flex-direction:column}.primary-button,.secondary-button{width:100%;justify-content:center}.secondary-button{min-height:46px;padding:10px 14px}.topic-options{grid-template-columns:repeat(2,1fr)}.topic.mixed{grid-column:1/-1;flex-direction:row;min-height:42px}.topic{min-height:65px}.settings-inner{gap:17px}.grade-options{gap:4px}.grade-options button{font-size:1rem}.grade-options span{font-size:.6rem}.question-prompt,.exercise.word .question-prompt{font-size:.85rem}.compare-choices{gap:4px;flex-wrap:wrap}.compare-choices button{min-width:32px;height:37px;padding:0 8px;font-size:1.1rem}.worksheet.complex{grid-template-columns:1fr}.worksheet.complex .math-row{flex-direction:row}.worksheet.complex .exercise{min-height:150px}.worksheet.complex .expression{font-size:1.5rem}.bottom-note{font-size:.75rem;text-align:center}.celebration-dialog{padding:30px 22px 22px}.celebration-dialog h2{font-size:2rem}.reward-star{font-size:4.5rem}dialog{padding:27px 23px}dialog h2{font-size:1.6rem}}
@media(max-width:360px){.site-header{gap:8px}.brand{font-size:1.1rem;gap:7px}.brand-mark{width:34px;height:34px;font-size:2rem}.brand small{display:none}.header-actions{gap:6px}.star-counter{padding:7px 9px}}
.hint-button,.answer-status,.topic{font-size:.875rem}.grade-options span{font-size:.75rem}.exercise.word .question-prompt{font-size:1rem}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Nature and scoring theme */
:root{--bg:#eaf8ff;--ink:#203350;--purple:#6843c6;--purple-dark:#4e2fa4;--line:#d4e7ed}
body{background:radial-gradient(circle at 3% 8%,#fff2be 0,transparent 25%),radial-gradient(circle at 95% 10%,#d7f7d7 0,transparent 27%),linear-gradient(180deg,#e8f8ff,#f6fcfb 72%)}
.site-header{max-width:1400px}.brand-mark{background:#704bd3;box-shadow:0 4px 0 #d9cff5}.brand-accent{color:#4f9b5c}
.header-actions{gap:10px}.points-counter{display:flex;align-items:center;gap:6px;background:#dcf5d3;border:1.5px solid #98d388;border-radius:30px;padding:9px 13px;text-decoration:none;font-size:.86rem;font-weight:750;white-space:nowrap}.points-counter>span:first-child{font-size:1.2rem}.points-counter strong{font-size:1.1rem}
.layout{max-width:1400px;grid-template-columns:212px minmax(0,1fr) 255px;gap:18px}.settings{border-color:#cbe8cf}.settings>summary{background:#ddf4da}.settings-inner{padding:19px 14px}.grade-options{gap:5px}.grade-options button{min-height:50px}.topic-options{gap:7px}.topic{min-height:78px}
.game-heading{position:relative;min-height:174px;overflow:hidden;border:2px solid #cce8c3;background:#fff8dd;border-radius:24px;padding:19px 20px;align-items:stretch;box-shadow:0 5px 0 #d7e9d5}.heading-copy{position:relative;z-index:1;max-width:57%;align-self:center}.heading-art{position:absolute;right:0;top:0;width:44%;height:100%;object-fit:cover;object-position:74% 51%;border-radius:0 20px 20px 0}.game-heading::after{content:"";position:absolute;z-index:0;top:0;bottom:0;left:45%;width:17%;background:linear-gradient(90deg,#fff8dd,rgba(255,248,221,0));pointer-events:none}.game-heading h1{color:#315f49;margin:12px 0 8px}.game-heading p{color:#556778}.heading-symbol{display:none}.eyebrow>span:first-child{background:#e3f5c5;color:#467546}
.journey{border-color:#bedee7;background:#ffffffdc}.journey-dots .filled{background:#e5ad53;border-color:#e5ad53}.journey-dots .correct{background:#39a96b;border-color:#39a96b}
.exercise:not(.correct):not(.wrong):not(.empty):nth-child(4n+1){background:#fffdf1;border-color:#f1db9d}.exercise:not(.correct):not(.wrong):not(.empty):nth-child(4n+2){background:#f1fbff;border-color:#badfe9}.exercise:not(.correct):not(.wrong):not(.empty):nth-child(4n+3){background:#f6fff3;border-color:#c4e7bd}.exercise:not(.correct):not(.wrong):not(.empty):nth-child(4n){background:#fbf4ff;border-color:#dcbef0}.exercise-number{background:#efce75;color:#684b16}.exercise:nth-child(3n+2) .exercise-number{background:#aee3ef;color:#265c78}.exercise:nth-child(3n) .exercise-number{background:#d8bdf4;color:#5c377e}
.leaderboard{border:2px solid #c4e2b0;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 6px 0 #dcecd4;scroll-margin-top:16px}.leaderboard-art{display:block;width:100%;height:150px;object-fit:cover;object-position:50% 29%}.leaderboard-content{padding:17px 16px 21px}.leaderboard-heading{display:flex;gap:9px;align-items:center}.leaderboard-heading span{color:#e7a82b;font-size:1.7rem}.leaderboard h2{margin:0;font-size:1.35rem;line-height:1.3;color:#315f49}.score-rules{margin:8px 0 16px;color:#586b69;font-size:.82rem;line-height:1.5}.leaderboard p{line-height:1.5}.leaderboard label{margin:10px 0 6px}.leaderboard input{width:100%;min-height:43px;border:1.5px solid #a4cbb4;border-radius:10px;padding:10px 12px;background:#f8fffa}.leaderboard input:focus{outline:3px solid #b8e5c5}.join-button{border:0;border-radius:10px;background:#248d59;color:#fff;min-height:44px;width:100%;margin-top:9px;font-weight:800}.join-button:hover{background:#1b7047}.join-button:disabled{opacity:.55}.leaderboard .secondary-button{min-height:42px;width:100%;justify-content:center;margin-top:9px}.leaderboard .text-button{padding:5px 0;font-size:.84rem}.leaderboard-status{color:#60716d;font-size:.83rem;min-height:21px;margin:14px 0 10px}.leaderboard-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}.leaderboard-list li{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:7px;border-radius:10px;background:#f2f8f3;padding:8px 9px;font-size:.85rem}.leaderboard-list li.you{background:#e5d9ff;outline:1.5px solid #b59bea}.rank-number{font-weight:900;color:#4a8161}.rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-points{font-variant-numeric:tabular-nums}.player-greeting{margin:0 0 4px;color:#456f52;font-size:.92rem}.player-score{margin:0 0 5px;font-size:.91rem}.player-score strong{font-size:1.4rem;color:#573cb5}.player-score span{color:#567365}.nickname-note{font-size:.77rem;color:#6c7971}.self-rank{font-size:.85rem;color:#573cb5;font-weight:750}.leaderboard:target{outline:3px solid #8bc480;outline-offset:4px}
@media(max-width:1170px){.layout{grid-template-columns:230px minmax(0,1fr);gap:22px}.leaderboard{grid-column:1/-1;display:grid;grid-template-columns:180px 1fr}.leaderboard-art{height:100%;max-height:440px}.leaderboard-content{padding:18px 22px}.leaderboard-list{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-inner{padding:20px 16px}}
@media(max-width:760px){.layout{display:flex;gap:23px}.settings,.play-area,.leaderboard{width:100%}.leaderboard{display:block}.leaderboard-art{height:170px;object-position:center 30%}.leaderboard-list{grid-template-columns:repeat(2,minmax(0,1fr))}.game-heading{min-height:150px}.heading-copy{max-width:60%}.heading-art{width:43%}}
@media(max-width:480px){.star-counter{display:none}.points-counter{padding:7px 9px}.points-counter span:last-child{display:none}.game-heading{display:flex;flex-direction:column;min-height:0;padding:0}.heading-art{position:static;order:0;width:100%;height:140px;border-radius:20px 20px 0 0;object-position:72% 45%}.heading-copy{order:1;max-width:none;width:100%;padding:16px 17px 18px}.game-heading::after{display:none}.game-heading h1{font-size:1.7rem}.leaderboard-list{grid-template-columns:1fr}.leaderboard-art{height:155px}}

/* Five-second animal bonus scenes. All motion is contained in the open dialog. */
.bonus-progress{margin:7px 0 2px;padding:9px 11px;border-radius:10px;background:#fff2ce;color:#67501d;font-weight:750;font-size:.81rem}
.bonus-dialog{max-width:640px;padding:24px 24px 20px;text-align:center;border:3px solid #e2bf77;background:#fffdf4;overflow:auto}
.bonus-dialog h2{margin:7px 0 15px;color:#376047;font-size:clamp(1.55rem,4vw,2rem)}
.bonus-dialog .reward-kicker{color:#85622e}
.bonus-dialog p{margin:13px auto 15px;max-width:530px;color:#425b59}
.bonus-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border:3px solid #c5dfca;border-radius:18px;isolation:isolate;background:linear-gradient(#a8dff4 0%,#f5f2c9 70%,#a4d279 71%);box-shadow:inset 0 2px 14px #ffffffa8}
.bonus-stage[data-scene="1"]{background:linear-gradient(#a8d5eb 0%,#e2edcf 66%,#87be7d 67%)}
.bonus-stage[data-scene="2"]{background:linear-gradient(#f9c79e 0%,#fbe7bc 63%,#9acb75 64%)}
.bonus-sun{position:absolute;top:12%;right:13%;width:15%;aspect-ratio:1;border-radius:50%;background:#fff3a6;box-shadow:0 0 0 12px #ffedb86b,0 0 32px #ffe6a0;z-index:0}
.bonus-stage[data-scene="2"] .bonus-sun{top:27%;right:10%;background:#f8aa72;box-shadow:0 0 0 13px #f5c7a092}
.bonus-cloud{position:absolute;width:23%;height:11%;background:#ffffffc9;border-radius:70% 75% 55% 55%;z-index:1;box-shadow:12px -7px 0 -2px #fffdf5b9,-12px 2px 0 -3px #fffdf5a8}
.cloud-a{left:12%;top:15%}.cloud-b{left:61%;top:28%;width:18%;opacity:.75}
.bonus-mountain{display:none;position:absolute;bottom:31%;width:50%;height:48%;background:#8aa6a8;clip-path:polygon(0 100%,53% 0,100% 100%);z-index:0}
.mountain-a{left:-12%}.mountain-b{right:-5%;height:42%;background:#9cb4ad}
.bonus-hill{position:absolute;border-radius:50% 50% 0 0;z-index:2}
.hill-back{left:-11%;bottom:-16%;width:125%;height:42%;background:#a7d685;transform:rotate(-3deg)}
.hill-front{left:-8%;bottom:-32%;width:119%;height:50%;background:#6fbd68;transform:rotate(3deg);z-index:3}
.bonus-stage[data-scene="1"] .bonus-mountain{display:block}.bonus-stage[data-scene="1"] .hill-back{background:#85bc88}.bonus-stage[data-scene="1"] .hill-front{background:#6da85f}
.bonus-stage[data-scene="2"] .hill-back{background:#b7d877}.bonus-stage[data-scene="2"] .hill-front{background:#80bd6b}
.bonus-creek{display:none;position:absolute;z-index:4;bottom:-8%;left:25%;width:43%;height:34%;border:8px solid #d9f1e3;border-radius:55% 45% 0 0;background:repeating-linear-gradient(160deg,#7acde1 0 17px,#bce9ed 18px 25px,#78c5dd 26px 35px);transform:rotate(-12deg)}
.bonus-stage[data-scene="1"] .bonus-creek{display:block}
.bonus-rainbow{display:none;position:absolute;z-index:1;top:1%;left:26%;width:48%;height:59%;border-radius:52% 52% 0 0;border:13px solid #f2a6a6;border-bottom:0;box-shadow:inset 0 0 0 10px #f9da90,inset 0 0 0 20px #a5d5b6,inset 0 0 0 30px #b5c3e9;opacity:.82}
.bonus-stage[data-scene="2"] .bonus-rainbow{display:block}
.bonus-horses{position:absolute;z-index:7;width:69%;height:auto;left:12%;bottom:-19%;filter:drop-shadow(0 9px 4px #44723945);transform-origin:50% 80%;will-change:transform}
.bonus-stage[data-scene="1"] .bonus-horses{width:58%;left:13%;bottom:-12%}
.bonus-stage[data-scene="2"] .bonus-horses{width:64%;left:18%;bottom:-17%}
.bonus-bird{position:absolute;z-index:8;width:13%;height:auto;filter:drop-shadow(0 2px 2px #55746735);will-change:transform}
.bird-a{top:12%;left:6%}.bird-b{top:24%;right:9%;width:10%}
.bonus-rabbit{display:none;position:absolute;z-index:6;right:6%;bottom:4%;width:18%;height:auto;filter:drop-shadow(0 5px 2px #4a784944)}
.bonus-stage[data-scene="1"] .bonus-rabbit{display:block}
.bonus-flower{position:absolute;z-index:8;width:9%;height:17%;bottom:3%;transform-origin:50% 100%}
.bonus-flower::before{content:"";position:absolute;width:8%;height:75%;bottom:0;left:47%;border-radius:20px;background:#538d49}
.bonus-flower i{position:absolute;left:21%;top:0;width:57%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#eab746 0 24%,transparent 26%),conic-gradient(from 0deg,#f3b2bd 0 18%,#fff1bc 18% 34%,#f3b2bd 34% 51%,#fff1bc 51% 68%,#f3b2bd 68% 84%,#fff1bc 84%)}
.flower-a{left:2%;bottom:8%}.flower-b{left:15%;bottom:2%;width:7%}.flower-c{right:12%;bottom:9%}.flower-d{right:2%;bottom:2%;width:7%}.flower-e{left:66%;bottom:2%;width:6%}
.bonus-stage[data-scene="1"] .bonus-flower{opacity:.35}
.bonus-butterfly{display:none;position:absolute;z-index:9;width:5%;aspect-ratio:1;transform-origin:center}
.bonus-butterfly::before,.bonus-butterfly::after{content:"";position:absolute;width:53%;height:80%;border-radius:80% 20% 70% 30%;background:#bd83cc;border:1px solid #8f67ad}
.bonus-butterfly::before{left:1%;transform:rotate(-25deg)}.bonus-butterfly::after{right:1%;transform:scaleX(-1) rotate(-25deg)}
.bonus-butterfly i{position:absolute;z-index:2;left:46%;top:21%;width:8%;height:65%;border-radius:9px;background:#684a70}
.butterfly-a{left:13%;top:25%}.butterfly-b{right:15%;top:15%}.butterfly-b::before,.butterfly-b::after{background:#f3bc6e}
.bonus-stage[data-scene="2"] .bonus-butterfly{display:block}
.bonus-sparkle{display:none;position:absolute;z-index:8;color:#fff2af;font-size:clamp(16px,4vw,34px);text-shadow:0 2px 3px #a6715478}
.sparkle-a{left:8%;top:48%}.sparkle-b{right:12%;top:38%}.sparkle-c{left:70%;top:16%}
.bonus-stage[data-scene="2"] .bonus-sparkle{display:block}
.bonus-timeline{height:8px;background:#e9e0c6;border-radius:20px;overflow:hidden;margin:13px 2px 0}
.bonus-timeline span{display:block;width:0;height:100%;border-radius:20px;background:linear-gradient(90deg,#84c685,#edba6c,#bf91cb)}
.bonus-actions{display:flex;gap:10px;justify-content:center}.bonus-actions .primary-button,.bonus-actions .secondary-button{flex:1;justify-content:center}
.bonus-dialog .text-button{padding:12px 10px 0}
.bonus-stage.playing[data-scene="0"] .bonus-horses{animation:meadow-gallop 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="0"] .bird-a{animation:meadow-bird-a 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="0"] .bird-b{animation:meadow-bird-b 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="0"] .bonus-flower{animation:flower-sway 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="1"] .bonus-horses{animation:creek-jump 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="1"] .bonus-rabbit{animation:rabbit-cheer 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="1"] .bird-a{animation:creek-bird 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="2"] .bonus-horses{animation:flower-dance 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="2"] .bonus-butterfly{animation:butterfly-dance 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="2"] .bonus-flower{animation:flower-sway 5s ease-in-out 1 forwards}
.bonus-stage.playing[data-scene="2"] .bonus-sparkle{animation:sparkle 5s ease-in-out 1 forwards}
.bonus-stage.playing+.bonus-timeline span{animation:bonus-progress-bar 5s linear 1 forwards}
@keyframes meadow-gallop{0%{transform:translate(-33%,7%) rotate(-2deg)}18%{transform:translate(-13%,-1%) rotate(1deg)}36%{transform:translate(3%,4%) rotate(-1deg)}54%{transform:translate(16%,-1%) rotate(1deg)}72%{transform:translate(23%,4%) rotate(-1deg)}88%{transform:translate(29%,-2%) rotate(1deg)}100%{transform:translate(32%,1%) rotate(0)}}
@keyframes meadow-bird-a{0%{transform:translate(-80%,35%) rotate(-9deg)}50%{transform:translate(160%,-25%) rotate(5deg)}100%{transform:translate(360%,-5%) rotate(-6deg)}}
@keyframes meadow-bird-b{0%{transform:translate(80%,45%) rotate(8deg)}50%{transform:translate(-180%,-20%) rotate(-3deg)}100%{transform:translate(-370%,10%) rotate(7deg)}}
@keyframes creek-jump{0%{transform:translate(-45%,15%) rotate(-4deg)}25%{transform:translate(-9%,8%) rotate(-3deg)}45%{transform:translate(8%,-27%) rotate(-8deg)}58%{transform:translate(24%,-34%) rotate(2deg)}74%{transform:translate(41%,0) rotate(3deg)}100%{transform:translate(49%,5%) rotate(0)}}
@keyframes rabbit-cheer{0%,23%{transform:translateY(0) rotate(-4deg)}35%{transform:translateY(-19%) rotate(8deg)}49%{transform:translateY(0) rotate(-4deg)}64%{transform:translateY(-20%) rotate(8deg)}82%,100%{transform:translateY(0) rotate(0)}}
@keyframes creek-bird{0%{transform:translate(-90%,20%) rotate(-9deg)}48%{transform:translate(200%,-43%) rotate(6deg)}100%{transform:translate(420%,-20%) rotate(0)}}
@keyframes flower-dance{0%{transform:translate(-12%,7%) rotate(-5deg)}22%{transform:translate(3%,-5%) rotate(4deg)}42%{transform:translate(14%,5%) rotate(-4deg)}63%{transform:translate(4%,-6%) rotate(4deg)}83%{transform:translate(-5%,3%) rotate(-3deg)}100%{transform:translate(0,0) rotate(0)}}
@keyframes butterfly-dance{0%{transform:translate(0,50%) rotate(-15deg)}23%{transform:translate(120%,-10%) rotate(12deg)}50%{transform:translate(200%,45%) rotate(-12deg)}74%{transform:translate(90%,-30%) rotate(15deg)}100%{transform:translate(160%,0) rotate(0)}}
@keyframes flower-sway{0%,100%{transform:rotate(-4deg)}25%{transform:rotate(7deg)}50%{transform:rotate(-8deg)}75%{transform:rotate(6deg)}}
@keyframes sparkle{0%,100%{opacity:0;transform:scale(.4)}22%,47%,76%{opacity:1;transform:scale(1.3)}35%,59%{opacity:.2;transform:scale(.7)}}
@keyframes bonus-progress-bar{to{width:100%}}
@media(max-width:480px){.bonus-dialog{padding:18px 13px 16px}.bonus-dialog h2{margin:6px 0 11px}.bonus-stage{border-width:2px;border-radius:12px}.bonus-actions{flex-direction:column}.bonus-actions .primary-button,.bonus-actions .secondary-button{width:100%}.bonus-dialog p{font-size:.85rem}.bonus-rainbow{border-width:8px}}
@media(prefers-reduced-motion:reduce){.bonus-stage .bonus-horses{transform:none!important}.bonus-timeline span{width:100%}}
