/* M.A.P. to Tomorrow — 밝은 보드게임 톤. 콜롬비아 국기(노랑·파랑·빨강) + 태극(빨강·파랑) */
:root {
  color-scheme: light;
  --ink: #14224b;
  --ink-soft: #4b5878;
  --paper: #ffffff;
  --ground: #eaf4fb;
  --sea: #bfe0f2;
  --sea-line: #9fcde9;
  --land: #fff3c4;
  --land-edge: #e3b93a;
  --co-yellow: #fcd116;
  --co-blue: #003893;
  --co-red: #ce1126;
  --tk-red: #cd2e3a;
  --tk-blue: #0047a0;
  --ok: #1f8a4c;
  --ok-bg: #e3f6ea;
  --no: #b3261e;
  --no-bg: #fde8e6;
  --locked: #b8c2d6;
  --war-red: #c8102e;
  --war-blue: #0047a0;
  --line: #d9e2ef;
  --radius: 18px;
  --display: 'Jua', 'Baloo 2', 'Noto Sans KR', system-ui, sans-serif;
  --body: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:lang(es), :lang(en) { --display: 'Baloo 2', 'Jua', system-ui, sans-serif; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  word-break: keep-all;          /* 한국어 단어 중간에서 줄이 바뀌지 않게 */
  overflow-wrap: break-word;     /* 한 단어가 칸보다 길 때(긴 주소 등)만 끊어요 */
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--co-blue); outline-offset: 3px; }

#app { height: 100%; display: flex; flex-direction: column; }

