/* vocab.css — 단어장 (홈 · 목록 · 상세 · 학습 · 결과). app.css 토큰을 그대로 쓴다. 접두사 vc- */

/* ---------- 상태 색 (외움 · 익히는 중 · 헷갈림 · 모름 · 안 봄) ---------- */
:root {
  --vc-learned: var(--pen);
  --vc-learning: var(--pen-line);
  --vc-hard: var(--amber);
  --vc-unknown: var(--red);
  --vc-new: var(--line-2);
}
.vc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vc-new); flex: none; }
.vc-dot.is-learned { background: var(--vc-learned); }
.vc-dot.is-learning { background: var(--vc-learning); }
.vc-dot.is-hard { background: var(--vc-hard); }
.vc-dot.is-unknown { background: var(--vc-unknown); }

.vc-bar { display: flex; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; gap: 1px; }
.vc-bar i { display: block; height: 100%; transition: width 400ms var(--ease-out); }
.vc-bar .is-learned { background: var(--vc-learned); }
.vc-bar .is-learning { background: var(--vc-learning); }
.vc-bar .is-hard { background: var(--vc-hard); }
.vc-bar .is-unknown { background: var(--vc-unknown); }

.vc-hl { background: var(--hl); color: inherit; font-weight: 700; border-radius: 3px; padding: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[lang="en"] { overflow-wrap: anywhere; }

/* 별표 */
.vc-starbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: var(--ink-3); transition: color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.vc-starbtn .ico { width: 20px; height: 20px; }
.vc-starbtn:active { transform: scale(0.9); }
.vc-starbtn.is-on { color: var(--amber); }
.vc-starbtn.is-on .vc-star { fill: currentColor; }
.vc-starbtn--lg { width: 44px; height: 44px; }
.vc-starbtn--lg .ico { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) { .vc-starbtn:hover { background: var(--surface-2); color: var(--amber-ink); } }
.saybtn--sm { width: 28px; height: 28px; border-radius: 8px; vertical-align: -6px; display: inline-grid; }
.saybtn--sm .ico { width: 15px; height: 15px; }
.saybtn--lg { width: 44px; height: 44px; border-radius: 12px; }
.saybtn--lg .ico { width: 22px; height: 22px; }

.vc-back { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin-left: -6px; padding-right: 8px; font-size: 14.5px; font-weight: 650; color: var(--ink-2); }
.vc-back .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .vc-back:hover { color: var(--pen); } }

