:root {
  --color-void: #12100e;
  --color-paper: #f4ead3;
  --color-paper-deep: #e8d7b4;
  --color-ink: #1a120c;
  --color-muted: #3f3428;
  --color-blood: #7c1c1c;
  --color-blood-hot: #9b1818;
  --color-line: rgb(26 18 12 / 0.28);
  --color-cream-line: rgb(26 18 12 / 0.18);

  --font-serif: "Special Elite", "Courier New", Courier, serif;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-odia: "Noto Serif Oriya", "Noto Serif", serif;
  --font-hebrew: "Noto Serif Hebrew", "Times New Roman", serif;

  --radius-page: 22px;
  --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  background: var(--color-void);
  color: var(--color-paper);
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--color-void);
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
::selection { background: var(--color-blood); color: var(--color-paper); }
:focus-visible { outline: 2px solid var(--color-blood); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--color-blood);
  color: var(--color-paper);
  padding: 8px 14px;
  font-size: 0.9rem;
}
.skip-link:focus { top: 12px; }

.gothic { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; line-height: 1.15; }
.odia { font-family: var(--font-odia); font-weight: 700; line-height: 1.6; }
.he { font-family: var(--font-hebrew); font-weight: 600; direction: rtl; unicode-bidi: isolate; line-height: 1.5; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- nav ---------- */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: max(6px, env(safe-area-inset-top)) 16px 6px;
  background: rgb(18 16 14 / 0.72);
  border-bottom: 1px solid rgb(239 228 205 / 0.12);
}
.nav-mark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-paper);
  line-height: 1;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-links { display: none; gap: 1.4rem; }
