/* Flower jelly theme: visual overlay keeps the proven compact board layout. */
:root{background:#7661a3;--accent:#ffd4ed}body{background:linear-gradient(#51346b22,#49306344),url('./art/garden-v1.webp') center/cover fixed;min-height:100dvh}.cosmos{background:radial-gradient(ellipse at 50% 44%,#39264d22,transparent 65%)}.cosmos i{display:none}main{max-width:420px;background:linear-gradient(90deg,transparent,#40285318,transparent)}header{height:46px}.brand{text-align:center}.brand b{font-family:Georgia,serif;font-size:24px;font-style:normal;letter-spacing:1.2px;font-weight:500;text-shadow:0 2px 7px #502152}.brand small{font-family:Georgia,serif;letter-spacing:3px;text-align:center;font-size:10px;color:#fff1f8;margin-top:3px}.brand span{display:none}.tools button{background:linear-gradient(#c8aae35c,#61457799);border-color:#edc9ff70;color:#cdb9d9;box-shadow:inset 0 2px 3px #fff5,0 3px 7px #31123833;border-radius:50%}.tools button.on{color:#fff6ff}.stage-bar{margin-top:12px}#stage-select{background:linear-gradient(#68517d88,#4b315c99);padding:7px 10px;border-radius:14px;border:1px solid #ebc5ff77;box-shadow:inset 0 2px 4px #fff3}#stage-select small{display:none}#stage-number{font-size:19px;font-weight:650}#stage-select>span{color:#edd9ff}.wallet{background:#5f3e7799;border-color:#e2c1fc88;box-shadow:inset 0 1px 3px #fff4}#missions{min-height:57px;border-radius:18px;border-color:#ffd6efaa;background:linear-gradient(#664978bb,#422a6488);box-shadow:inset 0 2px 6px #ffe7ff66,0 5px 10px #24143b22}.mission .gem{width:35px;height:35px;box-shadow:none;background:none!important;border-radius:50%}.mission .gem:after{display:none}.mission b{font-size:18px;font-weight:650}.mission small{color:#e4d6f0;font-size:12px}.many .mission b{font-size:13px}.many .gem{width:27px;height:27px}.scorebar small{color:#e0c7ef;text-shadow:0 1px 3px #4a2665}.scorebar strong{font-size:25px;text-shadow:0 2px 5px #482165}.record b{color:#fff0ff}.combo-panel #combo{color:#d2b2e0}.combo-panel.hot #combo{color:#ffe49e;text-shadow:0 0 12px #ff759b}.orbit{inset:-9px;border-radius:30px;border:5px solid #ecc5ffbb;background:linear-gradient(140deg,#fff7ffbb,#e3aef644 25%,#71e4fb66 49%,#fff0ffbb 76%,#e3a0da66);box-shadow:inset 0 2px 4px #fff,0 0 0 2px #c2d6ff99,0 0 0 4px #fbd4fd55,0 0 18px #ffaee777,0 12px 22px #32203d33;z-index:-1;transform-origin:50% 50%;will-change:transform}.orbit:before,.orbit:after{width:auto;height:6px;left:14px;right:14px;background:linear-gradient(90deg,transparent,#fff8,transparent);top:-3px;box-shadow:none;border-radius:50%}.orbit:after{top:auto;bottom:-3px}#board{gap:2px;padding:7px;border-radius:22px;background:linear-gradient(135deg,#655780bb,#362747bb);border:1px solid #efcbfaaa;box-shadow:inset 0 0 12px #fbe0ff55,0 2px 6px #fff4;overflow:visible}.cell{border-radius:50%;background:radial-gradient(circle at 40% 30%,#e7bfff16,#301e462b);border:1px solid #d6b3f02b;box-shadow:inset 0 1px 2px #fff1}.cell.filled,.mini .filled{background:none!important;box-shadow:none;border:0;border-radius:50%;overflow:visible}.filled:after{display:none}.orb-art{display:block;width:100%;height:100%;pointer-events:none;user-select:none;object-fit:contain;filter:drop-shadow(0 2px 2px #30193c44);transform-origin:50% 65%;will-change:transform}.cell .orb-art{width:112%;height:112%;margin:-6%;max-width:none}.ghost{background:#ffcfed33!important;outline:2px solid #ffedfa;box-shadow:0 0 10px #ffe9ff88}.will-clear{background:#ffbae63d!important;box-shadow:0 0 10px #ffe9bb}.will-clear .orb-art{filter:brightness(1.3) drop-shadow(0 0 5px #fff1b9)}#board.armed{border-color:#ffddf0;box-shadow:inset 0 0 20px #ff9fd577}.burst-zone{outline-color:#fff0b5;background:#ffcde433}#tray{gap:7px;margin-top:22px}.piece{background:linear-gradient(#9470b188,#4a305c99);border:1px solid #e3b8fa88;border-radius:20px;box-shadow:inset 0 2px 4px #fff4,0 5px 8px #39244022;height:80px}.piece.selected{border-color:#ffe1f0;box-shadow:inset 0 0 14px #f8c4e633,0 0 12px #ffdef655}.piece.selected:before{background:#ffe6f4;box-shadow:0 0 8px #ffb8e2}.piece.used{background:#39274933;border-color:#f4c9ff22}.piece.used:after{color:#e4beec66}.mini{gap:0;--tile:25px}.mini i{border-radius:50%}#next{opacity:1}#next .mini{--tile:14px;gap:0}#next .mini i{border-radius:50%}.next-box{border-radius:17px;border:1px solid #dfb1eb55;background:#53386477;padding:8px}.next-box>span{color:#f8e4ff;font-size:9px}.next-row{gap:10px}#burst{width:134px;border-radius:28px;border:2px solid #ffd2ef99;background:linear-gradient(#db94c5,#984f97 55%,#6b397d);box-shadow:inset 0 3px 5px #ffe8ff88,0 0 0 3px #ddbcf333,0 5px 10px #4c254d55;color:#fff4fb}#burst small{font-family:Georgia,serif;font-size:15px;color:#fff2f7;letter-spacing:2px}#burst .burst-symbol{font-size:31px;color:#ffdcf4}#energy-label{font-size:11px;color:#f7d6ef}#energy{background:linear-gradient(90deg,#ffb1d9,#fff6c3);height:3px}#burst.ready{background:linear-gradient(#ffc3e6,#ff8fc7 48%,#d958a4);border-color:#fff0fa;box-shadow:inset 0 3px 4px #fff9,0 0 22px #ffb3de99}#burst.ready small,#burst.ready .burst-symbol{color:#fff6fc}#impact{font-size:32px;color:#fff9cf;text-shadow:0 2px 0 #c3629d,0 0 14px #ff7fbf;z-index:6}#impact small{color:#fff4ff;text-shadow:0 2px 3px #7d3988}.shockwave{border-color:#ffd8ee;box-shadow:0 0 10px #fff0f766}.collect-particle{border-radius:70% 20% 70% 30%;background:#ffd0e7}.clearing{animation-name:bloom-pop!important;animation-duration:.32s!important;animation-fill-mode:both!important}.clearing .orb-art{filter:brightness(1.25) drop-shadow(0 0 5px #ffe6b9)}#petal-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:35}dialog{background:radial-gradient(ellipse at 50% 0,#ac77b8,#57346a 85%);border-color:#ffd5f4;box-shadow:inset 0 3px 7px #fff4,0 15px 60px #35154588}dialog::backdrop{background:#251b3b88;backdrop-filter:blur(5px)}#result-emblem{width:90px;height:90px;margin:auto}dialog h2{font-style:normal;font-size:24px}dialog button{background:linear-gradient(#ffd2ea,#f391c1);color:#673354;box-shadow:0 4px 0 #af6094}#level-grid button{background:linear-gradient(#ad7eb3,#6b4785);color:#fff2fa;border-color:#ffd8ee77}#level-grid button.current{border-color:#fff2dc;box-shadow:0 0 12px #ffcfdf}#level-grid button:disabled{opacity:.35}#drag-piece .mini{--tile:30px}#drag-piece{filter:drop-shadow(0 7px 6px #38224966)}@keyframes bloom-pop{0%{transform:scale(1);opacity:1}30%{transform:scale(1.18,.83);opacity:1}55%{transform:scale(.9,1.24);filter:brightness(1.2);opacity:1}80%{transform:scale(1.35);opacity:.75}100%{transform:scale(1.5);opacity:0}}@media(max-height:680px){header{height:38px}.brand b{font-size:21px}#missions{min-height:47px}.mission .gem{width:29px;height:29px}.stage-bar{margin:9px 0}.scorebar{margin:8px auto 11px}.piece{height:64px}#tray{margin-top:17px}.next-row{margin-top:12px}.mini{--tile:22px}#burst{height:50px}.many .gem{width:23px;height:23px}}@media(prefers-reduced-motion:reduce){.clearing{animation:none!important}#petal-canvas{display:none}}

/* 0.5: board-first layout; compact goals without shrinking touch targets. */
:root{--board-size:min(338px,calc(100vw - 42px),calc(100dvh - 296px))}main{padding-left:16px;padding-right:16px}.stage-bar{gap:7px;margin:9px 0}#mode-switch{padding:8px 12px;border-radius:18px;background:#65447799;border:1px solid #edcafb77;font-size:12px;min-height:36px;white-space:nowrap}#stage-select{min-height:36px;padding:5px 9px;gap:5px}#stage-number{font-size:15px}#stage-select>span{font-size:9px}#missions{min-height:37px;padding:3px 7px;border-radius:13px}.mission .gem{width:26px;height:26px}.mission b{font-size:13px}.mission small{font-size:10px}.many .mission{flex-direction:row;gap:2px}.many .gem{width:19px;height:19px}.many .mission b{font-size:10px}.many .mission small{font-size:8px}.scorebar{margin:9px auto 12px}.scorebar strong{font-size:23px}.scorebar small{font-size:7px}.combo-panel #combo{font-size:18px}#tray{margin-top:20px}.piece{height:72px}.next-row{margin-top:13px}.endless-stats{display:flex;align-items:center;justify-content:center;gap:28px;width:100%;font-size:10px;color:#e6d1ee}.endless-stats b{font-size:13px;color:#fff;margin-left:5px}@media(max-height:680px){:root{--board-size:min(318px,calc(100vw - 40px),calc(100dvh - 315px))}main{padding-top:7px}header{height:34px}.brand b{font-size:20px}.brand small{font-size:8px}.stage-bar{margin:7px 0}.scorebar{margin:7px auto 11px}.scorebar strong{font-size:21px}#missions{min-height:33px}.mission .gem{width:23px;height:23px}.many .gem{width:18px;height:18px}#tray{margin-top:16px}.piece{height:60px}.next-row{margin-top:10px}#burst{height:45px}#next{height:34px}.next-box{padding:5px}}@media(min-height:800px){.stage-bar{margin-top:14px}.scorebar{margin:12px auto 15px}#tray{margin-top:23px}}
