@charset "UTF-8";
/* A single portrait canvas. Container queries keep the phone layout on desktop. */
:root{--bg:#f7f4fc;--surface:#fffefa;--ink:#382d4d;--muted:#786c87;--purple:#7652a5;--purple-dark:#62428f;--lavender:#e9ddf5;--green:#dfecc5;--green-ink:#506832;--pink:#f5e0e7;--line:#e9e2ee;--shadow:0 14px 45px #5c427015;font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible{outline:3px solid #6b4b9d;outline-offset:4px}button:not(:disabled):active{transform:translateY(1px)}button{transition:background .15s,transform .15s}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}svg{display:block}.icon{width:22px;height:22px;flex-shrink:0;display:inline-block;vertical-align:middle}.filled{fill:currentColor}.empty{fill:none;opacity:.35}.page{max-width:1240px;padding:0 42px;margin:auto}.site-header{height:112px;display:flex;align-items:center;gap:64px}.brand{display:flex;align-items:center;gap:10px;padding:0;flex-shrink:0;text-align:left;font-size:23px;font-weight:800;letter-spacing:1px}.brand-mark{width:49px;height:49px;background:#eee4f7;border-radius:17px;display:grid;place-items:center;transform:rotate(-7deg)}.brand-mark .sweet{width:40px;height:40px;transform:rotate(7deg)}.brand small{display:block;font-size:9px;letter-spacing:2.6px;font-weight:600;color:var(--muted);margin-top:5px}.site-header nav{display:flex;align-items:center;gap:28px;align-self:stretch}.site-header nav button{position:relative;padding:0;font-size:14px;color:var(--muted)}.site-header nav button.active{color:var(--purple);font-weight:700}.site-header nav button.active:after{position:absolute;content:"";height:4px;bottom:22px;left:calc(50% - 3px);width:6px;border-radius:4px;background:var(--purple)}.header-tools{display:flex;align-items:center;gap:17px;margin-left:auto}.resources{display:flex;gap:10px}.resource{display:flex;align-items:center;gap:8px;min-width:90px;padding:11px 15px;background:#fff;border-radius:30px;font-size:14px}.resource b{font-variant-numeric:tabular-nums}.resource .icon{width:21px;height:21px}.energy>.icon{fill:#d6809a;color:#d6809a;stroke-width:1.4}.resource b span{font-size:12px;font-weight:400;color:var(--muted);padding-left:3px}.money>.icon{color:#b88524;fill:#fae3a3}.money .tiny{width:16px;height:16px;color:#9888a9;margin-left:3px;fill:none}.icon-button{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon-button:hover:not(:disabled){background:#e8e0f1}.settings-button{color:#8b799e}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:13px 23px;border-radius:16px;font-weight:700;font-size:15px}.button.primary{color:white;background:var(--purple);box-shadow:0 6px 15px #7652a51c}.button.primary:hover:not(:disabled){background:var(--purple-dark);transform:translateY(-2px)}.button.secondary{color:var(--purple-dark);background:#f0eaf7}.button.secondary:hover:not(:disabled){background:#e8dff2}.button.full{width:100%}.button.small{min-height:40px;padding:8px 15px;font-size:13px;border-radius:12px}.button .icon{width:19px;height:19px}.text-button{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--purple);padding:8px 0}.text-button .icon{width:17px;height:17px}.text-button:hover{color:var(--purple-dark);text-decoration:underline;text-underline-offset:5px}.site-footer{display:flex;align-items:center;justify-content:space-between;padding:28px 0 25px;color:var(--muted);font-size:11px}.site-footer>span,.site-footer>button{display:flex;gap:8px;align-items:center}.site-footer .icon{width:14px;height:14px}.site-footer>button:hover{color:var(--purple)}
.welcome-panel{background:#eee5f7;border-radius:32px;min-height:414px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;position:relative}.welcome-copy{padding:38px 0 38px 58px;position:relative;z-index:1}.little-flower{position:absolute;left:292px;top:53px;color:#a3b88a;transform:rotate(20deg)}.little-flower .icon{width:36px;height:36px}.welcome-copy h1{font-size:59px;line-height:1.19;letter-spacing:-2px;font-weight:850;color:#4c3a64}.welcome-copy h1 span{color:#7652a5}.welcome-copy p{font-size:14px;line-height:1.95;margin-top:19px;color:#7b6a8e}.start-button{margin-top:26px;min-width:245px;justify-content:flex-start;gap:11px}.start-button>.icon:last-child{margin-left:auto}.start-note{display:flex;align-items:center;gap:7px;font-size:11px;color:#786587;margin:14px 0 0 7px}.start-note i{width:3px;height:3px;background:#9c8aaa;border-radius:50%;margin:0 3px}.garden-art{position:relative;display:grid;place-items:center;min-width:0}.art-orbit{position:absolute;border:1px solid #dbcbea;border-radius:50%;width:360px;height:360px;transform:rotate(-30deg)}.orbit-two{width:450px;height:450px;opacity:.6}.candy-mosaic{display:grid;grid-template-columns:repeat(3,90px);gap:12px;transform:rotate(-11deg);position:relative;z-index:1;margin-top:-5px;margin-right:12px}.art-candy{width:90px;height:90px;display:grid;place-items:center;border-radius:26px;background:#ffffff62;box-shadow:0 9px 17px #7b599111}.art-candy>.sweet{width:76px;height:76px;filter:drop-shadow(0 6px 4px #6e4b8119)}.art-candy-0{transform:rotate(-8deg) translate(-8px,-5px)}.art-candy-2{transform:rotate(9deg) translate(3px,-4px)}.art-candy-6{transform:rotate(-9deg) translate(-8px,5px)}.art-candy-8{transform:rotate(12deg) translate(4px,7px)}.art-candy-4{background:#fff9ed;transform:scale(1.1);z-index:1;box-shadow:0 9px 20px #714b8a21}.art-star{position:absolute;color:#b59acb}.art-star .icon{fill:currentColor;stroke-width:1;width:22px;height:22px}.art-star-one{left:7%;top:15%;transform:rotate(-12deg)}.art-star-two{right:8%;bottom:21%;transform:rotate(14deg)}.art-star-two .icon{width:30px;height:30px;color:#d3b563}.art-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:#b1c68e}.dot-one{right:18%;top:15%}.dot-two{left:11%;bottom:26%;background:#d8a2b7;width:7px;height:7px}.art-caption{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);font-size:11px;letter-spacing:2px;color:#8b789d;white-space:nowrap}.floating-label{position:absolute;right:12px;top:27px;transform:rotate(9deg);display:flex;align-items:center;gap:7px;font-size:11px;background:#fff9eff2;color:#947c60;padding:10px 14px;border-radius:30px;z-index:2;box-shadow:0 7px 16px #987b8a0b}.floating-label .icon{width:15px;height:15px;fill:#e6b2be;color:#e6b2be}.journey-preview{margin-top:35px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-title h2{font-size:20px;font-weight:750;letter-spacing:-.4px}.section-title p{font-size:12px;color:var(--muted);margin-top:9px}.chapter-preview{background:#fffefa;border-radius:22px;display:flex;align-items:center;padding:21px 32px;gap:40px}.chapter-intro{display:flex;align-items:center;gap:15px;min-width:220px}.chapter-graphic{width:58px;height:58px;border-radius:20px;background:#e9efd9;color:#8da96b;display:grid;place-items:center;transform:rotate(-6deg)}.chapter-graphic .icon{width:31px;height:31px}.chapter-intro h3{font-size:17px}.chapter-intro div>span{font-size:11px;color:var(--muted);display:block;margin-top:7px}.mini-trail{display:flex;justify-content:space-between;flex:1;position:relative;gap:18px}.mini-trail:before{content:"";position:absolute;left:40px;right:40px;top:30px;border-top:2px dashed #e5ddef}.level-node{padding:0;position:relative;display:flex;flex-direction:column;align-items:center;z-index:1}.node-circle{width:66px;height:66px;display:grid;place-items:center;border-radius:24px;font-size:24px;font-weight:800;background:#eee9f1;color:#aca1b9;box-shadow:0 5px 0 #e2dbe9}.node-circle>.icon{width:24px;height:24px}.level-node.current .node-circle{color:#fff;background:#9472be;box-shadow:0 5px 0 #7955a5,0 10px 24px #9472be26}.level-node.complete .node-circle{background:#dfecc5;color:#638240;box-shadow:0 5px 0 #c8daa8}.level-node:hover .node-circle{transform:translateY(-2px)}.node-stars{display:flex;gap:1px;color:#c39536;margin-top:11px}.node-stars .icon{width:15px;height:15px}.locked .node-stars{opacity:.3}.locked .node-stars .icon{fill:#d4c8df;stroke:#d4c8df}.current-label{position:absolute;top:-25px;font-size:10px;padding:3px 9px;border-radius:8px;background:#e9ddf5;color:var(--purple);white-space:nowrap}.mini .node-circle{width:58px;height:58px;border-radius:20px;font-size:21px}.mini .node-circle>.icon{width:20px;height:20px}.mini .node-stars .icon{width:12px;height:12px}.mini .current-label{top:-19px;background:none;padding:0;font-size:10px}.mini .node-stars{margin-top:8px}.daily-card{width:100%;background:#e9efdf;border-radius:20px;display:flex;align-items:center;text-align:left;gap:18px;margin-top:18px;padding:18px 27px;min-height:84px}.daily-card:hover{background:#e0e9d2}.daily-graphic{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;color:#789754;background:#f8faef;transform:rotate(-6deg)}.daily-graphic .icon{width:27px;height:27px}.daily-card strong{font-size:14px;display:block;color:#4f623f}.daily-card small{font-size:11px;color:#5c6d4a;display:block;margin-top:7px}.daily-link{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:12px;color:#5a7543}.daily-link .icon{width:17px;height:17px}
.sweet{display:inline-block;width:56px;height:56px;flex-shrink:0;vertical-align:middle;--sweet:#ee8b9e;--dark:#d46c87;--light:#ffd6d9}.sweet svg{width:100%;height:100%;overflow:visible}.sweet.c1{--sweet:#efce68;--dark:#d6b14a;--light:#fff0b1}.sweet.c2{--sweet:#80bdda;--dark:#5d9fbd;--light:#c6ebf7}.sweet.c3{--sweet:#9ac77c;--dark:#79ab5f;--light:#dbefbc}.sweet.c4{--sweet:#b79ad5;--dark:#9778ba;--light:#e7d5f8}.sweet.c5{--sweet:#eda46a;--dark:#d5884f;--light:#ffdfb0}.ice-symbol{width:58px;height:58px;border-radius:16px;background:#ddf2fa;color:#69a4bf;display:grid;place-items:center}.ice-symbol .icon{width:36px;height:36px}
.map-heading{display:flex;justify-content:space-between;align-items:flex-end;padding:12px 3px 30px}.map-heading h1{font-size:37px;letter-spacing:-1px;margin-top:16px}.map-heading p{font-size:13px;color:var(--muted);margin-top:12px}.chapter-pager{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--muted)}.chapter-pager .icon-button{background:white}.map-canvas{position:relative;background:#eee6f6;border-radius:30px;padding:54px 60px 44px;overflow:hidden;min-height:425px}.level-path{display:grid;grid-template-columns:repeat(5,1fr);row-gap:65px;position:relative;z-index:1}.level-path>.level-node:nth-child(6){grid-column:5;grid-row:2}.level-path>.level-node:nth-child(7){grid-column:4;grid-row:2}.level-path>.level-node:nth-child(8){grid-column:3;grid-row:2}.level-path>.level-node:nth-child(9){grid-column:2;grid-row:2}.level-path>.level-node:nth-child(10){grid-column:1;grid-row:2}.level-node>small{color:#84738f;font-size:10px;margin-top:7px}.path-line{position:absolute;left:13%;right:12%;top:85px;height:172px;border:3px dashed #d6c6e5;border-left:0;border-radius:0 80px 80px 0}.map-decoration{position:absolute;opacity:.18;transform:rotate(-23deg)}.map-decoration .sweet{width:160px;height:160px}.map-decoration.left{bottom:-30px;left:-50px}.map-decoration.right{right:-45px;top:-36px;transform:rotate(20deg)}.map-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:25px;font-size:13px;color:var(--muted)}.map-bottom>span{display:flex;gap:7px;align-items:center}.map-bottom>span .icon{color:#d7ae52;width:19px;height:19px}
.play-page{max-width:1440px;padding:0 40px}.play-page .site-header{height:99px;border-bottom:1px solid var(--line)}.play-page .site-header nav button.active:after{bottom:14px}.game-layout{display:grid;grid-template-columns:224px minmax(380px,550px) minmax(180px,1fr);gap:37px;padding:28px 0 32px;justify-content:center;align-items:start}.game-sidebar>.text-button{font-size:12px;margin-bottom:23px}.level-title h1{font-size:32px;letter-spacing:-1px}.level-title{position:relative}.level-title p{font-size:12px;color:var(--muted);margin-top:10px}.level-title p span{color:#8b7d97}.level-flower{color:#b3c392;position:absolute;right:5px;top:5px;transform:rotate(22deg)}.level-flower .icon{width:29px;height:29px}.goal-panel{background:var(--surface);padding:23px;border-radius:22px;margin-top:26px}.goal-panel h2{font-size:13px;color:var(--muted);font-weight:500}.goal-detail{display:flex;align-items:center;gap:12px;margin-top:14px}.goal-detail>.sweet{width:63px;height:63px}.goal-detail>div{display:flex;flex-direction:column;gap:5px}.goal-detail b{font-size:32px;line-height:1;font-variant-numeric:tabular-nums}.goal-detail>div>span{font-size:11px;color:var(--muted)}.goal-detail>span:last-child:not(.sweet){color:#799958}.goal-track{height:7px;border-radius:5px;background:#eee8f2;margin-top:20px;overflow:hidden}.goal-track>span{display:block;height:100%;background:#afc88a;border-radius:5px;width:100%;transform:scaleX(0);transform-origin:left;transition:transform .3s}.goal-panel>p{font-size:10px;line-height:1.7;color:var(--muted);margin-top:12px}.score-panel{padding:29px 5px;text-align:center}.score-panel>span{font-size:12px;color:var(--muted);display:block}.score-panel>strong{display:block;font-size:29px;font-variant-numeric:tabular-nums;margin-top:9px;letter-spacing:1px}.score-stars{display:flex;justify-content:center;gap:11px;margin-top:15px;color:#dfba61}.score-stars .icon{width:24px;height:24px}.sidebar-note{display:flex;align-items:center;gap:6px;font-size:10px;color:#9688a1;justify-content:center;margin-top:10px;white-space:nowrap}.sidebar-note .icon{width:13px;height:13px}.board-section{min-width:0;position:relative}.board-top{display:flex;align-items:center;justify-content:space-between;padding:0 3px;margin-bottom:16px;gap:14px;min-height:46px}.board-chapter{display:flex;gap:7px;align-items:center;font-size:12px;color:#8b779e}.board-chapter .icon{width:17px;height:17px}.move-counter{display:flex;align-items:center;gap:15px;margin-left:auto;background:#fffefa;padding:8px 17px;border-radius:15px}.move-counter>span{font-size:11px;color:var(--muted)}.move-counter>b{font-size:26px;font-variant-numeric:tabular-nums;line-height:1.2;color:var(--purple)}.move-counter.urgent>b{color:#bd586f}.board-top>.icon-button{background:#e9e0f2;color:var(--purple);width:38px;height:38px}.board-top>.icon-button .icon{width:17px;height:17px}.board-wrap{position:relative;padding:13px;border-radius:24px;background:#dfd1ec;box-shadow:0 9px 30px #6f468f12}.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;aspect-ratio:1;touch-action:none;user-select:none;-webkit-user-select:none}.cell{aspect-ratio:1;border-radius:13px;background:#f6f0fa;padding:2px;position:relative;min-width:0;display:grid;place-items:center;outline-offset:-2px;isolation:isolate}.cell:nth-child(16n+2),.cell:nth-child(16n+4),.cell:nth-child(16n+6),.cell:nth-child(16n+8),.cell:nth-child(16n+9),.cell:nth-child(16n+11),.cell:nth-child(16n+13),.cell:nth-child(16n+15){background:#eee5f5}.cell>.sweet{width:94%;height:94%;pointer-events:none}.cell:hover{background:#fff;z-index:2}.cell.selected{box-shadow:inset 0 0 0 3px #8b60b8;background:#fffbef;z-index:3}.cell.selected>.sweet{transform:scale(1.06)}.ice-overlay{position:absolute;inset:1px;border-radius:11px;background:#bce4ef75;border:2px solid #a9d8e9b3;pointer-events:none;display:grid;place-items:center;color:#fff;z-index:1;box-shadow:inset 0 1px 4px #fff9}.ice-overlay .icon{opacity:.65;width:50%;height:50%}.frozen>.sweet{opacity:.8}.cell.popping>.sweet{animation:pop .2s cubic-bezier(.16,1,.3,1) both}.cell.falling>.sweet{animation:fall .22s cubic-bezier(.16,1,.3,1) both}.cell.hinted{box-shadow:inset 0 0 0 3px #9e78bd;animation:hintpulse 1s ease-in-out infinite}.cell.guide-dim{opacity:.32}.cell.guide-lit{box-shadow:inset 0 0 0 3px #bca14f;background:#fff7d5;z-index:3;animation:hintpulse 1.2s ease-in-out infinite}.cell.guide-lit:after{content:"";width:8px;height:8px;border-radius:50%;background:#7852a5;position:absolute;right:3px;bottom:3px}.combo-label{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);pointer-events:none;font-size:27px;color:var(--purple-dark);font-weight:800;white-space:nowrap;opacity:0;background:#fff9e9e8;padding:13px 23px;border-radius:20px;z-index:8;box-shadow:0 12px 30px #70528b30}.combo-label.visible{animation:combo .85s cubic-bezier(.16,1,.3,1) both}.board-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 3px 10px;color:#8b7b98;font-size:10px;min-height:45px}.board-caption>span{display:flex;align-items:center;gap:7px;line-height:1.6}.board-caption>span .icon{width:14px;height:14px}.board-caption .text-button{font-size:11px;flex-shrink:0;padding:4px 0;gap:4px}.board-caption .text-button .icon{width:16px;height:16px}.inline-cancel{color:var(--purple);text-decoration:underline;font-size:11px;padding:0}.tool-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;position:relative;margin-top:12px}.tool-tray-label{position:absolute;top:-14px;left:3px;font-size:9px;letter-spacing:1px;color:#96879f;display:none}.tool-button{min-width:0;background:#fffefa;border-radius:16px;display:flex;align-items:center;text-align:left;gap:8px;padding:13px 10px;position:relative}.tool-button:hover:not(:disabled){background:#f0e8f8}.tool-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:#ab6a82;background:#f5e5ea;flex-shrink:0}.tool-icon .icon{width:22px;height:22px}.shuffle .tool-icon,.tool-emblem.shuffle{background:#e5eedb;color:#789856}.moves .tool-icon,.tool-emblem.moves{background:#f9edcf;color:#b08a38}.tool-name{font-size:11px;white-space:nowrap;font-weight:700}.tool-name small{display:block;font-size:8px;font-weight:400;color:var(--muted);margin-top:5px}.tool-button>b{position:absolute;right:7px;top:-6px;min-width:20px;height:20px;border-radius:10px;background:#e5d8f0;color:#765297;display:grid;place-items:center;font-size:10px;border:2px solid var(--bg)}.tool-button>b .icon{width:11px;height:11px}.tool-button.selected{box-shadow:inset 0 0 0 2px var(--purple)}.mobile-goal{display:none}.game-tips{padding:40px 0 0 0;max-width:240px;justify-self:center}.tip-heading{display:flex;align-items:center;gap:7px;color:#8f7b9e;font-size:11px}.tip-heading .icon{width:16px;height:16px}.game-tips h2{font-size:25px;line-height:1.6;letter-spacing:-.6px;margin-top:17px;color:#705a84}.special-example{display:flex;align-items:center;gap:11px;margin-top:24px}.special-example>.sweet{width:43px;height:43px}.special-example b{font-size:11px;font-weight:600}.special-example small{display:block;font-size:9px;color:#8b7b98;line-height:1.8;margin-top:3px}.game-tips>.text-button{font-size:11px;margin-top:24px}.quiet-candy{margin:52px auto 0;transform:rotate(22deg);opacity:.24;width:95px;height:95px}.quiet-candy>.sweet{width:95px;height:95px}.guide{display:flex;align-items:center;gap:12px;background:#fffae7;color:#685535;padding:15px;border-radius:18px;margin-top:15px;box-shadow:0 8px 22px #7b65390b}.guide[hidden]{display:none}.guide-number{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#eedfaa;font-size:14px;font-weight:700;flex-shrink:0}.guide b{font-size:12px}.guide p{font-size:10px;line-height:1.8;margin-top:4px}.guide>button{flex-shrink:0;margin-left:auto}.guide .button{font-size:11px;padding:8px 12px}.guide .text-button{font-size:10px;color:#836b3f;white-space:nowrap}
.modal-open{overflow:hidden}.modal-backdrop{position:fixed;inset:0;background:#3e2b5059;backdrop-filter:blur(5px);z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto;overscroll-behavior:contain}.modal{background:var(--surface);border-radius:28px;width:min(100%,420px);padding:35px 30px 28px;text-align:center;position:relative;max-height:calc(100dvh - 48px);overflow-y:auto;box-shadow:0 22px 80px #2d173b29;outline:none;animation:modal-in .25s cubic-bezier(.16,1,.3,1)}.modal-close{position:absolute;top:9px;right:9px;color:#9c8da8;width:34px;height:34px}.modal-close .icon{width:18px;height:18px}.modal h2{font-size:23px;line-height:1.5;margin:0 8px 14px;letter-spacing:-.5px}.modal-subtitle{display:block;color:var(--muted);font-size:11px;line-height:1.7}.modal-body>p{color:var(--muted);font-size:13px;line-height:1.9;margin-top:15px}.modal-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}.modal-target{display:flex;align-items:center;justify-content:center;gap:16px;margin:25px 0 10px}.modal-target>.sweet{width:85px;height:85px}.modal-target>b{font-size:30px}.preview-stats{display:flex;justify-content:center;gap:24px;padding:20px 0 0;font-size:12px;color:var(--muted)}.preview-stats>span{display:flex;align-items:center;gap:5px}.preview-stats .icon{width:16px;height:16px;color:#ba9139}.button-cost{display:flex;align-items:center;gap:5px;font-weight:500;font-size:12px;opacity:.85;border-left:1px solid #ffffff45;padding-left:15px;margin-left:10px}.button-cost>.icon{width:15px;height:15px;fill:#fff7}.modal-emblem{width:78px;height:78px;display:grid;place-items:center;margin:25px auto 20px;background:#eee5f7;color:#9573b7;border-radius:26px;transform:rotate(-5deg)}.modal-emblem>.icon{width:37px;height:37px;transform:rotate(5deg)}.gift-emblem{background:#e5edda;color:#8aab64}.result-emblem{margin:22px auto 17px;width:90px;height:90px;background:#fbefcf;color:#c69c39;border-radius:30px;display:grid;place-items:center;transform:rotate(-6deg)}.result-emblem>.icon{width:49px;height:49px;stroke-width:1.5}.result-emblem.lose{background:#f6e3e9;color:#c48b9d}.result-stars{display:flex;justify-content:center;gap:15px;color:#dab050;margin:18px 0}.result-stars>.icon{width:32px;height:32px}.result-stars>.icon:nth-child(2){width:42px;height:42px;margin-top:-8px}.reward-line{background:#f4efdf;border-radius:12px;padding:13px 17px;display:flex;align-items:center;justify-content:space-between;margin-top:15px;font-size:14px}.reward-line>span{display:flex;align-items:center;gap:8px;color:#88703b}.reward-line .icon{width:20px;height:20px;color:#be9336}.reward-line>b{color:#a07b2f;font-size:20px}.result-summary{display:flex;justify-content:center;gap:24px;font-size:11px;color:#8d7d9b;margin-top:17px}.modal .fine-print{font-size:10px;color:#786585;line-height:1.9;margin-top:18px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line);font-size:13px}.settings-row>span{display:flex;gap:12px;align-items:center}.settings-row .icon{width:20px;height:20px;color:#9b87af}.switch{height:27px;width:48px;background:#e2dbe8;border-radius:20px;padding:3px;display:flex;align-items:center}.switch>span{width:21px;height:21px;background:white;border-radius:50%;box-shadow:0 2px 5px #75678424;transition:transform .2s}.switch.on{background:#9e83bb}.switch.on>span{transform:translateX(21px)}.danger{color:#aa6981;margin-top:15px;font-size:11px}.danger-button{background:#b55974;color:white}.storage-error{color:#aa526b!important}.help-modal{width:min(100%,550px);text-align:left}.help-modal h2{text-align:center}.help-line{display:flex;align-items:flex-start;gap:16px;margin-top:23px}.help-line>b{font-size:13px;line-height:25px;color:#a58bbb}.help-line h3{font-size:13px;line-height:1.8}.help-line p{font-size:11px;line-height:1.95;color:var(--muted);margin-top:6px}.daily-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:24px}.daily-day{border-radius:13px;background:#f2edf7;padding:13px 3px;display:flex;align-items:center;gap:8px;flex-direction:column;color:#9d8baa}.daily-day>small{font-size:9px}.daily-day>.icon{color:#d3b05b;width:24px;height:24px;fill:#f8e8bd}.daily-day>b{font-size:12px}.daily-day.today{background:#e6edda;box-shadow:inset 0 0 0 2px #bbcf9d;color:#648249}.daily-day.claimed{opacity:.6}.daily-day.claimed>.icon{fill:none;color:#79935d}.energy-hearts{display:flex;justify-content:center;gap:10px;color:#cb8aa0;margin:30px 0 20px}.energy-hearts>.icon{width:35px;height:35px}.modal-body>h3{font-size:22px}.shop-balance{display:flex;justify-content:center;align-items:center;gap:8px}.shop-balance>.icon{color:#b68c39;width:19px;height:19px}.shop-items{margin-top:20px}.shop-item{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid var(--line);text-align:left}.shop-item>div{flex:1}.shop-item h3{font-size:13px}.shop-item small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.shop-icon{width:44px;height:44px;background:#f2e2e9;color:#aa7188;border-radius:15px;display:grid;place-items:center;flex-shrink:0}.shop-icon.shuffle{background:#e8eedc;color:#82945d}.shop-icon.moves{background:#f5ebd4;color:#a78a48}.shop-item .button{min-width:78px}.shop-item .button .icon{width:15px;height:15px}#toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,15px);z-index:100;background:#493956f2;color:#fff;border-radius:15px;max-width:calc(100vw - 32px);padding:13px 21px;text-align:center;font-size:12px;line-height:1.7;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 8px 25px #34204126}#toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes pop{0%{transform:scale(1);opacity:1}35%{transform:scale(1.13)}100%{transform:scale(.2);opacity:0}}@keyframes fall{from{transform:translateY(-11px);opacity:.6}to{transform:translateY(0);opacity:1}}@keyframes hintpulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.14)}}@keyframes combo{0%{opacity:0;transform:translate(-50%,-40%) scale(.8)}20%,65%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-80%) scale(1.04)}}@keyframes modal-in{from{opacity:.5;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important}.reduce-motion .popping>.sweet{opacity:.15}.reduce-motion .combo-label.visible{opacity:1}
@container candy-viewport (min-width:1500px){.page{padding-top:20px}.play-page{padding-top:0}.welcome-panel{min-height:450px}.welcome-copy{padding-top:47px}.welcome-copy h1{font-size:64px}.garden-art .candy-mosaic{grid-template-columns:repeat(3,96px);gap:15px}.art-candy{width:96px;height:96px}.art-candy>.sweet{width:82px;height:82px}}
@container candy-viewport (max-width:1180px){.site-header{gap:35px}.site-header nav{gap:20px}.header-tools{gap:9px}.page{padding-right:30px;padding-left:30px}.welcome-copy{padding-left:40px}.welcome-copy h1{font-size:53px}.candy-mosaic{grid-template-columns:repeat(3,78px);gap:10px}.art-candy{width:78px;height:78px;border-radius:22px}.art-candy>.sweet{width:66px;height:66px}.chapter-preview{gap:18px;padding:24px}.chapter-intro{min-width:200px}.game-layout{grid-template-columns:195px minmax(355px,510px);gap:28px}.game-tips{display:none}.play-page{max-width:1030px}.game-sidebar{padding-top:0}.game-layout .board-section{max-width:510px}.game-sidebar>.text-button{margin-bottom:30px}.resource{min-width:auto;padding:10px 12px}.site-header .brand{font-size:21px}.site-header .brand-mark{width:45px;height:45px}}
@container candy-viewport (max-width:800px){.page{padding:0 22px}.site-header{height:90px;gap:22px}.site-header nav{display:none}.header-tools{gap:4px}.resource{padding:9px 11px;font-size:12px;gap:6px}.resource .icon{width:18px;height:18px}.money .tiny{display:none}.brand{font-size:20px}.brand-mark{width:42px;height:42px;border-radius:14px}.brand small{font-size:8px;letter-spacing:2px}.settings-button{width:34px;height:34px}.welcome-panel{min-height:380px;border-radius:25px;grid-template-columns:1.05fr 1fr}.welcome-copy{padding:32px 0 30px 30px}.welcome-copy h1{font-size:45px;letter-spacing:-1.5px}.welcome-copy p{font-size:12px}.start-button{min-width:213px;font-size:13px;padding-left:16px;padding-right:16px}.little-flower{left:200px;top:29px}.little-flower .icon{width:24px;height:24px}.candy-mosaic{grid-template-columns:repeat(3,60px);gap:9px;transform:rotate(-13deg);margin-right:3px}.art-candy{width:60px;height:60px;border-radius:18px}.art-candy>.sweet{width:53px;height:53px}.floating-label{font-size:9px;right:10px;top:29px;padding:8px 10px}.floating-label .icon{width:12px;height:12px}.art-orbit{width:260px;height:260px}.orbit-two{width:340px;height:340px}.art-caption{font-size:9px;bottom:35px;letter-spacing:1px}.art-star-one{left:3%;top:23%}.art-star-two{right:6%;bottom:20%}.art-star .icon{width:16px;height:16px}.journey-preview{margin-top:29px}.chapter-preview{display:block;padding:20px 25px}.chapter-intro{gap:11px;margin-bottom:30px}.chapter-graphic{width:38px;height:38px;border-radius:13px}.chapter-graphic .icon{width:23px;height:23px}.chapter-intro h3{font-size:14px}.chapter-intro div>span{font-size:10px;margin-top:4px}.mini-trail{gap:10px}.mini-trail:before{left:20px;right:20px;top:25px}.mini .node-circle{width:52px;height:52px;border-radius:18px}.section-title h2{font-size:18px}.section-title p{font-size:11px}.section-title .text-button{font-size:11px}.daily-card{padding:16px 20px}.daily-card strong{font-size:13px}.daily-card small{font-size:10px}.game-layout{grid-template-columns:175px minmax(300px,1fr);gap:20px;padding-top:22px}.play-page .site-header{height:86px}.goal-panel{padding:17px;border-radius:19px}.game-sidebar>.text-button{margin-bottom:24px}.level-title h1{font-size:27px}.level-title p{font-size:10px}.goal-detail{gap:7px}.goal-detail>.sweet{width:48px;height:48px}.goal-detail b{font-size:28px}.goal-detail>div>span{font-size:9px}.board-chapter{font-size:10px}.board-wrap{padding:10px;border-radius:21px}.board{gap:3px}.cell{border-radius:10px}.tool-tray{gap:7px}.tool-button{padding:12px 6px;gap:5px}.tool-icon{width:29px;height:29px;border-radius:10px}.tool-icon .icon{width:18px;height:18px}.tool-name{font-size:10px}.tool-name small{font-size:7px}.sidebar-note{font-size:8px;white-space:normal;text-align:center}.board-caption{font-size:8px}.board-caption>span .icon{display:none}.board-caption .text-button{font-size:10px}.score-panel{padding-top:23px}.score-panel>strong{font-size:25px}.map-canvas{padding:48px 20px 35px}.node-circle{width:60px;height:60px;border-radius:21px}.path-line{left:12%;right:12%;top:79px;height:166px}.chapter-pager{gap:7px;font-size:10px}.map-heading h1{font-size:30px}}
@container candy-viewport (max-width:560px){.page{padding:0 18px}.site-header{height:83px;gap:10px}.site-header .brand{font-size:20px;gap:7px;letter-spacing:0}.site-header .brand-mark{width:35px;height:35px;border-radius:12px}.brand-mark .sweet{width:31px;height:31px}.brand small{font-size:6px;letter-spacing:1.6px;margin-top:4px}.resources{gap:5px}.resource{padding:8px 9px;gap:5px;font-size:11px}.resource .icon{width:16px;height:16px}.resource b span{font-size:9px}.header-tools{gap:3px}.settings-button{width:29px;height:32px}.settings-button>.icon{width:19px;height:19px}.welcome-panel{display:block;min-height:0;border-radius:26px;overflow:hidden}.welcome-copy{padding:30px 25px 25px;position:relative;z-index:2;pointer-events:none}.welcome-copy h1{font-size:43px;line-height:1.2;max-width:220px;letter-spacing:-1.4px}.welcome-copy p{font-size:11px;line-height:1.9;margin-top:16px;max-width:195px}.little-flower{left:202px;top:32px}.little-flower .icon{width:25px;height:25px}.welcome-copy .start-button{pointer-events:auto;margin-top:180px;width:100%;min-height:52px;font-size:14px;justify-content:center;position:relative}.start-button>.icon:last-child{position:absolute;right:19px}.start-note{font-size:10px;margin-top:13px;justify-content:center;margin-left:0}.garden-art{position:absolute;inset:0;pointer-events:none}.candy-mosaic{position:absolute;top:205px;left:calc(50% - 95px);grid-template-columns:repeat(3,58px);gap:7px;transform:rotate(-11deg)}.art-candy{width:58px;height:58px;border-radius:17px}.art-candy>.sweet{width:50px;height:50px}.art-candy-6,.art-candy-7,.art-candy-8{display:none}.art-orbit{width:230px;height:230px;left:calc(50% - 115px);top:154px}.orbit-two{width:300px;height:300px;left:calc(50% - 150px);top:119px;opacity:.45}.floating-label{top:119px;right:-9px;font-size:8px;transform:rotate(12deg);border-radius:9px 0 0 9px;padding:8px 11px}.art-caption{display:none}.art-star-one{left:18px;top:246px}.art-star-two{right:26px;top:292px}.art-dot.dot-one{right:42px;top:217px;width:6px;height:6px}.art-dot.dot-two{left:36px;bottom:auto;top:323px;width:5px;height:5px}.journey-preview{margin-top:27px}.section-title{margin-bottom:16px;gap:10px}.section-title h2{font-size:17px}.section-title p{font-size:10px;margin-top:8px}.section-title .text-button{font-size:10px;gap:3px;white-space:nowrap}.section-title .text-button .icon{width:14px;height:14px}.chapter-preview{padding:18px 17px;border-radius:20px}.chapter-intro{margin-bottom:27px}.mini .node-circle{width:43px;height:43px;border-radius:15px;font-size:18px;box-shadow:0 4px 0 #e2dbe9}.mini .node-circle>.icon{width:17px;height:17px}.mini .current-label{font-size:8px;top:-16px}.mini .node-stars{gap:0;margin-top:8px}.mini .node-stars .icon{width:10px;height:10px}.mini-trail:before{top:23px}.daily-card{border-radius:19px;padding:16px 17px;gap:11px;margin-top:15px;min-height:79px}.daily-graphic{width:39px;height:39px;border-radius:13px}.daily-graphic .icon{width:24px;height:24px}.daily-card strong{font-size:12px}.daily-card small{font-size:9px}.daily-link{font-size:10px;gap:5px;white-space:nowrap}.daily-link .icon{width:14px;height:14px}.site-footer{font-size:9px;padding:23px 0 22px;gap:7px}.site-footer .icon{width:12px;height:12px}.site-footer>span,.site-footer>button{gap:5px}.map-heading{padding:4px 0 23px;display:block}.map-heading h1{font-size:29px;margin-top:12px}.map-heading p{font-size:11px;margin-top:9px}.map-heading>.text-button{font-size:11px}.chapter-pager{margin-top:22px;justify-content:space-between;font-size:11px}.chapter-pager .icon-button{width:36px;height:36px}.map-canvas{padding:44px 17px 34px;min-height:640px;border-radius:25px}.level-path{grid-template-columns:repeat(2,1fr);row-gap:25px}.level-path>.level-node:nth-child(n){grid-column:auto;grid-row:auto}.level-path>.level-node:nth-child(3){grid-column:2;grid-row:2}.level-path>.level-node:nth-child(4){grid-column:1;grid-row:2}.level-path>.level-node:nth-child(7){grid-column:2;grid-row:4}.level-path>.level-node:nth-child(8){grid-column:1;grid-row:4}.node-circle{width:58px;height:58px;border-radius:20px;font-size:22px}.node-stars{margin-top:9px}.node-stars>.icon{width:13px;height:13px}.level-node>small{margin-top:6px;font-size:9px}.path-line{top:76px;bottom:77px;height:auto;left:27%;right:27%;border-left:3px dashed #d6c6e5;border-radius:50px;opacity:.7}.map-bottom{flex-direction:column;gap:22px;margin-top:23px;font-size:12px}.map-bottom>.button{width:100%}.play-page{padding:0 12px}.play-page .site-header{height:76px;border:0;padding:0 5px}.game-layout{display:block;padding:0 0 22px;position:relative}.game-sidebar{display:none}.game-tips{display:none}.game-layout .board-section{max-width:480px;margin:auto}.board-top{padding:0 4px;gap:8px;margin-bottom:11px;min-height:44px}.board-chapter{font-size:12px;color:var(--ink)}.board-chapter .icon{color:#8ca970;width:18px;height:18px}.board-chapter:before{content:"";display:none}.move-counter{border-radius:14px;padding:8px 11px;gap:10px}.move-counter>b{font-size:24px}.move-counter>span{font-size:9px}.board-top>.icon-button{width:34px;height:34px}.mobile-goal{display:flex;align-items:center;gap:7px;font-size:10px;color:#8b779b;margin:0 4px 12px;background:#fffefa;border-radius:14px;padding:8px 13px;height:50px}.mobile-goal>.sweet{width:37px;height:37px}.mobile-goal>.ice-symbol{width:34px;height:34px;border-radius:9px}.mobile-goal>.ice-symbol .icon{width:23px;height:23px}.mobile-goal>#mobile-target{font-weight:800;font-size:20px;color:var(--ink);margin-left:2px}.mobile-score{margin-left:auto;font-size:10px;display:flex;align-items:center;gap:9px}.mobile-score>b{font-size:16px;font-variant-numeric:tabular-nums;color:var(--purple);font-weight:700}.board-wrap{padding:9px;border-radius:20px}.board{gap:3px}.cell{border-radius:10px;padding:1px}.cell>.sweet{width:96%;height:96%}.ice-overlay{border-radius:8px}.board-caption{font-size:9px;padding:12px 3px 10px}.board-caption>.text-button{font-size:10px}.board-caption>span{gap:3px}.board-caption>span .icon{display:none}.tool-tray{gap:9px;margin-top:8px}.tool-button{padding:12px 10px;gap:7px;border-radius:16px;min-height:65px}.tool-icon{width:32px;height:32px;border-radius:11px}.tool-icon .icon{width:21px;height:21px}.tool-name{font-size:10px}.tool-name small{display:none}.tool-button>b{right:5px;top:-5px;font-size:9px}.combo-label{font-size:21px;padding:11px 16px}.guide{margin-top:16px;padding:13px 11px;gap:8px}.guide-number{width:24px;height:24px;border-radius:8px;font-size:12px}.guide b{font-size:11px}.guide p{font-size:9px;line-height:1.8}.guide>button{font-size:9px}.guide .button{padding:7px 8px;font-size:9px;min-height:34px}.modal-backdrop{padding:18px}.modal{border-radius:24px;padding:30px 23px 23px;max-height:calc(100dvh - 36px)}.modal h2{font-size:21px}.modal-body>p{font-size:12px}.modal-actions{margin-top:22px}.modal .button{font-size:13px;min-height:48px}.daily-grid{gap:7px}.daily-day{padding:12px 3px}.energy-hearts{gap:8px}.energy-hearts>.icon{width:30px;height:30px}.help-line{gap:12px}.help-line p{font-size:10px}.help-line h3{font-size:12px}#toast{bottom:20px;width:max-content;max-width:calc(100vw - 30px);font-size:11px}}
@container candy-viewport (max-width:360px){.page{padding:0 13px}.site-header .brand{font-size:18px}.site-header .brand-mark{width:32px;height:32px;border-radius:11px}.resource{padding:7px 8px;font-size:10px}.resource .icon{width:14px;height:14px}.resources{gap:4px}.settings-button{width:25px}.welcome-copy{padding-left:22px;padding-right:22px}.welcome-copy h1{font-size:40px}.little-flower{left:185px}.section-title .text-button{font-size:9px}.mini .node-circle{width:40px;height:40px;border-radius:14px}.daily-card{padding:14px 13px;gap:8px}.daily-card strong{font-size:11px}.daily-card small{font-size:8px}.daily-link{font-size:9px}.play-page{padding:0 9px}.board-caption{font-size:8px}.tool-button{gap:5px;padding:11px 7px}.tool-icon{width:28px;height:28px}.tool-name{font-size:9px}.board-wrap{padding:7px}.board{gap:2px}.cell{border-radius:8px}.site-footer{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.cell.popping>.sweet{opacity:.15}.combo-label.visible{opacity:1}}

.node-circle{position:relative}.node-lock{position:absolute;right:-5px;top:-5px;width:21px;height:21px;background:#e0d6e9;border-radius:8px;display:grid;place-items:center;color:#9785a7}.node-lock .icon{width:12px;height:12px}.mini .node-lock{width:16px;height:16px;right:-3px;top:-3px;border-radius:6px}.mini .node-lock .icon{width:9px;height:9px}.board-chapter>span{display:flex;flex-direction:column;gap:4px;font-weight:700;color:var(--ink)}.board-chapter small{font-size:9px;font-weight:400;color:var(--muted)}

.mobile-goal-note{display:none}.pause-help{justify-content:center;align-self:center;margin-top:4px}.daily-day:not(.claimed){color:#746181}.board-caption{color:#756181}.start-note{color:#715e80}@container candy-viewport (max-width:560px){.mobile-goal{margin-bottom:5px}.mobile-goal-note{display:block;color:var(--muted);font-size:11px;line-height:1.8;margin:0 6px 10px}.board-caption{font-size:11px;line-height:1.7}.board-caption .text-button{font-size:11px}.board-caption>span{max-width:calc(100% - 50px)}}

/* Phone portrait is the only layout, including desktop preview. */
html,body{width:100%;height:100%;overflow:hidden}
body{display:grid;place-items:center;background:#e9e4ee;min-width:0}
.portrait-shell{width:min(390px,100vw);height:min(720px,100dvh);position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--bg);container-type:size;container-name:candy-viewport;isolation:isolate;overflow:hidden}
#app{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none}
#app::-webkit-scrollbar{display:none}
.page{width:100%;max-width:100%;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.modal-backdrop{position:absolute;padding:18px;max-height:100%;overflow:hidden}
.modal{max-height:calc(100cqh - 36px);overscroll-behavior:contain}
.modal-open #app{overflow-y:hidden}
#toast{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));max-width:calc(100cqw - 28px);width:max-content;font-size:11px}
.settings-button{min-width:36px;min-height:44px}
@media(min-width:561px){.portrait-shell{width:390px;height:720px;transform:translate(-50%,-50%) scale(var(--preview-scale,1));border-radius:30px;box-shadow:0 18px 70px #51415e24}}
@media(max-width:560px){.portrait-shell{width:100vw;height:100dvh}}

/* Header, artwork, journey and action share the same milk-lavender canvas. */
.home-page{height:100%;min-height:0;display:flex;flex-direction:column;container-type:size;container-name:home-frame}
#app:has(.home-page),#app:has(.play-page){overflow:hidden}
.home-page .site-header{height:64px;flex:0 0 64px}
.home-page>main{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:12px}
.home-page .welcome-panel{height:100%;min-height:0;background:transparent;border-radius:0;overflow:hidden}
.home-page .welcome-copy{height:100%;padding:14px 18px 4px;position:relative;display:grid;grid-template-areas:"intro" "art";grid-template-rows:auto minmax(0,1fr)}
.welcome-intro{grid-area:intro;min-width:0;position:relative;padding-right:64px}
.home-page .welcome-copy h1{font-size:clamp(32px,10cqw,40px);line-height:1.18;white-space:nowrap;max-width:none;letter-spacing:-1.4px}
.home-page .welcome-copy p{font-size:12px;line-height:1.7;margin-top:10px}
.home-page .little-flower{top:27px;left:59%}
.home-page .garden-art{grid-area:art;position:relative;inset:auto;min-height:0;min-width:0;width:100%;height:100%;isolation:isolate;container-type:size;overflow:hidden}
.home-page .candy-mosaic{--tile:clamp(18px,min(calc((100cqh - 24px)/2.7),calc((100cqw - 16px)/3.6)),76px);top:calc(50% + 7px);left:50%;margin:0;grid-template-columns:repeat(3,var(--tile));gap:calc(var(--tile)*.12);transform:translate(-50%,-50%) rotate(-11deg)}
.home-page .art-candy{width:var(--tile);height:var(--tile);border-radius:30%}
.home-page .art-candy>.sweet{width:90%;height:90%}
.home-page .art-orbit{top:50%;left:50%;width:min(86cqw,250px);height:min(86cqw,250px);transform:translate(-50%,-50%);z-index:-1}
.home-page .orbit-two{width:min(100cqw,310px);height:min(100cqw,310px)}
.home-page .floating-label{top:2px;right:0;transform:none;font-size:9px;border-radius:9px;padding:5px 8px;white-space:nowrap}
.home-page .art-star-one{top:55%;left:0}
.home-page .art-star-two{top:auto;bottom:10%;right:0}
.home-page .art-dot.dot-one{top:25%;right:10px}
.home-page .art-dot.dot-two{top:auto;bottom:15%;left:12px}
.home-page .journey-preview{margin:0}
.home-page .section-title{margin-bottom:8px;gap:8px}
.home-page .section-title h2{font-size:17px}
.home-page .section-title p,.home-page .chapter-intro{display:none}
.home-page .section-title .text-button{font-size:11px}
.home-page .chapter-preview{padding:18px 17px 10px;border-radius:0;background:transparent}
.home-page .mini .node-stars{margin-top:6px}
.daily-checkin{position:absolute;right:0;top:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:54px;min-height:64px;padding:3px;color:#526f36;pointer-events:auto;border-radius:14px}
.daily-checkin-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#e7efd9}
.daily-checkin-icon>.icon{width:26px;height:26px}
.daily-checkin-label{font-size:11px;line-height:1.4;font-weight:700;white-space:nowrap}
.daily-checkin:hover{background:#eaf0df}
.daily-checkin.claimed{color:#71815f}
.daily-checkin.claimed .daily-checkin-icon{background:#edf0e7}
.home-action{min-width:0}
.home-action .start-button{position:relative;width:100%;min-width:0;min-height:50px;margin:0;justify-content:center;font-size:14px;pointer-events:auto}
.home-action .start-button>.icon:last-child{position:absolute;right:19px;margin:0}
.home-action .start-note{font-size:11px;margin:8px 0 0;justify-content:center;line-height:1.4}
.home-page .site-footer{height:36px;flex:0 0 36px;padding:8px 0;font-size:10px}
@container home-frame (max-height:660px){
  .home-page .site-header{height:52px;flex-basis:52px}
  .home-page>main{gap:8px}
  .home-page .welcome-copy{padding:8px 4px 0;gap:4px;grid-template-areas:"intro" "art";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .home-page .welcome-copy h1{font-size:clamp(28px,8.4cqw,33px);line-height:1.13;letter-spacing:-1.1px}
  .home-page .welcome-copy p{font-size:11px;line-height:1.6;margin-top:8px}
  .home-page .welcome-intro{align-self:start}
  .home-page .little-flower{display:none}
  .home-page .candy-mosaic{--tile:clamp(18px,min(calc((100cqh - 16px)/2.7),calc((100cqw - 8px)/3.6)),54px)}
  .home-page .floating-label{display:none}
  .home-page .section-title{margin-bottom:6px}
  .home-page .section-title h2{font-size:16px}
  .home-page .chapter-preview{padding:14px 14px 6px}
  .home-page .mini .node-circle{width:36px;height:36px;border-radius:12px;font-size:17px}
  .home-page .mini .node-stars{margin-top:4px}
  .home-page .mini .current-label{top:-13px}
  .daily-checkin{top:0;min-height:60px}
  .daily-checkin-icon{width:38px;height:38px;border-radius:12px}
  .home-action .start-button{min-height:46px;padding:10px 16px}
  .home-action .start-note{margin-top:6px}
  .home-page .site-footer{height:30px;flex-basis:30px;padding:5px 0}
}
@container home-frame (max-height:500px){
  .home-page .site-header{height:48px;flex-basis:48px}
  .home-page>main{gap:6px}
  .home-page .welcome-copy{padding-top:0}
  .home-page .welcome-copy h1{font-size:28px}
  .home-page .welcome-copy p{margin-top:5px;line-height:1.5}
  .home-page .chapter-preview{padding-top:13px;padding-bottom:4px}
  .home-page .mini .node-circle{width:32px;height:32px;border-radius:11px}
  .home-page .site-footer{height:26px;flex-basis:26px;font-size:9px}
}

/* The game reserves the measured remaining height for a square board. */
.play-page{height:100%;min-height:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.play-page .site-header{height:64px;flex:0 0 64px;border:0}
.game-layout{flex:1;min-height:0;display:block;padding:0 0 10px}
.game-layout .board-section{--status-height:44px;--goal-height:46px;--moves-size:26px;--target-icon:35px;--goal-note-size:11px;height:100%;min-height:0;max-width:100%;margin:0;display:flex;flex-direction:column;gap:6px;align-items:stretch}
.game-sidebar,.game-tips{display:none}
.board-top{flex:none;height:calc(var(--status-height) + var(--game-extra,0px)*.5);min-height:44px;margin:0;padding:0 4px;gap:8px}
.board-top>.icon-button{width:clamp(var(--status-height),calc(var(--status-height) + var(--game-extra,0px)*.08),60px);height:clamp(var(--status-height),calc(var(--status-height) + var(--game-extra,0px)*.08),60px)}
.board-top>.icon-button .icon{width:clamp(17px,calc(17px + var(--game-extra,0px)*.02),22px);height:clamp(17px,calc(17px + var(--game-extra,0px)*.02),22px)}
.board-chapter{font-size:clamp(12px,calc(12px + var(--game-extra,0px)*.04),20px)}
.board-chapter small{font-size:clamp(9px,calc(9px + var(--game-extra,0px)*.015),12px)}
.move-counter{padding:clamp(6px,calc(6px + var(--game-extra,0px)*.04),15px) clamp(11px,calc(11px + var(--game-extra,0px)*.04),20px)}
.move-counter>b{font-size:clamp(var(--moves-size),calc(var(--moves-size) + var(--game-extra,0px)*.07),40px)}
.move-counter>span{font-size:clamp(9px,calc(9px + var(--game-extra,0px)*.01),12px)}
.mobile-goal{flex:none;height:calc(var(--goal-height) + var(--game-extra,0px)*.5);min-height:46px;margin:0 4px;padding:5px 12px}
.mobile-goal-note{flex:1;min-width:0;max-width:130px;min-height:0;height:auto;font-size:clamp(var(--goal-note-size),calc(var(--goal-note-size) + var(--game-extra,0px)*.015),14px);line-height:1.35;margin:0}
.mobile-score{font-size:clamp(10px,calc(10px + var(--game-extra,0px)*.015),13px)}
.mobile-score>b{font-size:clamp(16px,calc(16px + var(--game-extra,0px)*.04),24px)}
.mobile-score{flex-shrink:0}
.board-wrap{flex:0 0 auto;align-self:center;width:100%;max-width:100%;aspect-ratio:1;padding:8px;border-radius:20px;box-sizing:border-box}
.board{width:100%;height:100%;aspect-ratio:1;grid-template-rows:repeat(8,minmax(0,1fr));gap:3px}
.cell{width:100%;height:100%;min-height:0;aspect-ratio:auto;border-radius:9px;overflow:visible}
.cell>.sweet{width:96%;height:96%;max-width:100%;max-height:100%}
.board-caption{flex:none;min-height:30px;padding:1px 3px;font-size:11px;line-height:1.45;gap:6px;margin-top:0}
.board-caption .text-button{font-size:11px;min-height:30px}
.board-caption>span{max-width:calc(100% - 45px);line-height:1.45}
.tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding-top:5px}
.tool-button{min-height:66px;gap:7px;padding:10px 8px;border-radius:16px;background:#fffefa;box-shadow:0 3px 0 #e2d7ed;text-align:left;align-items:center}
.tool-button.hammer{background:#fff3f7}
.tool-button.shuffle{background:#eef5e5}
.tool-button.moves{background:#fff5dc}
.tool-button:hover:not(:disabled){filter:brightness(.98);background:var(--surface);transform:translateY(-2px)}
.tool-icon{width:34px;height:34px;border-radius:11px}
.tool-icon .icon{width:24px;height:24px}
.tool-name{flex:1;min-width:0;font-size:12px;font-weight:750;line-height:1.3;white-space:nowrap}
.tool-name small{display:none}
.tool-status,.tool-name .tool-status{display:block;color:#725f80;font-size:10px;font-weight:500;margin-top:4px;line-height:1.25;white-space:normal}
.tool-button>b{top:-5px;right:6px;min-width:23px;height:23px;padding:0 4px;font-size:11px;background:#7652a5;color:#fff;border:2px solid var(--bg)}
.tool-button>b .icon{width:12px;height:12px}
.tool-button.selected{box-shadow:inset 0 0 0 2px #7652a5,0 3px 0 #7652a5;background:#efe2fa}
.tool-button:disabled{opacity:.6;box-shadow:none;filter:saturate(.6)}
.tool-button.selected .tool-status{color:#62428f;font-weight:700}
.tool-button.cap-reached .tool-status{color:#776d7f}
@container candy-viewport (max-width:360px){
  .play-page{padding-left:9px;padding-right:9px}
  .tool-tray{gap:6px}
  .tool-button{gap:5px;padding:10px 6px}
  .tool-icon{width:30px;height:30px;border-radius:10px}
  .tool-icon .icon{width:22px;height:22px}
  .tool-name{font-size:11px}
  .tool-status,.tool-name .tool-status{font-size:10px}
}
@container candy-viewport (max-height:700px){
  .play-page .site-header{height:46px;flex-basis:46px}
  .play-page .brand{font-size:18px}
  .play-page .brand-mark{width:30px;height:30px}
  .play-page .brand small{font-size:6px}
  .game-layout{padding-bottom:7px}
  .game-layout .board-section{--status-height:36px;--goal-height:40px;--moves-size:22px;--target-icon:31px;--goal-note-size:10px;gap:4px}
  .board-top{min-height:36px}
  .move-counter>b{line-height:1.15}
  .mobile-goal{min-height:40px;padding:3px 10px}
  .mobile-goal-note{line-height:1.35;margin:0}
  .board-wrap{padding:6px;border-radius:17px}
  .board{gap:2px}
  .cell{border-radius:7px}
  .board-caption{min-height:26px;font-size:10px}
  .board-caption .text-button{font-size:10px;min-height:26px}
  .tool-button{min-height:58px;padding-top:7px;padding-bottom:7px}
}

/* Guidance occupies its own row above the board; no control is hidden beneath it. */
.resource.energy #energy-value{font-size:19px;line-height:1}
.unlimited-emblem{display:flex;align-items:center;justify-content:center;gap:14px;margin:25px 0;color:#b65b7e}
.unlimited-emblem>.icon{width:36px;height:36px;fill:currentColor}
.unlimited-emblem>b{font-size:54px;line-height:1}
#coach-root{position:absolute;inset:0;z-index:30;pointer-events:none}
#coach-root[hidden]{display:none}
.coach-spotlight{display:block;overflow:visible}
.coach-ring{fill:none;stroke:#fff7cd;stroke-width:3}
.coach-arrow rect{fill:#fff7cd;stroke:#7652a5;stroke-width:1.5}
.coach-arrow path{fill:none;stroke:#62428f;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.board-section{position:relative}
.goal-focus{display:inline-flex;align-items:center;gap:7px;border-radius:10px;flex-shrink:0}
.goal-focus>.sweet{width:clamp(var(--target-icon),calc(var(--target-icon) + var(--game-extra,0px)*.1),56px);height:clamp(var(--target-icon),calc(var(--target-icon) + var(--game-extra,0px)*.1),56px)}
.goal-focus>.ice-symbol{width:clamp(30px,calc(30px + var(--game-extra,0px)*.1),50px);height:clamp(30px,calc(30px + var(--game-extra,0px)*.1),50px)}
.mobile-goal #mobile-target{font-size:clamp(20px,calc(20px + var(--game-extra,0px)*.07),34px);font-weight:800;color:var(--ink)}
.guide,.guide:not([data-step="2"]){position:relative;inset:auto;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;background:#fffefa;border:1px solid #d3bded;border-radius:14px;padding:9px 11px;margin:0;box-shadow:0 5px 16px #30203f10;z-index:2}
.guide[hidden]{display:none}
.guide-heading{grid-column:1/-1;display:flex;align-items:center;gap:7px;min-width:0}
.guide .guide-number{width:33px;height:25px;display:flex;align-items:center;justify-content:center;gap:1px;font-size:13px;flex-shrink:0;background:#7652a5;color:#fff;border-radius:8px}
.guide-number small{font-size:10px;opacity:.8}
.guide .guide-heading>b{font-size:13px;line-height:1.4}
.guide .guide-skip{margin-left:auto;min-height:28px;padding:3px;font-size:11px;white-space:nowrap}
.guide>p{font-size:12px;line-height:1.5;color:#62506f;margin:0;align-self:center;min-width:0}
.guide-actions{display:flex;align-items:flex-end;justify-content:flex-end;margin:0}
.guide-copy-row{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0}
.guide-copy-row>p{flex:1;min-width:0;font-size:12px;line-height:1.5;margin:0;color:#62506f}
.guide-copy-row>.guide-actions{flex:0 0 auto}
.guide-preview{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center}
.guide-preview>.sweet{width:28px;height:28px}
.guide .guide-actions .button{min-height:34px;font-size:12px;padding:6px 12px;border-radius:11px;white-space:nowrap}
.guide .guide-candy,.guide-heading>.sweet{width:30px;height:30px;flex-shrink:0}
.discovery .guide-heading>b{color:var(--purple-dark)}
.cell.guide-lit{box-shadow:inset 0 0 0 3px #7652a5;background:#fffbe9}
.cell.guide-dim{opacity:1}
.replay-guide{display:flex;margin:12px auto 0}
@container candy-viewport (max-height:700px){
  .guide,.guide:not([data-step="2"]){padding:7px 9px;gap:3px 6px}
  .guide>p{font-size:11px;line-height:1.4}
  .guide-copy-row>p{font-size:11px;line-height:1.4}
  .guide .guide-heading>b{font-size:12px}
  .guide .guide-number{height:23px}
  .guide .guide-skip{min-height:25px}
  .guide .guide-actions .button{min-height:31px;font-size:11px;padding:5px 10px}
}

@container candy-viewport (max-height:500px){
  .game-layout{padding-bottom:6px}
  .game-layout .board-section{--goal-height:36px;gap:3px}
  .mobile-goal{min-height:36px;padding:2px 8px}
  .guide,.guide:not([data-step="2"]){padding-top:5px;padding-bottom:5px}
  .tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{padding-top:4px}
  .tool-button{min-height:54px;padding-top:5px;padding-bottom:5px}
}

/* Open test access preserves the real completion states. */
.level-node.unplayed .node-circle{background:#ece5f3;color:#79608f;box-shadow:0 4px 0 #ddd0e8}
.level-node.unplayed .node-stars{opacity:.55}
.level-node.representative .node-circle{outline:2px solid #a685c8;outline-offset:5px}
.level-node.representative>small{color:#62428f;font-weight:700}
.level-node .representative-label{display:block;font-size:10px;color:#62428f;margin-top:4px;white-space:nowrap}
.candy-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0 14px}
.candy-tabs>button{min-height:36px;padding:7px 4px;border-radius:10px;background:#eee7f5;color:#705685;font-size:11px;font-weight:600}
.candy-tabs>button.active{background:#7652a5;color:#fff}
.candy-reference{display:grid;grid-template-columns:64px minmax(0,1fr);gap:4px 13px;align-items:center;text-align:left}
.candy-reference-art{grid-row:1/3;width:64px;height:64px;display:grid;place-items:center;align-self:start}
.candy-reference-art>.sweet,.candy-reference-art>.icon{width:60px;height:60px}
.candy-reference-art>.icon{color:#69a4bf}
.candy-reference>h3{font-size:16px;line-height:1.4;align-self:end}
.candy-reference>.fine-print{font-size:11px;line-height:1.6;margin:0;align-self:start;color:#786587}
.candy-reference>p:last-child{grid-column:1/-1;font-size:12px;line-height:1.7;margin-top:7px;color:#62506f}

/* Player review: shared wrappers, clear ice, and a dedicated bottom tool surface. */
.home-level-picker{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:3px}
.home-level-picker .level-step{width:44px;min-height:44px;display:grid;place-items:center;color:var(--purple);border-radius:10px}
.home-level-picker .level-step .icon{width:19px;height:19px}
.home-level-picker .level-step:hover:not(:disabled){background:#e9def5}
.home-level-picker .level-step:disabled{opacity:.25;cursor:default}
.home-level-picker .mini-trail{touch-action:pan-y;user-select:none;gap:4px;min-width:0}
.home-level-picker .mini{min-width:0}
.home-level-picker .mini .node-circle{width:clamp(32px,10cqw,43px);height:clamp(32px,10cqw,43px)}
.home-page .art-candy>.sweet{width:96%;height:96%}
.frozen>.sweet{opacity:1}
.ice-overlay{background:#b8efff25;border:2px solid #56b5d5;color:#247ba0;box-shadow:inset 0 0 0 1px #f5fdff;border-radius:8px}
.ice-overlay .icon{opacity:.9;width:54%;height:54%;filter:drop-shadow(0 1px 0 #fff)}
.game-layout{padding-bottom:0}
.board-section{--play-inset:12px}
.board-top .level-return{background:#e9def5;color:#513b69;border-radius:14px;padding:10px 11px;min-height:44px;max-width:47%;text-align:left;justify-content:flex-start}
.level-return .icon{color:#7652a5;width:16px;height:16px;flex-shrink:0}
.level-return small{display:block;color:#715884;margin-top:4px}
.board-top .level-return:hover{background:#e0cfee}
.tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{background:#7652a5;border-radius:18px 18px 0 0;margin:0 calc(var(--play-inset)*-1);width:calc(100% + var(--play-inset)*2);padding:12px var(--play-inset) 9px;gap:8px;isolation:isolate}
.tool-tray:after{content:"";position:absolute;left:0;right:0;top:100%;height:env(safe-area-inset-bottom);background:#7652a5;z-index:-1}
.tool-tray .tool-button{min-height:56px;box-shadow:none;justify-content:center;gap:7px;padding:9px 7px;border-radius:13px}
.tool-tray .tool-icon{width:30px;height:30px;flex-shrink:0}
.tool-tray .tool-name{flex:0 1 auto;font-size:12px}
.tool-tray .tool-button>b{border-color:#7652a5;top:-6px;right:5px;background:#fff;color:#62428f}
.tool-tray .tool-button.selected{background:#eadcf7;box-shadow:inset 0 0 0 2px #f6c95b}
.tool-tray .tool-button:disabled{opacity:.65}
.hint-slot{height:36px;flex:none;position:relative;z-index:10}
.hint-slot[hidden]{display:none}
.hint-bubble{position:absolute;top:0;max-width:100%;width:max-content;background:#62428f;color:#fff;padding:7px 12px;font-size:11px;line-height:1.4;border-radius:10px;white-space:nowrap;box-shadow:0 4px 12px #49345b26;pointer-events:none}
.hint-pointer{position:absolute;left:calc(var(--hint-point,50%) - 6px);width:12px;height:12px;top:calc(100% - 2px);transform:rotate(90deg);color:#62428f;stroke-width:3}
.hint-slot[data-edge=bottom] .hint-bubble{top:6px}
.hint-slot[data-edge=bottom] .hint-pointer{top:-9px;transform:rotate(-90deg)}
.shuffle-layer{position:absolute;inset:0;overflow:hidden;border-radius:inherit;z-index:12;pointer-events:none}
.shuffle-candy{position:absolute;display:grid;place-items:center;pointer-events:none}
.shuffle-candy>.sweet{width:96%;height:96%}
.board.is-shuffling .cell>.sweet{opacity:0}
.candy-help-modal{height:min(440px,calc(100cqh - 36px));display:flex;flex-direction:column;overflow:hidden}
.candy-help-modal .modal-body{flex:1;min-height:0}
.candy-help-modal .candy-tabs{margin-top:16px;margin-bottom:14px}
.candy-help-modal .candy-reference{min-height:142px;align-content:start}
.candy-help-modal .modal-actions{flex:none;margin-top:12px}
.candy-help-modal .candy-reference>p:last-child{min-height:44px}
@container candy-viewport (max-width:360px){
 .board-section{--play-inset:9px}
 .home-level-picker{grid-template-columns:44px minmax(0,1fr) 44px;gap:2px}
 .home-level-picker .level-step{width:44px}
 .home-level-picker .mini .node-circle{width:32px;height:32px;font-size:16px;border-radius:11px}
 .tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{gap:6px}
 .tool-tray .tool-button{gap:4px;padding-left:5px;padding-right:5px}
 .tool-tray .tool-name{font-size:11px}
 .tool-tray .tool-icon{width:27px;height:27px}
 .board-top .level-return{padding:7px 8px;gap:4px}
 .candy-help-modal .candy-reference{min-height:146px}
}
@container candy-viewport (max-height:700px){
 .tool-tray .tool-button{min-height:50px;padding-top:7px;padding-bottom:7px}
 .tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{padding-top:10px;padding-bottom:7px}
 .board-top .level-return{min-height:36px;padding-top:6px;padding-bottom:6px}
}
@container candy-viewport (max-height:500px){
 .tool-tray .tool-button{min-height:46px;padding-top:5px;padding-bottom:5px}
 .tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{padding-top:8px;padding-bottom:6px}
}

.candy-help-modal .candy-tabs>button{transition:none}
.candy-help-modal .candy-tabs>button:active{transform:none}

/* Round five: one composed hero and a map that fits the portrait canvas. */
.home-page .welcome-copy{display:block;padding:0;position:relative}
.home-page .welcome-intro{position:absolute;inset:0;pointer-events:none;z-index:4}
.home-page .welcome-intro h1{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;font-size:clamp(34px,12cqw,44px);line-height:1.12;letter-spacing:-1px;margin:0;text-shadow:0 2px 0 #f7f4fc,2px 0 0 #f7f4fc,-2px 0 0 #f7f4fc}
.home-page .welcome-intro .daily-checkin{top:14px;right:10px;pointer-events:auto}
.home-page .garden-art{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.home-page .candy-mosaic{--row-space:clamp(76px,24cqh,132px);--tile:clamp(24px,min(calc((100cqh - var(--row-space) - 24px)/2.6),calc((100cqw - 40px)/3.6)),76px);top:50%;left:50%;column-gap:calc(var(--tile)*.14);row-gap:var(--row-space);transform:translate(-50%,-50%) rotate(-8deg)}
.home-page .little-flower{left:14px;top:22px;z-index:3}
.home-page .floating-label{top:9%;right:22%;transform:rotate(5deg)}
.home-page .art-orbit{top:50%;left:50%;transform:translate(-50%,-50%);width:min(84cqw,82cqh);height:min(84cqw,82cqh)}
.home-page .orbit-two{width:min(98cqw,96cqh);height:min(98cqw,96cqh)}
.home-page .art-star-one{top:24%;left:5%}
.home-page .art-star-two{top:76%;right:5%}
.home-page .home-level-picker{grid-template-columns:32px minmax(0,1fr) 32px;gap:0}
.home-page .home-level-picker .level-step{width:32px;min-height:44px}
.home-page .home-level-picker .level-step .icon{width:18px;height:18px}
.home-page .mini-trail{justify-content:space-between;gap:4px}
.home-page .mini-trail:before{left:16px;right:16px}
.home-page .mini .node-circle{width:clamp(35px,11cqw,43px);height:clamp(35px,11cqw,43px)}
.home-page .start-button>.icon{position:static;right:auto}
.level-return-copy{display:flex;flex-direction:column;gap:2px}
.level-return-label{display:flex;align-items:baseline;justify-content:center;gap:4px;font-size:10px;font-weight:500}
.level-return-label .level-number{font-size:clamp(var(--moves-size),calc(var(--moves-size) + var(--game-extra,0px)*.07),40px);line-height:1;color:#7652a5;font-weight:800;font-variant-numeric:tabular-nums}
.level-return-copy small{font-size:9px;line-height:1.2;margin-top:0;text-align:center}
.board-top .level-return{padding:5px 9px;gap:5px;min-height:var(--status-height)}
.ice-overlay{background:linear-gradient(135deg,#dffaff45 0 14%,transparent 14% 76%,#94def32b 76%);box-shadow:inset 0 1px 0 #fff,inset 1px 0 0 #fff8}
.ice-overlay:before{content:"";position:absolute;left:3px;top:3px;width:27%;height:19%;border-top:2px solid #fff;border-left:2px solid #fff;border-radius:3px 0 0 0;opacity:.9}
.ice-overlay:after{content:"";position:absolute;right:3px;bottom:3px;width:24%;height:14%;border-bottom:1px solid #fff;border-right:1px solid #fff;border-radius:0 0 3px 0;opacity:.8}
#app:has(.map-page){overflow:hidden}
.map-page{height:100%;min-height:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.map-page .site-header{height:64px;flex:0 0 64px}
.map-page>main{flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px}
.map-page .map-heading{display:grid;gap:8px;padding:0}
.map-page .map-heading .text-button{min-height:24px;padding:3px 0;font-size:11px}
.map-page .map-heading h1{font-size:26px;margin-top:4px;line-height:1.2}
.map-page .map-heading p{font-size:11px;margin-top:5px;line-height:1.4}
.map-page .chapter-pager{height:32px;margin:0;gap:8px;font-size:11px;justify-content:space-between}
.map-page .chapter-pager .icon-button{width:32px;height:32px}
.map-page .chapter-pager .icon{width:18px;height:18px}
.map-page .map-canvas{height:100%;min-height:0;padding:8px 16px;border-radius:20px;container-type:size}
.map-page .level-path{height:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));row-gap:2px;column-gap:12px;align-items:stretch}
.map-page .level-path>.level-node:nth-child(n){grid-column:auto;grid-row:auto}
.map-page .level-path>.level-node:nth-child(3){grid-column:2;grid-row:2}
.map-page .level-path>.level-node:nth-child(4){grid-column:1;grid-row:2}
.map-page .level-path>.level-node:nth-child(7){grid-column:2;grid-row:4}
.map-page .level-path>.level-node:nth-child(8){grid-column:1;grid-row:4}
.map-page .level-node{height:100%;min-height:0;position:relative;padding-top:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.map-page .node-circle{width:clamp(30px,min(17cqw,calc(20cqh - 36px)),48px);height:clamp(30px,min(17cqw,calc(20cqh - 36px)),48px);font-size:20px;border-radius:14px;flex-shrink:0}
.map-page .node-stars{height:10px;margin:0;gap:1px;flex-shrink:0}
.map-page .node-stars .icon{width:10px;height:10px}
.map-page .level-node>small{font-size:9px;line-height:1.15;margin:0;flex-shrink:0}
.map-page .current-label{font-size:8px;line-height:1;top:0}
.map-page .path-line{left:25%;right:25%;top:9%;bottom:9%;height:auto;opacity:.5}
.map-page .map-decoration{opacity:.1;pointer-events:none}
.map-page .map-bottom{display:flex;flex-direction:column;gap:5px;margin:0;font-size:11px}
.map-page .map-bottom>span{font-size:10px;line-height:1.4}
.map-page .map-bottom>.button{width:100%;min-height:44px;padding:9px 16px;font-size:13px}
.map-page .site-footer{height:30px;flex:0 0 30px;padding:6px 0;font-size:9px}
@container home-frame (max-height:560px){
 .home-page .welcome-intro h1{font-size:30px;line-height:1.15}
 .home-page .welcome-intro .daily-checkin{top:3px;right:3px}
 .home-page .floating-label{font-size:8px;top:3%;right:28%}
 .home-page .little-flower{top:10px}
 .home-page .home-level-picker .level-step{width:28px}
 .home-page .home-level-picker{grid-template-columns:28px minmax(0,1fr) 28px}
 .home-page .mini .node-circle{width:35px;height:35px;font-size:17px}
}
@container candy-viewport (max-height:700px){
 .map-page .site-header{height:46px;flex-basis:46px}
 .map-page>main{gap:6px}
 .map-page .map-heading{gap:4px}
 .map-page .map-heading h1{font-size:22px;margin-top:2px}
 .map-page .map-heading p{font-size:10px;margin-top:3px}
 .map-page .site-footer{height:26px;flex-basis:26px;font-size:8px}
 .level-return-copy small{font-size:8px}
 .board-top .level-return{padding-top:3px;padding-bottom:3px}
}
@container candy-viewport (max-height:700px){
 .map-page .map-canvas{padding:10px 4px}
 .map-page .level-path{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5px 2px}
 .map-page .level-path>.level-node:nth-child(n){grid-column:auto;grid-row:auto}
 .map-page .level-path>.level-node:nth-child(6){grid-column:5;grid-row:2}
 .map-page .level-path>.level-node:nth-child(7){grid-column:4;grid-row:2}
 .map-page .level-path>.level-node:nth-child(8){grid-column:3;grid-row:2}
 .map-page .level-path>.level-node:nth-child(9){grid-column:2;grid-row:2}
 .map-page .level-path>.level-node:nth-child(10){grid-column:1;grid-row:2}
 .map-page .node-circle{width:clamp(29px,11cqw,38px);height:clamp(29px,11cqw,38px);font-size:18px;border-radius:12px}
 .map-page .path-line{left:9%;right:9%;top:27%;bottom:27%;border-left:0;border-right:3px dashed #d6c6e5;border-radius:24px}
 .map-page .level-node{gap:3px;padding-top:10px}
 .map-page .current-label{top:2px}
}

.home-page .chapter-preview{padding-left:0;padding-right:0}

.home-page .home-action .start-button>.icon:last-child{position:static;right:auto;margin:0}

.map-page .map-heading{grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch}

.home-page .welcome-intro{align-self:stretch;width:100%;height:100%;padding-right:0}


/* Round six: nine candies, a separate check-in, and stable board geometry. */
.home-page .welcome-copy{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:4px;grid-template-areas:none;padding:0}
.home-page .hero-artwork{position:relative;min-width:0;min-height:0;container-type:size;isolation:isolate}
.home-page .welcome-intro h1{top:50%;transform:translate(-50%,-50%);font-size:clamp(28px,10cqw,38px);line-height:1.05}
.home-page .candy-mosaic{--tile:clamp(18px,min(calc((100cqh - 24px)/4),calc((100cqw - 36px)/3.9)),80px);top:50%;grid-template-rows:repeat(3,var(--tile));gap:calc(var(--tile)*.12);transform:translate(-50%,-50%) rotate(-8deg)}
.home-page .art-candy:nth-child(n){display:grid}
.home-page .art-orbit{top:calc(50% + 14px);width:min(94cqw,96cqh);height:min(94cqw,96cqh)}
.home-page .orbit-two{width:min(100cqw,100cqh);height:min(100cqw,100cqh)}
.home-page .little-flower{top:12px;left:12px}
.home-page .floating-label{top:8px;right:0;font-size:8px}
.home-page .welcome-copy>.daily-checkin{position:static;justify-self:center;flex-direction:row;gap:7px;min-width:88px;min-height:40px;padding:3px 10px;border-radius:12px}
.home-page .daily-checkin-icon{width:30px;height:30px;border-radius:10px}
.home-page .daily-checkin-icon>.icon{width:21px;height:21px}
.home-page .daily-checkin-label{font-size:11px}
.level-return-label{gap:0;font-size:11px;white-space:nowrap}
.level-return-label>span{display:inline-flex;align-items:baseline;gap:2px}
.board-top .level-return{padding:8px;min-height:var(--status-height)}
.cell>.sweet{position:relative;z-index:1}
.cell>.ice-overlay{z-index:5}

.board-caption{height:30px;min-height:30px}
@container home-frame (max-height:560px){
 .home-page .welcome-copy>.daily-checkin{min-height:34px;padding:1px 8px}
 .home-page .daily-checkin-icon{width:26px;height:26px;border-radius:8px}
 .home-page .daily-checkin-icon>.icon{width:18px;height:18px}
}
@container candy-viewport (max-height:700px){
 .board-top .level-return{padding:6px}
 .level-return-label{font-size:10px}
 .board-caption{height:26px;min-height:26px}
}


/* The level and moves surfaces share one responsive height. */
.board-top{--status-card-height:clamp(var(--status-height),calc(var(--status-height) + var(--game-extra,0px)*.16),64px)}
.board-top .level-return,.board-top .move-counter{height:var(--status-card-height);min-height:var(--status-card-height);padding-top:0;padding-bottom:0;align-items:center;border-radius:14px}


/* Title spacing and tilt; preserve the original nine-candy grid. */
.home-page .welcome-intro h1{font-size:clamp(24px,min(10cqw,13cqh),36px);line-height:1.18;letter-spacing:.01em;transform:translate(-50%,-50%) rotate(-5deg)}


/* Round seven: a clear navigation row and a shared level/goal strip. */
.page .site-header{height:76px;flex:0 0 76px;align-items:center}
.game-layout .board-section{--goal-height:72px}
.board-top .move-counter{margin-left:0}
.play-navigation{display:flex;align-items:center;gap:0;flex-shrink:0;color:var(--purple)}
.play-navigation>button{position:relative;min-height:44px;min-width:44px;padding:8px;background:transparent;border-radius:8px;color:inherit;box-shadow:none}
.play-navigation>button+button:before{content:"";position:absolute;left:0;top:25%;bottom:25%;width:1px;background:#cbbbdb}
.play-navigation>button:hover{background:#e9e0f288}
.play-navigation .exit-button{width:46px;height:44px}
.play-navigation .icon{width:19px;height:19px}
.challenge-button{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;font-weight:700}
.mobile-goal{gap:0;padding:8px 12px}
.mobile-goal .level-return{align-self:stretch;position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:6px;min-width:90px;max-width:36%;padding:4px 10px 4px 0;background:transparent;border-radius:0;box-shadow:none;color:var(--ink)}
.mobile-goal .level-return:after{content:"";position:absolute;right:0;top:15%;bottom:15%;width:1px;background:#e1d6eb}
.mobile-goal .level-return:hover{color:var(--purple)}
.mobile-goal .level-return .icon{width:15px;height:15px;color:var(--purple);flex-shrink:0}
.mobile-goal .level-return-label{font-size:11px;gap:3px}
.level-goal-details{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px;padding-left:12px}
.goal-objective{display:flex;align-items:center;gap:6px;min-width:0}
.mobile-goal .goal-focus{gap:4px}
.mobile-goal .mobile-goal-note{max-width:none;font-size:11px;line-height:1.4;margin:0}
.goal-prefix{color:var(--purple)}
.level-goal-details .mobile-score{align-self:flex-end;font-size:10px;white-space:nowrap;line-height:1.2}
.level-goal-details .mobile-score>b{font-size:18px}
.tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{gap:0}
.tool-tray .tool-button{position:relative;justify-content:center;background:transparent;border-radius:0;box-shadow:none;color:#fff;gap:6px}
.tool-tray .tool-button:not(:first-of-type):before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:1px;background:#ffffff55}
.tool-tray .tool-button:hover:not(:disabled){background:#ffffff12;transform:none}
.tool-tray .tool-button.selected{background:#ffffff20;box-shadow:inset 0 -2px 0 #fff;border-radius:8px}
.tool-tray .tool-icon{background:transparent;color:#fff;border-radius:0}
.tool-tray .tool-name{flex:0 1 auto;color:inherit}
.tool-tray .tool-button:disabled{filter:none;opacity:.55}
@container candy-viewport (max-height:700px){
 .page .site-header{height:56px;flex-basis:56px}
 .game-layout .board-section{--goal-height:64px}
 .mobile-goal{padding:5px 9px}
 .level-goal-details{gap:2px;padding-left:9px}
 .mobile-goal .mobile-goal-note{font-size:10px}
}
@container candy-viewport (max-width:360px){
 .mobile-goal .level-return{min-width:80px;gap:4px;padding-right:7px}
 .mobile-goal .level-return-label{font-size:10px;gap:2px}
 .mobile-goal .level-return .icon{width:13px;height:13px}
 .goal-objective{gap:4px}
 .mobile-goal .goal-focus>.sweet{width:28px;height:28px}
 .mobile-goal .goal-focus>.ice-symbol{width:28px;height:28px}
 .mobile-goal #mobile-target{font-size:22px}
 .level-goal-details .mobile-score>b{font-size:16px}
 .play-navigation .exit-button{width:42px}
 .challenge-button{gap:4px;font-size:11px}
 .tool-tray .tool-button{gap:4px;padding-left:6px;padding-right:6px}
}

.mobile-goal .level-return-label{flex-direction:row;white-space:nowrap;align-items:baseline}


/* Round eight: four equal status columns and a pale square-ended tool tray. */
.game-layout .board-section{--goal-height:72px}
.board-top{justify-content:flex-end}
.mobile-goal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:8px 4px;align-items:stretch}
.mobile-goal .status-field{position:relative;min-width:0;max-width:none;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;margin:0;padding:0 4px;background:transparent;box-shadow:none;border-radius:0;color:var(--ink);font-size:11px}
.mobile-goal .status-field+.status-field:before{content:"";position:absolute;left:0;top:12%;bottom:12%;width:1px;background:#e1d6eb}
.mobile-goal .level-return:after{display:none}
.mobile-goal .status-caption,.mobile-goal .move-counter>span{font-size:10px;font-weight:500;line-height:1.2;color:var(--muted);white-space:nowrap}
.mobile-goal .level-return-label{display:flex;flex-direction:row;align-items:baseline;gap:2px;font-size:9px;line-height:1;white-space:nowrap}
.mobile-goal .level-return .icon{width:12px;height:12px;align-self:center;margin-left:2px}
.mobile-goal .level-number,.mobile-goal .move-counter>b,.mobile-goal #mobile-target{font-size:clamp(22px,6.7cqw,28px);font-variant-numeric:tabular-nums;line-height:1.1;font-weight:800;color:var(--purple)}
.mobile-goal .goal-focus{display:flex;align-items:center;justify-content:center;gap:3px;max-width:100%;min-height:30px}
.mobile-goal .goal-focus>.sweet,.mobile-goal .goal-focus>.ice-symbol{width:27px;height:27px}
.mobile-goal .mobile-score>b{font-size:clamp(22px,6.7cqw,28px);line-height:1.2;white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums;color:var(--purple)}
.mobile-goal #mobile-score.compact-value{font-size:clamp(13px,4cqw,18px)}
.mobile-goal #mobile-score.long-value,.mobile-goal #mobile-target.long-value{font-size:clamp(9px,2.8cqw,12px)}
.tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{background:#f0eaf7;border-radius:0;color:var(--purple-dark)}
.tool-tray .tool-button,.tool-tray .tool-icon{color:var(--purple-dark)}
.tool-tray .tool-button:not(:first-of-type):before{background:#cbbbdb}
.tool-tray .tool-button:hover:not(:disabled){background:#e8dff2}
.tool-tray .tool-button.selected{background:#e4d8f0;box-shadow:inset 0 -2px 0 var(--purple);border-radius:0}
.level-modal .modal-body>.level-howto{font-size:12px;line-height:1.6;margin-top:10px;text-align:left}
.level-modal .modal-body>.entry-goal{font-weight:700;color:var(--ink);margin-top:12px}
@container candy-viewport (max-height:700px){
 .game-layout .board-section{--goal-height:64px}
 .mobile-goal{padding-top:6px;padding-bottom:6px}
 .mobile-goal .status-field{gap:5px}
}
@container candy-viewport (max-width:360px){
 .mobile-goal .status-field{padding-left:2px;padding-right:2px}
 .mobile-goal .level-return-label{font-size:8px;gap:1px}
 .mobile-goal .level-return .icon{width:10px;height:10px;margin-left:1px}
 .mobile-goal .goal-focus>.sweet,.mobile-goal .goal-focus>.ice-symbol{width:22px;height:22px}
 .mobile-goal .status-caption{font-size:9px}
 .level-modal .modal-target{margin:14px 0 6px}
 .level-modal .modal-target>.sweet{width:60px;height:60px}
 .level-modal .modal-actions{margin-top:16px}
}


/* Round nine: the objective sits beside navigation, separate from statistics. */
.board-top{justify-content:space-between;min-height:44px;height:calc(max(var(--status-height),44px) + var(--game-extra,0px)*.5)}
.inline-goal{flex:1;min-width:0;display:flex;align-items:center;gap:8px;color:var(--ink)}
.inline-goal .goal-focus{display:flex;align-items:center;gap:4px;flex-shrink:0;min-width:0}
.inline-goal .goal-focus>.sweet,.inline-goal .goal-focus>.ice-symbol{width:34px;height:34px}
.inline-goal #mobile-target{font-size:28px;line-height:1.1;font-weight:800;color:var(--purple);font-variant-numeric:tabular-nums}
.inline-goal #mobile-target.long-value{font-size:13px}
.inline-goal-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.inline-goal-copy>span{font-size:10px;line-height:1.2;color:var(--muted)}
.inline-goal-text{font-size:11px;line-height:1.35;color:var(--ink);margin:0;overflow-wrap:normal;word-break:normal}
.mobile-goal{grid-template-columns:repeat(3,minmax(0,1fr))}
@container candy-viewport (max-width:360px){
 .board-top{gap:5px}
 .inline-goal{gap:5px}
 .inline-goal .goal-focus{gap:3px}
 .inline-goal .goal-focus>.sweet,.inline-goal .goal-focus>.ice-symbol{width:27px;height:27px}
 .inline-goal #mobile-target{font-size:24px}
 .inline-goal #mobile-target.long-value{font-size:11px}
 .inline-goal-text{font-size:10px}
 .inline-goal-copy>span{font-size:9px}
}

/* The level number is a read-only status, with no editing affordance. */
.mobile-goal .level-return,.mobile-goal .level-return:hover{cursor:default;color:var(--ink)}


/* The score keeps a small, explicit star estimate below its numeric value. */
.mobile-goal .mobile-score{gap:3px}
.mobile-goal .mobile-score>b{line-height:1}
.mobile-score-stars{display:flex;align-items:center;justify-content:center;gap:2px;height:12px;line-height:1;white-space:nowrap}
.mobile-score-stars>small{font-size:8px;line-height:1;color:var(--muted);margin-right:2px;font-weight:500}
.mobile-score-stars>.icon{width:12px;height:12px;flex-shrink:0}
.mobile-score-stars>.filled{fill:#dcad46;stroke:#b88725}
.mobile-score-stars>.empty{fill:none;stroke:#c6b6d7}
@container candy-viewport (max-width:360px){.mobile-score-stars>.icon{width:10px;height:10px}.mobile-score-stars{height:10px}}

/* Score settlement: compact fixed statistics, stable board and bottom tools. */
.board-top{height:76px}
.mobile-goal{height:72px;min-height:72px;margin:0 4px 10px;background:#fff}
.tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{margin-top:auto}
.mobile-goal .move-counter.urgent>b{color:#c84658}
#board-instruction.low-moves{color:#b6374b;font-weight:700}
.bonus-layer{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:12}
.bonus-meteor{position:absolute;left:0;top:0;width:72px;height:24px;transform-origin:0 0;filter:drop-shadow(0 0 5px #f6cd62)}
.bonus-meteor>svg{width:100%;height:100%;display:block}
.combo-label{white-space:nowrap;max-width:calc(100% - 16px);padding:9px 12px;pointer-events:none}
.combo-label.visible{animation:sweet-strike 900ms ease-out both}
@keyframes sweet-strike{0%{opacity:0;transform:translate(-50%,-50%) scale(.75)}20%,65%{opacity:1;transform:translate(-50%,-50%) scale(var(--combo-scale,1))}100%{opacity:0;transform:translate(-50%,-60%) scale(var(--combo-scale,1))}}
@container candy-viewport (max-height:700px){.board-top{height:44px}.mobile-goal{height:64px;min-height:64px;margin-bottom:2px}}
@media(prefers-reduced-motion:reduce){.combo-label.visible{animation:none;opacity:1;transform:translate(-50%,-50%)}}
.reduce-motion .combo-label.visible{animation:none;opacity:1;transform:translate(-50%,-50%)}

/* Guidance floats over the header; it reserves no board height. */
.guide,.guide:not([data-step="2"]){position:absolute;left:4px;right:4px;top:0;z-index:31;margin:0;box-shadow:0 7px 22px #30203f22}

.flower-modal .modal-subtitle{display:block;margin-top:9px;color:var(--muted)}

.flower-modal .flower-story{font-size:13px;line-height:1.9;text-align:left;color:#62506f;margin:8px 0 0}
.flower-modal .modal-actions{margin-top:20px}
@container candy-viewport (max-height:700px){.flower-modal .flower-story{font-size:12px;line-height:1.7}.flower-modal .modal-actions{margin-top:14px}}
@container candy-viewport (max-height:500px){.flower-modal{padding-top:21px;padding-bottom:16px}.flower-modal h2{font-size:20px}.flower-modal .flower-story{font-size:11px;line-height:1.6}.flower-modal .modal-subtitle{font-size:10px;margin-top:5px}.flower-modal .modal-actions{margin-top:12px;gap:7px}.flower-modal .button{min-height:40px}}

.guide[data-step="2"] .guide-heading{padding-right:68px}
.guide[data-step="2"] .guide-actions{position:absolute;right:9px;top:7px}

/* One settlement, one ordered fill; reopening shows the completed rating. */
.result-stars .settlement-star{position:relative;display:inline-block;width:40px;height:40px;flex:none}
.settlement-star>.star-outline,.settlement-star .icon{display:block;width:100%;height:100%;color:#dbb352;stroke-width:1.8}
.settlement-star>.star-outline{fill:none;stroke:#e7d5ac}
.settlement-star .star-color{position:absolute;inset:0;clip-path:inset(100% 0 0 0)}
.settlement-star .star-color>.filled{fill:#dfaf42;stroke:#dfaf42}

/* Verified plant cards: photographs, names and concise growing information. */
.flower-modal h2{margin-bottom:4px}
.flower-scientific{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:3px}
.flower-photo{display:block;width:200px;height:160px;max-width:100%;object-fit:cover;margin:12px auto;border-radius:12px}
.flower-modal .flower-story{font-size:12px;line-height:1.7;margin-top:8px}
.flower-facts{margin:9px 0 0;font-size:11px;line-height:1.6;text-align:left;color:#62506f}
.flower-facts>div{display:flex;gap:8px;margin-top:3px}
.flower-facts dt{flex:none;width:4em;font-weight:600}.flower-facts dd{margin:0}
.flower-modal .flower-season-note{font-size:10px;line-height:1.5;margin-top:5px;text-align:left}
.flower-sources{text-align:left;font-size:10px;line-height:1.6;margin-top:7px;overflow-wrap:anywhere;color:#62506f}
.flower-sources summary{cursor:pointer;width:max-content;color:var(--purple);min-height:24px;display:list-item}
.flower-sources a{color:var(--purple);text-decoration:underline;text-underline-offset:2px}
.flower-sources p{margin-top:5px}
.flower-modal .modal-actions{margin-top:13px}
@container candy-viewport (max-height:700px){.flower-photo{width:170px;height:120px;margin:8px auto}.flower-modal .flower-story{font-size:11px;line-height:1.6}.flower-facts{font-size:10px;margin-top:6px}.flower-scientific{font-size:11px}}
@container candy-viewport (max-height:500px){.flower-photo{width:140px;height:80px;margin:5px auto}.flower-modal .flower-story{margin-top:5px;font-size:10px;line-height:1.55}.flower-facts{font-size:10px;line-height:1.5;margin-top:5px}.flower-facts>div{margin-top:2px}.flower-modal .flower-season-note{font-size:9px;line-height:1.4;margin-top:4px}.flower-sources{margin-top:3px;font-size:9px}.flower-sources summary{min-height:19px}.flower-scientific{font-size:10px}.flower-modal .modal-actions{margin-top:8px}}


/* Nearby guidance stays outside the board's layout; the spotlight points to its target. */
.guide,.guide:not([data-step="2"]){right:auto;max-width:calc(100cqw - 24px);overflow:visible}
.coach-pointer{fill:none;stroke:#fff7cd;stroke-width:2.5;stroke-linecap:round}
.tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{background:#fff}
.mobile-goal .status-field{display:grid;grid-template-rows:12px 31px 13px;align-content:center;justify-items:center;align-items:center;gap:0}
.mobile-goal .status-caption,.mobile-goal .move-counter>span{font-size:10px;line-height:12px;align-self:center}
.mobile-goal .level-return-label{height:31px;align-items:baseline;justify-content:center;line-height:31px}
.mobile-goal .level-number,.mobile-goal .move-counter>b,.mobile-goal .mobile-score>b{line-height:31px;align-self:center}
.mobile-score-stars{height:13px;min-height:13px;margin:0;align-self:center}
.map-page .map-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.map-title-row>div{flex:1;min-width:0}
.map-page .map-heading .map-home{flex:none;white-space:nowrap;min-height:32px;padding-top:4px;align-self:flex-start}
.map-page .map-heading h1{margin-top:0}
.map-page .level-node>small{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.site-header .brand{white-space:nowrap}
@container candy-viewport (max-width:360px){.site-header .brand{font-size:17px;gap:4px}.site-header .brand-mark{width:30px;height:30px}.header-tools{gap:0}.resource{padding-left:7px;padding-right:7px}}
@container candy-viewport (max-height:500px){.mobile-goal .status-field{grid-template-rows:12px 27px 11px}.mobile-goal .level-return-label{height:27px;line-height:27px}.mobile-goal .level-number,.mobile-goal .move-counter>b,.mobile-goal .mobile-score>b{line-height:27px}.mobile-score-stars{height:11px;min-height:11px}}

/* Map return action has a clear surface and a text-only label. */
.map-page .map-heading .map-home{background:#eee5f7;border-radius:10px;padding:8px 12px;line-height:1.4;min-height:32px}
.map-page .map-heading .map-home:hover{background:#e5d8f0}

/* Small fallen sweets sit around the wooden sign's foot, outside the hero crop. */
.ground-candies{position:absolute;left:3%;bottom:-10px;width:clamp(78px,33cqw,129px);height:28px;z-index:21;pointer-events:none}
.ground-candy{position:absolute;left:var(--scatter-x);top:var(--scatter-y);width:var(--scatter-size);height:var(--scatter-size);transform:rotate(var(--scatter-angle)) scaleY(.72);filter:drop-shadow(0 1px 1px #62437926)}
.ground-candy>.sweet{display:block;width:100%;height:100%}

/* Keep the settings hit area while drawing a strictly circular hover/focus surface. */
.site-header .settings-button,.site-header .settings-button:hover:not(:disabled){position:relative;background:transparent;isolation:isolate}
.site-header .settings-button:before{content:"";position:absolute;left:50%;top:50%;width:36px;height:36px;border-radius:50%;transform:translate(-50%,-50%);background:transparent;transition:background .15s;pointer-events:none;z-index:-1}
.site-header .settings-button:hover:not(:disabled):before,.site-header .settings-button:focus-visible:before{background:#e8e0f1}
.site-header .settings-button:focus-visible{outline:none}
.site-header .settings-button:focus-visible:before{outline:3px solid #6b4b9d;outline-offset:2px}

/* Three inventory tools stay fixed; the free hint sits below the board. */
.tool-tray,.board-section:has(.guide:not([hidden])) .tool-tray{grid-template-columns:repeat(3,minmax(0,1fr))}
.tool-tray .tool-button{gap:4px;padding-left:4px;padding-right:4px}
.tool-tray .tool-icon{width:23px;height:23px}
.tool-tray .tool-name{font-size:11px;white-space:nowrap}
.tool-tray .tool-icon>.icon{width:22px;height:22px}
.board-wrap>.hint-slot{position:absolute;inset:0;height:auto;min-height:0;margin:0;padding:0;z-index:24;pointer-events:none;visibility:visible}
.board-wrap>.hint-slot[hidden]{display:none}
.board-caption{position:absolute;left:4px;right:4px;z-index:20;display:flex;justify-content:center;margin:0;padding:3px 6px;min-height:0;width:auto;pointer-events:none}
.board-caption[hidden]{display:none}
.board-caption #board-instruction{max-width:100%;background:#fffdf6ed;border-radius:7px;padding:4px 7px;font-size:10px;line-height:1.5;text-align:center}
.board-caption .inline-cancel{pointer-events:auto}
.cell .drop-badge{position:absolute;right:0;bottom:0;width:59%;height:59%;display:grid;place-items:center;background:#fff9e9;border:1px solid #b49bcb;border-radius:7px;color:#694498;z-index:2;box-shadow:0 2px 3px #43305e1f;pointer-events:none}
.cell .drop-badge>.icon{width:82%;height:82%;stroke-width:2}
.cell.popping .drop-badge{opacity:0}
@container candy-viewport (max-width:360px){.tool-tray .tool-name{font-size:10px}.tool-tray .tool-icon,.tool-tray .tool-icon>.icon{width:19px;height:19px}.tool-tray .tool-button{gap:3px;padding-left:2px;padding-right:2px}.cell .drop-badge{border-radius:5px}}
/* Navigation follows the existing in-game icon / divider / text controls. */
.map-page .map-title-row>div:first-child{min-width:0}
.map-page .map-navigation{flex:none;align-self:flex-start;margin-left:8px;gap:0}
.map-page .map-heading .map-home{display:grid;place-items:center;width:32px;height:34px;min-height:34px;padding:0;background:transparent;border-radius:50%}
.map-page .map-heading .map-home:hover{background:#eee5f7}
.map-navigation .challenge-button{height:34px;white-space:nowrap;padding-left:9px}
.map-navigation .icon{width:18px;height:18px}
/* Tools occupy the whole cell, never overlay a candy. */
.cell .board-tool{display:grid;place-items:center;width:96%;height:96%;background:transparent}
.cell .board-tool>.candy-tool{width:100%;height:100%}

.cell.popping .board-tool{opacity:0}
/* A transparent ice slab sits above both candy and tool artwork. */
.cell .ice-overlay{z-index:6;inset:0;border:2px solid #75c4e2;border-radius:9px;background:linear-gradient(135deg,#effdffad 0%,#b8e9fa75 45%,#81c9e870 75%,#e6faffb0 100%);box-shadow:inset 0 2px 3px #fffffff2,inset 0 -2px 4px #348cb64d;overflow:hidden}
.cell .ice-overlay:before{content:"";position:absolute;inset:1px;background:linear-gradient(132deg,transparent 18%,#ffffffd9 19%,#ffffffb8 26%,transparent 27%,transparent 55%,#ffffff80 56%,#ffffff80 61%,transparent 62%);pointer-events:none}
.cell .ice-overlay:after{content:"";position:absolute;inset:2px;border:1px solid #effeffab;border-radius:5px;pointer-events:none}
.cell.frozen>.sweet{opacity:.78}
@container candy-viewport (max-width:360px){.map-navigation .challenge-button{font-size:11px;padding-left:6px}.map-page .map-navigation{margin-left:3px}.cell .ice-overlay{border-radius:6px}}

/* A permanent compact action row keeps hint clicks out of board layout changes. */
.board-actions{flex:none;align-self:center;display:flex;align-items:center;justify-content:flex-end;width:100%;max-width:100%;height:32px}
.board-actions .hint-tool{min-height:32px;min-width:62px;justify-content:center;gap:5px;padding:3px 5px;font-size:11px;border-radius:8px;color:var(--purple-dark)}
.board-actions .hint-tool>.icon{width:17px;height:17px}
.board-actions .hint-tool:hover:not(:disabled){background:#ece4f5}
@container candy-viewport (max-height:500px){.board-actions{height:28px}.board-actions .hint-tool{min-height:28px}}

/* Restore the quiet play instruction beside the hint control. */
.board-actions{justify-content:space-between;gap:8px}
.board-actions .board-help{min-width:0;color:#756181;font-size:10px;line-height:1.35;text-align:left}
.board-actions .hint-tool{flex-shrink:0}
@container candy-viewport (max-width:360px){.board-actions .board-help{font-size:9px}}
/* Keep the home hit target square and its hover/focus surface circular. */
.map-page .map-heading .map-home,.map-page .map-heading .map-home:hover{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;align-self:center;background:transparent;isolation:isolate}
.map-page .map-heading .map-home:after{content:"";position:absolute;left:50%;top:50%;width:34px;height:34px;border-radius:50%;transform:translate(-50%,-50%);background:transparent;pointer-events:none;z-index:-1}
.map-page .map-heading .map-home:hover:after,.map-page .map-heading .map-home:focus-visible:after{background:#eee5f7}
.map-page .map-heading .map-home:focus-visible{outline:none}
.map-page .map-heading .map-home:focus-visible:after{outline:3px solid #6b4b9d;outline-offset:2px}
/* Flower-card collection entry and a scrollable, read-only seasonal album. */
.map-page .flower-collection{display:flex;align-items:center;justify-content:center;gap:0;max-width:100%;min-height:32px;padding:6px 8px;border:1px solid #e1d4ed;border-radius:9px;background:#f0eaf7;color:var(--purple-dark);font-size:10px;font-weight:600;line-height:1.4;white-space:nowrap;flex-shrink:0}
.map-page .flower-collection:hover{background:#e8dff2}
.map-page .flower-collection:active{background:#e4d8f0}
.map-page .flower-collection:focus-visible{outline:2px solid var(--purple);outline-offset:2px}

.flower-album-modal{display:flex;flex-direction:column;height:min(640px,calc(100cqh - 36px));overflow:hidden;padding:26px 18px 18px}
.flower-album-modal>h2{flex:none;font-size:21px}
.flower-album-modal>.modal-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.flower-album-modal .album-summary{flex:none;margin:8px 0 12px;color:#756181;font-size:12px;line-height:1.5}
.flower-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-content:start;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px}
.album-card{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;padding:6px;border-radius:10px;background:#f3edf8;color:#49365e;text-align:center}
.album-card:hover:not(:disabled){background:#e9dff3}
.album-photo,.album-placeholder{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}
.album-placeholder{display:grid;place-items:center;background:#e9e1f0;color:#ad9bbd;font-size:29px;font-weight:600}
.album-card-name{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.album-card>small{color:#756181;font-size:9px;line-height:1.5;white-space:nowrap}
.album-card:disabled{opacity:1;cursor:default}
@container candy-viewport (max-width:360px){.flower-album-modal{padding-left:12px;padding-right:12px}.flower-album-grid{gap:7px}.album-card{padding:5px}.album-card-name{font-size:11px}.album-card>small{font-size:8px}}
/* Chapter descriptions use the full map width, below title and navigation. */
.map-page .map-heading>.chapter-description{width:100%;margin:0;white-space:nowrap}

/* Inventory art uses the same soft body, underside and glint as the six candies. */
.candy-tool{display:block;width:24px;height:24px;flex-shrink:0;overflow:visible;pointer-events:none}
.tool-tray .tool-icon{width:28px;height:28px;background:transparent}
.tool-tray .tool-icon>.candy-tool{width:100%;height:100%}
.modal .tool-emblem,.modal .shop-icon{background:transparent;transform:none}
.tool-emblem>.candy-tool{width:72px;height:72px}
.shop-icon>.candy-tool{width:40px;height:40px}
#board-instruction>.candy-tool{width:22px;height:22px}
@container candy-viewport (max-height:630px){.tool-tray .tool-icon{width:24px;height:24px}}

/* The compact flower album entry sits beside the chapter title. */
.map-page .map-title-row{gap:6px;align-items:center}
.map-page .map-title-main{display:flex;align-items:center;gap:6px;min-width:0}
.map-page .map-title-main h1{white-space:nowrap;flex-shrink:0}
.map-page .map-navigation{align-self:center;margin-left:0}
@container candy-viewport (max-width:360px){.map-page .map-title-main{gap:4px}.map-page .map-title-main h1{font-size:22px}.map-page .flower-collection{padding-left:6px;padding-right:6px}.map-navigation .challenge-button{font-size:10px;padding-left:6px;padding-right:4px;gap:4px}}

/* One bounded swap -> three-candy match -> clear -> refill demonstration. */
.home-page .hero-match-board .art-candy{position:relative;transform:none}
.home-page .hero-match-board .hero-piece{display:grid;place-items:center;width:100%;height:100%}
.home-page .hero-match-board .hero-piece>.sweet{width:96%;height:96%;filter:drop-shadow(0 4px 3px #6e4b8119)}
.hero-match-board[data-demo-phase="swap"] :is(.art-candy-2,.art-candy-5){z-index:4}
.hero-demo-fx{position:absolute;inset:0;pointer-events:none;z-index:5}
.hero-spark-group{position:absolute;left:calc((var(--spark-column)*1.12 + .5)*var(--tile));top:calc(var(--tile)*.45)}
.hero-spark-group i{position:absolute;left:-3px;top:-3px;display:block;width:7px;height:7px;border-radius:2px;background:var(--spark-color);opacity:0;pointer-events:none}