.nav-links a, .nav-links button {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(239 228 205 / 0.7);
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-links a:hover, .nav-links button:hover { color: var(--color-paper); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-tix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--color-blood);
  color: var(--color-blood-hot);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  background: transparent;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn-tix:hover { background: var(--color-blood); color: var(--color-paper); }
.nav-burger {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgb(239 228 205 / 0.25);
  color: var(--color-paper);
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgb(18 16 14 / 0.96);
  display: none;
  flex-direction: column;
  padding: 80px 28px 40px;
  gap: 4px;
}
.mobile-sheet.is-open { display: flex; }
.mobile-sheet a, .mobile-sheet button {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgb(239 228 205 / 0.12);
  color: var(--color-paper);
  background: transparent;
  text-align: left;
}

/* ---------- the book (page-flip) ---------- */
.desk {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  background-color: #120e0a;
  background-image: url("../assets/film/table.webp");
  background-size: cover;
  background-position: center;
}
.flip-host.stf__parent { background: #3a2216; box-shadow: 0 28px 55px rgb(0 0 0 / 0.65); }
.stf__wrapper, .stf__block { background: #3a2216; }
.st-page { background: transparent; overflow: hidden; display: none; }
.flip-host:not(.stf__parent) .st-page:first-child {
  display: block; position: relative; width: 100%; height: 100%;
}
.st-page .page { width: 100%; height: 100%; }

.page {
  width: 100%;
  height: 100%;
  background-color: var(--color-paper);
  background-image: url("../assets/film/paper.webp");
  background-size: cover;
  background-position: center;
  color: var(--color-ink);
  border-radius: inherit;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.4), inset 10px 0 22px rgb(80 50 20 / 0.1);
  padding: 18px 20px 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  font-family: var(--font-serif);
}
@media (min-width: 720px) { .page { padding: 22px 36px 24px; } }
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 8%, rgb(120 70 20 / 0.1), transparent 42%),
    radial-gradient(ellipse at 90% 96%, rgb(90 40 10 / 0.1), transparent 40%);
}
.desk.is-closed { padding: 12px 0 0; }
.closed-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 2% 8% 3% 0;
  perspective: 1600px;
}
.prop-book {
  position: relative;
  width: min(360px, 40vw);
  aspect-ratio: 2 / 3;
  padding: 0; border: 0; background: transparent;
  transform: rotateY(-22deg) rotateX(8deg) translateZ(0);
  transform-style: preserve-3d;
  cursor: pointer;
  filter: drop-shadow(28px 42px 36px rgb(0 0 0 / 0.62));
}
.prop-front {
  position: absolute; inset: 0;
  background: #0c0806;
  border: 10px solid #1a120c;
  box-shadow: inset 0 0 0 1px rgb(90 70 40 / 0.35), inset 8px 0 16px rgb(0 0 0 / 0.35);
  transform: translateZ(18px);
  overflow: hidden;
}
.prop-front img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.prop-spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 36px;
  background: linear-gradient(90deg, #070504 0%, #2a1c12 38%, #120c08 100%);
  transform: rotateY(-90deg) translateZ(18px);
  transform-origin: left center;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset -6px 0 10px rgb(0 0 0 / 0.45);
}
.prop-spine b {
  color: #c4a574; font-size: 0.72rem; letter-spacing: 0.42em;
  writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700;
}
.prop-block {
  position: absolute; top: 8px; bottom: 8px; right: 0; width: 16px;
  background: repeating-linear-gradient(#f3e6cc 0 1px, #d7c49c 1px 2px, #efe0c4 2px 3px);
  transform: rotateY(90deg) translateZ(8px);
  transform-origin: right center;
  box-shadow: 2px 0 6px rgb(0 0 0 / 0.3);
}
.prop-book .open-cta { left: 50%; bottom: 18px; transform: translateX(-50%) translateZ(20px); }
.flip-wrap {
  flex: 1; min-height: 0;
  width: min(900px, 68vw);
  margin: 48px 3% 8px auto;
  display: flex;
  position: relative;
  height: auto;
}
.flip-wrap .flip-host { flex: 1; min-height: 0; width: 100%; height: 100%; }
.flip-wrap.is-idle {
  position: absolute; opacity: 0; pointer-events: none;
  width: min(920px, 78vw); height: 70vh; left: 0; top: 0; overflow: hidden;
}
.page-cover { background: #1a1008; padding: 0; isolation: isolate; }
.page-cover::before { display: none; }
.open-cta {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 4;
  min-height: 48px; padding: 0 22px;
  background: var(--color-blood); color: var(--color-paper);
  border: 0;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px;
}
.open-cta .odia { letter-spacing: 0; text-transform: none; }
.open-cta:hover { background: var(--color-blood-hot); }
.pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-shrink: 0; z-index: 20;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgb(12 9 7 / 0.78);
  border-top: 1px solid rgb(239 228 205 / 0.12);
}
.pager p {
  margin: 0; min-width: 4.5rem; text-align: center;
  font-variant-numeric: tabular-nums; letter-spacing: 0.12em;
  color: rgb(239 228 205 / 0.7); font-size: 0.85rem;
}
.pager button {
  min-height: 44px; min-width: 7.5rem; padding: 0 16px;
  background: var(--color-paper); color: var(--color-ink); border: 0;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.pager button:hover:not(:disabled) { background: var(--color-blood); color: var(--color-paper); }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }

.page-body { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.page-foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; padding-top: 6px;
  border-top: 1px solid var(--color-cream-line);
  font-size: 0.78rem; color: var(--color-muted);
}
.running {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 600;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 8px; margin-bottom: 10px;
  position: relative; z-index: 1; flex-shrink: 0;
}
.folio-num { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.12em; color: var(--color-ink); }
.running .odia { letter-spacing: 0; text-transform: none; font-size: 0.78rem; font-weight: 700; }

.chapter { text-align: center; margin: 0 0 0.7em; flex-shrink: 0; }
.chapter .kicker { margin: 0 0 6px; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-muted); }
.chapter h1, .chapter h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-ink); line-height: 1.2;
}
.chapter h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); letter-spacing: 0.12em; }
.chapter h2 { font-size: clamp(1.15rem, 2.6vw, 1.55rem); }
.chapter h1::before, .chapter h1::after, .chapter h2::before, .chapter h2::after {
  content: ""; display: block; width: 42%; height: 1px;
  background: var(--color-ink); margin: 0.45em auto; opacity: 0.35;
}
.chapter .epigraph { margin: 4px 0 0; color: var(--color-blood); font-size: 1rem; font-weight: 700; }

.kicker { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted); margin: 0; }
.subtitle {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82rem;
  color: var(--color-muted); margin: 4px 0 0;
}
.rule { width: 40%; height: 1px; border: 0; background: var(--color-ink); opacity: 0.35; margin: 10px auto; }
.imprint { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); margin: 8px 0 0; }

.lede { font-size: 1.05rem; font-style: italic; line-height: 1.45; margin: 0; color: var(--color-ink); }
.prose { color: var(--color-ink); font-size: 1.02rem; line-height: 1.55; }
.prose p { margin: 0 0 0.7em; }
.prose p + p { text-indent: 1.5em; }
.drop::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.1em; line-height: 0.75;
  padding: 0.06em 0.1em 0 0; color: var(--color-blood); font-weight: 700;
}

