/* ─────────────────────────────────────────────
   미리보기 비주얼 시스템 (브랜드 에셋 팩 v1.0: public/miribogi_brand_assets)
   크림 바탕 + 잉크 선, Pretendard 한 가족 (제목 ExtraBold~Black, 본문 Regular, 라벨 Medium)
   세 인생 색은 에셋 cinema_version_a/b/c 기준: ver.A 골든 옐로 · ver.B 토마토 · ver.C 민트
   라벤더는 FUTURE·잠금 해제·구름 같은 보조색
   그래픽 언어: 굵은 잉크 테두리, 딱딱한 오프셋 그림자, 테두리에 걸친 노란 알약 라벨,
   노란 붓 밑줄·반짝이·효과선, 예고편 장치(REC, 슬레이트, 카운트다운, 티켓)
   ───────────────────────────────────────────── */
:root {
  --paper: #f7f2e8;
  --paper-2: #ede6d8;
  --paper-3: #fffcf6;
  --ink: #1a1713;
  --ink-2: #5a544b;
  --ink-3: #8f887c;
  --line: rgba(26, 23, 19, 0.16);
  --tomato: #ff5b3d;
  --sun: #ffc73b;
  --mint: #2ec27e;
  --lav: #cdb8ff;
  --bogi: var(--tomato);
  --vA: var(--sun);
  --vB: var(--tomato);
  --vC: var(--mint);
  --v: var(--tomato);

  --f-sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --r: 14px;
  --bw: 2px;
  --shadow: 3px 3px 0 var(--ink);
  --shadow-lg: 5px 5px 0 var(--ink);
  --gutter: 20px;
  --col: 560px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); }
img, svg { display: block; }
a { color: inherit; }

.ver-A { --v: var(--vA); }
.ver-B { --v: var(--vB); }
.ver-C { --v: var(--vC); }

/* ── 공용 타이포 ── */
.display { font-weight: 900; letter-spacing: -0.045em; line-height: 1.2; }
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 26px; height: 26px; flex: none; }

/* ── 화면 & 전환 ── */
#app { position: relative; min-height: 100dvh; }
.screen {
  position: relative;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  animation: screen-in 0.42s var(--ease) both;
}
.screen.leaving { position: absolute; inset: 0; animation: screen-out 0.22s ease-in both; pointer-events: none; }
@keyframes screen-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes screen-out { to { opacity: 0; transform: translateY(-8px); } }
.col { max-width: var(--col); margin: 0 auto; }

/* 장면 컷: 색 띠가 화면을 가로지른다 */
#wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; transform: translateX(-101%); background: var(--v, var(--tomato)); }
#wipe.go { animation: wipe 0.62s var(--ease) both; }
@keyframes wipe { 0% { transform: translateX(-101%); } 45%, 55% { transform: translateX(0); } 100% { transform: translateX(101%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #wipe { display: none; }
}

/* ── 헤더 ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 0; background: none; padding: 0; }
.logo-mark { width: 40px; height: 30px; }
.logo b { font-weight: 900; font-size: 22px; letter-spacing: -0.06em; line-height: 1; }

/* 알약 배지: REC, ver, DEMO, FUTURE */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  white-space: nowrap;
}
.sticker.ink { background: var(--ink); color: var(--paper); }
.sticker.paper { background: var(--paper-3); color: var(--ink); }
.sticker.lav { background: var(--lav); }
.rec { display: inline-flex; align-items: center; gap: 6px; }
.rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); animation: blink 1.2s steps(2, start) infinite; }
.sticker.rec::before { width: 9px; height: 9px; }
@keyframes blink { to { visibility: hidden; } }

/* ── 버튼 ── */
.btn {
  --bg: var(--ink);
  --fg: var(--paper-3);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn.block { width: 100%; }
.btn.primary { --bg: var(--tomato); --fg: var(--ink); }
.btn.paper { --bg: var(--paper-3); --fg: var(--ink); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: none; border-color: transparent; min-height: 44px; padding: 0 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.btn.ghost:active { transform: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: var(--shadow); }
.btn.small:active { transform: translate(3px, 3px); }
.btn .ic { width: 28px; height: 28px; margin: -4px 0; }
.btn.lav { --bg: var(--lav); --fg: var(--ink); }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--paper-3);
}
.icon-btn svg { width: 18px; height: 18px; }

/* ── 섹션 패널: 테두리에 걸친 노란 알약 라벨 ── */
.panel { position: relative; display: grid; gap: 14px; margin-top: 16px; padding: 32px 18px 20px; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--paper); }
.panel-tag {
  position: absolute; top: 0; left: 14px; transform: translateY(-50%);
  display: inline-flex; align-items: baseline; gap: 7px; max-width: calc(100% - 28px);
  margin: 0; padding: 6px 14px 5px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--sun);
  font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel-tag { align-items: center; padding-left: 8px; }
.panel-tag .ic { width: 24px; height: 24px; margin: -4px -2px; }
.panel-tag span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.panel-note { margin: -6px 0 0; }

