@charset "UTF-8";
:root{--bg:#f9f7f2;--ink:#393544;--muted:#8a858e;--purple:#8670bc;--purple-dark:#7058a8;--line:#eae5dd;--green:#e8efe2;--lavender:#eee8f5;--peach:#f6ecd9;--pink:#f3e7ee;--mint:#e5eee7;--blue:#e4eef3;--shadow:0 12px 40px #5045660b;font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:25px}body{margin:0;background:var(--bg);font-size:14px;-webkit-tap-highlight-color:transparent}button,a,input,select{touch-action:manipulation}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #9d85cc;outline-offset:4px}a{color:inherit;text-decoration:none}button{transition:background .2s,transform .2s,box-shadow .2s}button:not(:disabled):active,.primary-button:active{transform:translateY(2px)}h1,h2,h3,p{margin:0}.wrap{width:min(1180px,calc(100% - 88px));margin-inline:auto}.icon{width:22px;height:22px;display:inline-block;vertical-align:middle;flex-shrink:0}.illustration{display:block;width:100%;height:auto}span[data-icon]{display:inline-flex;align-items:center}button .icon{pointer-events:none}.site-header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:850;font-size:26px;letter-spacing:1px}.brand-icon{width:47px;height:47px}.brand small{display:block;font-size:10px;letter-spacing:1.6px;font-weight:450;color:var(--muted);margin-top:3px}.header-actions{display:flex;align-items:center;gap:12px}.quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;padding:10px 12px;font-size:13px;border-radius:12px;position:relative}.quiet-button:hover{background:#ede8f2}.quiet-button i{width:6px;height:6px;background:#b197d3;border-radius:50%;position:absolute;top:8px;right:6px}.header-actions .quiet-button{margin-right:12px}.icon-button{width:40px;height:40px;border:1px solid #e6e1d9;border-radius:50%;background:transparent;display:inline-flex;align-items:center;justify-content:center}.icon-button .icon{width:19px;height:19px}.icon-button:hover{background:#eee9e0}.hero{position:relative;min-height:445px;display:grid;grid-template-columns:1fr 1.2fr;align-items:center;padding:33px 0 35px}.hero-copy{padding:12px 0 12px 18px;position:relative;z-index:1}.eyebrow{color:#8a7b9d;letter-spacing:1.5px;font-size:12px;display:flex;align-items:center;gap:8px;margin-bottom:18px}.little-spark{font-size:20px;color:#a68abd}.hero h1{font-size:clamp(43px,4.9vw,63px);line-height:1.33;letter-spacing:3px;font-weight:850;position:relative;width:fit-content}.hero h1>span:first-of-type{position:relative;color:var(--purple)}.hero h1>span>svg{position:absolute;left:0;bottom:-11px;width:100%;height:18px;fill:none;stroke:#d5c8a6;stroke-width:5;stroke-linecap:round}.title-star{position:absolute;right:-50px;top:39px;color:#d1b47b;transform:rotate(12deg)}.title-star .icon{width:40px;height:40px;fill:#e9ce93;stroke-width:1}.hero-copy>p{line-height:1.9;color:#827c86;font-size:14px;margin-top:27px;letter-spacing:.7px}.primary-button{background:var(--purple);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:14px 25px;border-radius:14px;font-weight:650;box-shadow:0 4px 0 #6e5aa12b;min-height:47px}.primary-button:hover{background:var(--purple-dark);box-shadow:0 5px 14px #7965a32b}.explore-button{margin-top:22px;font-size:14px}.explore-button .icon{width:19px}.hero-notes{display:flex;gap:17px;font-size:10px;color:#9a9496;margin-top:22px;align-items:center;white-space:nowrap}.hero-notes>span{display:flex;align-items:center;gap:5px}.status-dot{height:6px;width:6px;background:#8daa90;border-radius:50%;display:inline-block}.hero-art{margin:-17px -14px -10px -10px;transform:rotate(-1deg)}.hero-float{position:absolute;right:14%;bottom:39px;display:flex;align-items:center;gap:8px;padding:10px 15px;background:#fffcf5e8;border:1px solid #eee6d8;box-shadow:0 7px 17px #6b645012;border-radius:12px;font-size:11px;letter-spacing:1px;transform:rotate(-4deg);color:#7f756f}.hero-float .icon{width:20px;fill:#f1d693;stroke:#d1b477}.playground{padding-top:27px;border-top:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;padding:0 2px}.section-kicker{font-size:9px;letter-spacing:2.4px;color:#a99d94;margin-bottom:8px;font-weight:700}.section-title h2{font-size:25px;font-weight:750;letter-spacing:1px}.tiny-spark{font-size:22px;color:#cab5d7;display:inline-block;margin-left:14px;transform:rotate(17deg)}.surprise-button{display:flex;align-items:center;gap:9px;border:1px solid #e5dfd7;background:transparent;padding:10px 14px;border-radius:12px;font-size:12px}.surprise-button:hover{background:#fffdf8}.surprise-button .icon{width:17px;height:17px;color:#8a7c9b}.small-arrow{font-size:17px;color:#a198a6;margin-left:7px}.grade-panel{display:flex;align-items:center;gap:28px;background:#f0ede7;border:1px solid #eae5dc;border-radius:16px;padding:16px 21px;margin-bottom:25px}.grade-label{display:flex;gap:12px;align-items:center;flex-shrink:0}.grade-label>.icon,.grade-label>span>.icon{width:27px;height:27px;color:#a99577}.grade-label>span{font-size:12px;font-weight:650}.grade-label small{display:block;font-size:10px;font-weight:400;color:#a19893;margin-top:5px}.grade-options{display:flex;gap:8px;flex:1}.grade-button{flex:1;background:transparent;padding:11px 7px;border-radius:10px;font-size:13px;color:#89808b;white-space:nowrap}.grade-button:hover{background:#f9f7f2}.grade-button.active{background:#8670bc;color:#fff;box-shadow:0 3px 6px #7964a528}.grade-button .grade-num{font-size:16px;font-weight:700}.grade-caption{font-size:10px;color:#a49a94;line-height:1.6;max-width:55px;flex-shrink:0}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.game-card{background:#fffefa;border:1px solid #e8e3db;border-radius:20px;overflow:hidden;box-shadow:0 4px 6px #4f465403;transition:transform .25s,box-shadow .25s}.game-card:hover{transform:translateY(-5px);box-shadow:0 12px 24px #4f465410}.game-art{height:180px;position:relative;overflow:hidden;background:var(--card-bg)}.game-art>.illustration{height:100%;width:100%;object-fit:cover}.game-tag{position:absolute;top:15px;left:16px;display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:550;padding:5px 9px;border-radius:7px;background:#fffdf6b0;color:#756976;letter-spacing:.5px}.game-tag::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.game-badge{position:absolute;right:14px;top:14px;width:25px;height:25px;color:#a797b4}.game-badge .icon{width:23px;height:23px;fill:#fffdf67d;stroke-width:1.4}.card-body{padding:20px 21px 17px}.card-title-row{display:flex;justify-content:space-between;gap:5px;align-items:center}.card-title-row h3{font-size:19px;font-weight:750;letter-spacing:.8px}.game-card .description{font-size:11px;color:#99909a;margin-top:8px;line-height:1.6;letter-spacing:.1px}.skill-tags{display:flex;gap:6px;margin-top:13px}.skill-tags span{font-size:9px;color:#958c99;background:#f4f0f5;padding:4px 8px;border-radius:5px}.card-bottom{margin-top:17px;padding-top:14px;border-top:1px dashed #eae4dc;display:flex;justify-content:space-between;align-items:center;gap:10px}.card-difficulty{font-size:10px;color:#a297a2;line-height:1.8}.difficulty-dots{display:flex;align-items:center;gap:3px}.difficulty-dots i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#e3dce9}.difficulty-dots i.on{background:#a797c7}.difficulty-dots span{margin-left:5px;font-size:9px;color:#aea4ae}.start-button{background:#f0ebf7;color:#8a74ad;display:flex;align-items:center;justify-content:center;gap:13px;border-radius:10px;padding:10px 12px;font-size:11px;font-weight:600;white-space:nowrap}.start-button:hover{background:#e3d9f2}.start-button .icon{width:16px;height:16px}.game-card[data-color=green]{--card-bg:var(--green)}.game-card[data-color=lavender]{--card-bg:var(--lavender)}.game-card[data-color=peach]{--card-bg:var(--peach)}.game-card[data-color=pink]{--card-bg:var(--pink)}.game-card[data-color=mint]{--card-bg:var(--mint)}.game-card[data-color=blue]{--card-bg:var(--blue)}.journey-strip{display:flex;align-items:center;gap:21px;background:#f0ebe4;border:1px solid #e9e2d9;border-radius:18px;margin:34px 0 0;padding:13px 29px 13px 12px}.journey-art{width:85px;flex-shrink:0}.journey-strip h3{font-size:16px;font-weight:650;letter-spacing:.4px}.journey-strip p{font-size:11px;color:#a09590;margin-top:8px;line-height:1.8}.journey-stat{margin-left:auto;display:flex;align-items:center;gap:8px;background:#faf7f0;border:1px solid #e7ddd0;padding:14px 18px;border-radius:13px;white-space:nowrap}.journey-stat .icon{fill:#ebce8a;stroke:#d6b46f;width:22px;height:22px}.journey-stat b{font-size:21px;color:#9b8060}.journey-stat span{font-size:10px;color:#a59685}.journey-stat span:last-child{margin-left:8px;font-size:15px}.site-footer{padding:28px 0 35px;display:flex;justify-content:space-between;align-items:center;color:#b0a59f;font-size:9px;line-height:1.8;gap:16px}.footer-brand{color:#938294;font-size:12px;letter-spacing:.5px}.footer-brand span{color:#b0a59f;font-size:9px;margin-left:13px}
/* Shared game workspace */
dialog{color:var(--ink);background:var(--bg);border:1px solid #e4dbec;box-shadow:0 25px 100px #30263830;border-radius:26px;padding:0}dialog::backdrop{background:#302b405e;backdrop-filter:blur(7px)}.game-dialog{width:min(1080px,calc(100% - 48px));max-height:calc(100dvh - 50px);overscroll-behavior:contain}.game-topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 23px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#f9f7f2f5;z-index:5;backdrop-filter:blur(12px)}.game-top-meta{display:flex;align-items:center;gap:10px}.game-top-meta label{font-size:11px;color:var(--muted)}.game-top-meta select{border:1px solid #e0d7e8;background:#fffafc;padding:8px 28px 8px 10px;border-radius:10px;color:#7d679d;font-size:12px}.game-sound{margin-left:5px;width:34px;height:34px}.game-heading{padding:24px 32px 0;display:flex;justify-content:space-between;gap:20px;align-items:center}.game-heading h2{font-size:26px;letter-spacing:1px}.game-heading .level-line{color:#9a8fa3;font-size:11px;letter-spacing:.5px;margin-top:8px}.level-badge{border:1px solid #e5dce9;color:#8c77aa;background:#f0eaf7;padding:9px 13px;border-radius:11px;font-size:12px;white-space:nowrap}.level-nav{display:flex;gap:5px;align-items:center}.level-nav button{background:#f0ebe4;width:30px;height:30px;border-radius:8px;color:#938496;font-size:18px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:24px;padding:24px 32px 30px}.board-panel{background:#fffdf9;border:1px solid #e8e2da;border-radius:20px;min-height:340px;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;position:relative}.game-sidebar{display:flex;flex-direction:column;gap:14px}.buddy-note{background:#efebf3;border:1px solid #e5dced;padding:17px;border-radius:16px}.buddy-note .buddy-header{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:650}.buddy-note .buddy-portrait{width:46px;height:46px;background:#fff9ed;border-radius:50%;padding:2px;flex-shrink:0}.buddy-note p{font-size:12px;line-height:1.95;color:#8a7d95;margin-top:10px}.status-panel{border:1px solid #e9e2d9;border-radius:15px;padding:16px;background:#f5f0e7}.status-row{display:flex;justify-content:space-between;font-size:12px;line-height:1.9;gap:10px;color:#948676}.status-row b{color:#74677f;font-weight:650}.game-feedback{font-size:12px;line-height:1.85;padding:12px 14px;border:1px solid #e5dfeb;border-radius:12px;background:#fffafc;color:#8b779e;min-height:69px}.game-feedback.error{background:#fbefe9;border-color:#eddbce;color:#ad7966}.game-feedback.success{background:#eaf3e9;border-color:#d2e4d0;color:#668b69}.sidebar-actions{display:flex;gap:8px}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 14px;background:#eee8f4;border:1px solid #e4daee;color:#826b9e;border-radius:11px;font-size:12px}.secondary-button:hover{background:#e2d8ed}.secondary-button .icon{height:17px;width:17px}.sidebar-actions .secondary-button{flex:1}.sidebar-footnote{font-size:10px;color:#b0a6af;text-align:center;line-height:1.7}.board-caption{font-size:12px;color:#96869b;text-align:center;line-height:1.7}.board-toolbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}.board-toolbar .primary-button{font-size:12px;min-height:42px;padding:10px 22px;gap:8px}.board-toolbar .primary-button .icon{width:16px;height:16px}.game-grid-board{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:min(100%,420px);aspect-ratio:1;gap:5px;user-select:none}.board-cell{border-radius:8px;min-width:0;aspect-ratio:1;position:relative;display:flex;align-items:center;justify-content:center;padding:3px}.board-cell .icon{width:60%;height:60%}.board-cell .illustration{width:90%;height:90%}.win-panel{padding:45px 30px;text-align:center;max-width:600px;margin:0 auto}.win-mascot{width:115px;height:115px;margin:0 auto;background:#f2ecf5;border-radius:50%;padding:10px;animation:pop .4s ease}.win-stars{display:flex;justify-content:center;gap:13px;margin:23px 0;color:#ded5e1}.win-stars .icon{width:42px;height:42px;fill:#e7dfe7;stroke:#ddd3df;transform:rotate(-8deg)}.win-stars .icon:nth-child(2){width:54px;height:54px;margin-top:-9px;transform:rotate(0deg)}.win-stars .icon.earned{fill:#efd084;stroke:#d9b160}.win-panel h2{font-size:29px;margin-bottom:12px;letter-spacing:1px}.win-panel p{font-size:13px;color:#99869f;line-height:1.9}.win-meta{font-size:11px;color:#aa9bb0;margin:14px 0 24px}.win-actions{display:flex;gap:10px;justify-content:center}.win-actions .primary-button{font-size:13px}.level-link{margin-top:20px;background:transparent;color:#a291aa;font-size:11px}.info-dialog{width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 50px);padding:32px}.close-info{position:absolute;right:15px;top:15px;width:32px;height:32px}.info-dialog h2{font-size:25px;margin:6px 0 10px}.info-dialog .info-intro{font-size:12px;color:#95889c;line-height:1.9;max-width:95%}.help-steps{display:grid;gap:12px;margin:25px 0}.help-step{background:#f0ebf3;padding:16px;border-radius:13px;display:flex;gap:13px;align-items:flex-start}.help-step b{color:#9c87bb;font-size:22px;line-height:1.4}.help-step h3{font-size:14px;margin-bottom:5px}.help-step p{font-size:12px;line-height:1.8;color:#98899f}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:25px}.collection-item{text-align:center;background:#efebe5;border:1px solid #e5ddd3;border-radius:15px;padding:15px 8px}.collection-item.locked .collection-animal{filter:grayscale(1);opacity:.35}.collection-animal{width:69px;height:69px;margin:0 auto 10px;border-radius:50%;padding:7px;background:#fff8e9}.collection-item h3{font-size:12px;margin-bottom:7px}.collection-item p{font-size:10px;color:#a494a8;line-height:1.7}.collection-item.earned{background:#eee6f4;border-color:#ddd0e8}.collection-total{display:flex;align-items:center;gap:8px;margin-top:20px;font-size:13px;color:#9b815d}.collection-total .icon{fill:#efd084;stroke:#d9b160}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);z-index:100;background:#51415f;color:#fff9f5;padding:13px 20px;border-radius:12px;font-size:12px;box-shadow:0 5px 25px #30233825;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:90%;text-align:center;line-height:1.7}.toast.visible{opacity:1;transform:translate(-50%,0)}.confetti{position:fixed;inset:0;z-index:110;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-30px;width:9px;height:15px;animation:fall 1.8s ease-in forwards;border-radius:3px}body.modal-open{overflow:hidden}@keyframes fall{to{transform:translateY(105vh) rotate(650deg);opacity:0}}@keyframes pop{0%{transform:scale(.7)}70%{transform:scale(1.08)}100%{transform:scale(1)}}
/* Forest post */
.route-board{background:#d6e0c9;border:7px solid #d6e0c9;border-radius:16px;gap:4px}.route-cell{background:#eef1d9;color:#bba178;overflow:hidden}.route-cell.blocked{background:#b8ceac}.route-cell.blocked::before{content:"";width:65%;height:70%;background:#86ad81;border-radius:60% 60% 35% 35%;box-shadow:8px 4px 0 #9cb992;transform:translateX(-2px)}.route-cell.blocked::after{content:"";position:absolute;bottom:3px;height:22%;width:8%;border-radius:3px;background:#b3986f}.route-cell.current{background:#f9ebc8;box-shadow:inset 0 0 0 2px #b8a4ce}.route-cell.current .illustration{position:absolute;inset:3%;width:94%;height:94%;z-index:2;animation:pop .25s ease}.route-cell .parcel-mark{position:absolute;inset:15%;display:flex;align-items:center;justify-content:center;color:#b39158;background:#efd193;border-radius:6px}.route-cell .parcel-mark .icon{width:70%;height:70%}.route-cell .home-mark{font-size:24px;color:#b17e6c;font-weight:900}.route-cell.walked::after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;background:#c2b2cd;border-radius:50%}.command-queue{width:100%;min-height:49px;border:1px dashed #d9cde4;border-radius:11px;background:#f4eff9;display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:9px;max-height:135px;overflow:auto}.command-queue:empty::before{content:"点击方向键，把路线放在这里";font-size:11px;color:#b4a4bf;width:100%;text-align:center}.command-chip{background:#fffafc;border:1px solid #e6dced;border-radius:6px;min-width:25px;height:26px;display:flex;align-items:center;justify-content:center;color:#8e78ac;font-size:16px}.command-chip.done{opacity:.4}.command-chip.current{background:#c2afd9;color:white}.direction-buttons{display:flex;gap:8px}.direction-button{font-size:24px;width:44px;height:43px;border-radius:11px;background:#eee7f6;border:1px solid #dfd2ec;color:#8b74ad;box-shadow:0 3px 0 #ddd1e8}.direction-button:hover{background:#e2d6ee}
.route-result{width:100%;display:flex;align-items:center;gap:16px;background:#fbefe6;border:1px solid #ead2c0;border-radius:14px;padding:16px;color:#a17763}.route-result>div{flex:1;min-width:0}.route-result strong{display:block;font-size:16px;margin-bottom:7px;color:#9c705d}.route-result p{font-size:12px;line-height:1.85}.route-result .primary-button{font-size:12px;min-height:43px;padding:11px 17px;gap:7px;white-space:nowrap;flex-shrink:0}.route-result .primary-button .icon{width:17px;height:17px}.command-chip.failed{background:#efc5b4;border-color:#d7a28e;color:#98634f;opacity:1}.command-chip:disabled{opacity:1}.command-chip.done{background:#e8dff0;color:#856899;opacity:1}.route-result~.direction-buttons{opacity:.65}
@media(max-width:600px){.route-result{flex-direction:column;align-items:stretch;gap:12px;padding:14px}.route-result .primary-button{align-self:flex-start}.route-result strong{font-size:15px}}
/* Animal sudoku */
.sudoku-board{border:2px solid #b2a0c1;background:#d9cde1;gap:1px;border-radius:9px;overflow:hidden;max-width:430px}.sudoku-cell{border-radius:0;background:#fffdfa;padding:3px;border:0}.sudoku-cell.given{background:#ede8f2}.sudoku-cell.selected{background:#e1d3f1;box-shadow:inset 0 0 0 3px #a085bd}.sudoku-cell.conflict{background:#f4d9d4}.sudoku-cell.box-right{border-right:2px solid #b2a0c1}.sudoku-cell.box-bottom{border-bottom:2px solid #b2a0c1}.animal-palette{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;width:100%}.animal-choice{width:45px;height:48px;background:#f1eaf7;border:1px solid #e1d5eb;border-radius:10px;padding:3px;position:relative}.animal-choice:hover{background:#e4d6f1}.animal-choice small{position:absolute;bottom:1px;right:4px;font-size:8px;color:#9e8dad}.erase-choice{font-size:11px;width:49px;color:#9075a7}.cell-number{position:absolute;bottom:1px;right:3px;font-size:7px;color:#ac9db6;pointer-events:none}
/* Shape workshop */
.shape-board{background:#e9dfcd;border:6px solid #e9dfcd;gap:3px;border-radius:12px;max-width:365px}.shape-cell{background:#fff7e5;border-radius:4px}.shape-cell.occupied{background:var(--piece);box-shadow:inset 0 0 0 1px #ffffff50}.shape-cell.preview{background:#dac8e7}.shape-cell span{color:#fff;font-weight:700;font-size:12px;text-shadow:0 1px 3px #63506630}.piece-palette{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;width:100%}.piece-button{position:relative;border:2px solid transparent;background:#f6f0e8;min-width:57px;height:59px;border-radius:10px;padding:6px 9px}.piece-button .illustration{height:100%;width:auto;max-width:91px}.piece-button.selected{border-color:#a28abc;background:#eee3f7}.piece-button.placed{opacity:.28;filter:grayscale(.5)}.piece-button small{position:absolute;bottom:2px;right:4px;font-size:9px;color:#8f7d9d}
/* Number alchemy */
.math-target{width:150px;height:144px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#eee2f5;border-radius:30% 30% 40% 40%;border:3px solid #cdb7db;margin-top:18px}.math-target::before{content:"";width:49px;height:23px;background:#eee2f5;border:3px solid #cdb7db;border-bottom:0;border-radius:8px 8px 0 0;position:absolute;top:-24px}.math-target small{font-size:11px;color:#a189ae;letter-spacing:2px}.math-target b{font-size:49px;color:#9172ab;line-height:1.3}.math-cards{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:8px 0}.number-card{background:#fff9ef;border:2px solid #eadcc8;border-radius:14px;color:#a08a68;min-width:64px;min-height:78px;padding:10px 15px;font-size:27px;font-weight:700;box-shadow:0 4px 0 #ecdfca}.number-card.selected{background:#e9dff4;border-color:#a68cbe;color:#8966a4;transform:translateY(-5px)}.number-card.created{background:#e6eee1;border-color:#c9d8bd;color:#83a175}.math-ops{display:flex;gap:10px}.math-op{width:44px;height:43px;background:#f0e7f4;border:1px solid #e0d2e8;border-radius:50%;color:#9d7bb3;font-size:23px}.math-op.selected{background:#a187b7;color:#fff;border-color:#a187b7}.math-expression{font-size:12px;min-height:26px;color:#aa91b7;line-height:1.8;text-align:center;word-break:break-word}.math-history{width:100%;display:flex;gap:5px;flex-wrap:wrap;justify-content:center}.math-history span{background:#f5eef7;border-radius:6px;padding:4px 8px;font-size:10px;color:#a18caa}
/* Balance lab */
.scale-art{width:190px;height:85px;color:#a8b39b;overflow:visible}.equations{width:100%;display:grid;gap:12px}.equation{display:flex;align-items:center;justify-content:center;gap:10px;min-height:65px;background:#f0f3e9;border:1px solid #dce5d5;border-radius:13px;padding:11px}.equation-fruits{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:center}.fruit-group{display:flex;align-items:center;gap:2px}.fruit-icon{width:34px;height:34px;display:inline-flex;vertical-align:middle}.fruit-icon .illustration{height:100%}.equation .equals{color:#a2af95;font-size:21px}.weight-token{background:#d8e4cf;border:1px solid #bed0b0;border-radius:8px;min-width:51px;padding:9px 8px;color:#7b906e;text-align:center;font-size:15px;font-weight:700;white-space:nowrap}.weight-token small{font-size:9px;font-weight:400}.equation-plus{color:#a8ad98;font-size:16px}.balance-question{display:flex;align-items:center;justify-content:center;gap:9px;font-size:15px;color:#8e8c7c}.balance-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;width:min(100%,340px)}.weight-choice{border:2px solid #d7e1cc;border-radius:12px;background:#f0f5e9;padding:15px 5px;color:#869977;font-size:21px;font-weight:650;box-shadow:0 3px 0 #dbe4d0}.weight-choice small{font-size:10px;font-weight:400}.weight-choice:hover{background:#e0ebd6}.weight-choice.wrong{background:#f5e0d6;border-color:#ebc9b9;color:#bc8971}
/* Pipes */
.pipe-board{background:#cadde1;border:6px solid #cadde1;gap:3px;border-radius:13px;max-width:400px}.pipe-cell{background:#edf3f0;border-radius:7px;padding:0;overflow:hidden}.pipe-cell .illustration{width:100%;height:100%}.pipe-cell.reached{background:#ddeee9}.pipe-cell.source{box-shadow:inset 0 0 0 3px #9ec4a1}.pipe-cell.destination{box-shadow:inset 0 0 0 3px #d8b48a}.pipe-legend{display:flex;justify-content:space-between;gap:14px;width:min(100%,400px);font-size:11px;color:#8ca6a2}.pipe-legend span{background:#eef3e9;padding:7px 10px;border-radius:9px}.pipe-legend span:last-child{background:#f6ece4;color:#b49787}
@media(min-width:1500px){.wrap{width:1210px}.hero{min-height:480px}.game-art{height:195px}.game-grid{gap:27px}}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.grade-panel{gap:18px}.grade-caption{display:none}.hero h1{font-size:53px}.hero-notes{gap:10px;font-size:9px}.hero-copy{padding-left:4px}.game-grid{gap:17px}.game-art{height:160px}.card-body{padding:17px 16px 15px}.card-title-row h3{font-size:17px}.game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px;padding:22px}.game-heading{padding:22px 24px 0}.journey-strip{padding-right:20px;gap:10px}}
@media(max-width:760px){.wrap{width:calc(100% - 36px)}.site-header{height:88px}.brand{font-size:22px;gap:9px}.brand-icon{width:41px;height:41px}.brand small{font-size:8px;letter-spacing:.8px}.header-actions{gap:6px}.header-actions .quiet-button{margin-right:0;padding:7px}.header-actions .quiet-button>span:not([data-icon]){display:none}.header-actions .icon-button{width:34px;height:34px}.hero{min-height:340px;padding:24px 0 29px;grid-template-columns:1fr 1fr}.hero h1{font-size:42px;letter-spacing:1px}.eyebrow{font-size:9px;letter-spacing:.3px;margin-bottom:11px;gap:5px}.hero-copy>p{font-size:11px;margin-top:20px;letter-spacing:0}.hero-notes{flex-direction:column;align-items:flex-start;gap:7px;margin-top:17px}.hero-art{margin:0 -15px 0 -32px}.hero-float{right:3%;bottom:37px;padding:7px 9px;font-size:8px;letter-spacing:.2px}.hero-float .icon{width:16px;height:16px}.explore-button{padding:11px 17px;min-height:42px;font-size:12px;gap:10px;margin-top:17px;border-radius:11px}.title-star{right:-32px;top:23px}.title-star .icon{width:25px;height:25px}.section-title h2{font-size:21px}.section-title{margin-bottom:18px}.section-kicker{font-size:8px}.surprise-button{font-size:10px;gap:5px;padding:8px}.small-arrow{margin-left:1px}.grade-panel{flex-wrap:wrap;gap:12px;padding:14px 13px}.grade-label>span{font-size:11px}.grade-label small{display:inline;margin-left:8px;font-size:9px}.grade-label{gap:7px}.grade-label .icon{width:21px!important;height:21px!important}.grade-options{width:100%;flex:initial;gap:5px}.grade-button{padding:9px 4px;font-size:11px}.grade-button .grade-num{font-size:14px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.game-art{height:165px}.card-title-row h3{font-size:17px}.game-card .description{font-size:10px}.card-bottom{gap:5px}.start-button{font-size:10px;padding:9px 10px;gap:5px}.journey-strip{padding:14px 13px;flex-wrap:wrap;column-gap:8px;row-gap:10px}.journey-art{width:58px}.journey-strip>div:nth-child(2){flex:1}.journey-strip h3{font-size:14px}.journey-strip p{font-size:10px;margin-top:5px}.journey-stat{margin:0 0 0 65px;padding:9px 13px}.journey-stat b{font-size:18px}.site-footer{flex-direction:column;align-items:flex-start;gap:7px;padding:22px 0}.game-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:19px}.game-topbar{padding:10px 13px}.game-topbar .quiet-button{font-size:11px;padding:7px 2px}.game-top-meta label{display:none}.game-heading{padding:20px 19px 0}.game-heading h2{font-size:22px}.game-heading .level-line{font-size:10px}.game-layout{grid-template-columns:minmax(0,1fr);padding:19px;gap:16px}.board-panel{padding:17px;min-height:300px}.game-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.buddy-note{grid-column:1/-1;padding:14px}.buddy-note .buddy-header{font-size:12px}.buddy-note .buddy-portrait{width:34px;height:34px}.buddy-note p{font-size:11px;margin-top:7px;line-height:1.8}.status-panel{padding:12px}.status-row{font-size:11px}.game-feedback{font-size:11px;padding:10px 12px}.sidebar-actions{grid-column:1/-1}.sidebar-footnote{grid-column:1/-1}.game-grid-board{max-width:400px}.win-panel{padding:30px 20px}.win-panel h2{font-size:26px}.info-dialog{padding:28px 21px}.collection-grid{gap:9px}.info-dialog h2{font-size:23px}}
@media(max-width:420px){.wrap{width:calc(100% - 28px)}.hero{grid-template-columns:1fr 1fr;min-height:324px}.hero h1{font-size:37px}.hero-art{margin-left:-46px;margin-right:-12px;margin-top:4px;align-self:center;transform:translateY(7px)}.hero-float{bottom:46px;right:0;font-size:7px;padding:6px;gap:4px}.eyebrow{font-size:8px}.hero-copy>p{font-size:10px;line-height:1.85}.hero-notes{font-size:8px}.game-grid{gap:11px}.game-card{border-radius:15px}.game-art{height:130px}.game-tag{top:10px;left:10px;font-size:8px;padding:4px 6px}.game-badge{top:10px;right:8px}.game-badge .icon{width:19px;height:19px}.card-body{padding:13px 12px}.card-title-row h3{font-size:15px;letter-spacing:.3px}.game-card .description{font-size:9px;min-height:29px;margin-top:7px}.skill-tags{gap:4px;margin-top:8px}.skill-tags span{font-size:8px;padding:3px 5px}.card-bottom{margin-top:12px;padding-top:10px;flex-wrap:wrap;row-gap:8px}.card-difficulty{font-size:9px}.start-button{width:100%;justify-content:space-between;font-size:10px;padding:8px 10px}.section-title h2{font-size:18px}.tiny-spark{margin-left:7px;font-size:18px}.surprise-button .small-arrow{display:none}.surprise-button{font-size:9px}.section-kicker{font-size:7px;letter-spacing:1.6px}.grade-button{font-size:10px}.grade-label small{font-size:8px}.game-heading h2{font-size:20px}.game-heading{gap:10px}.level-badge{font-size:10px;padding:8px}.level-nav{gap:4px}.level-nav button{width:25px;height:28px}.game-layout{padding:14px}.board-panel{padding:13px;border-radius:15px}.direction-button{width:40px;height:39px}.board-toolbar{gap:7px}.board-toolbar .primary-button{padding:10px 16px}.number-card{min-width:48px;min-height:66px;font-size:23px;padding:8px 10px}.math-cards{gap:7px}.equation{gap:7px;padding:9px 6px}.fruit-icon{width:27px;height:27px}.fruit-group{gap:1px}.equation-fruits{gap:4px}.animal-choice{width:38px;height:41px}.animal-palette{gap:4px}.game-top-meta{gap:5px}.game-top-meta select{font-size:11px;padding-right:12px}.game-sound{width:31px;height:31px}.win-actions{flex-wrap:wrap}.collection-item h3{font-size:11px}.collection-item{padding:13px 5px}.collection-animal{width:59px;height:59px}.game-grid-board{gap:3px}.sudoku-board{gap:1px}.sudoku-cell{padding:1px}.cell-number{font-size:6px}}
.game-card .description{color:#837b86;font-size:12px}.start-button{min-height:40px}.buddy-note p{font-size:13px;color:#786985}.board-caption{color:#81718b}.game-feedback{color:#79628f}.hero-copy>p{color:#777080}
@media(max-width:760px){.journey-strip{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px}.journey-art{grid-row:1/3}.journey-strip>div:nth-child(2){min-width:0}.journey-stat{grid-column:2;justify-self:start;margin:0}.buddy-note p{font-size:12px}.game-card .description{font-size:11px}.game-feedback{font-size:12px}}
@media(max-width:600px){.hero{display:block;min-height:390px;padding:20px 0 24px}.hero-copy{padding:13px 0 5px;min-width:0}.hero h1{font-size:43px}.hero-copy>p{font-size:12px;max-width:49%;line-height:1.9;margin-top:22px}.hero-art{position:absolute;width:56%;right:-10px;top:156px;margin:0;transform:none}.hero-float{right:0;bottom:30px}.hero-notes{font-size:9px;gap:7px}.hero .eyebrow{font-size:10px}.explore-button{margin-top:18px}.game-card .description{font-size:10px;min-height:34px}.game-card .skill-tags span{font-size:9px}.journey-strip h3{line-height:1.7}.journey-strip p{font-size:11px}.journey-stat{max-width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}

/* Successful pipes play water from entry to exit before awarding stars. */
.pipe-board.flowing .pipe-cell:disabled{opacity:1}.pipe-cell.reached .pipe-wall{stroke:#82b8c5}.pipe-cell.reached .pipe-lumen{stroke:#c2e8e7}.pipe-water-stream{fill:none;stroke:#67b5c8;stroke-width:8;stroke-linejoin:round;stroke-linecap:butt;stroke-dasharray:1;stroke-dashoffset:1;animation:pipe-water-fill var(--water-duration) linear var(--water-delay) both}.pipe-cell.reached .pipe-water-stream{stroke-dashoffset:0}.pipe-legend>span.pipe-flower-badge{display:flex;gap:5px;align-items:center;padding:5px 10px}.pipe-legend .pipe-flower-badge>span{background:none;padding:0;color:inherit}.pipe-flower{display:inline-flex;align-items:center;justify-content:center;width:27px;height:30px}.pipe-flower .illustration{width:100%;height:100%}.pipe-goal-flower{position:absolute;right:1px;bottom:1px;width:36%;height:36%;max-width:28px;max-height:28px;pointer-events:none}.pipe-flower-badge.watered{background:#e9f2df!important;color:#85a374!important}.pipe-flower.watered .illustration{animation:pipe-flower-bloom .5s ease-out both;transform-origin:50% 85%}.pipe-flow-note.arrived{color:#81a176}.pipe-water-stream,.pipe-goal-flower{pointer-events:none}@keyframes pipe-water-fill{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes pipe-flower-bloom{0%{transform:scale(.85)}55%{transform:scale(1.17)}100%{transform:scale(1)}}
