/* wb-tracing.css — 글자 쓰기 (test-workbook 원본) */

/* ── 쉬움 (1글자씩 큰 카드) ── */
.word-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.word-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.word-sample {
    font-size: 56px;
    font-weight: 700;
    color: #555;
    letter-spacing: 10px;
}

.practice-row {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: center;
}

.word-img img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 28px;
    background: white;
}
.word-img .img-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 28px;
    background: #F0EBE5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wb-primary);
    font-size: 60px;
    font-weight: 800;
}

.practice {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.char-row {
    display: grid;
    gap: 10px;
}

.char-box {
    width: 105px;
    height: 105px;
    border: 2px solid #d0c8c0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 800;
    background: white;
}
.char-box.guide { color: #bbb; }
.char-box.faded { color: #ddd; }
.char-box.empty { color: transparent; }

/* ── 빈칸 미리보기 (단어 0개 상태) ── */
/* 연습 칸: 양식 그대로 유지, 글자만 빈 상태 */
.char-box.blank {
    color: transparent;
}
/* 단어·이미지 자리 통합 슬롯: 큰 점선 네모 + 중앙 큰 숫자 */
.blank-word-slot {
    width: 340px;
    height: 340px;
    border: 3px dashed #D4CCBE;
    border-radius: 28px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blank-word-num {
    font-size: 180px;
    font-weight: 800;
    color: #C9BFAD;
    line-height: 1;
    letter-spacing: -4px;
}
.word-page-blank {
    justify-content: space-evenly;
}

/* 중간 — 보기 칩 빈 상태 */
.bank-word.blank {
    min-height: 28px;
    border: 1.5px dashed #D4C4A8;
    background: transparent;
    color: transparent;
}

/* 중간 — 쓰기 행 빈 상태 (이미지 자리 큰 숫자) */
.write-row.blank {
    border-bottom: 1.5px solid #ede8e2;
}
.write-row-num-slot {
    width: 28mm;
    height: 28mm;
    border: 3px dashed #D4CCBE;
    border-radius: 14px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 64px;
    font-weight: 800;
    color: #C9BFAD;
    line-height: 1;
}
.write-box.blank {
    /* 양식 그대로 — 테두리/배경 기존 .write-box 그대로 유지 */
}

/* ── 중간/어려움 공통 (행 레이아웃) ── */
.word-bank {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #FFF8E1;
    border: 2px solid var(--wb-primary);
    border-radius: 14px;
    flex-shrink: 0;
}
.bank-label {
    font-size: 15px;
    font-weight: 900;
    color: var(--wb-primary);
    flex-shrink: 0;
}
.bank-words {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.bank-word {
    font-size: 20px;
    font-weight: 700;
    color: #4A403A;
    padding: 4px 10px;
    background: white;
    border-radius: 8px;
    border: 1.5px solid #D4C4A8;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.write-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
}

.write-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6mm;
    border-bottom: 1.5px solid #ede8e2;
    padding: 4px 0;
    min-height: 0;
}
.write-row:last-child {
    border-bottom: none;
}

.write-row img {
    width: 28mm;
    height: 28mm;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.write-boxes {
    flex: 1;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.write-box {
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    border: 2px solid #d0c8c0;
    border-radius: 12px;
    background: white;
}