/* 붓 밑줄, 반짝이, 구름 */
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::after {
  content: ''; position: absolute; left: -4%; right: -4%; bottom: -0.16em; height: 0.5em; z-index: -1;
  background: url('/miribogi_brand_assets/svg/deco_underline.svg') center bottom / 100% auto no-repeat;
}
.deco-spark { display: inline-block; width: 0.42em; height: 0.42em; vertical-align: 0.42em; margin-left: 0.04em; }
.cloud { position: absolute; width: 84px; pointer-events: none; }
.rays { position: absolute; width: 60px; pointer-events: none; }

/* ── 보기 ── */
.bogi { overflow: visible; }
.bogi .bg-eyes { transform-box: fill-box; transform-origin: center; animation: blink-eyes 5.2s infinite; }
.bogi .bg-pupil { transition: transform 0.25s var(--ease); }
@keyframes blink-eyes { 0%, 93%, 100% { transform: none; } 95.5% { transform: scaleY(0.12); } }
.bogi.bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
.bogi.hop { animation: hop 0.5s var(--ease); }
@keyframes hop { 40% { transform: translateY(-10px) scale(1.02, 0.97); } }

.say { display: flex; align-items: flex-end; gap: 10px; }
.say .bogi { width: 62px; height: 62px; flex: none; margin-bottom: -4px; }
.bubble {
  position: relative;
  margin: 0;
  background: var(--paper-3);
  border: var(--bw) solid var(--ink);
  border-radius: 18px 18px 18px 4px;
  padding: 9px 14px 10px;
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 320px;
  box-shadow: var(--shadow);
  animation: pop 0.35s var(--ease) both;
}
.bubble .who { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--tomato); display: block; margin-bottom: 1px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.96); } }

