/* 이미지딕 레벨테스트 공통 */
.lt-wrap { max-width: 860px; margin: 0 auto; padding: 14px 16px 60px; color: #0f172a; box-sizing: border-box; }
.lt-wrap.wide { max-width: 860px; }
.lt-wrap * { box-sizing: border-box; }
.lt-wrap [hidden] { display: none !important; }

/* 상단 줄 */
.lt-top { margin-bottom: 12px; }
.lt-areas { display: flex; gap: 5px; }
.lt-area { font-size: 15px; font-weight: 700; color: #94a3b8; padding: 6px 13px; text-align: center; border-radius: 14px; background: #f1f5f9; white-space: nowrap; }
.lt-area.done { color: #0f6e56; background: #e0f2ec; }
.lt-area.on { color: #fff; background: #1D9E75; }
.lt-tools { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.lt-ic { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: #475569; }
.lt-ic svg { width: 18px; height: 18px; }
.lt-ic:hover { border-color: #1D9E75; color: #1D9E75; }
.lt-ic.off { color: #b6c2ce; }

.lt-bar { height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; margin-bottom: 6px; }
.lt-bar-fill { height: 100%; background: #1D9E75; width: 0; transition: width .25s; }
.lt-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; color: #94a3b8; margin: 4px 0 20px; }
.lt-meta-r { display: inline-flex; align-items: center; gap: 10px; }
#ltSec { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ltCnt { white-space: nowrap; }

.lt-stage { min-height: 360px; }

/* 안내 카드 */
.lt-guide { background: #f8fafc; border-radius: 14px; padding: 20px; font-size: 17px; color: #475569; line-height: 1.85; margin-bottom: 18px; }
.lt-guide h2 { font-size: 21px; color: #0f172a; margin: 0 0 10px; line-height: 1.4; }
.lt-guide b { color: #0f172a; }
.lt-guide .lt-gnote { font-size: 15px; color: #94a3b8; margin-top: 10px; line-height: 1.7; }
.lt-gplay { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border: 1px solid #1D9E75; border-radius: 999px; background: #fff; color: #0f6e56; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
.lt-gplay svg { width: 19px; height: 19px; }

.lt-btn { display: block; width: 100%; padding: 16px; border: none; border-radius: 12px; background: #1D9E75; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; font-family: inherit; text-align: center; text-decoration: none; }
.lt-btn:disabled { background: #cbd5e1; cursor: default; }
.lt-btn.ghost { background: #fff; color: #475569; border: 1px solid #cbd5e1; }
.lt-btn + .lt-btn { margin-top: 9px; }
.lt-load { text-align: center; padding: 70px 0; color: #94a3b8; font-size: 17px; line-height: 1.8; }

/* 어휘 판단 */
.lt-word { font-size: 46px; font-weight: 800; text-align: center; margin: 44px 0 50px; line-height: 1.25; word-break: break-word; letter-spacing: -.5px; }
.lt-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-yn button { padding: 20px 12px; border: 2px solid #e2e8f0; border-radius: 14px; background: #fff; font-size: 19px; font-weight: 700; color: #0f172a; cursor: pointer; font-family: inherit; }
.lt-yn .yes:active { border-color: #1D9E75; background: #f0fdf9; }
.lt-yn .no:active { border-color: #94a3b8; background: #f8fafc; }
.lt-hint { text-align: center; font-size: 15px; color: #94a3b8; margin-top: 18px; line-height: 1.7; }

/* 소리 */
.lt-play { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0 22px; }
.lt-play-btn { width: 76px; height: 76px; border-radius: 50%; border: none; background: #1D9E75; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lt-play-btn svg { width: 30px; height: 30px; }
.lt-play-btn.playing { background: #0f6e56; }
.lt-play-btn:disabled { background: #cbd5e1; cursor: default; }
.lt-play-cap { font-size: 16px; font-weight: 700; color: #475569; padding: 6px 16px; border-radius: 999px; background: #f1f5f9; line-height: 1.5; }
.lt-play-cap.on { color: #0f6e56; background: #e0f2ec; }
.lt-play-cap.more { color: #fff; background: #1D9E75; animation: lt-pop .5s ease-out 2; }
.lt-play-cap.done { color: #94a3b8; background: #f1f5f9; font-weight: 600; }
@keyframes lt-pop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
.lt-ask { text-align: center; font-size: 17px; color: #475569; margin: 0 0 16px; line-height: 1.6; font-weight: 700; }

/* 보기 */
.lt-opts { display: grid; grid-template-columns: 1fr; gap: 9px; }
.lt-opt { padding: 15px 16px; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; font-size: 18px; font-weight: 600; color: #0f172a; text-align: left; cursor: pointer; font-family: inherit; line-height: 1.5; word-break: break-word; }
.lt-opt:active, .lt-opt.on { border-color: #1D9E75; background: #f0fdf9; }
.lt-opt.lock { pointer-events: none; opacity: .55; }
.lt-skip { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 320px; margin: 20px auto 0; padding: 14px 20px; border: 2px dashed #94a3b8; border-radius: 12px; background: #f8fafc; color: #334155; font-size: 17px; font-weight: 700; cursor: pointer; font-family: inherit; }
.lt-skip svg { width: 20px; height: 20px; flex: 0 0 auto; }
.lt-skip:active { background: #f1f5f9; border-color: #64748b; }
.lt-skip:disabled { opacity: .45; cursor: default; }

/* 그림 보기 */
.lt-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-pic { position: relative; border: 3px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #f8fafc; cursor: pointer; padding: 0; aspect-ratio: 1 / 1; }
.lt-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-pic:active, .lt-pic.on { border-color: #1D9E75; }
.lt-pic-no { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; border-radius: 13px; background: rgba(15, 23, 42, .62); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* 문장 배열 */
.lt-ko { background: #f8fafc; border-radius: 12px; padding: 14px 16px; font-size: 18px; line-height: 1.6; color: #0f172a; margin-bottom: 14px; }
.lt-answer { min-height: 64px; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 10px; display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; margin-bottom: 14px; background: #fff; }
.lt-answer.empty::before { content: attr(data-ph); color: #94a3b8; font-size: 16px; padding: 6px; }
.lt-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; min-height: 48px; }
.lt-card { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 18px; font-weight: 600; color: #0f172a; cursor: pointer; font-family: inherit; }
.lt-card.used { visibility: hidden; }
.lt-answer .lt-card { border-color: #1D9E75; background: #f0fdf9; color: #0f6e56; }
.lt-row-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 9px; }
.lt-row-btns .lt-btn + .lt-btn { margin-top: 0; }
.lt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.lt-pair .lt-btn + .lt-btn { margin-top: 0; }
.lt-card-box.lt-quit { border-color: #1D9E75; }

/* C-테스트 */
.lt-ctext { font-size: 19px; line-height: 2.3; color: #0f172a; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 16px; margin-bottom: 16px; word-break: keep-all; }
.lt-cblank { display: inline-flex; align-items: baseline; white-space: nowrap; }
.lt-cblank input { font-size: 19px; font-family: inherit; border: none; border-bottom: 2px solid #1D9E75; background: #f0fdf9; padding: 0 3px; margin: 0 1px; outline: none; color: #0f6e56; font-weight: 700; border-radius: 3px 3px 0 0; }
.lt-cblank input:focus { background: #e0f2ec; }

/* 말하기 */
.lt-rec { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px 0; }
.lt-rec-btn { width: 84px; height: 84px; border-radius: 50%; border: none; background: #d95959; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lt-rec-btn svg { width: 32px; height: 32px; }
.lt-rec-btn.on { background: #b91c1c; }
.lt-rec-btn:disabled { background: #cbd5e1; cursor: default; }
.lt-rec-time { font-size: 17px; font-weight: 700; color: #475569; }
.lt-spic { width: 100%; max-width: 360px; margin: 0 auto 14px; display: block; border-radius: 14px; border: 1px solid #e2e8f0; }
.lt-count { text-align: center; font-size: 37px; font-weight: 800; color: #1D9E75; margin: 6px 0; }
.lt-said { background: #f8fafc; border-radius: 12px; padding: 12px 14px; font-size: 16px; color: #475569; line-height: 1.7; margin-top: 10px; }
.lt-key-in { width: 100%; font-size: 17px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-family: inherit; margin: 6px 0 10px; }
.lt-msg { font-size: 16px; line-height: 1.7; margin-top: 10px; color: #64748b; }
.lt-msg.bad { color: #b91c1c; }
.lt-msg.ok { color: #0f6e56; }

/* 빠른 진단 카드 */
.lt-quick-lv { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.lt-quick-lv b { font-size: 46px; font-weight: 800; color: #0f172a; line-height: 1; }
.lt-quick-lv small { font-size: 17px; color: #94a3b8; font-weight: 700; }
.lt-quick-lv span { font-size: 22px; font-weight: 800; color: #0f6e56; margin-left: 4px; }
.lt-quick-txt { font-size: 16px; color: #475569; }
.lt-quick-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lt-quick-chips span { font-size: 15px; font-weight: 700; padding: 5px 11px; border-radius: 8px; background: #e0f2ec; color: #0f6e56; }
.lt-quick-chips span.warn { background: #fef3c7; color: #92400e; }
.lt-quick-chips span.bad { background: #fef2f2; color: #b91c1c; }

/* 1차 진단 · 계단 */
.lt-ladder { display: flex; gap: 4px; margin: 16px 0 6px; }
.lt-step { flex: 1; text-align: center; }
.lt-step i { display: block; height: 8px; border-radius: 4px; background: #e5eae9; margin-bottom: 6px; }
.lt-step.pass i { background: #1D9E75; }
.lt-step.fail i { background: #e9b8b8; }
.lt-step span { font-size: 13px; color: #94a3b8; font-weight: 700; }
.lt-step.pass span { color: #0f6e56; }
.lt-big { font-size: 33px; font-weight: 800; color: #0f172a; line-height: 1.3; }
.lt-cefr { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 8px; background: #e0f2ec; color: #0f6e56; font-size: 16px; font-weight: 700; }

/* 모달 */
.lt-mov { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 9990; display: none; }
.lt-mov.open { display: block; }
.lt-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 440px; background: #fff; border-radius: 16px; padding: 24px 20px 18px; z-index: 9991; display: none; max-height: calc(100% - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lt-modal.open { display: block; }
.lt-modal h3 { font-size: 20px; margin: 0 0 8px; padding-right: 36px; }
.lt-modal p { font-size: 17px; color: #475569; line-height: 1.7; margin: 0 0 18px; }
.lt-mx { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: none; background: none; cursor: pointer; color: #64748b; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.lt-mx svg { width: 20px; height: 20px; }
.lt-mx:hover { background: #f1f5f9; }

/* 첫 화면 */
.lt-hero { text-align: center; padding: 22px 0 18px; }
.lt-hero h1 { font-size: 29px; font-weight: 800; margin: 0 0 10px; line-height: 1.4; }
.lt-hero p { font-size: 17px; color: #64748b; line-height: 1.75; margin: 0; }
.lt-card-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.lt-card-box h2 { font-size: 19px; font-weight: 800; margin: 0 0 12px; }
.lt-flow { display: grid; grid-template-columns: 1fr; gap: 0; }
.lt-flow-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.lt-flow-row:last-child { border-bottom: none; }
.lt-flow-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #e0f2ec; color: #0f6e56; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lt-flow-t { font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.lt-flow-t small { font-size: 15px; font-weight: 600; color: #94a3b8; margin-left: 6px; }
.lt-flow-d { font-size: 16px; color: #64748b; line-height: 1.65; }
.lt-sound { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lt-sound .lt-btn { width: auto; padding: 11px 16px; font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.lt-sound .lt-btn svg { width: 16px; height: 16px; }
.lt-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; color: #475569; cursor: pointer; user-select: none; }
.lt-switch i { width: 44px; height: 26px; border-radius: 13px; background: #cbd5e1; position: relative; display: inline-block; transition: background .15s; flex: 0 0 auto; }
.lt-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.lt-switch.on i { background: #1D9E75; }
.lt-switch.on i::after { left: 21px; }
.lt-h-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.lt-h-row:last-child { border-bottom: none; }
.lt-h-lv { font-size: 17px; font-weight: 800; }
.lt-h-sub { font-size: 15px; color: #94a3b8; margin-top: 3px; }
.lt-h-link { font-size: 16px; color: #1D9E75; text-decoration: none; font-weight: 700; white-space: nowrap; }
.lt-warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; font-size: 16px; color: #92400e; line-height: 1.7; margin-bottom: 14px; }
.lt-note { font-size: 15px; color: #94a3b8; line-height: 1.75; margin-top: 12px; }

@media (min-width: 640px) {
    .lt-pics { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
    .lt-word { font-size: 37px; margin: 34px 0 40px; }
    .lt-hero h1 { font-size: 24px; }
    .lt-areas { gap: 4px; }
    .lt-area { flex: 1 1 auto; padding: 6px 4px; font-size: 14px; }
}