/* 여러 장 미리보기를 옆으로 넘겨 보는 공통 슬라이드 (곱셈·나눗셈 등) */
#puzzle-preview.pgs-root {
    width: 100% !important; height: auto !important; min-height: 297mm !important; padding: 0 !important; margin: 0 !important;
    background: transparent !important; box-shadow: none !important; border: 0 !important; display: block !important;
    transform: none !important; overflow: visible !important; aspect-ratio: auto !important;
}
.pgs-stage { position: relative; width: 100%; }
.pgs-viewport { overflow: hidden; width: 100%; outline: none; touch-action: pan-y; box-sizing: content-box; padding: 24px 0 44px; margin: -24px 0 -44px; }
.pgs-viewport:focus-visible { box-shadow: 0 0 0 3px #FFD700; border-radius: 6px; }
.pgs-scale { display: flex; gap: 160px; width: max-content; transform-origin: 0 0; transition: transform .35s ease; will-change: transform; }
.pgs-page {
    width: 210mm; height: 297mm; flex: 0 0 auto; box-sizing: border-box; padding: 20mm; position: relative; background: #fff; color: #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 0 8px rgba(0, 0, 0, 0.06); border-radius: 4px;
}
.pgs-zone { position: absolute; top: 0; bottom: 0; width: 28%; z-index: 3; display: flex; align-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pgs-zone-l { left: 0; justify-content: flex-start; }
.pgs-zone-r { right: 0; justify-content: flex-end; }
.pgs-zone.is-disabled { cursor: default; }
.pgs-zone-l .pgs-arrow { margin-left: -22px; }
.pgs-zone-r .pgs-arrow { margin-right: -22px; }
@media screen and (max-width: 700px) { .pgs-zone-l .pgs-arrow { margin-left: 0; } .pgs-zone-r .pgs-arrow { margin-right: 0; } }
.pgs-arrow { width: 40px; height: 110px; border: 0; background: transparent; color: #aaa; font-size: 3rem; font-weight: 400; line-height: 1; padding: 0 0 6px; cursor: pointer; font-family: inherit; text-shadow: none; display: inline-flex; align-items: center; justify-content: center; opacity: .85; transition: opacity .15s, transform .15s; }
.pgs-zone:hover:not(.is-disabled) .pgs-arrow { opacity: 1; transform: scale(1.15); color: #FFC800; text-shadow: 0 0 1px #b8960a, 0 1px 3px rgba(0,0,0,.3); }
.pgs-zone:active:not(.is-disabled) .pgs-arrow { color: #FFC800; }
.pgs-zone.is-disabled .pgs-arrow { color: #ccc; text-shadow: none; opacity: .5; cursor: default; }
.pgs-arrow:focus-visible { outline: 3px solid #333; outline-offset: 2px; }
.pgs-count { text-align: center; font-weight: 700; color: #555; margin-top: 8px; min-height: 1.4em; }

.pgs-page.pgs-raw { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.pgs-raw .bingo-page { transform: none !important; margin: 0 !important; display: flex !important; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 0 8px rgba(0, 0, 0, 0.06); border-radius: 4px; break-after: auto !important; page-break-after: auto !important; }

/* 인쇄: 슬라이드의 모든 장을 한 장씩 차례로 */
@media print {
    #puzzle-preview.pgs-root {
        width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
        position: static !important; display: block !important; overflow: visible !important; transform: none !important;
    }
    .pgs-zone, .pgs-count { display: none !important; }
    .pgs-viewport { padding: 0 !important; margin: 0 !important; overflow: visible !important; height: auto !important; width: auto !important; }
    .pgs-scale { display: block !important; transform: none !important; width: auto !important; height: auto !important; transition: none !important; }
    .pgs-page { margin: 0 !important; box-shadow: none !important; border-radius: 0 !important; break-after: page; page-break-after: always; }
    .pgs-page:last-child { break-after: auto; page-break-after: auto; }
}
