:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #efebe4;
  --line: #e2dcd2;
  --ink: #1d2028;
  --ink-2: #444a57;
  --muted: #727786;
  --night: #14171d;
  --night-2: #1d222b;
  --ivory: #ece7dd;
  --gold: #e3b25a;       /* 포인트 색 (어두운 바탕) */
  --gold-ink: #a8761c;   /* 포인트 색 (밝은 바탕 글자) */
  --gold-soft: #f8eedb;
  --world: #5d7490;
  --world-soft: #eef2f6;
  --korea: #9c5f4a;
  --korea-soft: #f7efeb;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 23, 29, .04), 0 10px 28px rgba(20, 23, 29, .06);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}

html { font-size: 112.5%; scroll-behavior: smooth; }
html[data-size="l"] { font-size: 125%; }
html[data-size="xl"] { font-size: 143.75%; }

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--night); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* ---------- 상단 ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 4rem; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 12px; background: var(--night); color: var(--ivory); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: .6rem; height: .6rem; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.brand-name { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: .4rem .9rem; border-radius: 999px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--night); color: var(--ivory); }
.sizer { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.sizer-label { font-size: .75rem; color: var(--muted); padding: 0 6px 0 8px; }
.sizer button { border: 0; background: none; border-radius: 999px; width: 2rem; height: 2rem; font-weight: 800; line-height: 1; padding: 0; }
.sizer button[data-size="m"] { font-size: .8rem; }
.sizer button[data-size="l"] { font-size: 1rem; }
.sizer button[data-size="xl"] { font-size: 1.2rem; }
.sizer button.on { background: var(--night); color: var(--ivory); }

main { padding: 2rem 0 4rem; outline: none; }
main:focus, main:focus-visible { outline: none; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: .8rem 1.3rem; min-height: 3rem; font-weight: 800; background: var(--night); color: var(--ivory); transition: background .15s, box-shadow .15s; }
.btn:hover { background: #262b35; }
.btn.gold { background: var(--gold); color: #1b1608; }
.btn.gold:hover { background: #ebbf6e; box-shadow: 0 6px 18px rgba(227, 178, 90, .35); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .9; }
.btn.small { min-height: 2.4rem; padding: .4rem .9rem; font-size: .9rem; border-radius: 10px; }

/* ---------- 첫 화면 ---------- */
.hero { background: radial-gradient(ellipse at 70% 0%, #232a35 0%, var(--night) 70%); color: var(--ivory); border-radius: 26px; padding: 2.6rem 2.4rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(236, 231, 221, .06) 1.2px, transparent 1.2px); background-size: 26px 26px; pointer-events: none; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; color: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .6rem 0 .9rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #c9c3b6; max-width: 38rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; position: relative; z-index: 1; }
.hero-cta .btn.ghost { color: var(--ivory); border-color: rgba(236, 231, 221, .35); }

.sec { margin-top: 2.8rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 1rem; }
.sec-head h2 { font-family: var(--serif); font-size: 1.45rem; }
.sec-head p { color: var(--muted); font-size: .92rem; }

/* 전체 지도 (8개 시대) — 한 시대에 한 줄: [시대 | 세계 | 한국] */
.map { display: grid; gap: 12px; }
.era { display: grid; grid-template-columns: 14rem 1fr 1fr; gap: 12px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
a.era:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 23, 29, .05), 0 16px 34px rgba(20, 23, 29, .10); }
.era.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 178, 90, .25), var(--shadow); }
.era-head { padding: .3rem .4rem; display: flex; flex-direction: column; gap: .25rem; }
.era-top { display: flex; align-items: baseline; gap: 10px; }
.era-no { font-family: var(--serif); color: var(--gold-ink); font-weight: 700; font-size: 1.05rem; }
.era-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.era-period { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.era-kw { margin-top: auto; padding-top: .7rem; font-family: var(--serif); font-weight: 700; font-size: .98rem; line-height: 1.55; color: var(--ink); }
.era-kw span { display: block; font-family: var(--font); font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: var(--gold-ink); margin-bottom: 2px; }
.era-col { border-radius: 12px; padding: .8rem 1rem .5rem; }
.era-col b { display: block; font-size: .76rem; letter-spacing: .14em; font-weight: 800; margin-bottom: .2rem; }
.era-col li { padding: .5rem 0; border-top: 1px solid rgba(29, 32, 40, .07); }
.era-col li:first-child { border-top: 0; }
.era-col li strong, .side li strong { display: block; font-size: .98rem; font-weight: 800; color: var(--ink); line-height: 1.45; }
.era-col li span, .side li span { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }
.era-col.w { background: var(--world-soft); } .era-col.w b { color: var(--world); }
.era-col.k { background: var(--korea-soft); } .era-col.k b { color: var(--korea); }
@media (max-width: 860px) {
  .era { grid-template-columns: 1fr 1fr; }
  .era-head { grid-column: 1 / -1; }
}
.map-note { margin-top: .8rem; font-size: .88rem; color: var(--muted); }

/* 편 목록 */
.eps { display: grid; gap: 10px; }
.ep-row { display: grid; grid-template-columns: 4.4rem 1fr auto; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem; transition: background .15s; }
.ep-row:hover { background: #fbfaf7; }
.ep-no { font-family: var(--serif); font-weight: 700; color: var(--gold-ink); font-size: 1rem; }
.ep-txt b { display: block; font-size: 1.05rem; }
.ep-txt span { color: var(--muted); font-size: .88rem; }
.ep-state { font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.ep-state.ready { background: var(--night); color: var(--ivory); }
.ep-state.done { background: var(--gold-soft); color: var(--gold-ink); }

/* 결정적 장면 */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.scene-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: radial-gradient(ellipse at 80% 0%, #232a35 0%, var(--night) 75%); color: var(--ivory); box-shadow: var(--shadow); transition: transform .15s; }
.scene-card:hover { transform: translateY(-2px); }
.scene-no { font-size: .74rem; font-weight: 800; letter-spacing: .18em; color: var(--gold); }
.scene-title { font-family: var(--serif); font-size: 1.45rem; }
.scene-meta { font-size: .85rem; color: #a9a396; }
.scene-sum { font-size: .92rem; color: #d6d0c4; line-height: 1.6; }
.scene-foot { margin-top: .4rem; font-size: .8rem; color: var(--gold); font-weight: 700; }
.story { counter-reset: s; display: grid; gap: 4px; }
.story li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 12px; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.story li:last-child { border-bottom: 0; }
.story-no { width: 2rem; height: 2rem; border-radius: 50%; background: var(--night); color: var(--gold); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.story strong { display: block; font-size: 1.02rem; }
.story p { color: var(--ink-2); font-size: .93rem; margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { background: var(--gold-soft); border-radius: 14px; padding: 1.1rem .9rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.fact b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-ink); }
.fact span { font-size: .88rem; color: var(--ink-2); }

/* ---------- 편 화면 ---------- */
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.ep-head h1 { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.ep-head h1 small { display: block; font-family: var(--font); font-size: .85rem; letter-spacing: .16em; color: var(--gold-ink); font-weight: 700; margin-bottom: .3rem; }
.ep-head p { color: var(--ink-2); margin-top: .5rem; }

.video { margin-top: 1.4rem; border-radius: 18px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; }
.video.vertical { aspect-ratio: 9 / 16; width: min(100%, 420px); margin-left: auto; margin-right: auto; }
.video.empty { display: grid; place-items: center; color: var(--ivory); text-align: center; background: radial-gradient(ellipse at 50% 30%, #232a35, var(--night) 75%); }
.video.empty b { font-family: var(--serif); font-size: 1.2rem; display: block; margin-top: .4rem; }
.video.empty p { color: #a9a396; font-size: .92rem; }
.video.empty .ring { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; margin: 0 auto; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .9rem; }
.chapters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; display: inline-flex; gap: 8px; align-items: center; }
.chapters button:hover { border-color: var(--gold); }
.chapters time { color: var(--gold-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.watch-row { display: flex; align-items: center; gap: 12px; margin-top: 1rem; flex-wrap: wrap; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.panel h2 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .9rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side { border-radius: 14px; padding: 1rem 1.1rem; }
.side h3 { font-size: .75rem; letter-spacing: .18em; margin-bottom: .5rem; }
.side.w { background: var(--world-soft); } .side.w h3 { color: var(--world); }
.side.k { background: var(--korea-soft); } .side.k h3 { color: var(--korea); }
.side li { padding: .6rem 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.side li:last-child { border-bottom: 0; }

.points li { position: relative; padding: .45rem 0 .45rem 1.6rem; }
.points li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); }

/* 연표: 가운데 줄, 왼쪽 세계 · 오른쪽 한국 */
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(var(--gold), rgba(227, 178, 90, .25)); }
.tl-legend { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: .72rem; letter-spacing: .18em; font-weight: 700; margin-bottom: .4rem; }
.tl-legend .w { color: var(--world); } .tl-legend .k { color: var(--korea); }
.tl { display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; }
.tl::after { content: ""; position: absolute; left: 50%; top: 50%; width: .7rem; height: .7rem; margin: -.35rem 0 0 -.35rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.tl-card { margin: 0 1.4rem; padding: .5rem .8rem; border-radius: 12px; font-size: .92rem; line-height: 1.55; }
.tl-card time { display: block; font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.tl.w .tl-card { grid-column: 1; text-align: right; background: var(--world-soft); } .tl.w time { color: var(--world); }
.tl.k .tl-card { grid-column: 2; background: var(--korea-soft); } .tl.k time { color: var(--korea); }

.oneline { margin-top: 1.4rem; background: var(--night); color: var(--ivory); border-radius: var(--radius); padding: 1.5rem 1.6rem; display: flex; gap: 14px; align-items: baseline; }
.oneline b { color: var(--gold); font-size: .78rem; letter-spacing: .18em; white-space: nowrap; }
.oneline p { font-family: var(--serif); font-size: 1.2rem; }

.stack { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.nav-eps { display: flex; justify-content: space-between; gap: 12px; margin-top: 2rem; flex-wrap: wrap; }

/* 도움말 */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: .5rem; color: var(--ink-2); }

/* ---------- 아래 ---------- */
.footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; font-size: .85rem; }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  /* 위쪽 메뉴: 로고 + 글자 버튼 한 줄, 메뉴는 아래 줄에 꽉 차게 */
  .topbar-in { flex-wrap: wrap; row-gap: 4px; padding: 8px 0 6px; }
  .sizer { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 2px; }
  .nav a { flex: 1; text-align: center; padding: .4rem .2rem; font-size: .88rem; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 640px) {
  .sizer-label { display: none; }
  .hero { padding: 1.8rem 1.4rem; }
  .era { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .ep-row { grid-template-columns: 3.4rem 1fr; }
  .ep-state { grid-column: 2; justify-self: start; }
  .timeline::before { left: .5rem; }
  .tl-legend { display: none; }
  .tl { grid-template-columns: 1fr; }
  .tl::after { left: .5rem; }
  .tl.w .tl-card, .tl.k .tl-card { grid-column: 1; text-align: left; margin: 0 0 0 1.6rem; }
  .oneline { flex-direction: column; gap: 4px; }
}

/* ---------- 이해를 돕는 자료 ---------- */
.study { margin-top: 1.2rem; }
.study-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: .9rem; }
.study-head h2 { margin: 0; }
.study-head p { color: var(--muted); font-size: .88rem; }
.ig { background: #fbf8f2; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.ig-title { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }

.ig-chain { display: grid; gap: 8px; }
.ig-chain-head, .ig-row { display: grid; grid-template-columns: 9.5rem 1fr 7.5rem 1fr; gap: 10px; align-items: center; }
.ig-chain-head { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-align: center; }
.ig-chain-head .w { color: var(--world); } .ig-chain-head .k { color: var(--korea); }
.ig-era { display: flex; align-items: baseline; gap: 6px; }
.ig-era b { font-family: var(--serif); color: var(--gold-ink); flex: none; }
.ig-era span { line-height: 1.35; }
.ig-era span { font-family: var(--serif); font-weight: 700; font-size: .92rem; }
.ig-cell { border-radius: 12px; padding: .65rem .8rem; font-weight: 700; font-size: .93rem; line-height: 1.45; min-height: 3.2rem; display: flex; align-items: center; }
.ig-cell.w { background: var(--world-soft); border-left: 0; }
.ig-cell.k { background: var(--korea-soft); }
.ig-link { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.ig-arrow { font-size: 1.5rem; line-height: 1; color: var(--gold-ink); font-weight: 700; }
.ig-label { font-size: .76rem; font-weight: 800; color: var(--gold-ink); background: var(--gold-soft); border-radius: 999px; padding: .1rem .55rem; white-space: nowrap; }

.ig-vs { display: grid; gap: 12px; margin-bottom: 1rem; }
.ig-side { display: grid; grid-template-columns: 6.5rem 1fr 9rem; gap: 12px; align-items: center; }
.ig-num b { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.ig-num span { font-size: .85rem; margin-left: 3px; color: var(--muted); }
.ig-side.us .ig-num b { color: var(--gold-ink); }
.ig-side.them .ig-num b { color: var(--korea); }
.ig-bar { height: 16px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.ig-bar i { display: block; height: 100%; border-radius: 8px; background: var(--gold); }
.ig-side.them .ig-bar i { background: #c99a88; }
.ig-who { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.ig-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.ig-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.ig-box h4 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .12em; color: var(--gold-ink); }
.ig-box li { padding: .4rem 0; border-top: 1px solid var(--line); }
.ig-box li:first-child { border-top: 0; }
.ig-box li strong { display: block; font-size: .95rem; }
.ig-box li span { font-size: .85rem; color: var(--ink-2); }
.ig-steps li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 8px; font-size: .9rem; }
.ig-steps time { font-weight: 800; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ig-result { margin-top: 12px; background: var(--night); color: var(--ivory); border-radius: 12px; padding: .8rem 1rem; font-family: var(--serif); font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.ig-result b { font-family: var(--font); font-size: .74rem; letter-spacing: .16em; color: var(--gold); }

.deck { position: relative; }
.slide { display: none; margin: 0; }
.slide.on { display: block; }
.deck.all .slide { display: block; margin-bottom: 16px; }
.slide-face { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; padding: clamp(1.1rem, 4vw, 2.4rem); background: radial-gradient(ellipse at 80% 0%, #232a35 0%, var(--night) 72%); color: var(--ivory); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.slide-face::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(236, 231, 221, .05) 1.2px, transparent 1.2px); background-size: 24px 24px; pointer-events: none; }
.slide-kicker { font-size: clamp(.7rem, 1.6vw, .85rem); font-weight: 800; letter-spacing: .16em; color: var(--gold); }
.slide-face h3 { font-family: var(--serif); font-size: clamp(1.25rem, 3.6vw, 2.1rem); margin: .4rem 0 clamp(.6rem, 2vw, 1.2rem); }
.slide-face ul { display: grid; gap: clamp(.25rem, 1vw, .55rem); }
.slide-face li { position: relative; padding-left: 1.1rem; font-size: clamp(.88rem, 2.2vw, 1.15rem); line-height: 1.5; color: #e6e0d4; }
.slide-face li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); }
.slide-face h3, .slide-face ul, .slide-kicker { max-width: 62%; position: relative; z-index: 1; }
.slide-big { position: absolute; right: clamp(1rem, 4vw, 2.6rem); top: 50%; transform: translateY(-50%); text-align: right; max-width: 36%; }
.slide-big b { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 8vw, 5.2rem); line-height: 1; color: var(--gold); white-space: nowrap; }
.slide-big span { display: block; margin-top: .5rem; font-size: clamp(.75rem, 1.8vw, 1rem); color: #b9b2a4; }
.slide-page { position: absolute; right: 1.2rem; bottom: .9rem; font-size: .78rem; color: #8f897c; }
.slide-note { margin-top: 10px; background: var(--gold-soft); border-radius: 12px; padding: .8rem 1rem; font-size: .93rem; line-height: 1.6; color: var(--ink-2); display: flex; gap: 10px; }
.slide-note b { flex: none; font-size: .74rem; letter-spacing: .14em; color: var(--gold-ink); padding-top: .2rem; }
.deck-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.deck-sync { font-size: .8rem; font-weight: 700; color: var(--gold-ink); }
.deck.all .deck-sync { display: none; }
.deck-dots { display: flex; gap: 6px; margin: 0 auto 0 4px; }
.deck-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); }
.deck-dots i.on { width: 20px; background: var(--gold); }
.deck.all .deck-dots, .deck.all [data-deck="prev"], .deck.all [data-deck="next"] { display: none; }

@media (max-width: 760px) {
  .ig { padding: .9rem; }
  .ig-chain-head { display: none; }
  .ig-row { grid-template-columns: 1fr; gap: 4px; padding: .7rem 0; border-top: 1px solid var(--line); }
  .ig-row:first-of-type { border-top: 0; }
  .ig-link { flex-direction: row; justify-content: center; gap: 8px; }
  .ig-link.w2k .ig-arrow, .ig-link.k2w .ig-arrow { transform: rotate(90deg); }
  .ig-link.k2w .ig-arrow { transform: rotate(-90deg); }
  .ig-side { grid-template-columns: 5rem 1fr; }
  .ig-who { grid-column: 1 / -1; }
  .ig-grid { grid-template-columns: 1fr; }
  .ig-steps li { grid-template-columns: 1fr; gap: 0; }
  .ig-result { flex-direction: column; gap: 4px; }
  .ig-result b { white-space: nowrap; }
  .slide-face { aspect-ratio: auto; min-height: 15rem; }
  .slide-face h3, .slide-face ul, .slide-kicker { max-width: 100%; }
  .slide-big { position: static; transform: none; text-align: left; max-width: none; margin-top: 1rem; display: flex; align-items: baseline; gap: 10px; }
  .slide-big span { margin-top: 0; }
}

@media print {
  .topbar, .footer, .video, .chapters, .watch-row, .nav-eps, .deck-bar, .crumb { display: none !important; }
  body { background: #fff; }
  .deck .slide { display: block !important; break-inside: avoid; margin-bottom: 14px; }
  .slide-face { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel { box-shadow: none; break-inside: avoid; }
}

/* ---------- 내용 출처 ---------- */
.sources summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary h2 { margin: 0; }
.sources summary h2::before { content: "▸ "; color: var(--gold-ink); }
.sources[open] summary h2::before { content: "▾ "; }
.sources summary span { font-size: .85rem; color: var(--muted); }
.src-list { counter-reset: n; margin-top: 1rem; display: grid; gap: 2px; }
.src-list li { counter-increment: n; position: relative; padding: .7rem 0 .7rem 2.2rem; border-top: 1px solid var(--line); }
.src-list li::before { content: counter(n); position: absolute; left: 0; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-2); font-size: .78rem; font-weight: 800; display: grid; place-items: center; color: var(--ink-2); }
.src-list strong { display: block; font-size: .96rem; }
.src-from { display: block; font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.src-note { display: block; font-size: .85rem; color: var(--gold-ink); background: var(--gold-soft); border-radius: 8px; padding: .3rem .6rem; margin-top: 6px; }
.src-more { margin-top: .8rem; font-size: .88rem; color: var(--muted); }
.src-more a, .src-links a { text-decoration: underline; text-underline-offset: 3px; }
.src-links li { padding: .6rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.src-links li:first-child { border-top: 0; }
.src-links a, .src-links b { font-weight: 700; }
.src-links span { font-size: .88rem; color: var(--muted); }
@media print { .sources:not([open]) { display: none; } }

.src-sub { margin: 1.2rem 0 .3rem; font-size: .9rem; letter-spacing: .08em; color: var(--gold-ink); }

/* 방문자 카운터 (하단, 아주 작게) */
.visits { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.visits[hidden] { display: none; }
.visits b { color: var(--gold-ink); font-weight: 800; }
.visits i { font-style: normal; color: var(--line); }
.visits .v-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(227, 178, 90, .2); }
