/* 웹에서 체험하기(/try/)만 쓰는 모양 — 공통은 site.css(창 .win · 영수증 .receipt · 문서 .doc · 색인 탭 카드 .tabcard).
   앱 공부 화면 둘(학생 · 조교)을 1비트 창으로, 장마다 주인공 하나(2026-11-30 사용자 — 첫 화면처럼 단어가 96px, 망점 책상 · 말풍선 없이 뒷장 하나).
   창 높이는 늘 같아요(사용자 — 누를 때 칸 높이가 바뀌지 않게): 위 줄 · 진행 막대 · 안쪽(넘치면 그 안에서만 스크롤) · 아래 단추 줄.
   도트 글꼴은 16의 배수, 작은 글 · 긴 글은 프리텐다드. */

/* 2 · 3. 체험 칸 — 왼쪽 설명 · 고르기, 오른쪽 앱 창(뒤에 종이 한 장) */
.try-band { padding-block: 48px; }
.pick-label { margin-bottom: -6px; color: var(--soft); }
.levels { display: flex; flex-wrap: wrap; gap: 8px; }
.levels .btn[aria-pressed="true"] { background: var(--ink); color: var(--on); }
.stepper { display: flex; width: fit-content; }
.stepper .btn { min-width: 48px; padding: 0 14px; }
.stepper output { display: grid; place-items: center; min-width: 104px; padding: 0 12px; background: var(--paper); border-block: var(--dot) solid var(--ink); }
@media (max-width: 600px) { .try-band { padding-block: 40px; } }

.tdemo { position: relative; max-width: 520px; margin: 10px auto 0; }
.tsheet { position: absolute; inset: 0; border: var(--dot) solid var(--ink); background: var(--paper); transform: translate(9px, -9px); }
.tapp { --app-h: 580px; height: var(--app-h); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px 14px; }
@media (max-width: 600px) { .tdemo { margin-right: 9px; } .tapp { --app-h: 600px; padding: 10px 10px 12px; } }
.t-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.t-top b { font-weight: 400; white-space: nowrap; }
.t-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: 13px; color: var(--soft); }
/* 진행 막대 — 옛 복사 창처럼 칸칸이 */
.t-prog { height: 21px; padding: 3px; border: var(--dot) solid var(--ink); }
.t-prog i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 12px); transition: width .3s steps(4); }
.t-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; }
.t-act { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; height: 52px; }
.t-act .btn { height: 52px; min-width: 0; padding: 0 8px; white-space: normal; text-align: center; line-height: 1.25; }
.t-hold { display: grid; place-items: center; padding: 0 8px; text-align: center; font-family: var(--sans); font-size: 13.5px; color: var(--soft); border: var(--dot) dashed color-mix(in srgb, var(--ink) 30%, transparent); }