/* ════════════ 홈 ════════════ */
.home { display: flex; flex-direction: column; }
.hero { display: grid; gap: 26px; padding: 18px 0 8px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero h1 { position: relative; z-index: 0; margin: 0; font-size: clamp(46px, 13.6vw, 72px); line-height: 1.16; letter-spacing: -0.06em; }
.hero-sub { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 30em; }
.hero-sub b { color: var(--ink); font-weight: 800; }

/* 예시 예고편 카드 */
.reel { position: relative; margin-top: 76px; }
.reel-card { position: relative; min-height: 220px; padding: 14px 20px 26px; overflow: hidden; background: var(--paper-3); border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); }
.reel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1.5px dashed var(--ink); }
.reel-head .label { color: var(--ink); }
.reel-frame { animation: frame-in 0.5s var(--ease) both; }
@keyframes frame-in { from { opacity: 0; transform: translateX(18px); } }
.reel-when { display: flex; align-items: baseline; gap: 10px; }
.reel-when .age { font-size: 46px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.reel-when .yr { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.reel-title { margin: 10px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.4; }
.reel-hook { margin: 0; font-size: 15px; color: var(--ink-2); }
.reel-bar { position: absolute; left: 20px; right: 20px; bottom: 12px; height: 6px; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.reel-bar i { display: block; height: 100%; width: 0; background: var(--v); }
.reel-bar i.run { animation: reel-run 5s linear forwards; }
@keyframes reel-run { to { width: 100%; } }
.ver-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  padding: 6px 11px; border-radius: 10px; border: var(--bw) solid var(--ink); background: var(--v);
  color: var(--ink); white-space: nowrap; flex: none;
}
.reel > .bogi { position: absolute; width: 118px; right: 6px; top: -92px; z-index: 2; }
.reel > .rays { right: 118px; top: -58px; }

.cta { display: grid; gap: 12px; margin-top: 28px; }
.cta .btn { min-height: 64px; font-size: 19px; }
.cta-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-meta span + span::before { content: '·'; margin-right: 14px; color: var(--ink-3); }
.cta .resume { justify-self: center; margin: 4px 0 0; color: var(--ink-2); }

.how { margin-top: 48px; display: grid; gap: 22px; }
.how .cloud { right: 14px; top: -30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.step-ic { width: 46px; height: 46px; display: grid; place-items: center; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--paper-3); box-shadow: var(--shadow); }
.step-ic .ic { width: 34px; height: 34px; }
.steps b { display: block; font-size: 16.5px; letter-spacing: -0.02em; }
.steps p { margin: 0; }
.steps p span { font-size: 14px; color: var(--ink-2); }
.notprophecy {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 16px; border-radius: 20px; border: 1.5px dashed var(--ink-3);
}
.notprophecy .stamp {
  width: 66px; height: 66px; border-radius: 50%; border: 2.5px solid var(--tomato); color: var(--tomato);
  display: grid; place-items: center; text-align: center; font-size: 14px; font-weight: 900; line-height: 1.15; transform: rotate(-12deg);
}
.notprophecy p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.notprophecy p b { color: var(--ink); }
.foot { margin-top: 40px; padding-top: 16px; border-top: 1.5px dashed var(--ink-3); display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: 13px; }
.foot .biz { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.refund-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.refund-note a { color: inherit; text-underline-offset: 3px; }


/* ════════════ 질문 ════════════ */
.quiz { display: flex; flex-direction: column; padding-bottom: 28px; }
.quiz .col { width: 100%; display: flex; flex-direction: column; flex: 1; }
.quiz-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; height: 52px; }
.quiz-top .where { text-align: center; color: var(--ink); }
.back { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; }
.back svg { width: 22px; height: 22px; }
.scrub { position: relative; height: 28px; margin: 2px 0 10px; }
.scrub .track { position: absolute; left: 0; right: 0; top: 10px; height: 8px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper-3); }
.scrub .fill { position: absolute; left: 0; top: 10px; height: 8px; background: var(--ink); border-radius: 4px; transition: width 0.5s var(--ease); }
.scrub .head { position: absolute; top: 4px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--tomato); border: var(--bw) solid var(--ink); transition: left 0.5s var(--ease); }
.scrub .tick { position: absolute; top: 6px; width: 2px; height: 16px; background: var(--ink); border-radius: 1px; }
.scrub .tc { position: absolute; right: 0; top: -14px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.q-wrap { flex: 1; display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.q-say { min-height: 60px; }
.q-head h2 { margin: 0 0 6px; font-size: clamp(25px, 7vw, 32px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.q-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.q-body { animation: screen-in 0.4s var(--ease) 0.05s both; }

.opts { display: grid; gap: 10px; }
.opt {
  display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px;
  min-height: 58px; padding: 12px 16px; text-align: left;
  border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-3);
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.4;
  transition: background 0.15s, transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
  animation: opt-in 0.38s var(--ease) both;
}
.opt:nth-child(2) { animation-delay: 0.03s; } .opt:nth-child(3) { animation-delay: 0.06s; } .opt:nth-child(4) { animation-delay: 0.09s; }
.opt:nth-child(5) { animation-delay: 0.12s; } .opt:nth-child(6) { animation-delay: 0.15s; } .opt:nth-child(7) { animation-delay: 0.18s; } .opt:nth-child(8) { animation-delay: 0.21s; }
@keyframes opt-in { from { opacity: 0; transform: translateY(8px); } }
.opt .k {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; border: var(--bw) solid var(--ink); background: var(--paper);
}
@media (hover: hover) { .opt:hover { box-shadow: var(--shadow); transform: translate(-1px, -1px); } }
.opt[aria-pressed='true'] { background: var(--sun); box-shadow: var(--shadow); transform: translate(-1px, -1px); }
.opt[aria-pressed='true'] .k { background: var(--ink); color: var(--paper-3); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 17px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--paper-3);
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; animation: opt-in 0.35s var(--ease) both;
  transition: background 0.15s, transform 0.12s, box-shadow 0.12s;
}
.chip[aria-pressed='true'] { background: var(--sun); box-shadow: var(--shadow); transform: translate(-1px, -1px); }
.chip[aria-pressed='true']::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.chip:disabled { opacity: 0.35; }
.chip.exclusive { border-style: dashed; }
.picked { font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.q-actions { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; position: sticky; bottom: 0; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%); }

/* 만족도 눈금 */
.scale { display: grid; gap: 22px; justify-items: center; padding-top: 6px; }
.scale .bogi { width: 150px; height: 150px; }
.scale-label { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; text-align: center; min-height: 1.2em; }
.scale input[type='range'] { width: 100%; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; margin: 0; }
.scale input[type='range']::-webkit-slider-runnable-track { height: 10px; background: var(--paper-3); border: var(--bw) solid var(--ink); border-radius: 6px; }
.scale input[type='range']::-moz-range-track { height: 8px; background: var(--paper-3); border: var(--bw) solid var(--ink); border-radius: 6px; }
.scale input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -14px; border-radius: 50%; background: var(--tomato); border: var(--bw) solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.scale input[type='range']::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--tomato); border: var(--bw) solid var(--ink); }
.scale-ticks { width: 100%; display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 0 8px; margin-top: -12px; }

