.ps-game button{min-width:56px;min-height:56px;touch-action:manipulation}.ps-game .ng-scene{padding:12px}.ps-path-board{--ps-size:3;position:relative;display:grid;grid-template-columns:repeat(var(--ps-size),minmax(56px,1fr));gap:6px;padding:8px;background:#c4dda1d9;border-radius:20px;max-width:430px;margin:auto}.ps-cell{padding:3px!important;aspect-ratio:1;position:relative;min-width:0!important;border:2px solid #8baa73!important;box-shadow:0 3px 0 #789463}.ps-cell svg{width:100%;height:100%;display:block;max-height:80px}.ps-cell.ps-stone{background:#f0e3b6}.ps-cell.ps-block{background:#a5c18d;border-color:#95b182!important;opacity:1!important}.ps-cell.ps-visited{background:#f9d48d}.ps-walker{position:absolute;width:calc((100% - 16px - (var(--ps-size) - 1)*6px)/var(--ps-size));height:calc((100% - 16px - (var(--ps-size) - 1)*6px)/var(--ps-size));left:calc(8px + var(--ps-x)*(100% - 10px)/var(--ps-size));top:calc(8px + var(--ps-y)*(100% - 10px)/var(--ps-size));transition:left .32s ease,top .32s ease;pointer-events:none;z-index:2;filter:drop-shadow(0 3px 1px #385a3644)}.ps-fox{width:100%!important;height:100%!important;transform:scale(1.12);transform-origin:center}.ps-command-line{display:flex;justify-content:center;gap:5px;margin:12px 0;flex-wrap:wrap}.ps-command-line span{display:grid;place-items:center;width:42px;height:48px;border:2px dashed #b9c9a3;border-radius:9px;font-size:28px;background:#fff9e7}.ps-command-line .ps-filled{border-style:solid;border-color:#87ad85;background:#e7f2df}.ps-directions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.ps-directions button{font-size:30px;padding:6px!important}.ps-directions .ps-run{background:#4e9166;color:#fff;border-color:#39794f}.ps-controls{display:flex;justify-content:center;gap:9px;margin-top:14px;flex-wrap:wrap}.ps-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 12px!important;min-width:72px}.ps-controls span{font-size:28px;line-height:1.05}.ps-controls small{font-size:11px;margin-top:4px}.ps-controls [data-ps=check]{background:#52956a;color:#fff}.ps-build-world{position:relative;padding:12px;background:#fff6dcd9;border:2px solid #c3a67b;border-radius:18px}.ps-build-spark{color:#e1ae52;text-align:center;font-size:30px;line-height:1;margin-bottom:6px}.ps-model{display:flex;justify-content:center;gap:6px;background:#e5ecda;border:2px solid #bac7a8;border-radius:12px;padding:7px;margin:0 auto 14px;max-width:270px}.ps-model svg{width:64px;height:64px;max-width:29%}.ps-slots{display:grid;grid-template-columns:repeat(3,minmax(56px,1fr));gap:8px}.ps-slots.ps-single{grid-template-columns:110px;justify-content:center}.ps-slot{padding:3px!important;aspect-ratio:1;border:3px dashed #a5ad8a!important;background:#fff8e3!important}.ps-slot svg,.ps-fixed svg{width:100%;height:100%;display:block}.ps-pieces{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:14px}.ps-pieces button{width:73px;height:73px;padding:4px!important;border:2px solid #c7b785;background:#fff5d8}.ps-pieces svg{width:100%;height:100%;display:block}.ps-pieces [aria-pressed=true]{outline:4px solid #6eaa85;outline-offset:1px;background:#e6f4df}.ps-rotate{font-size:40px!important;background:#d7eadf!important}.ps-mirror-board{display:grid;grid-template-columns:repeat(2,minmax(56px,92px));justify-content:center;gap:9px 22px;position:relative}.ps-mirror-board:before{content:'';position:absolute;left:50%;top:0;bottom:0;border-left:3px dashed #79a8ae}.ps-fixed{height:92px;background:#e8f2e4;border-radius:10px;border:2px solid #b5ccb0;padding:7px}.ps-empty-dot{font-size:34px;color:#a4b494}.ps-game[data-phase=success] .ps-build-spark{animation:ps-spark .6s ease 2}.ps-game[data-phase=success] .ps-slot{border-color:#70a67c!important;background:#edf8dc!important}@keyframes ps-spark{50%{transform:scale(1.35) rotate(30deg)}}@media(max-width:390px){.ps-game .ng-scene{padding:7px}.ps-path-board{gap:4px;padding:5px}.ps-walker{width:calc((100% - 10px - (var(--ps-size) - 1)*4px)/var(--ps-size));height:calc((100% - 10px - (var(--ps-size) - 1)*4px)/var(--ps-size));left:calc(5px + var(--ps-x)*(100% - 6px)/var(--ps-size));top:calc(5px + var(--ps-y)*(100% - 6px)/var(--ps-size))}.ps-pieces button{width:62px;height:62px}.ps-build-world{padding:8px}.ps-model svg{height:52px}.ps-controls{gap:7px}.ps-controls button{min-width:66px}.ps-directions{gap:5px}.ps-directions button{min-width:56px}.ps-command-line span{width:38px}.ps-mirror-board{gap:7px 18px}.ps-fixed{height:82px}}@media(prefers-reduced-motion:reduce){.ps-game *{animation:none!important;transition:none!important}}

/* House sample and assembly use the same roof/body/door composition. The body remains tappable on both sides of the door. */
.ps-house-model{position:relative;display:block;width:150px;height:145px;padding:0;background:#e5ecda;border-radius:12px;overflow:hidden}.ps-house-model svg{position:absolute;max-width:none;width:130px;height:77px;left:8px;top:0}.ps-house-model svg:nth-child(2){width:105px;height:100px;left:21px;top:42px}.ps-house-model svg:nth-child(3){width:48px;height:72px;left:50px;top:73px}.ps-house-slots{position:relative;display:block;width:220px;max-width:100%;height:240px;margin:auto}.ps-house-slots .ps-slot{position:absolute;aspect-ratio:auto;width:100%;height:105px;top:0;left:0}.ps-house-slots .ps-slot:nth-child(2){height:145px;top:85px;left:0}.ps-house-slots .ps-slot:nth-child(3){width:60px;height:90px;top:140px;left:calc(50% - 30px);background:#fff8e3f5!important}.ps-house-slots .ps-slot svg{width:100%;height:100%}
