:root {
  --button-radius:999px;
  color-scheme:light;
  --navy:#0f2942;
  --navy-mid:#1e3a5f;
  --red:#d85339;
  --red-dark:#b1442f;
  --gold:#e0a24b;
  --cream:#f3e9d8;
  --blue-light:#e8eef4;
  --ink:var(--navy);
  --body:#2d3748;
  --muted:#506075;
  --paper:#fff;
  --line:#d9e1e9;
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; background:#f7fafc; color:var(--ink); min-height:100dvh; overflow-x:hidden; }
button, input, textarea, select { font:inherit; }
button { color:inherit; }
button:not(:disabled), select { cursor:pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #3b6ea5; outline-offset:3px; }
button:disabled { opacity:.55; cursor:not-allowed; }
h1,h2,h3,p { margin:0; }
img { display:block; max-width:100%; }
[hidden] { display:none !important; }
.topbar { min-height:64px; padding:10px clamp(18px,4vw,60px); display:flex; align-items:center; justify-content:space-between; background:#fff; border-bottom:1px solid var(--line); }
.brand-logo { width:auto; height:40px; }
.test-badge { display:inline-flex; gap:7px; align-items:center; background:var(--blue-light); color:var(--navy-mid); border-radius:30px; padding:7px 11px; font-size:13px; font-weight:700; }
.test-badge span { width:7px; height:7px; border-radius:50%; background:var(--red); }
#app { max-width:1160px; margin:clamp(16px,4vw,56px) auto 0; padding:0 clamp(14px,3vw,32px); }
.split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.06fr); overflow:hidden; border:1px solid var(--line); border-radius:24px; background:var(--paper); }
.hero { min-height:565px; }
.visual { min-height:100%; position:relative; isolation:isolate; overflow:hidden; background:var(--blue-light); }
.visual img { width:100%; height:100%; position:absolute; object-fit:cover; object-position:center 48%; }
.visual--portrait { display:grid; place-items:center; min-height:0; }
.visual--portrait img { position:static; height:auto; max-height:46rem; object-fit:contain; }
.ui { min-width:0; display:flex; flex-direction:column; gap:18px; padding:clamp(24px,4vw,48px); }
.hero-ui { justify-content:center; }
.eyebrow { font-size:13px; letter-spacing:.105em; font-weight:850; color:var(--navy-mid); }
h1 { font-size:clamp(34px,5.1vw,63px); line-height:1.08; letter-spacing:-.075em; word-break:keep-all; }
h2 { font-size:clamp(25px,3.6vw,37px); line-height:1.19; letter-spacing:-.05em; word-break:keep-all; }
h3 { font-size:18px; letter-spacing:-.025em; line-height:1.4; }
.intro,.bodycopy { color:var(--body); line-height:1.65; font-size:16px; word-break:keep-all; overflow-wrap:anywhere; }
.meta { display:flex; flex-wrap:wrap; gap:8px; }
.pill { display:inline-flex; background:var(--blue-light); border:1px solid var(--line); color:var(--navy-mid); border-radius:30px; padding:6px 11px; font-size:13px; font-weight:720; }
.actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.btn { padding:11px 18px; border:1px solid transparent; border-radius:var(--button-radius); min-height:46px; font-weight:770; line-height:1.32; display:inline-flex; align-items:center; justify-content:center; }
.primary { background:var(--red-dark); color:#fff; }
.primary:hover { background:#913826; }
.secondary { background:#fff; border-color:var(--line); color:var(--navy); }
.secondary:hover { background:var(--blue-light); }
.small-button { background:white; border:1px solid var(--line); font-size:14px; border-radius:var(--button-radius); padding:7px 13px; min-height:39px; }
.text-button { background:none; border:none; padding:5px; color:var(--navy-mid); text-decoration:underline; text-underline-offset:3px; min-height:40px; }
.note,.micro { font-size:13px; color:var(--muted); line-height:1.55; }
.notice { border:1px solid var(--line); background:#f7fafc; padding:12px 14px; border-radius:10px; color:var(--body); font-size:14px; line-height:1.55; }
.chapter-head { display:grid; gap:9px; margin:0 0 14px; }
.progress-info { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.progress-info p { color:var(--navy); font-weight:760; font-size:14px; }
.progress { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:5px; }
.progress span { height:5px; border-radius:5px; background:var(--line); }
.progress span.done { background:var(--navy-mid); }
.progress span.current { background:var(--red); }
.scene .ui { gap:14px; }
.scene .visual img { object-position:center 50%; }
.dialog { border:1px solid var(--line); border-radius:15px; background:#fff; padding:15px; display:flex; flex-direction:column; gap:11px; }
.speaker { display:flex; align-items:center; gap:8px; font-weight:750; color:var(--navy-mid); font-size:13px; }
.speaker .speaker-icon { background:var(--cream); color:var(--navy); width:26px; height:26px; border-radius:99px; display:grid; place-items:center; font-size:15px; }
.english { font-size:clamp(20px,2.3vw,26px); line-height:1.24; font-weight:750; letter-spacing:-.028em; }
.help { padding:9px 12px; border-radius:9px; background:var(--blue-light); color:var(--navy-mid); font-size:14px; line-height:1.5; }
.reply { font-size:14px; color:var(--navy-mid); min-height:1em; }
.input-line { display:flex; flex-wrap:wrap; gap:7px; }
.input-line input { flex:1 1 160px; min-width:0; }
.field { display:grid; gap:6px; }
.field label,.field legend { font-weight:730; font-size:15px; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  background:white; color:var(--ink); border:1px solid #a7b4c1; border-radius:9px; padding:9px 11px; min-height:44px; width:100%; min-width:0; font-size:16px;
}
textarea { resize:vertical; line-height:1.55; }
.choice-set { display:grid; gap:9px; }
.choice { width:100%; display:grid; gap:3px; text-align:left; padding:11px 20px; min-height:46px; background:#fff; border:1px solid var(--line); border-radius:var(--button-radius); font-weight:770; line-height:1.35; word-break:keep-all; }
.choice small { display:block; color:var(--muted); font-size:13px; font-weight:550; }
.choice:hover,.choice[aria-pressed="true"] { background:#fcf5ed; border-color:var(--gold); }
.choice:disabled { opacity:1; }
.choices-inline { display:flex; flex-wrap:wrap; gap:7px; }
.choices-inline button { text-align:left; }
.plan { max-width:830px; margin:0 auto; display:grid; gap:14px; }
.plan p { word-break:keep-all; overflow-wrap:anywhere; }
.plan-head { border-top:4px solid var(--gold); border-radius:18px; background:var(--navy); color:white; padding:24px clamp(18px,4vw,33px); display:grid; gap:9px; }
.plan-head .eyebrow { color:var(--gold); }
.plan-head p:not(.eyebrow) { color:var(--blue-light); font-size:15px; line-height:1.5; }
.box { display:grid; gap:12px; padding:18px clamp(16px,3vw,24px); border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.country-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.country { border:1px solid var(--line); border-radius:12px; padding:12px; background:#fff; display:grid; align-content:start; gap:6px; }
.country.main { background:#fcf5ed; border-color:var(--cream); }
.country h3 { font-size:22px; }
.country p { color:var(--body); font-size:15px; line-height:1.55; }
.form-block { display:grid; gap:12px; }
.settings { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.settings .field { align-content:start; }
.panel { border:1px solid var(--line); border-radius:14px; padding:15px; display:grid; gap:10px; margin-top:5px; background:#fff; }
.panel .test-note { color:#5e4900; background:#fbf1c9; border:1px solid #e8daa1; padding:8px 10px; border-radius:8px; font-size:14px; }
.panel fieldset { padding:8px 0 0; border:0; margin:0; }
.radio-list { display:flex; gap:15px; flex-wrap:wrap; }
.radio-list label { display:inline-flex; align-items:center; gap:6px; min-height:38px; }
.consent { display:flex; gap:8px; align-items:flex-start; color:var(--body); font-size:14px; line-height:1.55; }
.consent input { margin-top:5px; }
.actions a.btn { text-decoration:none; }
.receipt { border:1px solid var(--line); border-radius:9px; padding:12px; background:var(--blue-light); display:grid; gap:5px; }
.err { color:#922529; font-size:14px; }
.footer-check { font-size:14px; color:var(--body); line-height:1.5; }
.site-footer { max-width:1160px; margin:0 auto; padding:24px clamp(14px,3vw,32px) 32px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:7px 12px; color:var(--muted); font-size:12px; }
.placement { display:block; max-width:830px; margin-inline:auto; }
.reading-practice { background:var(--blue-light); padding:clamp(12px,3vw,24px); border-radius:14px; }
.reading-sheet { display:grid; gap:13px; padding:clamp(14px,3vw,24px); background:#fff; border-top:3px solid var(--red); border-radius:3px 3px 12px 12px; }
.passage { max-width:30ch; font-size:clamp(20px,3vw,30px); font-weight:680; line-height:1.3; }
.reading-sheet [role=status]:empty,.trip-story:empty { display:none; }
.reading-sheet [role=status],.trip-story { color:var(--navy-mid); line-height:1.55; }
.trip-story:not(:empty) { border-left:3px solid var(--gold); padding-left:12px; }
.reading-sheet [aria-pressed=true] { background:var(--blue-light); border-color:var(--navy-mid); }
.amount-field { position:relative; }
.amount-field input[type=text] { padding-right:60px; }
.amount-field span { position:absolute; top:50%; right:13px; transform:translateY(-50%); color:var(--navy-mid); font-weight:650; pointer-events:none; }
.settings-pause { justify-content:flex-end; }
@media (max-width:680px) {
  .topbar { min-height:56px; }
  #app { margin-top:11px; }
  .split { grid-template-columns:1fr; border-radius:17px; }
  .hero { min-height:0; }
  .visual { min-height:clamp(150px,45vw,255px); }
  .hero .visual { min-height:clamp(210px,58vw,310px); }
  .visual img { object-position:center 44%; }
  .visual--portrait { min-height:0; }
  .visual--portrait img { max-height:58svh; }
  .ui { padding:18px 16px 19px; gap:12px; }
  .chapter-head { margin-bottom:9px; }
  .scene .ui { gap:12px; }
  .btn { padding:10px 12px; }
  .hero-ui .primary,.scene .actions .primary { flex:1 1 auto; }
  .country-grid,.settings { grid-template-columns:1fr; }
  .site-footer { padding-top:16px; }
}
@media (prefers-reduced-motion: no-preference) { .btn,.choice { transition:background .15s,border-color .15s; } }
