:root{color-scheme:light;--ink:#344a46;--muted:#718277;--sage:#597c69;--cream:#fffdf3;--line:#bdcbb5;--gold:#b38b42}*{box-sizing:border-box}body{margin:0;background:#edf0e3;color:var(--ink);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background-image:radial-gradient(#8ca48625 1px,transparent 1px);background-size:18px 18px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit}a{color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #c78e47;outline-offset:3px}[hidden]{display:none!important}header{max-width:1000px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;font-size:12px}header a{text-decoration:none;font-weight:700}.puzzle-brand{letter-spacing:.08em;color:#66806c;font-size:10px;font-weight:900}main{width:min(100%,560px);margin:auto;padding:8px 16px 36px;min-width:0}.panel{background:var(--cream);border:2px solid var(--line);border-radius:16px;padding:24px;box-shadow:4px 5px 0 #58704f13}.hero{text-align:center}.eyebrow{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#7d8f77;font-weight:800}h1{font-size:32px;letter-spacing:-1.5px;line-height:1.2;margin:12px 0}h2{font-size:23px;line-height:1.3;letter-spacing:-.5px}.lead{font-size:14px;color:var(--muted);margin:14px auto 20px;max-width:320px}.hero-tools{display:flex;align-items:flex-end;justify-content:center;gap:12px;margin:10px 0}.hero-tools img{width:80px;height:80px;image-rendering:pixelated}.hero-tools img:nth-child(2){width:104px;height:104px}img{image-rendering:pixelated}.button,.primary,.soft{min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px 16px;background:#f2f4e8;font-weight:750;font-size:13px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}.primary{background:var(--sage);color:#fff;border-color:var(--sage);box-shadow:0 3px 0 #354f42}.primary:active{translate:0 2px;box-shadow:0 1px 0 #354f42}.primary.large{width:100%;font-size:16px;min-height:50px}.wallet{display:flex;justify-content:center;align-items:center;gap:10px;margin:16px 0;font-size:12px;color:#7c6b48}.wallet a{color:#627767}.chapter{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px}.chapter h2{font-size:15px;margin:0}.chapter span{font-size:11px;color:var(--muted)}.level-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.level-button{min-width:0;aspect-ratio:.88;border:1px solid #c8d1bc;background:#fffdf5;border-radius:9px;box-shadow:0 3px #c9d3be;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:8px 2px;font-size:18px;font-weight:800}.level-button.current{background:#e0ebd3;border:2px solid #78916c}.level-button:disabled{background:#e7ebdf;border-color:#d5ddcb;box-shadow:none;color:#9ba895}.level-button small{font-size:9px;letter-spacing:-1px;color:#b68c3e;min-height:14px}.level-button .lock-small{width:11px;height:12px;border:2px solid #9ba895;border-radius:2px;position:relative;margin-top:6px}.lock-small:before{content:'';position:absolute;width:7px;height:7px;border:2px solid #9ba895;border-bottom:0;border-radius:5px 5px 0 0;top:-8px;left:0}.help{font-size:12px;color:#687e6c;margin-top:22px;border-top:1px solid #d5ddcb;padding-top:15px}.help summary{font-weight:700;cursor:pointer}.help ul{padding-left:20px}.help li{margin:9px 0}.map-footer{margin-top:22px;display:flex;gap:8px;flex-wrap:wrap}.map-footer>*{flex:1}.quiet{font-size:11px;color:#7c8b7d;text-align:center}.arena-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px}.arena-top .soft{padding:8px 10px;min-height:40px}.stage-title small{font-size:10px;letter-spacing:.08em;color:var(--muted)}.stage-title strong{display:block;font-size:20px;line-height:1.2}.hud{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:12px}.goals{display:flex;gap:8px;align-items:stretch;min-width:0}.goal{border:1px solid #c4cfb7;background:#fafbee;border-radius:10px;display:flex;align-items:center;gap:6px;padding:8px 10px;flex:1;min-width:0}.goal img{width:30px;height:30px;object-fit:contain}.goal div{min-width:0}.goal small{display:block;font-size:9px;color:var(--muted)}.goal strong{font-size:14px;white-space:nowrap}.goal.met{background:#e2efd8;border-color:#8fae7b}.moves{background:#597c69;color:white;border-radius:10px;min-width:70px;padding:5px 10px;text-align:center}.moves small{display:block;font-size:10px;color:#edf4df}.moves strong{font-size:30px;line-height:1}.moves.low{background:#a25d56}.board-shell{position:relative;background:#bdcbb6;padding:9px;border:3px solid #8ca184;border-radius:13px;box-shadow:0 5px 0 #748c6d,0 9px 15px #40553912;min-width:0}.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;touch-action:none;user-select:none;-webkit-user-select:none}.tile{padding:2px;aspect-ratio:1;min-height:0;min-width:0;width:100%;position:relative;border:1px solid #a6b69d;border-radius:7px;background:var(--tile);box-shadow:inset 0 2px #ffffff8a,inset 0 -3px #485a4815;display:flex;align-items:center;justify-content:center;isolation:isolate}.tile img{width:100%;height:100%;object-fit:contain;pointer-events:none;max-width:54px;filter:none}.tile.selected{outline:3px solid #fff8c9;outline-offset:0;z-index:3;box-shadow:0 0 0 4px #8f743e;translate:0 -1px}.tile.hint{outline:3px solid #f9efb1;z-index:2}.tile.dust:before{content:'';position:absolute;inset:1px;z-index:-1;border:2px dotted #b49159;border-radius:5px;background:#e6d3aa90}.tile.locked:after{content:'';position:absolute;inset:5px;border:2px solid #9f9879;border-radius:4px;background:repeating-linear-gradient(135deg,transparent,transparent 9px,#5d6d6030 10px,#5d6d6030 12px);pointer-events:none}.tile.locked .lock-icon{position:absolute;bottom:0;right:0;background:#726d59;border:1px solid #fff2d2;color:#fff4d8;padding:0 2px;font-size:9px;line-height:12px;z-index:2}.special-badge{position:absolute;right:-1px;bottom:-1px;background:#fff9dc;color:#886d37;border:1px solid #b8a47a;border-radius:3px;font-size:13px;line-height:17px;min-width:18px;text-align:center;font-weight:900;z-index:4;box-shadow:0 1px 1px #30483033}.tile.rainbow{background:#f7e9b8;border-color:#c2a16b}.rainbow-box{display:grid;grid-template-columns:repeat(3,1fr);width:65%;height:65%;gap:2px;background:#6c8271;padding:4px;box-shadow:2px 2px 0 #425949}.rainbow-box i{background:var(--gem)}.tile.clearing{animation:puzzlePop .22s ease-in forwards}.tile.spawning{outline:2px solid #f5dc94}.board.settling .tile{animation:puzzleDrop .18s ease-out}.board.shake{animation:puzzleShake .25s}.scorebar{display:flex;justify-content:space-between;gap:8px;padding:15px 2px 4px;font-size:12px;color:#6d806f}.scorebar strong{font-size:15px;color:#486854}.board-message{min-height:24px;font-size:12px;text-align:center;color:#6c805e;margin:8px 0}.arena-actions{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}.arena-actions .soft{flex:1;font-size:12px;padding:8px}.storage-note{font-size:11px;color:#8e6553;text-align:center;min-height:18px}dialog{width:min(calc(100% - 32px),390px);border:2px solid #a9b99b;border-radius:18px;background:#fffdf2;color:var(--ink);padding:26px;text-align:center;box-shadow:6px 8px 0 #314a3c22}dialog::backdrop{background:#253d33a8;backdrop-filter:blur(3px)}dialog h2{margin:8px 0 15px}dialog p{font-size:13px;color:var(--muted)}.modal-actions{display:grid;gap:10px;margin-top:20px}.result-stars{font-size:42px;color:#c89c45;letter-spacing:4px;line-height:1.3;margin:15px 0}.result-mascot{width:90px;height:90px}.modal-score{font-size:32px;font-weight:850;color:#4a715b}.goal-symbol{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;font-size:19px}.warmup{margin:12px 0;font-size:12px}.sound-button{min-width:40px}.lesson{background:#f1f5e5;border-left:3px solid #a9b98d;padding:9px 12px;font-size:12px;margin:12px 0}.chapter-path{border-left:2px dashed #c4ceb7;margin-left:9px;padding-left:14px}@keyframes puzzlePop{to{opacity:.15;scale:.4}}@keyframes puzzleDrop{from{translate:0 -8px;opacity:.55}to{translate:0 0;opacity:1}}@keyframes puzzleShake{0%,100%{translate:0 0}25%{translate:-4px 0}75%{translate:4px 0}}@media(min-width:850px){main{padding-top:24px}.panel{padding:30px}#arena{padding:0 14px}}@media(max-width:400px){main{padding-left:12px;padding-right:12px}.panel{padding:18px 14px}.board{gap:3px}.board-shell{padding:6px;border-width:2px}.tile{border-radius:5px;padding:1px}.goal{padding:7px 5px;gap:3px}.goal strong{font-size:12px}.goal img{width:24px;height:24px}.moves{min-width:58px}.level-grid{gap:6px}.hero-tools img{width:72px;height:72px}.hero-tools img:nth-child(2){width:96px;height:96px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}dialog::backdrop{backdrop-filter:none}}
/* Local game feedback replaces the site's generic tap flashes. */
.board{position:relative;isolation:isolate}.tile{-webkit-tap-highlight-color:transparent;overflow:visible;box-shadow:inset 0 1px #ffffff80,inset 0 -2px #485a4810}.tile:focus:not(:focus-visible){outline:none}.tile.selected{outline:none;box-shadow:inset 0 0 0 2px #bca36f,inset 0 1px #fff8df;translate:none;z-index:2}.tile.hint{outline:2px solid #d8bd7a;outline-offset:-2px}.tile-art{display:flex;align-items:center;justify-content:center;width:100%;height:100%;pointer-events:none;position:relative;z-index:1;transform-origin:center}.tile-art img{display:block;width:100%;height:100%;object-fit:contain}.tile.item{border-color:#b7a87d;background:#f4ead2}.tile.item-fly{background:#d6e7db;border-color:#91b19d}.tile.item-bomb{background:#e5dceb;border-color:#b4a2c4}.tile.item-rainbow{background:#f4e2af;border-color:#c3a165}.tile.item-row,.tile.item-col{background:#f3dcc5;border-color:#c1a17d}.board-shell{overflow:hidden}.board-effects{position:absolute;inset:9px;pointer-events:none;z-index:15;overflow:visible}.fx-plane,.fx-ray,.fx-burst,.fx-beam{position:absolute;pointer-events:none}.fx-plane{width:32px;height:32px;z-index:5;filter:drop-shadow(0 2px 2px #425a4540)}.fx-plane img{width:100%;height:100%;image-rendering:pixelated}.fx-ray{height:2px;background:#f3d481;transform-origin:left center;box-shadow:0 0 4px #f7e6a8}.fx-burst{border-radius:22%;border:4px solid #d7b17c;background:#f7deb190}.fx-beam.row{height:6px;background:#f9dba3;border-top:1px solid #fff9dc;border-bottom:1px solid #d8a86b}.fx-beam.col{width:6px;background:#f9dba3;border-left:1px solid #fff9dc;border-right:1px solid #d8a86b}.board-message{min-height:20px;margin:5px 0;font-size:11px;color:#7b8977}.scorebar{padding-top:12px}#chain{color:#9a834f;font-size:11px;min-height:18px}.tile.clearing,.board.settling .tile,.board.shake{animation:none}.tile-art{will-change:auto}@media(max-width:400px){.board-effects{inset:6px}}

/* Stable sockets + retained moving sprites; effect layer remains above every tile. */
.tile{isolation:auto;background:#e5ecdc!important;border-color:#b0c0a5!important}
.tile-art{z-index:3;flex:none;aspect-ratio:1;transform:translateZ(0)}
.tile .lock-icon{display:none}.tile.locked .lock-icon{display:block;z-index:6}
.tile.locked:after{z-index:5;border:3px solid #8a8171;background:repeating-linear-gradient(135deg,transparent,transparent 9px,#695c4938 10px,#695c4938 13px)}
.tile.dust:before{z-index:0;background:#d6b5779c;border:2px dotted #9e783d}
.fx-beam.row{height:18px;margin-top:-6px;background:linear-gradient(transparent,#fffbd8 45%,#ffe09d 55%,transparent);border:0;box-shadow:0 0 12px #fff0ae}
.fx-beam.col{width:18px;margin-left:-6px;background:linear-gradient(90deg,transparent,#fffbd8 45%,#ffe09d 55%,transparent);border:0;box-shadow:0 0 12px #fff0ae}
.fx-burst{border:5px solid #fff4c3;background:#f5cd8bc9;box-shadow:0 0 18px #ffedb6}
.fx-obstacle{position:absolute;width:32px;height:32px;display:grid;place-items:center;font-size:32px;color:#fff8d4;text-shadow:0 1px 3px #6a5439;pointer-events:none}.fx-obstacle.clean{border:3px dotted #e3c999;border-radius:50%}

/* Lightweight, bounded particles and target-directed item animation. */
.fx-chip,.fx-pop-ring,.fx-target,.fx-flight-trail{position:absolute;pointer-events:none}
.fx-chip{width:5px;height:5px;border:1px solid #fff8de;box-shadow:0 0 3px #fff6cb}
.fx-chip.star{width:7px;height:7px;clip-path:polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%)}
.fx-pop-ring{width:30px;height:30px;border:2px solid #fff6ce;border-radius:50%;box-shadow:0 0 6px #ffefad80}
.fx-target{width:34px;height:34px;border:2px dashed #fff6bc;border-radius:50%;box-shadow:0 0 0 3px #718d6d40}
.fx-plane{width:44px;height:44px;z-index:8;filter:drop-shadow(0 3px 2px #304f4255)}
.fx-flight-trail{width:44px;height:44px;border-radius:50%;background:#fff2bb;z-index:7}
.audio-controls{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;margin:8px 0 12px}.audio-controls .soft{font-size:11px;min-height:36px;padding:6px 10px}

.puzzle-name{display:block;text-align:left;margin:18px 0 4px;font-size:12px;font-weight:650}.puzzle-name input{display:block;width:100%;min-width:0;min-height:44px;margin-top:6px;padding:9px 12px;font:inherit;font-size:16px;line-height:1.4;border:1px solid var(--line);border-radius:8px;background:#fffef7;color:var(--ink)}
.puzzle-rank-dialog{width:min(calc(100% - 24px),520px);max-height:calc(100dvh - 32px);overflow-y:auto;padding:20px;text-align:left}.rank-rules{font-size:12px;line-height:1.6}.rank-mine{padding:12px;border-radius:8px;background:#e4edd8;font-weight:700}.puzzle-rank-list{list-style:none;margin:12px 0;padding:0}.puzzle-rank-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 6px;border-bottom:1px solid #d6dfcc;font-size:13px}.puzzle-rank-row.mine{background:#e5eedb;border-radius:6px}.rank-place{font-weight:800;color:#7b875f}.rank-person{min-width:0;overflow-wrap:anywhere}.rank-person small{display:block;font-size:10px;color:#74836e}.rank-points{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.rank-actions{display:flex;gap:8px;flex-wrap:wrap}.rank-actions>*{flex:1}.rank-empty{font-size:13px;color:#74836e;padding:20px 0}.puzzle-rank-dialog .quiet{text-align:left;font-size:11px}

.apple-lobby-link{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border-radius:12px;background:#e4efdf;color:#355c46;font-size:14px;font-weight:650;text-decoration:none;margin:6px 0}
/* Type colors travel with the retained sprite nodes during swaps and gravity. */
.tile-art{border:2px solid var(--pal-edge,#c1cdb9);border-radius:7px;background:var(--pal-bg,#f3eddb);box-shadow:inset 0 2px #ffffffb0,inset 0 -3px #26344612}
.tile-art[data-palette="0"]{--pal-bg:#ffe1df;--pal-edge:#dc646b}
.tile-art[data-palette="1"]{--pal-bg:#fff1ab;--pal-edge:#cda139}
.tile-art[data-palette="2"]{--pal-bg:#daf1cc;--pal-edge:#5b9d56}
.tile-art[data-palette="3"]{--pal-bg:#d8ecff;--pal-edge:#548fd0}
.tile-art[data-palette="4"]{--pal-bg:#ffe2bc;--pal-edge:#d18a43}
.tile-art[data-palette="5"]{--pal-bg:#e6ddff;--pal-edge:#8971c5}
.tile-art[data-palette="item"]{--pal-bg:#fff5da;--pal-edge:#bda267}
.tile.selected .tile-art{outline:2px solid #ffffff;outline-offset:-2px}
@media(max-width:400px){.tile-art{border-width:1px;border-radius:4px}}

/* Dust is a stationary obstacle above the moving, opaque character artwork. */
.tile.dust:before{inset:0;z-index:4;border:3px dotted #62566f;border-radius:6px;background:linear-gradient(0deg,#73648145,transparent 42%);box-shadow:inset 0 0 0 1px #fffdf0;pointer-events:none}
.dust-mark{display:none;position:absolute;left:-2px;bottom:-2px;width:clamp(14px,43%,22px);aspect-ratio:1;background:url('/puzzle-items/dust.svg') center/contain no-repeat;image-rendering:pixelated;pointer-events:none;z-index:7}
.tile.dust .dust-mark{display:block}
.fx-obstacle.clean{width:32px;height:32px;border:0;border-radius:0;background:url('/puzzle-items/dust.svg') center/contain no-repeat;image-rendering:pixelated;filter:drop-shadow(0 1px 2px #fffdf0)}
@media(max-width:400px){.tile.dust:before{border-width:2px;border-radius:4px}}

/* Later stages can have three goals; keep every objective inside a narrow phone HUD. */
.goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.goal:only-child{grid-column:1/-1}.moves{align-self:start}.goal strong{font-size:clamp(11px,3vw,14px)}

.map-pager{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-top:18px}.map-pager label{min-width:0;flex:1;max-width:190px}.map-pager select{width:100%;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #b6cbbb;border-radius:12px;background:var(--card,#fff);color:inherit;font:inherit;font-weight:700}.map-pager button{min-height:44px;flex-shrink:0;padding:8px 14px}.map-pager button:disabled{opacity:.35;cursor:default}.map-pager .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#mapPageStatus{margin:8px 0 0;font-size:12px}@media(max-width:380px){.map-pager{gap:5px}.map-pager button{padding:8px 10px}}

.boosters{margin:14px 0 16px;padding:13px 12px;background:#fffdf3;border:1px solid #bdcbb5;border-radius:16px}.boost-heading{display:flex;align-items:baseline;gap:8px;justify-content:space-between;margin-bottom:10px}.boost-heading strong{font-size:13px}.boost-heading small{font-size:10px;color:#718277;text-align:right}.boost-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.boost-button{position:relative;min-width:0;padding:7px 3px 6px;border:1px solid #bdcbb5;border-radius:12px;background:#f1f4e9;color:#344a46;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:80px}.boost-button img{width:36px;height:36px;image-rendering:pixelated}.boost-button span{font-size:11px;font-weight:700;white-space:nowrap}.boost-button strong{position:absolute;right:3px;top:3px;border-radius:8px;padding:0 4px;min-width:19px;background:#597c69;color:#fff;font-size:11px;line-height:19px}.boost-button[aria-pressed=true]{background:#e1ebd6;border:2px solid #597c69;box-shadow:0 0 0 2px #b4cba9}.boost-button:disabled{opacity:.46}.boost-status{min-height:32px;font-size:11px;color:#526e5a;margin:9px 0 0;line-height:1.5}.boost-note{font-size:10px;line-height:1.5;color:#718277;margin:4px 0 0}.fx-loot{position:absolute;z-index:10;display:flex;align-items:center;gap:3px;border-radius:12px;background:#fff8dc;border:2px solid #b38b42;padding:5px 9px;box-shadow:0 3px 8px #344a4633;pointer-events:none;white-space:nowrap}.fx-loot img{width:32px;height:32px;image-rendering:pixelated}.fx-loot strong{color:#5c7850;font-size:18px}@media(max-width:380px){.boosters{padding:10px 8px}.boost-grid{gap:4px}.boost-button img{width:30px;height:30px}.boost-button{min-height:73px}.boost-button span{font-size:10px}.boost-heading small{max-width:140px}}

.board.boost-armed{outline:3px solid #92af7c;outline-offset:3px;cursor:crosshair}.board.boost-armed .tile{cursor:crosshair}

/* Bubble impact, cold ice cages, warm metal locks, and true cut-out cells. */
.board-shell{background:linear-gradient(145deg,#c1d2bc,#a7bba6)}.board{grid-template-rows:repeat(8,minmax(0,1fr));aspect-ratio:1}.tile.void{visibility:hidden;pointer-events:none;border:0;background:none;box-shadow:none}.tile.void>*{display:none}.tile.dust:before{inset:0;z-index:4;border:0;border-radius:6px;background:url('/puzzle-items/ice.svg') center/100% 100% no-repeat;box-shadow:inset 0 0 12px #7ed7f936;pointer-events:none}.tile.dust .dust-mark{display:none}.tile.dust .tile-art{filter:saturate(.85) brightness(1.05)}.tile.locked:after{inset:10% 2%;z-index:5;border:0;border-top:3px solid #b28a4c;border-bottom:3px solid #b28a4c;border-radius:3px;background:none;box-shadow:0 1px #fff3c9,inset 0 1px #fff0c1}.tile.locked .lock-icon{right:-1px;bottom:-1px;width:clamp(16px,43%,26px);height:clamp(18px,47%,29px);padding:0;background:none;border:0;z-index:7;line-height:1}.tile.locked .lock-icon img{display:block;width:100%;height:100%;filter:drop-shadow(0 1px 1px #442c3299)}.stage-title:after{content:attr(data-shape);display:block;font-size:10px;font-weight:650;color:#58766b;letter-spacing:0;margin-top:4px}.fx-bubble-pop,.fx-bubble-drop,.fx-ice-shard{position:absolute;pointer-events:none;will-change:transform,opacity}.fx-bubble-pop{border:2px solid #fff;border-radius:50%;background:radial-gradient(circle at 28% 22%,#fff 0 4%,#ffffff65 5% 13%,transparent 16% 65%,#ffffff8a 70% 74%,transparent 78%);box-shadow:0 0 0 2px var(--pop-color),inset 0 0 8px var(--pop-color),0 0 8px #fff8}.fx-bubble-drop{width:7px;height:7px;border:1px solid #fff;border-radius:50%;box-shadow:inset 0 1px 1px #fff,0 1px 3px #43617b55}.fx-ice-shard{width:13px;height:17px;clip-path:polygon(15% 0,100% 24%,64% 100%,0 70%);background:linear-gradient(135deg,#fff 0 30%,#91e7ff 32% 65%,#3ba6d7 68%);filter:drop-shadow(0 0 2px #fff)}

/* Closed crates conceal sprites and their colour until an adjacent clear opens them. */
.tile.boxed{background:#a67550;border-color:#63442f;box-shadow:none}.tile.boxed:before{inset:-1px;z-index:7;border:0;border-radius:3px;background:url('/puzzle-items/box.svg') center/100% 100% no-repeat;box-shadow:none;opacity:1;image-rendering:pixelated}.tile.boxed .tile-art{visibility:hidden;filter:none}.tile.boxed .dust-mark{display:none}.tile.boxed.selected,.tile.boxed.hint{outline:none;translate:none}.fx-box-splinter{position:absolute;width:15px;height:7px;background:linear-gradient(#edc38b 0 30%,#a56e43 32% 70%,#67442e 72%);border:1px solid #6d4830;pointer-events:none;clip-path:polygon(0 20%,80% 0,100% 65%,20% 100%);will-change:transform,opacity}

/* Anchored obstacles render above falling neighbors, so another sprite cannot cover their contents. */
.tile.locked,.tile.boxed{z-index:8}.tile.selected,.tile.hint{z-index:9}
