/* wb-puzzle.css — 퍼즐/오리기 (test-workbook 원본, 난이도별 스코핑) */

/* ── 공통 (퍼즐) ── */
.puzzle-body {
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:stretch;
    gap:16px;
}

.puzzle-meta {
    display:flex;
    align-items:baseline;
    justify-content:space-between;
}
.puzzle-word {
    font-size:48px;
    font-weight:900;
    color:#333;
    letter-spacing:4px;
}
.puzzle-instruction {
    font-size:16px;
    font-weight:700;
    color:#aaa;
}

.puzzle-grid {
    display:grid;
    background:#bbb;
    gap:2px;
    padding:2px;
    width:100%;
    flex-shrink:0;
}

.puzzle-cell {
    aspect-ratio:1;
    background-repeat:no-repeat;
    print-color-adjust:exact;
    -webkit-print-color-adjust:exact;
}

.puzzle-cell.grayscale {
    filter:grayscale(100%) brightness(1.5) opacity(0.4);
}

/* ── 3×3 (기본) ── */
.puzzle-grid {
    grid-template-columns: repeat(3, 1fr);
}
.puzzle-cell {
    background-size:300% 300%;
}

/* ── 2×2 변형 (.puzzle-easy wrapper) ── */
.puzzle-easy .puzzle-grid {
    grid-template-columns: repeat(2, 1fr);
}
.puzzle-easy .puzzle-cell {
    background-size:200% 200%;
}

/* ── 카드 오리기 (cutting) ── */
.cut-instruction {
    font-size:15px;
    font-weight:700;
    color:#aaa;
    flex-shrink:0;
}

.cut-body {
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8mm;
}

.cut-grid {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:8mm;
    flex-shrink:0;
}

.cut-cell {
    aspect-ratio:1;
    border:2.5px dashed #bbb;
    border-radius:14px;
    padding:6mm;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.cut-cell img {
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}
.cut-cell.grayscale img {
    filter:grayscale(100%);
}
