:root {
  --bg: #03060d;
  --bg-deep: #02040a;
  --bg-blue: #07111e;
  --panel: rgba(11, 20, 35, 0.86);
  --panel-strong: rgba(16, 29, 49, 0.96);
  --ink: #f3f8ff;
  --muted: #b3c2d5;
  --soft: #8294aa;
  --line: rgba(177, 205, 235, 0.18);
  --line-strong: rgba(103, 232, 249, 0.48);
  --cyan: #67e8f9;
  --blue: #60a5fa;
  --gold: #f6c66f;
  --amber: #f59e0b;
  --green: #4ade80;
  --violet: #b7a4ff;
  --shadow: 0 28px 84px rgba(0, 0, 0, 0.48);
  --radius-xl: 30px;
  --radius: 20px;
  --reader-scale: 1;
  --reader-base: 18.5px;
  --page: 1240px;
  --reading: 74ch;
  --sans: Inter, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(var(--reader-base) * var(--reader-scale));
  line-height: 1.72;
  background:
    radial-gradient(circle at 8% 2%, rgba(96, 165, 250, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(183, 164, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(246, 198, 111, 0.1), transparent 40rem),
    linear-gradient(180deg, var(--bg), var(--bg-blue) 50%, var(--bg-deep));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

::selection { color: #041018; background: var(--cyan); }

a { color: var(--cyan); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
button, summary { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.wrap { width: min(var(--page), calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(900px, calc(100% - 36px)); margin-inline: auto; }
.reading { width: min(var(--reading), calc(100% - 36px)); margin-inline: auto; }

.skip {
  position: fixed;
  top: 10px;
  left: -999px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  color: #000;
  background: #fff;
  font-weight: 900;
}

.skip:focus { left: 10px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 6, 13, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding-block: 11px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.75em;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 43% 31%, #fff 0 6%, var(--gold) 7% 17%, var(--cyan) 18% 25%, rgba(103, 232, 249, 0.22) 26% 58%, transparent 59%);
  box-shadow: 0 0 30px rgba(103, 232, 249, 0.38);
}

.nav, .reader-tools, .actions, .scene-index, .end-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a, .pill {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 0.69em;
  line-height: 1;
  text-decoration: none;
}

.nav a:hover, .nav a:focus-visible { color: #fff; border-color: var(--line-strong); text-decoration: none; }

.nav a[aria-current="page"] {
  color: #06111d;
  border-color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.reader-tools { margin-left: auto; }

.tool {
  min-width: 41px;
  min-height: 39px;
  padding: 8px 11px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 900;
}

.tool:hover, .tool:focus-visible {
  color: #06111d;
  border-color: rgba(255, 255, 255, 0.56);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.scale-label {
  min-width: 49px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.66em;
  text-align: center;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.55);
}

.hero { padding: clamp(38px, 7vw, 88px) 0 34px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: 22px;
  align-items: stretch;
}

.hero-grid > *, .grid > *, .cinematic-grid > * { min-width: 0; }

.hero-card, .card, .chapter-card, .fact, .note-box, .quote-card, .image-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(17, 31, 53, 0.92), rgba(6, 11, 22, 0.89));
  box-shadow: var(--shadow);
}

.hero-card, .card, .chapter-card, .fact, .note-box, .quote-card, .story-prose { min-width: 0; overflow-wrap: anywhere; }

.hero-copy { padding: clamp(26px, 5vw, 60px); }

.kicker {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68em;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; color: #fff; text-wrap: balance; }
h1 { margin-bottom: 22px; font-size: clamp(3em, 8.5vw, 7em); line-height: 0.88; letter-spacing: -0.072em; }
h2 { margin-bottom: 16px; font-size: clamp(1.7em, 4vw, 2.9em); line-height: 1.08; letter-spacing: -0.043em; }
h3 { margin-bottom: 9px; font-size: 1.16em; line-height: 1.24; }
p { margin: 0 0 1em; }

.lead { max-width: 48rem; color: var(--muted); font-size: 1.16em; line-height: 1.62; }
.muted { color: var(--muted); }
.small { color: var(--soft); font-size: 0.83em; }
.eyebrow { color: var(--cyan); font-family: var(--mono); font-size: 0.68em; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }

.actions { margin-top: 24px; }

.btn {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 999px;
  color: #e5fbff;
  background: rgba(103, 232, 249, 0.09);
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 900;
  text-decoration: none;
}

.btn:hover { text-decoration: none; background: rgba(103, 232, 249, 0.17); }
.btn.primary { color: #06111d; border-color: rgba(255, 255, 255, 0.55); background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.btn.gold { color: #211504; border-color: rgba(255, 255, 255, 0.52); background: linear-gradient(135deg, #ffe3ac, var(--gold)); }

.hero-image { position: relative; min-height: 430px; overflow: hidden; background: #06101c; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.03) contrast(1.04); }
.hero-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 40%, rgba(3, 6, 13, 0.84)); }
.hero-caption { position: absolute; right: 22px; bottom: 20px; left: 22px; z-index: 1; color: #eefaff; font-family: var(--serif); font-size: 1.03em; font-style: italic; text-shadow: 0 2px 20px #000; }

.section { padding: 38px 0; }
.section-head { max-width: 880px; margin-bottom: 22px; }
.grid { display: grid; gap: 17px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .chapter-card { padding: 23px; }
.card p, .chapter-card p { color: var(--muted); }
.num { margin-bottom: 11px; color: var(--cyan); font-family: var(--mono); font-size: 0.66em; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }

.tag {
  display: inline-flex;
  align-items: center;
  margin: 3px 4px 3px 0;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62em;
  font-weight: 800;
}

.tag.live { color: #06150d; border-color: var(--green); background: var(--green); }
.tag.next { color: #201400; border-color: var(--gold); background: var(--gold); }

.image-frame { overflow: hidden; background: #06101c; }
.image-frame img { width: 100%; height: auto; object-fit: cover; }
.image-frame.wide img { aspect-ratio: 16 / 9; }
.image-frame.portrait img { aspect-ratio: 4 / 5; }
.image-frame figcaption { padding: 11px 15px; border-top: 1px solid var(--line); color: var(--soft); background: rgba(0, 0, 0, 0.28); font-size: 0.76em; }

.poster-link { display: block; color: inherit; text-decoration: none; }
.poster-link:hover { text-decoration: none; }
.poster-link:hover .image-frame { border-color: var(--line-strong); transform: translateY(-2px); }
.poster-link .image-frame { transition: transform 180ms ease, border-color 180ms ease; }

.quote-card { padding: 25px 29px; border-left: 4px solid var(--cyan); color: #f7fbff; background: linear-gradient(155deg, rgba(15, 40, 58, 0.82), rgba(8, 13, 24, 0.92)); font-family: var(--serif); font-size: 1.22em; line-height: 1.55; }
.note-box { padding: 17px 19px; border-radius: var(--radius); background: rgba(103, 232, 249, 0.06); box-shadow: none; }
.note-box strong { color: #fff; }

.fact { padding: 18px; border-radius: var(--radius); box-shadow: none; }
.fact .label { color: var(--soft); font-family: var(--mono); font-size: 0.62em; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.fact .value { margin-top: 6px; color: #fff; font-weight: 900; }

.story-hero h1 { font-size: clamp(2.9em, 8vw, 6.3em); }
.story-deck { max-width: 56rem; }

.scene-menu { margin-top: 18px; }
.scene-menu summary { cursor: pointer; color: #fff; font-family: var(--mono); font-size: 0.72em; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.scene-index { margin-top: 14px; }
.scene-index a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.035); font-family: var(--mono); font-size: 0.67em; text-decoration: none; }
.scene-index a:hover, .scene-index a[aria-current="location"] { color: #06111d; border-color: var(--cyan); background: var(--cyan); text-decoration: none; }

.act {
  width: min(var(--page), calc(100% - 36px));
  margin: 80px auto 32px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.act .kicker { margin-bottom: 8px; }
.act h2 { max-width: 20ch; }
.act p { max-width: 58ch; color: var(--muted); }

.scene {
  width: min(var(--page), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 62px) 0;
  scroll-margin-top: 9rem;
}

.scene + .scene { border-top: 1px solid var(--line); }

.scene-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  max-width: var(--reading);
  margin: 0 auto 24px;
}

.scene-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #06111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 950;
}

.scene-title h2 { margin-bottom: 0; }
.scene-title small { display: block; margin-top: 7px; color: var(--soft); font-family: var(--mono); font-size: 0.57em; letter-spacing: 0.12em; text-transform: uppercase; }

.story-prose {
  width: min(var(--reading), calc(100% - 10px));
  margin-inline: auto;
  color: #edf4ff;
  font-family: var(--serif);
  font-size: 1.08em;
  line-height: 1.9;
}

.story-prose p { margin-bottom: 1.08em; }
.story-prose .opening { color: #fff; font-size: 1.26em; line-height: 1.58; }
.story-prose .dropcap::first-letter { float: left; margin: 0.05em 0.09em 0 0; color: var(--gold); font-size: 3.2em; font-weight: 700; line-height: 0.82; }

.dialogue { display: grid; gap: 0; margin: 23px 0; border-top: 1px solid rgba(103, 232, 249, 0.2); border-bottom: 1px solid rgba(103, 232, 249, 0.2); }
.line { display: grid; grid-template-columns: minmax(6rem, 0.24fr) minmax(0, 1fr); gap: 16px; padding: 14px 4px; border-bottom: 1px solid rgba(177, 205, 235, 0.11); }
.line:last-child { border-bottom: 0; }
.speaker { color: var(--gold); font-family: var(--mono); font-size: 0.62em; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.line p { margin: 0; color: #f7f9ff; line-height: 1.58; }

.beat { margin: 22px 0; padding: 15px 18px; border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; color: #f6e6c3; background: rgba(246, 198, 111, 0.075); font-family: var(--serif); font-style: italic; }

.system-line {
  margin: 24px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-left: 3px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  color: #bff8ff;
  background: linear-gradient(135deg, rgba(8, 37, 51, 0.82), rgba(3, 12, 24, 0.94));
  box-shadow: inset 0 0 28px rgba(103, 232, 249, 0.045);
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 0.045em;
  overflow-wrap: normal;
  white-space: normal;
}

.system-line.emphasis {
  color: #effdff;
  border-color: rgba(103, 232, 249, 0.7);
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.52);
}

.cinematic-wide, .cinematic-grid { width: min(var(--page), 100%); margin: 28px auto; }
.cinematic-wide .image-frame { border-radius: var(--radius-xl); }
.cinematic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.cinematic-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cinematic-grid .image-frame { border-radius: var(--radius); }

.story-note { width: min(var(--reading), calc(100% - 10px)); margin: 24px auto 0; }
.story-note details, .spoiler details { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0, 0, 0, 0.2); }
.story-note summary, .spoiler summary { cursor: pointer; padding: 14px 16px; color: #e8fbff; font-family: var(--mono); font-size: 0.69em; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.details-body { padding: 0 16px 16px; color: var(--muted); }

.vow { display: grid; gap: 9px; margin: 24px 0; padding: 22px; border: 1px solid rgba(246, 198, 111, 0.34); border-radius: var(--radius); color: #fff9e9; background: rgba(246, 198, 111, 0.075); font-family: var(--serif); font-size: 1.08em; }
.vow p { margin: 0; }

.end-nav { justify-content: center; margin-top: 26px; }
.footer { margin-top: 64px; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--soft); font-size: 0.76em; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cinematic-grid.three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  :root { --reader-base: 20px; }
  html { scroll-padding-top: 10.5rem; }
  body { line-height: 1.76; }
  .wrap, .narrow, .reading, .act, .scene { width: min(100% - 22px, var(--page)); }
  .topbar-inner { align-items: flex-start; }
  .reader-tools { margin-left: 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding: 2px 0 4px; scrollbar-width: thin; }
  .hero { padding-top: 34px; }
  h1, .story-hero h1 { font-size: clamp(2.75rem, 16vw, 4.25rem); }
  .hero-grid, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .hero-copy { padding: 25px; }
  .hero-image { min-height: 360px; }
  .scene { padding-block: 40px; scroll-margin-top: 11rem; }
  .story-prose { width: 100%; font-size: 1.02em; line-height: 1.84; }
  .scene-header { grid-template-columns: 1fr; margin-bottom: 20px; }
  .scene-number { width: 39px; height: 39px; }
  .cinematic-grid, .cinematic-grid.three { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr; gap: 5px; padding: 13px 2px; }
  .quote-card { padding: 21px; }
  .btn, .tool, .nav a { min-height: 44px; }
  .footer-inner { display: block; }
}

@media (max-width: 430px) {
  .hero-image { min-height: 320px; }
  .reader-tools { width: 100%; justify-content: flex-end; }
  .scene-menu { margin-top: 12px; }
}

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

@media print {
  :root { --reader-base: 11pt; --reader-scale: 1; }
  .topbar, .reader-tools, .reading-progress, .scene-menu, .end-nav { display: none !important; }
  body { padding: 0; color: #111; background: #fff; }
  body::before { display: none; }
  .hero-card, .card, .chapter-card, .fact, .note-box, .quote-card, .image-frame { color: #111; border-color: #bbb; background: #fff; box-shadow: none; }
  h1, h2, h3, .line p, .story-prose, .beat, .vow, .system-line { color: #111; }
  .muted, .card p, .chapter-card p, .details-body { color: #333; }
  a { color: #111; }
  .scene { break-inside: auto; }
  .image-frame { break-inside: avoid; }
  .beat { border-color: #555; background: #f3f3f3; }
  .system-line { border-color: #555; background: #f3f3f3; text-shadow: none; }
  .hero-image { display: none; }
}


/* ===== One cinematic image per story section + full-screen viewer ===== */
.story-hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.story-hero-single .hero-copy {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

.scene-visual {
  width: min(1880px, calc(100vw - 24px));
  max-width: none;
  margin: 30px 50% 34px;
  transform: translateX(-50%);
}

.scene-visual .image-frame {
  border-radius: clamp(12px, 1.7vw, 28px);
  overflow: hidden;
}

.lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: #06101c;
  cursor: zoom-in;
  text-align: inherit;
}

.lightbox-trigger .story-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.lightbox-trigger:hover .story-image,
.lightbox-trigger:focus-visible .story-image {
  transform: scale(1.012);
  filter: saturate(1.04) contrast(1.025);
}

.lightbox-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 5, 12, .72);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,.34);
  font-family: var(--mono);
  font-size: .62em;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

body.lightbox-open {
  overflow: hidden;
  touch-action: none;
}

.image-lightbox[hidden] { display: none !important; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgba(0, 2, 7, .97);
  opacity: 0;
  transition: opacity 160ms ease;
}

.image-lightbox.is-open { opacity: 1; }

.image-lightbox__panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.image-lightbox__stage {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.image-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.image-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 9px 10px 4px;
}

.image-lightbox__caption {
  margin: 0;
  color: #d8e7f7;
  font-family: var(--serif);
  font-size: .82em;
  line-height: 1.35;
}

.image-lightbox__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.image-lightbox__button {
  display: inline-grid;
  min-width: 46px;
  min-height: 46px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-family: var(--mono);
  font-size: .78em;
  font-weight: 900;
}

.image-lightbox__button:hover,
.image-lightbox__button:focus-visible {
  color: #06111d;
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 780px) {
  .scene-visual {
    width: calc(100vw - 8px);
    margin-top: 22px;
    margin-bottom: 28px;
  }
  .scene-visual .image-frame { border-radius: 11px; }
  .lightbox-hint { top: 8px; right: 8px; min-height: 32px; padding: 6px 9px; }
  .image-lightbox__bar { align-items: flex-end; }
  .image-lightbox__caption { font-size: .72em; }
}

@media (max-width: 520px) {
  .image-lightbox__caption { display: none; }
  .image-lightbox__bar { justify-content: flex-end; min-height: 54px; }
}

@media print {
  .lightbox-hint { display: none; }
  .lightbox-trigger { cursor: default; }
}
