:root{--ink:#574373;--muted:#a092b3;--purple:#9670d4;--pink:#ef7fab;--line:#eae0f1;--font:'Baloo 2','Trebuchet MS',sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f6f0fa;color:var(--ink);font-family:var(--font);font-weight:600}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #ac7cd7;outline-offset:4px}button{transition:transform .18s,box-shadow .18s}button:not(:disabled):hover{transform:translateY(-2px)}button:not(:disabled):active{transform:translateY(1px)}svg{width:24px;height:24px;fill:currentColor;flex-shrink:0}.icon-library{width:0;height:0;position:absolute;overflow:hidden}.world-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;background:radial-gradient(ellipse at 70% 0,#fff3df88,transparent 40%),linear-gradient(180deg,#f7f1ff 0,#fbedf7 53%,#f0e8ff 100%)}.cloud{position:absolute;width:210px;height:46px;background:#fff9;border-radius:100px;filter:blur(.5px)}.cloud:before,.cloud:after{content:'';position:absolute;background:inherit;border-radius:50%;bottom:5px;width:95px;height:95px;left:30px}.cloud:after{width:70px;height:70px;left:110px}.cloud-one{top:26%;left:-60px;transform:scale(1.3)}.cloud-two{top:13%;right:-30px;transform:scale(.8)}.cloud-three{bottom:17%;right:12%;transform:scale(.6);opacity:.5}.bg-star{position:absolute;color:#d1b9ee;font-size:25px}.s1{left:14%;top:21%;transform:rotate(20deg)}.s2{right:17%;top:28%;color:#ebc2d9;font-size:40px}.s3{left:8%;bottom:30%;color:#d2b6e7}.hill{position:absolute;width:70vw;height:28vw;border-radius:50% 50% 0 0;bottom:-17vw;transform:rotate(-9deg);background:linear-gradient(140deg,#e2c9f0,#d8c5f1)}.hill-one{left:-18%;bottom:-12vw;opacity:.55}.hill-two{right:-25%;bottom:-10vw;background:linear-gradient(135deg,#d7e8ec,#b4d8d7);opacity:.5;transform:rotate(-20deg)}.hill-three{left:20%;width:80vw;bottom:-23vw;background:#edd0e3;transform:rotate(6deg)}.lollipop{position:absolute;bottom:3%;left:4%;height:180px;width:80px;transform:rotate(-18deg);opacity:.5}.lollipop:after{content:'';position:absolute;width:10px;top:55px;bottom:0;left:35px;background:#fff6ed;border-radius:5px}.lollipop i{display:block;position:absolute;z-index:1;width:80px;height:80px;border:7px solid #fff5f5;border-radius:50%;background:repeating-conic-gradient(#f4c2de 0deg 35deg,#ffedf7 35deg 70deg);box-shadow:inset -4px -5px 8px #ba76a522,3px 7px 10px #a078b019}.pop-two{left:auto;right:3%;bottom:7%;transform:rotate(15deg) scale(.7)}.pop-two i{background:repeating-conic-gradient(#c9b5ec 0deg 35deg,#efe8ff 35deg 70deg)}.topbar{height:100px;max-width:1360px;padding:0 44px;margin:auto;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:11px;font-size:29px;text-decoration:none;color:#725393;font-weight:800;letter-spacing:-1px}.brand-mark{width:43px;height:43px;display:grid;place-items:center;transform:rotate(-9deg);border-radius:15px;background:linear-gradient(135deg,#b992e5,#9971cc);box-shadow:0 5px 0 #e5d6f4,inset 0 2px 0 #ddc9f4}.brand-mark svg{color:#ffe4f0;width:25px;height:25px;filter:drop-shadow(0 2px 0 #875aaa)}.brand-light{color:#aa87be}.brand b{font-size:12px;color:#ad8bc8;border:1px solid #ddcde9;padding:0 6px;border-radius:6px;vertical-align:top;margin:9px 0 0 6px;display:inline-block;letter-spacing:.5px}.header-actions{display:flex;gap:12px;align-items:center}.offline-badge{font-size:12px;color:#9683aa;letter-spacing:.1px;display:flex;gap:7px;align-items:center;margin-right:13px}.offline-badge i,.save-dot{height:6px;width:6px;background:#88b9a7;border-radius:50%;box-shadow:0 0 0 3px #d5e8df75}.icon-button{position:relative;width:39px;height:39px;border-radius:13px;border:1px solid #fff;background:#fff7;color:#a28bb9;display:grid;place-items:center;box-shadow:0 3px 10px #9b7bab06}.icon-button svg{width:19px;height:19px}.mute-slash{position:absolute;width:24px;height:2px;background:currentColor;transform:rotate(-45deg);box-shadow:0 0 0 2px #f8f2fc}.icon-button[aria-pressed=true] .mute-slash{display:none}.game-shell{max-width:1240px;margin:0 auto;padding:0 32px}.chapter-heading{text-align:center;margin:11px 0 25px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#ad98bd}.chapter-heading h1{font-size:36px;line-height:1.2;font-weight:800;letter-spacing:-.6px;color:#72518e;margin:7px 0 5px}.chapter-heading h1 span{font-size:22px;position:absolute;color:#d6b171;margin:3px 0 0 11px}.chapter-heading p{font-size:13px;color:#ac92b1;margin:0}.play-layout{display:grid;grid-template-columns:210px minmax(330px,1fr) 230px;gap:26px;align-items:start;max-width:1150px;margin:0 auto}.journey-panel{padding-top:42px}.chapter-card{position:relative;border:1px solid #fff;border-radius:24px;background:linear-gradient(140deg,#fff9,#f0e5fb90);padding:22px;overflow:hidden;box-shadow:0 8px 32px #a18aba06}.mini-label{font-size:10px;letter-spacing:1.2px;color:#ad98bc}.chapter-card h2{font-size:25px;line-height:1.2;margin:9px 0 22px;color:#9472ae}.journey-path{display:flex;align-items:center;position:relative;z-index:1}.path-stop{width:36px;height:36px;border:2px solid #fff9;border-radius:13px;display:grid;place-items:center;background:#e9dff2;color:#baa8c8;font-size:15px;flex-shrink:0;box-shadow:0 3px 0 #dfd1e8}.path-stop.current{background:linear-gradient(#bd9be3,#a782d2);color:white;border-color:#e6d4f4;box-shadow:0 3px 0 #9e7ac1,0 5px 12px #ae89ce40}.path-stop.done{background:#cce3d7;color:#6b9b85;box-shadow:0 3px 0 #bad5c8}.path-dash{width:17px;border-top:2px dotted #d5c0e2;margin:0 3px}.chapter-card p{font-size:11px;line-height:1.7;color:#b29bbd;margin:20px 0 0}.chapter-decoration{font-family:Georgia,serif;position:absolute;color:#e6d6f2;font-size:120px;right:-27px;top:11px;line-height:1;transform:rotate(15deg);z-index:0}.howto-card{margin-top:25px;padding:0 13px}.sample-candies{display:flex;gap:7px;margin:20px 0 16px;align-items:center}.sample-candies i{display:block;width:25px;height:26px;transform:rotate(-15deg);border-radius:9px;background:linear-gradient(140deg,#fff0f5 1%,#ffb5cc 18%,#f77fa8 65%,#df628d);box-shadow:inset 0 2px 1px #ffeaf3,0 3px 3px #bd7d9b25}.sample-candies i:nth-child(2){transform:rotate(6deg)}.sample-candies i:nth-child(3){transform:rotate(19deg)}.howto-card h3{font-size:14px;color:#90769e;margin:0 0 7px}.howto-card p{font-size:12px;line-height:1.8;color:#b09bb9;margin:0}.tip-line{margin-top:13px;font-size:10px;color:#b19abd;display:flex;align-items:center;gap:5px}.tip-line svg{width:13px;height:13px;color:#cfb16c}.local-note{display:flex;gap:8px;align-items:center;margin:29px 10px;font-size:10px;color:#afa0b9}.save-dot{width:5px;height:5px}.board-column{min-width:0}.board-topline{display:flex;align-items:center;justify-content:space-between;padding:0 28px;height:43px}.level-pill{font-size:10px;letter-spacing:1.2px;color:#ab8fc1;display:flex;align-items:center;gap:7px}.level-pill b{font-size:20px;letter-spacing:0;color:#9071b2;line-height:1}.stars{display:flex;align-items:center;gap:7px;color:#ebc46b;filter:drop-shadow(0 2px 0 #fff3);font-size:25px;line-height:1}.stars span:nth-child(2){font-size:30px;margin-top:-6px}.stars span.dim{color:#d9cedf}.score-pill{display:flex;gap:5px;align-items:center;color:#ae91bf;font-size:14px;min-width:70px;justify-content:flex-end}.score-pill svg{width:13px;height:13px;color:#c5a4da}.board-stage{position:relative;width:100%;aspect-ratio:1/.99}.board-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.board-stage canvas:active{cursor:grabbing}.board-loading{position:absolute;inset:10%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;z-index:2;color:#ac8ec2;border-radius:40px;background:#f7eefe}.loading-candy{font-size:50px;color:#ed90b5;animation:float 1s ease-in-out infinite}.board-caption{position:absolute;bottom:1.1%;left:0;width:100%;display:flex;gap:9px;align-items:center;justify-content:center;font-size:8px;letter-spacing:1.5px;color:#b49cc3;pointer-events:none}.board-caption span{display:block;width:17px;height:1px;background:#d7c7e3}.board-float{position:absolute;left:50%;top:41%;transform:translate(-50%,-50%);pointer-events:none;font-size:37px;font-weight:800;color:#fff;text-shadow:0 3px 0 #c778ad,0 5px 14px #8854b466;text-align:center;line-height:1.1;white-space:nowrap;z-index:2;opacity:0}.board-float.show{animation:combo-pop 1s both}.board-float small{display:block;font-size:15px;letter-spacing:2px;margin-top:7px}.booster-bar{display:flex;justify-content:center;align-items:center;gap:15px;padding:14px 16px 11px;border:1px solid #fff;border-radius:24px;background:#fff8;box-shadow:0 5px 25px #9e70a508;max-width:475px;margin:4px auto 0}.booster-label{font-size:8px;letter-spacing:.7px;line-height:1.65;color:#b29bbf;margin-right:3px}.booster{background:none;border:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:#9c83aa;position:relative}.booster-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;border:2px solid #fff;position:relative;box-shadow:0 3px 0 #d8cbdc50}.booster-icon svg{width:22px;height:22px}.booster-icon.yellow{background:linear-gradient(#fff1bb,#ffe7a1);color:#c9a258}.booster-icon.mint{background:linear-gradient(#d5f4e7,#c1e8d7);color:#7fb29d}.booster-icon.pink{background:linear-gradient(#ffdeec,#f9c8dc);color:#d38fae}.booster-icon.plain{background:#f0e9f6;color:#b69cc6;box-shadow:none;border:0;width:36px}.booster-icon b{font-size:9px;position:absolute;right:-4px;top:-5px;border:2px solid #fff;background:#bb9bcf;color:#fff;border-radius:50%;width:19px;height:19px;line-height:15px}.booster-divider{height:32px;width:1px;background:#e8dfed;margin:0 1px}.booster[aria-pressed=true] .booster-icon{outline:3px solid #eb91b4;transform:rotate(-8deg)}.board-hint{font-size:11px;color:#b29cbd;text-align:center;margin:13px 0 0}.challenge-panel{padding-top:43px}.boss-card{border:1px solid white;background:linear-gradient(145deg,#fff9,#fff5);border-radius:24px;padding:18px 19px 14px;text-align:center;box-shadow:0 8px 32px #a18aba06}.boss-tag{font-size:9px;letter-spacing:1.1px;color:#b395bc}.boss-portrait{position:relative;width:100%;height:180px;margin:6px auto 2px}.boss-portrait canvas{position:absolute;inset:0;width:100%;height:100%}.portrait-orbit{position:absolute;width:149px;height:149px;top:11px;left:50%;margin-left:-74.5px;border-radius:50%;background:radial-gradient(circle at 50% 35%,#fff5db,#f9e7e5aa);border:1px solid #fff9;box-shadow:0 0 0 6px #fff5,0 0 0 7px #ecdfef77}.portrait-star{position:absolute;right:8px;top:34px;font-size:21px;color:#e8c173;transform:rotate(14deg)}.boss-level{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);border:2px solid white;padding:1px 10px;border-radius:8px;background:#f5dcdf;color:#c28fa3;font-size:8px;letter-spacing:1px;white-space:nowrap}.boss-card h2{font-size:20px;margin:8px 0 0;color:#96739c;line-height:1.4}.boss-card>p{font-size:10px;color:#b599b5;margin:3px 0 18px}.hp-label{display:flex;justify-content:space-between;align-items:center;font-size:8px;color:#b095b2}.hp-label span{display:flex;align-items:center;gap:3px}.hp-label svg{width:9px;height:9px;color:#e394b0}.hp-label b{font-size:9px;font-weight:600;color:#bc91ac}.hp-track{height:11px;border-radius:8px;background:#eee2eb;padding:2px;margin-top:5px;border:1px solid #fff;overflow:hidden}.hp-track div{height:100%;width:100%;border-radius:5px;background:linear-gradient(90deg,#ed9dbd,#e880a7);box-shadow:inset 0 1px 0 #ffc6dc;transition:width .4s ease}.boss-card .boss-tip{font-size:10px;line-height:1.7;margin:12px 0 0;color:#b39bb9}.moves-card{margin-top:16px;padding:17px 18px;border-radius:20px;border:1px solid white;background:linear-gradient(120deg,#fff9,#f9e8f3aa);display:flex;align-items:center;justify-content:space-between}.moves-card .mini-label{color:#bd95b5;font-size:9px}.moves-card p{font-size:9px;color:#bc9ab6;margin:2px 0 0}.moves-card strong{font-size:39px;font-weight:800;color:#d28baa;line-height:1}.moves-card.low strong{color:#d05b7e;animation:float .8s ease-in-out infinite}.best-card{display:flex;gap:10px;align-items:center;margin:20px 17px}.best-card>span{font-size:33px;color:#c8a2d5}.best-card div{display:flex;flex-direction:column}.best-card .mini-label{font-size:8px;letter-spacing:1px}.best-card strong{font-size:18px;color:#b394c2;line-height:1.1}footer{text-align:center;color:#bca6c6;font-size:10px;letter-spacing:.2px;margin:26px 0 23px}footer span{margin-left:4px;color:#c4b0cc}.toast{position:fixed;bottom:32px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;max-width:90vw;width:max-content;background:#73528eea;backdrop-filter:blur(15px);box-shadow:0 8px 30px #76558c25;color:#fff2fb;border:1px solid #c9a9e060;padding:11px 22px;border-radius:16px;font-size:13px;transition:opacity .2s,transform .2s;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{color:var(--ink);font-family:var(--font);border:2px solid white;border-radius:30px;background:linear-gradient(150deg,#fff9fd,#f5ebfc);padding:36px;width:400px;max-width:calc(100vw - 32px);text-align:center;box-shadow:0 24px 100px #73508730}dialog::backdrop{background:#68517a45;backdrop-filter:blur(7px)}.dialog-close{position:absolute;right:14px;top:9px;background:none;border:0;font-size:26px;color:#b89bc8}.modal-kicker{font-size:9px;letter-spacing:1.5px;color:#b699c4}dialog h2{font-size:27px;margin:9px 0 13px;color:#8b62a5;line-height:1.2}dialog p{font-size:13px;line-height:1.7;color:#ad94b9}.primary-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;border-radius:16px;border:1px solid #c1a0df;background:linear-gradient(#b995de,#a782ce);box-shadow:0 4px 0 #9571b9;color:white;padding:11px 16px;margin-top:24px;font-size:15px}.primary-button svg{width:17px;height:17px}.text-button{display:block;width:100%;margin-top:15px;background:none;border:0;color:#ac8abc;font-size:12px;padding:6px}.setting-row{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:17px 0;border-bottom:1px solid #ecdeef;font-size:15px;gap:18px}.setting-row small{display:block;font-size:10px;font-weight:600;color:#b29abd;margin-top:3px}.setting-row input{width:20px;height:20px;accent-color:#ac83cf;cursor:pointer;flex-shrink:0}.modal-note{font-size:10px;margin:22px 0 0}.result-stars{color:#efc369;font-size:52px;letter-spacing:4px;line-height:1.2;margin-bottom:18px;filter:drop-shadow(0 3px 0 #dfb25420)}.result-score{display:flex;flex-direction:column;border:1px solid #e8d8ef;background:#fff7;border-radius:19px;padding:13px;margin-top:19px}.result-score span{font-size:11px;color:#b297c2}.result-score strong{font-size:35px;color:#a377bc;line-height:1.3}.result-stars.lost{color:#d5bce4;font-size:48px}.reduced-motion *{animation-duration:.01ms!important;transition-duration:.01ms!important}@keyframes float{50%{transform:translateY(-5px)}}@keyframes combo-pop{0%{opacity:0;transform:translate(-50%,-40%) scale(.6)}18%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}35%,70%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-85%) scale(.95)}}
@media(min-width:1450px){.topbar{height:115px}.chapter-heading{margin-top:18px;margin-bottom:30px}.game-shell{max-width:1320px}.play-layout{max-width:1220px;grid-template-columns:220px minmax(360px,1fr) 240px;gap:32px}.chapter-heading h1{font-size:40px}}
@media(max-width:1050px){.play-layout{grid-template-columns:minmax(330px,1fr) 210px;max-width:830px;gap:18px}.journey-panel{display:none}.game-shell{padding:0 24px}.topbar{height:85px}.chapter-heading{margin:6px 0 20px}.challenge-panel{padding-top:42px}.boss-card{padding:16px}.board-stage{max-width:580px;margin:auto}footer{margin-top:22px}}
@media(max-width:650px){.topbar{height:72px;padding:0 20px}.brand{font-size:24px;gap:9px}.brand-mark{width:36px;height:36px;border-radius:12px}.brand-mark svg{width:21px;height:21px}.brand b{font-size:10px;margin-top:7px}.header-actions{gap:7px}.icon-button{width:33px;height:33px;border-radius:11px}.offline-badge{font-size:0;margin-right:5px;gap:0}.offline-badge i{width:7px;height:7px}.chapter-heading{margin:9px 0 16px}.eyebrow{font-size:7px;letter-spacing:1.7px}.chapter-heading h1{font-size:28px;margin-top:6px}.chapter-heading h1 span{font-size:17px;margin-left:6px}.chapter-heading p{font-size:11px}.game-shell{padding:0 9px}.play-layout{display:flex;flex-direction:column;gap:6px}.challenge-panel{order:0;width:100%;padding:0 14px;display:flex;gap:9px;align-items:stretch}.boss-card{position:relative;flex:1;min-width:0;padding:11px 13px 12px 78px;text-align:left;border-radius:19px;min-height:100px}.boss-tag{font-size:6px;letter-spacing:.6px}.boss-portrait{position:absolute;left:3px;top:3px;width:75px;height:83px;margin:0}.portrait-orbit{width:61px;height:61px;top:9px;margin-left:-30px;box-shadow:0 0 0 3px #fff5,0 0 0 4px #ecdfef77}.portrait-star{font-size:11px;top:12px;right:3px}.boss-level{font-size:5px;border-width:1px;border-radius:4px;bottom:1px;padding:0 5px}.boss-card h2{font-size:14px;margin:1px 0 3px}.boss-card>p{display:none}.hp-label{font-size:6px}.hp-label svg{width:7px;height:7px}.hp-label b{font-size:7px}.hp-track{height:9px;margin-top:4px}.moves-card{width:86px;flex-shrink:0;flex-direction:column;text-align:center;justify-content:center;padding:8px;margin:0;border-radius:19px}.moves-card .mini-label{font-size:7px;letter-spacing:.7px}.moves-card p{display:none}.moves-card strong{font-size:33px;line-height:1.15}.best-card{display:none}.board-column{order:1;width:100%}.board-topline{padding:0 25px;height:37px}.level-pill{font-size:9px}.level-pill b{font-size:17px}.stars{font-size:22px;gap:6px}.stars span:nth-child(2){font-size:26px;margin-top:-5px}.score-pill{font-size:13px}.board-stage{aspect-ratio:1/.98;max-width:480px}.board-caption{font-size:7px;bottom:.2%;letter-spacing:1px}.booster-bar{max-width:360px;margin:9px auto 0;padding:10px 13px 8px;gap:15px;border-radius:21px}.booster-label{font-size:7px;letter-spacing:.4px}.booster-icon{width:39px;height:39px;border-radius:13px}.booster-icon svg{width:21px;height:21px}.booster{font-size:9px;gap:4px}.board-hint{font-size:10px;margin:11px 0 0}footer{font-size:8px;margin:19px 0 18px}footer span{display:none}.cloud-one{top:30%;left:-140px}.lollipop{display:none}.toast{font-size:12px;padding:10px 16px;bottom:22px}.board-float{font-size:32px}dialog{padding:32px 24px}.boss-card .boss-tip{display:none}}
@media(max-width:370px){.chapter-heading h1{font-size:25px}.booster-bar{gap:10px}.challenge-panel{padding:0 10px}.boss-card{padding-left:73px}.hp-label span{font-size:5px}.moves-card{width:75px}}
/* Keep the full board and boosters visible on ordinary laptop screens. */
@media(min-width:1051px){.topbar{height:78px}.chapter-heading{margin:0 0 12px}.chapter-heading h1{font-size:34px}.play-layout{grid-template-columns:195px minmax(330px,510px) 215px;gap:25px;justify-content:center;max-width:970px}.chapter-heading p{line-height:1.4}.chapter-heading .eyebrow{line-height:1.5}.board-topline{height:38px}.journey-panel,.challenge-panel{padding-top:38px}.boss-portrait{height:164px}.portrait-orbit{width:139px;height:139px;margin-left:-69.5px;top:7px}.boss-card{padding:16px 17px 14px}.chapter-card{padding:20px}.chapter-card h2{font-size:24px}.path-stop{width:33px;height:33px}.path-dash{width:13px}.booster-bar{margin-top:0}footer{margin:18px 0}}
@media(min-width:1051px) and (max-height:820px){.topbar{height:64px}.chapter-heading h1{font-size:29px}.chapter-heading{margin-bottom:6px}.chapter-heading p{font-size:11px}.play-layout{grid-template-columns:180px minmax(330px,450px) 200px;gap:20px;max-width:870px}.board-topline{height:34px}.journey-panel,.challenge-panel{padding-top:34px}.howto-card{margin-top:18px}.boss-portrait{height:147px}.portrait-orbit{width:122px;height:122px;margin-left:-61px}.boss-card{padding:14px}.boss-card h2{font-size:18px}.boss-card>p{margin-bottom:12px}.booster-bar{padding:10px 13px 7px;gap:13px}.board-hint{margin-top:9px}footer{margin:12px 0}.chapter-card h2{font-size:22px}.path-stop{width:30px;height:30px}.path-dash{width:12px;margin:0 2px}.chapter-card{padding:18px}.chapter-card p{margin-top:15px}.best-card{margin-top:13px}}
/* Softer scenery, readable game instructions. */
.howto-card p{color:#907c9d}.mini-label{color:#927da3}.board-hint{color:#927ba2}.boss-card>p,.boss-card .boss-tip{color:#9c7e9f}.hp-label{color:#96759b}.hp-label b{color:#a37593}.booster{color:#8e729e}.chapter-card p{color:#9a81a7}.moves-card .mini-label{color:#a57e9f}.moves-card p{color:#a1859f}.local-note{color:#94839f}
/* Vivid candy edition and hands-on special-candy playground. */
[hidden]{display:none!important}
:root{--ink:#543270;--muted:#82609c;--purple:#8c3bcd;--pink:#ef3587;--line:#d7b9ed}
.world-bg{background:radial-gradient(ellipse at 77% 0,#ffe8a577,transparent 42%),linear-gradient(165deg,#e9d8ff 0%,#ffe0ed 52%,#d9cbff 100%)}
.cloud{background:#fff9}.hill-one{opacity:.75;background:linear-gradient(140deg,#cba2f1,#bd8ee6)}.hill-two{opacity:.65;background:linear-gradient(135deg,#aee5dc,#79cbbd)}.hill-three{background:#f0afd3}.lollipop{opacity:.8}.brand{color:#7334ae}.brand-light{color:#a04bc4}.brand-mark{background:linear-gradient(135deg,#bd66e8,#8732ca);box-shadow:0 5px 0 #d6b5ef,inset 0 2px 0 #d4a0ff}.chapter-heading h1{color:#71329a}.eyebrow{color:#a279b4}.chapter-heading p{color:#9a619e}.chapter-card{background:linear-gradient(140deg,#fff9,#e9d5fcdd);box-shadow:0 10px 35px #8b3fa315}.chapter-card h2{color:#8a47b3}.path-stop.current{background:linear-gradient(#be74ed,#8f43c8);box-shadow:0 3px 0 #7331a5,0 5px 12px #a24cce50}.mini-label,.howto-card h3{color:#86519e}.howto-card p{color:#90619a}.sample-candies i{background:linear-gradient(140deg,#ffc6de,#ff318a 64%,#d71463)}.level-pill,.level-pill b,.score-pill{color:#8a46b1}.stars{color:#ffc021;filter:drop-shadow(0 2px 0 #d8901f44)}.boss-card{background:linear-gradient(145deg,#fffafc,#ffe8f4bb);box-shadow:0 10px 35px #963a8c13}.portrait-orbit{background:radial-gradient(circle at 50% 35%,#ffe28c,#ffb4d5aa);border-color:#fff}.boss-card h2{color:#a23b91}.boss-card>p,.boss-card .boss-tip{color:#9a5e99}.hp-track{background:#dcb0d5}.hp-track div{background:linear-gradient(90deg,#ff7a9e,#ee2588);box-shadow:inset 0 1px 0 #ffbdd9}.moves-card{background:linear-gradient(120deg,#fffc,#ffd5ed)}.moves-card strong{color:#d5438e}.booster-bar{background:#fffc;border-color:#fff;box-shadow:0 6px 25px #963a8c14}.booster-icon.yellow{background:linear-gradient(#ffeb86,#ffc539);color:#a8750b}.booster-icon.mint{background:linear-gradient(#9cf2cb,#53d5a0);color:#278e69}.booster-icon.pink{background:linear-gradient(#ffb5d7,#fa72b0);color:#b32d70}.booster-icon b{background:#aa4aca}.booster,.board-hint{color:#89529e}.toast{background:#7332a8ed}.primary-button{background:linear-gradient(#b85ce6,#8733c5);box-shadow:0 4px 0 #68279b;border-color:#c48aeb}
.mode-switch{display:flex;justify-content:center;align-items:center;gap:4px;padding:4px;background:#fff8;border:1px solid #fff;border-radius:14px;width:max-content;max-width:100%;margin:9px auto 0;box-shadow:0 4px 18px #7a389c0b}.mode-switch button{border:0;border-radius:10px;background:transparent;color:#aa76b3;font-size:11px;padding:5px 12px;display:flex;gap:5px;align-items:center;white-space:nowrap}.mode-switch svg{width:13px;height:13px}.mode-switch button[aria-pressed=true]{background:linear-gradient(120deg,#a550d5,#8734bb);color:#fff;box-shadow:0 3px 7px #8430a733}.mode-switch #lab-toggle[aria-pressed=true]{background:linear-gradient(110deg,#d94cba,#8c3ed3)}
.boss-style-picker{display:flex;flex-direction:column;align-items:stretch;gap:3px;margin:9px 0 13px;text-align:left}.boss-style-picker>span{font-size:7px;letter-spacing:1px;color:#b17ab2}.boss-style-picker select{font:inherit;font-size:11px;padding:5px 9px;border-radius:9px;border:1px solid #e0b4df;background:#fff9;color:#974c9c;outline-color:#b060d5;cursor:pointer}.boss-card>p{margin-bottom:5px}
.lab-guide{padding:21px 15px;border:1px solid #fff;border-radius:24px;background:linear-gradient(145deg,#fff9,#efccff88)}.lab-guide h2{font-size:25px;color:#893cae;line-height:1.25;margin:12px 0}.lab-guide p{font-size:12px;line-height:1.8;color:#9a62a5}.lab-guide>div{display:flex;gap:9px;align-items:center;margin:17px 0}.lab-guide b{font-size:15px;border-radius:10px;background:#fff9;color:#a34ac2;min-width:37px;padding:5px 3px;text-align:center}.lab-guide>div:nth-of-type(2) b{background:#dfb2ff;color:#7c299f}.lab-guide>div:nth-of-type(3) b{background:#ffc0d7;color:#be3678}.lab-guide>div>span{font-size:10px;color:#975ba8}.lab-guide .lab-unlimited{font-size:11px;padding-top:10px;border-top:1px solid #dfbce8;color:#b34c9b}.lab-mode .journey-panel .chapter-card,.lab-mode .journey-panel .howto-card{display:none}.lab-mode .journey-panel{padding-top:38px}.lab-mode .booster-bar{display:none}.lab-mode .board-caption{color:#9f67b1}.lab-mode .board-topline .stars{opacity:.45}
.lab-tools{border:1px solid #fff;background:#fff9;border-radius:20px;padding:12px 13px;box-shadow:0 8px 25px #8b3d9a15;margin:2px 0 0}.lab-tools-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.lab-tools-heading>span{display:flex;align-items:center;gap:5px;font-size:8px;color:#a368b5;letter-spacing:.65px}.lab-tools-heading svg{width:12px;height:12px}.lab-tools-heading button{display:flex;align-items:center;gap:4px;border:0;background:#eddbfa;color:#a060b8;border-radius:7px;padding:4px 7px;font-size:9px}.effect-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.effect-buttons button{border:2px solid white;border-radius:12px;display:flex;flex-direction:column;align-items:center;padding:4px 0 5px;color:white;box-shadow:0 3px 0 #a576b92b}.effect-buttons button b{font-size:20px;line-height:1.2;text-shadow:0 2px 0 #0001}.effect-buttons button span{font-size:8px;white-space:nowrap}.fx-row{background:linear-gradient(135deg,#28bde8,#2684db)}.fx-col{background:linear-gradient(135deg,#fc74a7,#d7388b)}.fx-bomb{background:linear-gradient(135deg,#b369ef,#7133c6)}.fx-wrapped{background:linear-gradient(135deg,#ffb53a,#f47c30)}.fx-mix{background:linear-gradient(135deg,#f16fb2,#aa4ed2)}.effect-buttons button[aria-pressed=true]{outline:2px solid #b04cce;outline-offset:1px;transform:translateY(-1px)}.lab-action{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:10px}.lab-action>span{font-size:9px;line-height:1.4;color:#a066b1}.lab-action button{flex-shrink:0;border:0;border-radius:10px;font-size:10px;color:#fff;background:linear-gradient(115deg,#dd54b7,#9240ce);padding:6px 10px;box-shadow:0 3px 0 #6d2a9a}.lab-mode .board-hint{font-size:10px;margin-top:9px}.board-float{font-size:27px;text-shadow:0 3px 0 #9d298b,0 0 20px #7c219d,0 5px 20px #591981;letter-spacing:-.4px}.board-float small{font-size:12px;letter-spacing:1px}
@media(min-width:1051px){.topbar{height:65px}.chapter-heading h1{font-size:31px}.chapter-heading{margin-bottom:6px}.play-layout{grid-template-columns:190px minmax(330px,470px) 225px;max-width:935px}.lab-mode .play-layout{grid-template-columns:190px minmax(330px,430px) 235px;max-width:905px}.boss-portrait{height:175px}.boss-card{padding:15px}.lab-mode .boss-portrait{height:211px}.lab-mode .portrait-orbit{width:160px;height:160px;margin-left:-80px;top:21px}.chapter-card{padding:18px}.path-dash{width:11px}footer{margin-top:13px}}
@media(min-width:1051px) and (max-height:820px){.topbar{height:55px}.chapter-heading h1{font-size:27px}.mode-switch{margin-top:6px}.play-layout{grid-template-columns:180px minmax(330px,415px) 205px;max-width:850px;gap:20px}.lab-mode .play-layout{grid-template-columns:180px minmax(330px,380px) 205px;max-width:805px;gap:20px}.boss-portrait{height:137px}.lab-mode .boss-portrait{height:170px}.lab-mode .portrait-orbit{width:130px;height:130px;margin-left:-65px}.boss-style-picker{margin:6px 0 9px}.lab-tools{padding:9px 11px}.lab-guide{padding:16px 12px}.lab-guide h2{font-size:22px}.lab-guide p{font-size:10px}.lab-guide>div{margin:13px 0}}
@media(max-width:1050px) and (min-width:651px){.lab-mode .play-layout{grid-template-columns:minmax(330px,1fr) 215px}.lab-mode .lab-tools{margin:0 10px}}
@media(max-width:650px){.mode-switch{margin-top:10px}.mode-switch button{font-size:9px;padding:5px 10px}.chapter-heading h1{font-size:26px}.chapter-heading{margin-bottom:13px}.boss-card{min-height:119px;padding-bottom:10px}.boss-style-picker{margin:4px 0 6px}.boss-style-picker>span{display:none}.boss-style-picker select{font-size:8px;padding:2px 5px;border-radius:6px;width:100%;height:22px}.boss-portrait{height:99px;top:8px}.boss-card h2{font-size:13px}.portrait-orbit{top:16px}.boss-level{bottom:5px}.lab-mode .boss-portrait{height:99px}.lab-tools{margin:5px 7px 0;padding:10px 11px}.lab-action>span{font-size:8px}.lab-action button{font-size:9px;padding:6px 8px}.lab-tools-heading>span{font-size:7px}.lab-tools-heading button{font-size:8px}.effect-buttons button b{font-size:21px}.effect-buttons button span{font-size:8px}.lab-mode .board-hint{font-size:9px;margin-top:11px}.lab-mode footer{margin:14px 0}.board-float{font-size:23px}.board-float small{font-size:10px}.moves-card .mini-label{font-size:6px}.hp-label{font-size:5px}.hp-label b{font-size:6px}}
.board-topline{position:relative}.effect-readout{position:absolute;left:50%;top:50%;transform:translate(-50%,-40%);font-size:10px;font-weight:800;letter-spacing:.8px;color:#943caf;background:#f8e8ff;padding:5px 9px;border-radius:10px;border:1px solid #fff;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s,transform .15s;z-index:3}.effect-readout.show{opacity:1;transform:translate(-50%,-50%)}.board-topline:has(.effect-readout.show) .stars{opacity:0}.board-float{font-size:27px;top:21%;pointer-events:none}.lab-mode .board-hint{color:#8a529d}
@media(max-width:650px){.effect-readout{font-size:8px;letter-spacing:.3px;padding:4px 7px}.board-float{font-size:24px}}
.candy-missile{position:fixed;left:0;top:0;width:16px;height:9px;border-radius:60% 45% 45% 60%;background:linear-gradient(180deg,#fff,var(--shot-color));box-shadow:0 0 7px #fff,0 0 16px var(--shot-color);z-index:12;pointer-events:none;transform-origin:center}.candy-missile:before{content:'';position:absolute;right:9px;top:2px;width:47px;height:5px;border-radius:70% 0 0 70%;background:linear-gradient(90deg,transparent,var(--shot-color),#fff);filter:blur(1px)}.boss-portrait:after{content:'';position:absolute;inset:17% 12%;border:3px solid #ffda78;border-radius:50%;opacity:0;pointer-events:none}.boss-portrait.boss-struck:after{animation:boss-impact .42s ease-out}.boss-test-button{display:block;margin:7px auto 10px;padding:5px 12px;border:1px solid #e0b5ec;border-radius:12px;background:#f7e5ff;color:#9945b5;font-size:10px}.boss-test-button[hidden]{display:none}@keyframes boss-impact{0%{transform:scale(.45);opacity:.9}100%{transform:scale(1.45);opacity:0}}.reduced-motion .boss-portrait.boss-struck:after{animation:none}
@media(max-width:650px){.boss-test-button{font-size:8px;padding:2px 7px;margin:2px auto 4px}}

/* Playful, compositor-only candy-hit celebrations remain light on phones. */
.board-stage.candy-burst::before,.board-stage.candy-burst::after{content:'';position:absolute;left:50%;top:45%;border-radius:50%;pointer-events:none;z-index:4;opacity:0;transform:translate(-50%,-50%) scale(.35)}
.board-stage.candy-burst::before{width:44%;aspect-ratio:1;border:3px solid var(--burst-color,#fff0a6);box-shadow:0 0 0 8px var(--burst-halo,#fff0a644),0 0 30px var(--burst-color,#fff0a6);animation:candy-burst-ring .72s cubic-bezier(.17,.8,.25,1) both}
.board-stage.candy-burst::after{content:var(--burst-icon,'✨');display:grid;place-items:center;width:auto;min-width:110px;height:64px;border-radius:22px;color:#fff;font-size:clamp(25px,6vw,44px);font-weight:900;text-shadow:0 3px 0 #8b2e8c,0 0 15px var(--burst-color,#ffd86b);animation:candy-burst-pop .72s cubic-bezier(.2,.9,.25,1) both}
.board-stage.candy-burst-row{--burst-color:#5ee8ff;--burst-halo:#5ee8ff44;--burst-icon:'⚡⚡'}
.board-stage.candy-burst-col{--burst-color:#ff72b7;--burst-halo:#ff72b744;--burst-icon:'↕️✨'}
.board-stage.candy-burst-bomb{--burst-color:#d3a1ff;--burst-halo:#d3a1ff55;--burst-icon:'💥✨'}
.board-stage.candy-burst-wrapped{--burst-color:#ffc45d;--burst-halo:#ffc45d55;--burst-icon:'🎉💫'}
.board-stage.candy-burst-combo{--burst-color:#ff8dd1;--burst-halo:#ff8dd155;--burst-icon:'🍬✨'}
@keyframes candy-burst-ring{0%{opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(-12deg)}18%{opacity:.95}100%{opacity:0;transform:translate(-50%,-50%) scale(1.55) rotate(18deg)}}
@keyframes candy-burst-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.45) rotate(-8deg)}18%{opacity:1;transform:translate(-50%,-50%) scale(1.16) rotate(5deg)}48%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-2deg)}100%{opacity:0;transform:translate(-50%,-64%) scale(.82) rotate(5deg)}}
.reduced-motion .board-stage.candy-burst::before,.reduced-motion .board-stage.candy-burst::after{animation:none;opacity:0}
