/* Little Play Garden: landscape play stage and tactile game UI */
:root{--green:#43795e;--ink:#304e42;--sand:#f6f7ef;--shadow:0 14px 40px #304e4210}body{background:radial-gradient(ellipse at 10% 0,#f4efdb,transparent 40%),#f6f7ef}.top{padding:18px 32px;max-width:1390px;border:0}.sound-toggle{border:1px solid #d6dfca;border-radius:25px;background:#fffdf5;padding:8px 15px!important;white-space:nowrap}.badge{display:none}main{max-width:1340px}.primary{background:#497c5c;border-bottom:5px solid #305d43;box-shadow:0 6px 0 #deead9;transition:transform .15s,box-shadow .15s}.primary:active{transform:translateY(3px);box-shadow:none;border-bottom-width:2px}button:active{transform:scale(.97)}.season-label{font-size:11px;letter-spacing:2px;color:#8b916a;font-weight:800}.garden-welcome{display:grid;grid-template-columns:1fr 1.15fr;gap:20px;padding:32px 0 25px;align-items:center}.welcome-copy{padding:12px 24px}.welcome-copy h1{font-size:clamp(36px,4.2vw,56px);line-height:1.38;margin:18px 0;color:#324e40}.welcome-copy h1 span{color:#c58549}.welcome-copy p{font-size:16px;line-height:1.9;color:#75816e}.adventure-start{font-size:18px;min-width:230px;margin-top:8px;padding:16px 25px;border-radius:22px}.adventure-start span{margin-left:30px}.welcome-note{font-size:11px;color:#8d957f;margin-top:22px}.garden-scene{height:400px;border-radius:44px;background:linear-gradient(#e5f0e5,#eff2d9);position:relative;overflow:hidden;border:7px solid #fffdf7;box-shadow:0 10px 0 #e5e9db}.scene-sun{position:absolute;width:68px;height:68px;background:#f6d991;border:9px solid #f9e8b1;border-radius:50%;right:38px;top:22px}.scene-cloud{position:absolute;width:90px;height:25px;border-radius:40px;background:#fffdf5;opacity:.85}.scene-cloud:before{content:'';position:absolute;left:17px;top:-17px;width:40px;height:40px;border-radius:50%;background:inherit}.cloud-one{top:45px;left:55px}.cloud-two{right:4px;top:120px;transform:scale(.7)}.scene-hill{position:absolute;border-radius:50%;width:140%;height:220px;bottom:-125px;left:-70px;background:#a8bf8d}.hill-back{bottom:-75px;left:50px;background:#d4dfb3}.scene-picture{position:absolute;width:75%;left:11%;top:65px;transform:rotate(-4deg);border:8px solid #fffdf6;box-shadow:0 9px 20px #60765720;border-radius:24px;overflow:hidden}.scene-picture img{display:block;width:100%}.scene-companion{position:absolute;bottom:28px;right:20px;display:flex;align-items:center;gap:10px;background:#fffdf6;padding:10px 18px;border-radius:22px;transform:rotate(3deg);box-shadow:0 6px 0 #78935a35}.scene-companion span{font-size:13px;color:#748260}.scene-companion b{display:block;margin-top:4px;font-size:15px;color:#456748}.scene-flower{position:absolute;font-size:45px;color:#e9bd7f;bottom:15px;left:20px}.flower-two{left:85px;bottom:0;color:#efdfad;font-size:30px}.flower-three{left:48%;bottom:12px;color:#f4dcad;font-size:24px}.scene-label{position:absolute;top:19px;left:40%;color:#6d8a66;font-size:11px;letter-spacing:1px}.mascot{display:inline-block;width:48px;height:50px;border-radius:48% 48% 42% 42%;background:#f2d993;border:2px solid #e3c980;position:relative;flex-shrink:0;box-shadow:inset -5px -4px 0 #e5c67940;vertical-align:middle}.mascot:before,.mascot:after{content:'';position:absolute;top:22px;width:4px;height:6px;border-radius:50%;background:#5c6244}.mascot:before{left:12px}.mascot:after{right:12px}.mascot b{position:absolute;left:18px;top:27px;font-size:13px;line-height:1}.mascot i,.mascot em{position:absolute;background:#80a06c;top:-10px;width:18px;height:13px;border-radius:2px 12px 1px 12px;left:22px;transform:rotate(-15deg)}.mascot em{left:8px;top:-8px;transform:rotate(70deg);background:#9bb67c}.collection-strip{background:#fffdf7;border:1px solid #e7e9da;border-radius:24px;padding:22px 28px;display:flex;justify-content:space-between;gap:25px;align-items:center;margin:8px 0 40px}.collection-strip>div:first-child{display:flex;align-items:center;gap:18px;flex-shrink:0}.collection-strip p{font-size:12px;color:#859079;margin:7px 0 0}.flower-collection{display:flex;flex-wrap:wrap;justify-content:end;gap:8px;max-width:600px}.flower-collection span{font-size:25px;color:#e5e8db}.flower-collection .bloomed{color:#d8a251;text-shadow:0 2px #f3e2bf}.section-heading h2{font-size:28px;margin-top:8px}.worlds{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:28px}.world{background:var(--world-bg,#e8eddc);border:2px solid transparent;border-bottom:5px solid #a8b29222;border-radius:22px;padding:15px 10px;transition:transform .2s;text-align:left}.world>span{display:block;font-size:29px;font-weight:700;margin:0 0 9px}.world b{display:block;font-size:15px}.world small{font-size:10px;display:block;color:#7b846d;margin-top:6px}.world.active{border-color:#5b8260;box-shadow:0 3px 0 #c3d4b8}.world:hover{transform:translateY(-3px)}.game-card{border:2px solid white;box-shadow:0 6px 0 #e8ebdf}.game-card .thumbnail{border-bottom:1px solid #eeeddf;padding:8px;background:#fffcf3}.game-info p{align-items:center}.play-circle{display:grid;place-items:center;background:#e8eedb;border-radius:50%;width:28px;height:28px;color:#49765b!important}.game-card .played{background:#e9ba65;color:white;box-shadow:0 2px 0 #c5994b}.grid{gap:20px}.game-top{padding:12px 0}.is-playing .top{padding-top:10px;padding-bottom:10px}.is-playing .site-footer{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.play-panel{border:2px solid #fff;box-shadow:0 6px 0 #e2e8d8;border-radius:28px}.play-heading{padding:18px 24px 12px}.play-heading h1{font-size:23px;margin:7px 0}.play-heading p{font-size:15px;line-height:1.6}.read-btn{background:#f2e6c8;border:0;border-bottom:3px solid #dfcd9f}.stage-hud{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 22px 15px}.companion-tip{display:flex;align-items:center;gap:10px;font-size:12px;color:#6c805e;line-height:1.6}.companion-tip .mascot{transform:scale(.7);margin:-8px}.companion-tip span:last-child{max-width:350px}#stage-progress{flex-shrink:0;text-align:right;font-size:12px;font-weight:700}#stage-progress>div{display:flex;gap:4px;margin-top:6px}#stage-progress i{display:block;width:9px;height:9px;border-radius:50%;background:#dfe6d2}#stage-progress .filled{background:#80a46e}.board-wrap{border:2px solid #ece9d9;margin:0 15px;background:#fffcf5;border-radius:20px;isolation:isolate}.toolbar{background:#f9f8ef;padding:12px 18px;border-top:1px solid #eae8d9}.tool{border-bottom:3px solid #dde1d2;border-radius:14px;font-size:12px;min-height:42px}.tool.active{background:#e3edd8}.swatch{width:38px;height:38px;min-height:38px;box-shadow:0 3px 0 #c6c7b6;transition:transform .15s}.swatch.active{transform:translateY(-4px);box-shadow:0 0 0 3px #fff,0 0 0 5px #6c8b5b}.number-choice{border-bottom:5px solid #d5c7a4;background:#f3e6bf;border-radius:16px;min-width:50px;min-height:52px;touch-action:none;user-select:none}.number-choice.active{border-color:#88a576;border-bottom-width:5px}.number-ghost{position:fixed;z-index:10000;width:60px;height:60px;margin:-30px 0 0 -30px;display:grid;place-items:center;background:#f4d58c;border:3px solid white;border-radius:18px;color:#486543;font-weight:bold;font-size:30px;box-shadow:0 12px 30px #354d3440;pointer-events:none;transform:rotate(-8deg)}.drop-ready{stroke:#dfaa47!important;stroke-width:9px!important;fill:#fff1b5!important}.feedback{background:#f0f3e8;border:0;font-size:13px}.game-aside .aside-card{padding:18px;border:0;background:#edf2e5}.game-aside .aside-card:last-child{background:transparent}.game-aside .aside-card.green{background:#f5edd7}.aside-card h3{font-size:14px}.aside-card .step{font-size:12px}.aside-card .step b{background:#dfe8d3}.saved-note{margin:8px}.hit.selected{stroke:#75995a;fill:#a9c67c22;stroke-width:8px}.match-port.active{animation:port-breathe 1.1s ease-in-out infinite}.match-line{stroke:#6b9c6c;stroke-width:10px}.connected{stroke-dasharray:1600;animation:draw-line .5s ease-out}.next-node{stroke:#e0ad50;stroke-width:5px;stroke-dasharray:6 8;animation:node-glow 1.8s ease-in-out infinite}.sparkle{position:absolute;font-size:38px;color:#e3b14e;animation:sparkle-up .6s ease-out forwards;transform:translate(-50%,-50%)}#play-effects{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden}.gentle-shake{animation:gentle-shake .3s}.win-dialog{padding:20px 32px 25px;text-align:center;overflow:hidden}.win-scene{height:155px;position:relative;display:grid;place-items:center}.win-flower{font-size:125px;line-height:1;color:#e7b863;text-shadow:0 6px #efd99e;animation:flower-pop .65s cubic-bezier(.3,1.5,.5,1)}.win-spark{position:absolute;font-size:35px;color:#9ab27b}.s1{left:17%;top:45px}.s2{right:14%;bottom:20px;font-size:22px}.win-copy h2{margin:10px 0;font-size:27px}.win-copy p{font-size:13px;max-width:330px;margin:12px auto}.win-collection{display:inline-flex;align-items:center;gap:8px;background:#f0f3e2;border-radius:18px;padding:10px 22px;color:#9a7b43}.win-collection b{font-size:25px}.win-collection span{font-size:12px}.win-home{font-size:12px;color:#7b8b6d;margin-top:12px}#win-particles{position:absolute;inset:0;pointer-events:none}#win-particles i{position:absolute;left:var(--x);top:-35px;width:8px;height:15px;border-radius:3px;animation:confetti-fall 1.7s var(--delay) ease-out both}.focus-play .top,.focus-play .game-top,.focus-play .game-aside,.focus-play .saved-note{display:none}.focus-play main{max-width:1600px;padding:8px}.focus-play .game-layout{display:block}.focus-play .board-wrap{max-width:1100px;margin:auto}.focus-play .play-heading{padding:8px 18px}.focus-play .play-heading h1{display:none}.focus-play .play-heading .pill{display:none}.focus-play .stage-hud{padding:5px 18px}.focus-play .toolbar{max-width:1100px;margin:auto}.phaser-stage{width:100%;aspect-ratio:1.5;position:relative}.phaser-stage canvas{display:block!important;width:100%!important;height:100%!important;touch-action:none}.is-phaser #board{display:none}.is-phaser .phaser-stage{display:block}.phaser-stage[hidden]{display:none}.engine-access{display:flex;justify-content:center;gap:8px;padding:8px}.engine-access button{font-size:12px}
@keyframes flower-pop{from{transform:scale(.15) rotate(-50deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}@keyframes confetti-fall{to{transform:translateY(220px) rotate(var(--turn));opacity:0}}@keyframes sparkle-up{to{transform:translate(-50%,-150%) scale(1.6);opacity:0}}@keyframes gentle-shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes port-breathe{50%{stroke-width:9px}}@keyframes node-glow{50%{stroke-opacity:.3}}@keyframes draw-line{from{stroke-dashoffset:1600}to{stroke-dashoffset:0}}
@media(max-width:1000px){.garden-scene{height:340px}.game-layout{grid-template-columns:1fr}.game-aside{display:none}.worlds{gap:8px}.world{padding:13px 9px}.world b{font-size:13px}.world small{font-size:9px}.flower-collection{gap:5px}.flower-collection span{font-size:22px}.grid{grid-template-columns:repeat(3,1fr)}.welcome-copy{padding:0 8px}.stage-hud .companion-tip{flex:1}.board-wrap{max-width:1000px;margin:auto 12px}}
@media(max-width:600px){.top{padding:13px 16px}.brand{font-size:17px}.brand small{font-size:6px}.brand-icon{width:36px;font-size:27px}.top nav{gap:5px}.sound-toggle{font-size:11px!important;padding:6px 10px!important}.top #parents{font-size:11px}.garden-welcome{display:flex;flex-direction:column;gap:24px;padding:20px 0}.welcome-copy{width:100%;padding:0 8px}.welcome-copy h1{font-size:36px;line-height:1.3;margin:12px 0}.welcome-copy p{font-size:13px;line-height:1.8;margin:12px 0}.adventure-start{font-size:16px;min-width:210px;padding:13px 20px}.welcome-note{margin-top:14px;font-size:10px}.season-label{font-size:9px;letter-spacing:1.4px}.garden-scene{width:100%;height:255px;border-radius:28px;border-width:5px}.scene-picture{width:65%;top:36px;left:12%;border-width:5px}.scene-sun{width:47px;height:47px;right:19px;top:13px;border-width:6px}.scene-companion{bottom:17px;right:13px;padding:8px 12px}.scene-companion .mascot{transform:scale(.85);margin:-4px}.scene-companion span{font-size:11px}.scene-companion b{font-size:13px}.scene-label{display:none}.collection-strip{display:block;padding:17px 19px;margin:3px 0 30px;border-radius:20px}.collection-strip>div:first-child{gap:12px}.collection-strip .mascot{transform:scale(.8);margin:-4px}.collection-strip b{font-size:14px}.flower-collection{justify-content:start;margin-top:14px;gap:3px}.flower-collection span{font-size:22px}.worlds{display:flex;overflow:auto;padding:3px 2px 10px;margin-bottom:15px;scrollbar-width:none}.world{flex:0 0 107px;padding:12px;border-radius:18px}.world>span{font-size:25px;margin-bottom:7px}.world b{font-size:13px}.world small{font-size:9px}.section-heading h2{font-size:24px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.game-info{padding:12px}.game-info h3{font-size:14px}.game-info p{font-size:10px}.game-position span{font-size:11px}.play-heading{padding:15px 16px 8px}.play-heading h1{font-size:21px}.play-heading p{font-size:14px}.play-heading .pill{font-size:10px}.stage-hud{padding:8px 12px 12px;gap:7px}.companion-tip{font-size:11px;gap:4px}.companion-tip .mascot{transform:scale(.6);margin:-10px}.stage-hud #focus{font-size:10px;padding:5px 8px;min-height:36px}#stage-progress{font-size:10px}#stage-progress i{width:6px;height:6px}#stage-progress>div{gap:3px}.board-wrap{margin:0 3px;border-radius:12px;border-width:1px}.toolbar{padding:12px 10px;gap:12px}.toolbar>.primary{width:auto;margin-left:auto;font-size:13px;padding:10px 14px}.tools{gap:8px}.tools .tool{font-size:11px;padding:7px 9px;min-height:38px}.swatch{width:34px;height:34px;min-height:34px}.feedback{font-size:12px;padding:10px 14px}.number-choice{min-width:43px;min-height:46px}.win-dialog{padding:18px 23px}.win-scene{height:130px}.win-flower{font-size:105px}.is-playing main{padding:0 8px}.is-playing .brand small{display:none}}

.stage-message{display:none}#match-mode{margin:8px 18px;width:calc(100% - 36px);font-size:12px;background:#eff2e5}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}



.shelf-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin:16px auto;color:#445e4b}.shelf-nav button{min-height:44px;padding:6px 16px;border:1px solid #d7dfce;background:#fffdf3;border-radius:16px;color:#385842}.shelf-nav button:disabled{opacity:.45}.shelf-nav span{font-size:14px}

.shelf-nav select{max-width:48vw;min-height:44px;font:inherit;color:#385842;border:1px solid #d7dfce;border-radius:12px;background:#fffdf4;padding:0 8px}

/* Book cover and site address, shared by the local and membership home pages. */
.top .brand {gap:11px}
.top .brand-icon {display:block;flex:none;width:46px;height:46px;background:transparent;border-radius:0}
.top .brand-name {color:#274c38;font-size:23px;line-height:1.05;white-space:nowrap}
.top .site-address {display:block;margin-top:4px;color:#325d47;font:700 23px/1.05 'Trebuchet MS',Arial,sans-serif;letter-spacing:.01em;text-transform:none;white-space:nowrap}
.site-address b {color:#a24c29}
.thinking-cover {display:grid;grid-template-columns:1fr .94fr;align-items:center;gap:clamp(24px,5vw,76px);margin:24px 0 20px;padding:clamp(26px,4vw,58px);border:1px solid #dfdac7;border-radius:28px;background:#f7f0df}
.cover-copy {min-width:0}
.cover-series {margin:0;color:#785331;font-weight:700;font-size:14px;letter-spacing:.05em}
.cover-series span {margin-inline:.3em;color:#ad9679}
.cover-copy h1 {font-family:'Songti SC','STSong','SimSun',serif;font-size:clamp(40px,4.3vw,69px);font-weight:700;line-height:1.18;letter-spacing:.015em;margin:16px 0 12px;color:#2b4934}
.cover-copy h1 em {font-style:italic;color:#477051}
.cover-intro {font-size:clamp(15px,1.2vw,18px);line-height:1.8;color:#495848;margin:0 0 19px}
.cover-start {display:inline-flex;align-items:center;gap:22px;border-radius:12px;background:#345d47;font-size:16px}
.cover-start span {font-size:21px;line-height:1}
.cover-page {position:relative;display:flex;flex-direction:column;align-items:stretch;justify-self:center;width:100%;max-width:460px;padding:8px 8px 0;background:#fffcf2;border:1px solid #d5c9a9;border-radius:16px;box-shadow:3px 4px 0 #e8ddc4,4px 5px 0 #cebea0,0 10px 22px #59481912;text-align:left}
.cover-art {display:block;overflow:hidden;border-radius:10px;background:#fcf8ed}
.cover-art img {display:block;width:100%;max-height:260px;object-fit:contain;mix-blend-mode:multiply}
.cover-caption {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 9px}
.cover-caption small,.cover-caption strong {display:block}
.cover-caption small {font-size:12px;color:#805a37;letter-spacing:.06em}
.cover-caption strong {font-size:clamp(16px,1.45vw,21px);color:#344e3b;line-height:1.5}
.cover-arrow {width:34px;height:34px;display:grid;place-items:center;border:1px solid #c7d1b9;border-radius:50%;font:22px/1 Arial;color:#3f6447}
.site-footer strong {color:#34593e;font:700 18px/1.4 Arial,sans-serif}
@media(max-width:750px) {
 .thinking-cover {grid-template-columns:1fr 1fr;gap:16px;padding:23px 20px}
 .cover-copy h1 {font-size:38px}
 .cover-intro br {display:none}
}
@media(max-width:600px) {
 .top {gap:5px;padding:11px 16px}
 .top .brand {gap:7px}
 .top .brand-icon {width:38px;height:38px}
 .top .brand-name {font-size:17px}
 .top .site-address {font-size:22px;margin-top:3px}
 .top nav {gap:2px}
 .thinking-cover {grid-template-columns:1fr;gap:19px;margin:14px 0;padding:22px 17px 20px;border-radius:22px}
 .cover-series {font-size:13px}
 .cover-copy h1 {font-size:clamp(33px,9vw,44px);margin:10px 0}
 .cover-intro {font-size:15px;line-height:1.65;margin:0 0 13px}
 .cover-start {width:auto;padding:10px 19px}
 .cover-art img {height:clamp(125px,37vw,190px)}
 .cover-caption {padding:8px 5px}
 .cover-caption small {font-size:12px}
}
@media(max-width:410px) {
 .top .brand-icon {width:34px;height:34px}
 .top nav button {white-space:nowrap}
}
@media(max-width:350px) {
 .top {padding-inline:12px}
 .top .brand-name {font-size:15px}
}
