@font-face {
  font-family: Barlow Condensed;
  src: url(assets/barlow-condensed-800.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url(assets/dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0d1110;
  --panel: #151b18;
  --white: #f0f3f1;
  --muted: #b2bdb6;
  --green: #b9edca;
  --line: #303a34;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(1.25rem, 5.6vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ink); color: var(--white); font: 1rem/1.65 var(--body); }
img, iframe { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
::selection { background: var(--green); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
p { text-wrap: pretty; }
h1, h2 { font-family: var(--body); font-weight: 650; }
h2 { font-size: clamp(2.25rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
h2 em { color: var(--green); font-style: normal; }
.wrap {
  --safe-gutter: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  width: min(calc(100% - 2 * var(--safe-gutter)), 80rem);
  margin-inline: auto;
}
.skip { position: absolute; z-index: 10; top: 1rem; left: var(--gutter); transform: translateY(-200%); background: var(--green); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid #25342c; background: #0a110e; }
.masthead-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 700 .98rem/1.18 var(--body); letter-spacing: -.02em; white-space: nowrap; }
.mark { position: relative; display: inline-block; flex: none; width: 1.4rem; aspect-ratio: 1; border: 1px solid var(--green); border-radius: 50%; transform: rotate(-33deg); }
.mark::before, .mark::after { content: ""; position: absolute; inset: 3px 8px; border-left: 1px solid var(--green); border-right: 1px solid var(--green); }
.mark::after { inset: 8px -4px; border: 0; border-top: 1px solid var(--green); }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); font-size: .83rem; font-weight: 650; }
nav a { transition: color .18s ease; }
nav a:hover { color: var(--green); }

.hero { display: grid; isolation: isolate; position: relative; overflow: hidden; background: #0b1511; }
.hero-art, .hero::before { position: absolute; inset: 0; z-index: -2; }
.hero-art img { height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, #080f0df2 0%, #080f0dc7 23%, #090e0c34 54%, transparent 77%), linear-gradient(0deg, #0a100ef5, transparent 33%); }
.hero-inner { min-height: clamp(39rem, calc(100svh - 6.5rem), 58rem); display: flex; flex-direction: column; justify-content: center; position: relative; padding-block: 4.5rem 7.8rem; }
.hero-copy { max-width: 48rem; animation: arrive .55s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--green); font: 650 .69rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; margin-bottom: .9rem; }
.eyebrow > span { display: block; width: 1.1rem; height: 1px; background: currentColor; flex: none; }
.hero h1 { font-family: var(--heading); font-weight: 800; text-transform: uppercase; color: #edf4ed; font-size: clamp(5.6rem, 13vw, 13.1rem); line-height: .77; letter-spacing: -.038em; margin: .15em 0 .17em; text-shadow: 0 4px 28px #07140da6; }
.hero h1 span { display: block; font-size: .30em; line-height: 1; letter-spacing: .23em; margin-bottom: .24em; }
.hero-lede { max-width: 35ch; color: #d2dfd5; font-size: clamp(1.025rem, 1.55vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.button { min-height: 3.15rem; padding: .7rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-size: .9rem; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.primary { background: var(--green); color: #101b14; border: 1px solid var(--green); }
.primary:hover { background: #d7ffe4; border-color: #d7ffe4; }
.secondary { background: #0b1511b8; color: var(--white); border: 1px solid #6a8073; }
.secondary:hover { background: #192d22; border-color: var(--green); }
.play-icon { display: inline-block; width: .66rem; height: .76rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); flex: none; }
.hero-foot { position: absolute; bottom: 0; inset-inline: 0; min-height: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #c6d4ca; border-top: 1px solid #a8c8b34a; font: .66rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.hero-foot time, .hero-foot span, .hero-foot a:hover { color: var(--green); }

.doom-copy .lede { font-size: clamp(1.05rem, 1.65vw, 1.3rem); }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .45rem; color: var(--green); font-size: .88rem; font-weight: 680; text-decoration: underline; text-decoration-color: #7ab895; text-underline-offset: .22em; }
.text-link:hover { color: var(--white); text-decoration-color: currentColor; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(1.6rem, 4.2vw, 3.5rem); }
.section-heading > p { color: var(--muted); max-width: 33ch; padding-bottom: .12rem; }
.screen { width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; min-height: 200px; background: #050705; overflow: hidden; }
.video-theater {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
}
.video-theater::backdrop { background: #000; }
html:has(.video-theater[open]) { overflow: hidden; }
body:has(.video-theater[open]) :is(.masthead, .jarvis-launcher) { visibility: hidden; }
.video-theater-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #000;
}
.video-theater-frame { width: min(100vw, calc(100dvh * 16 / 9)); aspect-ratio: 16 / 9; }
.video-theater-frame iframe { height: 100%; border: 0; }
.video-theater-frame:has([data-x-video]) { width: min(100vw, calc(100dvh * 960 / 403)); aspect-ratio: 960 / 403; }
.video-theater-close {
  position: absolute;
  top: max(.6rem, env(safe-area-inset-top, 0px));
  right: max(.6rem, env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #101010c9;
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .video-theater-close { opacity: 0; transition: opacity .18s ease; }
  .video-theater-close:is(:hover, :focus-visible) { opacity: 1; }
}
.video-cover { position: relative; isolation: isolate; height: 100%; display: grid; place-items: center; overflow: hidden; }
.video-cover:focus-visible { outline-offset: -4px; }
.video-cover img { position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.video-cover::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(0deg, #070c09b8, #06130c26 46%, #070c093b); }
.video-cover:hover img { transform: scale(1.035); }
.video-play { width: clamp(3.4rem, 8vw, 6.6rem); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #e1fae7; border-radius: 50%; box-shadow: 0 0 0 .35rem #d1ffe52e; background: #091912b8; color: var(--green); transition: background .18s ease, color .18s ease; }
.video-play .play-icon { margin-left: .23rem; width: 26%; height: 30%; }
.video-cover:hover .video-play { background: var(--green); color: var(--ink); }
.screen-info { padding: 1.05rem .55rem .35rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.screen-info .text-link { white-space: nowrap; }

.worlds { padding-block: clamp(4rem, 8.5vw, 8rem); }
.world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.6rem); margin-bottom: .7rem; }
.world { --world-color: #e5c396; min-width: 0; }
.world.four { --world-color: #a8dfe1; }
.world.mutants { --world-color: #d3ccef; }
.world-art { aspect-ratio: 1.72; position: relative; overflow: hidden; }
.world-art img { height: 100%; object-fit: cover; object-position: 50% 53%; }
.world-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #111711c9, transparent 45%); }
.world-art span { position: absolute; z-index: 1; left: 1rem; bottom: .85rem; padding: .3rem .47rem; background: #0d1311de; color: var(--world-color); font: 650 .68rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.world-copy { padding: 1.15rem .1rem; }
.world h2 { font-size: clamp(1.4rem, 2.4vw, 2.55rem); line-height: 1.18; letter-spacing: -.045em; margin-bottom: .65rem; }
.world p { font-size: .94rem; color: #c0cec4; }
details { border-top: 1px solid var(--line); }
summary { display: flex; width: 100%; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: .5rem; cursor: pointer; list-style: none; font-size: .86rem; font-weight: 700; color: var(--green); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; }
details[open] > summary::after { content: "−"; }
summary:hover { color: var(--white); }
.world details { margin-top: .15rem; }
.world-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .85rem; margin: .55rem 0 .25rem; padding: 0; list-style: none; }
.world-chapters a { display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-height: 2.75rem; border-top: 1px solid var(--line); color: var(--green); font-size: .88rem; font-weight: 680; }
.world-chapters a:hover { text-decoration: underline; text-underline-offset: .2em; }
.world-primary-link { margin-top: .38rem; }
.world details p { padding-bottom: .6rem; }

.collision { min-height: 20.5rem; position: relative; display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; gap: 1rem; border: 1px solid #385448; background: #0b1511; padding: 1.2rem; }
.collision-grid { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, transparent, #0b1511 75%), repeating-linear-gradient(90deg, #466a5435 0 1px, transparent 1px 23px), repeating-linear-gradient(0deg, #466a5435 0 1px, transparent 1px 23px); }
.collision-img { position: relative; display: flex; width: min(90%, 26rem); margin: 0 auto; align-items: center; justify-content: center; }
.collision-img span { display: block; width: 55%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #7fb195; background: repeating-radial-gradient(ellipse at 40% 50%, transparent 0 7px, #b1f0c21a 8px 9px, transparent 10px 13px), radial-gradient(circle at 80% 50%, #69b68568, #183729 52%, #101f18 72%); }
.collision-img span + span { margin-left: -13%; background: repeating-radial-gradient(ellipse at 60% 50%, transparent 0 7px, #b1f0c21a 8px 9px, transparent 10px 13px), radial-gradient(circle at 20% 50%, #69b68568, #183729 52%, #101f18 72%); mix-blend-mode: screen; }
.collision-img i { position: absolute; left: 50%; top: 14%; bottom: 14%; width: 1px; background: #c7ffdd; box-shadow: 0 0 15px 4px #83eaa1b0; }
.collision figcaption { display: flex; justify-content: space-evenly; flex-wrap: wrap; gap: .5rem; text-align: center; color: #c1d0c6; font: .65rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.collision figcaption b { color: var(--green); }

.doom { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7.4rem); align-items: center; padding-block: clamp(4rem, 8vw, 8rem); }
.doom-image { position: relative; align-self: stretch; min-height: 24rem; border: 1px solid #53685b; overflow: hidden; }
.doom-image img { position: absolute; height: 100%; object-fit: cover; object-position: 50% 41%; }
.doom-image small { position: absolute; bottom: 1rem; left: 1rem; background: #0a110eee; padding: .46rem .62rem; border: 1px solid #435c4b; color: #deeadf; font: .65rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.doom-image small span { color: var(--green); }
.doom-copy > h3 { font-size: clamp(2.25rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: 1.02; margin-bottom: 1rem; }
.doom-copy .lede { margin-bottom: 1.3rem; }
.doom-note { border-top: 1px solid var(--line); padding-block: .95rem; }
.doom-note h4 { color: var(--green); font-size: 1rem; margin: 0 0 .25rem; }
.doom-note p { color: var(--muted); font-size: .93rem; }

.watchlist { background: var(--panel); border-block: 1px solid #2d4637; }
.watch-split { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(4rem, 7vw, 7rem); }
.watch-split h2 { max-width: 15ch; }
.watch-split > div:first-child > p:not(.eyebrow) { margin: 1.1rem 0 .4rem; max-width: 38ch; color: #c1cfc5; }
.watch-rows { padding: 0; margin: 0; list-style: none; }
.watch-rows li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: baseline; gap: .55rem; border-top: 1px solid #405548; padding: .95rem 0; }
.watch-index { color: var(--muted); font: 650 .95rem/1 var(--mono); }
.watch-rows li:has(.watch-poster) { grid-template-columns: clamp(3.35rem, 6vw, 4.5rem) minmax(0, 1fr) auto; align-items: start; gap: .85rem; }
.watch-poster { position: relative; }
.watch-poster img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: .25rem; background: var(--panel); }
.watch-poster .watch-index { position: absolute; left: .16rem; bottom: .16rem; min-width: 1rem; padding: .2rem; color: var(--white); background: #101816e6; border-radius: .16rem; font-size: .65rem; text-align: center; }
.watch-rows li:has(.watch-poster) .watch-type { margin-top: .22rem; }
.watch-rows h3 { font-size: 1.07rem; line-height: 1.35; }
.watch-rows h3 span, .watch-type { color: #bdd1c3; font: .67rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.watch-rows h3 span { display: inline-block; margin-left: .35rem; }
.watch-rows p { margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.more-watching { border-block-color: #405548; }
.more-watching ul { padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.more-watching li { margin-top: .35rem; }
.more-watching strong { color: var(--white); font-weight: 650; }

.next { text-align: center; background: var(--panel); border-block: 1px solid var(--line); }
.next-inner { padding-block: clamp(3.75rem, 8vw, 7.5rem); }
.next .eyebrow { justify-content: center; }
.next h2 { margin-bottom: .7rem; }
.next p:not(.eyebrow) { color: #d1ded5; }
.footer { border-top: 1px solid var(--line); padding-block: .25rem; }
.footer .text-link { color: var(--muted); font-weight: 550; }
.footer .text-link:hover { color: var(--white); }
.about-page { padding-bottom: clamp(2rem, 6vw, 4.5rem); }
.about-section { max-width: 45rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.about-section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .55rem; }
.about-section p { color: var(--muted); }
.about-links { list-style: none; margin: .55rem 0 0; padding: 0; }

@media (max-width: 950px) {
  .world-grid { gap: .65rem; }
  .world p { font-size: .9rem; }
}

@media (max-width: 700px) {
  :root { --gutter: clamp(1.15rem, 5vw, 2rem); }
  .masthead-inner { display: block; padding-top: .8rem; }
  .masthead .brand { display: flex; width: fit-content; margin-right: auto; }
  nav { margin-top: .65rem; border-top: 1px solid #29382f; gap: clamp(.8rem, 5vw, 1.75rem); }
  nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .8rem; }
  .hero-art, .hero::before { bottom: auto; height: min(111vw, 40rem); }
  .hero-art img { object-position: center 41%; }
  .hero::before { background: linear-gradient(0deg, #0b1511 0%, #0b1511de 13%, #0b15112b 48%, transparent 79%); }
  .hero-inner { min-height: 0; padding: min(73vw, 29rem) 0 0; }
  .hero h1 { font-size: clamp(4.6rem, 22.6vw, 9.6rem); }
  .hero h1 span { margin-bottom: .31em; }
  .hero-copy { position: relative; }
  .hero-lede { font-size: 1.02rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: .2rem; margin-top: 1.2rem; }
  .hero-actions .secondary { background: transparent; border-color: transparent; color: var(--green); }
  .hero-actions .secondary:hover { color: var(--white); }
  .button { padding-inline: .85rem; min-height: 3rem; }
  .hero-foot { position: static; margin-top: 1.5rem; min-height: 3.2rem; }
  .hero-foot a + a { display: none; }
  .doom, .watch-split { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .watch-split h2 { max-width: none; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .9rem; }
  .screen { max-height: none; }
  .screen-info { display: block; padding: .8rem .4rem .1rem; }
  .screen-info .text-link { margin-top: .22rem; }
  .world-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .world-art { aspect-ratio: 1.9; }
  .world h2 { font-size: 2.4rem; }
  .world p { font-size: .97rem; }
  .collision { min-height: 16.75rem; }
  .doom-image { min-height: auto; aspect-ratio: 1.12; }
  .doom-image img { object-position: 50% 45%; }
  .watch-rows li { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
  .next h2 { font-size: clamp(2.7rem, 10.5vw, 5rem); }
}

@media (max-width: 700px) and (max-height: 730px) {
  .hero-inner { padding-top: min(66vw, 27rem); }
}

@media (max-width: 360px) {
  .world h2 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.masthead nav a[aria-current] { color: var(--green); }

.quest-chapter:target .quest-banner { border-color: var(--green); }
.quest-banner {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background: #101d16;
  min-height: clamp(11.5rem, 25vw, 18.25rem);
  padding: clamp(1.35rem, 3.6vw, 3rem);
  border: 1px solid var(--line);
}
.quest-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #080d0bf5, #080d0b55 64%, #080d0b12), linear-gradient(90deg, #080d0be0, #080d0b18 88%); }
.quest-banner img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 44%; z-index: -2; }
.quest-banner > small { position: absolute; right: .6rem; top: .6rem; background: #090e0cd9; color: #dbe9df; font: .62rem/1.2 var(--mono); padding: .35rem .5rem; }
.quest-new-avengers .quest-banner img { object-position: 50% 35%; }
.quest-wakanda .quest-banner img { object-position: 50% 37%; }
.quest-doom-comics .quest-banner img { object-position: 50% 30%; }
.quest-intro { max-width: 59ch; color: #d9e5dc; font-size: clamp(1rem, 1.8vw, 1.18rem); margin-block: 1.15rem 1.4rem; }
.cast-section-title { font-size: 1.5rem; letter-spacing: -.025em; margin: 1.05rem 0 .65rem; }
.cast-grid { max-width: 68rem; }
.cast-entry {
  display: grid;
  grid-template-columns: minmax(0, .43fr) minmax(0, 1fr);
  gap: .65rem clamp(1.25rem, 4vw, 3.75rem);
  padding: clamp(1.25rem, 2.75vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
}
.profile-identity { min-width: 0; align-self: start; }
@media (min-width: 576px) {
  .profile-identity { position: sticky; top: 1.5rem; }
}
.profile-copy { max-width: 67ch; min-width: 0; }
.cast-entry h3 { font-size: clamp(1.19rem, 2.1vw, 1.7rem); line-height: 1.18; letter-spacing: -.025em; }
.cast-entry .cast-credit { color: var(--muted); font-size: .79rem; margin-top: .2rem; }
.profile-still { margin: .7rem 0 0; background: var(--panel); border-radius: .35rem; overflow: hidden; }
.profile-still img { aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 35%; }
.profile-identity .cast-credit:has(img) { display: flex; align-items: center; gap: .65rem; margin-top: .55rem; }
.cast-credit img { width: 2.65rem; height: 3rem; flex: none; object-fit: cover; object-position: 50% 30%; border-radius: .2rem; background: var(--panel); }
.actor-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(4rem, 5.2rem)); align-items: start; gap: .65rem .5rem; padding: 0; margin: .95rem 0; list-style: none; }
.actor-gallery img { aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; border-radius: .2rem; background: var(--panel); }
.actor-gallery span { display: block; margin-top: .22rem; font-size: .72rem; line-height: 1.35; color: var(--muted); }
.story-still { margin: 0 0 .85rem; max-width: 67ch; background: var(--panel); border-radius: .35rem; overflow: hidden; }
.profile-copy > .story-still { margin: .85rem 0; }
.story-still img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.quest-banner > small a:hover { color: var(--green); }
.quest-talokan .quest-banner::after { background: linear-gradient(90deg, #080d0bde, transparent 78%), linear-gradient(0deg, #080d0bc7, transparent 75%); }
.image-credits { margin-top: .65rem; border-top: 1px solid var(--line); }
.image-credits summary { display: list-item; padding-block: .85rem; min-height: 2.75rem; color: var(--green); cursor: pointer; }
.image-credits ul { padding-inline-start: 1.15rem; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.image-credits li + li { margin-top: .4rem; }
.image-credits a { color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.cast-entry p:not(.cast-credit) { color: #c5d1c9; font-size: .93rem; margin-top: .6rem; }
.cast-entry .profile-copy > p:first-child { margin-top: 0; }
.cast-entry .cast-watch { display: grid; gap: .24rem; margin-top: .7rem; line-height: 1.45; }
.cast-watch strong { color: var(--muted); font: 650 .75rem/1.3 var(--body); }
.quest-story { margin-top: 1rem; padding: clamp(1rem, 2.8vw, 1.8rem); background: var(--panel); border-left: 2px solid var(--line); }
.quest-story h3 { color: var(--white); font-size: 1.16rem; line-height: 1.25; margin-bottom: .5rem; }
.quest-story p { max-width: 70ch; color: #d1ded4; }
.quest-story p + p { margin-top: .75rem; }
.quest-sources { margin-top: .85rem; }
.quest-sources ul { padding-left: 1.35rem; margin: .2rem 0 .8rem; font-size: .88rem; }
.quest-sources li { margin-block: .25rem; }

@media (min-width: 701px) and (max-width: 900px) {
  .masthead-inner { gap: 1rem; }
  .masthead nav { gap: 1rem; }
  .hero-inner { min-height: clamp(35rem, 70svh, 46rem); }
  .hero h1 { font-size: 14vw; }
  .world-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .world { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); align-items: stretch; }
  .world-art { aspect-ratio: auto; min-height: 12.5rem; }
  .world-art img { position: absolute; inset: 0; }
  .world-copy { padding: 1rem 1.3rem; }
  .world h2 { font-size: clamp(2.15rem, 5vw, 3.1rem); }
}

@media (max-width: 700px) {
  .masthead nav { gap: .1rem clamp(.38rem, 2.5vw, 1.15rem); flex-wrap: wrap; }
  .masthead nav a { font-size: clamp(.7rem, 2.25vw, .8rem); }
  .quest-banner { min-height: 10.5rem; }
}

@media (max-width: 575px) {
  .cast-entry { grid-template-columns: minmax(0, 1fr); }
  .profile-still img { aspect-ratio: 16 / 9; }
}

:root { --bottom-nav: 4.35rem; --rail: 12.1rem; }
.nav-icon { display: block; flex: none; width: 1.375rem; height: 1.375rem; }
.nav-short { display: none; }

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  body { padding-left: var(--rail); }
  .masthead {
    position: fixed;
    z-index: 4;
    inset: 0 auto 0 0;
    width: var(--rail);
    overflow-y: auto;
    border: 0;
    border-right: 1px solid #2c4135;
  }
  .masthead-inner { width: auto; display: block; padding: 1.55rem .9rem; }
  .masthead .brand { white-space: normal; padding: 0 .38rem; font-size: 1rem; }
  .masthead .main-nav { flex-direction: column; align-items: stretch; gap: .22rem; margin-top: 1.65rem; }
  .masthead .main-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .55rem .62rem;
    border-left: 2px solid transparent;
    font-size: .83rem;
  }
  .masthead .main-nav a:hover, .masthead .main-nav a[aria-current] { background: #1b2b21; color: var(--green); }
  .masthead .main-nav a[aria-current] { border-color: var(--green); }
  .masthead .main-nav .nav-icon { width: 1.25rem; height: 1.25rem; color: #a0dcb5; }
  .wrap { --gutter: clamp(1.65rem, 4.6vw, 4.8rem); }
  .hero-inner { min-height: clamp(39rem, 95svh, 57rem); }
  .hero h1 { font-size: clamp(5.5rem, 11.75vw, 12.25rem); }
  .skip { margin-left: var(--rail); }
  .hero-art img { object-position: 60% 45%; }
}

@media (max-width: 1100px), (hover: none), (pointer: coarse) {
  html { scroll-padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px) + 1rem); }
  body { padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px)); }
  .masthead-inner { min-height: 3.7rem; display: flex; padding-top: 0; }
  .masthead .main-nav {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    min-height: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px));
    padding: .2rem max(.3rem, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(.3rem, env(safe-area-inset-left, 0px));
    border-top: 1px solid #3a5444;
    background: #0d1914;
  }
  .masthead .main-nav a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 3.45rem;
    gap: .26rem;
    padding: .2rem 0;
    color: #d5e3d8;
    border-top: 2px solid transparent;
    font-size: clamp(.65rem, 1.9vw, .84rem);
    text-align: center;
    line-height: 1.2;
  }
  .masthead .main-nav a:hover, .masthead .main-nav a[aria-current] { color: var(--green); background: #1b2b21; }
  .masthead .main-nav a[aria-current] { border-color: var(--green); }
  .masthead .main-nav .nav-long { display: none; }
  .masthead .main-nav .nav-short { display: block; }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) {
  :root { --bottom-nav: 3rem; }
  .masthead .main-nav { align-items: center; padding-top: 0; }
  .masthead .main-nav a { flex-direction: row; gap: .38rem; min-height: 2.75rem; border: 0; }
  .masthead .main-nav .nav-icon { width: 1.2rem; height: 1.2rem; }
  .masthead .main-nav a[aria-current] { background: transparent; }
  .masthead .main-nav a[aria-current] .nav-short { text-decoration: underline; text-underline-offset: .32em; }
}

@media (max-width: 700px) and (max-height: 730px) {
  .hero-inner { padding-top: min(58vw, 24rem); }
}

.quest-talokan .quest-banner { background: radial-gradient(ellipse at 82% 22%, #1d5460, #0e262b 50%, #0d1616); }
.quest-other-worlds .quest-banner {
  background: url(assets/hero.webp) 78% 38% / cover;
}
.quest-clues .quest-banner img { object-position: 50% 31%; }

.screening-room { padding-block: clamp(2.3rem, 5vw, 5rem); }
.library-heading { margin-bottom: clamp(1.3rem, 3.6vw, 2.8rem); }
.library-heading h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); letter-spacing: -.065em; line-height: 1; }
.library-heading > p { color: var(--muted); margin-top: .65rem; }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16.5rem, .42fr); align-items: start; gap: clamp(1.35rem, 3vw, 2.5rem); }
.screening-stage .screen { aspect-ratio: 16 / 9; max-height: none; }
.screening-stage .screen-info { padding: 1.05rem 0; align-items: end; }
.screening-stage .screen-info h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); letter-spacing: -.045em; margin-top: .2rem; text-wrap: pretty; }
.video-meta { color: var(--muted); font-size: .78rem; }
.video-context { border-top: 1px solid var(--line); padding-top: .85rem; }
.video-context h3 { font-size: 1.05rem; }
.video-context p { color: var(--muted); max-width: 63ch; font-size: .95rem; margin-top: .2rem; }
.video-context details { margin-top: .5rem; border: 0; }
.video-context details summary { width: min(100%, 13rem); }
.video-context details p { margin-bottom: .35rem; }
.video-context .text-link { margin-bottom: .3rem; }
.clip-library { border-top: 1px solid var(--line); }
.clip-shelf { border-top: 1px solid var(--line); padding-block: .5rem; }
.clip-shelf:first-child { border: 0; }
.clip-shelf h2, .clip-shelf summary { font: 700 .93rem/1.3 var(--body); color: var(--white); letter-spacing: -.01em; }
.clip-shelf h2 { padding: .62rem 0; }
.clip-shelf ul { list-style: none; padding: 0; margin: 0; }
.clip-row { display: grid; grid-template-columns: minmax(4rem, 4.6rem) minmax(0, 1fr); align-items: center; gap: .72rem; padding: .53rem .45rem; min-height: 3.45rem; border-radius: .35rem; }
.clip-row img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: .2rem; }
.clip-row strong, .clip-row small { display: block; line-height: 1.24; }
.clip-row strong { font-size: .84rem; }
.clip-row small { font-size: .72rem; margin-top: .23rem; color: var(--muted); }
.clip-row:hover { background: #1c2520; }
.clip-row[aria-current] { background: #203029; }
.clip-row[aria-current] strong { color: var(--green); }

@media (min-width: 1000px) and (min-height: 760px) {
  .screening-stage { position: sticky; top: 1.3rem; }
}

@media (max-width: 999px) {
  .library-layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}

@media (min-width: 600px) and (max-width: 999px) {
  .clip-shelf ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .65rem; }
  .clip-row { grid-template-columns: 5.2rem minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .screening-stage .screen-info { display: block; }
  .screening-room .screen-info .text-link { margin-top: .15rem; }
  .screening-room .clip-row { min-height: 3.35rem; }
}

.browse-videos { display: none; }
@media (max-width: 999px) {
  .browse-videos { display: inline-flex; margin-top: .2rem; }
}

.worlds-search { max-width: 42rem; margin-top: 1.05rem; }
.finder-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.finder-controls { position: relative; display: flex; align-items: center; max-width: 41rem; }
.finder-controls input { font: 1rem/1.45 var(--body); min-width: 0; flex: 1; min-height: 3.25rem; padding: .65rem 6.1rem .65rem .95rem; color: var(--white); background: var(--panel); border: 1px solid #526057; border-radius: .4rem; }
.finder-controls input::placeholder { color: var(--muted); }
.finder-controls input::-webkit-search-cancel-button { display: none; }
.finder-suggestions { position: absolute; z-index: 25; inset: calc(100% + .35rem) 0 auto; margin: 0; padding: .3rem; list-style: none; overflow: auto; overscroll-behavior: contain; border: 1px solid #526057; border-radius: .42rem; background: #151f1a; box-shadow: 0 .65rem 1.45rem #0006; }
.finder-suggestions-above { inset: auto 0 calc(100% + .35rem); }
.finder-suggestion { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr); align-items: center; gap: .65rem; min-height: 3.05rem; padding: .3rem .45rem; border-radius: .25rem; cursor: pointer; }
.finder-suggestion:hover, .finder-suggestion[aria-selected="true"] { background: #263930; }
.finder-suggestion-copy { min-width: 0; }
.finder-suggestion-copy > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-suggestion-copy strong { font-size: .92rem; line-height: 1.25; }
.finder-suggestion-copy small { margin-top: .15rem; color: var(--muted); font-size: .75rem; line-height: 1.3; }
.finder-suggestion .finder-thumbnail svg { width: 1.15rem; height: 1.15rem; }
.finder-previewing :is(.finder-status, .finder-results, .finder-more) { display: none; }
.finder-clear, .finder-examples button, .finder-more { cursor: pointer; background: transparent; border: 1px solid var(--line); color: var(--green); border-radius: .35rem; min-height: 2.75rem; padding: .45rem .8rem; font-size: .86rem; }
.finder-clear:hover, .finder-examples button:hover, .finder-more:hover { background: #203029; }
.finder-examples { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.finder-status { font-size: .84rem; color: var(--muted); margin-top: .65rem; }
.finder-status:empty { margin: 0; }
.finder-results { list-style: none; margin: .65rem 0 0; padding: 0; }
.finder-results:empty { margin: 0; }
.finder-result { display: grid; grid-template-columns: clamp(3.7rem, 12vw, 5.4rem) minmax(0, 1fr); gap: clamp(.65rem, 2.3vw, 1rem); align-items: start; border-top: 1px solid var(--line); padding: .9rem 0; }
.finder-thumbnail { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: .35rem; background: var(--panel); color: var(--green); overflow: hidden; }
.finder-thumbnail img { height: 100%; object-fit: cover; object-position: 50% 35%; }
.finder-thumbnail .finder-cover { object-fit: contain; }
.finder-thumbnail svg { width: 1.55rem; height: 1.55rem; }
.finder-result-copy { min-width: 0; overflow-wrap: anywhere; }
.finder-result h2 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.025em; text-wrap: unset; }
.finder-profile { display: inline-flex; align-items: center; min-height: 2.75rem; max-width: 100%; color: var(--green); text-underline-offset: .22em; }
.finder-profile:hover { text-decoration: underline; }
.finder-profile:focus-visible { outline-offset: 2px; }
.finder-chapter, .finder-description { color: var(--muted); font-size: .88rem; }
.finder-chapter { font-size: .77rem; }
.finder-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.finder-details { margin-top: .4rem; max-width: 34rem; }
.finder-more { margin-top: .7rem; }
.cast-watch > span { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.cast-watch a, .quest-sources a, .watch-rows h3 a, .more-watching a { color: var(--green); text-decoration: underline; text-decoration-color: #7ab895; text-underline-offset: .22em; }
.cast-watch a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.finder-links { display: flex; flex-wrap: wrap; column-gap: 1rem; }
.finder-links:empty { display: none; }
.cast-entry:target h3, .quest-story:target h3 { color: var(--green); }
.profile-background, .profile-references { scroll-margin-top: 1.1rem; }
.profile-copy > details:first-of-type { margin-top: .95rem; }
.chapter-depth { margin-block: 1.1rem clamp(1.65rem, 3vw, 2.6rem); max-width: 50rem; }
.chapter-depth > details:last-child { border-bottom: 1px solid var(--line); }
.chapter-depth .chapter-contents { margin-bottom: 0; }
.profile-background > summary, .profile-references > summary, .chapter-contents > summary,
.quest-sources > summary, .media-lists summary, .finder-details > summary, .world-copy summary {
  padding-inline: 0 .3rem;
  font-size: .92rem;
  color: var(--white);
  font-weight: 550;
  transition: color .18s ease;
}
.profile-background > summary::after, .profile-references > summary::after, .chapter-contents > summary::after,
.quest-sources > summary::after, .media-lists summary::after, .finder-details > summary::after, .world-copy summary::after {
  content: "";
  flex: 0 0 .46rem;
  height: .46rem;
  margin-inline: .5rem .18rem;
  border: solid var(--green);
  border-width: 0 1px 1px 0;
  transform: translateY(-.12rem) rotate(45deg);
  transition: transform .2s ease;
}
:is(.profile-background, .profile-references, .chapter-contents, .quest-sources, .media-lists details, .finder-details, .world-copy details)[open] > summary::after {
  content: "";
  transform: translateY(.12rem) rotate(225deg);
}
:is(.profile-background, .profile-references, .chapter-contents, .quest-sources, .media-lists details, .finder-details, .world-copy details) > summary:hover,
:is(.profile-background, .profile-references, .chapter-contents, .quest-sources, .media-lists details, .finder-details, .world-copy details)[open] > summary {
  color: var(--green);
}
.profile-background > :last-child:not(summary), .profile-references > :last-child:not(summary) { margin-bottom: 1rem; }
.profile-background > p, .chapter-depth li p { max-width: 68ch; color: #c5d1c9; }
.profile-background > p + p { margin-top: .65rem; }
.profile-background a, .quest-intro a, .quest-story a, .cast-entry p > a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #7ab895;
  text-underline-offset: .2em;
}
.profile-background a:hover, .cast-entry p > a:hover { color: var(--white); }
.comic-screen, .comic-histories { scroll-margin-top: 1.1rem; }
.comic-screen { padding: .4rem 0 1.15rem; }
.comic-screen-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; }
.comic-screen-title { margin: 0; color: var(--white); font-size: 1rem; line-height: 1.35; font-weight: 680; }
.comic-screen-head > a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .35rem; font-size: .82rem; }
.comic-screen > .comic-screen-title { margin-top: 1rem; }
.comic-history .comic-screen > p:not(.comic-screen-links) { margin-top: .42rem; }
.comic-history .comic-screen-links { display: flex; flex-wrap: wrap; gap: 0 .85rem; margin-top: .15rem; }
.comic-screen-links a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .82rem; }
.comic-history .comic-note { margin: .15rem 0 .95rem; }
.comic-timeline { list-style: none; margin: .35rem 0 0; padding: 0; }
.comic-event { display: grid; align-items: start; gap: .85rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.comic-event:has(.comic-cover) { grid-template-columns: clamp(4.25rem, 12vw, 7.25rem) minmax(0, 1fr); }
.comic-cover { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; border-radius: .25rem; }
.comic-event-copy { min-width: 0; }
.comic-history .comic-event-copy .comic-era { margin: 0 0 .15rem; color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
.comic-event-copy h4 { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.3; font-weight: 680; color: var(--white); }
.comic-history .comic-event-copy p { margin: 0; font-size: .93rem; line-height: 1.55; }
.comic-history .comic-event-copy .comic-look { margin-top: .4rem; color: var(--muted); }
.comic-look strong { margin-inline-end: .3rem; color: var(--white); font-weight: 650; }
.comic-history .comic-event-copy .comic-issue { margin-top: .15rem; font-size: .82rem; }
.comic-issue a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.comic-history p.comic-group-title { margin: 1rem 0 .45rem; font-weight: 680; color: var(--white); }
.comic-reading { border-top: 1px solid var(--line); }
.comic-reading > p + p { margin-top: .55rem; }
.chapter-depth .appearance-list { margin-top: .2rem; }
.chapter-depth .appearance-list > li:first-child { border-top: 0; padding-top: .2rem; }
.chapter-depth .timeline-heading { color: var(--white); margin-bottom: .28rem; }
.appearance-list { list-style: none; padding: 0; margin: .85rem 0 0; }
.appearance-list > li { border-top: 1px solid var(--line); padding: .75rem 0 .15rem; }
.appearance-list :is(h4, .timeline-heading) { display: flex; flex-wrap: wrap; align-items: baseline; gap: .16rem .65rem; margin: 0; font-size: 1rem; font-weight: 650; }
.appearance-list :is(h4, .timeline-heading) span { color: var(--muted); font-size: .79rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.finder-controls .finder-clear, .finder-examples button, .finder-more {
  border: 0;
  border-radius: 0;
  padding-inline: 0;
  color: var(--green);
  text-underline-offset: .2em;
}
.finder-examples { column-gap: 1.15rem; margin-top: .2rem; }
.finder-controls .finder-clear:hover, .finder-examples button:hover, .finder-more:hover { background: transparent; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  :is(.profile-background, .profile-references, .chapter-contents, .quest-sources, .media-lists details, .finder-details, .world-copy details) > summary,
  :is(.profile-background, .profile-references, .chapter-contents, .quest-sources, .media-lists details, .finder-details, .world-copy details) > summary::after {
    transition: none;
  }
}

.landing-choices { padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.landing-choices h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
.landing-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: clamp(1rem, 3vw, 2.3rem); margin-top: 1.15rem; }
.landing-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 2.7vw, 2.2rem); }
.landing-grid a { position: relative; padding: .85rem 1.75rem .9rem 0; border-top: 1px solid var(--line); }
.landing-grid h3 { font-size: clamp(1.02rem, 2.15vw, 1.3rem); font-weight: 700; letter-spacing: -.026em; line-height: 1.18; }
.landing-grid p { margin-top: .32rem; color: var(--muted); font-size: .9rem; line-height: 1.48; }
.landing-grid .choice-arrow { position: absolute; top: .85rem; right: .1rem; color: var(--green); }
.landing-sections a:first-child { grid-column: 1 / -1; }
.landing-grid a:hover h3 { color: var(--green); }
.landing-grid .landing-start { border: 0; border-radius: .35rem; background: var(--panel); padding: 1rem 2rem 1.15rem 1.1rem; }
.landing-start .choice-arrow { top: 1rem; right: .85rem; }

.page-intro { padding-top: clamp(2.55rem, 6vw, 5.25rem); padding-bottom: clamp(1.3rem, 3.4vw, 2.5rem); }
.page-intro h1, .worlds-page h1, .watchlist-page h1 { font-size: clamp(2.65rem, 7vw, 5.65rem); line-height: 1.03; letter-spacing: -.062em; text-wrap: balance; }
.page-intro > p:not(.eyebrow) { margin-top: .65rem; color: var(--muted); max-width: 54ch; }
.prep-page .page-intro > p { max-width: 62ch; }
.prep-figure img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: var(--prep-position, center); border-radius: .4rem; background: #141e19; }
.prep-figure figcaption { margin-top: .46rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.prep-figure figcaption a { text-decoration: underline; text-decoration-color: #71887b; text-underline-offset: .2em; }
.prep-figure figcaption a:hover { color: var(--white); }
.prep-lead img { aspect-ratio: 2.22; }
.prep-contents { margin-block: 1.15rem clamp(1.4rem, 3.6vw, 3.25rem); border-top: 1px solid var(--line); }
.prep-contents > summary { padding-block: .7rem; color: var(--white); font-size: .95rem; cursor: pointer; }
.prep-contents nav { display: flex; flex-wrap: wrap; gap: .15rem 1.35rem; margin: 0; border: 0; }
.prep-contents nav a { display: block; min-height: 2.75rem; padding-block: .62rem; font-size: .9rem; color: var(--muted); }
.prep-contents nav a:hover { color: var(--green); }
.prep-section { padding-block: clamp(2.3rem, 5.3vw, 4.85rem); border-top: 1px solid var(--line); }
.prep-section h2 { font-size: clamp(2rem, 4.65vw, 3.85rem); line-height: 1.07; letter-spacing: -.04em; }
.prep-spread { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); gap: clamp(1.65rem, 5.5vw, 5.3rem); align-items: start; }
.prep-visuals > * + * { margin-top: clamp(.9rem, 2.2vw, 1.7rem); }
.prep-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.prep-prose { max-width: 66ch; min-width: 0; }
.prep-prose > p { color: #d9e4dd; font-size: clamp(1rem, 1.28vw, 1.12rem); line-height: 1.7; }
.prep-prose > p a { color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.prep-prose > p a:hover { color: var(--white); }
.prep-prose > :is(p, figure, .prep-comic) + p { margin-top: .9rem; }
.prep-section h3 { font-size: clamp(1.16rem, 2.1vw, 1.35rem); letter-spacing: -.02em; line-height: 1.3; margin: 1.6rem 0 .5rem; }
.prep-prose h3:first-child { margin-top: 0; }
.prep-prose > figure { margin-top: 1rem; }
.prep-comic { display: grid; grid-template-columns: clamp(4.7rem, 12vw, 7.2rem) minmax(0, 1fr); align-items: start; gap: clamp(.75rem, 2vw, 1.3rem); }
.prep-comic img { aspect-ratio: 2 / 3; }
.prep-links { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin-top: .7rem; }
.prep-links a { display: inline-block; padding-block: .6rem; }
.prep-band { border-block: 1px solid var(--line); background: var(--panel); }
.prep-band .prep-section, .prep-band + .prep-section { border-top: 0; }
.prep-timeline { margin-block: clamp(1.6rem, 4vw, 3.5rem); padding-block: clamp(1rem, 2.5vw, 1.6rem); border-block: 1px solid var(--line); }
.prep-timeline figcaption { display: grid; gap: .12rem; }
.prep-timeline figcaption > strong { font-size: 1.1rem; font-weight: 700; }
.prep-timeline figcaption span, .prep-timeline li p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.prep-timeline ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.3vw, 2rem); margin: .95rem 0 0; padding: 0; list-style: none; }
.prep-timeline li + li { padding-inline-start: clamp(.8rem, 2.3vw, 2rem); border-inline-start: 1px solid var(--line); }
.prep-timeline svg { display: block; width: min(100%, 12rem); height: auto; margin-bottom: .55rem; color: var(--green); }
.prep-timeline svg path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.prep-timeline svg circle { fill: currentColor; }
.prep-timeline .branch-cut { color: var(--muted); stroke-dasharray: 3 4; }
.prep-timeline .branch-stop { color: #e4c987; }
.prep-timeline li p { margin-top: .2rem; }
.prep-crossings h3 { margin-top: 0; }
.prep-incursion { min-height: clamp(11rem, 33vw, 17rem); border-radius: .4rem; }
.prep-incursion .collision-img { width: min(90%, 16rem); }
.prep-incursion figcaption { font: .78rem/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.prep-deck { max-width: 64ch; margin-top: .75rem; color: var(--muted); }
.prep-worlds, .prep-films { display: grid; gap: 1.15rem; padding: 0; list-style: none; }
.prep-worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.45rem 0 clamp(1.7rem, 4vw, 3.25rem); }
.prep-worlds img { aspect-ratio: 2; object-fit: cover; border-radius: .4rem; }
.prep-worlds span { display: block; margin-top: .42rem; font-size: clamp(.95rem, 2vw, 1.15rem); font-weight: 650; line-height: 1.35; }
.prep-worlds small, .prep-films small, .prep-recap small { display: block; margin-top: .25rem; color: var(--muted); font-size: .82rem; font-weight: 500; line-height: 1.4; }
.prep-worlds a:hover, .prep-films a:hover, .prep-recap:hover strong { color: var(--green); }
.prep-world-stories { margin-top: 1.25rem; }
.prep-world-stories .prep-spread + .prep-spread { margin-top: clamp(1.5rem, 3vw, 2.8rem); }
.prep-films { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-block: 1.4rem 1.9rem; }
.prep-films img { aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: .32rem; }
.prep-films span { display: block; margin-top: .56rem; font-size: .94rem; line-height: 1.4; }
.prep-films em { font-style: normal; }
.prep-recap { display: grid; grid-template-columns: clamp(4.3rem, 12vw, 7.75rem) minmax(0, 1fr) auto; align-items: center; gap: .9rem; margin-top: 1.35rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.prep-recap + .prep-recap { margin-top: 0; border-top: 0; }
.prep-recap img { aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: .32rem; }
.prep-recap strong { display: block; font-size: clamp(1rem, 2.4vw, 1.32rem); line-height: 1.28; }

@media (max-width: 680px) {
  .prep-spread { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .prep-timeline ol { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .prep-timeline li { display: grid; grid-template-columns: minmax(5rem, .55fr) minmax(0, 1fr); align-items: center; gap: .8rem; }
  .prep-timeline svg { margin: 0; }
  .prep-timeline li + li { padding: .65rem 0 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .prep-lead img { aspect-ratio: 16 / 10; }
  .prep-worlds, .prep-films { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prep-worlds a, .prep-films a { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: center; gap: .85rem; padding-block: .58rem; border-top: 1px solid var(--line); }
  .prep-worlds span, .prep-films span { margin: 0; }
  .prep-worlds img { aspect-ratio: 16 / 9; }
  .prep-films a { grid-template-columns: 3.15rem minmax(0, 1fr); }
}
.worlds-page .worlds { padding-block: clamp(2.55rem, 6vw, 4.75rem) clamp(1.45rem, 3vw, 3rem); }
.worlds-intro > p { max-width: 59ch; margin-top: .75rem; color: var(--muted); }
.worlds-jump { flex-wrap: wrap; gap: 0 1.35rem; margin: .8rem 0 clamp(1.35rem, 3vw, 2.3rem); border-block: 1px solid var(--line); }
.across-worlds { padding-bottom: clamp(2.55rem, 6vw, 5.25rem); }
.across-worlds .section-heading { margin-bottom: 1.45rem; }
.across-worlds .doom { padding-block: 0 clamp(1.5rem, 3.3vw, 3rem); }
.media-library { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4.4rem); }
.media-library .section-heading { margin-bottom: 1.3rem; }
.media-library .section-heading p { margin-top: .55rem; color: var(--muted); }
.continuities { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem 2rem; margin-bottom: 1.5rem; }
.continuities dt { color: var(--white); font-weight: 700; }
.continuities dd { color: var(--muted); font-size: .91rem; margin-top: .25rem; }
.media-lists details:last-child { border-bottom: 1px solid var(--line); }
.media-lists ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 1.2rem; margin: .1rem 0 .8rem; padding: 0; list-style: none; }
.media-lists a { max-width: 100%; }
@media (min-width: 901px) {
  .across-worlds .chapter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(.85rem, 2.3vw, 1.8rem); }
}
.watchlist-page .watchlist { border-top: 0; background: var(--ink); }


.chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1rem, 3.7vw, 3rem); align-items: stretch; }
.chapter-card { display: grid; align-items: center; gap: .85rem; grid-template-columns: minmax(4.2rem, 26%) minmax(0, 1fr) auto; border-top: 1px solid var(--line); padding-block: .9rem; }
.chapter-card img { aspect-ratio: 5 / 4; height: auto; object-fit: cover; border-radius: .22rem; }
.chapter-card-plain::before { content: ""; aspect-ratio: 5 / 4; background: #18241e url(assets/hero-mobile.webp) 48% 35% / cover; opacity: .65; border-radius: .22rem; }
.chapter-card h3 { font-size: clamp(1rem, 2vw, 1.28rem); letter-spacing: -.028em; line-height: 1.2; }
.chapter-card p { color: var(--muted); margin-top: .27rem; font-size: .88rem; line-height: 1.45; }
.chapter-card > span { color: var(--green); }
.chapter-card:hover h3 { color: var(--green); }

.chapter-page { padding-block: clamp(1.7rem, 4vw, 3.3rem) clamp(1rem, 2.7vw, 2rem); }
.chapter-page .chapter-back { margin-bottom: .75rem; }
.quest-banner h1 { font-size: clamp(2.3rem, 6.2vw, 5.65rem); line-height: 1.02; letter-spacing: -.056em; text-wrap: balance; }
.chapter-page .quest-intro { margin-block: 1.3rem 1.1rem; }
.chapter-contents { margin-bottom: .8rem; }
.chapter-contents nav { display: block; margin: 0; border: 0; }
.chapter-contents ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 1.25rem; padding: 0 0 .55rem; list-style: none; }
.chapter-contents li { min-width: 0; }
.cast-entry[id], .quest-story[id] { scroll-margin-top: 1.5rem; }
.chapter-next { display: block; margin-top: .65rem; border-top: 1px solid var(--line); }
.chapter-next a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; padding: .85rem .15rem .85rem 0; font-family: var(--body); }
.chapter-next-copy { display: grid; gap: .2rem; min-width: 0; }
.chapter-next-copy span { color: var(--muted); font-size: .8rem; line-height: 1.25; font-weight: 500; }
.chapter-next-copy strong { color: var(--white); font-size: 1.09rem; line-height: 1.25; font-weight: 650; }
.chapter-next-arrow { flex: none; width: 1.35rem; height: 1.35rem; color: var(--green); }
.chapter-next a:hover strong, .chapter-next a:focus-visible strong { color: var(--green); }

@media (min-width: 701px) {
  .landing .hero-inner { min-height: clamp(29rem, 65svh, 36rem); padding-block: 2.7rem 5.4rem; }
}

@media (max-width: 700px) {
  .landing-grid, .landing-sections, .chapter-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-grid { gap: .85rem; margin-top: 1rem; }
  .worlds-page .worlds { padding-top: 1.65rem; }
  .worlds-jump { column-gap: .85rem; }
  .chapter-card { grid-template-columns: minmax(3.7rem, 21%) minmax(0, 1fr) auto; gap: .7rem; }
  .quest-banner h1 { font-size: clamp(2.15rem, 8.3vw, 3.7rem); }
}

@media (max-width: 700px) and (max-height: 730px) {
  .landing .hero-actions { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .45rem; }
  .landing .hero-actions .button { padding-inline: .5rem; font-size: .84rem; line-height: 1.25; text-align: center; }
  .landing .hero-actions .secondary { border-color: #546c5e; background: #0b1511b8; }
}

@media (max-width: 360px) and (max-height: 730px) {
  .landing .hero-inner { padding-top: 48vw; }
}

.finder-controls .finder-clear, .finder-submit { position: absolute; right: .25rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: .25rem; background: transparent; color: var(--green); cursor: pointer; font-size: 1.35rem; }
.finder-controls .finder-clear { right: 3rem; font-size: 1.5rem; }
.finder-submit:hover { background: #203029; }
.finder-submit:disabled { cursor: wait; opacity: .55; }
.finder-response { margin-top: 1rem; padding-block: .85rem; border-block: 1px solid var(--line); color: #c5d1c9; overflow-wrap: anywhere; }
.finder-response section + section { margin-top: .85rem; }
.finder-response h2 { margin-bottom: .25rem; font-size: 1rem; line-height: 1.4; color: var(--white); letter-spacing: 0; }
.finder-response p { font-size: .95rem; white-space: pre-line; }
.finder-response a { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.finder-response .finder-links { margin-top: .6rem; font-size: .88rem; }

.jarvis-launcher { position: fixed; z-index: 30; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0; border: 1px solid #8db9a5; border-radius: 50%; color: var(--green); background: #101b18; cursor: pointer; }
.jarvis-launcher:hover { background: #20352b; }
.jarvis-symbol {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  border: 1px dashed #d6b876;
  outline: 1px solid #608477;
  outline-offset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #ebce8e 0 2px, transparent 2.5px);
}
.jarvis-dialog {
  --jarvis-resting-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  --jarvis-covered: var(--jarvis-covered-bottom, 0px);
  --jarvis-bottom: max(var(--jarvis-resting-bottom), calc(var(--jarvis-covered) + .75rem));
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right, 0px)) var(--jarvis-bottom) auto;
  width: min(30rem, calc(100% - max(1rem, env(safe-area-inset-right, 0px)) - max(1rem, env(safe-area-inset-left, 0px))));
  max-height: min(45rem, calc(var(--jarvis-viewport-height, 100dvh) + var(--jarvis-covered) - var(--jarvis-bottom) - .75rem));
  padding: 1.25rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid #667b70;
  border-radius: .55rem;
  color: var(--white);
  background: #101816;
}
.jarvis-dialog::backdrop { background: #02090697; }
.jarvis-dialog[open] { display: flex; flex-direction: column; animation: jarvis-open .24s ease-out both; }
@keyframes jarvis-open { from { opacity: .5; transform: translateY(.38rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .jarvis-dialog[open] { animation: none; }
}
.jarvis-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.jarvis-heading h2 { display: flex; align-items: center; gap: .9rem; font: 800 1.8rem/1 var(--heading); letter-spacing: .075em; text-transform: uppercase; }
.jarvis-tools { display: flex; align-items: center; gap: .65rem; }
.jarvis-new { min-height: 2.75rem; border: 0; padding: 0 .25rem; background: transparent; color: var(--muted); font: .85rem var(--body); cursor: pointer; text-underline-offset: .2em; }
.jarvis-new:hover { color: var(--green); text-decoration: underline; }
.jarvis-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.4rem -.4rem -.4rem 0; border: 0; border-radius: .25rem; background: transparent; color: var(--green); font-size: 1.6rem; cursor: pointer; }
.jarvis-close:hover { background: #203029; }
.jarvis-context {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin: .95rem 0 1.1rem;
  padding-block: .55rem;
  border-block: 1px solid #34473f;
  font-size: .88rem;
  color: #d5e2db;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, #648779, #648779) left top / 1.6rem 1px no-repeat;
}
.jarvis-context span { flex: none; color: #d6b876; font-size: .78rem; font-weight: 650; }
.jarvis-dialog .finder-controls input { padding-right: 3.25rem; }
.jarvis-dialog .finder-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jarvis-dialog .finder-response { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
@media (max-width: 1100px), (hover: none), (pointer: coarse) {
  .jarvis-launcher { bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px) + .85rem); }
  .jarvis-dialog { --jarvis-resting-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px) + .85rem); }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1100px) {
  .jarvis-launcher { width: 2.75rem; height: 2.75rem; }
}

.jarvis-heading, .jarvis-context, .jarvis-dialog form { flex: none; }
.jarvis-conversation { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.jarvis-transcript { display: grid; gap: 1.1rem; margin-bottom: .55rem; }
.jarvis-transcript:empty { display: none; }
.jarvis-message { min-width: 0; }
.jarvis-speaker { font: 650 .75rem/1.5 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.jarvis-assistant { padding-left: .85rem; border-left: 1px solid #977f4e; }
.jarvis-assistant .jarvis-speaker { color: #d6b876; }
.jarvis-message .finder-response { padding: .35rem 0 0; margin: 0; border: 0; }
.jarvis-user .finder-response { color: var(--white); font-size: .95rem; }
.jarvis-quick { margin-block: .7rem; padding: .55rem 0 .05rem; border-top: 1px solid var(--line); color: #c5d1c9; }
.jarvis-quick h2 { margin-bottom: .25rem; color: var(--white); font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.jarvis-quick p { font-size: .9rem; }
.jarvis-dialog form { padding-top: .35rem; }
.jarvis-compact { padding: .5rem .85rem; }
.jarvis-compact .jarvis-heading h2 { font-size: 1.35rem; }
.jarvis-compact .jarvis-context { display: block; margin: .25rem 0 .4rem; padding-block: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jarvis-compact .jarvis-context span { margin-right: .5rem; }
.jarvis-compact .finder-controls input { min-height: 2.75rem; padding-block: .45rem; }