/* ---------- 상단 바 ---------- */
.topbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: var(--paper);
  border-bottom: 3px solid var(--co-yellow);
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-flags { display: grid; grid-template-rows: 2fr 1fr 1fr; width: 30px; height: 22px; border-radius: 4px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(20,34,75,.15); }
.brand-flags i { display: block; }
.f-y { background: var(--co-yellow); } .f-b { background: var(--co-blue); } .f-r { background: var(--co-red); }
.brand-title { font-family: 'Baloo 2', var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; letter-spacing: .01em; }
.brand-sub { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.chip {
  border: 2px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 6px 14px; font-size: 15px; min-height: 44px;
}
.lang-btn {
  border: 0; border-radius: 999px; min-height: 44px; padding: 6px 16px;
  background: var(--co-blue); color: #fff; font-weight: 700; font-size: 15px;
}

/* 🔊 소리 켜기/끄기 */
.sound-btn {
  border: 2px solid var(--line, #d6deec); border-radius: 999px; min-height: 44px; min-width: 44px; padding: 0 10px;
  background: var(--paper, #fff); font-size: 20px; line-height: 1; cursor: pointer; flex: none;
}
.sound-btn[aria-pressed="false"] { opacity: .65; }

/* ---------- 공통 버튼 ---------- */
.btn {
  border: 0; border-radius: 999px; min-height: 56px; padding: 10px 24px;
  font-family: var(--display); font-size: 21px; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(2px); }
.btn-go { background: var(--co-yellow); color: var(--ink); box-shadow: 0 4px 0 #c9a40b; }
.btn-go:active { box-shadow: 0 2px 0 #c9a40b; }
.btn-blue { background: var(--co-blue); color: #fff; box-shadow: 0 4px 0 #00225c; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 2px solid var(--line); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ground); font-size: 20px; flex: none; }

/* ---------- 시작 화면 ---------- */
.screen { flex: 1; min-height: 0; }
.start {
  overflow-y: auto;
  padding-inline: 16px;
  background:
    radial-gradient(circle at 85% 12%, rgba(252,209,22,.35), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(0,56,147,.14), transparent 40%),
    var(--ground);
}
.start-inner { max-width: 560px; margin: 0 auto; padding-block: 40px 56px; display: flex; flex-direction: column; gap: 14px; }
.narration {
  font-family: var(--display); font-size: 20px; color: var(--co-blue); margin: 0; min-height: 3.4em;
  white-space: pre-line;
}
.narration span { opacity: 0; animation: fadeUp .9s ease forwards; display: inline; }
.start-title { font-family: var(--display); font-size: clamp(34px, 7vw, 52px); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 400; }
.start-lead { margin: 0; color: var(--ink-soft); }
/* 메인 제목 M.A.P. to Tomorrow */
.start-title { font-family: 'Baloo 2', var(--display); font-weight: 800; letter-spacing: .01em; }
.st-map { color: var(--co-blue); }
.st-to { color: var(--co-red); }
.start-tagline { margin: -6px 0 0; font-family: var(--display); font-size: 20px; color: var(--ink); }
/* M.A.P.의 뜻: 글자 카드 세 장 + to Tomorrow */
.map-letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ml {
  background: var(--paper); border-radius: 16px; padding: 10px 10px 12px; box-shadow: 0 2px 10px rgba(20,34,75,.08);
  border-top: 6px solid var(--c); display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.ml b { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 34px; line-height: 1; color: var(--c); }
.ml strong { font-size: 15px; line-height: 1.3; }
.ml span { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.ml-to {
  grid-column: 1 / -1; background: linear-gradient(90deg, #fff6cf, #eef4ff); border-radius: 14px; padding: 8px 14px;
  font-size: 15px; font-weight: 700; text-align: center;
}
.about-fold summary { font-weight: 700; }
.about-body p { margin: 0 0 10px; line-height: 1.7; }
.about-body ul { margin: 0 0 6px; padding-left: 1.2em; }
.about-body li { margin-bottom: 4px; }
@media (max-width: 480px) {
  .map-letters { gap: 6px; }
  .ml { padding: 8px 8px 10px; border-top-width: 5px; }
  .ml b { font-size: 26px; }
  .ml strong { font-size: 12.5px; }
  .ml span { font-size: 12px; line-height: 1.4; }
  .ml-to { font-size: 13px; }
  .start-tagline { font-size: 17px; }
}
.start-form {
  margin-top: 8px; background: var(--paper); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(20,34,75,.08);
}
.start-form label, .start-form .label { font-weight: 700; font-size: 16px; }
.start-form input[type=text] {
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 20px; min-height: 56px; width: 100%;
}
.start-form input[type=text]:focus { border-color: var(--co-blue); outline: none; }
.start-form input.is-error, .code-input.is-error { border-color: var(--no); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.nick-guide { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.form-error { color: var(--no); margin: 0; min-height: 1.4em; font-size: 15px; }
.box-title { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 22px; }
.code-input { font-family: 'Baloo 2', var(--body); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 22px !important; }

/* 이 기기에 저장된 여정 */
.saved-box { background: var(--paper); border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 10px 30px rgba(20,34,75,.08); }
.saved-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.saved-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.saved-list li:first-child { border-top: 0; }
.saved-nick { font-family: var(--display); font-size: 21px; }
.saved-meta { color: var(--ink-soft); font-size: 14px; flex: 1; font-variant-numeric: tabular-nums; }

/* 접었다 펴는 상자 (코드로 이어 하기 · 선생님용) */
.fold { background: var(--paper); border-radius: var(--radius); padding: 4px 22px; }
.fold > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 700; font-size: 17px; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '▾'; margin-left: auto; color: var(--ink-soft); }
.fold[open] > summary::after { content: '▴'; }
.fold-quiet { background: transparent; padding-inline: 4px; }
.fold-quiet > summary { color: var(--ink-soft); font-weight: 400; font-size: 15px; }
.fold-body { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; }
.fold-body label { font-weight: 700; font-size: 15px; }
.fold-body input { border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 18px; min-height: 52px; width: 100%; }
.fold-body input:focus { border-color: var(--co-blue); outline: none; }
.fold-help { margin: 0; font-size: 15px; color: var(--ink-soft); }
.text-link { border: 0; background: none; color: var(--co-blue); font-weight: 700; padding: 8px 0; min-height: 44px; text-align: left; }

/* 상단 코드 칩 */
.chip-code { border-color: var(--co-yellow); background: #fffbea; font-weight: 700; }

/* 알림 */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 22px; font-size: 16px; max-width: calc(100% - 32px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: fadeUp .25s ease; text-align: center;
}
.btn-sm { min-height: 44px; font-size: 16px; padding: 6px 16px; box-shadow: none; }
.btn-danger { background: var(--no); color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 게임 화면 ---------- */
.game { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: 'map side'; overflow: hidden; /* 패널이 미끄러져 들어올 때 가로 스크롤이 번쩍이지 않게 */ }
.game.is-open { grid-template-columns: minmax(0, 1fr) min(460px, 42vw); }
.game.is-open .panel { display: none; }
.map-wrap { grid-area: map; position: relative; overflow: hidden; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--sea); }
#map, #world { width: 100%; height: 100%; max-height: 100%; display: block; }
.map-wrap.show-world #map { display: none; }
.world { animation: fadeIn .5s ease; position: absolute; inset: 8px; width: calc(100% - 16px) !important; height: calc(100% - 16px) !important; }
.panel, .station-panel { grid-area: side; }
.panel {
  min-height: 0; overflow-y: auto; background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 12px;
}

/* 지도 요소 */
.m-sea { fill: var(--sea); }
.m-land { fill: var(--land); stroke: var(--land-edge); stroke-width: 2.5; stroke-linejoin: round; }
.m-line38 { stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 3 7; fill: none; opacity: .55; }
.m-dmz { stroke: var(--tk-red); stroke-width: 3; stroke-dasharray: 10 6; fill: none; opacity: .5; }
.m-text { font-family: var(--body); font-size: 15px; fill: var(--ink-soft); font-weight: 700; }
.m-text.small { font-size: 13px; font-weight: 400; }
.m-sea-name { font-family: var(--display); font-size: 20px; fill: #6aa6cf; letter-spacing: .15em; }
.m-route { fill: none; stroke: var(--locked); stroke-width: 5; stroke-dasharray: 2 12; stroke-linecap: round; }
.m-route-pro { stroke: var(--tk-blue); opacity: .55; stroke-width: 4; stroke-dasharray: 8 8; }
.m-stop.ch-prologue.done circle.dot { fill: var(--tk-blue); }
.m-stop.open circle.dot { fill: var(--ink-soft); }
.m-route-done { fill: none; stroke: var(--co-red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.m-voyage { fill: none; stroke: var(--co-blue); stroke-width: 4; stroke-dasharray: 10 8; opacity: .7; }

.m-stop { cursor: pointer; }
.m-stop circle.dot { stroke: #fff; stroke-width: 4; transition: fill .3s; }
.m-stop.locked { cursor: default; }
.m-stop.locked circle.dot { fill: var(--locked); }
.m-stop.done circle.dot { fill: var(--co-blue); }
.m-stop.next circle.dot { fill: var(--co-red); }
.m-stop .num { font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 17px; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.m-stop .ring { fill: none; stroke: var(--co-yellow); stroke-width: 5; opacity: 0; }
.m-stop.next .ring { animation: pulse 1.6s ease-out infinite; }
.m-label { font-family: var(--display); font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.95); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.m-stop.locked + .m-label, .m-label.locked { fill: #8792ab; }
@keyframes pulse { 0% { opacity: .9; r: 20; } 100% { opacity: 0; r: 36; } }

#token { transition: transform 1.1s cubic-bezier(.5,0,.3,1); pointer-events: none; }

/* 지금 보는 작전 지점 강조 */
.m-focus { fill: none; stroke: var(--co-yellow); stroke-width: 6; animation: focusPulse 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes focusPulse { 50% { stroke-width: 10; opacity: .6; } }
.m-focus-label { font-size: 15px; }

/* 🔍 인천 돋보기 */
.lens { cursor: default; }
.lens.open { cursor: pointer; }
.lens-sea { fill: var(--sea); }
.lens-land { fill: #ece8dc; stroke: #cfc6a8; stroke-width: 4; }
.lens.done .lens-land { fill: var(--land); stroke: var(--land-edge); }
.lens-pin { fill: var(--locked); stroke: #fff; stroke-width: 8; }
.lens-star { fill: #d8d2c0; stroke: #fff; stroke-width: 4; }
.lens.done .lens-star { fill: var(--co-yellow); stroke: var(--co-blue); }
.lens-ring { fill: none; stroke: var(--ink-soft); stroke-width: 4; }
.lens.open .lens-ring { stroke: var(--co-red); stroke-width: 5; }
.lens.done .lens-ring { stroke: var(--co-blue); }
.lens.open:hover .lens-ring, .lens.open:focus-visible .lens-ring { stroke-width: 8; }
.lens-line { stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 4 5; }
.lens-label { font-weight: 700; }
#map.finding .lens { display: none; }

/* ① 전쟁 흐름 */
.war-phase { animation: fadeIn .6s ease; pointer-events: none; }
.war-zone { fill: rgba(200, 16, 46, .30); }
.war-line-casing { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.war-line { fill: none; stroke: var(--war-red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.war-line.fight { stroke-dasharray: 3 9; stroke-width: 6; }
.war-line.final { stroke: var(--ink); stroke-width: 5; }
.war-arrow { fill: none; stroke-width: 8; stroke-linecap: round; opacity: .9; }
.war-arrow.red { stroke: var(--war-red); }
.war-arrow.blue { stroke: var(--war-blue); }
.map-caption {
  position: absolute; left: 12px; bottom: 12px; right: 72px; max-width: 360px; z-index: 2;
  background: rgba(255,255,255,.95); border-radius: 16px; padding: 10px 14px; box-shadow: 0 6px 20px rgba(20,34,75,.15);
  display: flex; flex-direction: column; gap: 2px; animation: fadeUp .3s ease;
}
.map-caption b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--war-red); }
.map-caption > span:not(.legend) { font-size: 15px; line-height: 1.45; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.legend i { display: inline-block; }
.lg-zone { width: 14px; height: 14px; border-radius: 3px; background: rgba(200,16,46,.30); }
.lg-line { width: 18px; height: 4px; border-radius: 2px; background: var(--war-red); margin-left: 6px; }
.map-home {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--paper); box-shadow: 0 4px 14px rgba(20,34,75,.2); font-size: 22px;
}

/* ② 인천 확대 지도 — 친구들이 조사한 5대 작전 */
.i-place { font-family: var(--display); font-size: 24px; fill: #8a6d12; }
.i-city { font-family: var(--display); font-size: 34px; fill: var(--ink-soft); letter-spacing: .2em; }
.i-note { font-family: var(--body); font-weight: 700; font-size: 18px; fill: var(--ink-soft); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 4px; }
.i-route { fill: none; stroke: var(--locked); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; }
.i-seoul { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-dasharray: 8 6; }
.i-memorial { fill: var(--co-yellow); stroke: var(--co-blue); stroke-width: 2; }
.op-pin { cursor: pointer; }
.op-pin .op-dot { stroke: #fff; stroke-width: 4; }
.op-pin .op-ring { fill: none; stroke: var(--co-yellow); stroke-width: 6; opacity: 0; }
.op-pin.sel .op-ring { opacity: 1; animation: focusPulse 1.4s ease-in-out infinite; }
.op-pin .num { font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 18px; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.op-name { font-size: 22px; }
.op-pin:not(.sel) .op-name { opacity: .8; font-size: 19px; }
#opFx > * { animation: fadeIn .5s ease; pointer-events: none; }
.fx-spy { fill: rgba(0,56,147,.10); stroke: var(--co-blue); stroke-width: 3; stroke-dasharray: 6 6; }
.fx-look { fill: none; stroke: var(--co-blue); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.fx-beam { fill: rgba(252,209,22,.35); stroke: none; }
.fx-fleet { fill: none; stroke: var(--war-red); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 14 10; animation: fleet 1.2s linear infinite; }
@keyframes fleet { to { stroke-dashoffset: -24; } }
.fx-land { fill: rgba(200,16,46,.18); stroke: var(--war-red); stroke-width: 4; }
.fx-advance { fill: none; stroke: var(--war-blue); stroke-width: 8; stroke-linecap: round; }
.fx-blockade { fill: none; stroke: var(--co-blue); stroke-width: 6; stroke-dasharray: 3 9; stroke-linecap: round; }

/* 작전 목록 + 카드 */
.ops-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; min-height: 52px;
  padding: 6px 12px; border-radius: 14px; border: 2px solid transparent; background: var(--ground);
}
.ops-list button[aria-pressed=true] { background: #fff; border-color: var(--co-red); }
.ops-list .n { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; flex: none; font-family: 'Baloo 2', var(--body); font-weight: 800; }
.ops-list .t { flex: 1; font-weight: 700; font-size: 16px; line-height: 1.3; display: flex; flex-direction: column; }
.ops-list small { font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.ops-list .ck { color: var(--ok); font-weight: 700; }
.op-card { position: relative; margin-top: 10px; border-radius: 20px; padding: 18px 18px 16px; background: #fffbea; border: 3px solid var(--co-yellow); animation: fadeUp .3s ease; }
.op-card .op-num { position: absolute; right: 14px; top: -14px; width: 36px; height: 36px; border-radius: 50%; background: var(--op); color: #fff; display: grid; place-items: center; font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 18px; border: 3px solid #fff; }
.op-card h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.3; padding-right: 30px; }
.op-card .facts { margin-bottom: 10px; }
.op-card > p { margin: 0; font-size: 18px; line-height: 1.75; }
.op-card h4 { margin: 14px 0 6px; font-size: 16px; }
.op-heroes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.op-heroes li { background: var(--paper); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; }
.op-heroes b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--co-blue); }
.op-heroes span { font-size: 15px; line-height: 1.5; }
.op-by { margin: 12px 0 4px !important; font-size: 14px !important; font-weight: 700; }
.op-works { display: flex; flex-wrap: wrap; gap: 6px; }
.op-works a { font-size: 13px; font-weight: 700; color: var(--co-blue); background: var(--paper); border-radius: 999px; padding: 4px 10px; text-decoration: none; border: 1px solid var(--line); }

/* ③ 세계 지도 */
.w-sea { fill: var(--sea); }
.w-land { fill: var(--land); stroke: var(--land-edge); stroke-width: 1.2; stroke-linejoin: round; }
.w-korea { fill: var(--tk-blue); }
.w-colombia { fill: var(--co-yellow); stroke: var(--co-blue); stroke-width: 3; }
.w-ocean { font-family: var(--display); font-size: 18px; fill: #6aa6cf; letter-spacing: .2em; }
.w-route-bg { fill: none; stroke: var(--locked); stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.w-route { fill: none; stroke: var(--co-red); stroke-width: 3.5; stroke-linecap: round; }
.w-label { font-family: var(--display); font-size: 15px; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.95); stroke-width: 4px; }
.w-dist { font-family: var(--body); font-weight: 700; font-size: 12px; fill: var(--ink-soft); }
.w-ship-bg { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.w-ship-icon { font-size: 13px; }

/* 패널 */
.now-card {
  border-radius: var(--radius); padding: 18px; background: var(--co-blue); color: #fff;
  display: flex; flex-direction: column; gap: 8px;
  background-image: linear-gradient(135deg, rgba(255,255,255,.08) 0 25%, transparent 25% 50%, rgba(255,255,255,.08) 50% 75%, transparent 75%);
  background-size: 24px 24px;
}
.now-card .eyebrow { font-size: 14px; letter-spacing: .06em; opacity: .85; }
.now-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.2; text-wrap: balance; }
.now-card .meta { font-size: 15px; opacity: .9; }
.now-card .btn { margin-top: 6px; }
.progress-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.progress-text { font-variant-numeric: tabular-nums; }
.progress-bar { height: 10px; border-radius: 99px; background: var(--ground); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--co-yellow), var(--co-red)); border-radius: 99px; transition: width .6s ease; }
.gb-btn { min-height: 50px; font-size: 18px; }
.station-list { display: flex; flex-direction: column; gap: 6px; }
.station-list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ch-title { margin: 8px 0 0; font-size: 14px; letter-spacing: .06em; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.ch-title::before { content: ''; width: 22px; height: 0; border-top: 4px dotted var(--tk-blue); }
.ch-title.ch-journey::before { border-top: 4px solid var(--co-red); }
.ch-title.ch-incheon::before { border-top: 4px solid var(--tk-red); }
.ch-title.ch-return::before { border-top: 4px solid var(--co-blue); }
.station-list .qmark { color: var(--co-blue); font-weight: 700; }
.station-list button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 2px solid transparent; background: var(--ground);
}
.station-list button[disabled] { opacity: .5; cursor: default; }
.station-list .n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: 'Baloo 2', var(--body); font-weight: 800; color: #fff; background: var(--locked); font-size: 16px;
}
.station-list .done .n { background: var(--co-blue); }
.station-list .next { border-color: var(--co-red); background: #fff; }
.station-list .next .n { background: var(--co-red); }
.station-list .t { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; line-height: 1.3; }
.station-list .d { font-size: 13px; color: var(--ink-soft); font-weight: 400; display: block; }
.station-list .ck { color: var(--ok); font-weight: 700; }

/* ---------- 작전 지점 카드 ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 20; background: rgba(20,34,75,.55);
  display: flex; align-items: center; justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.sheet-inner {
  width: 100%; max-width: 760px; height: min(680px, 100%); /* 단계가 바뀌어도 버튼 위치 고정 */
  background: var(--paper); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: rise .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { transform: translateY(24px); opacity: .4; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.sheet-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--co-red); color: #fff; flex: none;
  display: grid; place-items: center; font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 20px;
}
.sheet-head h2 { margin: 0; flex: 1; min-width: 0; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.25; text-wrap: balance; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 22px 26px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet-foot .btn { min-width: 120px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--co-red); width: 24px; border-radius: 6px; }

/* 카드 종류 */
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--co-blue); text-transform: uppercase; margin-bottom: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.facts span { background: var(--ground); border-radius: 999px; padding: 4px 14px; font-size: 16px; font-weight: 700; }
.story-text { font-size: 21px; line-height: 1.75; margin: 0; max-width: 34em; }
.story-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 4px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding-left: 40px; }
.timeline li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--co-yellow); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--land-edge); }
.timeline li:nth-child(2)::before { background: var(--tk-blue); box-shadow: 0 0 0 2px var(--tk-blue); }
.timeline li:nth-child(4)::before { background: var(--co-red); box-shadow: 0 0 0 2px var(--co-red); }
.timeline li:last-child::before { background: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.timeline b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--co-blue); }
.timeline span { font-size: 18px; }

.hero-card {
  border-radius: 20px; padding: 22px; position: relative;
  background: #fffbea; border: 3px solid var(--co-yellow);
}
.hero-card .by { display: inline-block; background: var(--co-yellow); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.hero-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; }
.hero-card .role { color: var(--ink-soft); font-size: 16px; margin: 2px 0 12px; }
.hero-card p { margin: 0; font-size: 20px; line-height: 1.7; }
.hero-card .btn { margin-top: 16px; font-size: 17px; min-height: 48px; }

.quiz-q { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.35; margin: 0 0 18px; text-wrap: balance; }
.ox { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ox button {
  aspect-ratio: 1.3; max-width: 100%; border-radius: 22px; border: 3px solid var(--line); background: var(--paper);
  font-family: 'Baloo 2', var(--body); font-size: clamp(56px, 12vw, 88px); font-weight: 800; line-height: 1;
}
.ox button:first-child { color: var(--tk-blue); }
.ox button:last-child { color: var(--tk-red); }
.ox-l { display: block; font-size: 18px; margin-top: 6px; font-weight: 700; line-height: 1.1; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices button {
  min-height: 72px; border-radius: 18px; border: 3px solid var(--line); background: var(--paper);
  font-size: 19px; font-weight: 700; padding: 10px 14px; text-align: left; display: flex; align-items: center; gap: 10px; line-height: 1.3;
}
.choices .k { width: 32px; height: 32px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; flex: none; font-family: 'Baloo 2', var(--body); }
.quiz button.right { border-color: var(--ok); background: var(--ok-bg); }
.quiz button.wrong { border-color: var(--no); background: var(--no-bg); }
.quiz.answered button { pointer-events: none; }
.quiz.answered button:not(.right):not(.wrong) { opacity: .45; }
.feedback { margin-top: 16px; border-radius: 16px; padding: 14px 18px; font-size: 19px; animation: fadeUp .3s ease; }
.feedback.good { background: var(--ok-bg); }
.feedback.bad { background: #fff4d6; }
.feedback b { font-family: var(--display); font-weight: 400; font-size: 22px; display: block; }
.skip-hint { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

.done-card { text-align: center; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.done-card .stamp {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  border: 6px double var(--co-red); color: var(--co-red); font-family: var(--display); font-size: 22px; line-height: 1.1;
  transform: rotate(-8deg); animation: stamp .45s cubic-bezier(.2,1.6,.4,1);
}
@keyframes stamp { from { transform: rotate(-8deg) scale(1.8); opacity: 0; } }
.done-card h3 { margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: 28px; }
.done-card p { margin: 0; color: var(--ink-soft); }

.sheet-num.ch-prologue { background: var(--tk-blue); }
.sheet-num.ch-incheon { background: var(--tk-red); }
.sheet-num.ch-return { background: var(--co-blue); }
.dots i.q { background: var(--co-yellow); }
.dots i.q.on { background: var(--co-red); }

/* ---------- 질문 카드 ---------- */
.q-card {
  position: relative; border-radius: 20px; padding: 22px 22px 16px;
  background: var(--paper); border: 3px dashed var(--co-blue);
  background-image: repeating-linear-gradient(-45deg, rgba(0,56,147,.04) 0 10px, transparent 10px 20px);
}
.q-from { font-size: 15px; font-weight: 700; color: var(--co-blue); margin-bottom: 8px; }
.q-text { margin: 0; font-family: var(--display); font-size: 25px; line-height: 1.45; text-wrap: pretty; }
.q-en { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.q-en summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; }
.q-en p { margin: 4px 0 0; font-style: italic; }
.q-intro { margin: 16px 0 6px; color: var(--ink-soft); font-size: 16px; }
.guess-label { display: block; font-family: var(--display); font-size: 21px; margin: 10px 0 8px; }
.guess {
  width: 100%; border: 3px solid var(--co-yellow); border-radius: 16px; padding: 14px 16px; font-size: 19px; line-height: 1.6;
  resize: vertical; background: #fffdf3; min-height: 120px;
}
.guess:focus { outline: none; border-color: var(--co-blue); }
.guess-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.guess-msg { color: var(--ok); font-weight: 700; }
.others-title { margin: 22px 0 8px; font-size: 16px; color: var(--ink-soft); }
.others { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.others li { background: var(--ground); border-radius: 14px; padding: 10px 14px; }
.others li.mine { background: #fffbea; box-shadow: inset 0 0 0 2px var(--co-yellow); }
.others li.empty { color: var(--ink-soft); background: transparent; border: 2px dashed var(--line); }
.others b { font-size: 15px; color: var(--co-blue); }
.others b small { color: var(--ink-soft); font-weight: 400; }
.others p { margin: 2px 0 0; font-size: 17px; white-space: pre-wrap; }
.gb-q { margin-top: 22px; }
.gb-q h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.4; }

/* 작전 지점 카드: 지도 옆에 붙은 패널 */
.station-panel {
  min-height: 0; display: flex; flex-direction: column; background: var(--paper);
  border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(20,34,75,.08);
  animation: slideIn .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes slideIn { from { transform: translateX(24px); opacity: .3; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: .3; } }
.station-panel .sheet-body { padding: 20px 20px 24px; }
.station-panel .story-text { font-size: 20px; }

/* 타임라인 (누르면 지도가 바뀜) */
.tl-hint { margin: 0 0 10px; color: var(--co-blue); font-weight: 700; font-size: 16px; }
#tlPlay { margin-bottom: 14px; }
.timeline li { padding-left: 34px; }
.timeline li::before { left: 2px; top: 14px; }
.timeline::before { top: 18px; bottom: 18px; }
.timeline li button {
  width: 100%; text-align: left; border: 2px solid transparent; background: transparent; border-radius: 14px;
  padding: 8px 12px; display: flex; flex-direction: column; min-height: 56px;
}
.timeline li button:hover { background: var(--ground); }
.timeline li button[aria-pressed=true] { background: #fff1f2; border-color: var(--war-red); }
.timeline li button span { font-size: 17px; line-height: 1.5; }

/* 영상 */
.yt-thumb { cursor: pointer; }
.yt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: rgba(206,17,38,.92); color: #fff; font-size: 30px; padding-left: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.yt-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.v-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.v-meta b { font-size: 19px; line-height: 1.4; }
.v-meta > span { color: var(--ink-soft); font-size: 14px; }
.v-meta a, .v-yt-link { color: var(--co-blue); font-weight: 700; }
.v-yt-link { display: inline-block; margin-top: 6px; font-size: 14px; }
.v-group { align-self: flex-start; margin-top: 4px; background: var(--co-yellow); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; }
.v-long { color: var(--ink-soft); }
.v-list { display: flex; flex-direction: column; gap: 8px; }
.v-list button {
  display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--line); background: var(--paper);
  border-radius: 14px; padding: 6px; min-height: 64px;
}
.v-list button[aria-pressed=true] { border-color: var(--co-blue); background: #f1f5ff; }
.v-list img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.v-list span { font-size: 15px; font-weight: 700; line-height: 1.35; display: flex; flex-direction: column; }
.v-list small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }

/* ---------- 게임 요소 ---------- */
.chip-star { border-color: var(--co-yellow); background: var(--co-yellow); font-weight: 800; font-family: 'Baloo 2', var(--body); display: inline-flex; align-items: center; }
.chip-star.bump { animation: bump .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes bump { 40% { transform: scale(1.25); } }
.chip-card { font-weight: 700; font-family: 'Baloo 2', var(--body); }
.star-pop {
  position: fixed; z-index: 60; pointer-events: none; font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 26px;
  color: #b88600; text-shadow: 0 2px 0 #fff, 0 0 12px rgba(252,209,22,.8); animation: starUp 1.4s ease-out forwards;
}
@keyframes starUp { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 20% { transform: translateY(0) scale(1.2); opacity: 1; } 100% { transform: translateY(-60px) scale(1); opacity: 0; } }

/* 🧩 평화의 지도 조각: 빛바랜 안개 */
.fog { fill: url(#fogPat); opacity: .8; pointer-events: none; transition: opacity 1.5s ease; }
.fog.fog-clear { opacity: 0; }
.fog-hole { transition: r 1.3s cubic-bezier(.2,.8,.3,1); }
.game.is-open .fog { opacity: 0; }  /* 작전 지점을 열면 지도를 또렷하게 */

/* 별 설명 */
.star-pop small { display: block; font-family: var(--display); font-size: 16px; font-weight: 400; color: var(--ink); text-shadow: 0 1px 0 #fff, 0 0 8px #fff; text-align: center; }
.star-total { font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 22px; color: #9a7300; margin: 6px 0 10px; }
.star-table td { white-space: normal; vertical-align: top; }
.star-table td:nth-child(2) b { font-family: 'Baloo 2', var(--body); font-size: 18px; color: #9a7300; }

/* 카드 뒷면 (업적) */
button.hcard { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
button.hcard:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 20px rgba(20,34,75,.15); }
.hcard-years { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card-detail { border-radius: 20px; padding: 18px 20px; border: 4px solid var(--tk-blue); background: var(--paper); margin-bottom: 12px; }
.card-detail.flag-co { border-color: var(--co-yellow); background: linear-gradient(160deg, rgba(252,209,22,.18), transparent 50%), var(--paper); }
.card-detail.flag-us { border-color: var(--war-red); }
.cd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-detail h4 { margin: 14px 0 6px; font-size: 17px; }
.deeds { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.deeds li { font-size: 18px; line-height: 1.6; }
.deeds li::marker { color: var(--co-red); font-weight: 800; }
.album-sec h3 { margin: 18px 0 0; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 22px; }
.album-sec h3 small { font-family: var(--body); font-size: 14px; color: var(--ink-soft); }

/* 📖 어려운 낱말 풀이 */
.gl { text-decoration: underline dotted var(--co-blue); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: help; }
.gl::after { content: attr(data-n); font-size: .6em; font-weight: 800; color: var(--co-blue); vertical-align: super; margin-left: 1px; font-family: 'Baloo 2', var(--body); }
.gloss { margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: #f3f7ff; border-left: 4px solid var(--co-blue); font-size: 15px; line-height: 1.55; }
.gloss > b { display: block; font-size: 14px; color: var(--co-blue); margin-bottom: 4px; }
.gloss ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.gloss li b { margin-right: 4px; }
.gloss li::marker { color: var(--co-blue); font-weight: 800; }

/* 카드 사진 */
.hcard-photo { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ground); margin-bottom: 6px; }
.hcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.hcard-photo.ph { position: relative; display: block; padding: 10px 12px; font-family: var(--display); font-size: 26px; --flag-ground: #eef1f7; }
/* 사진이 없는 카드: 그 나라 국기(공식 규격, app.js 의 FLAGS)를 가리는 것 없이 그대로 */
.hcard-photo.big { aspect-ratio: 16 / 10; max-height: 260px; margin-bottom: 4px; }
.hcard-photo.big.ph { font-size: 34px; padding: 14px 18px; }
.photo-credit { margin: 0 0 8px; font-size: 11px; color: var(--ink-soft); }
/* 아직 못 모은 카드: 내용은 하나도 안 보이는 카드 뒷면 */
.hcard-back { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: repeating-linear-gradient(45deg, #dfe5ef 0 10px, #e8edf5 10px 20px); }
.hcard-back .hb-lock { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; font-size: 30px; box-shadow: 0 3px 10px rgba(20,34,75,.18); }
.hcard.locked .hb-title { font-family: var(--display); font-size: 17px; color: var(--ink-soft); padding: 0; }

/* 🗺️ 전체 지도 */
.atlas-btn {
  position: absolute; right: 12px; top: 12px; z-index: 4; border: 0; border-radius: 999px; min-height: 44px; padding: 8px 16px;
  background: var(--co-blue); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgba(20,34,75,.25);
}
.game.is-open .atlas-btn { display: none; }
.game.atlas .atlas-btn { background: var(--ink); }
.atlas-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.atlas-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; margin: 0; max-width: calc(100% - 24px);
  background: rgba(20,34,75,.88); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; text-align: center;
}
#atlasLines .atlas-line { stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 3 5; opacity: .6; }
#atlasLines .atlas-line.done { stroke: var(--co-red); stroke-dasharray: none; opacity: .8; }
.game.atlas .m-label, .game.atlas #token { opacity: .35; }
.game.atlas .map-wrap .guide { display: none; }
.ab {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left;
  max-width: 170px; padding: 6px 10px 7px; border-radius: 14px; border: 2px solid var(--line); background: rgba(255,255,255,.95);
  box-shadow: 0 6px 16px rgba(20,34,75,.18); font: inherit; color: var(--ink);
  animation: bob 3.2s ease-in-out infinite; animation-delay: var(--bob, 0s);
  transition: transform .2s ease, box-shadow .2s ease, max-width .2s ease;
}
@keyframes bob { 50% { margin-top: -5px; } }
.ab:hover, .ab:focus-visible { transform: translate(-50%, -50%) scale(1.12); z-index: 5; box-shadow: 0 12px 28px rgba(20,34,75,.3); max-width: 220px; }
.ab.done { border-color: var(--co-yellow); }
.ab.next { border-color: var(--co-red); }
.ab.locked { filter: grayscale(1); opacity: .72; background: rgba(240,240,240,.92); }
.ab-head { display: flex; align-items: center; gap: 6px; }
.ab-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--locked); color: #fff; font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 13px; }
.ab.done .ab-num { background: var(--co-blue); }
.ab.done.ch-prologue .ab-num { background: var(--tk-blue); }
.ab.next .ab-num { background: var(--co-red); }
.ab-name { font-family: var(--display); font-size: 15px; line-height: 1.2; }
.ab-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ab-date { font-size: 11px; color: var(--ink-soft); width: 100%; display: none; }
.ab-ops { font-size: 11px; font-weight: 700; color: var(--co-blue); display: none; }
.ab:hover .ab-date, .ab:focus-visible .ab-date { display: block; }  /* 마우스를 올리면 날짜·작전 수까지 */
.ab:hover .ab-ops, .ab:focus-visible .ab-ops { display: inline; }
.ab-cards { display: flex; gap: 3px; }
.ab-thumb {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-style: normal;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--locked); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
  filter: grayscale(1); opacity: .6;
}
.ab-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ab-thumb.own { filter: none; opacity: 1; }
.ab-thumb.own.flag-co { background: var(--co-blue); box-shadow: 0 0 0 2px var(--co-yellow); }
.ab-thumb.own.flag-kr { background: var(--tk-red); box-shadow: 0 0 0 2px var(--tk-blue); }
.ab-thumb.own.flag-us { background: var(--war-blue); box-shadow: 0 0 0 2px var(--war-red); }
/* 장소 자세히 */
.place h4 { margin: 16px 0 8px; font-size: 17px; }
.place-state { font-weight: 800; }
.place-state.done { background: var(--ok-bg) !important; color: var(--ok); }
.place-state.next { background: #ffe7ea !important; color: var(--co-red); }
.place-ops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.place-ops li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--ground); border-radius: 12px; padding: 6px 10px; }
.place-ops .n { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.place-ops small { color: var(--ink-soft); }
#placeGo { margin-top: 14px; width: 100%; }
.ab-name { white-space: nowrap; }
.ab { max-width: none; }
@media (max-width: 640px) {
  /* 휴대폰: 지도 위에는 번호 배지만, 이름은 지도 아래 목록에서 */
  .ab { padding: 3px; border-radius: 999px; }
  .ab-name, .ab-more, .ab:hover .ab-more { display: none; }
  .ab:hover, .ab:focus-visible { transform: translate(-50%, -50%) scale(1.15); }
  .game.atlas .station-list { display: flex; }
  .atlas-btn { right: 8px; top: 8px; min-height: 38px; padding: 6px 12px; font-size: 13px; }
  .guide { max-width: calc(100% - 130px); }
  .atlas-hint { font-size: 12px; bottom: 8px; }
}

/* 작은 국기 (그림은 app.js 의 FLAGS 가 공식 규격대로 넣어요) */
.mini-flag { display: inline-block; width: 24px; height: 16px; border-radius: 2px; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }

/* 영웅 카드 */
.hcard {
  position: relative; border-radius: 16px; padding: 14px 14px 12px; background: var(--paper); min-height: 150px;
  display: flex; flex-direction: column; gap: 4px; border: 4px solid var(--tk-blue);
  background-image: linear-gradient(160deg, rgba(0,71,160,.08), transparent 55%);
}
.hcard.flag-co { border-color: var(--co-yellow); background-image: linear-gradient(160deg, rgba(252,209,22,.22), transparent 55%); }
.hcard.flag-us { border-color: var(--war-red); background-image: linear-gradient(160deg, rgba(200,16,46,.08), transparent 55%); }
.hcard-flag { position: absolute; right: 10px; top: 8px; font-size: 22px; }
.hcard b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.25; padding-right: 30px; }
.hcard-role { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.hcard p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.hcard.locked { border: 3px dashed var(--line); background: var(--ground); align-items: center; justify-content: center; text-align: center; }
.hcard-q { font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 44px; color: var(--locked); line-height: 1; }
.hcard.locked small { color: var(--ink-soft); font-size: 12px; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.card-pop {
  position: fixed; z-index: 55; left: 50%; top: 50%; width: min(300px, calc(100% - 40px)); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; gap: 8px; align-items: stretch; filter: drop-shadow(0 16px 40px rgba(0,0,0,.35));
  animation: cardIn .45s cubic-bezier(.2,1.5,.4,1);
}
.card-pop.out { animation: cardOut .4s ease forwards; }
@keyframes cardIn { from { transform: translate(-50%, -50%) scale(.3) rotate(-12deg); opacity: 0; } }
@keyframes cardOut { to { transform: translate(-50%, -80%) scale(.8); opacity: 0; } }
.card-pop-k { align-self: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 16px; font-weight: 700; }
.card-pop.gold .card-pop-k { background: linear-gradient(90deg, #b8860b, #f5c542, #b8860b); color: #3a2a00; }

/* ✨ 금빛 카드 */
.hcard.gold {
  border-color: #e0b12a;
  background-image: linear-gradient(135deg, rgba(255,215,90,.45), rgba(255,255,255,0) 45%, rgba(255,215,90,.35) 70%, rgba(255,255,255,0));
  box-shadow: 0 0 0 2px #fff3c4 inset, 0 6px 18px rgba(200,150,20,.35);
  overflow: hidden;
}
.hcard.gold::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.65) 45%, transparent 60%);
  background-size: 250% 100%; animation: goldShine 3.2s ease-in-out infinite;
}
@keyframes goldShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.hcard-gold {
  position: absolute; left: 8px; top: 8px; z-index: 1; font-size: 11px; font-weight: 800; /* 오른쪽 위는 국기 자리 */
  background: #f5c542; color: #3a2a00; border-radius: 999px; padding: 2px 8px;
}
.gold-count, .cert-gold { font-weight: 800; color: #8a6400; }
.cert-gold { background: #fff6cf; border-radius: 999px; padding: 4px 14px; }
.gold-note {
  margin-top: 12px; border-radius: 14px; padding: 10px 12px; background: #fff8dc; border: 2px dashed #e0b12a;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 14px;
}
.gold-note.got { border-style: solid; font-weight: 800; color: #8a6400; }
@media (prefers-reduced-motion: reduce) { .hcard.gold::after { animation: none; } }

/* 🌐 언어 고르기 */
.lang-wrap { position: relative; flex: none; }
.lang-btn { white-space: nowrap; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 160px;
  background: var(--paper); border-radius: 14px; box-shadow: 0 10px 30px rgba(20,34,75,.25); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left;
  min-height: 44px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.lang-menu button b { display: inline-block; width: 30px; color: var(--co-blue); }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--ground); }
.lang-menu button[aria-checked="true"] { background: #e7efff; font-weight: 700; }

/* 길잡이 비둘기 파스 */
.guide { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; align-items: flex-start; gap: 6px; max-width: min(360px, calc(100% - 170px)); pointer-events: none; } /* 오른쪽 위 [전체 지도] 버튼과 겹치지 않게 */
.guide-bird {
  pointer-events: auto; cursor: pointer; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; font-size: 30px; box-shadow: 0 4px 14px rgba(20,34,75,.2); border: 3px solid var(--co-yellow);
}
.guide.talk .guide-bird { animation: hop .5s ease; }
@keyframes hop { 40% { transform: translateY(-8px) rotate(-8deg); } }
.guide-bubble {
  margin: 4px 0 0; background: var(--paper); border-radius: 4px 16px 16px 16px; padding: 8px 12px; font-size: 15px; line-height: 1.45;
  box-shadow: 0 4px 14px rgba(20,34,75,.15); animation: fadeUp .3s ease;
}
.guide-bubble:empty, .guide.quiet .guide-bubble { display: none; }
.map-wrap.show-world .guide { top: auto; bottom: 10px; }

/* 🎯 지도에서 찾아라 */
.game-k { color: var(--co-red) !important; }
.find-tap { margin: 0; font-family: var(--display); font-size: 22px; color: var(--co-blue); animation: fadeUp .4s ease; }
#map.finding { cursor: crosshair; }
#map.finding .m-stop, #map.finding .m-route, #map.finding .m-route-done, #map.finding #token,
#map.finding .m-label, #map.finding #focusLayer, #map.finding .m-voyage { display: none; }
#map.hide-line38 .m-line38, #map.hide-line38 .l38, #map.hide-dmz .m-dmz, #map.hide-dmz .ldmz { display: none; }
.find-tap.ok { fill: var(--ok); stroke: #fff; stroke-width: 4; }
.find-tap.no path { stroke: var(--no); stroke-width: 6; stroke-linecap: round; fill: none; }
.find-answer { fill: rgba(31,138,76,.18); stroke: var(--ok); stroke-width: 5; stroke-dasharray: 8 6; animation: fadeIn .5s ease; }
.find-answer-line { stroke: var(--ok); stroke-width: 8; stroke-linecap: round; opacity: .8; animation: fadeIn .5s ease; }
.dots i.g { background: #f7b7bf; }
.dots i.g.on { background: var(--co-red); }

/* 🔦 등대 미니게임 */
#incheon.missioning .op-pin, #incheon.missioning #opFx, #incheon.missioning .i-route { display: none; }
.m-night { fill: #0a1433; opacity: .72; transition: opacity 1.2s ease; pointer-events: none; }
.m-night.dim { opacity: .45; }
.m-night.dawn { opacity: 0; }
.m-lh { cursor: pointer; }
.m-lh:focus:not(:focus-visible), .m-buoy:focus:not(:focus-visible) { outline: none; }
.m-lh-glow { fill: rgba(255,255,255,.15); stroke: #fff; stroke-width: 3; stroke-dasharray: 5 5; animation: focusPulse 1.4s ease-in-out infinite; }
.m-lh.lit .m-lh-glow { fill: rgba(252,209,22,.55); stroke: var(--co-yellow); stroke-dasharray: none; r: 60; transition: r .6s ease; }
.m-lh-icon { font-size: 30px; }
.m-buoys { opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.m-buoys.show { opacity: 1; pointer-events: auto; }
.m-buoy { cursor: pointer; }
.m-lh.lit { pointer-events: none; } /* 불이 켜진 뒤 등대 빛이 부표 누르기를 가로막지 않게 */
.m-buoy-ring { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.55); stroke-width: 2; }
.m-buoy.hint .m-buoy-ring { stroke: var(--co-yellow); stroke-width: 4; animation: focusPulse 1s ease-in-out infinite; }
.m-buoy.done .m-buoy-ring { stroke: var(--ok); }
.m-buoy-dot { fill: #ff8a00; stroke: #fff; stroke-width: 3; }
.m-buoy.done .m-buoy-dot { fill: var(--ok); }
.m-buoy.bad .m-buoy-dot { animation: buoyBad .6s ease; }
@keyframes buoyBad { 0%, 100% { fill: #ff8a00; } 30%, 70% { fill: var(--no); r: 13; } }
.m-ship { transition: transform .7s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.m-ship-icon { font-size: 18px; }
.mission-story { font-size: 18px; margin: 0 0 8px; }
.mission-steps { margin: 0 0 10px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mission-steps li { background: var(--ground); border-radius: 12px; padding: 8px 12px; font-size: 16px; }
.mission-steps li.ok { background: var(--ok-bg); text-decoration: line-through; text-decoration-color: rgba(31,138,76,.5); }
.mission-status { min-height: 1.6em; font-weight: 700; font-size: 17px; }

.cert-rank { font-weight: 800; color: #9a7300; background: #fff6cf; border-radius: 999px; padding: 4px 14px; }

/* 1차시 끝 */
.break-box {
  margin-top: 14px; width: 100%; border-radius: 20px; padding: 16px 18px 18px;
  background: #fffbea; border: 3px solid var(--co-yellow); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.break-box h3 { font-size: 24px; color: var(--co-red); }
.break-box p { color: var(--ink); }
.break-box .code-value { margin: 6px 0 0 !important; background: var(--paper); }

/* 패들렛 */
.padlet-box { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.padlet-box h3, .device-title { margin: 8px 0 0; font-family: var(--display); font-weight: 400; font-size: 22px; }
.device-title { margin-top: 26px; }
.padlet-frame { width: 100%; height: min(560px, 70vh); border: 0; border-radius: 16px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--line); }
.saved-list { max-height: 320px; overflow-y: auto; }

/* 나의 여정 코드 */
.code-show { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; }
.code-show p { margin: 0; max-width: 30em; }
.code-nick { font-family: var(--display); font-size: 22px; }
.code-value {
  font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: clamp(44px, 12vw, 64px); letter-spacing: .12em;
  color: var(--co-blue); background: #fffbea; border: 4px dashed var(--co-yellow); border-radius: 20px; padding: 6px 26px; margin: 8px 0 12px !important;
  user-select: all;
}

/* ---------- 엔딩 ---------- */
.ending { display: flex; flex-direction: column; background:
  radial-gradient(circle at 90% 0%, rgba(252,209,22,.28), transparent 35%),
  radial-gradient(circle at 0% 100%, rgba(205,46,58,.10), transparent 40%), var(--ground); }
.ending-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-inline: 16px; }
.ending-inner { max-width: 1040px; margin: 0 auto; padding-block: 28px 32px; }
.ending-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line);
}
.ending-foot .btn { min-width: 140px; }
.end-flags { display: grid; grid-template-rows: 2fr 1fr 1fr; width: 64px; height: 44px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(20,34,75,.15); }
.end-hero { max-width: 640px; margin: 4vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.end-hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 50px); line-height: 1.15; text-wrap: balance; }
.end-lead { margin: 0; font-size: 20px; line-height: 1.7; max-width: 36em; }
.end-q-head { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.end-q-head .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--co-red); }
.end-q-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.4; text-wrap: pretty; max-width: 40em; }
.compare { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.cmp { border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.cmp h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; }
.cmp-mine { background: #fffbea; border: 3px solid var(--co-yellow); }
.cmp-real { background: var(--paper); border: 3px solid var(--co-blue); }
.mine-text { margin: 0; font-size: 21px; line-height: 1.7; white-space: pre-wrap; font-family: var(--display); }
.mine-by { margin: 0; color: var(--ink-soft); font-size: 15px; }
.vet-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.vet-tabs button { min-height: 44px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); padding: 4px 16px; font-weight: 700; }
.vet-tabs button[aria-selected=true] { background: var(--co-blue); border-color: var(--co-blue); color: #fff; }
.vet-line b { font-size: 18px; } .vet-line span { color: var(--ink-soft); font-size: 15px; }
.video-box { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: #0d1633; }
.video-box iframe, .video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: #dfe6f7; padding: 16px;
  background: repeating-linear-gradient(-45deg, #13224b 0 14px, #172a5c 14px 28px); }
.video-soon span { font-size: 36px; } .video-soon b { font-size: 18px; } .video-soon small { font-size: 14px; opacity: .8; max-width: 26em; }
.summary { background: var(--ground); border-radius: 14px; padding: 12px 16px; }
.summary-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--co-blue); }
.summary p { margin: 4px 0; font-size: 18px; line-height: 1.7; }
.summary small { color: var(--ink-soft); font-size: 13px; }
.reacts { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reacts span { font-weight: 700; margin-right: 4px; }
.reacts button { min-height: 48px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); padding: 6px 16px; font-size: 17px; }
.reacts button[aria-pressed=true] { background: var(--co-yellow); border-color: var(--co-yellow); font-weight: 700; }
.end-h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 32px; }
.end-h3 { margin: 28px 0 10px; font-family: var(--display); font-weight: 400; font-size: 24px; }
.link-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); color: var(--ink); text-decoration: none; min-height: 110px; }
.link-card:hover { border-color: var(--co-blue); }
.link-card b { font-size: 19px; color: var(--co-blue); } .link-card span { color: var(--ink-soft); font-size: 16px; }
.works { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.works a { display: block; padding: 12px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; }
.cert {
  max-width: 620px; margin: 2vh auto 0; text-align: center; background: var(--paper); border-radius: 28px; padding: 30px 26px;
  border: 10px solid transparent;
  background-image: linear-gradient(var(--paper), var(--paper)), linear-gradient(90deg, var(--co-yellow) 0 50%, var(--co-blue) 50% 75%, var(--co-red) 75%);
  background-origin: border-box; background-clip: padding-box, border-box;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cert-kicker { margin: 6px 0 0; font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); }
.cert h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; }
.cert-name { margin: 4px 0; font-family: var(--display); font-size: 40px; color: var(--co-blue); }
.cert p { margin: 0; max-width: 30em; }
.cert blockquote { margin: 12px 0 0; font-family: var(--display); font-size: 22px; color: var(--co-red); }
.cert cite { display: block; font-family: var(--body); font-style: normal; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.cert-date { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* 🔑 열쇠 낱말 · 임무 안내 · 내일의 문 */
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 4px; }
.key-row.bump { animation: bump .6s cubic-bezier(.2,1.8,.4,1); }
.key-label { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.key-label small { color: var(--ink-soft); font-weight: 700; }
.key-slots { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.kt {
  display: inline-block; min-width: 34px; padding: 2px 9px; border-radius: 8px; text-align: center; font-size: 14px; font-weight: 800;
  background: #fff6cf; color: #6b4d00; box-shadow: inset 0 0 0 1.5px #e0b12a;
}
.kt.empty { background: var(--ground); color: var(--locked); box-shadow: inset 0 0 0 1.5px var(--line); }
.brief p { margin: 0 0 10px; line-height: 1.7; }
.brief p b { color: var(--co-red); margin-right: 4px; }
.brief-keys { margin: 4px 0 10px; }
.brief-h { margin: 14px 0 8px; font-size: 16px; }
/* 여정 지도 M → A → P → to Tomorrow */
.route { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.route li { display: flex; gap: 10px; align-items: flex-start; background: var(--ground); border-radius: 12px; padding: 8px 10px; border-left: 5px solid var(--c, var(--line)); }
.route li > b { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--c, var(--ink)); min-width: 26px; text-align: center; }
.route li span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; }
.route li small { color: var(--ink-soft); font-weight: 700; }
.route li em { font-style: normal; }
.route-M { --c: var(--co-blue); } .route-A { --c: var(--co-red); } .route-P { --c: #1f8a4c; } .route-T { --c: #b8860b; }
.key-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.key-list li { background: #fffaf0; border-radius: 12px; padding: 8px 10px; box-shadow: inset 0 0 0 1px #f1dfa8; }
.key-list small { color: var(--ink-soft); font-weight: 700; }
.key-list p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
/* 새 열쇠 낱말 카드 */
.key-card { background: var(--paper); border-radius: 18px; padding: 16px; border: 4px solid #e0b12a; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.kt.big { font-size: 26px; padding: 6px 18px; }
.key-card small { color: var(--ink-soft); font-weight: 700; }
.key-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.key-pop .card-pop-k { background: linear-gradient(90deg, #b8860b, #f5c542, #b8860b); color: #3a2a00; }
/* 장 이름 앞 M·A·P 글자 */
.ch-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-right: 6px; color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 14px; vertical-align: 1px; }
.l-M { background: var(--co-blue); } .l-A { background: var(--co-red); } .l-P { background: #1f8a4c; }
.door { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.door-story { margin: 0; line-height: 1.7; }
.door-hint { margin: 0; font-size: 15px; background: #eef4ff; border-radius: 12px; padding: 8px 12px; color: var(--co-blue); }
.door-slots {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 16px 12px; border-radius: 18px 18px 8px 8px;
  background: linear-gradient(#6b4a2b, #4a321c); box-shadow: inset 0 0 0 4px #b8860b; width: 100%;
}
.ds {
  min-width: 64px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px;
  border-radius: 10px; border: 2px dashed rgba(255,255,255,.35); color: rgba(255,255,255,.45); font-weight: 800; font-size: 16px; background: transparent; font-family: inherit;
}
.ds.filled { border: 0; background: #fff6cf; color: #3a2a00; cursor: pointer; box-shadow: 0 2px 0 #b8860b; }
.door-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.door-tile {
  min-height: 48px; min-width: 64px; padding: 6px 14px; border-radius: 12px; border: 2px solid #e0b12a; background: #fff; color: var(--ink);
  font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; box-shadow: 0 3px 0 #e0b12a;
}
.door-tile:disabled { opacity: .3; box-shadow: none; cursor: default; }
.door-msg { margin: 0; min-height: 1.4em; color: var(--no); font-weight: 700; }
.door.shake { animation: doorShake .45s ease; }
@keyframes doorShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.door.open { animation: fadeUp .6s ease; }
.door-light { font-size: 64px; line-height: 1; animation: bump 1s cubic-bezier(.2,1.8,.4,1); }
.door-quote { margin: 0; font-family: var(--display); font-size: 26px; color: var(--co-red); }
.door-open { margin: 0; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .door.shake, .door.open, .door-light, .key-row.bump { animation: none; } }

/* 🔗 링크 모드: 유튜브를 새 탭으로 여는 카드 */
.video-box.yt-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; color: #fff; padding: 16px; text-align: center;
  background: radial-gradient(circle at 30% 20%, #1f3f86, #14224b 70%);
}
.yt-link-play { width: 64px; height: 44px; border-radius: 12px; background: #ff0033; display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.yt-link-t { font-weight: 800; font-size: 18px; }
.video-box.yt-link small { opacity: .8; }
.video-box.yt-link:hover .yt-link-play, .video-box.yt-link:focus-visible .yt-link-play { transform: scale(1.08); }
.v-ico { display: grid; place-items: center; min-width: 44px; height: 32px; border-radius: 8px; background: #14224b; color: #fff; font-style: normal; font-size: 13px; }
#watchDoneBtn:disabled { opacity: .5; cursor: not-allowed; }
.cert-full { display: block; width: 100%; max-width: 540px; margin: 8px auto 0; border-radius: 12px; box-shadow: 0 8px 24px rgba(20,34,75,.2); }

/* 🎬 꼭 볼 영상 */
.watch-gate {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; padding: 10px 12px;
  border-radius: 14px; background: #fff6cf; border: 2px dashed #e0b12a; font-size: 15px; font-weight: 700; color: #6b4d00;
}
.watch-gate.ok { background: var(--ok-bg); border: 2px solid var(--ok); color: var(--ok); }
.watch-bar { flex: 1 1 140px; height: 10px; border-radius: 99px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px #e0b12a; }
.watch-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f5c542, #e08a0b); transition: width .9s linear; }
.watch-gate b { font-variant-numeric: tabular-nums; }
.v-must { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; background: var(--co-red); color: #fff; border-radius: 99px; padding: 1px 8px; margin-right: 6px; vertical-align: 2px; }
.v-len { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#nextBtn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }

/* 🗺️ 평화의 지도 인증서 (그림으로 저장) */
.cert-map { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cert-map .end-lead { max-width: 34em; margin: 0; }
.cert-stage { width: min(100%, 540px); display: flex; flex-direction: column; gap: 6px; }
#certCanvas {
  width: 100%; height: auto; aspect-ratio: 1080 / 1350; border-radius: 14px; background: #fffdf5;
  box-shadow: 0 12px 34px rgba(20,34,75,.22); cursor: pointer; touch-action: manipulation;
}
.cert-tap { margin: 0; min-height: 1.6em; font-size: 15px; font-weight: 700; color: var(--co-blue); }
.cert-form {
  width: min(100%, 540px); display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; text-align: left;
  background: var(--paper); border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(20,34,75,.08);
}
.cert-form label { font-weight: 700; font-size: 15px; white-space: nowrap; }
.cert-form input, .cert-form select {
  min-height: 44px; width: 100%; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; background: #fff; font: inherit; font-size: 16px;
}
.cert-form input:focus, .cert-form select:focus { border-color: var(--co-blue); outline: none; }
.cert-step { color: var(--co-red); }
.survey { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.survey .end-lead { max-width: 34em; margin: 0; }
.survey-frame { width: min(100%, 680px); height: min(75vh, 900px); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(20,34,75,.15); }
.survey-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.survey-thanks { margin: 4px 0 0; font-family: var(--display); font-size: 18px; color: var(--co-blue); }
.feedback-btn { display: flex; width: min(100%, 540px); margin: 14px auto 0; justify-content: center; text-decoration: none; }
.cert-school, .cert-nation { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cert-school input, .cert-nation select, .cert-nation input { flex: 1 1 160px; }
.chip-fill {
  border: 1.5px dashed var(--co-blue); background: #eef4ff; color: var(--co-blue); border-radius: 999px;
  padding: 4px 12px; min-height: 36px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.cert-form .need { border-color: #f0b3ad; background: #fffafa; }
.cert-form input::placeholder { color: #a3adc2; }
.cert-privacy { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.cert-titleline {
  width: min(100%, 540px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: center;
  background: var(--paper); border-radius: 14px; padding: 10px 14px; font-size: 15px;
}
.cert-titleline b { color: var(--co-blue); overflow-wrap: anywhere; }
.cert-form input#certPledge { border-color: var(--co-red); border-style: dashed; }
.cert-lock { margin: 0; font-weight: 700; color: var(--co-red); background: var(--no-bg); border-radius: 12px; padding: 8px 14px; }
.cert-actions .btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.cert-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: min(100%, 540px); }
.cert-actions .btn { flex: 1 1 220px; }
@media (max-width: 480px) {
  .cert-form { grid-template-columns: 1fr; }
}
.end-buttons { justify-content: center; margin-top: 18px; }

/* ---------- 선생님 화면 ---------- */
.teacher { overflow-y: auto; padding-inline: 16px; }
.teacher-inner { max-width: 900px; margin: 0 auto; padding-block: 20px 56px; display: flex; flex-direction: column; gap: 16px; }
.t-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; }
.t-help { margin: 0; color: var(--ink-soft); font-size: 15px; }
.t-card { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.t-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; }
.t-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.t-buttons .btn { font-size: 17px; min-height: 48px; }
.roster-form { display: flex; flex-wrap: wrap; gap: 8px; }
.roster-form input { flex: 1 1 160px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 18px; min-height: 52px; min-width: 0; }
.roster-form .btn { font-size: 18px; min-height: 52px; }
.table-wrap { overflow-x: auto; }
.roster { width: 100%; border-collapse: collapse; font-size: 15px; }
.roster th { text-align: left; color: var(--ink-soft); font-weight: 700; padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.roster td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roster .num { font-variant-numeric: tabular-nums; }
.roster .marks, .roster .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.preview-list { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-box { background: var(--no-bg); border-radius: 14px; padding: 14px 16px; }
.confirm-box p { margin: 0 0 10px; font-weight: 700; }

/* ---------- 좁은 화면 (태블릿 세로·휴대폰) ---------- */
@media (max-width: 860px) {
  .game, .game.is-open { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: 'map' 'side'; }
  .game.is-open { grid-template-rows: minmax(180px, 38%) minmax(0, 1fr); }
  .game.is-open.map-focus { grid-template-rows: minmax(240px, 55%) minmax(0, 1fr); }
  .station-panel { border-left: 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,34,75,.08); animation-name: slideUp; }
  .map-caption { left: 8px; bottom: 8px; right: 64px; max-width: 300px; padding: 8px 12px; }
  .map-caption b { font-size: 16px; }
  .map-caption > span:not(.legend) { font-size: 13px; }
  .map-wrap { padding: 4px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); max-height: 44vh; padding: 14px 16px 18px; }
  .station-list { display: none; }
  .now-card h3 { font-size: 23px; }
  .brand-sub { display: none; }
  .compare { grid-template-columns: 1fr; }
  .ending-foot .btn { min-width: 0; }
}
@media (max-width: 640px) {
  .brand-title { display: none; }
  .topbar { padding-inline: 10px; gap: 6px; }
  .topbar-right { gap: 4px; }
  .chip, .lang-btn { padding: 4px 9px; font-size: 13px; min-height: 40px; }
  .sound-btn { min-width: 34px; min-height: 40px; padding: 0 4px; font-size: 16px; border-width: 1px; }
  .lb-long { display: none; }
  .lb-globe { display: none; } /* 휴대폰: 윗줄이 넘치지 않게 KO/ES/EN 글자만 */
  .topbar-right { flex: 0 1 auto; min-width: 0; justify-content: flex-end; }
  .topbar-right .chip { flex: none; white-space: nowrap; }
  #playerChip { flex: 0 1 auto; min-width: 44px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .guide-bird { width: 42px; height: 42px; font-size: 24px; }
  .guide-bubble { font-size: 13px; padding: 6px 10px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .choices { grid-template-columns: 1fr; }
  .sheet { padding: 0; }
  .sheet-inner { border-radius: 0; height: 100%; }
  .sheet-body { padding: 18px 16px 22px; }
  .story-text { font-size: 19px; }
  .sheet-foot .btn { min-width: 0; padding-inline: 16px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* 📌 인증서를 패들렛에 올리는 세 걸음 */
.cert-upload { text-align: left; margin: 14px 0; padding: 16px 18px; border: 3px solid var(--co-yellow, #fcd116); border-radius: 18px; background: #fffbea; color: #14224b; }
.cert-upload h3 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; }
.cert-up-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cert-up-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.cert-up-steps li p { margin: 4px 0 6px; font-size: 16px; line-height: 1.5; font-weight: 700; }
.cert-up-steps .btn { min-height: 48px; font-size: 18px; }
.cu-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #003893; color: #fff; font-family: var(--display); font-size: 20px; }
.cert-up-steps li.ok .cu-n { background: #1e7a4c; font-size: 0; }
.cert-up-steps li.ok .cu-n::after { content: '✓'; font-size: 20px; }
.cert-upload .t-help { margin: 10px 0 4px; }
.cert-upload .cert-actions { margin-top: 6px; }
.cert-upload.flash { animation: certFlash 1.2s ease 2; }
@keyframes certFlash { 50% { box-shadow: 0 0 0 8px rgba(252,209,22,.55); } }
.cert-ask p { margin: 0 0 8px; }
.cert-ask-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; font-weight: 700; }
.cert-fallback { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #7a5600; font-weight: 700; }
/* 소감 → 인증서 → 🏁 여정 완료 */
.survey-next-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #e8f0ff; color: #003893; font-weight: 700; text-align: center; }
.journey-done .done-badge { display: inline-block; margin: 6px 0; padding: 6px 16px; border-radius: 999px; background: #fff3c4; color: #8a6400; font-weight: 700; }
.done-checks { list-style: none; margin: 14px auto; padding: 0; display: grid; gap: 8px; max-width: 420px; text-align: left; }
.done-checks li { padding: 10px 14px; border-radius: 12px; background: #f2f4f8; font-weight: 700; color: #55607e; }
.done-checks li.ok { background: #e6f6ee; color: #1e7a4c; }
/* 소감 쓸 때 주의점 */
.survey-tip { margin: 0 auto 14px; max-width: 640px; text-align: left; padding: 12px 16px; border-left: 6px solid #cd2e3a; border-radius: 12px; background: #fff1f2; color: #14224b; }
.survey-tip b { display: block; margin-bottom: 4px; font-size: 16px; }
.survey-tip ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.55; }
/* 🎯 더 해 보기: 못 채운 작전 지점과 [다시 도전] */
.extra-list { list-style: none; margin: 14px auto; padding: 0; max-width: 640px; display: grid; gap: 10px; text-align: left; }
.extra-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid #d6deec; }
.extra-list li > div { display: grid; gap: 2px; min-width: 0; }
.extra-list b { font-family: var(--display); font-size: 18px; color: #14224b; }
.extra-list small { color: #55607e; font-size: 13.5px; line-height: 1.45; }
.extra-list .btn { flex: none; }
@media (max-width: 480px) { .extra-list li { flex-direction: column; align-items: stretch; } }
/* 🏫 시작 화면: 프로젝트 소개 카드 (국가보훈부 2026 유엔참전국 글로벌 아카데미) */
.project-card { margin: 14px auto 6px; max-width: 640px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 2px solid #d6deec; box-shadow: 0 6px 18px rgba(20,34,75,.08); text-align: left; color: #14224b; }
.project-card .pc-badge { margin: 0 0 6px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e8f0ff; color: #003893; font-size: 13px; font-weight: 700; line-height: 1.4; }
.project-card .pc-title { margin: 4px 0 8px; font-family: var(--display); font-size: 21px; line-height: 1.35; font-weight: 400; text-wrap: balance; }
.project-card p { margin: 0 0 8px; font-size: 15px; line-height: 1.65; }
.project-card .pc-meta { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed #d6deec; display: grid; gap: 4px; }
.project-card .pc-meta div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; font-size: 13.5px; }
.project-card .pc-meta dt { color: #55607e; font-weight: 700; }
.project-card .pc-meta dd { margin: 0; }
@media (max-width: 480px) { .project-card .pc-meta div { grid-template-columns: 1fr; gap: 0; } }

/* 🔊 소리 창: 끄기/켜기 + 소리 크기 막대 */
.sound-wrap { position: relative; flex: none; }
.sound-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; width: 240px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #14224b; box-shadow: 0 10px 30px rgba(20,34,75,.25); display: grid; gap: 8px; text-align: left; }
.sound-panel[hidden] { display: none; }
.sound-panel .sp-title { font-size: 15px; }
.sound-panel .sp-vol { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.sound-panel input[type=range] { width: 100%; accent-color: #003893; }
.sound-panel .sp-help { color: #55607e; font-size: 12px; line-height: 1.45; }
/* 🔎 영상이 왜 안 넘어가는지 */
.watch-why { margin: 8px 0 0; font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.watch-gaps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.watch-gaps:empty { display: none; }
.watch-gaps span { font-weight: 700; font-size: 13.5px; }
.watch-help { margin-top: 8px; font-size: 13.5px; }
.watch-help summary { cursor: pointer; color: #55607e; font-weight: 700; }
.watch-help p { margin: 6px 0; line-height: 1.5; }
.watch-pw { display: flex; flex-wrap: wrap; gap: 6px; }
.watch-pw input { flex: 1 1 140px; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 2px solid #d6deec; font: inherit; }
#watchPwMsg { color: #cd2e3a; font-weight: 700; }

/* ✂️ 잘라 본 영상 안내 */
.clip-note { margin: 6px 0 4px; font-size: .88em; line-height: 1.45; color: inherit; opacity: .9; }

/* ✕ 저희 나라 → ○ 우리나라: 설문을 쓰는 동안 화면 위에 계속 붙어 있어요 */
.jeohui-bar { position: sticky; top: 0; z-index: 5; margin: 0 auto 12px; max-width: 640px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 10px 14px; border-radius: 14px; background: #fff7d6; border: 3px solid #cd2e3a; box-shadow: 0 4px 12px rgba(20,34,75,.18); color: #14224b; font-weight: 800; font-size: 20px; }
.jeohui-bar .jh-no { color: #cd2e3a; text-decoration: line-through; text-decoration-thickness: 3px; }
.jeohui-bar .jh-yes { color: #0f7a3d; }
.jeohui-bar .jh-arrow { color: #14224b; }
.jeohui-bar small { flex-basis: 100%; text-align: center; font-size: 14px; font-weight: 700; }

/* 📱 태블릿 인증서 저장 안내: 크고 짧은 번호 단계 */
.pad-steps { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.pad-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff7d6; border: 2px solid #f2c94c; color: #14224b; font-size: 18px; font-weight: 800; line-height: 1.4; }
.pad-steps .ps-n { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #14224b; color: #fff; font-size: 17px; }
.pad-share { margin: 6px 0; font-size: 14px; text-align: center; }
.pad-go { text-align: center; margin: 10px 0 4px; }
.pad-go .btn { font-size: 18px; padding: 12px 22px; }

/* © 만든 사람 (첫 화면·여정 완료 화면 맨 아래) */
.site-credit { margin: 28px auto 8px; text-align: center; font-size: 13px; color: #5b6785; letter-spacing: .02em; }
.site-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }


/* 🎬 엔딩 크레딧 */
.credits-row { text-align: center; margin: 16px 0 0; }
.credits-ov { position: fixed; inset: 0; z-index: 9999; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #1d3270 0%, #0b1430 60%); color: #f4f6ff; font-family: 'Jua', 'Noto Sans KR', system-ui, sans-serif; }
.credits-roll { position: absolute; left: 0; right: 0; top: 100%; padding: 0 20px 40px; text-align: center; animation: credits-roll 60s linear forwards; }
@keyframes credits-roll { to { transform: translateY(calc(-100% - 100vh)); } }
.credits-ov:active .credits-roll { animation-play-state: paused; }
.credits-skip { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; padding: 8px 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.6); background: rgba(11,20,48,.7); color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.credits-skip.end { background: #ffd23f; color: #14224b; border-color: #ffd23f; }
.cr-head { margin: 0 0 56px; }
.cr-logo { margin: 0; font-family: 'Baloo 2', 'Jua', sans-serif; font-weight: 800; font-size: clamp(32px, 7vw, 52px); color: #ffd23f; }
.cr-sub { margin: 6px 0 0; font-size: 17px; opacity: .85; }
.cr-sec { margin: 0 auto 44px; max-width: 560px; }
.cr-sec h3 { margin: 0 0 10px; font-size: 15px; font-weight: 400; letter-spacing: .12em; color: #9fb4ff; }
.cr-sec p { margin: 4px 0; font-size: 20px; line-height: 1.5; }
.cr-big { font-size: 30px; color: #fff; }
.cr-grp { display: block; margin-top: 12px; font-size: 16px; color: #ffd23f; }
.cr-names { display: block; font-size: 21px; }
.cr-small { font-size: 15px; opacity: .85; }
.cr-quote { margin: 70px auto 16px; max-width: 560px; font-size: 24px; color: #ffd23f; }
.cr-thanks { margin: 0 auto 30px; font-size: 20px; }
.cr-copy { margin: 40px 0 0; font-size: 14px; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .credits-ov { overflow-y: auto; } .credits-roll { position: static; animation: none; padding-top: 70px; } }

/* 🎬 크레딧 맨 끝: 콜롬비아 참전용사님들께 바치는 M.A.P. 헌사 */
.cr-ded { margin: 90px auto 0; max-width: 600px; }
.cr-ded h3 { margin: 0 0 22px; font-size: 18px; font-weight: 400; color: #9fb4ff; letter-spacing: .06em; }
.cr-ded p { margin: 0 0 16px; font-size: 22px; line-height: 1.5; }
.cr-letter { font-family: 'Baloo 2', 'Jua', sans-serif; font-size: 34px; color: #ffd23f; }
.cr-word { font-family: 'Baloo 2', 'Jua', sans-serif; font-size: 18px; color: #ffd23f; margin-right: 10px; }
.cr-line { display: block; }
.cr-logo-end { margin-top: 36px; font-size: clamp(26px, 6vw, 40px); }

.cr-names-all { max-width: 520px; margin: 0 auto; line-height: 1.9; }

/* 엔딩 질문: 한국어·영어 함께 */
.q-also { margin: 6px 0 0; font-size: .95em; line-height: 1.5; color: #4a5a85; font-style: italic; }

/* 작전 지점을 연 동안에는 현재 위치 이름표만 (두 이름표가 겹쳐 보이지 않게) */
#map:has(#focusLayer .m-focus-label) .m-next-label { display: none; }

/* 모둠 작품 제목은 한 줄씩 (넓은 화면) */
.cr-sec.cr-works { max-width: 980px; }
@media (min-width: 760px) { .cr-works p { white-space: nowrap; font-size: 18px; } }

/* 크레딧 이름은 한 덩어리로 (로마자와 한글 사이에서 줄이 바뀌지 않게) */
.cr-nm { white-space: nowrap; }
.cr-sec { max-width: 760px; }

/* 버튼 글자 세로 가운데 맞춤: Jua 글꼴은 한글이 1~2px 위로 떠 보여요 → 위 여백을 조금 더 (아래 그림자 있는 버튼은 조금 더) */
.btn { padding-top: 12px; padding-bottom: 8px; }
.btn-go, .btn-blue { padding-top: 13px; padding-bottom: 7px; }
.btn-sm { padding-top: 8px; padding-bottom: 4px; }
.btn-sm.btn-go, .btn-sm.btn-blue { padding-top: 9px; padding-bottom: 3px; }
/* O·X 글자도 세로 가운데로 (Baloo 2 글꼴은 살짝 위로 떠요) */
.ox button { padding-top: .08em; }

/* 🪟 첫 화면 시작 창 (이어서 할까요? / 닉네임) */
.start-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: rgba(11,20,48,.55); }
.start-modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper, #fff); border-radius: 22px; padding: 26px 22px 18px; box-shadow: 0 18px 50px rgba(11,20,48,.35); }
.start-modal-card .saved-box, .start-modal-card .start-form { margin: 0; box-shadow: none; border: 0; padding: 0; }
.start-modal-x { position: absolute; top: 10px; right: 10px; }
.start-modal-card #showNew { margin-top: 12px; width: 100%; }
.start-modal-link { display: block; margin: 16px auto 0; font-size: 14px; }
body.modal-open { overflow: hidden; }
.scroll-hint { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 50% { transform: translateY(4px); } }
.start-cta { margin: 22px auto 10px; padding: 22px 18px; max-width: 640px; text-align: center; border-radius: 20px; background: #fff7d6; border: 2px solid var(--co-yellow, #ffcd00); }
.start-cta-text { margin: 0 0 14px; font-family: var(--display); font-size: 20px; line-height: 1.4; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* 소개 끝 닉네임 칸 */
.start-cta .start-form { margin: 0 auto; max-width: 460px; text-align: left; background: var(--paper, #fff); border-radius: 16px; padding: 18px; box-shadow: none; }

/* ⏰ 추가 활동 (여정 완료 화면) */
.extra-act { margin: 26px auto 0; max-width: 720px; text-align: left; padding: 18px; border-radius: 20px; background: #f4f7ff; border: 2px dashed #b9c6e8; }
.extra-act h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--co-blue, #003893); }
.extra-act-lead { margin: 0 0 12px; color: var(--ink-soft); }
.extra-act-list { display: grid; gap: 12px; }
.extra-act-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line, #d6deec); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.extra-act-card:hover { border-color: var(--co-blue, #003893); transform: translateY(-1px); }
.ea-icon { font-size: 28px; line-height: 1; flex: none; }
.ea-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ea-body b { font-size: 17px; }
.ea-body small { color: var(--ink-soft); font-size: 13px; }
.ea-body em { font-style: normal; font-size: 14px; color: #8a5a00; background: #fff4cf; border-radius: 8px; padding: 4px 8px; justify-self: start; }
.ea-go { flex: none; align-self: center; font-family: var(--display); font-size: 16px; color: var(--co-blue, #003893); white-space: nowrap; }
@media (max-width: 520px) { .extra-act-card { flex-wrap: wrap; } .ea-go { align-self: flex-end; margin-left: auto; } }

/* 단어 단위 줄바꿈: 앱 전체 (버튼·입력칸·표·팝업까지) */
*, *::before, *::after { word-break: keep-all; }

/* 의미 단위 줄바꿈: 묶음(.mu)은 가능하면 한 줄에 함께, 너무 길면 그 안에서 낱말 단위로 */
.mu { display: inline-block; max-width: 100%; text-indent: 0; }
.mu-box { text-wrap: pretty; }

/* 💻/📱 시작 화면 기기 고르기 */
.mode-pick { margin: 4px 0 14px; }
.mode-label { display: block; font-weight: 700; margin-bottom: 6px; }
.mode-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-btns button { min-height: 46px; border-radius: 12px; border: 2px solid #d7dcef; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; }
.mode-btns button.on { border-color: var(--co-blue, #003893); background: #eaf0ff; color: var(--co-blue, #003893); }
.mode-help { display: block; margin-top: 6px; color: #5b6275; font-size: 13px; }
/* 📝 3·4학년 체험 설문 */
.js-wrap { max-width: 720px; margin: 0 auto; }
.js-q { border: 2px solid #e3e7f3; border-radius: 16px; padding: 14px 14px 16px; margin: 0 0 14px; background: #fff; min-width: 0; }
.js-q.miss { border-color: #d62839; background: #fff5f6; }
.js-q legend { font-weight: 800; font-size: 17px; line-height: 1.45; padding: 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.js-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--co-blue, #003893); color: #fff; font-size: 14px; }
.js-tag { font-style: normal; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.js-tag.need { background: #ffe1e5; color: #b0182b; }
.js-tag.opt { background: #eef1f7; color: #5b6275; }
.js-many { display: block; color: #5b6275; margin: 2px 0 8px; }
.js-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.js-opts.js-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.js-opt { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid #d7dcef; background: #f8f9fd; font: inherit; font-size: 16px; text-align: left; cursor: pointer; color: inherit; line-height: 1.35; }
.js-opt.on { border-color: var(--co-blue, #003893); background: #e3ebff; font-weight: 700; }
.js-opt.on::before { content: '✔ '; color: var(--co-blue, #003893); }
.js-opt:disabled { cursor: default; opacity: .85; }
.js-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.js-face { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 4px; }
.js-face span { font-size: 30px; line-height: 1.1; }
.js-face.on::before { content: none; }
.js-scale-ends { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: #5b6275; }
.js-text { width: 100%; box-sizing: border-box; border: 2px solid #d7dcef; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; margin-top: 6px; resize: vertical; }
.js-done { background: #e6f6ea; border: 2px solid #3a9b55; border-radius: 12px; padding: 10px 14px; font-weight: 700; }

/* 🎖️ 답변 영상 끝까지 보기 */
.vet-watch { margin: 6px 0 0; font-size: 14px; color: #5b6275; }
.vet-watch.ok { color: #2f7d46; font-weight: 700; }
.vet-tabs button.seen::after { content: ' ✓'; color: #2f7d46; }
.link-note { display: block; margin-top: 4px; color: #5b6275; }
.portfolio-box { text-align: center; margin: 18px auto 0; }
/* 📄 내 기록 인쇄 (포트폴리오) */
#printArea { display: none; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block; color: #000; font-size: 12pt; line-height: 1.5; padding: 0 8mm; }
  #printArea h1 { font-size: 20pt; margin: 0 0 4pt; }
  #printArea h2 { font-size: 14pt; margin: 14pt 0 6pt; }
  #printArea h3 { font-size: 12pt; margin: 10pt 0 4pt; }
  #printArea p { margin: 2pt 0; }
  #printArea .pf-meta { color: #333; }
  #printArea .pf-q { break-inside: avoid; border-top: 1px solid #ccc; padding-top: 6pt; }
  #printArea .pf-cert { break-before: page; text-align: center; }
  #printArea .pf-cert img { max-width: 100%; max-height: 250mm; }
  #printArea .pf-foot { margin-top: 12pt; color: #555; font-size: 10pt; }
}
/* ---------- 🕊️ 가상 방문·추모 (⑫ 콜롬비아군 참전기념비) ---------- */
#incheon.mem-focus .op-pin, #incheon.mem-focus #opFx { opacity: .25; pointer-events: none; }
#incheon.mem-focus #inchMemStar { stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: memStar 1.6s ease-in-out infinite; }
@keyframes memStar { 50% { transform: scale(1.6); } }
.visit-part { margin: 14px 0 6px; padding-top: 12px; border-top: 2px dashed #e4e0d4; }
.visit-part:first-of-type { border-top: 0; padding-top: 0; }
.visit-part h4 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 21px; }
.visit-addr { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: #fffbea; border: 2px solid var(--co-yellow); font-weight: 700; }
.visit-maps { display: flex; flex-wrap: wrap; gap: 8px; }
.visit-maps a { text-decoration: none; }
.visit-scene { border-radius: 18px; overflow: hidden; border: 3px solid #e4e0d4; }
.visit-scene svg { display: block; width: 100%; height: auto; }
.vs-sky { fill: #dcecf8; }
.vs-grass { fill: #9cc98a; }
.vs-step { fill: #cfc8bb; }
.vs-sail { fill: #fff; stroke: #c4ccd6; stroke-width: 2; }
.vs-sail-line { fill: none; stroke: #e1e6ec; stroke-width: 2; }
.vs-base { fill: #b9b2a6; }
.vs-bronze { fill: #6e5b44; }
.vs-sword { stroke: #8a8f96; stroke-width: 3; stroke-linecap: round; }
.vs-stone { fill: #4a4f57; }
.vs-text { stroke: #c8ccd2; stroke-width: 2; stroke-linecap: round; }
.vs-stem { stroke: #3d8a3a; stroke-width: 2; fill: none; }
.vs-flower { animation: fadeUp .5s ease; }
.vs-spot { cursor: pointer; outline: none; }
.vs-ring { fill: rgba(252, 209, 22, .25); stroke: var(--co-yellow); stroke-width: 3; animation: focusPulse 1.4s ease-in-out infinite; }
.vs-dot { fill: var(--co-yellow); stroke: var(--co-blue); stroke-width: 2; }
.vs-spot.seen .vs-ring { animation: none; fill: rgba(255, 255, 255, .35); stroke: #fff; }
.vs-spot.seen .vs-dot { fill: #fff; }
.vs-spot.sel .vs-dot, .vs-spot:focus-visible .vs-dot { fill: var(--co-red); }
.visit-spot { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #f3f7fc; border-left: 5px solid var(--co-blue); animation: fadeUp .3s ease; }
.visit-spot p { margin: 4px 0 0; }
#visitTrib.locked .trib-acts, #visitTrib.locked .trib-row, #visitTrib.locked .trib-label { opacity: .45; }
.trib-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.trib-label { display: block; font-weight: 700; margin-bottom: 6px; }
.trib-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.trib-row textarea { flex: 1 1 220px; min-width: 0; }
.trib-note { display: block; min-height: 1.2em; margin-top: 4px; color: var(--ok); font-weight: 700; }
.trib-note.bad { color: var(--no); }
.trib-row .guess { min-height: 70px; }
.trib-done { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #eaf6ea; font-weight: 700; animation: fadeUp .4s ease; }
/* 묵념하는 동안 화면을 살짝 어둡게 */
body.silence::after { content: ''; position: fixed; inset: 0; background: rgba(10, 20, 40, .35); pointer-events: none; z-index: 50; animation: fadeUp .6s ease; }
.guess.is-error { border-color: var(--no); }

/* ---------- 🕊️ 첫 화면: 따로 추모하기 · 아카이브 탐험 ---------- */
.start-quick { margin: 18px auto 6px; padding: 16px; border-radius: 20px; background: #fffbea; border: 3px solid var(--co-yellow); text-align: center; max-width: 560px; }
.start-quick-lead { margin: 0 0 10px; }
.start-quick-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ttb-soon { margin: 0 0 10px; padding: 8px 12px; border-radius: 999px; background: #5b92e5; color: #fff; font-weight: 700; display: inline-block; }
.ttb-box { margin: 0 0 12px; padding: 14px 16px; border-radius: 16px; background: #eef4fc; border-left: 6px solid #5b92e5; }
.ttb-box h3 { margin: 0 0 6px; font-size: 19px; }
.ttb-box p { margin: 4px 0 0; }
.ttb-box.today { background: #e3eefc; border-left-color: var(--co-blue); }
.ttb-clock { font-weight: 800; font-size: 20px; color: var(--co-blue); }
.ttb-clock.now { color: var(--co-red); animation: fadeUp .6s ease infinite alternate; }
.ttb-busan { margin: 10px 0 6px; font-weight: 700; }
.trib-btns { margin-top: 8px; }
.extra-arc { text-align: center; margin: 12px 0 0; }
/* 🗂️ 아카이브 탐험 */
.arc-steps { padding-left: 0; list-style: none; margin: 10px 0; }
.arc-steps > li { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #f6f4ee; }
.arc-steps > li > p { margin: 0 0 8px; font-weight: 700; }
.arc-input { width: 100%; border: 3px solid var(--co-yellow); border-radius: 14px; padding: 10px 14px; font-size: 18px; background: #fffdf3; margin-bottom: 8px; }
.arc-input:focus { outline: none; border-color: var(--co-blue); }
.arc-steps .guess { min-height: 90px; }
.arc-list { list-style: none; padding: 0; margin: 8px 0 0; }
.arc-list li { padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: #f3f7fc; border-left: 5px solid var(--co-blue); }
.arc-list li small { color: #667; margin-left: 4px; }
.arc-list li p { margin: 4px 0 8px; }
.arc-list li.empty { background: transparent; border: 0; color: #667; }
#infoBody .visit-scene { max-width: 420px; margin: 8px auto; }

/* ---------- 🇺🇳 11월 11일 묵념 안내 창 (어느 화면 위에든) ---------- */
.ttb-ov { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(8, 24, 56, .88); animation: fadeUp .5s ease; overflow-y: auto; }
.ttb-ov-card { width: min(640px, 100%); background: #fff; border-radius: 24px; padding: 26px 24px 18px; text-align: center; border-top: 8px solid #5b92e5; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.ttb-ov h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.35; }
.ttb-ov-big { margin: 6px 0 12px; font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 64px; line-height: 1.1; color: var(--co-blue); }
.ttb-ov-big small { display: block; font-family: var(--body); font-weight: 700; font-size: 17px; color: #556; }
.ttb-ov-text, .ttb-ov-why { margin: 8px 0; font-size: 18px; line-height: 1.7; text-align: left; }
.ttb-ov-why { padding: 12px 14px; border-radius: 14px; background: #eef4fc; }
.ttb-ov-why:empty, .ttb-ov-local:empty, .ttb-ov-keep:empty { display: none; }
.ttb-ov-local { margin: 6px 0; font-weight: 700; color: #556; }
.ttb-ov-keep { margin: 10px 0 4px; color: #2c7a3a; font-weight: 700; }
.ttb-ov-teacher { margin-top: 14px; font-size: 14px; color: #778; text-align: left; }
.ttb-ov-teacher summary { cursor: pointer; }
.ttb-ov-teacher input { margin: 8px 6px 0 0; padding: 6px 10px; border: 2px solid #ccd; border-radius: 10px; }
.ttb-ov-teacher small { display: block; color: var(--no); }
/* 묵념하는 1분: 더 어둡고 고요하게 */
.ttb-ov[data-phase="now"] { background: rgba(4, 10, 24, .96); }
.ttb-ov[data-phase="now"] .ttb-ov-card { background: #10203f; color: #e8eefc; border-top-color: var(--co-yellow); }
.ttb-ov[data-phase="now"] .ttb-ov-big { font-size: 96px; color: #fff; }
.ttb-ov[data-phase="now"] .ttb-ov-text { text-align: center; }
.ttb-ov[data-phase="now"] .ttb-ov-keep { color: #9fd0a8; }
.ttb-ov[data-phase="now"] .ttb-ov-teacher { color: #8896b8; }

/* 🖼️ 추모 카드 */
.card-make { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #f3f7fc; border: 3px solid #5b92e5; }
.card-make h3 { margin: 0 0 6px; }
.card-make.locked .trib-label, .card-make.locked textarea, .card-make.locked input, .card-make.locked .t-buttons { opacity: .45; }
.card-make .guess { min-height: 70px; }
.card-img { display: block; width: 100%; max-width: 420px; margin: 12px auto 6px; border-radius: 16px; box-shadow: 0 6px 20px rgba(20, 34, 75, .18); }
.ttb-ov-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- 📋 출발 전·도착 점검 ---------- */
.chk-ov { position: fixed; inset: 0; z-index: 9000; overflow-y: auto; padding: 16px; background: rgba(20, 34, 75, .55); }
.chk-ov-card { width: min(760px, 100%); margin: 0 auto; background: #fffdf5; border-radius: 24px; padding: 22px 20px; border-top: 8px solid var(--co-yellow); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.chk-sec { margin: 16px 0; }
.chk-sec > h3 { margin: 0 0 10px; font-size: 20px; }
.chk-q { margin: 0 0 12px; padding: 14px; border-radius: 16px; background: #fff; border: 2px solid #ece6d4; transition: border-color .2s; }
.chk-q.done { border-color: #b9dcb9; }
.chk-q.miss { border-color: var(--no); animation: shake .4s; }
.chk-q > p { margin: 0 0 10px; font-size: 18px; line-height: 1.55; font-weight: 700; }
.chk-n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--co-blue); color: #fff; font-size: 15px; }
.chk-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.chk-opts.is-ox { grid-template-columns: 1fr 1fr 1fr; }
.chk-opts button, .chk-scale button { min-height: 52px; padding: 10px 12px; border-radius: 14px; border: 2px solid #d8d2c0; background: #fffdf3; font: inherit; font-size: 17px; line-height: 1.35; cursor: pointer; color: var(--ink); }
.chk-opts .ox-o, .chk-opts .ox-x { font-family: 'Baloo 2', var(--body); font-weight: 800; font-size: 30px; }
.chk-opts .dunno { color: #667; font-size: 15px; background: #f4f4f4; }
.chk-opts button.on, .chk-scale button.on { border-color: var(--co-blue); background: #e3eefc; box-shadow: inset 0 0 0 2px var(--co-blue); }
.chk-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chk-scale button { font-size: 30px; padding: 6px 0; }
.chk-ends { display: flex; justify-content: space-between; font-size: 14px; color: #667; margin-top: 4px; }
.chk-left { text-align: center; font-weight: 700; color: #556; }
.chk-submit { text-align: center; }
.chk-pre-done { text-align: center; padding: 20px 0; }
.chk-big { font-size: 64px; margin: 0; }
/* 결과 */
.chk-bars { display: grid; gap: 10px; margin: 12px 0; }
.chk-bar { display: grid; grid-template-columns: 76px 1fr 72px; align-items: center; gap: 10px; font-weight: 700; }
.chk-track { height: 26px; border-radius: 13px; background: #ece6d4; overflow: hidden; }
.chk-track i { display: block; height: 100%; border-radius: 13px; background: #9aa6bf; transition: width .8s ease; }
.chk-bar.post .chk-track i { background: var(--co-blue); }
.chk-bar b { font-size: 20px; text-align: right; }
.chk-gain { text-align: center; font-size: 22px; font-weight: 800; color: #2c7a3a; margin: 6px 0 16px; }
.chk-att-change { list-style: none; padding: 0; }
.chk-att-change li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #ddd; }
.chk-att-change b { font-size: 26px; white-space: nowrap; }
.chk-review { padding-left: 22px; }
.chk-review li { position: relative; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border-left: 6px solid #ccc; }
.chk-review li.st-now { border-left-color: #2c9a4a; background: #eef8ef; }
.chk-review li.st-both { border-left-color: #5b92e5; }
.chk-review li.st-still, .chk-review li.st-lost { border-left-color: #e0a12a; background: #fff8e8; }
.chk-tag { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #eee; }
.st-now .chk-tag { background: #2c9a4a; color: #fff; }
.st-both .chk-tag { background: #5b92e5; color: #fff; }
.st-still .chk-tag, .st-lost .chk-tag { background: #e0a12a; color: #fff; }
.chk-rq { margin: 2px 0; font-weight: 700; }
.chk-ra { margin: 2px 0; color: var(--co-blue); font-weight: 700; }
.chk-why { margin: 2px 0; color: #445; }
@media (max-width: 520px) { .chk-opts.is-ox { grid-template-columns: 1fr 1fr; } .chk-opts.is-ox .dunno { grid-column: span 2; } .chk-bar { grid-template-columns: 64px 1fr 60px; } }
.chk-gain.flat { color: #8a6d1f; }

/* ---------- 🏫 반 결과 ---------- */
#classBody label { display: block; font-weight: 700; margin: 8px 0 4px; }
#classBody input[type="text"] { width: 100%; }
.cls-link { margin: 12px 0 4px; padding: 10px 12px; border-radius: 14px; background: #f3f7fc; }
.cls-link p { margin: 0 0 6px; font-weight: 700; }
.cls-link-row { display: flex; gap: 6px; }
.cls-link-row input { flex: 1; min-width: 0; font-size: 14px; padding: 8px 10px; border: 2px solid #ccd; border-radius: 10px; background: #fff; }
.cls-mine { list-style: none; padding: 0; }
.cls-mine li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #ddd; }
.cls-mine li button { margin-left: auto; }
.cls-sum { font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.cls-avg { font-weight: 700; color: var(--co-blue); margin: 0 0 10px; }
.cls-table-wrap { overflow-x: auto; margin: 10px 0 16px; border-radius: 12px; border: 1px solid #e3ddca; }
.cls-table { border-collapse: collapse; width: 100%; font-size: 14px; white-space: nowrap; }
.cls-table th, .cls-table td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: center; }
.cls-table th { background: #fffbea; position: sticky; top: 0; }
.cls-table td:first-child, .cls-table th:first-child { text-align: left; font-weight: 700; }
.cls-table td.up { color: #2c9a4a; font-weight: 800; }
.cls-items { padding-left: 22px; }
.cls-items li { margin: 0 0 10px; }
.cls-items li span { display: block; font-size: 15px; }
.cls-items li b { font-size: 14px; color: #445; }
.cls-ibar { position: relative; height: 18px; margin-top: 4px; border-radius: 9px; background: #eee; overflow: hidden; }
.cls-ibar i { position: absolute; left: 0; height: 9px; border-radius: 9px; }
.cls-ibar i.a { top: 0; background: #9aa6bf; }
.cls-ibar i.b { top: 9px; background: var(--co-blue); }
.cls-reflects { padding-left: 18px; }
.cls-reflects li { margin: 4px 0; }

/* 🏛️ 기념비 그림 · 11/11 그림 */
.vs-ring, .vs-dot { vector-effect: non-scaling-stroke; }
.ttb-ov-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; margin: 0 0 14px; }
.ttb-ov-img[hidden] { display: none; }
