@font-face{font-family:Mikado;src:url('assets/mikado.ttf')}@font-face{font-family:Ubuntu;src:url('assets/ubuntu.ttf')}
:root{--night:#11112b;--ink:#22213d;--white:#fff;--muted:#b9bad7;--accent:#f5cf69;--green:#6fc514;--purple:#9b66e1;--panel:#383367;--liquid-height:79%;--bottle-width:43px}
*{box-sizing:border-box}body{margin:0;background:#0b0b1d;color:var(--white);font-family:Ubuntu,sans-serif;font-size:14px;min-height:100dvh;display:grid;place-items:center}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:disabled{cursor:default;opacity:.4}button:not(:disabled):active{scale:.94}img{user-select:none;-webkit-user-drag:none}button{border:0}button,img{-webkit-touch-callout:none}p{line-height:1.6;text-wrap:pretty}
.game{width:min(100%,580px);height:min(100dvh,1000px);min-height:600px;position:relative;display:flex;flex-direction:column;padding:22px 25px 13px;background:var(--night) url('assets/background.png') center/cover;isolation:isolate;box-shadow:0 0 100px #25264a44;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px}.round{background:none;width:48px;height:48px;display:grid;place-items:center;position:relative;padding:0}.round img{width:100%;height:100%;object-fit:contain}.restart{border-radius:50%;background:radial-gradient(circle at 40% 24%,#b98bec,#7950bf 65%,#493382);box-shadow:inset 0 2px 0 #dcbeff88,0 4px 0 #30245c,0 5px 8px #0005;font-size:34px;text-shadow:0 2px 1px #483076}.level-heading{text-align:center;display:grid;gap:4px}.brand{font-size:14px;color:#e2d8ff;letter-spacing:1px;font-family:Mikado,sans-serif}.level-heading>button{background:none;font-family:Mikado,sans-serif;font-size:29px;line-height:1.1;text-shadow:0 3px 0 #0006}.difficulty{font-size:10px;font-weight:500;letter-spacing:1.9px;color:var(--accent)}
.collection-area{padding-top:21px;position:relative;flex:none}.collection-heading{display:flex;justify-content:space-between;color:#e0def2;font-size:12px;margin-bottom:6px}.progress-track{height:8px;background:#07091d;border:1px solid #484565;border-radius:8px;overflow:hidden}.progress-track>div{height:100%;width:0;background:linear-gradient(#d9f971,#77c723);border-radius:8px;transition:width .4s}.collection-bags{height:86px;display:flex;justify-content:center;gap:23px;align-items:end;padding:9px 0 2px;position:relative;z-index:1}.collect-bag{width:42px;height:69px;position:relative;background:linear-gradient(100deg,#fff7,transparent 35%,#0004),var(--color);border-radius:5px 7px 9px 9px;box-shadow:inset 0 0 0 1px #fff5,0 5px 7px #0004;padding:0;border:0;transition:opacity .3s}.collect-bag:before{content:'';position:absolute;width:21px;height:14px;top:-13px;left:10px;border:3px solid var(--color);border-bottom:0;border-radius:15px 15px 0 0;filter:brightness(1.35)}.collect-bag:after{content:'';position:absolute;inset:0;background:url('assets/bag-front.png') center/100% 100%;opacity:.5;mix-blend-mode:screen}.collect-bag span{position:absolute;inset:15px 0 0;text-align:center;font-family:Mikado,sans-serif;font-size:25px;color:#fffe;text-shadow:0 2px 2px #0008}.collect-bag.locked{background:#282840;box-shadow:inset 0 0 0 1px #55516b}.collect-bag.locked:before{border-color:#4f4b68}.collect-bag.locked span{font-size:20px}.shelf{width:100%;height:12px;display:block;object-fit:fill;position:relative;z-index:2;opacity:.8}
.board-wrap{position:relative;flex:1;min-height:260px;margin:10px 0 0;display:flex;align-items:center}.board{width:100%;height:100%;min-height:260px;position:relative}.loading{text-align:center;color:var(--muted)}.bottle{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);background:none;padding:0;border:0;transform:translate(-50%,-50%);transform-origin:50% 10%;transition:filter .2s;isolation:isolate;overflow:visible;z-index:2}.bottle:before{content:'';position:absolute;left:-8px;right:-8px;top:-4px;bottom:-18px;z-index:-1}.bottle.selected{filter:drop-shadow(0 0 8px #e1b1ff88);translate:0 -13px;z-index:10}.bottle.hint-from{filter:drop-shadow(0 0 9px #ffd673);translate:0 -13px;z-index:9}.bottle.hint-to{filter:drop-shadow(0 0 9px #a8ff78)}.bottle-body{width:100%;height:100%;object-fit:fill;position:absolute;inset:0;z-index:3;pointer-events:none}.liquid{position:absolute;left:7%;right:7%;bottom:3%;height:var(--liquid-height);border-radius:6px 6px 12px 12px;overflow:hidden;z-index:1;display:flex;flex-direction:column-reverse;justify-content:flex-start}.layer{height:calc(100% / var(--capacity));min-height:0;flex:none;width:100%;position:relative;background:var(--color);box-shadow:inset 4px 0 6px #fff2,inset -5px 0 5px #0003}.layer:last-child:before{content:'';position:absolute;top:-2px;left:0;right:0;height:5px;border-radius:50%;background:var(--color);filter:brightness(1.2);box-shadow:0 1px 1px #fff3}.layer.hidden{background:#35344e;display:grid;place-items:center;color:#dedcef;font-family:Mikado,sans-serif;font-size:clamp(9px,2.6vw,14px)}.bottle-id{font-family:Ubuntu,sans-serif;position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);color:#9394b9;font-size:9px;white-space:nowrap;pointer-events:none}.bottle.special .liquid{inset:0;border-radius:0;height:100%;mask-image:var(--mask);mask-size:100% 100%;mask-repeat:no-repeat}.bottle.special .layer{height:calc(89% / var(--capacity))}.bottle.special .bottle-body{opacity:.95}.bottle.special .bottle-id{color:var(--accent);font-size:10px}.obstacle{position:absolute;inset:0;z-index:5;pointer-events:none;display:grid;place-items:center}.obstacle>img{width:110%;height:108%;object-fit:fill;position:absolute;left:-5%;top:-4%}.obstacle .badge{z-index:1;background:#32274ae8;border:2px solid #edcf8a;border-radius:50%;font-family:Mikado,sans-serif;font-size:18px;min-width:29px;height:29px;padding:2px;display:grid;place-items:center;box-shadow:0 2px 3px #0006}.obstacle.ice .badge{background:var(--color);border-color:#b5f0ff;color:white}.lock-overlay{background:#1d1b38aa;border-radius:7px;inset:13% 0 0;border:1px solid #807596;backdrop-filter:blur(2px)}.lock-overlay .badge{font-size:13px;line-height:1.3;min-width:34px;border-radius:6px;height:31px}.tag{position:absolute;left:50%;top:19%;width:70%;height:18%;transform:translateX(-50%);background:var(--color);z-index:5;clip-path:polygon(0 0,50% 35%,100% 0,100% 100%,50% 65%,0 100%);filter:drop-shadow(0 2px 2px #000)}.key-icon{position:absolute;width:55%;height:30%;object-fit:contain;left:25%;bottom:var(--bottom);z-index:5}.bottle.collected{pointer-events:none;opacity:0}.empty-slot{position:absolute;left:var(--x);top:var(--y);width:20px;height:5px;border-radius:50%;transform:translate(-50%,-50%);background:#fff1}.message{flex:none;min-height:36px;margin:3px 0 6px;text-align:center;color:#c8c5e1;font-size:12px;line-height:1.5;display:grid;place-items:center}.message.positive{color:#d4ee9c}
footer{flex:none}.tools{display:flex;justify-content:center;gap:35px;padding:3px 0 14px}.tool{display:grid;justify-items:center;gap:6px;width:82px;background:none;position:relative;padding:0}.tool img{width:62px;height:62px;object-fit:contain;filter:drop-shadow(0 3px 0 #322257)}.tool span{font-family:Mikado,sans-serif;font-size:14px;color:#f7f2ff;text-shadow:0 2px 0 #0008;white-space:nowrap}.tool small{position:absolute;top:43px;right:-1px;background:#eee6d5;color:#765740;box-shadow:0 2px 0 #76584388;border-radius:9px;font-family:Mikado,sans-serif;font-size:10px;min-width:22px;padding:2px 6px}.bottom-line{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#9696b5;font-size:10px;border-top:1px solid #fff1;padding-top:10px}
dialog{position:fixed;border:1px solid #b5a0e4;border-radius:24px;background:#29244c;color:var(--white);padding:32px 26px 25px;width:min(92vw,470px);max-height:88dvh;box-shadow:0 20px 100px #000a;overflow:auto}dialog::backdrop{background:#07091bcc;backdrop-filter:blur(7px)}.dialog-close{position:absolute;right:12px;top:10px;background:#57416f;border-radius:50%;width:30px;height:30px;font-size:24px;line-height:1}.dialog-title{font-family:Mikado,sans-serif;font-size:30px;text-align:center;margin:5px 0 15px;text-shadow:0 3px 0 #0004}.dialog-subtitle{color:#c5bfdd;font-size:13px;text-align:center}.action{display:block;min-height:48px;border-radius:15px;background:linear-gradient(#a8e837,#59ad0d);box-shadow:inset 0 2px 0 #d5ff7d,0 4px 0 #326608;border:2px solid #b2df6e;color:#fff;font-family:Mikado,sans-serif;font-size:20px;padding:10px 20px;margin:16px auto;text-shadow:0 2px 0 #47840c;min-width:190px}.secondary{background:#4b3c77;box-shadow:0 3px 0 #1a163a;border:1px solid #8f71c3;text-shadow:none;font-size:16px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #fff1}.settings-row button{border-radius:8px;padding:9px 15px;background:#74549d}.notes{font-size:12px;color:#c9c2df;line-height:1.7}.notes strong{color:#f1d78f}.level-controls{display:flex;gap:8px;align-items:center;margin:10px 0 16px}.level-controls input,.level-controls select{font:inherit;width:100%;min-width:0;padding:10px;border:1px solid #8271a4;color:white;background:#1d193b;border-radius:8px}.level-controls button{padding:10px 12px;background:#725391;border-radius:8px}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.level-grid button{aspect-ratio:1;background:#493c72;border-radius:12px;font-family:Mikado,sans-serif;font-size:19px;border:1px solid #8b6fba;box-shadow:0 3px 0 #15112b;position:relative}.level-grid button.completed{background:#476a26;border-color:#9bd460}.level-grid button.completed:after{content:'OK';font-size:8px;color:#c8f096;position:absolute;bottom:4px;left:0;right:0}.level-grid button.current{outline:2px solid var(--accent);outline-offset:2px}.level-grid button small{display:block;font-family:Ubuntu,sans-serif;font-size:8px;color:#bbb1d0}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.pager button{background:#65508c;border-radius:10px;padding:9px 14px}.win-art{height:140px;position:relative;display:grid;place-items:center;margin-bottom:10px}.win-art img{position:absolute;width:230px;height:230px;opacity:.7;animation:spin 16s linear infinite}.win-art span{font-size:90px;color:#ffd96b;filter:drop-shadow(0 5px 0 #a55c29);z-index:1}.win-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;margin:20px 0}.win-stats strong{display:block;font-family:Mikado,sans-serif;font-size:25px;color:#ffdd8a}.win-stats span{color:#c2b9d8;font-size:12px}#confetti{pointer-events:none;position:fixed;inset:0;z-index:999;overflow:hidden}#confetti i{position:absolute;width:9px;height:15px;background:var(--c);top:-30px;left:var(--x);animation:fall var(--time) var(--delay) ease-in forwards}.badge-special{color:#f7d77c}
.special-goal .collection-bags{height:18px}.special-goal .shelf{display:none}
.bottle.special{transform:translate(-50%,-50%) rotate(var(--tilt,0deg));transform-origin:center}
.level-grid button.under-review{border-color:#edca76}.level-grid button.under-review small{color:#edca76}
.win-art{overflow:hidden}.win-art .win-glow{width:180px;height:180px;mask-image:radial-gradient(ellipse,#000 20%,transparent 70%)}.win-art .win-star{position:relative;width:100px;height:100px;object-fit:contain;opacity:1;animation:none;filter:drop-shadow(0 5px 10px #7b4c3033)}
@keyframes spin{to{rotate:360deg}}@keyframes fall{to{transform:translate(40px,110dvh) rotate(700deg)}}
@media(min-width:760px){body{background:radial-gradient(ellipse at 50% 40%,#272440,#0b0b1c 70%)}.game{border-inline:1px solid #53506e33}.game:before{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 90px #0a0a1d44;z-index:-1}}
@media(max-width:420px){.game{padding:15px 16px 11px}.collection-area{padding-top:15px}.tools{gap:24px}.tool img{width:55px;height:55px}.tool small{top:38px}.tool span{font-size:12px}.level-heading>button{font-size:26px}.brand{font-size:12px}.round{width:43px;height:43px}.collection-bags{height:74px;gap:22px}.collect-bag{width:35px;height:57px}.collect-bag:before{left:8px;width:19px}.message{font-size:11px;min-height:32px}.tool{width:74px}}
@media(max-height:720px){.game{padding-top:10px}.collection-area{padding-top:10px}.collection-bags{height:62px}.collect-bag{height:48px;width:31px}.collect-bag:before{width:17px;left:7px;height:11px;top:-10px}.tools{padding-bottom:7px}.tool img{height:47px;width:47px}.tool small{top:30px}.tool{gap:4px}.message{min-height:26px;margin:0}.collection-heading{font-size:10px}.board-wrap{margin-top:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;animation-iteration-count:1!important}}
