.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.case-main > section + section { margin-top: var(--gap-section); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-sub { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }

/* ── 사건 개요 ─────────────────────────────────────────── */

.overview {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(40px, 6vw, 88px);
}
.case-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.case-sub { margin-top: 22px; font-size: var(--step-1); color: var(--ink-2); }
.report {
  display: grid;
  gap: 1.1em;
  margin-top: clamp(36px, 4vw, 56px);
  max-width: 60ch;
  font-family: var(--font-doc);
  font-size: var(--step-1);
  line-height: 1.8;
}
[data-theme='mayor'] .report { line-height: 1.7; }
.report p:first-child { font-weight: 700; }
.orders {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 28px clamp(20px, 3vw, 36px);
  background: var(--surface);
  max-width: 60ch;
}
.orders h2 { font-size: var(--step-1); font-weight: 600; }
.orders ol { display: grid; gap: 10px; margin-top: 14px; padding-left: 1.4em; list-style: decimal; }
.orders li::marker { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.scene { position: sticky; top: 92px; align-self: start; }
.scene-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0b0807; }
.scene-frame svg { width: 100%; height: 100%; }
.scene figcaption { margin-top: 12px; color: var(--ink-2); font-size: var(--step--1); }

.blood-path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.scene.is-shown .blood-path { animation: write 1.2s var(--ease-out) forwards; animation-delay: var(--delay, 0s); }
.blood-drip { transform: scaleY(0.2); transform-box: fill-box; transform-origin: 50% 0; }
.scene.is-shown .blood-drip { animation: drip 7s cubic-bezier(0.3, 0, 0.2, 1) forwards; animation-delay: var(--delay, 1.4s); }
@keyframes write { to { stroke-dashoffset: 0; } }
@keyframes drip { to { transform: scaleY(1); } }

.bulb-swing { transform-origin: 300px 0; animation: bulb 6s var(--ease-in-out) infinite; }
@keyframes bulb { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }

@media (max-width: 900px) {
  .overview { grid-template-columns: 1fr; }
  .scene { position: static; order: -1; margin: 0 calc(var(--gutter) * -1); }
  .scene-frame { aspect-ratio: 4 / 3; }
  .scene figcaption { padding: 0 var(--gutter); }
}

/* ── 관련 인물 ─────────────────────────────────────────── */

.people-head { display: grid; gap: 6px; }

.victim {
  display: grid;
  grid-template-columns: auto minmax(0, 460px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
}
.victim-photo {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform 200ms var(--ease-out);
}
.victim-photo:active { transform: scale(0.98); }
.victim-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.victim-state {
  display: inline-block;
  margin-left: 16px;
  padding: 3px 10px 4px;
  vertical-align: middle;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-ink);
  background: var(--accent);
}
.victim-line { margin-top: 16px; font-size: var(--step-1); }
.victim-notes { margin-top: 18px; display: grid; gap: 6px; color: var(--ink-2); font-family: var(--font-doc); line-height: 1.75; }
.victim .btn { margin-top: 26px; }

/* 404호: 영정처럼 흑백 사진 + 근조 리본 */
[data-theme='room404'] .victim-photo {
  width: clamp(190px, 20vw, 240px);
  padding: 12px;
  background: #0a0706;
  box-shadow: 0 0 0 1px #3a2a21;
}
[data-theme='room404'] .victim-photo canvas { width: 100%; height: auto; filter: grayscale(1) contrast(1.1) brightness(0.92); background: #39342f; }
[data-theme='room404'] .victim-photo::before,
[data-theme='room404'] .victim-photo::after {
  content: '';
  position: absolute;
  top: 0;
  width: 34%; height: 34%;
  background: #050303;
}
[data-theme='room404'] .victim-photo::before { left: 0; clip-path: polygon(0 0, 46% 0, 0 46%); }
[data-theme='room404'] .victim-photo::after { right: 0; clip-path: polygon(54% 0, 100% 0, 100% 46%); }

/* 사라진 시장: 실종 전단 */
[data-theme='mayor'] .victim-photo {
  width: clamp(220px, 24vw, 290px);
  padding: 18px 18px 22px;
  background: #ece9e0;
  color: #16181b;
  text-align: left;
  transform: rotate(-1.5deg);
}
[data-theme='mayor'] .victim-photo::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  width: 54px; height: 22px;
  margin-left: -27px;
  background: rgba(220, 210, 170, 0.75);
  transform: rotate(3deg);
}
.poster-head { font-family: 'Black Han Sans', sans-serif; font-size: 34px; line-height: 1; color: #b3201f; letter-spacing: 0.02em; }
.poster-photo { margin-top: 12px; background: #b9c1c4; }
.poster-photo canvas { width: 100%; height: auto; }
.poster-name { margin-top: 12px; font-weight: 600; font-size: 19px; }
.poster-line { margin-top: 4px; font-size: 14px; line-height: 1.5; color: #3d4246; }

.lineup {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  background: var(--wall);
  overflow: hidden;
}
.lineup-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.lineup-chart line { stroke: rgba(235, 235, 225, 0.16); stroke-width: 1; }
.lineup-chart line.major { stroke: rgba(235, 235, 225, 0.3); stroke-width: 2; }
.lineup-chart text { fill: rgba(235, 235, 225, 0.5); font: 600 13px var(--font-ui); }
.lineup-light {
  position: absolute;
  top: -30%; left: 50%;
  width: 90%; height: 120%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff6df;
  opacity: 0.06;
  filter: blur(80px);
  pointer-events: none;
}
.lineup-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 3vw, 48px);
  padding-top: clamp(60px, 7vw, 100px);
  padding-bottom: 0;
}
.suspect {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.suspect-figure { position: relative; width: clamp(84px, 13vw, 176px); transition: filter 220ms ease, transform 220ms var(--ease-out); filter: brightness(0.86); }
.suspect-figure canvas { width: 100%; height: auto; }
.suspect:active .suspect-figure { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .suspect:hover .suspect-figure { filter: brightness(1.05); }
}
.suspect:focus-visible { outline-offset: 8px; }
.placard {
  width: 100%;
  margin-top: 0;
  padding: 16px 8px 18px;
  background: #0d0e0e;
  display: grid;
  gap: 2px;
}
.placard-letter { font-size: var(--step--1); color: #9aa19e; font-weight: 500; }
.placard-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.placard-job { font-size: 14px; color: #9aa19e; line-height: 1.4; }

/* ── 용의자 진술 ───────────────────────────────────────── */

.statement-list { display: grid; gap: clamp(56px, 7vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.statement {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.statement-who { position: sticky; top: 96px; align-self: start; display: grid; gap: 12px; justify-items: start; }
.statement-who canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.statement-letter { color: var(--ink-2); font-size: var(--step--1); }
.statement-who h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1; letter-spacing: -0.02em; }
.transcript { display: grid; gap: 4px; max-width: 64ch; }
.qa {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: 12px;
  padding: 18px 22px;
  background: var(--surface);
}
.qa dt { font-weight: 600; color: var(--ink-2); }
.qa dd { font-family: var(--font-doc); line-height: 1.75; min-height: 1.75em; }
.qa.is-answer { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.qa.is-answer dt { color: var(--accent); }
.qa .typed { white-space: pre-wrap; }
.qa .caret {
  display: inline-block;
  width: 0.5em; height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: caret 0.9s steps(2, jump-none) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

@media (max-width: 760px) {
  .statement { grid-template-columns: 1fr; }
  .statement-who { position: static; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .statement-who canvas { width: 64px; height: 64px; grid-row: span 2; }
  .qa { padding: 14px 16px; grid-template-columns: 2em minmax(0, 1fr); }
}

/* ── 증거물 ────────────────────────────────────────────── */

.evidence {
  padding: clamp(72px, 9vw, 140px) 0 clamp(80px, 10vw, 160px);
  background: var(--field);
}
.evidence-lead {
  margin-top: 22px;
  max-width: 34ch;
  font-family: var(--font-doc);
  font-size: clamp(22px, 1.6vw + 12px, 32px);
  line-height: 1.45;
  font-weight: 700;
}
.evidence-meta { margin-top: 14px; color: var(--ink-2); }
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 6vw, 88px);
  align-items: start;
}
.ev { display: grid; gap: 18px; min-width: 0; }
.ev-tag { display: grid; gap: 2px; }
.ev-no { font-size: var(--step--1); color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-tag h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.ev-found { color: var(--ink-2); font-size: var(--step--1); }
.ev-text { max-width: 52ch; line-height: 1.7; }
.ev-decisive { color: var(--accent); font-weight: 600; }

[data-theme='room404'] .ev-roomservice { grid-column: 1 / span 5; }
[data-theme='room404'] .ev-accesslog { grid-column: 7 / span 5; margin-top: clamp(0px, 8vw, 120px); }
[data-theme='room404'] .ev-tool { grid-column: 2 / span 10; }

[data-theme='mayor'] .ev-torn { grid-column: 1 / span 6; }
[data-theme='mayor'] .ev-phone { grid-column: 8 / span 4; }
[data-theme='mayor'] .ev-prints { grid-column: 1 / span 5; }
[data-theme='mayor'] .ev-key { grid-column: 7 / span 6; margin-top: clamp(0px, 5vw, 80px); }
[data-theme='mayor'] .ev-usb { grid-column: 1 / span 6; }
[data-theme='mayor'] .ev-ledger { grid-column: 7 / span 6; }

@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .board .ev { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* 종이 문서 */
.paper {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(22px, 3vw, 34px);
}
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.paper th, .paper td { padding: 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, var(--paper-ink) 18%, transparent); }
.paper th { width: 38%; color: var(--paper-ink-2); font-weight: 500; }
.paper td { font-weight: 600; }

/* 룸서비스 주문표 */
.slip { transform: rotate(-1.2deg); padding-top: 40px; }
.slip::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--field);
}
.slip-head { text-align: center; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 2px solid var(--paper-ink); }
.slip-hotel { font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 20px; letter-spacing: 0.14em; color: #7a5a2c; }
.slip-title { margin-top: 6px; font-size: 15px; font-weight: 600; }
.slip-sign { margin-top: 18px; display: flex; justify-content: space-between; align-items: end; font-size: 14px; color: var(--paper-ink-2); }
.slip-sign b { font-family: 'Nanum Myeongjo', serif; font-size: 26px; font-weight: 700; color: #22324f; transform: rotate(-6deg); display: inline-block; }

/* 출입 기록 영수증 */
.receipt {
  max-width: 380px;
  margin-left: auto;
  padding-bottom: 46px;
  background: #f2efe8;
  transform: rotate(1deg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px));
  font-family: var(--font-ui);
}
.receipt-head { text-align: center; display: grid; gap: 2px; font-size: 14px; }
.receipt-head strong { font-size: 17px; }
.receipt-room { margin: 18px 0 8px; font-size: 14px; color: var(--paper-ink-2); display: flex; justify-content: space-between; }
.receipt table th, .receipt table td { width: auto; padding: 9px 0; font-size: 15px; }
.receipt table thead th { font-weight: 600; color: var(--paper-ink-2); font-size: 13px; }
.receipt-end { margin-top: 16px; text-align: center; font-size: 13px; color: var(--paper-ink-2); }

/* 증거 사진 (드라이버) */
.photo { position: relative; background: #121212; aspect-ratio: 16 / 7; overflow: hidden; }
.photo svg { width: 100%; height: 100%; }
.photo-tag {
  position: absolute;
  right: 4%; top: 10%;
  padding: 10px 14px;
  background: #f1e9d8;
  color: #1f1915;
  font-size: 13px;
  line-height: 1.5;
  transform: rotate(3deg);
}
.photo-tag b { display: block; font-size: 15px; }
.finding {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 16px;
  padding: 18px 22px;
  background: var(--paper);
  color: var(--paper-ink);
  max-width: 640px;
}
.finding dt { color: var(--paper-ink-2); font-weight: 500; }
.finding dd { font-family: var(--font-doc); font-weight: 700; }

/* 찢어진 기밀 문서 */
.torn {
  /* 오른쪽과 아래가 손으로 찢긴 가장자리. 잡음으로 흔든 사각형을 마스크로 쓴다. */
  padding-right: 14%;
  padding-bottom: 64px;
  -webkit-mask: var(--torn-mask) 0 0 / 100% 100% no-repeat;
  mask: var(--torn-mask) 0 0 / 100% 100% no-repeat;
  --torn-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 400 300%27 preserveAspectRatio=%27none%27%3E%3Cfilter id=%27f%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.035%27 numOctaves=%273%27 seed=%274%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 scale=%2726%27/%3E%3C/filter%3E%3Crect x=%27-40%27 y=%27-40%27 width=%27420%27 height=%27318%27 fill=%27white%27 filter=%27url(%23f)%27/%3E%3C/svg%3E");
}
.torn-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.torn-title { font-family: 'Black Han Sans', sans-serif; font-size: 24px; line-height: 1.2; }
.torn-class { padding: 4px 10px; border: 3px solid var(--stamp); color: var(--stamp); font-weight: 600; transform: rotate(6deg); white-space: nowrap; }
.torn-rows { margin-top: 22px; display: grid; gap: 14px; }
.torn-row { display: grid; grid-template-columns: 7em 1fr; gap: 12px; align-items: center; font-size: 15px; }
.torn-row span { color: var(--paper-ink-2); }
.smudge { height: 12px; background: var(--paper-ink); opacity: 0.55; filter: blur(2.5px); border-radius: 6px; }

/* 휴대전화 */
.phone {
  width: min(100%, 270px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: #0b0c0d;
  box-shadow: inset 0 0 0 2px #2b2e31;
}
.phone-screen { position: relative; border-radius: 22px; overflow: hidden; background: #f2f3f3; color: #15171a; min-height: 420px; padding: 34px 16px 16px; }
.phone-screen h4 { font-size: 20px; font-weight: 600; }
.phone-day { margin-top: 16px; font-size: 13px; color: #5a6066; font-weight: 600; }
.call { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid #d9dcde; font-variant-numeric: tabular-nums; }
.call b { font-weight: 600; color: #b3201f; }
.call small { color: #5a6066; font-size: 13px; }
.call time { grid-row: span 2; align-self: center; font-size: 14px; color: #3c4146; }
.call.is-broken { color: #9aa0a5; }
.call.is-broken b { color: #9aa0a5; font-weight: 500; }
.phone-cracks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 발자국 */
.prints { position: relative; aspect-ratio: 5 / 4; background: #3a3b39; overflow: hidden; }
.prints svg { width: 100%; height: 100%; }
.prints-legend { display: grid; gap: 6px; font-size: 15px; }
.prints-legend b { font-weight: 600; }

/* 열쇠 */
.key-shot { aspect-ratio: 16 / 9; background: #2a2c2b; overflow: hidden; }
.key-shot svg { width: 100%; height: 100%; }

/* 잠금 장치 */
.lockbox { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); background: #0d0e0f; }
.lockbox-label { font-weight: 600; }
.pin { position: relative; display: flex; gap: 10px; width: max-content; }
.pin input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  font-size: 16px;
  caret-color: transparent;
}
.pin-cell {
  width: 52px; height: 64px;
  display: grid; place-items: center;
  background: #1c1f21;
  color: var(--seg-on);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px #2d3236;
  transition: box-shadow 140ms ease;
}
.pin.is-focus .pin-cell.is-next { box-shadow: inset 0 0 0 2px var(--accent); }
.pin.is-wrong { animation: shake 360ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.lockbox-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lockbox .btn { min-height: 64px; }
.lockbox-msg { min-height: 1.6em; font-size: var(--step--1); color: var(--ink-2); }
.lockbox-msg.is-error { color: #ff7b6e; }

/* USB */
.usb-shot { aspect-ratio: 16 / 7; background: #1f2224; overflow: hidden; }
.usb-shot svg { width: 100%; height: 100%; }
.files { display: grid; gap: 4px; }
.file { background: #0d0e0f; padding: 18px 20px; }
.file h4 { font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.file h4 small { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.file table { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.file th, .file td { padding: 8px 0; text-align: left; vertical-align: top; border-top: 1px solid #2a2e31; }
.file th { width: 9em; color: var(--ink-2); font-weight: 500; }
.file p { margin-top: 10px; line-height: 1.7; }
.file.is-new { animation: file-in 600ms var(--ease-out) both; }
.file.is-new + .file.is-new { animation-delay: 120ms; }
@keyframes file-in { from { opacity: 0; transform: translateY(10px); } }

/* 금고와 장부 */
.safe {
  position: relative;
  aspect-ratio: 1 / 0.82;
  background: #2b2f31;
  padding: 7%;
  box-shadow: inset 0 0 0 6px #1d2022;
  perspective: 1200px;
}
.safe-inside { position: absolute; inset: 7%; background: #0c0d0e; display: grid; place-items: center; }
.safe-inside::after { content: ''; width: 58%; height: 40%; background: #4d2c1b; box-shadow: inset 0 0 0 4px #3b2214; }
.safe-door {
  position: absolute;
  inset: 7%;
  background: #3c4245;
  box-shadow: inset 0 0 0 3px #50585c, inset 0 0 0 14px #353a3d;
  transform-origin: left center;
  transition: transform 1.2s var(--ease-in-out);
  display: grid;
  place-items: center;
}
.safe.is-open .safe-door { transform: rotateY(-100deg); }
.safe-dial {
  width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  background: #23272a;
  box-shadow: 0 0 0 6px #585f63, inset 0 0 0 10px #2d3236;
}
.safe-handle { position: absolute; right: 13%; top: 50%; width: 9%; height: 26%; margin-top: -13%; background: #6f777b; border-radius: 4px; }

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e7dfcc;
  color: #1d1a16;
}
.ledger-page { padding: 22px 20px 26px; display: grid; align-content: start; gap: 10px; font-family: 'Nanum Myeongjo', serif; }
.ledger-page + .ledger-page { box-shadow: inset 10px 0 14px -10px rgba(0, 0, 0, 0.35); }
.ledger-page h4 { font-family: var(--font-ui); font-size: 13px; color: #6b6153; font-weight: 600; }
.ledger-line { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid rgba(29, 26, 22, 0.15); }
.ledger-line span { font-size: 13px; color: #6b6153; font-family: var(--font-ui); }
.ledger-line b { font-weight: 700; font-size: 17px; }
.ledger.is-new { animation: file-in 700ms var(--ease-out) both; animation-delay: 700ms; }

@media (max-width: 520px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger-page + .ledger-page { box-shadow: inset 0 10px 14px -10px rgba(0, 0, 0, 0.35); }
  .pin-cell { width: 46px; height: 58px; }
}

/* ── 결정적 반전 ───────────────────────────────────────── */

.twist { background: var(--paper); color: var(--paper-ink); }
.twist-inner { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.twist h2 { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; color: var(--stamp, var(--accent)); }
.twist-by { margin-top: 14px; color: var(--paper-ink-2); }
.twist-body { display: grid; gap: 1em; font-size: var(--step-1); line-height: 1.75; max-width: 60ch; }
.twist.is-new { animation: view-in 900ms var(--ease-out) both; }
.case-main > .twist { margin-top: 0; }

@media (max-width: 760px) {
  .twist-inner { grid-template-columns: 1fr; }
}

/* ── 마무리 ────────────────────────────────────────────── */

.closing { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(64px, 8vw, 120px); display: grid; gap: 18px; }
.closing-line { font-family: var(--font-doc); font-size: clamp(24px, 2vw + 12px, 36px); font-weight: 700; line-height: 1.4; max-width: 30ch; }
.closing-meta { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .blood-path { stroke-dashoffset: 0; }
  .blood-drip { transform: none; }
  .bulb-swing, .qa .caret { animation: none !important; }
  .safe.is-open .safe-door { transform: none; opacity: 0; }
}