/* 자유 입력 */
.note-box { position: relative; }
.note-box textarea {
  width: 100%; min-height: 180px; resize: vertical; padding: 16px 16px 34px;
  border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-3);
  font-size: 16.5px; line-height: 1.65; outline: none;
}
.note-box textarea:focus { box-shadow: var(--shadow); }
.note-box .count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.examples { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.examples::-webkit-scrollbar { display: none; }
/* 마우스 환경은 가로 스와이프가 안 되니 줄바꿈으로 다 보여준다 */
@media (hover: hover) and (pointer: fine) { .examples { flex-wrap: wrap; overflow-x: visible; } }
.examples button { flex: none; border: 1.5px solid var(--ink); background: var(--paper-3); border-radius: 999px; padding: 8px 13px; font-size: 13.5px; font-weight: 600; }
.examples button::before { content: '# '; color: var(--ink-3); }
.privacy-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.privacy-hint::before { content: '!'; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 1.5px solid var(--ink); color: var(--ink); font: 800 11px/15px var(--f-sans); text-align: center; margin-top: 1px; }

/* 장면 슬레이트 */
.slate {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  background: var(--ink); color: var(--paper); animation: slate-in 0.3s ease-out both;
}
.slate.out { animation: slate-out 0.3s ease-in both; }
@keyframes slate-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slate-out { to { clip-path: inset(100% 0 0 0); } }
.slate-card { position: relative; width: min(100%, 420px); }
.slate-clap {
  height: 40px; border-radius: 8px 8px 0 0; transform-origin: 0 100%; animation: clap 0.5s 0.25s var(--ease) both;
  background: repeating-linear-gradient(-55deg, var(--paper) 0 18px, var(--ink) 18px 36px); border: 2.5px solid var(--paper);
}
@keyframes clap { 0% { transform: rotate(-14deg); } 60% { transform: rotate(0); } 75% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.slate-body { border: 2.5px solid var(--paper); border-top: 0; border-radius: 0 0 8px 8px; padding: 22px 22px 24px; display: grid; gap: 4px; }
.slate-body .label { color: var(--sun); }
.slate-body h2 { margin: 6px 0 8px; font-weight: 900; font-size: 46px; letter-spacing: -0.05em; line-height: 1.1; }
.slate-body p { margin: 0; color: #d9d2c4; font-size: 15px; }
.slate-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #b9b1a3; margin-top: 14px; padding-top: 10px; border-top: 1.5px dashed rgba(247, 242, 232, 0.3); }

/* ════════════ 로딩 (필름 카운트다운) ════════════ */
.loading { display: grid; place-items: center; text-align: center; }
.loading .col { display: grid; gap: 26px; justify-items: center; padding-top: 6vh; }
.countdown { position: relative; width: min(300px, 74vw); }
.countdown > img:first-child { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.countdown > .bogi { position: absolute; width: 120px; right: -46px; bottom: -42px; }
.loading h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.loading .status { min-height: 1.6em; color: var(--ink-2); font-size: 15px; animation: pop 0.3s var(--ease) both; }
.meter { width: min(320px, 100%); display: grid; gap: 8px; }
.meter .bar { height: 14px; border: var(--bw) solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper-3); }
.meter .bar i { display: block; height: 100%; width: 4%; background: var(--v); transition: width 0.4s var(--ease); background-image: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(0, 0, 0, 0.1) 6px 12px); border-right: var(--bw) solid var(--ink); }
.meter .row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.err { display: grid; gap: 12px; justify-items: center; }

/* ════════════ 예고편 고르기 ════════════ */
.pick h1 { margin: 12px 0 8px; font-size: clamp(32px, 9vw, 44px); }
.pick .ticket { width: 210px; margin: 6px 0 0 -6px; transform: rotate(-3deg); }
.pick .lead { margin: 0 0 20px; color: var(--ink-2); }
.trailers { display: grid; gap: 18px; margin-top: 20px; }
.trailer {
  position: relative; display: grid; grid-template-columns: 44px 1fr; overflow: hidden;
  border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--paper-3);
  box-shadow: var(--shadow-lg); animation: trailer-in 0.55s var(--ease) both;
}
.trailer:nth-child(2) { animation-delay: 0.12s; } .trailer:nth-child(3) { animation-delay: 0.24s; }
@keyframes trailer-in { 0% { opacity: 0; transform: translateY(16px); } 100% { transform: none; } }
.trailer .band {
  background: var(--v); border-right: var(--bw) solid var(--ink);
  display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl;
  font-weight: 800; font-size: 14px; letter-spacing: 0.1em;
}
.trailer .inner { padding: 16px; display: grid; gap: 6px; }
.trailer .kind { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--ink); }
.trailer .kind .label { color: var(--ink); }
.trailer .when { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.trailer .when .age { font-size: 42px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.trailer .when .yr { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.trailer h3 { margin: 4px 0 0; font-size: 19.5px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.38; }
.trailer .hook { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span { font-size: 13px; font-weight: 700; padding: 4px 11px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-3); }
.trailer .go { margin-top: 12px; }
.confirm { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1.5px dashed var(--ink); border-radius: 14px; background: var(--paper); animation: pop 0.25s var(--ease) both; }
.confirm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trailer.dim { opacity: 0.5; }
.demo-note { margin-top: 22px; padding: 12px 14px; border: 1.5px dashed var(--ink-3); border-radius: 14px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.demo-note b { color: var(--ink); }


/* ════════════ 이야기 읽기 ════════════ */
.reader { padding-top: 0; }
.tabs-wrap { position: sticky; top: 0; z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 10px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1.5px solid var(--ink); }
.tabs-wrap .col { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tab {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 5px;
  height: 42px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--paper-3);
  font-size: 14px; font-weight: 800;
}
.tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--v); border: 1.5px solid var(--ink); }
.tab .ic { width: 22px; height: 22px; margin: 0 -2px; }
.tab.locked .ic { opacity: 0.55; }
.tabs-wrap .logo-mark { width: 34px; height: 26px; }
.tab[aria-selected='true'] { background: var(--v); box-shadow: var(--shadow); transform: translate(-1px, -1px); }
.tab[aria-selected='true'] .dot { background: var(--ink); }
.tab.cmp[aria-selected='true'] { background: var(--ink); color: var(--paper); }
.tab.locked { color: var(--ink-3); border-style: dashed; }
.tab.free::after { content: 'FREE'; position: absolute; top: -9px; right: -5px; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; padding: 2px 5px; border-radius: 999px; background: var(--tomato); border: 1.5px solid var(--ink); color: var(--ink); line-height: 1.2; }

.story { display: grid; gap: 38px; padding-top: 24px; }
.s-hero { display: grid; gap: 10px; }
.s-hero .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.s-when { display: flex; align-items: flex-end; gap: 14px; margin-top: 6px; }
.s-when .age { font-size: clamp(88px, 27vw, 128px); font-weight: 900; line-height: 0.86; letter-spacing: -0.06em; }
.s-when .age small { font-size: 0.32em; margin-left: 4px; letter-spacing: 0; }
.s-when .stack { display: grid; gap: 2px; padding-bottom: 6px; }
.s-when .stack b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.s-when .stack span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.s-hero h1 { margin: 8px 0 0; font-size: clamp(27px, 7.6vw, 36px); line-height: 1.3; }
.s-hero .hook { margin: 2px 0 0; font-size: 17px; font-weight: 500; color: var(--ink-2); }

.profile { position: relative; border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--paper-3); overflow: hidden; box-shadow: var(--shadow-lg); }
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); background: var(--v); }
.profile-head .label { color: var(--ink); }
.profile dl { margin: 0; display: grid; grid-template-columns: 78px 1fr; }
.profile dt, .profile dd { margin: 0; padding: 12px 16px; border-top: 1.5px dashed var(--line); }
.profile dt { font-size: 13px; font-weight: 700; color: var(--ink-2); padding-right: 0; }
.profile dd { font-weight: 700; font-size: 15.5px; line-height: 1.5; letter-spacing: -0.015em; }
.profile dl > :nth-child(1), .profile dl > :nth-child(2) { border-top: 0; }
.profile .barcode { height: 26px; margin: 0 16px 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: 0.8; }
.profile .foot-row { display: flex; justify-content: space-between; padding: 0 16px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); }

