@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --night: #0d0b14;
  --night-2: #14111f;
  --night-3: #1d1830;
  --line: #3a3150;
  --ink: #ece4d4;
  --ink-dim: #b3a995;
  --gold: #e3c078;
  --gold-deep: #b98f43;
  --ember: #e8743b;
  --crimson: #c8413f;
  --sea: #6fb1d6;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --title: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 18px/1.7 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; color: var(--gold); }
h4 { font-size: .95rem; color: var(--gold); margin-top: 1.4em; text-transform: uppercase; letter-spacing: .12em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--gold); color: #000; padding: 8px 12px; }

.eyebrow { font: 600 .78rem/1.2 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9em; }
.lede { font-size: 1.15rem; color: var(--ink-dim); max-width: 46em; }
.small { font-size: .85rem; color: var(--ink-dim); }
.sub { color: var(--ink-dim); font-style: italic; margin-top: -.3em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter); background: rgba(13, 11, 20, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1rem var(--display); letter-spacing: .08em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.site-header nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--ink-dim); text-decoration: none; font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; border-radius: 4px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--gold); }
.site-header nav a[aria-current] { box-shadow: inset 0 -2px var(--gold-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.spoiler-toggle { margin-left: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .8rem; color: var(--ink-dim); }
.spoiler-toggle b { color: var(--ink); font-weight: 600; }
.spoiler-toggle[aria-pressed="true"] { border-color: var(--crimson); }
.spoiler-toggle[aria-pressed="true"] b { color: #ff8f86; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--night-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .spoiler-toggle { margin: 12px 0 0; align-self: flex-start; }
}

/* ---------- layout */
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.wrap.wide { width: min(1360px, 100% - 2 * var(--gutter)); }
.band { padding: clamp(48px, 8vw, 96px) 0; }
.band.alt { background: linear-gradient(180deg, var(--night-2), var(--night)); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.6em; }
.page-head { text-align: center; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(20px, 3vw, 36px); }
.page-head .lede { margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.prose p { max-width: 42em; }
.prose.cols { columns: 2 320px; column-gap: 48px; }
.prose.cols p { break-inside: avoid; }
.whisper { font-style: italic; color: var(--gold); border-left: 2px solid var(--gold-deep); padding-left: 1em; }
.framed { border: 1px solid var(--gold-deep); border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.wide-img { margin: 0 auto 2em; }

.btn { display: inline-block; padding: 12px 22px; border: 1px solid var(--gold-deep); border-radius: 3px; color: var(--gold); text-decoration: none; font: 600 .82rem var(--display); letter-spacing: .16em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: rgba(227, 192, 120, .12); color: #fff; }
.btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #1a1206; border-color: var(--gold); }
.btn.primary:hover { filter: brightness(1.1); color: #000; }
.btn.disabled { border-style: dashed; color: var(--ink-dim); border-color: var(--line); cursor: default; }
.btn.disabled:hover { background: none; color: var(--ink-dim); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center 30%; filter: blur(22px) brightness(.38) saturate(1.2); transform: scale(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--night)); }
.hero-inner { position: relative; z-index: 1; width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 6vw, 72px); align-items: center; padding: clamp(40px, 8vw, 96px) 0; }
.hero h1 { font-family: var(--title); font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; color: #fbeed0; text-shadow: 0 4px 30px rgba(232, 116, 59, .45); margin-bottom: .35em; }
.hero h1 span { display: block; font: 600 .32em var(--display); letter-spacing: .5em; color: var(--gold); margin: .5em 0 .4em; }
.tagline { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-style: italic; color: var(--ink); max-width: 30em; }
.byline { color: var(--ink-dim); }
.hero-cover img { border-radius: 4px; border: 1px solid var(--gold-deep); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 80px rgba(232, 116, 59, .25); transform: rotate(1.5deg); transition: transform .4s; max-height: 78vh; width: auto; margin-inline: auto; }
.hero-cover:hover img { transform: rotate(0) scale(1.02); }
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cover { order: -1; }
  .hero-cover img { max-height: 52vh; }
  .tagline { margin-inline: auto; }
  .actions { justify-content: center; }
}
.blurb p:nth-last-child(-n+2) { font-family: var(--display); color: var(--gold); font-size: 1.2rem; letter-spacing: .04em; }

/* ---------- trailer */
.trailer { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--gold-deep); border-radius: 4px; overflow: hidden; background: #000; }
.trailer img, .trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.trailer .play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; background: rgba(13, 11, 20, .7); border: 2px solid var(--gold); }
.trailer .play::after { content: ""; position: absolute; left: 36px; top: 26px; border-left: 26px solid var(--gold); border-block: 17px solid transparent; }
.trailer:hover .play { background: var(--gold-deep); }
.trailer.soon img { filter: brightness(.45); }
.soon-label { position: absolute; inset: auto 0 12%; text-align: center; font: 600 1rem var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ---------- home portals */
.portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.portal { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; }
.portal img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s; filter: brightness(.75); }
.portal:hover img { transform: scale(1.06); filter: brightness(.95); }
.portal span { position: absolute; inset: auto 0 0; padding: 48px 18px 16px; background: linear-gradient(transparent, rgba(8, 6, 14, .95)); font-size: .95rem; line-height: 1.4; }
.portal b { display: block; font: 600 1.15rem var(--display); letter-spacing: .1em; color: var(--gold); margin-bottom: 4px; }

/* ---------- cards and lists */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--night-2); border: 1px solid var(--line); border-top: 2px solid var(--gold-deep); border-radius: 4px; padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .98rem; }
.deflist { margin: 0; }
.deflist dt { font: 600 1.02rem var(--display); color: var(--gold); letter-spacing: .05em; margin-top: 1.1em; }
.deflist dt:first-child { margin-top: 0; }
.deflist dd { margin: .2em 0 0; color: var(--ink); }
.ranks { list-style: none; padding: 0; margin: 0 0 2em; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: r; }
.ranks li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border: 1px solid var(--line); border-radius: 999px; font: 600 .85rem var(--display); letter-spacing: .1em; }
.ranks li span { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--metal); box-shadow: 0 0 12px color-mix(in srgb, var(--metal) 60%, transparent); }
.stats { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.stats li { font-size: .9rem; color: var(--ink-dim); }
.stats b { display: block; font: 600 1.6rem var(--display); color: var(--gold); }
.buy { margin-top: 1.2em; }
.book-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.book-hero .cover { max-width: 380px; margin-inline: auto; }

/* ---------- spoilers */
.spoiler { margin: 1.2em 0 0; border: 1px dashed var(--crimson); border-radius: 4px; padding: 10px 14px; background: rgba(200, 65, 63, .07); }
.spoiler-reveal { background: none; border: 0; padding: 0; font: 600 .76rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #ff9d94; display: flex; align-items: center; gap: 8px; }
.spoiler .eye { width: 16px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.spoiler .eye::after { content: ""; position: absolute; inset: 1.5px 4.5px; background: currentColor; border-radius: 50%; }
.spoiler-content { display: none; margin-top: .8em; }
.spoiler-content p:last-child { margin-bottom: 0; }
.spoilers-on .spoiler-content, .spoiler.revealed .spoiler-content { display: block; }
.spoilers-on .spoiler-reveal, .spoiler.revealed .spoiler-reveal { display: none; }
.spoilers-on .spoiler, .spoiler.revealed { border-style: solid; border-color: var(--line); border-left: 2px solid var(--crimson); background: none; }

/* ---------- atlas */
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--ink-dim); }
.chip:hover { border-color: var(--gold-deep); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: stretch; margin-bottom: clamp(48px, 8vw, 96px); }
.map-viewport { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--gold-deep); border-radius: 4px; background: #0a0810; touch-action: none; cursor: grab; user-select: none; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.map-viewport.dragging { cursor: grabbing; }
.map-stage { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 3 / 2; transform-origin: 0 0; will-change: transform; --k: 1; }
.map-stage.fly { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.map-stage img { width: 100%; height: 100%; pointer-events: none; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.route polyline { fill: none; stroke: #fff3c4; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px #e8743b); }
.route.on { opacity: 1; }
.route.on polyline { animation: draw 3.2s ease-in-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.marker { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; background: none; border: 0; transform: scale(calc(1 / var(--k))); transition: opacity .3s; }
.marker::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--gold); border: 2px solid #1a1206; box-shadow: 0 0 0 2px rgba(227, 192, 120, .45), 0 0 14px 3px rgba(227, 192, 120, .7); transition: transform .2s; }
.marker[data-kind="continent"]::before { inset: 6px; background: transparent; border: 2px solid var(--gold); box-shadow: 0 0 0 2px #1a1206, 0 0 14px 3px rgba(227, 192, 120, .7); }
.marker[data-kind="city"]::before { border-radius: 2px; transform: rotate(45deg); }
.marker[data-kind="ruin"]::before { background: var(--crimson); box-shadow: 0 0 0 2px rgba(200, 65, 63, .45), 0 0 14px 3px rgba(232, 116, 59, .8); }
.marker[data-kind="sea"]::before, .marker[data-kind="isle"]::before { background: var(--sea); box-shadow: 0 0 0 2px rgba(111, 177, 214, .45), 0 0 14px 3px rgba(111, 177, 214, .7); }
.marker:hover::before, .marker:focus-visible::before, .marker.active::before { transform: scale(1.45); }
.marker[data-kind="city"]:hover::before, .marker[data-kind="city"]:focus-visible::before, .marker[data-kind="city"].active::before { transform: rotate(45deg) scale(1.45); }
.marker.active::after { content: ""; position: absolute; inset: 0; border: 2px solid #fff; border-radius: 50%; animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.marker.dim { opacity: .12; pointer-events: none; }
.marker .tip { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; background: rgba(13, 11, 20, .94); border: 1px solid var(--gold-deep); border-radius: 3px; padding: 3px 9px; font: 600 .72rem var(--display); letter-spacing: .1em; color: var(--gold); opacity: 0; pointer-events: none; transition: opacity .15s; }
.marker:hover .tip, .marker:focus-visible .tip, .marker.active .tip { opacity: 1; }
.zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.zoom button { width: 38px; height: 38px; background: rgba(13, 11, 20, .9); border: 1px solid var(--gold-deep); border-radius: 4px; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.zoom button:hover { background: var(--gold-deep); color: #000; }
.map-panel { background: var(--night-2); border: 1px solid var(--line); border-radius: 4px; padding: 22px; contain: size; overflow: auto; font-size: .96rem; line-height: 1.6; }
.map-panel h3 { font-size: 1.5rem; margin-bottom: .1em; }
.map-panel .back { background: none; border: 0; padding: 0; color: var(--ink-dim); font-size: .85rem; margin-bottom: 1em; }
.map-panel .back:hover { color: var(--gold); }
.map-panel .tag { display: inline-block; font: 600 .68rem var(--display); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 0 6px 1em 0; color: var(--ink-dim); }
.map-panel .tag.b1 { border-color: var(--gold-deep); color: var(--gold); }
.map-panel .index h4:first-child { margin-top: 0; }
.map-panel .index ul { list-style: none; margin: 0 0 .4em; padding: 0; }
.map-panel .index button { background: none; border: 0; padding: 3px 0; text-align: left; color: var(--ink); width: 100%; }
.map-panel .index button:hover { color: var(--gold); }
.map-panel .index button small { color: var(--ink-dim); margin-left: 6px; font-style: italic; }
.places { margin: 0; }
.places dt { color: var(--gold); font-weight: bold; margin-top: .7em; }
.places dd { margin: 0; color: var(--ink-dim); }
@media (max-width: 980px) {
  .atlas { grid-template-columns: 1fr; }
  .map-viewport { aspect-ratio: 4 / 3; }
  .map-panel { contain: none; }
}
@media (max-width: 560px) { .map-viewport { aspect-ratio: 1 / 1; } }

/* ---------- characters */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.char { position: relative; padding: 0; background: var(--night-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-align: left; aspect-ratio: 2 / 3; }
.char img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; filter: saturate(.9) brightness(.9); }
.char:hover img, .char:focus-visible img { transform: scale(1.05); filter: none; }
.char:hover, .char:focus-visible { border-color: var(--gold); }
.char .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 14px 12px; background: linear-gradient(transparent, rgba(8, 6, 14, .95)); pointer-events: none; }
.char .name { display: block; font: 600 1.15rem/1.2 var(--display); letter-spacing: .08em; color: #fff; }
.char .role { display: block; font-size: .82rem; line-height: 1.3; font-style: italic; color: var(--gold); margin-top: 3px; }
.enemies .char:hover, .enemies .char:focus-visible { border-color: var(--crimson); }
.enemies .char .role { color: #ff9d94; }

dialog { color: var(--ink); border: 1px solid var(--gold-deep); border-radius: 6px; background: var(--night-2); padding: 0; max-width: min(1000px, 100vw - 24px); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(5, 4, 10, .86); backdrop-filter: blur(4px); }
dialog .close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(13, 11, 20, .85); border: 1px solid var(--line); font-size: 1.4rem; line-height: 1; }
dialog .close:hover { border-color: var(--gold); color: var(--gold); }
.sheet-body { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.sheet-img { width: 100%; height: 100%; object-fit: cover; max-height: calc(100dvh - 26px); }
.sheet-text { padding: 36px 32px 28px; overflow: auto; max-height: calc(100dvh - 26px); }
.sheet-text h2 { color: #fff; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 1.4em; padding: 12px 0; border-block: 1px solid var(--line); font-size: .92rem; }
.facts dt { font: 600 .72rem/1.9 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.facts dd { margin: 0; }
.sheet-nav { display: flex; justify-content: space-between; margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--line); }
.sheet-nav button { background: none; border: 0; color: var(--ink-dim); font: 600 .76rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.sheet-nav button:hover { color: var(--gold); }
@media (max-width: 720px) {
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-img { max-height: 46dvh; object-position: center 18%; }
  .sheet-text { max-height: none; padding: 24px 20px; }
  dialog.sheet { overflow: auto; }
}

/* ---------- gallery */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-bottom: clamp(48px, 8vw, 96px); }
.shot { margin: 0; }
.shot button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #000; aspect-ratio: 3 / 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .4s; }
.shot button:hover img { transform: scale(1.04); }
.shot button:hover { border-color: var(--gold); }
.shot figcaption { padding: 10px 2px 0; font-size: .9rem; }
.shot figcaption b { display: block; font: 600 1rem var(--display); letter-spacing: .05em; color: var(--gold); }
.shot figcaption span { color: var(--ink-dim); font-style: italic; }
.veil { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font: 600 .78rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: #ff9d94; background: rgba(13, 11, 20, .35); }
body:not(.spoilers-on) .shot.spoil:not(.revealed) img { filter: blur(26px) brightness(.6); transform: scale(1.2); }
body:not(.spoilers-on) .shot.spoil:not(.revealed) .veil { display: flex; }
body:not(.spoilers-on) .shot.spoil:not(.revealed) figcaption b { display: none; }
.lightbox { max-width: 100vw; width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; background: rgba(5, 4, 10, .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1500px, 100vw - 120px); text-align: center; }
.lightbox img { max-height: calc(100dvh - 110px); width: auto; margin-inline: auto; border: 1px solid var(--gold-deep); }
.lightbox figcaption { padding-top: 12px; font: 600 1rem var(--display); letter-spacing: .06em; color: var(--gold); }
.lightbox figcaption span { display: block; font: italic .88rem var(--body); letter-spacing: 0; color: var(--ink-dim); }
.lightbox .step { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; background: none; border: 0; font-size: 3rem; color: var(--ink-dim); }
.lightbox .step:hover { color: var(--gold); }
.lightbox .prev { left: 4px; }
.lightbox .next { right: 4px; }
@media (max-width: 700px) { .lightbox figure { max-width: 100vw; } .lightbox .step { top: auto; bottom: 8px; transform: none; } }

/* ---------- reading */
.reading { width: min(680px, 100% - 2 * var(--gutter)); font-size: 1.16rem; line-height: 1.85; padding-bottom: clamp(48px, 8vw, 96px); }
.reading > p:first-of-type { display: flow-root; }
.reading > p:first-of-type::first-letter { font: 600 3.6em/.8 var(--title); float: left; padding: .08em .1em 0 0; color: var(--gold); }
.scene-break { text-align: center; color: var(--gold); letter-spacing: .6em; margin: 2em 0; }
.plate { margin: 2.4em calc(-1 * min(120px, 8vw)); }
.plate img { border: 1px solid var(--gold-deep); border-radius: 4px; width: 100%; }
.plate figcaption { text-align: center; font: 600 .9rem var(--display); letter-spacing: .14em; color: var(--gold); padding-top: 10px; }
@media (max-width: 800px) { .plate { margin-inline: 0; } }
.read-on { text-align: center; border-top: 1px solid var(--line); margin-top: 3em; padding-top: 2em; font-style: italic; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px var(--gutter) 48px; text-align: center; color: var(--ink-dim); font-size: .9rem; }
.site-footer p { margin: 0 auto .5em; max-width: 60em; }
.foot-title { font: 700 1.3rem var(--title); color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