/* 카드(앞: 단어 · 발음, 뒤: 뜻 · 예문) — 단어가 주인공, 뒷면은 처음부터 자리를 차지해요(보이지만 않게) */
.t-card { flex: 1 0 auto; display: grid; grid-template-rows: auto 1fr; padding: 10px 12px 12px; background: var(--paper); border: var(--dot) solid var(--ink); }
.t-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.t-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 8px; border: 2px solid var(--ink); font-family: var(--sans); font-size: 12.5px; }
.t-say { min-height: 32px; padding: 0 10px; flex: none; }
.t-say.playing { background: var(--ink); color: var(--on); }
.t-face { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; align-content: start; justify-items: start; gap: 6px; text-align: left; padding: 16px 4px 2px; -webkit-tap-highlight-color: transparent; }
.t-face:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.t-word { font-size: 96px; line-height: 1.05; overflow-wrap: anywhere; }
.t-word.long { font-size: 64px; line-height: 1.15; }
.t-ipa { font-family: var(--sans); font-size: 14px; color: var(--soft); }
.t-back { display: grid; justify-items: start; gap: 8px; width: 100%; margin-top: 6px; padding-top: 12px; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); visibility: hidden; }
.t-card.open .t-back { visibility: visible; }
.t-mean { font-size: 16px; }
.t-ex { padding-left: 12px; border-left: var(--dot) solid var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--read); }
.t-ex b { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.t-src { font-family: var(--sans); font-size: 12.5px; color: var(--soft); }
.t-hint { position: absolute; left: 4px; top: 168px; font-family: var(--sans); font-size: 15px; color: var(--soft); }
.t-card.open .t-hint { visibility: hidden; }
@media (max-width: 600px) { .t-word { font-size: 64px; } .t-word.long { font-size: 48px; } .t-hint { top: 128px; } }

/* 고르기 · 쓰기 · 구두 시험 문제 칸 — 묻는 말이 주인공 */
.t-q { display: grid; justify-items: start; gap: 4px; padding: 10px 12px 12px; background: var(--paper); border: var(--dot) solid var(--ink); }
.t-q .t-chip { justify-self: stretch; border: 0; padding: 0; color: var(--soft); }
.t-qw { font-size: 64px; line-height: 1.15; font-weight: 400; overflow-wrap: anywhere; }
.t-qw.long, .t-qw.ko { font-size: 48px; line-height: 1.25; }
.t-qs { font-family: var(--sans); font-size: 13.5px; color: var(--soft); }
@media (max-width: 600px) { .t-qw { font-size: 48px; } .t-qw.ko { font-size: 32px; } }
.t-opts { display: grid; gap: 8px; }
.t-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--dot) var(--dot) 0 var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.45; }
.t-opt:not(:disabled):hover, .t-opt:focus-visible { background: var(--ink); color: var(--on); }
.t-opt:focus-visible { outline: 2px dashed var(--on); outline-offset: -7px; }
.t-opt:not(:disabled):active { transform: translate(var(--dot), var(--dot)); box-shadow: none; }
.t-opt:disabled { cursor: default; }
.t-opt::after { font-family: var(--pixel); font-weight: 400; white-space: nowrap; }
.t-opt.right { background: var(--ink); color: var(--on); }
.t-opt.right::after { content: "정답"; }
.t-opt.wrong { border-style: dashed; box-shadow: none; }
.t-opt.wrong span { text-decoration: line-through; text-decoration-thickness: 2px; }
.t-opt.wrong::after { content: "틀림"; }
.t-type { display: grid; gap: 6px; }
.t-type input { display: block; width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 18px; line-height: 1.3; color: var(--ink); background: var(--paper);
  border: var(--dot) solid var(--ink); border-radius: 0; outline: 0; -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; }
.t-type input:focus { box-shadow: inset 0 0 0 var(--dot) var(--ink); }
.t-type small { font-family: var(--sans); font-size: 12.5px; line-height: 1.55; color: var(--soft); }
.t-verdict { display: grid; justify-items: start; gap: 2px; padding: 12px 14px 14px; border: var(--dot) solid var(--ink); background: var(--paper); }
.t-verdict.ok { background: var(--ink); color: var(--on); }
.t-verdict.near { border-style: dashed; }
.t-verdict small { margin-top: 6px; font-family: var(--sans); font-size: 12.5px; opacity: .8; }
.t-verdict .t-ans { font-size: 48px; line-height: 1.2; overflow-wrap: anywhere; }