.prose { margin: 0; font-size: 17px; line-height: 1.85; letter-spacing: -0.01em; }
.prose + .prose { margin-top: 0.8em; }
.lede { font-size: 18.5px; font-weight: 600; line-height: 1.75; }

.day-list { list-style: none; margin: 0; padding: 0; }
.day-list li { display: grid; grid-template-columns: 60px 1fr; border-top: 1.5px dashed var(--line); }
.day-list li:first-child { border-top: 0; }
.day-list time { padding: 12px 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.day-list li p { margin: 0; padding: 10px 0 11px; font-size: 15.5px; line-height: 1.7; }

.curious { display: grid; gap: 10px; }
.curious button {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 13px 14px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-3);
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.curious button > .ic { width: 30px; height: 30px; }
.curious button .arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.curious button .arrow .ic { width: 30px; height: 30px; }
.curious button.seen { background: var(--paper-2); }
@media (hover: hover) { .curious button:hover { box-shadow: var(--shadow); transform: translate(-1px, -1px); } }

.share-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.disclaim { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; padding: 12px 0 0; border-top: 1.5px dashed var(--line); }


/* 잠긴 미래 */
.locked-view { display: grid; gap: 22px; padding-top: 24px; }
.lockcard { position: relative; border: var(--bw) solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow-lg); }
.lockcard .top-band { height: 14px; background: var(--v); border-bottom: var(--bw) solid var(--ink); }
.lockcard .inner { padding: 18px; display: grid; gap: 8px; }
.lockcard .ghost-lines { display: grid; gap: 9px; padding: 0 18px 20px; }
.lockcard .ghost-lines i { height: 11px; border-radius: 6px; background: repeating-linear-gradient(-45deg, var(--paper-2) 0 6px, transparent 6px 12px); border: 1px solid var(--line); }
.lockcard .ghost-lines i:nth-child(2) { width: 86%; } .lockcard .ghost-lines i:nth-child(3) { width: 64%; } .lockcard .ghost-lines i:nth-child(4) { width: 78%; }
.lockcard .seal { position: absolute; right: 18px; bottom: 26px; transform: rotate(-6deg); }
.lockcard .seal .ic { width: 18px; height: 18px; margin: -3px 0; }

/* 페이월 */
.paywall { position: relative; display: grid; gap: 16px; padding: 24px 18px 22px; border: var(--bw) solid var(--ink); border-radius: 22px; background: var(--paper-3); box-shadow: var(--shadow-lg); }
.story > .paywall, .part > .paywall { margin-top: 44px; }
.locked-view .paywall > .bogi { display: none; } /* 잠긴 화면엔 이미 말하는 보기가 있다 */
.paywall > .bogi { position: absolute; width: 92px; right: 10px; top: -70px; }
.paywall .ticket { width: min(300px, 100%); margin: 2px 0 -4px -6px; }
.paywall h2 { margin: 0; font-size: 26px; }
.paywall .mini { display: grid; gap: 8px; }
.paywall .mini div { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: stretch; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); }
.paywall .mini div::before { content: ''; border-radius: 5px; background: var(--v); border: 1.5px solid var(--ink); }
.paywall .mini b { display: block; font-size: 15px; letter-spacing: -0.02em; line-height: 1.4; }
.paywall .mini span { font-size: 13.5px; color: var(--ink-2); }
.paywall ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.paywall li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 15px; line-height: 1.5; }
.paywall li::before { content: ''; width: 0; height: 0; margin-top: 6px; border-left: 9px solid var(--tomato); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1.5px dashed var(--ink); }
.price .won { flex: none; margin-left: auto; white-space: nowrap; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.price .won small { font-size: 0.5em; margin-left: 2px; }
.demo-pay { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sun); border: var(--bw) solid var(--ink); font-size: 13px; line-height: 1.5; font-weight: 700; }

