.photo-puzzle-panel{width:980px;max-width:min(980px,calc(100% - 24px))}.dog-puzzle{--puzzle-edge:#a9956f}.panel-body .puzzle-intro{font-size:.9375rem;margin-bottom:18px;color:#5a625d}.puzzle-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.puzzle-controls label{display:grid;gap:4px;font-size:.8125rem;color:#5d584c}.puzzle-controls select{min-height:44px;padding:8px 30px 8px 10px;border:1px solid #aa9e86;border-radius:5px;background:#eee4d3;color:#293b3c;font:inherit}.puzzle-controls button{margin-left:auto}.puzzle-photos{display:flex;gap:9px;overflow-x:auto;padding:14px 4px 18px;margin:0 -4px;scrollbar-width:thin}.puzzle-photo{flex:0 0 62px;height:62px;padding:3px;border:2px solid transparent;background:#e3d7bf;border-radius:5px}.puzzle-photo img{width:100%;height:100%;object-fit:contain;display:block}.puzzle-photo[aria-pressed=true]{border-color:#49716b;box-shadow:0 0 0 2px #49716b26}.puzzle-play{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(200px,1fr);gap:26px;align-items:start}.puzzle-picture{box-sizing:content-box;position:relative;width:calc(100% - 16px);aspect-ratio:var(--photo-ratio,1.33333);border:8px solid #6a5740;border-radius:4px;box-shadow:0 3px 10px #35261123;background:#e2d4b8;max-width:100%;isolation:isolate}.puzzle-board{position:absolute;inset:0;background:linear-gradient(120deg,#d6c6a9,#e8dcc6)}.puzzle-slot,.puzzle-piece{position:relative;border:0;padding:0;background:transparent;border-radius:0;color:#273b3b}.puzzle-slot{position:absolute;overflow:visible}.puzzle-slot svg,.puzzle-piece svg{position:absolute;left:-20%;top:-20%;width:140%;height:140%;pointer-events:none;overflow:visible}.puzzle-slot-outline{fill:#f5eed550;stroke:#9a8a6e;stroke-width:.012;stroke-dasharray:.04 .025}.puzzle-slot:hover:not(:disabled) .puzzle-slot-outline,.puzzle-slot:focus-visible .puzzle-slot-outline{fill:#c3d6c099;stroke:#486c63;stroke-width:.025}.puzzle-slot:focus-visible{outline:3px solid #385e57;outline-offset:-4px;z-index:2}.puzzle-seam{fill:none;stroke:#352c2288;stroke-width:.012;vector-effect:non-scaling-stroke}.puzzle-slot.is-placed{z-index:1}.puzzle-board.is-complete .puzzle-seam{stroke:transparent}.puzzle-reference{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;z-index:4}.puzzle-tray-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.panel-body .puzzle-tray-heading h3{margin:0;font-size:1.1rem}.puzzle-tray-heading button{font-size:.8125rem;padding:8px 12px;min-height:44px}.puzzle-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:16px;background:#d9cebc;border:1px solid #baac93;border-radius:5px;min-height:100px}.puzzle-piece{aspect-ratio:var(--photo-ratio,1.33333);min-height:44px;cursor:grab;filter:drop-shadow(1px 3px 2px #483b2a55)}.puzzle-piece:hover,.puzzle-piece[aria-pressed=true]{z-index:2;filter:drop-shadow(0 0 3px #477b67)}.puzzle-piece[aria-pressed=true]{outline:3px solid #466c60;outline-offset:5px}.puzzle-piece:active{cursor:grabbing}.puzzle-piece:focus-visible,.puzzle-photo:focus-visible{outline:3px solid #385e57;outline-offset:5px}.panel-body .puzzle-status{font-size:.875rem;color:#4b6356;margin:20px 0 0;min-height:2.8em}.puzzle-finished{grid-column:1/-1;align-self:center;justify-self:center;font-size:2rem;color:#74865a}.house-fireflies{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;image-rendering:auto}.firefly-option{display:flex;align-items:center;gap:10px;font-size:.875rem;min-height:44px;color:var(--muted)}.firefly-option input{width:18px;height:18px;accent-color:var(--gold)}
@media(max-width:650px){.photo-puzzle-panel .panel-frame{padding:23px 18px}.puzzle-play{grid-template-columns:1fr;gap:22px}.puzzle-picture{max-width:400px;margin:auto}.puzzle-tray{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:20px}.puzzle-controls{gap:10px}.puzzle-controls button{margin-left:0}.puzzle-tray-heading{margin-bottom:12px}.puzzle-photo{flex-basis:56px;height:56px}.puzzle-tray-wrap{min-width:0}}
@media(min-width:651px){.puzzle-picture{width:min(calc(100% - 16px),calc(max(220px,100svh - 430px)*var(--photo-ratio,1.333333)));justify-self:center}}