/* ---------- 홈 ---------- */
.vc-home { max-width: 980px; }
.vc-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px 28px; align-items: center;
  padding: 24px; border-radius: 18px; background: var(--paper);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  margin-bottom: 20px;
}
.vc-hero__k { font-size: 14px; font-weight: 750; color: var(--pen); letter-spacing: -0.01em; }
.vc-hero__n { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.vc-hero__n b { font-family: var(--font-display); font-size: 56px; line-height: 1.05; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.vc-hero__n small { margin-left: 8px; font-size: 14px; font-weight: 650; color: var(--ink-3); }
.vc-hero__sub { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.vc-hero__act { display: grid; gap: 10px; }
.vc-hero__mode { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.vc-hero__mode .vc-modesel { flex: 1; max-width: 190px; }
.vc-hero__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.vc-hero__stats div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.vc-hero__stats dt { font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.vc-hero__stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vc-hero__stats dd small { font-size: 13px; font-weight: 650; color: var(--ink-3); margin-left: 2px; }
a.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.vc-nodata { margin-bottom: 20px; padding: 36px 20px; max-width: none; }

.vc-modesel { display: block; min-width: 0; }
.vc-modesel select { padding: 0 30px 0 12px; font-weight: 650; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

/* 검색 */
.vc-search { position: relative; margin-bottom: 16px; }
.vc-search__ico { position: absolute; left: 14px; top: 13px; color: var(--ink-3); pointer-events: none; }
.vc-search .field { padding-left: 42px; }
.vc-search__res { margin-top: 6px; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); overflow: hidden; }
.vc-qlist { list-style: none; }
.vc-qlist a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.vc-qlist li:last-child a { border-bottom: 0; }
.vc-qlist b { font-weight: 750; }
.vc-qlist span { font-size: 12.5px; color: var(--ink-3); }
.vc-qlist em { font-style: normal; color: var(--ink-2); font-size: 14.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .vc-qlist a:hover { background: var(--surface); } }
.vc-qmore { display: flex; align-items: center; justify-content: center; gap: 4px; height: 42px; font-size: 14px; font-weight: 650; color: var(--pen); border-top: 1px solid var(--line); }
.vc-qmore .ico { width: 16px; height: 16px; }
.vc-qnone { padding: 14px; font-size: 14.5px; color: var(--ink-2); }

/* 빠른 묶음: 틀린 단어 · 별표 · 내 단어장 */
.vc-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.vc-qt { position: relative; display: flex; align-items: stretch; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transition: box-shadow 150ms ease; }
.vc-qt__main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.vc-qt__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--surface-2); color: var(--ink-2); }
.vc-qt__ico .ico { width: 19px; height: 19px; }
.vc-qt--wrong .vc-qt__ico { background: var(--red-soft); color: var(--red-ink); }
.vc-qt--star .vc-qt__ico { background: var(--amber-soft); color: var(--amber-ink); }
.vc-qt--star .vc-qt__ico .vc-star { fill: currentColor; }
.vc-qt--my .vc-qt__ico { background: var(--pen-soft); color: var(--pen); }
.vc-qt__b { display: grid; min-width: 0; }
.vc-qt__k { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.vc-qt__n { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; }
.vc-qt__s { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.vc-qt__go { display: grid; place-items: center; width: 48px; flex: none; border-left: 1px dashed var(--line-2); color: var(--pen); border-radius: 0 14px 14px 0; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .vc-qt:hover { box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); } .vc-qt__go:hover { background: var(--pen-soft); } }

/* 세트 카드 */
.vc-sechead { margin-bottom: 12px; }
.vc-sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.vc-set { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.vc-set__head { display: flex; align-items: center; gap: 10px; }
.vc-set__id { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; }
.vc-set[data-set="my"] .vc-set__id { background: var(--pen); color: var(--on-pen); }
.vc-set__name { flex: 1; min-width: 0; font-family: var(--font-display); font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; }
.vc-set__name a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .vc-set__name a:hover { color: var(--pen); } }
.vc-set__n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vc-set__nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-3); }
.vc-set__nums span { display: inline-flex; align-items: center; gap: 5px; }
.vc-set__nums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.vc-set__due { margin-left: auto; color: var(--pen) !important; font-weight: 700; }
.vc-set__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.vc-set__foot .vc-modesel { flex: 1; min-width: 0; }
.vc-set__foot .vc-modesel select { height: 34px; font-size: 13.5px; }
.vc-set__list { flex: none; }

/* 설정 */
.vc-settings { background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.vc-settings summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style: none; }
.vc-settings summary::-webkit-details-marker { display: none; }
.vc-settings summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform 180ms var(--ease-out); }
.vc-settings[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.vc-settings__body { display: grid; gap: 16px; padding: 4px 16px 18px; }
.vc-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vc-field--wrap { display: grid; justify-content: stretch; gap: 8px; }
.vc-field__k { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.vc-field__k b { color: var(--pen); font-variant-numeric: tabular-nums; margin-left: 4px; }
.vc-range { flex: 1; min-width: 160px; max-width: 320px; accent-color: var(--pen); height: 32px; }
.vc-voice { display: flex; gap: 8px; align-items: center; }
.vc-voice select { flex: 1; min-width: 0; }
.vc-hr { border: 0; border-top: 1px dashed var(--line-2); margin: 0; }
.vc-check { min-height: 32px; }

/* ---------- 목록 ---------- */
.vc-lhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; }
.vc-lhead h1 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.025em; }
.vc-lhead__n { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.vc-ltools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.vc-lsearch { flex: 1; min-width: 0; }
.vc-hide.is-on { background: var(--pen-soft); color: var(--pen); box-shadow: inset 0 0 0 1px var(--pen-line); }
.vc-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px 4px; }
.vc-filters::-webkit-scrollbar { display: none; }
.vc-fchip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 650; color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.vc-fchip small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vc-fchip.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.vc-fchip.is-on small { color: inherit; opacity: 0.75; }
.vc-hidehelp { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.vc-rows { list-style: none; background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.vc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.vc-row:last-child { border-bottom: 0; }
.vc-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vc-new); }
.vc-row__dot.is-learned { background: var(--vc-learned); }
.vc-row__dot.is-learning { background: var(--vc-learning); }
.vc-row__dot.is-hard { background: var(--vc-hard); }
.vc-row__dot.is-unknown { background: var(--vc-unknown); }
.vc-row__main { display: grid; grid-template-columns: minmax(0, 12em) auto minmax(0, 1fr); align-items: baseline; gap: 4px 10px; min-height: 40px; align-content: center; }
.vc-row__w { font-size: 16.5px; font-weight: 700; letter-spacing: -0.005em; }
.vc-row__pos { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.vc-row__m { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; transition: filter 160ms ease, opacity 160ms ease; }
.vc-rows.is-hide .vc-row__m { filter: blur(6px); opacity: 0.5; cursor: pointer; user-select: none; -webkit-user-select: none; }
.vc-rows.is-hide .vc-row__m.is-peek { filter: none; opacity: 1; }
.vc-row__acts { display: flex; align-items: center; gap: 2px; }
.vc-row__acts .saybtn { box-shadow: none; }
.vc-row__del.is-armed { background: var(--red); color: white; }
@media (hover: hover) and (pointer: fine) { .vc-row__main:hover .vc-row__w { color: var(--pen); } }
.vc-none { padding: 32px 0; text-align: center; color: var(--ink-3); }

/* 내 단어 추가 */
.vc-add { padding: 18px; margin-bottom: 20px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.vc-add__h { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 750; margin-bottom: 12px; }
.vc-add__h .ico { width: 18px; height: 18px; color: var(--pen); }
.vc-add__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) 130px minmax(0, 1.4fr); gap: 10px; }
.vc-add__f { display: grid; gap: 5px; min-width: 0; }
.vc-add__f > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.vc-add__f em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.vc-add__f .req { color: var(--red-ink); }
.vc-add__f--ex { grid-column: 1 / 3; }
.vc-add__f--exk { grid-column: 3; }
.vc-add__f select.field { padding: 0 10px; }
.vc-add__more { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.vc-add__more small { color: var(--ink-3); }
.vc-add__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.vc-add__msg { font-size: 13.5px; color: var(--ink-2); }
.vc-add__msg.is-bad { color: var(--red-ink); }

/* ---------- 단어 상세 ---------- */
.vc-wnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vc-wnav__pn { display: flex; align-items: center; gap: 2px; }
.vc-wnav__n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding: 0 4px; }
.vc-word { padding: 28px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.vc-word__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.vc-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.vc-lv { display: inline-flex; gap: 3px; margin-left: 4px; }
.vc-lv i { width: 6px; height: 14px; border-radius: 2px; background: var(--line); }
.vc-lv i.on { background: var(--ink-3); }
.vc-word__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vc-word__w { font-family: var(--font-en, var(--font-sans)); font-size: 44px; font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; margin-right: 4px; }
.vc-word__pos { margin-top: 4px; font-size: 15px; color: var(--ink-3); font-weight: 600; }
.vc-word__m { margin-top: 18px; font-size: 21px; font-weight: 650; line-height: 1.55; letter-spacing: -0.015em; }
.vc-word__ex { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.vc-word__exrow { display: flex; align-items: flex-start; gap: 10px; }
.vc-word__en { flex: 1; min-width: 0; font-size: 17.5px; line-height: 1.6; font-weight: 520; }
.vc-word__ko { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.vc-word__srs { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.vc-word__srs .linkbtn { font-size: 13.5px; margin-left: 6px; min-height: 0; }
.vc-word__src { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.vc-word__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vc-del.is-armed { background: var(--red); color: white; box-shadow: none; }
.vc-word__study { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.vc-aibox { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--pen-line); }
.vc-aibox__h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; color: var(--pen); margin-bottom: 8px; }
.vc-aibox__h .ico { width: 16px; height: 16px; }
.vc-err { color: var(--red-ink); }

.vc-ex { display: grid; gap: 10px; margin: 18px 0 0; }
.vc-ex__row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.vc-ex dt { font-size: 12.5px; font-weight: 750; color: var(--ink-3); }
.vc-ex dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.vc-ex__row--note dt { color: var(--red-ink); }
.vc-ex__row--note dd { display: block; color: var(--ink); }
.vc-wchip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--ink); }
a.vc-wchip { color: var(--pen); box-shadow: inset 0 0 0 1px var(--pen-line); background: var(--pen-soft); }

/* ---------- 학습 화면 ---------- */
.main--vocab:has(> .vc-study) { padding-bottom: 0; }
.vc-study {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 640px; margin: 0 auto; padding: 14px 20px 20px;
  min-height: calc(100dvh - var(--topbar-h) - var(--tabbar-h, 0px));
}
.vc-sbar { display: flex; align-items: center; gap: 6px; }
.vc-sbar__mid { flex: 1; min-width: 0; display: grid; gap: 6px; padding: 0 4px; }
.vc-sbar__t { font-size: 12.5px; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vc-sbar__t b { color: var(--ink-2); font-weight: 700; }
.vc-prog { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.vc-prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--pen); transition: width 220ms var(--ease-out); }
.vc-sbar__n { font-size: 13.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 2px; }
.vc-sbar .iconbtn:disabled { opacity: 0.35; }
.vc-autosay { color: var(--ink-3); }
.vc-autosay.is-on { color: var(--pen); }
.vc-autosay:not(.is-on) .ico path:last-child { opacity: 0.25; }
.vc-notice { font-size: 13.5px; color: var(--amber-ink); background: var(--amber-soft); border-radius: 10px; padding: 8px 12px; }
.vc-stage { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.vc-keys { text-align: center; font-size: 12.5px; color: var(--ink-3); }
.vc-keys kbd { font-size: 11.5px; }
@media (hover: none) { .vc-keys, .vc-grade kbd, .vc-nextbtn kbd, .vc-tools kbd, .vc-result__acts kbd { display: none; } }

/* 카드 */
.vc-card {
  position: relative; flex: 1; min-height: 300px; display: flex; flex-direction: column;
  padding: 16px 20px 18px; border-radius: 20px; cursor: pointer; touch-action: pan-y;
  background-color: var(--paper);
  background-image: linear-gradient(var(--card-red), var(--card-red));
  background-size: 100% 1.5px; background-position: 0 58px; background-repeat: no-repeat;
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
  transition: transform 200ms var(--ease-out), box-shadow 150ms ease;
  -webkit-user-select: none; user-select: none; overflow: auto; overscroll-behavior: contain;
}
.vc-card.is-flipped { cursor: default; -webkit-user-select: text; user-select: text; }
.vc-card.is-drag { transition: none; }
.vc-card.is-left { box-shadow: var(--shadow-2), inset 0 0 0 2px var(--red-line); }
.vc-card.is-right { box-shadow: var(--shadow-2), inset 0 0 0 2px var(--pen); }
.vc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin-bottom: 18px; }
.vc-card__tools { display: flex; align-items: center; gap: 2px; }
.vc-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.vc-pill--new { background: var(--pen-soft); color: var(--pen); }
.vc-card__face { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 0; transition: flex-grow 200ms var(--ease-out); }
.vc-card__w { font-family: var(--font-en, var(--font-sans)); font-size: clamp(32px, 9vw, 48px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; }
.vc-card__pos { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.vc-card.is-flipped .vc-card__face { flex: 0 0 auto; padding: 4px 0 10px; }
.vc-card.is-flipped .vc-card__w { font-size: clamp(26px, 7vw, 34px); }
.vc-card__back { padding-top: 14px; border-top: 1px dashed var(--line-2); animation: vc-up 200ms var(--ease-out); }
.vc-card__m { font-size: 21px; font-weight: 700; line-height: 1.5; letter-spacing: -0.015em; text-align: center; text-wrap: pretty; }
.vc-card__ex { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.vc-card__ex p[lang="en"] { font-size: 16px; line-height: 1.6; font-weight: 520; }
.vc-card__ko { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.vc-card .vc-ex { margin-top: 12px; gap: 8px; }
.vc-card .vc-ex dd { font-size: 14.5px; }
.vc-card__more { display: inline-block; margin-top: 10px; font-size: 13.5px; }
.vc-card__hint { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.vc-card.is-next, .vc-qcard.is-next { animation: vc-in 180ms var(--ease-out); }
.vc-card.is-back, .vc-qcard.is-back { animation: vc-in-back 180ms var(--ease-out); }
@keyframes vc-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes vc-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes vc-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 채점 버튼: 엄지 영역 */
.vc-dock { position: sticky; bottom: 0; padding-bottom: 2px; }
.vc-grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vc-grade {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 64px; border-radius: 14px; font-size: 16px;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease;
}
.vc-grade b { font-weight: 750; }
.vc-grade small { font-size: 12px; font-weight: 600; opacity: 0.8; }
.vc-grade kbd { position: absolute; top: 6px; right: 8px; font-size: 10.5px; padding: 0 4px; opacity: 0.7; }
.vc-grade:active { transform: scale(0.96); }
.vc-grade--again { background: var(--red-soft); color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-line); }
.vc-grade--hard { background: var(--amber-soft); color: var(--amber-ink); box-shadow: inset 0 0 0 1px var(--amber-line); }
.vc-grade--good { background: var(--pen); color: var(--on-pen); box-shadow: 0 1px 2px oklch(0.3 0.1 262 / 0.18); }
.vc-grade--good kbd { background: transparent; color: inherit; border-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .vc-grade--again:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
  .vc-grade--hard:hover { box-shadow: inset 0 0 0 1.5px var(--amber); }
  .vc-grade--good:hover { background: var(--pen-hover); }
}
.vc-nextbtn { min-height: 56px; gap: 8px; }
.vc-nextbtn kbd { background: transparent; color: inherit; border-color: currentColor; opacity: 0.7; margin-left: 4px; }

/* 문제 카드 (4지선다 · 쓰기) */
.vc-qcard {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  flex: 1; min-height: 170px; padding: 22px 20px; border-radius: 20px;
  background: var(--paper); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.vc-qcard--type { flex: 0 0 auto; min-height: 150px; }
.vc-qcard__w { font-family: var(--font-en, var(--font-sans)); font-size: clamp(30px, 8.5vw, 44px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.vc-qcard__say { margin-top: 6px; }
.vc-qcard__k { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.vc-qcard__m { font-size: 21px; font-weight: 700; line-height: 1.5; letter-spacing: -0.015em; text-wrap: pretty; }
.vc-qcard__ex { margin-top: 8px; font-size: 16px; line-height: 1.75; font-weight: 520; text-align: left; align-self: stretch; }
.vc-qcard__ex--big { font-size: 18px; line-height: 1.85; }
.vc-qcard__ko { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; text-align: left; align-self: stretch; }
.vc-blank { display: inline-block; width: calc(var(--n, 6) * 0.62em); min-width: 2.4em; height: 1.1em; vertical-align: -0.2em; border-bottom: 2px solid var(--pen); background: var(--pen-soft); border-radius: 4px 4px 0 0; }
.vc-hint { margin-top: 8px; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 15px; letter-spacing: 0.08em; color: var(--pen); font-weight: 650; }
.vc-bigsay { display: grid; place-items: center; width: 84px; height: 84px; margin: 8px auto 0; border-radius: 50%; background: var(--pen); color: var(--on-pen); box-shadow: var(--shadow-1); transition: transform 150ms var(--ease-out); }
.vc-bigsay .ico { width: 34px; height: 34px; }
.vc-bigsay:active { transform: scale(0.95); }
.vc-bigsay.is-playing, html.is-speaking .vc-bigsay { box-shadow: 0 0 0 6px var(--pen-soft); }

.vc-choices { list-style: none; display: grid; gap: 8px; }
.vc-choice { min-height: 54px; align-items: center; font-size: 16px; line-height: 1.45; }
.vc-choice .choice__n { font-size: 14px; font-weight: 750; width: 22px; height: 22px; line-height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.vc-choice.is-answer .choice__n { background: var(--pen); color: var(--on-pen); }
.vc-choice .choice__t[lang="en"] { font-weight: 650; font-size: 17px; }
.vc-choice__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.vc-choice .pen-mark { width: 2.2em; height: 2.2em; }

/* 쓰기 */
.vc-type { display: flex; flex-direction: column; gap: 12px; }
.vc-answer { display: flex; gap: 8px; }
.vc-input { height: 54px; font-size: 20px; font-weight: 600; letter-spacing: 0.01em; text-align: center; }
.vc-input.is-right { border-color: var(--pen); background: var(--pen-soft); }
.vc-input.is-wrong { border-color: var(--red-line); background: var(--red-soft); }
.vc-answer__go { height: 54px; min-width: 76px; }
.vc-ime { font-size: 13px; color: var(--amber-ink); text-align: center; }
.vc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.vc-tools kbd { font-size: 10.5px; padding: 0 4px; }
.vc-tools__skip { margin-left: 4px; color: var(--ink-3); }

/* 채점 결과 */
.vc-fb:empty { display: none; }
.vc-fbbox { padding: 14px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); animation: vc-up 180ms var(--ease-out); }
.vc-fbbox.is-right { box-shadow: inset 0 0 0 1.5px var(--pen-line); }
.vc-fbbox.is-wrong { box-shadow: inset 0 0 0 1.5px var(--red-line); background: var(--red-soft); }
.vc-fbbox__v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15.5px; }
.vc-fbbox__mark { position: relative; display: inline-block; width: 22px; height: 22px; }
.vc-fbbox__mark .pen-mark { width: 30px; height: 30px; }
.vc-fbbox__mine { font-size: 14px; color: var(--ink-2); }
.vc-fbbox__mine s { color: var(--red-ink); text-decoration-thickness: 2px; }
.vc-fbbox__note { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.vc-fbbox__w { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vc-fbbox__w b { font-size: 20px; font-weight: 750; }
.vc-fbbox__pos { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.vc-fbbox__m { margin-top: 2px; font-size: 15.5px; font-weight: 600; line-height: 1.55; }
.vc-fbbox__ex { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.vc-fbbox .vc-nextbtn { margin-top: 12px; min-height: 50px; }

/* ---------- 결과 ---------- */
.vc-result { padding: 12px 0 24px; animation: vc-up 220ms var(--ease-out); }
.vc-result__k { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.vc-result__h { margin-top: 4px; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }
.vc-score { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.vc-score__n { font-size: 22px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vc-score__n b { font-family: var(--font-display); font-size: 60px; line-height: 1; font-weight: 800; color: var(--pen); letter-spacing: -0.03em; }
.vc-score__l { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.vc-rstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; padding: 14px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.vc-rstats div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.vc-rstats dt { font-size: 12px; font-weight: 650; color: var(--ink-3); }
.vc-rstats dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vc-result__next { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.vc-result__next .ico { width: 18px; height: 18px; color: var(--ink-3); }
.vc-result__sh { margin-top: 24px; font-size: 15px; font-weight: 750; }
.vc-rlist { list-style: none; margin-top: 8px; background: var(--paper); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.vc-rlist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vc-rlist li:last-child { border-bottom: 0; }
.vc-rlist a { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.vc-rlist b { font-size: 16px; font-weight: 750; }
.vc-rlist a span { font-size: 14px; color: var(--ink-2); }
.vc-rlist__g { flex: none; font-size: 11.5px; font-weight: 750; padding: 2px 7px; border-radius: 6px; }
.vc-rlist__g.is-unknown { background: var(--red-soft); color: var(--red-ink); }
.vc-rlist__g.is-hard { background: var(--amber-soft); color: var(--amber-ink); }
.vc-result__acts { display: grid; gap: 14px; margin-top: 22px; }
.vc-result__acts .btn--lg kbd { background: transparent; color: inherit; border-color: currentColor; opacity: 0.7; margin-left: 4px; }
.vc-result__modes { display: grid; gap: 8px; }
.vc-result__modes > span { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.vc-result__row { display: flex; gap: 8px; flex-wrap: wrap; }
.vc-result__row .btn { flex: 1; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .vc-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .vc-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .vc-hero__mode .vc-modesel { max-width: none; }
  .vc-quick { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vc-qt__main { align-items: center; padding: 12px 14px; }
  .vc-qt__b { grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 8px; }
  .vc-qt__n { font-size: 16px; }
  .vc-qt__s { grid-column: 1 / -1; }
  .vc-add__grid { grid-template-columns: minmax(0, 1fr) 120px; }
  .vc-add__f--m, .vc-add__f--ex, .vc-add__f--exk { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .vc-sets { grid-template-columns: minmax(0, 1fr); }
  .vc-hero__n b { font-size: 48px; }
  .vc-lhead h1 { font-size: 26px; }
  .vc-lhead .btn { padding: 0 14px; }
  .vc-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 8px 4px 8px 12px; }
  .vc-row__main { grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; padding: 2px 0; }
  .vc-row__m { grid-column: 1 / -1; font-size: 14px; }
  .vc-word { padding: 20px 18px; }
  .vc-word__w { font-size: 36px; }
  .vc-word__m { font-size: 19px; }
  .vc-word__en { font-size: 16.5px; }
  .vc-study { padding: 10px var(--gutter) 12px; gap: 10px; }
  .vc-card { padding: 12px 16px 16px; border-radius: 18px; min-height: 0; background-position: 0 52px; }
  .vc-card__top { margin-bottom: 14px; }
  .vc-qcard { padding: 18px 16px; min-height: 140px; border-radius: 18px; }
  .vc-qcard__m { font-size: 19px; }
  .vc-qcard__ex--big { font-size: 17px; }
  .vc-rstats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .vc-rstats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .vc-result__h { font-size: 22px; }
}
@media (pointer: coarse) {
  .vc-starbtn { width: 44px; height: 44px; }
  .vc-row__acts .saybtn { width: 40px; height: 40px; }
  .vc-fchip { height: 40px; }
  .vc-set__foot .vc-modesel select { height: 44px; font-size: 16px; }
  .vc-modesel select, .vc-voice select, .vc-lsearch .field, .vc-add .field, .vc-search .field { font-size: 16px; }
  .saybtn--sm { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .vc-card, .vc-qcard, .vc-card__back, .vc-fbbox, .vc-result { animation: none !important; }
  .vc-card, .vc-grade, .vc-bar i, .vc-prog i, .vc-card__face { transition: none !important; }
}