/* 비교 */
.compare { display: grid; gap: 38px; padding-top: 24px; }
.cmp-grid { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding: 4px 6px 12px 4px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.cmp-col { scroll-snap-align: start; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--paper-3); overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow); }
.cmp-col .h { padding: 12px 14px; background: var(--v); border-bottom: var(--bw) solid var(--ink); }
.cmp-col .h .age { font-size: 36px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.1; margin-top: 2px; }
.cmp-col .h b { display: block; font-size: 14.5px; line-height: 1.38; margin-top: 6px; letter-spacing: -0.02em; }
.cmp-col dl { margin: 0; padding: 4px 14px 12px; }
.cmp-col dt { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 10px; }
.cmp-col dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; font-weight: 700; }
.forkmap { display: grid; gap: 0; }
.forkmap .root { justify-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; }
.forkmap .branch { position: relative; margin-left: 22px; padding: 18px 0 0 26px; }
.forkmap .branch::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2.5px; background: var(--ink); }
.forkmap .branch:last-child::before { bottom: auto; height: 42px; }
.forkmap .branch::after { content: ''; position: absolute; left: 0; top: 40px; width: 22px; height: 2.5px; background: var(--ink); }
.forkmap .node { border: var(--bw) solid var(--ink); border-radius: 16px; background: var(--paper-3); padding: 12px 14px; display: grid; gap: 4px; box-shadow: 4px 4px 0 var(--v), 4px 4px 0 1.5px var(--ink); }
.forkmap .node .when { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.forkmap .node b { font-size: 15.5px; letter-spacing: -0.02em; line-height: 1.4; }
.forkmap .node .choice { font-size: 15px; }
.forkmap .node .end { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.gm { display: grid; gap: 12px; }
.gm-card { border: var(--bw) solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper-3); }
.gm-card .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: var(--bw) solid var(--ink); background: var(--v); }
.gm-card .h b { font-size: 14.5px; letter-spacing: -0.02em; }
.gm-card .one { margin: 0; padding: 12px 14px 4px; font-size: 15.5px; font-weight: 600; }
.gm-card .cols { display: grid; grid-template-columns: 1fr 1fr; }
.gm-card ul { list-style: none; margin: 0; padding: 8px 14px 14px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.gm-card .cols > div + div { border-left: 1.5px dashed var(--line); }
.gm-card li { display: grid; grid-template-columns: 16px 1fr; gap: 4px; }
.gm-card .plus li::before { content: '+'; font-weight: 800; color: var(--ink); }
.gm-card .minus li::before { content: '−'; font-weight: 800; color: var(--ink-3); }
.gm-card .colh { padding: 4px 14px 0; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-3); }
.constant { position: relative; padding: 20px 18px; border-radius: 16px; background: var(--sun); border: var(--bw) solid var(--ink); }
.constant p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.8; }
.nudges { counter-reset: n; display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nudges li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border: var(--bw) solid var(--ink); border-radius: 16px; background: var(--paper-3); }
.nudges li::before { content: counter(n, decimal-leading-zero); font-size: 24px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; color: var(--tomato); }
.nudges b { display: block; font-size: 16px; letter-spacing: -0.02em; }
.nudges p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ════════════ 레이어 (시트, 모달) ════════════ */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(26, 23, 19, 0.5); animation: fade 0.2s both; display: flex; align-items: flex-end; justify-content: center; }
.scrim.out { animation: fade 0.2s reverse both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border: var(--bw) solid var(--ink); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom)); animation: sheet-in 0.36s var(--ease) both;
}
.scrim.out .sheet { animation: sheet-in 0.2s reverse both; }
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--ink-3); margin: 0 auto 12px; }
.sheet .x { position: absolute; right: 12px; top: 12px; }
@media (min-width: 620px) {
  .scrim { align-items: center; }
  .sheet { border-radius: 24px; border-bottom: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg); }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
}
.scene-view { display: grid; gap: 14px; padding-top: 6px; }
.scene-view h2 { margin: 0; font-size: 28px; }
.scene-view .scene-q { margin: -8px 52px 0 0; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.sheet-body > :first-child > .label:first-child { display: block; padding-right: 56px; }
.scene-view .aftermath { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; margin: 0; padding-top: 14px; border-top: 1.5px dashed var(--ink); font-size: 15px; }
.legal h2 { margin: 6px 0 4px; font-size: 24px; }
.legal h3 { margin: 18px 0 4px; font-size: 16px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-left: 18px; margin: 4px 0; }
.card-preview { display: grid; gap: 12px; }
.card-preview img { width: 100%; height: auto; border: var(--bw) solid var(--ink); border-radius: 14px; }
.card-preview .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; transform: translateX(-50%);
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700;
  border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--sun);
  animation: pop 0.3s var(--ease) both; white-space: nowrap;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ════════════ v2 결과: PART 순서로 공개 ════════════ */
