html,body.test-slice{overflow:auto;height:auto;min-height:100%;background:var(--bg)}
/* Fur tips lag the soft core. Never skew the entire character or its eyes. */
.live-piece .fur-fringe{position:absolute;inset:3%;width:94%;height:94%;pointer-events:none;background-repeat:no-repeat;background-position:0 center;opacity:0;transform-origin:center;mask-image:radial-gradient(ellipse,transparent 44%,#000 64%);-webkit-mask-image:radial-gradient(ellipse,transparent 44%,#000 64%)}
.live-piece .face{z-index:2}
.live-piece .piece-lock{z-index:3}
.live-piece.poked .face{filter:brightness(1.12)}
.tickle-fuzz{animation-duration:1200ms!important;pointer-events:none}
@media(prefers-reduced-motion:reduce){.live-piece .fur-fringe{display:none}.tickle-fuzz{display:none}}
.test-slice>.slice{width:100%;max-width:800px}
.slice{position:relative;isolation:isolate;max-width:800px;margin:0 auto;padding:16px 20px 24px;font-family:'EB Garamond',serif}.slice header{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:12px}.slice h1{font-size:38px;font-weight:normal;margin:0}.slice header>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.slice button,.slice select{font:inherit;font-size:15px;color:var(--text);background:var(--paper);border:1px solid var(--border);min-height:42px;padding:6px 12px;cursor:pointer}.slice button:disabled{opacity:.4;cursor:default}.slice button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.slice-status{display:flex;gap:22px;align-items:center;margin:12px 0}.slice-status button{margin-left:auto}.slice .board{width:min(100%,570px);height:auto;aspect-ratio:1;touch-action:none;user-select:none;cursor:grab}.slice .board:active{cursor:grabbing}.live-grid{position:absolute;inset:7px;overflow:hidden}.live-piece{position:absolute;width:16.666667%;height:16.666667%;display:block;will-change:transform;pointer-events:none}.live-piece .body-art{position:absolute;inset:3%;width:94%;height:94%;object-fit:contain}.live-piece .face{position:absolute;width:52%;height:33%;left:24%;top:41%}.live-piece .eye-white{position:absolute;width:100%;height:100%;object-fit:contain}.live-piece .pupil{position:absolute;width:22%;height:42%;top:25%;object-fit:contain}.live-piece .pupil.left{left:20%}.live-piece .pupil.right{left:60%}.live-piece.ready .body-art{animation:match-wiggle 160ms ease-in-out infinite alternate}.live-piece.grabbed .body-art{filter:brightness(1.12);scale:1.035}.live-piece.hinted .body-art{animation:hint-glow 750ms ease-in-out infinite alternate}.live-piece.popping{animation:piece-pop 240ms ease-out forwards}.live-piece.falling{animation:piece-fall 320ms cubic-bezier(.3,.1,.5,1) both}.slice .world-effects{overflow:visible}.flying-eye{width:24px;height:16px;background:url('assets/eye-whites.png') center/contain no-repeat;animation:eye-collect 650ms ease-in forwards}.pop-ring{width:70px;height:70px;background:url('assets/pop-strip.png') left center/1700% 100% no-repeat;animation:pop-strip 360ms steps(16) forwards}.slice #status{text-align:center;color:var(--accent);min-height:40px;margin:12px 0 0;line-height:1.3}.slice-note{font-size:12px;opacity:.65;text-align:center;margin:6px 0}.slice .world-effects>*{position:absolute}
@keyframes match-wiggle{from{rotate:-5deg;scale:1.03}to{rotate:5deg;scale:1.08}}@keyframes hint-glow{from{filter:brightness(1)}to{filter:brightness(1.7) drop-shadow(0 0 6px #eadc9c)}}@keyframes piece-pop{0%{scale:1}35%{scale:1.2}100%{scale:.05;opacity:0}}@keyframes piece-fall{from{transform:translateY(var(--fall))}to{transform:translateY(0)}}@keyframes eye-collect{0%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(var(--to-x),var(--to-y)) scale(.3)}}@keyframes pop-strip{to{background-position:100% center}}
@media(max-width:500px){.slice{padding:10px 12px 20px}.slice header{gap:8px}.slice h1{font-size:32px}.slice header>div:last-child{justify-content:flex-end}.slice header button{font-size:13px;min-height:36px;padding:5px 9px}.slice-status{gap:14px;margin:9px 0;font-size:15px}.slice .board{max-width:402px}}
@media(prefers-reduced-motion:reduce){.live-piece.ready .body-art,.live-piece.hinted .body-art,.live-piece.popping,.live-piece.falling,.flying-eye,.pop-ring{animation:none}.live-piece.ready .body-art{filter:brightness(1.4)}.live-piece.popping{opacity:0}}

/* Recovered 60-frame fur strip: layer motion stays independent of eyes and match pulse. */
.live-piece .body-art{background-size:6000% 100%;background-repeat:no-repeat;background-position:0 center;transform-origin:center}
.live-piece.ready .body-art{animation:match-wiggle 160ms ease-in-out infinite alternate}
.match-outline{position:absolute;inset:7px;pointer-events:none;z-index:5;overflow:visible}
.match-star{position:absolute;width:12px;height:12px;transform:translate(-50%,-50%);background:url('assets/match-star.png') center/contain no-repeat;filter:drop-shadow(0 0 3px #ffe49a);animation:star-shimmer 600ms ease-in-out infinite alternate}
@keyframes match-wiggle{from{rotate:-4deg;scale:1.03}to{rotate:4deg;scale:1.07}}
@keyframes star-shimmer{from{opacity:.65;scale:.8}to{opacity:1;scale:1.15}}
@media(prefers-reduced-motion:reduce){.live-piece.ready .body-art,.match-star{animation:none}.live-piece .body-art{will-change:auto}.live-piece.ready .body-art{outline:1px solid #ffe49a}}
.fuzz-particle{width:9px;height:10px;mask:url('assets/fuzz.png') center/contain no-repeat;-webkit-mask:url('assets/fuzz.png') center/contain no-repeat;animation:fuzz-burst 600ms cubic-bezier(.15,.55,.3,1) both}
@keyframes fuzz-burst{0%{opacity:1;transform:translate(0,0) rotate(0deg) scale(1.3)}65%{opacity:.8}100%{opacity:0;transform:translate(var(--fuzz-x),var(--fuzz-y)) rotate(var(--fuzz-rotation)) scale(.3)}}
@media(prefers-reduced-motion:reduce){.fuzz-particle{display:none}}
.score-popup{display:flex;align-items:center;gap:2px;z-index:30;filter:drop-shadow(0 2px 0 #21112f) drop-shadow(0 0 4px #12071f);animation:score-float 1050ms ease-out both;white-space:nowrap}
.score-popup img{display:block;height:29px;width:auto;max-width:none}
@keyframes score-float{0%{opacity:0;transform:translate(-50%,0) scale(.7)}15%{opacity:1;transform:translate(-50%,-10px) scale(1.12)}35%{opacity:1;transform:translate(-50%,-20px) scale(1)}100%{opacity:0;transform:translate(-50%,-65px) scale(.95)}}
@media(prefers-reduced-motion:reduce){.score-popup{animation:score-fade 900ms linear both;transform:translate(-50%,-50%)}}
@keyframes score-fade{0%,80%{opacity:1}100%{opacity:0}}
.pop-ring{background-image:none;background-color:var(--fuzz-color);mask:url('assets/pop-strip.png') left center/1700% 100% no-repeat;-webkit-mask:url('assets/pop-strip.png') left center/1700% 100% no-repeat;animation:colored-pop-strip 360ms steps(16) forwards}
@keyframes colored-pop-strip{to{mask-position:100% center;-webkit-mask-position:100% center}}
@media(prefers-reduced-motion:reduce){.pop-ring{animation:none;display:none}}

.pop-ring{animation-duration:520ms}
.fuzz-particle{animation:fuzz-fall 950ms linear both}
@keyframes fuzz-fall{0%{opacity:1;transform:translate(0,0) rotate(0deg) scale(1.2)}25%{transform:translate(var(--fx25),var(--fy25)) rotate(90deg)}50%{opacity:1;transform:translate(var(--fx50),var(--fy50)) rotate(180deg)}75%{opacity:.7;transform:translate(var(--fx75),var(--fy75)) rotate(270deg)}100%{opacity:0;transform:translate(var(--fx100),var(--fy100)) rotate(var(--fuzz-rotation)) scale(.5)}}
.score-popup small{position:absolute;top:100%;left:50%;transform:translateX(-50%);font:600 15px 'EB Garamond',serif;color:#fff0b1;text-shadow:0 2px #281735;white-space:nowrap}
.cascade-banner{display:flex;flex-direction:column;align-items:center;gap:5px;z-index:40;pointer-events:none;color:#fff2ad;text-shadow:0 2px 3px #180b29;filter:drop-shadow(0 0 15px #49236c);animation:cascade-hype 1s ease-out both}
.cascade-banner>span{display:flex;align-items:center;gap:8px}.cascade-banner img{height:55px;width:auto;max-width:none}.cascade-banner b{font:48px Georgia,serif}.cascade-banner small{font:bold 13px 'EB Garamond',serif;letter-spacing:4px}
@keyframes cascade-hype{0%{opacity:0;transform:translate(-50%,-50%) scale(.55)}18%{opacity:1;transform:translate(-50%,-50%) scale(calc(var(--hype-scale)*1.15))}35%,65%{opacity:1;transform:translate(-50%,-50%) scale(var(--hype-scale))}100%{opacity:0;transform:translate(-50%,-75%) scale(calc(var(--hype-scale)*1.04))}}
@media(prefers-reduced-motion:reduce){.cascade-banner{animation:score-fade 900ms linear both;transform:translate(-50%,-50%)}.fuzz-particle{display:none}.pop-ring{display:none}}

/* The playable family-game shell: one viewport, with the colour inside the window. */
html,body.test-slice{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
.test-slice>.slice{box-sizing:border-box;width:100%;max-width:1600px;height:100dvh;min-height:0;padding:max(12px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));display:grid;grid-template-rows:64px minmax(0,1fr);gap:18px}
.slice [hidden]{display:none!important}.slice header{padding:0 0 10px}.slice button{border-radius:2px;background:var(--cut-floor);min-height:44px}.slice h1{font-size:40px}.slice header>div:last-child{flex-wrap:nowrap}
.classic-game{min-height:0;display:grid;grid-template-columns:200px minmax(0,1fr);gap:40px;align-items:center;padding:0 5%}
.slice-status{align-self:stretch;display:flex;flex-direction:column;align-items:stretch;gap:24px;margin:24px 0}.slice-status .stat{gap:8px}.slice-status .stat>strong{font-size:48px}.slice-status button{margin:0}.slice-status .collection{gap:10px}.slice-status .collection-icon{width:35px;height:46px}.slice-status .game-actions{display:flex;gap:8px;margin-top:auto}.game-actions button{flex:1}.slice .track{overflow:hidden}.slice .track span{width:0;transition:width .4s;background:var(--accent)}.slice #status{font-size:16px;text-align:left;min-height:42px;margin:0;color:var(--accent)}
.classic-game .playfield{height:100%;width:100%;container-type:size}.slice .board{width:min(100cqw,100cqh,850px);height:auto;max-width:none;aspect-ratio:1;box-sizing:border-box}
.main-menu{align-self:center;justify-self:center;width:min(100%,420px);text-align:center;display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:20px 0}.main-menu h2{font-size:48px;line-height:1.05;font-weight:400;margin:0}.main-menu p{margin:0;font-size:19px;line-height:1.4}.main-menu a{color:var(--accent);min-height:44px;display:grid;place-items:center}.main-menu .classic-start{display:flex;justify-content:space-between;align-items:center;font-size:28px;padding:16px 20px}.classic-start span{font-size:16px;color:var(--accent)}.menu-gold{color:var(--accent)}
.menu-chuzzles{width:115px;height:115px;position:relative;align-self:center;overflow:hidden;margin-bottom:8px}.menu-chuzzles img:first-child{position:absolute;height:115px;width:6900px;max-width:none;left:0;top:0}.menu-chuzzles img:last-child{position:absolute;width:60px;height:38px;left:28px;top:46px}.menu-chuzzles{animation:menu-bob 4s ease-in-out infinite alternate}
.level-announcement{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);z-index:50;text-align:center;padding:26px 45px;min-width:220px;background:var(--paper);border:1px solid var(--border);box-shadow:0 12px 60px #0006;pointer-events:none}.level-announcement h2{font-size:58px;font-weight:400;margin:5px 0}.level-announcement p{font-size:24px;margin:0;color:var(--accent)}
.shaking{animation:bottle-shake 90ms ease-in-out infinite alternate;transform-origin:50% 90%}.escaping-eye{width:24px;height:16px;background:url('assets/eye-whites.png') center/contain no-repeat;animation:eyes-escape 1300ms cubic-bezier(.1,.35,.55,1) both;z-index:45}
@keyframes eyes-escape{0%{opacity:1;transform:translate(0,0) scale(.4)}30%{opacity:1}100%{opacity:0;transform:translate(var(--escape-x),var(--escape-y)) rotate(160deg) scale(1.2)}}
@keyframes bottle-shake{from{transform:translateX(-3px) rotate(-12deg)}to{transform:translateX(3px) rotate(12deg)}}@keyframes menu-bob{to{transform:translateY(-7px) rotate(4deg)}}
@media(max-width:700px){
 .test-slice>.slice{padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));grid-template-rows:48px minmax(0,1fr);gap:10px}
 .slice h1{font-size:32px}.slice header .overline{display:none}.slice header{padding-bottom:6px}.slice header button{min-height:40px;font-size:14px}
 .classic-game{grid-template-columns:1fr;grid-template-rows:145px minmax(0,1fr);gap:10px;padding:0;align-items:start}
 .slice-status{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:49px 35px 44px;gap:6px 18px;margin:0;align-self:stretch;position:relative}
 .slice-status .stat{gap:2px;padding-bottom:4px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.slice-status .stat>span{font-size:10px;letter-spacing:1px}.slice-status .stat>strong{font-size:29px}.slice-status .stat>span:last-child{display:none}.slice-status .gold-stat>span:last-child{display:block}
 .slice-status .collection{grid-column:1/-1}.slice-status .collection-icon{width:24px;height:32px}.slice-status .game-actions{margin:0;grid-column:1/-1;gap:10px}.slice #status{position:fixed;bottom:max(8px,env(safe-area-inset-bottom));left:18px;right:18px;text-align:center;font-size:13px;min-height:32px;line-height:1.2}
 .classic-game .playfield{height:calc(100% - 44px);justify-content:start}.slice .board{width:min(100cqw,100cqh)}
 .main-menu{gap:11px;padding:8px 0}.main-menu h2{font-size:40px}.main-menu p{font-size:17px}.menu-chuzzles{width:95px;height:95px;margin:0}.menu-chuzzles img:first-child{height:95px;width:5700px}.menu-chuzzles img:last-child{width:50px;height:31px;left:23px;top:38px}.main-menu .overline{font-size:9px}
}
@media(max-height:500px) and (min-width:600px){.test-slice>.slice{grid-template-rows:44px minmax(0,1fr);gap:6px}.classic-game{grid-template-columns:180px minmax(0,1fr);padding:0;gap:16px}.slice-status{margin:0;gap:9px}.slice-status .stat>strong{font-size:26px}.main-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(700px,100%)}.menu-chuzzles{grid-row:1/5;justify-self:center}.main-menu h2{font-size:30px}.main-menu .overline{display:none}.main-menu a{min-height:32px}.main-menu .classic-start{font-size:24px;padding:6px 10px}.main-menu p{font-size:15px}}
@media(prefers-reduced-motion:reduce){.shaking,.escaping-eye,.menu-chuzzles{animation:none}.escaping-eye{display:none}.slice .track span{transition:none}}

.level-announcement{box-sizing:border-box;width:min(320px,calc(100% - 32px));min-width:0;padding:24px}.level-announcement h2{white-space:nowrap;font-size:48px}

.slice h1{line-height:1.1}.slice header .overline{display:block;line-height:1.2;margin-bottom:4px}.menu-chuzzles img:first-child{width:100%;height:100%;object-fit:contain}.classic-game{height:100%;max-height:100%}.slice-status{min-height:0}
@media(max-width:700px){.slice header .overline{display:none}}
.flying-eye::after,.escaping-eye::after{content:'';position:absolute;inset:25% 15%;background:radial-gradient(ellipse at 22% 50%,#171218 0 24%,transparent 28%),radial-gradient(ellipse at 78% 50%,#171218 0 24%,transparent 28%)}

.menu-chuzzles img:first-child{left:0;top:0}

/* A bounded rising volume, rather than a thickening stroke outside the glass. */
.bottle-interior .bottle-liquid{fill:var(--accent);fill-opacity:.55;stroke:none;stroke-width:0}
.bottle-glint{fill:none;stroke:var(--bg);stroke-width:1;opacity:.5}
.bottle-outline,.bottle-rim{fill:none;stroke:var(--accent);stroke-width:1.8;vector-effect:non-scaling-stroke}
@media(prefers-reduced-motion:reduce){.flying-eye{display:none}}

#bottle-fill{transition:y 150ms ease-out,height 150ms ease-out}
@media(prefers-reduced-motion:reduce){#bottle-fill{transition:none}}

/* The dragged lane carries a quiet spectrum behind its fur. */
.live-grid{z-index:1}
.lane-trail{position:absolute;inset:7px;pointer-events:none;z-index:0;overflow:hidden}
.lane-trail::before{content:'';position:absolute;opacity:.24;filter:blur(2px);background:linear-gradient(90deg,#ce6aff,#fd80c1,#ffa266,#ffe09b,#92edb0,#7dd9fc,#a594ff)}
.lane-trail[data-axis="x"]::before{left:0;top:calc(var(--lane)*100%/6);width:100%;height:calc(100%/6);mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}
.lane-trail[data-axis="y"]::before{top:0;left:calc(var(--lane)*100%/6);height:100%;width:calc(100%/6);background:linear-gradient(#ce6aff,#fd80c1,#ffa266,#ffe09b,#92edb0,#7dd9fc,#a594ff);mask-image:linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent)}
.fuzz-particle{animation-duration:1500ms}

/* Spectrum runs across the width of a lane; each colour is a long parallel band. */
.lane-trail[data-axis="x"]::before{background:linear-gradient(180deg,#ce6aff,#fd80c1,#ffa266,#ffe09b,#92edb0,#7dd9fc,#a594ff)}
.lane-trail[data-axis="y"]::before{background:linear-gradient(90deg,#ce6aff,#fd80c1,#ffa266,#ffe09b,#92edb0,#7dd9fc,#a594ff)}
.fuzz-particle{animation-duration:2400ms}
.live-piece.idle-shift:not(.moving):not(.ready):not(.hinted) .body-art{animation:idle-fur 1700ms ease-in-out both}
@keyframes idle-fur{0%,100%{transform:translateY(0) rotate(0) scale(1)}30%{transform:translateY(-1px) rotate(var(--idle-turn)) scale(1.025,.98)}65%{transform:translateY(.5px) rotate(0) scale(.99,1.015)}}
@media(prefers-reduced-motion:reduce){.live-piece.idle-shift .body-art{animation:none}}

@media(prefers-reduced-motion:reduce){.live-piece.idle-shift:not(.moving):not(.ready):not(.hinted) .body-art{animation:none}}

/* Eyes leave the game window and cross the site's interface at full visibility. */
.slice .world-effects{z-index:80}
.flying-eye{animation:none;background-size:100% 100%;filter:drop-shadow(0 2px 1px #170e35) drop-shadow(0 0 5px #c8f4ff);z-index:90}
.flying-eye::after{display:none}
.collection-icon .bottle-liquid{fill:var(--accent);fill-opacity:.55;stroke:none}
.collection-icon.is-full .bottle-liquid{fill:#15c6ff;fill-opacity:1}
.collection-icon.is-full{filter:drop-shadow(0 0 6px #13bbff99)}
.slice-status .collection-icon{width:44px;height:58px}
.celebration-bottle{position:fixed!important;z-index:105;transform-origin:50% 0;animation:none!important;filter:drop-shadow(0 4px 10px #10112b77)}
.celebration-bottle>.collection-icon{display:block;width:100%;height:100%;stroke-width:1.3}
.celebration-bottle.shaking{animation:hero-shake 95ms ease-in-out infinite alternate!important;transform-origin:50% 90%}
@keyframes hero-shake{from{transform:translateX(-4px) rotate(-5deg)}to{transform:translateX(4px) rotate(5deg)}}
.bottle-beam{position:fixed!important;width:50px;z-index:101;animation:eye-beam 2500ms ease-out both!important;background:linear-gradient(to top,#0abfffaa,#7deaff25 55%,transparent);mask-image:linear-gradient(90deg,transparent,#000 45%,#000 55%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 45%,#000 55%,transparent)}
.bottle-mouth-glow{position:fixed!important;width:80px;height:80px;background:url('assets/level-glow.png') center/contain no-repeat;filter:drop-shadow(0 0 14px #00baff);z-index:106;animation:mouth-glow 2400ms ease-out both!important}
.stream-eye{position:fixed!important;z-index:107;background-size:100% 100%;filter:drop-shadow(0 0 3px #77dcff);animation:vertical-eyes 1250ms linear both}
@keyframes vertical-eyes{0%{opacity:0;transform:translate(0,0) scale(.5)}10%{opacity:1;transform:translate(calc(var(--stream-x)*.1),calc(var(--stream-y)*.1)) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(var(--stream-x),var(--stream-y)) scale(.75)}}
@keyframes eye-beam{0%{opacity:0}12%,65%{opacity:1}100%{opacity:0}}
@keyframes mouth-glow{0%{opacity:0;transform:scale(.3)}12%{opacity:1;transform:scale(1.3)}45%{opacity:.8;transform:scale(.8)}100%{opacity:0;transform:scale(.3)}}
.level-announcement.fountain-announcement{position:fixed;top:auto;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:12px 24px;z-index:110}
.fountain-announcement h2{font-size:38px}.fountain-announcement p{font-size:21px}
@media(max-width:700px){.classic-game{grid-template-rows:154px minmax(0,1fr)}.slice-status{grid-template-rows:49px 44px 44px}.slice-status .collection-icon{width:32px;height:40px}}
@media(prefers-reduced-motion:reduce){.stream-eye,.bottle-beam,.bottle-mouth-glow{display:none}.celebration-bottle.shaking{animation:none!important}}

.fountain-announcement h2{line-height:1.1;margin:5px 0}.fountain-announcement p{line-height:1.2}.fountain-announcement .overline{display:block;line-height:1.2}

/* Sharp eye contours at retina density; rainbow ribbons share the eye fountain. */
.flying-eye,.stream-eye{background-image:url('assets/flying-eyes.svg');image-rendering:auto}
.flask-rainbow{position:fixed!important;z-index:104;pointer-events:none;transform-origin:50% 100%;border-radius:70% 70% 20% 20%;background:linear-gradient(90deg,#ba71ff,#6d8aff,#58cfff,#7ee49e,#f5df7b,#ffa677,#f58bc8);mask-image:linear-gradient(transparent,#000 25%,#000 80%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 25%,#000 80%,transparent);filter:drop-shadow(0 0 4px #bdaaff88);animation:none!important}
@media(prefers-reduced-motion:reduce){.flask-rainbow{display:none}}

/* Special pieces retain the recovered game art inside the same six-cell window. */
.live-piece.giant{z-index:2}
.live-piece.giant .body-art,.live-piece.rainbow .body-art{background-size:100% 100%}
.live-piece .piece-lock{position:absolute;inset:-25%;width:150%;height:150%;object-fit:contain;z-index:3;pointer-events:none;filter:drop-shadow(0 2px 2px #140d35aa)}
.live-piece.super .body-art{filter:drop-shadow(0 0 7px #f4daff);animation:super-charge 1100ms ease-in-out infinite alternate}
.live-piece.super.ready .body-art{animation:match-wiggle 160ms ease-in-out infinite alternate}
.live-piece.super .pupil.left{left:36%!important}.live-piece.super .pupil.right{left:45%!important}
@keyframes super-charge{from{filter:brightness(1.05) drop-shadow(0 0 3px #f4daff)}to{filter:brightness(1.25) drop-shadow(0 0 12px #f4daff)}}
.super-blast,.super-born{pointer-events:none;border-radius:50%;background:radial-gradient(circle,#fff 0,#e9d4ffbb 15%,#b276fa66 40%,transparent 68%);animation:super-flash 600ms ease-out both;z-index:85}
@keyframes super-flash{0%{transform:scale(.1);opacity:0}20%{opacity:1}100%{transform:scale(1.2);opacity:0}}
.lane-trail[data-axis="x"]::before{height:calc(var(--lanes,1)*100%/6)}
.lane-trail[data-axis="y"]::before{width:calc(var(--lanes,1)*100%/6)}
@media(prefers-reduced-motion:reduce){.live-piece.super .body-art,.live-piece.super.ready .body-art{animation:none}.super-blast,.super-born{animation:score-fade 400ms linear both}}

.live-piece.giant .face{width:36%;height:23%;left:32%;top:44%}

.pop-ring.rainbow-pop{mask:none;-webkit-mask:none;background: url('assets/rainbow-pop.png') center/contain no-repeat;animation:rainbow-pop 520ms ease-out both}
@keyframes rainbow-pop{from{transform:scale(.2);opacity:1}to{transform:scale(1.1);opacity:0}}
@media(prefers-reduced-motion:reduce){.pop-ring.rainbow-pop{display:none}}

/* ==== Modern-retro Chuzzle livery =================================
   Rounded everything: the lobby is rebuilt from the original menu's
   language — a pastel wordmark over a still purple sky, the dark
   welcome bubble, glossy blue orbs in a purple tick bezel. */

.slice :is(button,.menu-gold,.soon-chip,.player-name,.welcome-script,.menu-orb){font-family:'Baloo 2','Trebuchet MS',Verdana,sans-serif}

.slice header{border-bottom:0;align-items:center;padding:2px 2px 10px}
.chuzzle-wordmark{height:56px;width:auto;margin-top:2px;filter:drop-shadow(0 5px 12px #0a0418b3);animation:wordmark-drift 7s ease-in-out infinite alternate}
@keyframes wordmark-drift{to{transform:translateY(-3px)}}
@media(max-width:700px){.chuzzle-wordmark{height:44px}}
@media(prefers-reduced-motion:reduce){.chuzzle-wordmark{animation:none}}

/* While the lobby is up the wordmark is the lobby art; in play the small
   header one takes over. */
body.at-menu .slice header{justify-content:flex-end}
body.at-menu .chuzzle-wordmark{display:none}
.lobby-wordmark{align-self:center;width:min(68vw,284px);height:auto;margin:0 -2px -10px;filter:drop-shadow(0 10px 26px #0702194d)}
@media(max-width:700px){.lobby-wordmark{width:min(62vw,258px)}}

.slice button{min-height:38px;padding:7px 16px;border:1px solid #7156ad;border-radius:999px;background:#2b1c52;color:#f6efff;font:600 14px/1.2 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:.3px}
.slice button:disabled{opacity:.45;cursor:default}

.main-menu{width:min(100%,430px);gap:7px;padding:0;display:grid;grid-template-columns:1fr 1fr}
.lobby-wordmark,.menu-chuzzles,.welcome-orb,#classic-start,.menu-upcoming{grid-column:1/-1}
.lobby-wordmark,.menu-chuzzles,.welcome-orb,#classic-start{justify-self:center}
#continue{grid-column:1;justify-self:center}
#new-game{grid-column:2;justify-self:center}
#continue,#new-game{width:min(46vw,168px);height:104px;border-radius:50%;padding:10px 18px;font:800 clamp(17px,4.6vw,21px)/1.12 'Baloo 2','Trebuchet MS',sans-serif;text-align:center;justify-content:center}
#continue::before,#new-game::before{border-radius:50%}
body.at-menu .slice{height:auto}
.menu-chuzzles{position:relative;align-self:center;width:80px;height:60px;margin:0 0 2px;overflow:visible}
.menu-chuzzles img:first-child{height:60px;top:0}
.welcome-orb{position:relative;isolation:isolate;width:min(64vw,192px);aspect-ratio:1;align-self:center;border-radius:50%;box-sizing:border-box;margin:0;padding:20px 22px 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;
 background:radial-gradient(circle at 50% 32%,#402c72 0,#281853 46%,#170d33 78%,#110824 100%);
 box-shadow:inset 0 14px 30px #ffffff14,inset 0 -24px 40px #04020c,0 14px 42px #0a0418d9}
.welcome-script{font-weight:800;font-size:clamp(17px,4.6vw,21px);line-height:1.05;color:#ff9fd4;text-shadow:0 2px 0 #3b0f45,0 0 16px #ff9fd455}
.player-name{max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;font-size:clamp(21px,7vw,29px);line-height:1.08;color:#ffd23f;text-shadow:0 3px 0 #34204d,0 0 18px #ffd23f3d}
#menu-title{display:none}
.menu-error{margin:2px 0 0;font:600 12.5px/1.35 'Baloo 2','Trebuchet MS',sans-serif;color:#ff9fd4}
.menu-gold{display:flex;align-items:center;gap:7px;max-width:100%;margin:3px 0 0;padding:6px 12px 7px;border:1px solid #3d2a6b;border-radius:14px;
 background:linear-gradient(#0d0620,#16092f);box-shadow:inset 0 2px 6px #000,inset 0 0 18px #2a124d99,0 1px 0 #ffffff0f;
 font-size:10px;line-height:1;letter-spacing:1.8px}
.menu-gold .gold-icon{width:15px;height:15px;flex:none;color:#ffcf35;filter:drop-shadow(0 0 6px #ffe98a66)}
#menu-gold{display:inline-flex;align-items:center;flex:1;min-width:0;justify-content:center;min-height:24px;font:800 17px/1 'Baloo 2','Trebuchet MS',sans-serif;color:#ffd23f;text-shadow:0 0 8px #ffcf3599,0 0 2px #ffe98a;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.menu-gold.digits-heavy .gold-label{display:none}
/* Duo-open web app / short tablet landscape: fit the complete lobby rather
   than extending the document. OS/system strips remain outside the viewport. */
@media (min-width:701px) and (min-height:520px) and (max-height:820px) {
 html:has(body.standalone-chuzzle.at-menu){height:100%;overflow:hidden}
 body.standalone-chuzzle.at-menu{height:100dvh;min-height:0;overflow:hidden}
 body.standalone-chuzzle.at-menu>.slice{height:100dvh;min-height:0;grid-template-rows:34px minmax(0,1fr);gap:4px;padding:max(8px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
 body.at-menu .main-menu{gap:5px;align-content:center;min-height:0;padding:0}
 body.at-menu .lobby-wordmark{width:clamp(140px,27dvh,220px);margin-bottom:-8px}
 body.at-menu .menu-chuzzles{width:64px;height:clamp(28px,6dvh,40px);margin:0}
 body.at-menu .menu-chuzzles img:first-child{height:100%}
 body.at-menu .welcome-orb{width:clamp(110px,22dvh,152px);padding:12px 16px;gap:4px}
 body.at-menu .welcome-script{font-size:17px}
 body.at-menu .player-name{font-size:24px}
 body.at-menu #classic-start{width:226px;height:clamp(76px,15dvh,108px);min-height:44px;font-size:32px}
 body.at-menu #continue,body.at-menu #new-game{height:80px;min-height:44px;font-size:18px}
 body.at-menu .menu-upcoming{gap:9px}
 body.at-menu .menu-upcoming .menu-orb{min-height:48px;padding:8px 14px}
}
#menu-gold img{height:clamp(10px,calc(118px / var(--n,1)),24px);width:auto;filter:drop-shadow(0 0 6px #ffe98a88)}

.menu-orb{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:78px;padding:12px 28px;border:0;border-radius:999px;color:#fff;cursor:pointer;text-align:center;
 font:800 clamp(19px,5.4vw,25px)/1 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:.4px;text-shadow:0 3px 0 #1e2f8f,0 6px 14px #0a0522aa,0 0 22px #dfe6ff45;
 background:radial-gradient(circle at 50% 8%,#a8bcff 0,#6c8bf6 28%,#4055d9 64%,#2536ab 100%);
 box-shadow:inset 0 3px 6px #cdd8ff66,inset 0 -16px 26px #0c1a68cc,0 4px 0 #241458,0 14px 26px #0a0522cc}
.menu-orb::before{content:'';position:absolute;inset:-8px;border-radius:999px;pointer-events:none;z-index:-1;opacity:.92;
 background:repeating-conic-gradient(from 14deg,#d3a8f2 0deg 7deg,#8a4fc0 7deg 14deg);
 -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 12px),#000 calc(100% - 11px));
 mask:radial-gradient(farthest-side,transparent calc(100% - 12px),#000 calc(100% - 11px))}
.menu-orb::after{content:'';position:absolute;left:16%;right:16%;top:7%;height:28%;border-radius:50%;pointer-events:none;
 background:radial-gradient(ellipse at 50% 0,#ffffff8c 0,#ffffff1a 55%,transparent 72%)}
.menu-orb:focus-visible{outline:3px solid #ffd23f;outline-offset:5px}
.menu-orb:not(:disabled):hover{filter:brightness(1.07)}
.menu-orb:not(:disabled):active{transform:translateY(2px) scale(.985);filter:brightness(.95)}

#classic-start{width:min(72vw,256px);height:142px;border-radius:50%;padding:0;align-self:center;font:800 clamp(30px,9.5vw,44px)/1.05 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:.5px;justify-content:center;text-align:center;text-shadow:0 2px 0 #20308f,0 4px 0 #182569,0 6px 0 #101a4a,0 10px 18px #0a0522cc,0 0 26px #e8eeff55}
#classic-start::before{content:'';position:absolute;inset:-8px;border-radius:50%;pointer-events:none;z-index:-1;
 background:radial-gradient(farthest-side,transparent calc(100% - 14px),#00000055 calc(100% - 13px),#9a68dc calc(100% - 12px) 86%,#3a2374 100%)}
.menu-upcoming{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:1px}
.menu-upcoming .menu-orb{border-radius:50%;min-height:58px;padding:12px 18px;font:700 13px/1.1 'Baloo 2','Trebuchet MS',sans-serif}
.menu-upcoming .menu-orb::before{border-radius:50%}
.menu-orb.soon{cursor:default;color:#cdb9f4;text-shadow:0 2px 2px #14073e;
 background:radial-gradient(circle at 50% 8%,#5d489a 0,#3f2d78 40%,#2d1e5f 100%);
 box-shadow:inset 0 4px 8px #ffffff14,inset 0 -8px 16px #14073eb3,0 3px 0 #1c1042,0 8px 16px #0a052299}
.menu-orb.soon::before{opacity:.4}
.menu-orb.soon::after{opacity:.35}
.soon-chip{margin-top:3px;border-radius:999px;padding:2px 8px 3px;background:#0000003d;font-weight:700;font-size:9px;line-height:1;letter-spacing:1.6px;text-transform:uppercase;color:#ffd23f}

.level-announcement{background:#241548;border:1px solid #7156ad;box-shadow:0 14px 60px #000c;color:#f6efff}
.level-announcement .overline{color:#f2a7e5}
.level-announcement h2{color:#ffd23f;text-shadow:0 3px 0 #1a0f33}
.level-announcement p{font:800 21px 'Baloo 2','Trebuchet MS',sans-serif;color:#ffd23f}

@media(max-width:700px){
 .main-menu{gap:12px}
 .menu-upcoming{gap:9px}
}

#sound,#menu-open,#to-3d{display:flex;align-items:center;justify-content:center;min-height:34px;padding:8px 18px;border:0;border-radius:24px;color:#f6efff;cursor:pointer;white-space:nowrap;
 font:700 13px/1 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:.4px;text-shadow:0 1px 0 #14073e,0 0 10px #e8d9ff40;
 background:radial-gradient(circle at 50% 8%,#8a6cd9 0,#5b41a8 34%,#3a2a78 70%,#2a1c5e 100%);
 box-shadow:inset 0 2px 4px #ffffff30,inset 0 -8px 12px #14073ea6,0 3px 0 #1c1042,0 6px 12px #0a052266}
#sound{width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;flex:none}
#sound svg{width:19px;height:19px;margin-top:-2px}
#sound:focus-visible,#menu-open:focus-visible,#to-3d:focus-visible{outline:3px solid #ffd23f;outline-offset:4px}
#sound:not(:disabled):active,#menu-open:not(:disabled):active,#to-3d:not(:disabled):active{transform:translateY(1px)}
#sound[aria-pressed='true']{color:#3a2408;text-shadow:none;
 background:radial-gradient(circle at 50% 10%,#ffe08a 0,#f7b93d 40%,#a76a1c 100%);
 box-shadow:inset 0 2px 4px #ffffff66,inset 0 -8px 12px #5c3a0ecc,0 3px 0 #6b430f,0 6px 14px #0a052266,0 0 14px #ffdf6d66}

/* ---- Classic game screen: modern-retro recolor ---- */
.standalone-chuzzle .future-return{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:30}
.slice #status{display:none}
#hint,#reset{display:flex;align-items:center;justify-content:center;border:0;border-radius:999px;min-height:46px;color:#fff;font:800 14px/1 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:.6px;text-transform:uppercase;cursor:pointer;text-shadow:0 2px 0 #1a0f33,0 0 10px #ffedb355}
#hint{background:radial-gradient(circle at 50% 8%,#ffe08a 0,#f7a93d 45%,#a86a10 100%);box-shadow:inset 0 2px 4px #ffffff66,inset 0 -8px 12px #5c3a0ecc,0 3px 0 #6b430f,0 6px 14px #0a052266}
#reset{background:radial-gradient(circle at 50% 8%,#9fdcff 0,#3aa7f0 45%,#1259a8 100%);box-shadow:inset 0 2px 4px #ffffff66,inset 0 -8px 12px #062c5ecc,0 3px 0 #0b3567,0 6px 14px #0a052266}
#hint:focus-visible,#reset:focus-visible{outline:3px solid #ffd23f;outline-offset:3px}
#hint:not(:disabled):active,#reset:not(:disabled):active{transform:translateY(1px)}
.slice-status{gap:14px}
.slice-status .stat{border-bottom:0;border-radius:20px;padding:10px 14px;gap:3px;background:linear-gradient(180deg,#241548e6,#170c31e6);box-shadow:inset 0 2px 5px #ffffff14,0 3px 0 #150b2e,0 10px 18px #0a052266}
.slice-status .stat>span{font:800 10px 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:2px;text-transform:uppercase;color:#f2a7e5}
.slice-status .stat>strong{font:800 clamp(28px,4.2vw,40px)/1.05 'Baloo 2','Trebuchet MS',sans-serif;color:#ffd23f;text-shadow:0 0 12px #ffcf3566,0 2px 0 #1a0f33}
.slice-status .stat>span:last-child{color:#a37fe0}
.progress-label{align-items:center;gap:8px}
.fill-banner{font:800 15px/1 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:.5px;color:#9ed6ff;text-shadow:0 2px 0 #123a75,0 5px 14px #35c8ff55;background:linear-gradient(180deg,#123068,#0c1f4a);padding:4px 12px 5px;border-radius:999px;box-shadow:inset 0 1px 0 #9fd0ff44,0 2px 0 #081226}
.fill-count{font:800 12px/1 'Baloo 2','Trebuchet MS',sans-serif;letter-spacing:1px;color:#ffd23f;white-space:nowrap}
.slice .track{height:9px;border-radius:999px;background:linear-gradient(#0d0620,#1b0f38);box-shadow:inset 0 2px 4px #000,inset 0 0 0 1px #7156ad40;padding:2px}
.slice .track span{border-radius:999px;background:linear-gradient(90deg,#2ec2ff,#7deaff);box-shadow:0 0 8px #35c8ff99}
.collection-icon .bottle-liquid{fill:#2fb4ff;fill-opacity:.8}
.collection-icon.is-full .bottle-liquid{fill:#15c6ff;fill-opacity:1}
.bottle-outline,.bottle-rim{stroke:#8fd0ff}
.bottle-glint{stroke:#dff6ff;opacity:.8}
.slice .board{border:4px solid #ff9a3e;border-radius:34px;box-shadow:0 0 0 3px #ffe08a,0 0 0 8px #b44fd8,0 0 0 12px #ffd23f,0 16px 40px #0602139c,inset 0 0 0 2px #ffffff2e,inset 0 6px 30px #06030faa}
.level-announcement{border-radius:26px}
@media(max-width:700px){
.classic-game{grid-template-rows:auto minmax(0,1fr);gap:8px;padding:0 2%}
.classic-game .playfield{height:100%;justify-content:center}
.slice-status{grid-template-rows:repeat(3,auto);gap:8px 10px}
.slice-status .stat{padding:7px 12px;border-radius:16px}
.slice-status .stat>strong{font-size:26px}
.slice-status .collection{gap:9px}
.slice-status .collection-icon{width:30px;height:38px}
#hint,#reset{min-height:42px;font-size:13px}
.slice .board{border-radius:24px}
}