.engraving { filter: sepia(0.42) contrast(1.14) saturate(0.6); display: block; width: 100%; }
.plate { margin: 0; padding: 0; background: transparent; box-shadow: none; min-width: 0; }
.plate img { width: 100%; display: block; filter: sepia(0.42) contrast(1.14) saturate(0.6); border: 1px solid var(--color-line); }
.plate figcaption { margin-top: 6px; font-style: italic; font-size: 0.78rem; color: var(--color-muted); text-align: center; letter-spacing: 0.02em; }
.plate .who { display: block; font-style: normal; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-ink); margin-top: 2px; }
.plate.fit { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 6px; }
.plate.fit img { flex: 1; min-height: 0; width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: center; }
.plate.portrait { max-width: 200px; margin: 0 auto; flex: 0 1 auto; }
.plate.portrait img { max-height: 28vh; object-fit: contain; }
.plate.portrait-full { max-width: none; margin: 8px 0 0; flex: 1; }
.plate.portrait-full img { max-height: none; width: 100%; height: 100%; object-fit: contain; object-position: center top; }

/* A book's marginal note, not a generic paragraph: a rule above, a
   fleuron next to the label, and bold-not-italic body text so it reads
   as "the publisher wants you to notice this," the way pull-quotes and
   printer's notes work in real books. */
.trivia {
  margin-top: auto;
  padding-top: 10px;
  border-top: 2px solid var(--color-blood);
  flex-shrink: 0;
}
.trivia .kicker {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 4px;
  color: var(--color-blood);
  font-weight: 700;
}
.trivia .kicker::before { content: "❦"; font-size: 1em; }
.trivia p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  font-style: normal;
  font-weight: 700;
  color: var(--color-ink);
}
.film-list { margin: 8px 0; text-align: center; font-size: 0.82rem; line-height: 1.5; font-style: italic; color: var(--color-ink); }

.table-timer {
  position: absolute; left: 2%; top: 50%;
  transform: translateY(-52%) rotate(-4deg);
  z-index: 9;
  width: min(180px, 16vw);
  padding: 12px 10px;
  background: var(--color-paper);
  background-image: url("../assets/film/paper.webp");
  background-size: cover;
  color: var(--color-ink);
  box-shadow: 8px 14px 28px rgb(0 0 0 / 0.45);
}
.table-timer .notice { grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 0; }
.table-timer .notice strong { font-size: 1.05rem; }
.table-timer .btn-ink { width: 100%; min-height: 36px; font-size: 0.68rem; }

.titlepage { text-align: center; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.titlepage h1 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 2px 0 0; line-height: 1.05;
  color: var(--color-ink); font-weight: 700;
}
.titlepage .house-plate { flex: 1; min-height: 80px; width: 100%; margin: 10px 0 0; object-fit: contain; object-position: center; }

.gazetteer { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.gazetteer button {
  background: transparent; border: 0; border-bottom: 1px solid var(--color-line);
  color: var(--color-ink); font-family: var(--font-serif); font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 2px; min-height: 36px;
}
.gazetteer button:hover { color: var(--color-blood); border-color: var(--color-blood); }

.album { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; position: relative; z-index: 1; }
.album .plate img { aspect-ratio: 3 / 4; max-height: 32vh; width: 100%; object-fit: contain; object-position: center top; background: var(--color-paper-deep); }

.cast-note { position: relative; z-index: 1; margin-top: 12px; border-top: 1px solid var(--color-line); padding-top: 10px; }
.cast-note blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--color-ink); line-height: 1.35; font-weight: 400; }

.specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; position: relative; z-index: 1; }
.specimens figure:first-child { grid-column: 1 / -1; }
.specimens figure { margin: 0; }
.specimens img { width: 100%; max-height: 26svh; object-fit: cover; display: block; filter: sepia(0.42) contrast(1.14) saturate(0.6); border: 1px solid var(--color-line); }
.specimens figcaption { margin-top: 5px; font-size: 0.78rem; font-style: italic; color: var(--color-muted); text-align: center; }
.specimens h3 { margin: 0; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink); font-style: normal; }

.window { position: relative; z-index: 1; margin-top: 8px; background: var(--color-paper); border: 1px solid var(--color-line); aspect-ratio: 16 / 9; overflow: hidden; }
.window img, .window iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.window img { filter: sepia(0.3) contrast(1.05); }