/* 학생 · 끝 — 공부 영수증(종이는 밝은 화면 · 어두운 화면 모두 흰 종이) */
.t-body .receipt { --zz: 10px; width: 100%; max-width: 380px; margin: 0 auto; padding: 26px 18px 28px; }
.t-body .r-big { margin: 10px 0 6px !important; padding: 6px 0; font-size: 32px; }
.t-body .r-row { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 0; }
.t-body .r-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-body .r-word span { font-weight: 400; }
.t-body .r-word span b { font-family: var(--sans); font-weight: 700; text-align: left; }
.t-body .r-row em { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 700; white-space: nowrap; }
.t-body .r-row em.again { padding: 0 6px; background: #000; color: #fff; }
.t-body .r-note { margin-top: 12px !important; font-family: var(--sans); font-size: 12.5px; line-height: 1.6; color: #444; }
.t-body .r-code { height: 34px; margin: 14px 0 6px; }

/* 조교 — 정답 칸(조교 화면에만), 기준을 넘으면 검은 띠 */
.o-ans { display: grid; justify-items: start; gap: 0; padding: 8px 12px 10px; border: var(--dot) dashed var(--ink); }
.o-ans small { font-family: var(--sans); font-size: 12px; color: var(--soft); }
.o-ans b { font-weight: 400; font-size: 32px; line-height: 1.25; overflow-wrap: anywhere; }
.o-over { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; background: var(--ink); color: var(--on); font-family: var(--sans); font-size: 13.5px; font-weight: 600; }
.o-over .btn { min-height: 34px; padding: 0 10px; flex: none; background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* 조교 · 끝 — 결과지(기울이지 않음), 도장이 주인공 */
.t-body .doc { min-height: 0; padding: 18px 18px 18px; }
.o-head { margin-bottom: 4px; font-family: var(--sans); font-size: 13px; color: var(--soft); }
.o-stamp { display: inline-block; margin: 8px 0 14px 6px; padding: 2px 16px; border: 8px double var(--ink); font-size: 48px; line-height: 1.25; transform: rotate(-6deg); }
@media (max-width: 600px) { .o-stamp { font-size: 32px; padding: 2px 12px; border-width: 6px; } }
.o-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; border: 2px solid var(--ink); }
.o-nums div + div { border-left: 2px solid var(--ink); }
.o-nums div { padding: 5px 8px 6px; }
.o-nums dt { font-family: var(--sans); font-size: 11.5px; color: var(--soft); }
.o-nums dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.o-wrong { list-style: none; margin: 0 0 12px; padding: 0; font-family: var(--sans); font-size: 14px; }
.o-wrong li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.o-wrong em { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .t-prog i { transition: none; } }

/* 4. 앱에서 더 — 성분표처럼 굵은 줄(제목이 주인공) */
.facts { max-width: 640px; padding: 14px 18px 14px; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); font-family: var(--sans); color: var(--ink); }
.f-title { font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.035em; }
.f-sub { margin-top: 8px !important; padding-bottom: 10px; font-size: 13.5px; color: var(--read); border-bottom: 12px solid var(--ink); }
.facts table { width: 100%; border-collapse: collapse; }
.facts thead th { padding: 6px 0 5px 12px; font-size: 12px; font-weight: 800; text-align: right; white-space: nowrap; border-bottom: 4px solid var(--ink); }
.facts thead th:first-child { padding-left: 0; text-align: left; }
.facts tbody th { padding: 9px 12px 9px 0; text-align: left; font-weight: 400; vertical-align: top; }
.facts tbody th b { display: block; font-size: 15.5px; font-weight: 800; }
.facts tbody th span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--read); }
.facts td { width: 6.5em; padding: 9px 0 9px 12px; text-align: right; vertical-align: top; font-size: 13.5px; font-weight: 800; line-height: 1.45; }
.facts td.no { font-weight: 400; color: var(--soft); }
.facts tbody tr + tr > * { border-top: 2px solid var(--ink); }
.f-foot { padding-top: 8px; font-size: 12px; line-height: 1.6; color: var(--read); border-top: 8px solid var(--ink); }
@media (max-width: 600px) { .facts { padding: 12px; } .facts td { width: 5em; padding-left: 8px; } .facts tbody th span { font-size: 12.5px; } }

/* 5. 끝 — 큰 한 줄 + 대상별 안내(색인 탭 카드) */
.end { text-align: center; }
.end h2 { font-size: 64px; line-height: 1.15; margin-bottom: 20px; }
.end .lead { margin: 0 auto 26px; font-family: var(--sans); font-size: 18px; }
.end .ctas { justify-content: center; }
.end .btn small { font-family: var(--sans); font-size: 12px; opacity: .8; }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin-top: 52px; text-align: left; }
.guides .tabcard { display: grid; align-content: start; gap: 6px; padding: 16px 20px 18px; text-decoration: none; }
.guides .tabcard:nth-child(2) { --tab-x: 28%; }
.guides .tabcard:nth-child(3) { --tab-x: 52%; }
.guides h3 { font-size: 16px; }
.guides p { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--read); }
.guides .go { margin-top: 4px; }
.guides .tabcard:hover .go { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .end h2 { font-size: 48px; } .guides { grid-template-columns: 1fr; gap: 52px; } .guides .tabcard:nth-child(n) { --tab-x: 0%; } }
@media (max-width: 400px) { .end h2 { font-size: 32px; } }

/* 인쇄: 체험에서 뽑는 종이 시험지만 */
.printsheet { display: none; }
@media print {
  body > *:not(.printsheet) { display: none !important; }
  .printsheet { display: block !important; font-family: var(--sans); color: #000; background: #fff; }
  .printsheet h1 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 0; }
  .printsheet .meta { display: flex; gap: 40px; margin: 10px 0 18px; font-size: 13px; }
  .printsheet ol { columns: 2; column-gap: 40px; padding-left: 22px; font-size: 15px; line-height: 2.2; }
  .printsheet .key { break-before: page; }
}
