.puzzle-page{max-width:1400px;padding-top:24px!important}.puzzle-page>h1{font-size:clamp(32px,4vw,56px);margin:16px 0}.puzzle-intro{margin:0 0 22px;font-size:18px}.puzzle-game{background:#eee5ce;border:2px solid #dac9a2;border-radius:28px;padding:clamp(14px,3vw,30px);box-shadow:0 8px 0 #d7c5a0;position:relative}.puzzle-toolbar{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:end}.puzzle-toolbar fieldset{border:0;margin:0;padding:0;min-width:0}.puzzle-toolbar legend{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:1.4px;margin-bottom:8px}.puzzle-levels,.puzzle-tools{display:flex;gap:8px;flex-wrap:wrap}.puzzle-game button{font:800 15px/1.25 'Nunito',sans-serif;cursor:pointer;color:#173d31;border:2px solid #d4d9bd;border-radius:12px;background:#fffcf4;min-height:48px;padding:10px 16px;-webkit-user-select:none;user-select:none}.puzzle-levels button small{display:block;font-size:11px;margin-top:4px;font-weight:700}.puzzle-levels button[aria-pressed=true]{background:#174f3d;color:white;border-color:#174f3d;box-shadow:0 3px 0 #0e3126}.puzzle-tools button{font-size:13px}.puzzle-progress{display:flex;align-items:center;gap:14px;margin-top:24px;font-weight:800;font-size:14px}.puzzle-progress progress{flex:1;min-width:50px;height:12px;accent-color:#174f3d}.puzzle-progress>span:last-child{font-size:26px;color:#bf600c}.puzzle-instructions{font-size:14px;margin:8px 0 16px;color:#3f5142}.puzzle-play{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.38fr);gap:22px;align-items:start}.puzzle-board{position:relative;aspect-ratio:1;background:#fffef9;border:6px solid #174f3d;border-radius:18px;overflow:hidden;box-shadow:0 5px 0 #10392c}.puzzle-board>img{display:block;width:100%;height:100%;object-fit:cover;opacity:.22;pointer-events:none;transition:opacity .2s}.puzzle-board.no-hint>img{opacity:0}#puzzle-slots{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr)}.puzzle-game #puzzle-slots button{border:1px dashed #849c7d88;border-radius:0;min-height:0;min-width:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-origin:border-box;touch-action:manipulation}.puzzle-game #puzzle-slots .drop-hover{box-shadow:inset 0 0 0 4px #e88416;background-color:#ffb22f44}.puzzle-game #puzzle-slots .placed{border-color:transparent;cursor:default;opacity:1}.puzzle-tray-wrap h2{font-size:17px;letter-spacing:0;margin:0 0 12px;line-height:1.4}.puzzle-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.puzzle-game .puzzle-piece,.puzzle-ghost{position:relative;aspect-ratio:var(--piece-ratio);padding:0;min-width:0;min-height:44px;border:2px solid #fff;border-radius:8px;background-color:#fff;background-repeat:no-repeat;background-origin:border-box;box-shadow:0 3px 0 #aa9468;touch-action:none;transition:box-shadow .15s}.puzzle-piece span{position:absolute;left:3px;top:3px;background:#174f3d;color:white;border-radius:50%;width:20px;height:20px;font-size:11px;line-height:20px;text-align:center}.puzzle-game .puzzle-piece.selected{outline:3px solid #dd7411;outline-offset:2px}.puzzle-piece.dragging{opacity:.25}.puzzle-game .puzzle-piece.finished{opacity:.16;box-shadow:none;cursor:default}.puzzle-ghost{position:fixed;z-index:10000;pointer-events:none;opacity:.95;transform:rotate(-3deg);box-shadow:0 12px 30px #0005;outline:3px solid #ffb22f}.puzzle-status{min-height:26px;margin:20px 0 0;font-size:14px;font-weight:700;color:#174f3d}.puzzle-win{text-align:center;padding:18px 12px 0}.puzzle-win[hidden]{display:none}.puzzle-win>span{font-size:32px;letter-spacing:8px;color:#b65c07}.puzzle-win h2{font-size:28px;letter-spacing:-.5px;margin:8px 0}.puzzle-win p{margin:0 0 12px}.puzzle-win button{background:#174f3d;color:white;border-color:#174f3d}.puzzle-game.complete .puzzle-board{border-color:#d98410}.puzzle-guide{max-width:850px;margin:48px auto 0}.puzzle-guide h2{font-size:30px}.puzzle-guide h3{font-size:22px}.puzzle-page .button{text-decoration:none}.puzzle-game button:focus-visible{outline:3px solid #d56d0c;outline-offset:3px}.puzzle-board-wrap{min-width:0}@media(max-width:850px){.puzzle-play{grid-template-columns:1fr}.puzzle-tray{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.puzzle-tray-wrap h2{font-size:15px}.puzzle-toolbar{gap:14px}.puzzle-progress{margin-top:16px}}@media(max-width:480px){.puzzle-page{padding-left:4%!important;padding-right:4%!important}.puzzle-game{border-radius:20px;padding:12px}.puzzle-levels{gap:6px}.puzzle-levels button{padding:9px 12px;font-size:14px}.puzzle-toolbar{display:block}.puzzle-tools{margin-top:12px}.puzzle-tools button{flex:1;padding:10px 8px}.puzzle-board{border-width:4px;border-radius:12px}.puzzle-tray{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.puzzle-game .puzzle-piece{min-height:46px}.puzzle-instructions{font-size:13px}.puzzle-play{gap:18px}.puzzle-piece span{width:16px;height:16px;font-size:10px;line-height:16px}}@media(prefers-reduced-motion:reduce){.puzzle-game *{transition:none!important}}

.puzzle-game.complete .puzzle-tray-wrap{display:none}
@media(max-width:850px){.puzzle-game[data-size="4"] .puzzle-tray{grid-template-columns:repeat(2,minmax(0,1fr))}}