.notice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0; position: relative; z-index: 1; }
.notice div { text-align: center; border: 1px solid var(--color-line); padding: 8px 4px; }
.notice strong { display: block; font-family: var(--font-display); font-size: clamp(1.35rem, 3.4vw, 1.9rem); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.notice span { font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }

.map-stage { position: relative; z-index: 1; flex: 1; min-height: 0; margin-top: 4px; }
.map-stage > img { width: 100%; height: 100%; max-height: min(48svh, 520px); object-fit: contain; display: block; filter: sepia(0.35) contrast(1.1); }
.map-pin { position: absolute; transform: translate(-50%, -50%); text-align: center; }
.map-pin button { width: 18px; height: 18px; border-radius: 50%; background: var(--color-blood); border: 1px solid var(--color-ink); color: transparent; font-size: 0; padding: 0; min-height: 0; }
.map-pin button:hover { background: var(--color-ink); }
.map-legend { display: none; list-style: none; margin: 8px 0 0; padding: 0; gap: 6px; flex-wrap: wrap; justify-content: center; }
.map-legend button { background: transparent; border: 1px solid var(--color-cream-line); color: var(--color-ink); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; min-height: 36px; font-weight: 700; }

.play-btn { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(26 18 12 / 0.2); color: var(--color-paper); border: 0; width: 100%; }
.play-orb { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--color-paper); display: grid; place-items: center; background: rgb(26 18 12 / 0.45); }
.play-btn:hover .play-orb { background: var(--color-blood); border-color: var(--color-blood); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.btn-ink {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 1.1rem; background: var(--color-ink); color: var(--color-paper);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}
.btn-ink:hover { background: var(--color-blood); }
.btn-rule {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 1.1rem; border: 1px solid var(--color-ink); color: var(--color-ink);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; background: transparent;
}
.btn-rule:hover { background: var(--color-ink); color: var(--color-paper); }
.sigil { display: grid; justify-items: center; gap: 8px; margin-top: 22px; position: relative; z-index: 1; }
.sigil img { width: 148px; height: 148px; background: #fff; padding: 8px; }

.bill { display: grid; gap: 18px; position: relative; z-index: 1; }
@media (min-width: 760px) { .bill { grid-template-columns: 0.7fr 1.3fr; align-items: start; } }
.bill > img { width: 100%; mix-blend-mode: multiply; filter: grayscale(0.3) contrast(1.05); border: 1px solid var(--color-cream-line); }
.films { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.films figure { margin: 0; }
.films img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; filter: sepia(0.25); }
.films figcaption { font-size: 0.68rem; margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.crew { display: grid; gap: 8px 20px; margin-top: 16px; }
@media (min-width: 600px) { .crew { grid-template-columns: 1fr 1fr; } }
.crew dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.crew dd { margin: 0; font-style: italic; }

.fill-leaf { display: flex; flex-direction: column; flex: 1; min-height: 100%; }
.turn-btn { display: none; }

@media (min-width: 860px) {
  .phone-only { display: none !important; }
  .turn-btn {
    display: grid; place-items: center; position: absolute; top: 50%; z-index: 12;
    width: 46px; height: 72px; transform: translateY(-50%);
    border: 1px solid rgb(239 228 205 / 0.25); background: rgb(18 16 14 / 0.55);
    color: var(--color-paper); font-size: 2rem; line-height: 1; padding: 0;
  }
  .turn-prev { left: 10px; }
  .turn-next { right: 10px; }
  .turn-btn:hover { background: var(--color-blood); border-color: var(--color-blood); }
}

/* ---------- phone: one idea per leaf ---------- */
@media (max-width: 859px) {
  .desk-only { display: none !important; }
  .site-nav { min-height: 48px; padding: max(6px, env(safe-area-inset-top)) 12px 6px; }
  .desk { height: 100dvh; padding: 0; background-image: url("../assets/film/table-mobile.webp"); }
  .flip-wrap { width: 100%; margin: 48px 0 0; }
  .table-timer { display: none; }
  /* Closed cover, phone: everything in normal document flow, stacked,
     nothing absolutely positioned over the poster art. The 3D tilt/CTA
     overlay only makes sense with desk-sized real estate; on phone the
     book renders flat with its own CTA and QR slot underneath it. */
  .desk.is-closed {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .desk.is-closed .table-timer { display: none; }
  .closed-stage {
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 48px);
    gap: 12px;
    padding: 14px 12px 10px;
    perspective: none;
  }
  .prop-book {
    width: min(240px, 62vw);
    transform: none;
    filter: drop-shadow(0 14px 26px rgb(0 0 0 / 0.55));
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .prop-spine, .prop-block { display: none; }
  .prop-front { position: static; transform: none; width: 100%; aspect-ratio: 2 / 3; border-width: 6px; }
  .prop-book .open-cta {
    position: static;
    transform: none;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
  .qr-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(280px, 84vw);
    padding: 10px 12px;
    background: var(--color-paper);
    background-image: url("../assets/film/paper.webp");
    background-size: cover;
    color: var(--color-ink);
    box-shadow: 8px 12px 24px rgb(0 0 0 / 0.4);
  }
  .qr-slot .qr-box {
    width: 52px; height: 52px; flex-shrink: 0;
    border: 1px dashed var(--color-line);
    display: grid; place-items: center;
    font-size: 0.55rem; text-align: center; color: var(--color-muted);
  }
  .qr-slot p { margin: 0; font-size: 0.72rem; letter-spacing: 0.04em; }
  .qr-slot .kicker { color: var(--color-blood); margin-bottom: 2px; }
  .flip-host { width: 100%; }
  .flip-host.stf__parent { box-shadow: 0 18px 40px rgb(0 0 0 / 0.6); }
  .running { font-size: 0.62rem; letter-spacing: 0.06em; padding-bottom: 4px; margin-bottom: 6px; }
  .running .odia, .running .he { display: none; }
  .page-foot { display: none; }
  .page { padding: 10px 12px 12px; }
  .page-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .titlepage .house-plate { flex: 1; min-height: 0; width: 100%; margin: 8px 0 0; object-fit: cover; object-position: center 55%; }
  .chapter h2 { font-size: 1.05rem; }
  .chapter h1::before, .chapter h1::after, .chapter h2::before, .chapter h2::after { width: 28%; margin: 0.3em auto; }
  .drop::first-letter { font-size: 2.4em; }
  .map-stage { flex: 1; min-height: 0; margin-top: 4px; }
  .map-stage > img { height: 100%; max-height: none; object-fit: cover; }
  .map-pin button { width: 16px; height: 16px; min-height: 16px; padding: 0; border-radius: 50%; font-size: 0; background: var(--color-blood); border: 2px solid var(--color-paper); box-shadow: 0 0 0 1px var(--color-ink); }
  .gazetteer { display: none; }
  .map-legend { display: flex; }
  .bill { gap: 10px; flex: 1; min-height: 0; }
  .bill .plate img { max-height: 38svh; }
  .bill > img { max-height: 15svh; width: auto; max-width: 40%; object-fit: cover; object-position: center top; margin: 0; float: left; margin-right: 10px; margin-bottom: 6px; }
  .crew { grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 8px; clear: none; }
  .crew dt { font-size: 0.58rem; }
  .crew dd { font-size: 0.8rem; line-height: 1.2; }
  .bill { display: block; }
  .bill .lede { font-size: 0.92rem; }
  .lede { font-size: 1rem; }
  .album { flex: 1; min-height: 0; gap: 6px; align-content: start; }
  .plate { padding: 4px 4px 8px; }
  .plate img { max-height: none; aspect-ratio: 3 / 4; height: auto; }
  .plate figcaption { font-size: 0.72rem; margin-top: 4px; }
  .plate .who { font-size: 0.58rem; }
  .cast-note { margin-top: 8px; padding-top: 8px; }
  .cast-note blockquote { font-size: 1.15rem; margin: 0; }
  .specimens { flex: 1; min-height: 0; gap: 4px 6px; align-content: start; }
  .specimens figure:first-child { grid-column: auto; }
  .specimens img, .specimens figure:first-child img { max-height: 12svh; }
  .specimens h3 { font-size: 0.62rem; }
  .specimens figcaption { font-size: 0.62rem; margin-top: 1px; line-height: 1.15; }
  .lede.he { font-size: 0.88rem; }
  .trivia { margin-top: 6px; padding-top: 6px; }
  .trivia p { font-size: 0.8rem; }
  .window { flex: 1; min-height: 180px; margin-top: 8px; border-width: 6px; aspect-ratio: auto; }
  .notice strong { font-size: 1.5rem; }
  .films { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .turn-btn { transition: none; }
}
