#pack-panel{--p-accent:#b45542;--p-soft:#eadbc9;background:#fbf7ef;color:#534d42;border:1px solid #e1d8ca}#pack-panel[data-kind=pipes]{--p-accent:#207caa;--p-soft:#c6dee8;background:#f0f8fb;color:#294958}#pack-panel[data-kind=light]{--p-accent:#e5b960;--p-soft:#40475c;background:#1c2334;color:#e5e8f1}#pack-panel[data-kind=soko]{--p-accent:#5b7a52;--p-soft:#d5dfc8;background:#f2f5e9;color:#3d5137}.p-head{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;gap:12px}.p-head h2{margin:4px 0 0;font-size:26px}.p-head small{font-size:11px;letter-spacing:2px;opacity:.6}.p-head select{padding:9px;max-width:45%;border:1px solid #aeb6ae;border-radius:8px;background:#ffffffdf;color:#35423d}.p-stats{display:flex;justify-content:center;gap:28px;padding:0 16px 14px}.p-stats span{font-size:12px;opacity:.7;display:block}.p-stats strong{font-size:24px}#p-progress{font-size:12px;padding:0 24px;text-align:center;opacity:.7}#p-help{max-width:740px;margin:12px auto;text-align:center;padding:0 20px;font-size:14px;line-height:1.7}.p-board{position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));width:min(calc(100% - 48px),max(310px,calc(100dvh - 390px)));max-width:590px;aspect-ratio:1;margin:20px auto;background:var(--p-soft);border:4px solid var(--p-soft);border-radius:12px;user-select:none;outline-offset:4px}.p-board.rush{display:block;touch-action:none}.p-grid-bg{position:absolute;inset:0;background-image:linear-gradient(to right,#ffffff80 1px,transparent 1px),linear-gradient(to bottom,#ffffff80 1px,transparent 1px);background-size:calc(100% / 6) calc(100% / 6)}.p-car{position:absolute;display:grid;place-items:center;border:4px solid var(--p-soft);border-radius:12px;font:inherit;font-size:15px;font-weight:750;background:#8bafa3;color:white;cursor:grab;box-shadow:inset 0 -5px #0002}.p-car.car-2{background:#b2a170}.p-car.car-3{background:#8c99b7}.p-car.car-4{background:#a98aab}.p-car.car-5{background:#91a977}.p-car.target{background:#c96650}.p-car.selected{outline:3px solid #8b4c26;outline-offset:-5px}.p-exit{position:absolute;left:calc(100% + 3px);display:grid;place-items:center;color:#bd533a;font-size:22px;font-weight:900}.p-square{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;border:1px solid #ffffff70;border-radius:3px;background:#fff9;color:var(--p-accent);padding:0;cursor:pointer;font:inherit;font-size:clamp(22px,5vw,38px)}.p-square:disabled{opacity:1;cursor:default}.p-square svg{width:100%;height:100%;overflow:visible;pointer-events:none}.pipes .p-square svg path{fill:none;stroke:#9dabb6;stroke-width:15;stroke-linecap:round}.pipes .p-square svg circle{fill:#9dabb6}.pipes .p-square.wet svg path{stroke:#268dc3}.pipes .p-square.wet svg circle{fill:#268dc3}.p-end{position:absolute;left:2px;top:2px;padding:1px 3px;border-radius:3px;background:#244964;color:white;font-size:10px;z-index:2;pointer-events:none}.p-square.sink{box-shadow:inset 0 0 0 3px #d0a455}.light .p-square{background:#293248;border:1px solid #4b536b}.light .p-square.wall{background:repeating-linear-gradient(45deg,#111626,#111626 6px,#252d3f 6px,#252d3f 10px)}.light .mirror{stroke:#a8dded;stroke-width:9;stroke-linecap:round}.p-beam{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 0 3px #ffd15d)}.p-beam polyline{fill:none;stroke:#ffce62;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.soko .p-square{background:#e6ecd9;color:#586b42}.soko .p-square.wall{background:#6d7b62;box-shadow:inset 0 0 0 3px #808f72}.soko .p-square.goal{outline:2px dashed #8da55b;outline-offset:-7px}.soko .p-square.box{background:#c5a369;color:#fff5d6}.soko .p-square.box.goal{background:#6a915d;outline-color:#cfe8a6}.soko .p-square.player{color:#376598;text-shadow:0 2px #fff}.p-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:10px 14px}.p-actions button{padding:10px 14px;border:1px solid #aab3a7;border-radius:8px;background:#fff;color:#405044;font:inherit}.p-actions button[data-pack-direction]{font-size:20px;padding:6px 12px}#p-next{background:var(--p-accent);color:#fff;border-color:var(--p-accent)}#p-result{text-align:center;font-size:18px;font-weight:750;color:var(--p-accent)}#p-status,#p-tip,#p-save{text-align:center;padding:0 18px;font-size:13px;line-height:1.7;margin:8px 0}#p-tip,#p-save{opacity:.65;font-size:12px}#p-save{padding-bottom:12px}.p-square:focus-visible,.p-car:focus-visible{outline:3px solid #ef943c;outline-offset:-3px;z-index:3}@media(max-width:600px){.p-head{padding:12px 16px}.p-head h2{font-size:22px}.p-stats{gap:25px}.p-board{width:calc(100% - 40px);margin:14px auto}.p-car{font-size:12px;border-width:3px;border-radius:9px}#p-help{font-size:13px}.p-actions button{font-size:13px;padding:9px 11px}.p-end{font-size:8px}.p-square.goal{outline-offset:-5px}}
