:root{--ink:#302b4a;--muted:#7d7892;--purple:#7158cf;--pink:#fa74a6;--paper:#fff}*{box-sizing:border-box}html{background:#fbf8ff}body{margin:0;color:var(--ink);font-family:ui-rounded,"Trebuchet MS",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh;background:radial-gradient(ellipse at 5% 0%,#fff0e2 0,transparent 40%),radial-gradient(ellipse at 92% 28%,#eae5ff 0,transparent 43%),#fbf8ff}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:4px solid #6249b0;outline-offset:4px}.shell{width:min(100% - 36px,940px);margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;padding:23px 0 15px;gap:10px}.brand{display:flex;align-items:center;gap:9px;color:#332c4b;text-decoration:none;font-weight:1000;font-size:20px;letter-spacing:-.8px}.brand-icon{display:grid;place-items:center;background:#7459d5;color:#fff;border-radius:11px;width:35px;height:35px;font:1000 25px monospace}.brand-muted{color:#9b88c7;margin-left:-9px}.sound-toggle{border:1px solid #e8e0f2;background:white;border-radius:100px;color:#62557e;font-size:13px;font-weight:900;padding:11px 16px}.welcome{text-align:center;padding:17px 0 12px}.eyebrow{color:#8871b5;font-weight:1000;letter-spacing:1.6px;font-size:11px}.welcome h1{font-size:clamp(50px,9vw,86px);letter-spacing:-3.8px;line-height:1.1;margin:11px 0 6px}.welcome h1 span{color:#fa729f}.intro-text{font-size:clamp(16px,2.2vw,20px);color:#77738d;margin:0 auto;line-height:1.5}.hero{height:114px;display:flex;align-items:center;justify-content:center;gap:42px;font-size:55px;filter:drop-shadow(0 7px 5px #6c497733)}.hero-gem{font-size:77px;transform:rotate(-10deg)}.welcome h2{font-size:clamp(25px,4vw,34px);letter-spacing:-.9px;margin:4px 0 19px}.level-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;text-align:left}.level-card{border:2px solid #eee7f7;border-radius:27px;background:white;overflow:hidden;padding:0;color:inherit;display:flex;flex-direction:column;text-align:left;min-height:293px;box-shadow:0 12px 28px #45396c12;transition:transform .18s,border-color .18s}.level-card:hover{transform:translateY(-4px);border-color:#bda8ef}.card-art{display:grid;place-items:center;background:#e9f7f0;height:110px;width:100%;font-size:60px}.card-art.medium{background:#fff0e8}.card-art.hard{background:#ebe9ff}.card-content{display:flex;flex-direction:column;flex:1;padding:18px}.meta{font-size:10px;color:#8668b4;letter-spacing:1.2px;font-weight:1000}.card-content strong{font-size:22px;letter-spacing:-.7px;margin:7px 0}.card-content>span:nth-child(3){font-size:13px;line-height:1.5;color:#77758d}.start-label{border-top:1px solid #ece7f4;margin-top:auto;padding-top:13px;color:#7359b5;font-weight:1000;font-size:13px}.reassurance{font-size:13px;color:#9891a5;margin:21px}.hud{display:flex;justify-content:space-between;align-items:center;gap:10px}.back{border:0;background:transparent;color:#706088;font-weight:900;padding:10px 2px}.hud strong{font-size:19px;letter-spacing:-.6px}.round-count{background:white;border:1px solid #e9e4f3;border-radius:99px;padding:10px 13px;font-size:11px;color:#736b91;font-weight:1000}.progress{display:flex;justify-content:center;gap:7px;margin:12px auto 16px}.progress>span{height:8px;max-width:35px;flex:1;background:#e3e0ec;border-radius:90px}.progress>span.done{background:#f6c76d}.progress>span.current{background:#8d73d7}.playfield{background:linear-gradient(170deg,#fff,#fffdf9);border:2px solid #eee5f2;border-radius:29px;padding:18px 25px 19px;box-shadow:0 12px 32px #46356c12}.board-top{text-align:center}.board-top h2{font-size:clamp(22px,3.3vw,31px);margin:4px 0 5px;letter-spacing:-.8px}.board-top p{margin:0;color:#77758d;font-size:13px;line-height:1.5}.garden{position:relative;overflow:hidden;background:linear-gradient(180deg,#f5edff 0,#f4f0ff 65%,#e6f6e9 65%,#d9f0df 100%);border:2px solid #e7daf9;border-radius:25px;min-height:220px;margin:16px auto 14px;max-width:700px;display:flex;align-items:center;justify-content:center}.garden-stars{position:absolute;top:12px;left:20px;color:#c5a1de;letter-spacing:22px}.garden-flower{position:absolute;bottom:5px;font-size:31px}.flower-one{left:8%}.flower-two{right:9%}.slot{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-width:150px;min-height:164px;border:3px dashed #a99bc7;border-radius:24px;background:#ffffffbd;position:relative;z-index:1;cursor:pointer;padding:13px;transition:background .17s,border-color .17s}.slot-outline{display:grid;place-items:center;width:84px;height:88px}.slot-outline svg{width:82px;height:82px;opacity:.42}.slot-name{font-size:12px;text-align:center;font-weight:1000;color:#79699d}.slot.armed{border-color:#64b98e;background:#f6fff6}.slot.hovered{border-color:#5da979;background:#e8ffed;transform:scale(1.04)}.slot.success{border-color:#59b97b;background:#dcf9df;border-style:solid;animation:pop .4s ease}.charge-area{display:flex;justify-content:center;align-items:center;gap:clamp(15px,6vw,58px);background:#f7f2ff;border:1px solid #e8dffb;border-radius:22px;padding:15px 20px;max-width:700px;margin:0 auto}.charge-copy{text-align:left;max-width:290px}.charge-copy h3{margin:6px 0;font-size:21px;letter-spacing:-.7px}.charge-copy p{font-size:13px;color:#76758f;line-height:1.5;margin:0}.gem{--fill:0;flex-shrink:0;display:flex;align-items:center;flex-direction:column;gap:3px;justify-content:center;border:0;background:transparent;min-width:139px;min-height:142px;touch-action:none;user-select:none;-webkit-user-select:none;padding:0}.gem-ring{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#63c996 calc(var(--fill)*1%),#e4daff 0);box-shadow:0 8px 25px #5b45902b;transition:box-shadow .16s}.gem-ring:before{position:absolute;content:"";inset:9px;border-radius:50%;background:linear-gradient(160deg,#fff,#f1eaff)}.gem-symbol{position:relative;font-size:61px;line-height:1;filter:drop-shadow(0 6px 3px #644b9c28)}.gem-word{color:#775dc2;font-size:11px;font-weight:1000;letter-spacing:1px}.gem.holding .gem-ring{box-shadow:0 0 0 7px #c9b3fa8c,0 9px 20px #6650b738}.gem.ready .gem-ring{background:conic-gradient(#64cc96 100%,#64cc96 0);box-shadow:0 0 0 9px #c9efd9,0 0 27px #78d9a8}.gem.ready .gem-symbol{animation:pop .38s ease}.gem.ready .gem-word{color:#258559}.pieces-area{max-width:700px;margin:14px auto 0}.pieces-head{display:flex;justify-content:space-between;gap:9px;align-items:center}.spark-status{background:#eeebf6;color:#807590;border-radius:100px;padding:7px 12px;font-size:11px;font-weight:1000}.spark-status.ready{background:#e1f9ea;color:#218e57}.pieces{display:flex;align-items:center;justify-content:center;gap:clamp(9px,3.6vw,22px);min-height:134px;margin-top:7px}.piece{touch-action:none;user-select:none;-webkit-user-select:none;min-width:0;width:min(30%,138px);height:128px;border:2px solid #e4dceb;border-bottom-width:7px;border-radius:22px;background:white;box-shadow:0 7px 16px #41375215;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:10px 4px;position:relative;transition:transform .15s,border-color .15s;cursor:grab}.piece svg{width:82px;height:82px;max-width:100%;filter:drop-shadow(0 4px 2px #4137521c)}.piece-label{font-size:11px;color:#66637e;font-weight:900}.piece.locked{filter:saturate(.7);cursor:not-allowed}.piece.locked:before{content:"🔒";position:absolute;top:3px;right:8px;font-size:15px}.piece.selected{border-color:#7b63d1;box-shadow:0 0 0 5px #a78aeb74}.piece.dragging{z-index:10;transition:none;cursor:grabbing;box-shadow:0 12px 26px #5b44904d}.piece.bounce{animation:wobble .34s ease}.touch-guide{font-size:12px;color:#8a8798;text-align:center;margin:8px auto 0;line-height:1.4}.feedback-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 4px 3px}.feedback{font-size:14px;font-weight:900;color:#746a91;margin:0;line-height:1.45}.feedback.good{color:#238258}.feedback.retry{color:#a66d4b}.stars{background:#fff3d9;color:#a27a2c;border-radius:99px;padding:10px 12px;white-space:nowrap;font-size:13px;font-weight:1000}.actions{display:flex;justify-content:center;gap:12px;padding:10px 0 0}.action{border-radius:99px;border:1px solid #e4d9f2;background:white;color:#735ca8;font-size:12px;font-weight:900;padding:11px 18px}.complete{max-width:600px;margin:20px auto;text-align:center;border:2px solid #efe7f5;border-radius:29px;background:white;padding:35px 25px 45px;box-shadow:0 14px 29px #503e6615}.medal{font-size:101px}.complete h2{font-size:clamp(33px,5vw,49px);letter-spacing:-1.8px;margin:8px 0}.complete>p{color:#7d7891;line-height:1.6}.finish-score{font-size:22px;font-weight:1000;color:#9d7d2c}.best{font-size:12px}.finish-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:20px 0 0}.primary,.secondary{border:0;border-radius:100px;padding:15px 24px;background:#7056c5;color:white;font-weight:1000;box-shadow:0 5px 0 #4e3993}.secondary{border:2px solid #dcd1f0;background:white;color:#725bac;box-shadow:0 5px 0 #ece6f4}.footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;border-top:1px solid #eae4f1;margin-top:25px;padding:22px 0 30px;font-size:12px;color:#9a92a8}.offline{color:#468d68;font-weight:900}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;margin:-1px;padding:0;white-space:nowrap;clip:rect(0,0,0,0)}[hidden]{display:none!important}@keyframes pop{0%,100%{transform:scale(1)}50%{transform:scale(1.11)}}@keyframes wobble{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}@media(max-width:680px){.shell{width:min(100% - 22px,580px)}.level-list{grid-template-columns:1fr;gap:11px}.level-card{min-height:125px;display:grid;grid-template-columns:102px 1fr}.card-art{height:100%;min-height:122px;font-size:45px}.card-content{padding:12px 14px}.card-content strong{font-size:20px;margin:4px 0}.card-content>span:nth-child(3){font-size:12px}.start-label{border:0;padding-top:6px;font-size:12px}.hero{height:94px;gap:26px;font-size:45px}.hero-gem{font-size:66px}.welcome h2{font-size:25px}.playfield{padding:14px 12px;border-radius:24px}.garden{min-height:178px;margin:10px auto}.slot{min-height:143px;min-width:137px}.slot-outline{height:69px;width:73px}.slot-outline svg{width:70px;height:70px}.charge-area{padding:11px 9px;gap:11px}.charge-copy h3{font-size:17px}.charge-copy p{font-size:12px}.gem{min-height:126px;min-width:119px}.gem-ring{width:97px;height:97px}.gem-symbol{font-size:53px}.pieces{min-height:118px;gap:9px}.piece{height:112px;border-radius:17px}.piece svg{height:67px;width:67px}.piece-label{font-size:10px}.feedback{font-size:12px}.hud strong{font-size:15px}.round-count{font-size:10px}.game{margin-top:0}}@media(max-width:370px){.shell{width:calc(100% - 12px)}.brand{font-size:18px}.sound-toggle{padding:8px 10px;font-size:11px}.welcome h1{font-size:45px;letter-spacing:-2px}.card-art{font-size:39px}.level-card{grid-template-columns:86px 1fr}.hud strong{font-size:13px}.round-count{font-size:9px;padding:9px}.charge-copy h3{font-size:15px}.gem{min-width:106px}.gem-ring{width:88px;height:88px}.gem-symbol{font-size:48px}.piece{height:101px}.piece svg{width:58px;height:58px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Longer native level lists stay usable on touch screens. */
.level-grid,[aria-label="Choose a level"]{flex-wrap:wrap}.level-card[data-level]{min-height:90px}.level-card[data-level="4"]{clear:both}.many-choices{grid-template-columns:repeat(3,minmax(0,1fr))!important}.shelf{flex-wrap:wrap}.dots,.round-progress{flex-wrap:wrap;gap:5px}
