@font-face{font-family:'NanumSquare';src:url('assets/fonts/nanumsquare-l.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'NanumSquare';src:url('assets/fonts/nanumsquare-r.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'NanumSquare';src:url('assets/fonts/nanumsquare-b.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'NanumSquare';src:url('assets/fonts/nanumsquare-eb.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { font-family:'NanumSquare','Malgun Gothic','Apple SD Gothic Neo',sans-serif; background:#fdf8ef; color:#263238; line-height:1.5; }
.wrap { max-width:860px; margin:0 auto; padding:20px 16px 56px; }
.topbar { display:flex; align-items:center; gap:12px; padding:10px 4px 16px; }
.topbar img.logo { height:52px; }
.topbar .ttl { font-size:24px; color:#0e7c7b; }
.topbar .home-link { margin-left:auto; background:#fff; border:2px solid #0e7c7b; color:#0e7c7b; border-radius:999px; padding:8px 16px; font-family:inherit; font-size:16px; cursor:pointer; text-decoration:none; }
h1.page { font-size:28px; color:#0e7c7b; text-align:center; margin:6px 0 4px; }
.sub { text-align:center; color:#607d8b; font-size:16px; margin-bottom:22px; }
.sub .en { display:block; font-size:14px; color:#90a4ae; }
.doors { display:flex; flex-direction:column; gap:16px; }
.door { display:flex; align-items:center; gap:16px; background:#fff; border-radius:20px; padding:22px; text-decoration:none; color:#263238; box-shadow:0 3px 10px rgba(0,0,0,.07); border:3px solid transparent; cursor:pointer; text-align:left; width:100%; font-family:inherit; }
.door:active { transform:scale(.99); }
.door .ic { font-size:52px; }
.door h2 { font-size:25px; }
.door p { color:#607d8b; font-size:16px; }
.door p .en { color:#90a4ae; font-size:14px; }
.door.main { border-color:#0e7c7b; }
.door.words { border-color:#e8720c; }
.door.soon { border-color:#b0bec5; opacity:.85; }
.badge-soon { background:#90a4ae; color:#fff; border-radius:999px; padding:3px 12px; font-size:14px; margin-left:8px; vertical-align:middle; }
.progress-note { text-align:center; color:#78909c; font-size:14px; margin-top:18px; }
.steps-bar { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin:14px 0 20px; }
.steps-bar .st { background:#eceff1; color:#78909c; border-radius:999px; padding:6px 14px; font-size:15px; }
.steps-bar .st.on { background:#0e7c7b; color:#fff; }
.steps-bar .st.done { background:#a5d6a7; color:#1b5e20; }
.card { background:#fff; border-radius:20px; padding:22px; box-shadow:0 3px 10px rgba(0,0,0,.07); margin-bottom:16px; }
.card h3 { font-size:21px; color:#0e7c7b; margin-bottom:8px; }
.bigword { text-align:center; }
.bigword img { width:min(300px,72vw); height:min(300px,72vw); object-fit:contain; background:#fdf8ef; border-radius:18px; }
.bigword .ko { font-size:52px; margin-top:10px; }
.bigword .rom { color:#90a4ae; font-size:19px; }
.bigword .en { color:#607d8b; font-size:19px; }
.en-sub { display:block; font-size:14px; color:#90a4ae; margin-top:2px; }
.line .en-line { display:block; font-size:15px; color:#78909c; margin-top:2px; }
.react-char { position:fixed; right:8px; bottom:8px; width:128px; z-index:80; display:none; text-align:center; pointer-events:none; }
.react-char.show { display:block; }
.react-char .bubble { background:#fff; border:2.5px solid #0e7c7b; color:#263238; border-radius:14px; padding:6px 8px; font-size:16.5px; line-height:1.3; margin-bottom:4px; box-shadow:0 3px 8px rgba(0,0,0,.15); }
.react-char img { width:110px; height:170px; object-fit:contain; }
.react-char.good img { animation:clap .45s ease-in-out 4; }
.react-char.try img { animation:sway .6s ease-in-out 3; }
.react-char.done img { animation:clap .45s ease-in-out 5; }
@keyframes clap { 0%,100% { transform:translateY(0) rotate(0deg); } 25% { transform:translateY(-12px) rotate(-4deg); } 50% { transform:translateY(0) rotate(0deg); } 75% { transform:translateY(-12px) rotate(4deg); } }
@keyframes sway { 0%,100% { transform:rotate(-3deg); } 50% { transform:rotate(3deg); } }
.next-pulse { animation:pulseBtn .7s ease-in-out 4; }
@keyframes pulseBtn { 0%,100% { transform:scale(1); } 50% { transform:scale(1.1); box-shadow:0 0 0 7px rgba(232,114,12,.35); } }
.guide-btn { display:block; margin:0 auto 14px; background:#7b1fa2; color:#fff; border:none; border-radius:999px; padding:13px 30px; font-family:inherit; font-size:20px; cursor:pointer; box-shadow:0 3px 0 #4a0072; }
.guide-btn:active { transform:translateY(2px); box-shadow:none; }
.lang-toggle { display:flex; gap:6px; margin-left:auto; flex:none; }
.lang-toggle button { border:2px solid #d8cdb8; background:#fff; color:#8a7a5c; border-radius:999px; padding:7px 13px; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; }
.lang-toggle button.on { background:#0e7c7b; border-color:#0e7c7b; color:#fff; }
.topbar .home-link { margin-left:10px; }
.topbar:not(:has(.home-link)) .lang-toggle { margin-left:auto; }
button.play { background:#e8720c; color:#fff; border:none; border-radius:999px; padding:14px 30px; font-family:inherit; font-size:21px; cursor:pointer; box-shadow:0 3px 0 #bf6008; }
button.play:active { transform:translateY(2px); box-shadow:none; }
button.next { background:#0e7c7b; color:#fff; border:none; border-radius:999px; padding:14px 34px; font-family:inherit; font-size:21px; cursor:pointer; display:block; margin:18px auto 0; }
button.ghost { background:#fff; color:#0e7c7b; border:2px solid #0e7c7b; border-radius:999px; padding:11px 26px; font-family:inherit; font-size:18px; cursor:pointer; }
.choices { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px; }
.choice { background:#fff; border:3px solid #cfd8dc; border-radius:18px; padding:12px; cursor:pointer; text-align:center; font-family:inherit; }
.choice img { width:100%; height:150px; object-fit:contain; background:#fdf8ef; border-radius:12px; }
.choice .lb { font-size:21px; margin-top:6px; }
.choice.right { border-color:#43a047; background:#e8f5e9; }
.choice.wrong { border-color:#e53935; background:#ffebee; }
.feedback { text-align:center; font-size:23px; min-height:36px; margin-top:14px; }
.feedback.good { color:#2e7d32; } .feedback.try { color:#e8720c; }
.tiles { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin:14px 0; }
.tile { background:#fff3e0; border:3px solid #e8720c; border-radius:14px; padding:12px 20px; font-size:24px; cursor:pointer; font-family:inherit; }
.tile.used { opacity:.3; pointer-events:none; }
.answer-zone { min-height:70px; background:#fff; border:3px dashed #90a4ae; border-radius:14px; display:flex; gap:10px; align-items:center; justify-content:center; flex-wrap:wrap; padding:10px; font-size:26px; }
.dialog { display:flex; flex-direction:column; gap:12px; margin-top:10px; }
.line { display:flex; gap:10px; align-items:flex-start; }
.line .who { font-size:30px; }
.line .bubble { background:#e0f2f1; border-radius:16px; padding:12px 16px; font-size:21px; flex:1; }
.line.teacher .bubble { background:#fff3e0; }
.line .why { display:block; font-size:14.5px; color:#607d8b; margin-top:5px; }
.line .mini-play { background:#e8720c; color:#fff; border:none; border-radius:50%; width:42px; height:42px; font-size:18px; cursor:pointer; flex:none; }
.stamp { text-align:center; font-size:22px; color:#2e7d32; background:#e8f5e9; border-radius:16px; padding:16px; margin-top:16px; }
.stamp .big { font-size:44px; }
.kan-cards { display:flex; flex-direction:column; gap:16px; }
.kan { display:flex; gap:16px; align-items:center; background:#fff; border-radius:20px; padding:20px; text-decoration:none; color:#263238; box-shadow:0 3px 10px rgba(0,0,0,.07); }
.kan .ic { font-size:46px; }
.kan h2 { font-size:24px; }
.kan p { color:#607d8b; font-size:15.5px; }
.kan .stampmark { margin-left:auto; font-size:34px; }
.qprog { text-align:center; color:#78909c; font-size:16px; margin-bottom:10px; }
.qimg { width:min(280px,68vw); height:min(280px,68vw); object-fit:contain; background:#fdf8ef; border-radius:18px; display:block; margin:10px auto; }
.modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; z-index:50; }
.modal-bg.show { display:flex; }
.modal { background:#fff; border-radius:20px; padding:30px 26px; max-width:420px; width:88vw; text-align:center; }
.modal h3 { font-size:24px; color:#0e7c7b; margin-bottom:10px; }
.modal p { color:#546e7a; font-size:17px; margin-bottom:18px; }
.kid-note { background:#fff8e1; border-radius:14px; padding:13px 16px; font-size:15.5px; color:#6d4c41; margin-top:14px; }
.rec-row { display:flex; gap:10px; justify-content:center; margin-top:12px; flex-wrap:wrap; }
button.rec { background:#7b1fa2; color:#fff; border:none; border-radius:999px; padding:12px 24px; font-family:inherit; font-size:18px; cursor:pointer; }

/* 나눔스퀘어는 가벼운 서체라 제목·버튼·강조는 굵은 웨이트로 가독성을 맞춘다 */
h1, h2, h3, .topbar .ttl, .modal h3 { font-weight:800; }
button.next, button.play, button.ghost, button.rec, .guide-btn, .desc-btn, .lang-toggle button, .tile, .choice .lb, .steps-bar .st, .badge-soon, .exbox .txt, .line .bubble, .selfopt, .home-link { font-weight:700; }
.feedback, .bigword .ko, .answer-zone, .stamp, .bigchar { font-weight:800; }

/* 하나의 길 + 내 시작 위치 표시 */
.road { display:flex; align-items:center; gap:4px; justify-content:center; flex-wrap:wrap; margin:4px 0 18px; }
.road .node { background:#eceff1; color:#78909c; border-radius:999px; padding:6px 13px; font-size:15px; font-weight:700; }
.road .node.review { background:#e8f5e9; color:#2e7d32; }
.road .node.start { background:#e8720c; color:#fff; }
.road .arrow { color:#b0bec5; font-size:14px; }
.badge-start { background:#e8720c; color:#fff; border-radius:999px; padding:3px 12px; font-size:14px; margin-left:8px; vertical-align:middle; }
.badge-review { background:#a5d6a7; color:#1b5e20; border-radius:999px; padding:3px 12px; font-size:14px; margin-left:8px; vertical-align:middle; }
.door.picked { border-color:#e8720c; }
.door.letters { border-color:#7b1fa2; }
.badge-chip { display:inline-block; background:#fff3e0; border:2px solid #e8720c; color:#bf6000; border-radius:999px; padding:3px 14px; font-size:16px; font-weight:700; margin:4px 0; }

/* ── 항상 보이는 한 줄 지시문 (안내 바) ── */
.howto { display:flex; gap:10px; align-items:center; background:#f3e5f5; border:2px solid #7b1fa2; border-radius:14px; padding:11px 15px; font-size:18.5px; font-weight:700; color:#4a0072; margin-bottom:14px; line-height:1.45; }
.howto .ic { font-size:26px; flex:none; }
.howto .en-line { display:block; font-size:14.5px; color:#8e6ba8; font-weight:400; }

/* ── 작은 단계 표시 (문장 만들기 안의 1→2→3) ── */
.ministeps { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin:2px 0 14px; }
.ministeps .st { background:#eceff1; color:#78909c; border-radius:999px; padding:6px 14px; font-size:15.5px; font-weight:700; }
.ministeps .st.on { background:#e8720c; color:#fff; }
.ministeps .st.done { background:#a5d6a7; color:#1b5e20; }

/* ── 눌러지는 요소 강조 ── */
.choice, .tile { box-shadow:0 3px 0 rgba(38,50,56,.18); transition:transform .08s ease, box-shadow .08s ease; }
.choice:active, .tile:active { transform:translateY(2px); box-shadow:none; }
.pulse-soft { animation:pulseSoft 1.15s ease-in-out infinite; }
@keyframes pulseSoft { 0%,100% { box-shadow:0 3px 0 rgba(38,50,56,.18), 0 0 0 0 rgba(232,114,12,.45); } 50% { box-shadow:0 3px 0 rgba(38,50,56,.18), 0 0 0 8px rgba(232,114,12,0); } }
.tile.locked { opacity:.42; box-shadow:none; }

/* ── 타일 단계 목표 문장 힌트 ── */
.target-hint { text-align:center; font-size:21px; font-weight:800; color:#0e7c7b; background:#e0f2f1; border:2px dashed #0e7c7b; border-radius:14px; padding:9px 12px; margin:10px 0 2px; }
.target-hint .en-line { display:block; font-size:14.5px; color:#78909c; font-weight:400; }

/* ── 리액션 캐릭터: 문제 카드 안 배치 ── */
.react-char.inplace { position:static; width:auto; z-index:auto; }
.react-char.inplace.show { display:flex; align-items:flex-end; justify-content:center; gap:10px; margin-top:10px; }
.react-char.inplace .bubble { margin-bottom:16px; max-width:62%; }
.react-char.inplace img { width:84px; height:118px; }

/* ── 본사이트(deploy-v213) 통일: 헤더·이미지 바·푸터 ── */
body { background:#fff9ec; }
.wrap { max-width:1140px; padding:0 22px 56px; }
.brandband { display:flex; align-items:center; justify-content:center; padding:16px 0 4px; position:relative; flex-wrap:wrap; }
.brandlogo img { height:68px; width:auto; display:block; }
.topcorner { position:absolute; right:2px; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:8px; }
.greetlink { border:2px solid #e8ebee; background:#fff; border-radius:999px; padding:8px 15px; font-size:14.5px; font-weight:800; color:#2A2320; text-decoration:none; white-space:nowrap; }
.langsw { display:inline-flex; gap:6px; }
.langsw button { border:2px solid #e5d9c3; background:#fff; border-radius:999px; padding:7px 13px; font-size:14px; font-weight:800; color:#2A2320; cursor:pointer; font-family:inherit; white-space:nowrap; }
.langsw button.on { background:#f5821f; border-color:#f5821f; color:#fff; }
.pillnav { position:sticky; top:0; z-index:55; background:#fff; box-shadow:0 8px 16px rgba(35,45,70,.05); display:flex; flex-wrap:nowrap; overflow-x:auto; gap:8px; padding:12px 0 10px; }
.pillnav a { border:2px solid #edf0f2; border-radius:999px; font-size:15.5px; padding:11px 18px; font-weight:900; color:#2A2320; text-decoration:none; white-space:nowrap; background:#fff; }
.pillnav a:hover { border-color:#f5821f; }
.pillnav a.act { background:#f5821f; border-color:#f5821f; color:#fff; }
.herobar { margin-top:14px; border-radius:24px; overflow:hidden; max-width:1096px; position:relative; }
.herobar img { width:100%; height:225px; object-fit:cover; object-position:50% 22%; display:block; }
.herobar::after { content:''; position:absolute; left:0; right:0; bottom:0; height:70px; background:linear-gradient(to bottom, rgba(255,249,236,0), #fff9ec); pointer-events:none; }
.pttl { display:flex; align-items:center; gap:12px; margin:20px 0 6px; flex-wrap:wrap; }
.pttl .ttl { font-size:22px; font-weight:800; }
.pttl .home-link { margin-left:auto; background:#fff; border:2px solid #0e7c7b; color:#0e7c7b; border-radius:999px; padding:8px 16px; font-size:16px; text-decoration:none; }
footer { text-align:center; padding:20px 20px 42px; color:#a39a83; font-size:13.5px; line-height:1.8; }
footer .flinks { margin-top:18px; display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
footer .flinks a { display:inline-flex; align-items:center; padding:10px 22px; border-radius:999px; background:#fff; border:1px solid #EFE7DA; box-shadow:0 2px 6px rgba(120,90,40,.10); color:#2A2320; font-size:15px; font-weight:700; text-decoration:none; white-space:nowrap; }
footer .fmail { margin-top:16px; font-size:14px; }
footer .fmail a { color:#3d7bd6; font-weight:700; text-decoration:none; }
@media (max-width:820px) {
  .brandlogo img { height:46px; }
  .topcorner { position:static; transform:none; order:-1; width:100%; justify-content:center; }
  .pillnav a { font-size:15px; padding:10px 16px; }
  .herobar img { height:210px; }
}

/* ── 장면 중심 프로토타입 전용 ── */
.scene-stage { position:relative; border-radius:22px; overflow:hidden; box-shadow:0 6px 22px rgba(90,60,20,.18); margin-bottom:14px; background:#000; }
.scene-stage img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; transition:opacity .45s ease; }
.scene-stage.swap img { opacity:.25; }
.scene-stage .who-tag { position:absolute; left:14px; top:14px; background:rgba(255,255,255,.92); color:#263238; border-radius:999px; padding:7px 16px; font-size:17px; font-weight:800; box-shadow:0 2px 8px rgba(0,0,0,.2); }
.scene-stage .step-tag { position:absolute; right:14px; top:14px; background:rgba(14,124,123,.92); color:#fff; border-radius:999px; padding:7px 14px; font-size:15px; font-weight:800; }
.scene-line { background:#fff; border:3px solid #0e7c7b; border-radius:18px; padding:18px 20px; text-align:center; cursor:pointer; box-shadow:0 3px 0 rgba(14,124,123,.35); margin-bottom:12px; }
.scene-line .ko { font-size:29px; font-weight:800; line-height:1.4; word-break:keep-all; }
.scene-line .en { display:block; font-size:16.5px; color:#78909c; margin-top:5px; font-weight:400; }
.scene-line:active { transform:translateY(2px); box-shadow:none; }
.scene-nav { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:6px 0 4px; }
.dots { display:flex; gap:7px; justify-content:center; margin:14px 0 4px; flex-wrap:wrap; }
.dots .dot { width:15px; height:15px; border-radius:50%; background:#d8cdb8; border:none; cursor:pointer; padding:0; }
.dots .dot.done { background:#a5d6a7; }
.dots .dot.on { background:#e8720c; transform:scale(1.25); }
.bgm-note { text-align:center; color:#a39a83; font-size:13.5px; margin-top:10px; }
.split-frame { text-align:center; font-size:31px; font-weight:800; background:#e0f2f1; border:2.5px dashed #0e7c7b; border-radius:16px; padding:18px 12px; margin:12px 0 4px; word-break:keep-all; }
.split-frame .blank { color:#e8720c; border-bottom:4px solid #e8720c; padding:0 10px; }
.split-frame .en-line { display:block; font-size:15.5px; color:#78909c; font-weight:400; margin-top:6px; }
.wordcards { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; margin-top:14px; }
.wordcard { background:#fff; border:3px solid #cfd8dc; border-radius:18px; padding:10px; cursor:pointer; text-align:center; font-family:inherit; box-shadow:0 3px 0 rgba(38,50,56,.16); }
.wordcard img { width:100%; height:118px; object-fit:contain; background:#fdf8ef; border-radius:12px; }
.wordcard .lb { font-size:22px; font-weight:800; margin-top:5px; }
.wordcard .en { display:block; font-size:14px; color:#90a4ae; font-weight:400; }
.wordcard.picked { border-color:#43a047; background:#e8f5e9; }
.wordcard:active { transform:translateY(2px); box-shadow:none; }
@media (max-width:640px){ .wordcards{grid-template-columns:repeat(3,1fr); gap:9px;} .wordcard img{height:84px;} .scene-line .ko{font-size:24px;} }
