.puzzle-game .puzzle-config{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:22px;align-items:start}.puzzle-game .puzzle-resume{margin-bottom:20px}.puzzle-game .puzzle-search{display:flex;gap:8px}.puzzle-game .puzzle-search button{white-space:nowrap}.puzzle-game .puzzle-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.puzzle-game .puzzle-photo{padding:0;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);overflow:hidden;min-width:0}.puzzle-game .puzzle-photo img{width:100%;height:135px;object-fit:cover}.puzzle-game .puzzle-photo span{display:block;padding:8px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.puzzle-game .puzzle-photo[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:1px}.puzzle-game .puzzle-preview-wrap{background:var(--soft);border-radius:12px;min-height:200px;display:grid;place-items:center;overflow:hidden}.puzzle-game .puzzle-preview{height:220px;object-fit:contain;width:100%}.puzzle-game .puzzle-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.puzzle-game .puzzle-mode{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);text-align:left}.puzzle-game .puzzle-mode.active{background:var(--soft);border-color:var(--accent)}.puzzle-game .puzzle-mode span{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.puzzle-game .puzzle-play-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:20px;align-items:start}.puzzle-game .puzzle-toolbar{margin-bottom:17px}.puzzle-game .puzzle-hud{padding:10px 2px;font-variant-numeric:tabular-nums;font-size:13px}.puzzle-game .puzzle-canvas-wrap{position:relative;border-radius:14px;overflow:hidden;background:var(--panel);border:1px solid var(--line)}.puzzle-game .puzzle-canvas-wrap.is-table{background:repeating-linear-gradient(3deg,#b6986820 0px,#b6986810 2px,transparent 3px,transparent 20px),var(--soft)}.puzzle-game canvas{display:block;width:100%;height:500px;touch-action:none;cursor:grab}.puzzle-game canvas:active{cursor:grabbing}.puzzle-game .puzzle-tools{margin:13px 0}.puzzle-game .puzzle-zoom{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.puzzle-game .puzzle-zoom input{width:90px}.puzzle-game .puzzle-reference{width:100%;height:170px;object-fit:contain;margin:15px 0}.puzzle-game .puzzle-pause{position:absolute;inset:0;background:var(--panel);opacity:.95;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:18px}.puzzle-game .puzzle-rotation{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.puzzle-game .puzzle-rotation .field{flex:1;min-width:140px}.puzzle-game .puzzle-message{font-size:13px;color:var(--muted);padding:14px 0;min-height:45px}.puzzle-game .puzzle-result h2{margin-bottom:9px}.puzzle-game .puzzle-result .row{margin-top:14px}.puzzle-game .puzzle-crop-focus{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.puzzle-game .puzzle-workspace:fullscreen{background:var(--bg);padding:20px;overflow:auto}.puzzle-game .puzzle-workspace:fullscreen canvas{height:72vh}.puzzle-game input[type="range"]{accent-color:var(--accent)}
@media(max-width:900px){.puzzle-game .puzzle-play-layout{grid-template-columns:minmax(0,1fr)}.puzzle-game .puzzle-play-layout aside{grid-template-columns:repeat(2,minmax(0,1fr))}.puzzle-game .puzzle-config{gap:16px}.puzzle-game canvas{height:440px}}
@media(max-width:650px){.puzzle-game .puzzle-config{grid-template-columns:minmax(0,1fr)}.puzzle-game .puzzle-play-layout aside{grid-template-columns:minmax(0,1fr)}.puzzle-game canvas{height:390px}.puzzle-game .puzzle-gallery{gap:9px}.puzzle-game .puzzle-rotation .row{gap:6px}.puzzle-game .puzzle-rotation .btn{padding:7px;font-size:12px}.puzzle-game .puzzle-tools{gap:6px}.puzzle-game .puzzle-tools .btn{font-size:12px;padding:7px 9px}.puzzle-game .puzzle-photo img{height:120px}.puzzle-game .puzzle-search input{width:100%;min-width:0}.puzzle-game .puzzle-hud{font-size:11px}.puzzle-game .puzzle-preview-wrap{min-height:180px}}
