/* NCLEX 폰 목업 공통 — 실제 NCLEX 풀이 화면(pages/nclex_view.php) · 결과 화면(pages/nclex_result.php) 모양.
   캔버스 · 커서 · 물결은 subscribe_mock_base.css, 화면 그리기는 nclex_mock.js(nxRender). 구독 페이지 NCLEX 칸 기능 스튜디오가 쓴다. */
:root { --nx-blue: #2196F3; --nx-blue-d: #0B6FD1; --nx-ink: #1E293B; --nx-sub: #64748B; --nx-line: #E2E8F0; --nx-soft: #F1F5F9; --nx-teal: #14B8A6; }
#canvas { background: #F8FAFC; }
.nx-screen { position: absolute; inset: 0; overflow: hidden; }
.nx-scroll { position: absolute; left: 0; right: 0; top: 0; padding: 0 12px 120px; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.nx-top { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px; }
.nx-top .chev { width: 26px; height: 26px; color: #475569; }
.nx-globe { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #CBD5E1; background: #fff; color: #475569; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s, border-color .25s; }
.nx-globe svg { width: 16px; height: 16px; }
.nx-globe.on { background: var(--nx-blue); border-color: var(--nx-blue); color: #fff; }
.nx-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
.nx-head { position: relative; padding: 14px 16px 14px; margin-top: 10px; }
.nx-chip { display: inline-block; padding: 4px 10px; border-radius: 7px; background: #E3F2FD; color: var(--nx-blue); font-size: 12px; font-weight: 700; }
.nx-title { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.2px; }
.nx-subt { margin-top: 3px; font-size: 12px; color: var(--nx-sub); }
.nx-tools { position: absolute; right: 14px; top: 14px; display: flex; align-items: center; gap: 12px; }
.nx-bell { width: 22px; height: 24px; color: #94A3B8; }
.nx-mascot { width: 34px; height: 34px; object-fit: contain; border-radius: 10px; }
.nx-mascot.pulse { animation: nxpulse 2s ease-out infinite; }
@keyframes nxpulse { 0% { box-shadow: 0 0 0 0 rgba(33,150,243,.5); } 70% { box-shadow: 0 0 0 11px rgba(33,150,243,0); } 100% { box-shadow: 0 0 0 0 rgba(33,150,243,0); } }
.nx-prog { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.nx-prog .cnt { font-size: 13px; font-weight: 800; color: var(--nx-ink); }
.nx-prog .cnt b { color: var(--nx-blue); }
.nx-prog .bar { flex: 1; height: 5px; border-radius: 3px; background: var(--nx-line); overflow: hidden; }
.nx-prog .bar i { display: block; height: 100%; width: 10%; background: var(--nx-blue); border-radius: 3px; transition: width .6s ease; }
.nx-prog .time { padding-left: 10px; border-left: 1px solid var(--nx-line); font-size: 13px; font-weight: 700; color: #334155; }
.nx-q { padding: 16px 16px 18px; margin-top: 12px; }
.nx-qhead { display: flex; align-items: center; gap: 6px; }
.nx-qhead .num { font-size: 14px; font-weight: 800; color: #334155; }
.nx-qhead .stars { font-size: 13px; color: #F59E0B; letter-spacing: 1px; }
.nx-qhead .stars s { text-decoration: none; color: #CBD5E1; }
.nx-badges { display: flex; gap: 4px; margin-left: auto; }
.nx-badges span { padding: 3px 7px; border-radius: 10px; font-size: 10.5px; font-weight: 700; }
.nx-badges .b1 { background: #EDE9FE; color: #6D28D9; } .nx-badges .b2 { background: #E0F2FE; color: #0284C7; } .nx-badges .b3 { background: #FEF3C7; color: #B45309; }
.nx-text { position: relative; margin-top: 12px; font-size: 15px; line-height: 1.65; color: #1F2937; letter-spacing: -0.2px; }
.nx-swap { transition: opacity .3s ease; }
.nx-swap.fade { opacity: 0; }
.nx-term { color: #0F766E; font-weight: 700; background: rgba(20,184,166,.12); border-radius: 4px; text-decoration: underline wavy rgba(20,184,166,.7); text-underline-offset: 4px; }
.nx-tip { position: absolute; z-index: 5; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 2px solid var(--nx-teal); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(20,184,166,.25); font-size: 13px; font-weight: 800; color: #1F2937; white-space: nowrap; transform: translateY(6px) scale(.9); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.nx-tip.on { transform: none; opacity: 1; }
.nx-tip::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--nx-teal); border-bottom: 0; }
.nx-tip svg { width: 16px; height: 16px; color: #7C3AED; }
.nx-opts { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.nx-opt { display: flex; align-items: flex-start; gap: 9px; padding: 12px 10px; border: 1px solid var(--nx-line); border-radius: 12px; background: #fff; transition: background .2s, border-color .2s; }
.nx-opt .r { flex: none; width: 15px; height: 15px; margin-top: 3px; border: 1.5px solid #94A3B8; border-radius: 50%; }
.nx-opt .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--nx-soft); color: #475569; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.nx-opt .t { flex: 1; font-size: 13.5px; line-height: 1.55; color: #1F2937; }
.nx-opt .x { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--nx-soft); color: #94A3B8; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.nx-opt.sel { background: #EFF6FF; border-color: var(--nx-blue); }
.nx-opt.sel .r { border: 4.5px solid var(--nx-blue); }
.nx-opt.ok { background: #ECFDF5; border-color: #10B981; }
.nx-opt.ok .n { background: #10B981; color: #fff; }
.nx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 68px; display: flex; background: #fff; border-top: 1px solid var(--nx-line); z-index: 8; }
.nx-bar div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: #64748B; }
.nx-bar svg { width: 22px; height: 22px; color: #64748B; }
.nx-bar .on, .nx-bar .on svg { color: var(--nx-blue); font-weight: 700; }
.nx-bar .on.star svg { fill: #FACC15; color: #EAB308; }
/* 학습 탭(해설 · 심화 · 시나리오 · 개념) */
.nx-learn { margin-top: 12px; overflow: hidden; }
.nx-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--nx-line); }
.nx-tabs span { position: relative; padding: 12px 10px 10px; font-size: 13px; font-weight: 700; color: #64748B; }
.nx-tabs span.on { color: var(--nx-blue); }
.nx-tabs span.on::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--nx-blue); }
.nx-panel { display: none; padding: 14px 14px 16px; }
.nx-panel.on { display: block; animation: nxin .3s ease both; }
@keyframes nxin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nx-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.nx-tags span { padding: 4px 9px; border: 1px solid var(--nx-line); border-radius: 12px; font-size: 11px; color: #334155; }
.nx-tags span:first-child { border-color: #BAE6FD; background: #E0F2FE; color: #0369A1; }
.nx-box { padding: 12px 13px; border: 1px solid var(--nx-line); border-radius: 12px; font-size: 13px; line-height: 1.75; color: #334155; }
.nx-box + .nx-box { margin-top: 8px; }
.nx-lab { display: inline-block; margin-bottom: 3px; padding: 2px 7px; border-radius: 5px; background: var(--nx-soft); font-size: 11.5px; font-weight: 800; color: #334155; }
.nx-verify { display: flex; gap: 9px; align-items: center; margin-top: 10px; padding: 10px 11px; border: 1px solid #BFDBFE; border-radius: 10px; background: #EFF6FF; font-size: 11.5px; color: #64748B; }
.nx-verify b { display: block; font-size: 12.5px; color: var(--nx-blue); }
.nx-verify i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #DBEAFE; display: flex; align-items: center; justify-content: center; color: var(--nx-blue); font-style: normal; font-size: 13px; }
.nx-ans { margin-top: 10px; text-align: right; font-size: 13px; font-weight: 800; color: var(--nx-ink); }
.nx-ans b { color: var(--nx-blue); }
/* 덮는 창(시트 · 모달) */
.nx-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(15,23,42,.35); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.nx-scrim.on { opacity: 1; }
.nx-sheet { position: absolute; left: 8px; right: 8px; z-index: 22; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(15,23,42,.25); overflow: hidden; transform: translateY(30px) scale(.96); opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.3,1.1), opacity .25s ease; }
.nx-sheet.on { transform: none; opacity: 1; }
.nx-toast { position: absolute; left: 50%; bottom: 86px; z-index: 30; padding: 9px 16px; border-radius: 20px; background: rgba(15,23,42,.88); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; transform: translate(-50%, 10px); opacity: 0; transition: transform .25s, opacity .25s; }
.nx-toast.on { transform: translate(-50%, 0); opacity: 1; }
/* 결과 화면 */
.nx-rtop { height: 44px; display: flex; align-items: center; padding: 0 6px; }
.nx-rtitle { margin: 4px 4px 8px; font-size: 12px; color: #64748B; }
.nx-res { padding: 16px; border: 1px solid var(--nx-line); border-radius: 16px; background: #fff; }
.nx-res .hd { display: flex; align-items: center; gap: 12px; }
.nx-res .hd img { width: 44px; height: 44px; border-radius: 50%; background: #E0F2FE; object-fit: contain; }
.nx-res .hd b { font-size: 18px; font-weight: 800; color: var(--nx-ink); }
.nx-res .hd b em { font-style: normal; color: var(--nx-blue-d); }
.nx-res .hd small { display: block; margin-top: 2px; font-size: 11.5px; color: #64748B; }
.nx-res .big { margin-top: 14px; font-size: 30px; font-weight: 800; color: #0F172A; }
.nx-res .big small { font-size: 13px; font-weight: 600; color: #64748B; }
.nx-kv { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nx-line); display: grid; gap: 7px; font-size: 12.5px; color: #475569; }
.nx-kv div { display: flex; justify-content: space-between; }
.nx-kv b { color: #0F172A; }
.nx-kv b.red { color: #DC2626; }
.nx-kv b.blue { color: var(--nx-blue-d); }
.nx-link { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px 14px; border: 1px solid var(--nx-line); border-radius: 14px; background: #fff; }
.nx-link.hl { border-color: var(--nx-blue); }
.nx-link i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #EFF6FF; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; }
.nx-link div { flex: 1; }
.nx-link b { display: block; font-size: 13.5px; color: #0F172A; }
.nx-link small { font-size: 11.5px; color: #64748B; }
.nx-link em { font-style: normal; font-size: 11.5px; color: #64748B; }
.nx-cta { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 9; height: 48px; border-radius: 12px; background: var(--nx-blue-d); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.nx-meter { position: relative; height: 4px; margin: 26px 8px 6px; border-radius: 2px; background: #E2E8F0; }
.nx-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--nx-blue); transition: width 1.6s cubic-bezier(.4,0,.2,1); }
.nx-meter .pin { position: absolute; top: -22px; width: 22px; height: 26px; margin-left: -11px; transition: left 1.6s cubic-bezier(.4,0,.2,1); }
.nx-meter .line { position: absolute; left: 50%; top: -6px; width: 1.5px; height: 16px; background: #64748B; }
.nx-scale { display: flex; justify-content: space-between; padding: 0 2px; font-size: 11px; color: #64748B; }
