.sg-puzzle{box-sizing:border-box;width:min(1160px,96vw);max-width:96vw;max-height:96dvh;overflow:auto;border:0;border-radius:28px;padding:24px;background:#fffaf0;color:#25354a}.sg-puzzle::backdrop{background:#241b43b8}.sg-puzzle-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.sg-puzzle h2{font-size:clamp(24px,3vw,36px);line-height:1.3;margin:0}.sg-puzzle p{line-height:1.6}.sg-puzzle button,.sg-puzzle select{font:inherit;min-height:48px;border:1px solid #d5c8e8;border-radius:14px;padding:10px 14px;background:#f2eaff;color:#493567;cursor:pointer}.sg-puzzle-tools{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0;align-items:end}.sg-puzzle-tools label{display:grid;gap:6px;font-size:14px}.sg-puzzle-guide{display:block;max-width:280px;max-height:200px;object-fit:contain;margin:16px auto;border-radius:16px}.sg-puzzle-guide[hidden]{display:none}.sg-puzzle-board{display:grid;width:min(100%,680px);margin:auto;border:3px solid #b9a4df;border-radius:14px;overflow:hidden;background:#e7e0f0;gap:2px}.sg-puzzle .sg-puzzle-slot{min-height:0;padding:0;border-radius:0;border:0;background-color:#f3edf9}.sg-puzzle .is-placed{background-color:white;background-repeat:no-repeat}.sg-puzzle-tray{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:16px;background:#efe6fb;border-radius:20px}.sg-puzzle .sg-puzzle-piece{width:82px;height:auto;min-height:48px;padding:0;background-repeat:no-repeat;border:2px solid #fff;border-radius:10px;touch-action:none;box-shadow:0 3px 0 #6f528933}.sg-puzzle .sg-puzzle-piece[aria-pressed=true]{outline:4px solid #7144c7;outline-offset:2px}.sg-puzzle .is-hint{box-shadow:inset 0 0 0 4px #e5aa26;background-color:#fff0b7}.sg-puzzle-status{font-weight:700;text-align:center}.sg-puzzle-drag{position:fixed;z-index:2147483647;width:82px;height:72px;transform:translate(-50%,-50%);pointer-events:none;border:3px solid #ffdf78;border-radius:10px;opacity:.9}.sg-puzzle :focus-visible{outline:4px solid #7b49c9;outline-offset:3px}.sg-puzzle:fullscreen{width:100vw;max-width:none;max-height:none;height:100dvh;border-radius:0}.sg-puzzle-section{max-width:1180px;margin:auto;box-sizing:border-box}.sg-kids-mode[data-kids-view=puzzles] #main>#puzzles{display:block!important}.sg-kids-home-card[data-kids-nav=puzzles]{background:#fff1c7}.sg-kids-icon-puzzle::before{content:'🧩'}@media(max-width:640px){.sg-puzzle{padding:16px}.sg-puzzle-tools{gap:8px}.sg-puzzle-tools button{font-size:14px}.sg-puzzle .sg-puzzle-piece{width:60px;height:auto;min-height:48px}.sg-puzzle-tray{gap:8px;padding:12px}.sg-puzzle-heading button{font-size:14px}.sg-puzzle-board{gap:1px}}

.sg-puzzle-piece{height:auto;min-height:48px}.sg-kids-dock{flex-wrap:wrap}.sg-kids-mode[data-kids-view="puzzles"] .sg-puzzle-section{display:block!important}.sg-kids-puzzle{background:linear-gradient(135deg,#faf5ff,#e9defb)}

.sg-puzzle .sg-puzzle-drag{padding:0;background-repeat:no-repeat;pointer-events:none}
@media(max-width:640px){.sg-kids-dock{flex-wrap:nowrap}}
