@charset "UTF-8";
/* 학생 단어학습 — 화면설계 (학생 - 단어학습). 태블릿 가로(1180×820) 기준, 휴대폰은 640px 아래에서 한 줄씩.
   색은 호스트 변수 --c(기관 색)를 쓰고, 없으면 인디고. 버튼 56px 이상 */

html, body{ margin:0; background:#EEF0FB; }
.vs-app{
	--vc:var(--c, #4F46E5); --vc-dark:var(--c-dark, #3730A3); --vc-soft:var(--c-soft, #E0E7FF);
	--color-accent:var(--vc); --color-accent-2:var(--vc-dark); /* 리딩 화면(qz)의 강조색 */
	min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; background:#EEF0FB; color:#1F2430;
	font-family:'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	-webkit-tap-highlight-color:transparent;
}
.vs-app *{ box-sizing:border-box; }
.vs-app a{ color:var(--vc); }
.vs-muted{ color:#6B7285; font-size:15px; }
.vs-loading{ padding:60px 20px; text-align:center; color:#6B7285; font-size:17px; }

/* 위 막대 */
.vs-bar{ position:sticky; top:0; z-index:5; background:#fff; border-bottom:1px solid #E3E6F2; display:flex; align-items:center; gap:12px; padding:10px 16px; min-height:68px; }
.vs-brand{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.vs-brand b{ font-size:17px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vs-brand span{ font-size:13px; color:var(--vc); font-weight:700; }
.vs-chip{ display:flex; align-items:center; gap:6px; border-radius:999px; padding:0 14px; height:44px; font-size:15px; background:#F4F5FB; white-space:nowrap; font-weight:600; }
.vs-chip:empty{ display:none; }
.vs-ib{ width:48px; height:48px; border-radius:14px; border:0; background:#F4F5FB; color:#1F2430; display:inline-flex; align-items:center; justify-content:center; flex:none; cursor:pointer; font-size:20px; }
.vs-ib:hover{ background:#E8EAF6; }
.vs-ttl{ flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.vs-ttl b{ font-size:16px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vs-ttl-s{ display:none; font-size:13px; color:#6B7285; }

/* 단계 점 */
/* 단계 동그라미 (번호 · 끝낸 단계 ✓) — 눌러서 그 단계로 */
.vs-dots{ display:flex; gap:8px; }
.vs-dot{ width:34px; height:34px; border-radius:50%; background:#EEF0F6; color:#8A93A6; border:2px solid transparent; padding:0; display:inline-flex; align-items:center; justify-content:center; font:700 14px/1 inherit; font-family:inherit; transition:transform .12s, box-shadow .12s; }
.vs-dot.done{ background:var(--vc); color:#fff; }
.vs-dot.on{ background:#fff; color:var(--vc); border-color:var(--vc); }
button.vs-dot{ cursor:pointer; }
button.vs-dot:hover{ transform:scale(1.12); box-shadow:0 3px 10px rgba(40,40,110,.18); }
button.vs-dot:focus-visible{ outline:3px solid var(--vc-soft); outline-offset:2px; }

/* 본문 */
.vs-main{ flex:1; display:flex; flex-direction:column; }
.vs-wrap{ width:100%; max-width:1080px; margin:0 auto; padding:24px 20px 32px; flex:1; display:flex; flex-direction:column; gap:18px; }
.vs-center{ justify-content:center; align-items:center; }
.vs-card{ background:#fff; border-radius:24px; box-shadow:0 6px 24px rgba(40,40,110,.08); padding:22px 24px; width:100%; }
.vs-card h3{ margin:0 0 6px; font-size:18px; font-weight:800; }
.vs-foot{ text-align:center; margin:4px 0 0; font-size:15px; }

/* 버튼 */
.vs-btn{ min-height:56px; border-radius:16px; border:0; background:var(--vc); color:#fff; font-family:inherit; font-size:18px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 24px; text-decoration:none; cursor:pointer; }
.vs-btn:hover{ background:var(--vc-dark); }
.vs-btn.gray{ background:#F4F5FB; color:#1F2430; }
.vs-btn.gray:hover{ background:#E8EAF6; }
.vs-btn:disabled{ opacity:.45; cursor:default; }
.vs-btn-white{ background:#fff; color:var(--vc); }
.vs-btn-white:hover{ background:#F4F5FB; color:var(--vc-dark); }
.vs-big{ min-width:220px; }
.vs-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.vs-col{ flex-direction:column; align-items:stretch; max-width:420px; margin:0 auto; width:100%; }

/* 오늘의 공부 */
.vs-hero{ background:linear-gradient(135deg, var(--vc), var(--vc-dark)); color:#fff; border-radius:24px; padding:28px 30px; display:flex; flex-direction:column; gap:10px; box-shadow:0 10px 30px rgba(40,40,110,.18); }
.vs-hero-k{ font-size:14px; font-weight:700; opacity:.85; }
.vs-hero h2{ margin:0; font-size:28px; font-weight:800; }
.vs-hero-s{ font-size:16px; opacity:.92; }
.vs-hero .vs-btn{ align-self:flex-start; margin-top:6px; }
.vs-late-w{ color:#FDBA74; font-weight:700; }
.vs-card .vs-late-w{ color:#EA580C; }
.vs-meter{ height:10px; border-radius:5px; background:rgba(255,255,255,.25); overflow:hidden; }
.vs-meter span{ display:block; height:100%; background:#fff; border-radius:5px; }
.vs-row{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; padding:16px 0; border-bottom:1px solid #F0F1F7; }
.vs-row:last-child{ border-bottom:0; padding-bottom:4px; }
.vs-row-t{ flex:1 1 240px; min-width:0; display:flex; flex-direction:column; gap:2px; }
.vs-row-t b{ font-size:17px; }
.vs-row-n{ min-width:56px; }
.vs-done summary{ cursor:pointer; font-size:17px; font-weight:800; }

/* 종료 확인 창의 공용 PC 안내 */
.vs-swal-note{ margin-top:8px; font-size:15px; color:#EA580C; font-weight:600; }

/* 이름 칩 = 로그아웃 버튼 */
.vs-account{ border:0; font-family:inherit; color:#1F2430; cursor:pointer; }
.vs-who b{ font-weight:700; }
.vs-who small{ font-size:.85em; font-weight:400; color:#5B6373; margin-left:4px; }
.vs-account svg{ color:#6B7285; }
.vs-account:hover{ background:#E8EAF6; }
.vs-account:hover svg{ color:var(--vc); }

/* 앱으로 설치 (위 막대) */
.vs-install{ min-height:44px; height:44px; padding:0 16px; font-size:15px; border-radius:12px; flex:none; }
.vs-install[hidden]{ display:none; }
@media (max-width:640px){ .vs-install{ padding:0 12px; font-size:14px; } }

/* 시작 화면 (로그인) — 설계 Main.html */
.vs-login{ max-width:460px; text-align:center; padding:36px 32px; display:flex; flex-direction:column; gap:8px; }
.vs-login-k{ font-size:15px; font-weight:800; color:var(--vc); }
.vs-login h1{ margin:0; font-size:30px; font-weight:800; }
.vs-login-form{ display:flex; flex-direction:column; gap:12px; margin-top:14px; text-align:left; }
.vs-in{ height:56px; border:1px solid #D5D9E8; border-radius:16px; padding:0 16px; font-size:18px; font-family:inherit; width:100%; background:#fff; }
.vs-in:focus{ outline:none; border-color:var(--vc); box-shadow:0 0 0 4px var(--vc-soft); }
.vs-keep{ display:flex; align-items:center; gap:8px; font-size:15px; color:#5B6373; cursor:pointer; }
.vs-keep input{ width:18px; height:18px; accent-color:var(--vc); }
.vs-login-msg{ color:#DC2626; font-size:15px; min-height:1.2em; }
.vs-login-form .vs-btn{ width:100%; }
.vs-login-dlg .qz-dialog-box{ max-width:420px; }
.vs-login-dlg .vs-login-form{ margin-top:0; }
@media (max-width:640px){ .vs-login{ padding:28px 20px; border-radius:22px; } }

/* 학습 화면 — 리딩 단어학습(qz-base.css·vc-study.css) 위에 Voca 덧칠 */
.vs-play{ max-width:1180px; }
.vs-play .qz{ padding:0; width:100%; }

/* 창 높이에 맞춤 — 위 단계 표시줄 · 가운데 카드/문제 · 아래 버튼. 창이 작으면 최소 높이에서 스크롤 */
.vs-play .qz{ flex:1; display:flex; flex-direction:column; }
.vs-play .qz-card{ flex:1; display:flex; flex-direction:column; min-height:560px; }
.vs-play #vc-body{ flex:1; display:flex; flex-direction:column; justify-content:center; }
.vs-play #vc-body > .qz-result, .vs-play #vc-body > .vc-intro{ margin:auto 0; }
.vs-play .vc-foot{ margin-top:auto; }
.vs-play .vc-foot:has(#vc-next[hidden]){ display:none; } /* 아래 버튼이 숨어 있으면 줄도 없앰 */
/* 단어 카드는 창 높이에 따라 커짐 (리딩 기본 300px) */
.vs-play .vc-flip{ height:clamp(260px, 46vh, 520px); width:min(620px, 100%); }
.vs-play .vc-flip .vc-word{ font-size:clamp(2.4rem, 6vh, 4.2rem); }
.vs-play .vc-flip .vc-mean{ font-size:clamp(1.6rem, 4vh, 2.6rem); }
/* 문제 영역도 높이에 따라 여유 */
.vs-play .vc-stage{ min-height:clamp(150px, 26vh, 300px); justify-content:center; }
@media (max-height:700px){ .vs-play .qz-card{ min-height:0; } .vs-wrap.vs-play{ padding-top:12px; padding-bottom:12px; } }
.vs-ph{ font-size:1.05rem; color:var(--qz-sub, #5b6373); }
.vs-intro-meta{ font-size:.95rem; color:var(--qz-sub, #5b6373); margin:-8px 0 18px !important; }
.vs-pass{ color:var(--qz-ok, #16a34a); }
.vs-fail{ color:#EA580C; }
.vs-note{ background:#FFF4DB; color:#8A5300; border-radius:12px; padding:10px 14px; font-size:15px; display:inline-block; margin:0 auto 16px; }
.vs-note-block{ display:block; max-width:520px; margin:0 auto 18px; line-height:1.6; text-align:center; }
.vs-note.ok{ background:#E7F6EC; color:#1D7A3E; margin:0; align-self:center; }

/* 알림 창 */
.vs-dlg{ position:fixed; inset:0; z-index:50; background:rgba(20,24,48,.45); display:flex; align-items:center; justify-content:center; padding:20px; }
.vs-dlg-box{ background:#fff; border-radius:22px; padding:26px 24px 20px; width:min(420px, 100%); text-align:center; box-shadow:0 20px 50px rgba(0,0,0,.25); }
.vs-dlg-body{ font-size:18px; line-height:1.6; }
.vs-dlg-body p{ margin:0 0 16px; }
.vs-dlg-btns{ display:flex; gap:10px; }
.vs-dlg-btns .vs-btn{ flex:1; }

/* 휴대폰 */
@media (max-width:640px){
	.vs-wrap{ padding:16px 14px 24px; }
	.vs-dots{ gap:6px; }
	.vs-dots .vs-dot{ width:30px; height:30px; font-size:13px; }
	.vs-bar .vs-dots{ display:none; }
	.vs-ttl-s{ display:block; }
	.vs-hero{ padding:22px; }
	.vs-hero h2{ font-size:22px; }
	.vs-hero .vs-btn, .vs-row .vs-btn{ width:100%; }
}