.part-no {
  display: inline-flex; align-items: center; justify-self: start; width: max-content;
  padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em;
}
.part { display: grid; gap: 18px; }
.part-h { display: grid; gap: 6px; padding-top: 6px; }
.part-h h2 { margin: 0; font-size: clamp(25px, 7vw, 30px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.25; }
.part-h p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.rest { display: grid; gap: 52px; }
.rest:not(.open) { display: none; }
.rest.open { animation: screen-in 0.5s var(--ease) both; }
.s-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.down { width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.gate { margin-top: -18px; animation: pop 0.4s var(--ease) 2.4s both; }

/* PART 2: 극장 스크린 같은 한 장면 */
.opening { position: relative; display: grid; gap: 12px; padding: 30px 22px 24px; border-radius: 22px; background: var(--ink); color: var(--paper); overflow: hidden; }
.opening::before, .opening::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 10px, var(--paper) 10px 20px) center / 100% 6px no-repeat; opacity: 0.8; }
.opening::before { top: 0; }
.opening::after { bottom: 0; }
.opening .part-no { background: var(--tomato); color: var(--ink); }
.op-when { margin: 6px 0 2px; font-size: 14px; font-weight: 800; color: var(--sun); letter-spacing: 0.01em; }
.op-line { margin: 0; font-size: 18.5px; font-weight: 600; line-height: 1.65; letter-spacing: -0.02em; animation: line-in 0.7s var(--ease) both; animation-delay: calc(0.35s + var(--i) * 0.5s); }
.op-line:last-of-type { color: var(--v); }
.opening.played .op-line, .opening.played .op-you { animation: none; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.op-you { display: grid; gap: 2px; margin-top: 8px; padding-top: 14px; border-top: 1.5px dashed rgba(247, 242, 232, 0.35); animation: line-in 0.7s var(--ease) both; animation-delay: calc(0.5s + var(--i) * 0.5s); }
.op-you span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: #b9b1a3; }
.op-you b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

/* PART 3: 그 미래의 너 */
.part .s-when { margin-top: 0; }
.part .s-when .stack b { font-size: 18px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.35; font-variant-numeric: normal; }
.part .s-when .stack span { font-size: 14px; font-weight: 500; }
.changed { border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--paper-3); overflow: hidden; }
.ch-head, .ch-row { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 8px; padding: 12px 14px; }
.ch-head { background: var(--v); border-bottom: var(--bw) solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.ch-row + .ch-row { border-top: 1.5px dashed var(--line); }
.ch-row p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.ch-row p:first-child { color: var(--ink-2); }
.ch-row p:last-child { font-weight: 800; letter-spacing: -0.02em; }
.ch-row i { justify-self: center; width: 0; height: 0; border-left: 9px solid var(--tomato); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.msg { display: grid; gap: 10px; padding: 14px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--paper-3); box-shadow: var(--shadow); }
.msg-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.msg-top .ic { width: 26px; height: 26px; }
.msg-top b { font-weight: 800; }
.msg-top span { margin-left: auto; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.msg p { margin: 0; padding: 11px 14px; border-radius: 4px 16px 16px 16px; background: var(--sun); border: 1.5px solid var(--ink); font-size: 15.5px; line-height: 1.55; font-weight: 500; }

/* PART 4: 선택과 사건의 연결 */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.path li { position: relative; display: grid; gap: 6px; padding: 14px 16px; border: var(--bw) solid var(--ink); border-radius: 16px; background: var(--paper-3); }
.path li + li::before { content: ''; position: absolute; left: 28px; top: -32px; width: 2.5px; height: 30px; background: var(--ink); }
.pt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-kind { padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 800; background: var(--paper-2); }
.k-choice .pt-kind { background: var(--tomato); }
.k-chance .pt-kind { background: var(--sun); }
.k-person .pt-kind { background: var(--lav); }
.k-world .pt-kind { background: var(--mint); }
.k-setback .pt-kind { background: var(--paper); border-style: dashed; }
.pt-when { font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.path b { font-size: 17px; letter-spacing: -0.025em; }
.path p { margin: 0; font-size: 15.5px; line-height: 1.7; }
.path .pt-led { margin-top: 4px; padding-top: 9px; border-top: 1.5px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.path .pt-led::before { content: '→ '; color: var(--tomato); font-weight: 900; }

/* PART 5: 그 사이 세상은 (사실·가정·영향을 나눠서) */
.world { display: grid; gap: 10px; padding: 16px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--paper-3); }
.w-top { display: grid; gap: 8px; justify-items: start; }
.w-top b { font-size: 17.5px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.35; }
.world dl { margin: 0; display: grid; gap: 4px; }
.world dt { margin-top: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--ink-3); }
.world dt.assume { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--lav); color: var(--ink); border: 1.5px solid var(--ink); }
.world dd { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.world dt.you { color: var(--ink); }
.world dd.you { font-size: 15.5px; font-weight: 700; color: var(--ink); padding: 10px 12px; border-radius: 12px; background: var(--paper); border-left: 4px solid var(--v); }
.w-src { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-3); }

/* PART 6: 지금의 너에게 + 가능성 카드 */
.letter { position: relative; padding: 22px 18px 20px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--paper-3); margin-top: 28px; }
.letter > .bogi { position: absolute; width: 74px; right: 12px; top: -54px; }
.letter p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.85; letter-spacing: -0.02em; }
.possible { position: relative; display: grid; gap: 8px; padding: 22px 18px 18px; border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--paper-3); box-shadow: var(--shadow-lg); overflow: hidden; }
.possible::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--v); border-bottom: var(--bw) solid var(--ink); }
.possible .label { margin-top: 4px; }
.possible > b { font-size: 26px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.25; }
.possible > p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.possible .try { display: grid; gap: 2px; margin: 6px 0 8px; padding: 12px 14px; border: 1.5px dashed var(--ink); border-radius: 14px; font-weight: 700; font-size: 15px; }
.possible .try span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; color: var(--tomato); }
/* 행운 부적: 노란 종이에 빨간 글씨 */
.charm { display: grid; grid-template-columns: 92px 1fr; gap: 14px 16px; padding: 18px; border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--paper-3); box-shadow: var(--shadow-lg); }
.charm-paper { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 14px 0 16px; background: var(--sun); color: var(--tomato); border: var(--bw) solid var(--ink); border-radius: 6px; outline: 2px solid var(--tomato); outline-offset: -8px; box-shadow: 4px 4px 0 var(--ink); }
.charm-paper i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--tomato); color: var(--sun); font: normal 900 19px/1 var(--f-sans); }
.charm-paper b { writing-mode: vertical-rl; font-size: 30px; font-weight: 900; letter-spacing: 0.1em; }
.charm-body { display: grid; gap: 4px; align-content: start; }
.charm-name { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; }
.charm-body p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.charm dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: 14px; }
.charm dt { color: var(--ink-3); font-weight: 700; }
.charm dd { margin: 0; font-weight: 800; }
.charm-share, .charm .btn { grid-column: 1 / -1; }
.charm-share { margin: 0; padding: 10px 12px; border: 1.5px dashed var(--ink); border-radius: 12px; font-size: 14px; font-weight: 700; }

