.art-puzzle { max-width: 1180px; margin: 0 auto; padding: 12px; }
.puzzle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.puzzle-main, .puzzle-tray { background: #fffdf9; border-radius: 24px; padding: 20px; }
.puzzle-main h2 { margin: 0 0 8px; color: #7751a3; }
.puzzle-main > p { margin: 8px 0 15px; }
.puzzle-board { display: grid; grid-template-columns: repeat(var(--puzzle-size), minmax(0, 1fr)); aspect-ratio: 900 / 650; border: 4px solid #cab5e6; border-radius: 12px; overflow: hidden; background: white; }
.puzzle-board[hidden], .puzzle-preview[hidden] { display: none; }
.puzzle-piece { min-width: 0; min-height: 44px; padding: 0; margin: 0; border: 1px solid #c8b9dc; border-radius: 0; background-color: white; background-repeat: no-repeat; cursor: pointer; touch-action: manipulation; }
.puzzle-piece[aria-pressed="true"] { box-shadow: inset 0 0 0 5px #fbac38; z-index: 1; }
.puzzle-piece:focus-visible { outline: 4px solid #9560cf; outline-offset: -5px; z-index: 2; }
.puzzle-piece:disabled { opacity: 1; cursor: default; }
.puzzle-preview { aspect-ratio: 900 / 650; border: 4px solid #cab5e6; border-radius: 12px; overflow: hidden; background: white; }
.puzzle-preview img { width: 100%; height: 100%; object-fit: fill; display: block; }
.puzzle-status { min-height: 28px; font-weight: 700; color: #7751a3; }
.puzzle-actions, .puzzle-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.puzzle-sizes [aria-pressed="true"] { background: #eadbff; border-color: #9962c7; }
.puzzle-art-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 400px; overflow-y: auto; margin-bottom: 16px; }
.puzzle-art { background: white; padding: 6px; border: 3px solid #eee4f5; border-radius: 14px; cursor: pointer; color: #624b76; }
.puzzle-art[aria-pressed="true"] { border-color: #ab78d5; background: #f4ebff; }
.puzzle-art img { display: block; width: 100%; aspect-ratio: 900 / 650; object-fit: contain; }
.puzzle-art span { display: block; font-size: 14px; padding-top: 4px; }
@media (max-width: 700px) { .puzzle-layout { grid-template-columns: 1fr; } .puzzle-main, .puzzle-tray { padding: 14px; } .puzzle-art-list { grid-template-columns: repeat(3, 1fr); max-height: 230px; } }