/* PART 7: 다른 두 인생 미리보기 */
.paywall .part-no { margin-bottom: -4px; }
.peeks { display: grid; gap: 10px; }
.peek { display: grid; gap: 8px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper); border-left: 8px solid var(--v); }
.pk-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pk-scene { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.pk-q { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.pk-q::before { content: 'Q. '; color: var(--tomato); }
.lk-scene { margin: 6px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 15.5px; font-weight: 600; line-height: 1.6; }
.lk-q { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.lk-q::before { content: 'Q. '; color: var(--tomato); }

/* PART 1: 지금의 너 */
.reading-screen > .col { display: grid; gap: 18px; }
.reading-h { margin: 0; font-size: clamp(34px, 10vw, 48px); }
.reading-wrap { position: relative; margin-top: 30px; }
.reading-wrap > .bogi { position: absolute; width: 104px; right: 6px; top: -84px; z-index: 1; }
.reading { display: grid; gap: 14px; padding: 24px 18px 18px; border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--paper-3); box-shadow: var(--shadow-lg); }
.sheet .reading { box-shadow: none; margin-top: 10px; }
.rd-line { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.75; letter-spacing: -0.02em; animation: line-in 0.7s var(--ease) both; animation-delay: calc(0.2s + var(--i) * 0.45s); }
.tension { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: stretch; gap: 6px; margin-top: 4px; }
.tension > div { display: grid; gap: 4px; align-content: start; padding: 12px; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--sun); }
.tension > div:last-child { background: var(--mint); }
.tension b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.tension .label { color: var(--ink); }
.tension i { position: relative; align-self: center; justify-self: center; width: 18px; height: 2.5px; background: var(--ink); }
.tension i::before, .tension i::after { content: ''; position: absolute; top: -4.5px; border: 5.5px solid transparent; }
.tension i::before { left: -9px; border-right-color: var(--ink); }
.tension i::after { right: -9px; border-left-color: var(--ink); }
.clues { display: grid; gap: 8px; padding-top: 12px; border-top: 1.5px dashed var(--ink); }
.clues .label { margin: 0; }
.clue { display: grid; grid-template-columns: 1fr 18px auto; align-items: center; gap: 6px; font-size: 14px; }
.clue span { color: var(--ink-2); }
.clue i { justify-self: center; width: 0; height: 0; border-left: 8px solid var(--tomato); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.clue b { font-weight: 800; text-align: right; }
.rd-note { margin: 0; }
.link-btn { display: block; justify-self: start; margin: -8px 0 18px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
