/* ZX Nephilim — site styles (v2: "Celestial" full-colour theme)
   Night-sky indigo ground, glowing orbs, and a magenta → violet → electric-blue
   gradient. Monochrome manga art is printed onto colour with blend modes, so any
   new black-and-white art you drop in is coloured automatically.
   Each character owns a colour: Xel crimson, Zirous blue, Max amber,
   Zia teal, Isaac emerald, Krissy lilac. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0a0720;      /* page ground */
  --deep: #120c33;       /* raised ground */
  --card: rgba(255, 255, 255, 0.055);
  --card-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.22);
  --text: #f4f1ff;
  --soft: #b9b2d9;       /* secondary text, 7:1 on --night */

  --magenta: #ff2e88;
  --violet: #8a3dff;
  --blue: #3b6dff;
  --cyan: #37d5ff;
  --amber: #ff8a3d;
  --glow: #ffe8b0;

  --xel: #ff2e63;
  --xel-2: #8a1fff;
  --zir: #2f8bff;
  --zir-2: #37e0ff;
  --max: #ff8a3d;
  --max-2: #ff3d6e;
  --zia: #1fd6a6;
  --zia-2: #2f7dff;
  --isaac: #34d27b;
  --isaac-2: #1e8cff;
  --krissy: #c77dff;
  --krissy-2: #ff4fa8;

  --grad: linear-gradient(115deg, var(--magenta) 0%, var(--violet) 52%, var(--blue) 100%);
  --grad-soft: linear-gradient(115deg, color-mix(in srgb, var(--magenta) 85%, #fff 0%), var(--violet), var(--blue));

  --c1: var(--magenta);  /* per-section / per-character colour pair */
  --c2: var(--violet);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --ui: "Outfit", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.88rem, 0.84rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.02rem, 0.97rem + 0.25vw, 1.14rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.42rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  --step-4: clamp(2rem, 1.4rem + 3vw, 3.9rem);

  --gutter: clamp(16px, 3vw, 36px);
  --gap: clamp(12px, 1.6vw, 20px);
  --wrap: 1280px;
  --read: 42rem;
  --header-h: 72px;
  --r: 22px;
  --r-sm: 14px;
  --accent: var(--magenta);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: var(--step-0); line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(138, 61, 255, 0.28), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 46, 136, 0.16), transparent 70%),
    radial-gradient(900px 700px at 100% 80%, rgba(59, 109, 255, 0.16), transparent 70%),
    var(--night);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--magenta) 70%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 600; }
p { margin: 0; }
strong { color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.read-col { max-width: var(--read); }
.stack { display: grid; gap: 1.1em; }
.muted { color: var(--soft); }
.ui { font-family: var(--ui); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--night); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--night) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 44px; width: auto; filter: drop-shadow(0 0 14px rgba(255, 46, 136, 0.45)); }
.nav { display: flex; gap: clamp(4px, 1vw, 10px); align-items: center; }
.nav a {
  font-family: var(--ui); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--soft); padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: var(--card-2); }
.nav a[aria-current="page"] { color: #fff; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a.nav-read { color: #fff; background: var(--grad); box-shadow: 0 6px 22px -6px rgba(255, 46, 136, .7); margin-left: 6px; order: 9; font-weight: 600; }
.nav a.nav-read:hover { filter: brightness(1.1); }
.menu-btn { display: none; background: var(--card-2); border: 1px solid var(--line-2); color: #fff; font-family: var(--ui); font-weight: 500; font-size: 1rem; padding: 9px 18px; cursor: pointer; border-radius: 999px; min-height: 44px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: color-mix(in srgb, var(--night) 96%, transparent); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 22px; display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.2rem; padding: 12px 16px; }
  .nav a.nav-read { order: 0; margin: 0 0 6px; text-align: center; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: clamp(72px, 10vw, 130px); padding-block: 56px 40px; background: linear-gradient(180deg, transparent, rgba(18, 12, 51, .9) 30%); border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--grad); opacity: .8; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.site-footer img { width: 150px; height: auto; filter: drop-shadow(0 0 18px rgba(138, 61, 255, .5)); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--ui); font-size: 1rem; }
.footer-nav a { text-decoration: none; color: var(--soft); }
.footer-nav a:hover { color: #fff; }
.legal { grid-column: 1 / -1; color: var(--soft); font-size: var(--step--1); max-width: 64ch; opacity: .85; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- shared pieces ---------- */
.panel {
  position: relative; overflow: hidden; min-width: 0; border-radius: var(--r);
  background: linear-gradient(160deg, var(--card-2), var(--card) 60%);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8);
}
.panel h3 { font-size: var(--step-1); }

/* narration box: glass caption with a gradient edge */
.narration {
  position: relative; border-radius: var(--r-sm); padding: 0.95em 1.2em 0.95em 1.35em;
  background: rgba(10, 7, 32, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); font-size: var(--step-0); line-height: 1.5; font-weight: 300; color: #fff;
}
.narration::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px; border-radius: 3px; background: var(--grad); }
.narration.big { font-size: var(--step-1); }
.narration cite { display: block; margin-top: 0.55em; font-style: normal; color: var(--soft); letter-spacing: 0.04em; font-size: 0.9rem; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--ui); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em; min-height: 48px;
  padding: 12px 26px; border: 0; border-radius: 999px; color: #fff; background: var(--grad); background-size: 140% 100%;
  box-shadow: 0 10px 30px -10px rgba(255, 46, 136, .75); transition: transform .2s, box-shadow .2s, background-position .4s;
}
.btn::after { content: "→"; font-weight: 400; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 36px -10px rgba(138, 61, 255, .85); }
.btn:hover::after { transform: translateX(3px); }
.btn.ghost { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost::after { content: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker { font-family: var(--ui); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); font-size: 0.82rem; }
.kicker a { text-decoration: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); font-weight: 500; letter-spacing: 0.04em; font-size: 0.82rem; padding: 4px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--soft); }
.tag.live { background: var(--grad); color: #fff; border-color: transparent; }
.tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }

/* page banner on inner pages */
.page-head { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(36px, 5vw, 64px); isolation: isolate; }
.page-head::before, .page-head::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.page-head::before { width: clamp(180px, 26vw, 360px); aspect-ratio: 1; right: clamp(-40px, 4vw, 80px); top: clamp(10px, 3vw, 40px);
  background: radial-gradient(circle at 32% 28%, #fff7 0, transparent 22%), linear-gradient(145deg, var(--c1), var(--c2)); opacity: .9;
  box-shadow: 0 0 120px 10px color-mix(in srgb, var(--c2) 45%, transparent); }
.page-head::after { width: clamp(50px, 6vw, 90px); aspect-ratio: 1; right: clamp(200px, 30vw, 460px); top: 70%;
  background: radial-gradient(circle at 32% 28%, #fff8 0, transparent 26%), linear-gradient(145deg, var(--c2), var(--blue)); opacity: .85; }
.page-head h1 { max-width: 14ch; }
.page-head h1 .grad-text { display: inline; }
.page-head .lede { font-size: var(--step-1); line-height: 1.5; max-width: 44ch; color: var(--soft); margin-top: 0.8em; font-weight: 300; }
@media (max-width: 640px) { .page-head::before { opacity: .55; right: -60px; } .page-head::after { display: none; } }

.section { padding-block: clamp(40px, 6vw, 84px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(22px, 3vw, 40px); max-width: 48rem; }
.section-head p { color: var(--soft); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 14px; }

.fracture { width: 3px; border-radius: 3px; background: linear-gradient(transparent, var(--magenta) 25%, #fff 50%, var(--cyan) 75%, transparent); box-shadow: 0 0 18px 2px rgba(255, 46, 136, .6); }

/* glowing orb decoration */
.orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 22%), linear-gradient(150deg, var(--o1, var(--magenta)), var(--o2, var(--violet)));
  box-shadow: 0 0 60px -6px color-mix(in srgb, var(--o2, var(--violet)) 70%, transparent), inset -10px -14px 30px rgba(20, 0, 60, .35); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.orb.f1 { animation: float 7s ease-in-out infinite; }
.orb.f2 { animation: float 9s ease-in-out -3s infinite; }
.orb.f3 { animation: float 11s ease-in-out -6s infinite; }

/* ---------- image slots with placeholders ---------- */
.slot { position: relative; overflow: hidden; background: var(--deep); isolation: isolate; max-width: 100%; border-radius: var(--r-sm); }
.slot > img.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.slot.contain > img.slot-img { object-fit: contain; background: #000; }
.slot.loaded .ph { visibility: hidden; }
.ph {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; gap: 6px; padding: 14px;
  background:
    radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 55%),
    radial-gradient(circle at 20% 85%, color-mix(in srgb, var(--c1) 50%, transparent), transparent 55%),
    var(--deep);
  color: var(--soft);
}
.ph-label { font-family: var(--display); font-weight: 600; font-size: 1rem; color: #fff; }
.ph-note { font-size: 0.88rem; letter-spacing: 0.04em; color: #e6e0ff; opacity: .8; }
.ph-glyph { width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0, transparent 30%), var(--grad); box-shadow: 0 0 24px rgba(255, 46, 136, .6); }
.tint-x { --c1: var(--xel); --c2: var(--xel-2); }
.tint-z { --c1: var(--zir); --c2: var(--zir-2); }

/* duotone: monochrome art printed on colour. Light paper becomes the gradient, ink stays dark. */
.duo { background: linear-gradient(150deg, var(--c1), var(--c2)); }
.duo > img.slot-img, img.duo-img { }
.duo::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.12), transparent 50%), linear-gradient(180deg, transparent 55%, rgba(10, 7, 32, .55)); }
.duo.loaded .ph { visibility: hidden; }
.duo:not(.loaded) .ph { background: transparent; }

/* character colour pairs */
[data-c="xel"]    { --c1: var(--xel);    --c2: var(--xel-2); }
[data-c="zirous"] { --c1: var(--zir);    --c2: var(--zir-2); }
[data-c="max"]    { --c1: var(--max);    --c2: var(--max-2); }
[data-c="zia"]    { --c1: var(--zia);    --c2: var(--zia-2); }
[data-c="isaac"]  { --c1: var(--isaac);  --c2: var(--isaac-2); }
[data-c="krissy"] { --c1: var(--krissy); --c2: var(--krissy-2); }

/* empty comic page: drawn panel layout */
.ph-page { position: absolute; inset: 0; z-index: 1; background: var(--deep); padding: 5.5% 5%; display: flex; flex-direction: column; gap: 2.2%; }
.ph-page .row { display: flex; gap: 2.6%; flex: 1 1 0; min-height: 0; }
.ph-page .cell { flex: 1 1 0; border-radius: 6px; border: 1px solid var(--line-2); background: linear-gradient(150deg, rgba(255,46,136,.12), rgba(59,109,255,.12)); }
.ph-page .cell.wide { flex-grow: 2; }
.ph-page .num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; background: rgba(10,7,32,.8); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; width: max-content; min-width: min(9em, 70%); max-width: 84%; display: grid; gap: 6px; justify-items: center; }
.ph-page .num img { width: min(120px, 100%); height: auto; }
.ph-page .num b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 3.6vw, 2.2rem); line-height: 1; font-weight: 700; }
.ph-page .num span { color: var(--soft); font-size: 0.9rem; }
.slot.loaded .ph-page { visibility: hidden; }

/* =====================================================================
   HOME
   ===================================================================== */
.home-page { overflow: hidden; }

/* hero */
.hero2 { position: relative; isolation: isolate; min-height: min(calc(100svh - var(--header-h)), 900px); display: grid; align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.hero2 .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero2 .streaks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hero2 .streaks i { position: absolute; height: 2px; width: 260px; border-radius: 2px; transform: rotate(-35deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85)); opacity: .55; animation: streak 6s linear infinite; }
@keyframes streak { from { translate: 0 0; opacity: 0; } 15% { opacity: .6; } to { translate: -420px 300px; opacity: 0; } }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; }
.hero-copy .hero-logo { width: clamp(170px, 22vw, 280px); height: auto; filter: drop-shadow(0 0 30px rgba(255, 46, 136, .55)); margin-bottom: 4px; }
.hero-copy h1 { font-size: clamp(1.9rem, 1rem + 3.2vw, 3.7rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.hero-copy h1 span { display: block; }
.hero-copy .sub { font-size: var(--step-1); color: var(--soft); font-weight: 300; max-width: 34ch; line-height: 1.5; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: center; }
.hero-planet { position: absolute; inset: 8%; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #ff9a6b 0%, var(--magenta) 30%, var(--violet) 65%, var(--blue) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 0 120px 10px rgba(255, 46, 136, .35), 0 0 220px 40px rgba(59, 109, 255, .25); }
.hero-planet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.35), transparent 35%), radial-gradient(circle at 50% 120%, rgba(10,7,32,.65), transparent 60%); }
.hero-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); animation: spin 60s linear infinite; }
.hero-ring::before { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 12%; left: 12%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-wave { position: absolute; left: -14%; right: -14%; top: 54%; height: 16%; z-index: 2; pointer-events: none; opacity: .9;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 154, 107, .55), rgba(255, 46, 136, .35) 40%, transparent 72%); filter: blur(10px); }
.hero-card { position: absolute; z-index: 3; right: -2%; bottom: 4%; width: clamp(150px, 34%, 210px); display: grid; gap: 10px; padding: 10px 10px 14px; text-decoration: none;
  border-radius: 18px; background: rgba(18, 12, 51, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); transition: transform .25s; }
.hero-card:hover { transform: translateY(-6px) rotate(-1deg); }
.hero-card .slot { aspect-ratio: 1654 / 2339; border-radius: 10px; }
.hero-card b { font-family: var(--display); font-size: .85rem; font-weight: 600; line-height: 1.25; padding-inline: 4px; }
.hero-card small { color: var(--cyan); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding-inline: 4px; }
.hero-visual .orb.a { width: 13%; aspect-ratio: 1; left: 0; top: 12%; --o1: var(--cyan); --o2: var(--blue); }
.hero-visual .orb.b { width: 7%; aspect-ratio: 1; right: 6%; top: 6%; --o1: var(--amber); --o2: var(--magenta); }
.hero-visual .orb.c { width: 9%; aspect-ratio: 1; left: 8%; bottom: 8%; --o1: var(--magenta); --o2: var(--violet); }
@media (max-width: 860px) {
  .hero2 { min-height: 0; padding-top: 28px; }
  .hero2 .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 440px; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-copy .sub { margin-inline: auto; }
  .hero-meta, .hero-copy .btn-row { justify-content: center; }
  .hero-copy .hero-logo { display: none; }
}

/* "four ways in" row */
.ways2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.way2 { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 30px 20px 26px; text-decoration: none; border-radius: var(--r);
  background: linear-gradient(170deg, var(--card-2), var(--card)); border: 1px solid var(--line); transition: transform .25s, border-color .25s, background .25s; }
.way2:hover { transform: translateY(-6px); border-color: var(--line-2); background: linear-gradient(170deg, rgba(255,255,255,.13), var(--card)); }
.way2 .num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 32%), linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--c1) 80%, transparent); }
.way2 h3 { font-size: 1rem; }
.way2 p { color: var(--soft); font-size: var(--step--1); line-height: 1.5; }
.way2:nth-child(1) { --c1: var(--magenta); --c2: var(--violet); }
.way2:nth-child(2) { --c1: var(--amber); --c2: var(--magenta); }
.way2:nth-child(3) { --c1: var(--violet); --c2: var(--blue); }
.way2:nth-child(4) { --c1: var(--cyan); --c2: var(--blue); }
@media (max-width: 900px) { .ways2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .ways2 { grid-template-columns: minmax(0, 1fr); } .way2 { grid-template-columns: 64px minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; padding: 18px; } .way2 .num { grid-row: span 2; } }

/* the brothers: two colour panels */
.bros { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.bro { position: relative; display: grid; align-content: end; min-height: clamp(360px, 42vw, 540px); border-radius: var(--r); overflow: hidden; isolation: isolate; text-decoration: none; padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(150deg, var(--c1), var(--c2)); }
.bro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s; }
.bro[data-c="zirous"] img { object-position: 30% 20%; }
.bro[data-c="xel"] img { object-position: 50% 15%; }
.bro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,7,32,.85)); }
.bro:hover img { transform: scale(1.04); }
.bro .who { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.bro .where { margin-top: 10px; color: #f1ecff; max-width: 34ch; font-size: var(--step--1); line-height: 1.5; }
.bro .chip { position: absolute; top: 20px; left: 20px; }
.bro .go { margin-top: 14px; font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.bro .go::after { content: "→"; transition: transform .2s; }
.bro:hover .go::after { transform: translateX(4px); }
@media (max-width: 720px) { .bros { grid-template-columns: 1fr; } .bro { min-height: 340px; } }

/* cast rail (horizontal cards) */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 34px); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 290px); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.rail-card { scroll-snap-align: start; position: relative; aspect-ratio: 3 / 4.2; border-radius: var(--r); overflow: hidden; isolation: isolate; text-decoration: none; display: grid; align-content: end; padding: 18px;
  background: linear-gradient(150deg, var(--c1), var(--c2)); border: 1px solid rgba(255,255,255,.18); transition: transform .3s, box-shadow .3s; }
.rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; z-index: -1; }
.rail-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(10,7,32,.9)); }
.rail-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -20px color-mix(in srgb, var(--c1) 80%, transparent); }
.rail-card b { font-family: var(--display); font-size: 1.15rem; line-height: 1.05; font-weight: 700; }
.rail-card span { color: #ece6ff; font-size: .9rem; margin-top: 6px; }
.rail-card.ph-card { background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 70%, var(--deep)), color-mix(in srgb, var(--c2) 60%, var(--deep))); }
.rail-card.ph-card::after { content: "Art coming"; position: absolute; top: 16px; right: 16px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(10,7,32,.5); }

/* feature banner (issue) */
.feature { position: relative; border-radius: calc(var(--r) + 6px); overflow: hidden; isolation: isolate; min-height: clamp(380px, 40vw, 520px); display: grid; align-items: center; padding: clamp(24px, 5vw, 64px); }
.feature > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(255, 46, 136, .88), rgba(138, 61, 255, .78) 45%, rgba(59, 109, 255, .55));}
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,7,32,.75), rgba(10,7,32,.15) 70%); }
.feature .inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: center; }
.feature .copy { display: grid; gap: 16px; max-width: 34rem; }
.feature .eyebrow { font-family: var(--display); font-weight: 300; font-style: italic; font-size: var(--step-1); letter-spacing: .04em; text-transform: uppercase; }
.feature h2 { font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); }
.feature p { color: #f1ecff; }
.feature .cover { width: clamp(170px, 20vw, 260px); border-radius: 14px; overflow: hidden; transform: rotate(4deg); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.25); transition: transform .3s; }
.feature .cover:hover { transform: rotate(0) scale(1.03); }
.feature .cover .slot { aspect-ratio: 1654 / 2339; border-radius: 0; }
@media (max-width: 700px) { .feature .inner { grid-template-columns: 1fr; } .feature .cover { justify-self: start; width: 160px; order: -1; } }

/* episodes strip on home */
.ep-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ep-card { display: grid; gap: 10px; text-decoration: none; }
.ep-card .slot { aspect-ratio: 16 / 9; border-radius: var(--r-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.ep-card:hover .slot { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(255, 46, 136, .7); }
.ep-card .n { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.ep-card b { font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.25; }
@media (max-width: 900px) { .ep-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* origin teaser */
.origin-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.years { display: flex; align-items: center; gap: clamp(10px, 2vw, 20px); font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.years i { flex: 1; height: 4px; border-radius: 4px; background: var(--grad); min-width: 40px; box-shadow: 0 0 20px rgba(255,46,136,.6); }
.years .b { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.6); }
@media (max-width: 760px) { .origin-teaser { grid-template-columns: 1fr; } }

/* big quote */
.quote-band { position: relative; text-align: center; padding-block: clamp(70px, 10vw, 130px); isolation: isolate; overflow: hidden; border-radius: calc(var(--r) + 6px);
  background: radial-gradient(60% 90% at 50% 50%, rgba(138, 61, 255, .45), transparent 70%), linear-gradient(180deg, var(--deep), var(--night)); border: 1px solid var(--line); }
.quote-band p { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); line-height: 1.25; max-width: 24ch; margin-inline: auto; position: relative; z-index: 1; }
.quote-band p + p { margin-top: 18px; font-family: var(--body); font-weight: 300; font-size: var(--step-1); color: var(--soft); max-width: 40ch; }
.quote-band .orb.a { width: 120px; height: 120px; left: 6%; top: 18%; --o1: var(--magenta); --o2: var(--violet); }
.quote-band .orb.b { width: 54px; height: 54px; right: 10%; bottom: 18%; --o1: var(--cyan); --o2: var(--blue); }
.quote-band .orb.c { width: 26px; height: 26px; right: 22%; top: 20%; --o1: var(--amber); --o2: var(--magenta); }

/* =====================================================================
   READER
   ===================================================================== */
.reader-page { padding-top: 24px; }
.reader { display: grid; gap: 14px; }
.reader-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; }
.reader-head h1 { font-size: var(--step-2); }
.reader-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.tool {
  font-family: var(--ui); font-weight: 500; font-size: .95rem; color: var(--text); min-height: 40px;
  background: transparent; border: 0; padding: 8px 16px; cursor: pointer; border-radius: 999px; transition: background .2s;
}
.tool:hover { background: var(--card-2); }
.tool[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(255,46,136,.8); }
.reader-foot .tool, .filters .tool, .lb .tool, .grid-overlay .tool { background: var(--card-2); border: 1px solid var(--line); }
.filters .tool[aria-pressed="true"] { border-color: transparent; background: var(--grad); }

.stage { position: relative; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: var(--r);
  background: radial-gradient(60% 60% at 50% 40%, rgba(138, 61, 255, .3), transparent 75%), rgba(5, 3, 18, .6); border: 1px solid var(--line); }
.stage:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.track { display: grid; justify-items: center; padding: 16px; }
.mode-page .cpage { display: none; }
.mode-page .cpage.on { display: block; }
.cpage { width: min(100%, calc((100svh - var(--header-h) - 200px) * 1654 / 2339)); min-width: min(100%, 300px); aspect-ratio: 1654 / 2339; border-radius: 6px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.cpage.slot { border-radius: 6px; }
.mode-scroll .track { gap: 18px; }
.mode-scroll .cpage { width: min(100%, 880px); }
.zone { position: absolute; top: 0; bottom: 0; width: 34%; background: none; border: 0; cursor: pointer; z-index: 5; padding: 0; }
.zone.prev { left: 0; cursor: w-resize; }
.zone.next { right: 0; cursor: e-resize; }
.mode-scroll .zone { display: none; }

.reader-foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.counter { letter-spacing: 0.04em; font-variant-numeric: tabular-nums; font-size: 1rem; text-align: center; color: var(--soft); }
.counter b { color: #fff; font-weight: 600; }
.scrub { width: 100%; accent-color: var(--magenta); }
.scrub-wrap { display: grid; gap: 4px; }
.mode-scroll ~ .reader-foot .scrub-wrap { opacity: 0.4; }

.grid-overlay { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--night) 95%, transparent); backdrop-filter: blur(8px); overflow: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 40px; }
.grid-overlay .bar { display: flex; justify-content: space-between; align-items: center; max-width: var(--wrap); margin: 0 auto 16px; gap: 12px; }
.thumbs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(120px, 40vw), 1fr)); max-width: var(--wrap); margin: 0 auto; }
.thumb { background: none; border: 0; padding: 0; cursor: pointer; color: var(--soft); font-family: var(--ui); display: grid; gap: 6px; text-align: center; }
.thumb .slot { aspect-ratio: 1654 / 2339; border: 1px solid var(--line); border-radius: 8px; transition: transform .2s; }
.thumb:hover .slot { transform: translateY(-3px); }
.thumb.on .slot { border: 2px solid var(--magenta); box-shadow: 0 0 20px rgba(255,46,136,.6); }
.thumb.on { color: #fff; }
.thumb .ph-page .num { min-width: 0; padding: 4px 8px; }
.thumb .ph-page .num b { font-size: 1.1rem; }
.thumb .ph-page .num span { display: none; }
.reader:fullscreen { background: var(--night); padding: 12px; overflow: auto; }
.reader:fullscreen .cpage { width: min(100%, calc((100svh - 130px) * 1654 / 2339)); }

.shelf { display: grid; gap: var(--gap) calc(var(--gap) * 1.5); grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .issue-card h3 { font-size: 1rem; } }
.issue-card { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.issue-card .slot { aspect-ratio: 1654 / 2339; border-radius: var(--r-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.issue-card:hover .slot { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(255,46,136,.7); }
.issue-card.soon .slot { opacity: .75; }
.issue-card h3 { font-size: 1.1rem; }
.issue-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* =====================================================================
   LONG-FORM PAGES
   ===================================================================== */
.prose { display: grid; gap: 1.1em; max-width: var(--read); }
.prose p { font-size: var(--step-0); color: #e9e4ff; }
.prose .first::first-letter { font-family: var(--display); font-weight: 800; float: left; font-size: 3.4em; line-height: 0.9; padding: 0.04em 0.12em 0 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.with-index { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.side-index { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; padding: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.side-index a { text-decoration: none; color: var(--soft); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.side-index a:hover { color: #fff; background: var(--card-2); }
@media (max-width: 900px) { .with-index { grid-template-columns: minmax(0, 1fr); } .side-index { display: none; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: stretch; }
.split .side { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 26%, transparent), color-mix(in srgb, var(--c2) 10%, transparent) 70%); border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); }
.split .z { --c1: var(--zir); --c2: var(--zir-2); }
.split .x { --c1: var(--xel); --c2: var(--xel-2); }
.split .side h3 { font-size: var(--step-2); }
.split .side p { color: #ece6ff; }
@media (max-width: 720px) { .split { grid-template-columns: minmax(0, 1fr); } .split .fracture { height: 3px; width: 100%; background: var(--grad); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 20px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); align-items: center; }
.steps .mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 32%), var(--grad); box-shadow: 0 10px 24px -8px rgba(255,46,136,.7); }
.steps > li:nth-child(2) .mark { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 32%), linear-gradient(150deg, var(--amber), var(--magenta)); }
.steps > li:nth-child(3) .mark { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 32%), linear-gradient(150deg, var(--cyan), var(--blue)); }
.steps > li:nth-child(4) .mark { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 32%), linear-gradient(150deg, var(--xel), var(--xel-2)); }
.steps > li:nth-child(5) .mark { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 32%), linear-gradient(150deg, var(--zia), var(--blue)); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--soft); max-width: 40rem; }
@media (max-width: 520px) { .steps > li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; } .steps .mark { width: 46px; height: 46px; font-size: .9rem; } }

.ep-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ep-list li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.ep-list li:hover { background: var(--card-2); border-color: var(--line-2); }
.ep-list .n { font-family: var(--display); font-weight: 700; font-size: 1.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ep-list .t { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.ep-list .d { color: var(--soft); font-size: var(--step--1); display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; }
.ep-list .locked { opacity: .6; }
@media (max-width: 520px) { .ep-list li { grid-template-columns: 2.6rem minmax(0, 1fr); } .ep-list li > .tag { grid-column: 2; justify-self: start; } }

.saga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.saga .panel { padding: 24px; display: grid; gap: 10px; align-content: start; }
.saga .panel:nth-child(1) { background: linear-gradient(160deg, rgba(255,46,136,.3), rgba(138,61,255,.12)); }
.saga .panel:nth-child(2) { background: linear-gradient(160deg, rgba(138,61,255,.32), rgba(59,109,255,.14)); }
.saga .panel.dim h3 { color: var(--soft); }
.saga p { color: var(--soft); font-size: var(--step--1); }
@media (max-width: 760px) { .saga { grid-template-columns: minmax(0, 1fr); } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pair .panel { padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 12px; align-content: start; }
.pair .panel:first-child { background: linear-gradient(160deg, rgba(255,46,136,.22), var(--card) 70%); }
.pair .panel:last-child { background: linear-gradient(160deg, rgba(59,109,255,.24), var(--card) 70%); }
.pair p { color: var(--soft); }
@media (max-width: 720px) { .pair { grid-template-columns: minmax(0, 1fr); } }

.energies { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.energies svg { width: 100%; max-width: 440px; height: auto; justify-self: center; overflow: visible; }
.energies svg text { font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; }
@media (max-width: 820px) { .energies { grid-template-columns: minmax(0, 1fr); } }

.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ranks li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 16px; padding: 18px 20px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.ranks .r { font-family: var(--display); font-size: var(--step-3); line-height: 1; font-weight: 800; background: linear-gradient(180deg, var(--magenta), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ranks h3 { margin-bottom: 4px; }
.ranks p { color: var(--soft); font-size: var(--step--1); }

.factions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.factions .panel { padding: 24px; display: grid; gap: 10px; align-content: start; }
.factions .panel:nth-child(1) { background: linear-gradient(160deg, rgba(55,213,255,.2), var(--card) 70%); }
.factions .panel:nth-child(2) { background: linear-gradient(160deg, rgba(255,46,99,.24), var(--card) 70%); }
.factions .panel:nth-child(3) { background: linear-gradient(160deg, rgba(52,210,123,.18), var(--card) 70%); }
.factions .panel:nth-child(4) { background: linear-gradient(160deg, rgba(255,232,176,.14), var(--card) 70%); }
.factions .panel p { color: var(--soft); font-size: var(--step--1); }
@media (max-width: 720px) { .factions { grid-template-columns: minmax(0, 1fr); } }

.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.place { display: grid; gap: 10px; align-content: start; padding: 10px 10px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.place > :not(.slot) { padding-inline: 8px; }
.place .slot { aspect-ratio: 16 / 10; }
.place:nth-child(1) { --c1: var(--violet); --c2: var(--blue); }
.place:nth-child(2) { --c1: var(--amber); --c2: var(--magenta); }
.place:nth-child(3) { --c1: var(--xel); --c2: var(--violet); }
.place h3 { font-size: 1.1rem; }
.place p { color: var(--soft); font-size: var(--step--1); }
@media (max-width: 820px) { .places { grid-template-columns: minmax(0, 1fr); } }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); list-style: none; padding: 0; margin: 0; }
.rules li { padding: 20px 22px; display: grid; gap: 6px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); opacity: .85; }
.rules b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.rules span { color: var(--soft); font-size: var(--step--1); }
@media (max-width: 720px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   CHARACTERS
   ===================================================================== */
.cast { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cast-card { position: relative; display: grid; text-decoration: none; grid-column: span 3; align-content: end; border-radius: var(--r); overflow: hidden; isolation: isolate;
  aspect-ratio: 3 / 4.2; background: linear-gradient(150deg, var(--c1), var(--c2)); border: 1px solid rgba(255,255,255,.16); transition: transform .3s, box-shadow .3s; }
.cast-card .slot { position: absolute; inset: 0; z-index: -1; border-radius: 0; aspect-ratio: auto; background: transparent; }
.cast-card .slot > img.slot-img { object-position: 50% 15%; }
.cast-card .slot .ph { background: transparent; }
.cast-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(10,7,32,.88)); }
.cast-card.lead { grid-column: span 6; aspect-ratio: 16 / 13; }
.cast-card.lead .slot > img.slot-img { object-position: 50% 22%; }
.cast-card .cap { padding: clamp(16px, 2vw, 24px); display: grid; gap: 4px; }
.cast-card h3 { font-size: var(--step-2); font-weight: 700; }
.cast-card.lead h3 { font-size: var(--step-3); }
.cast-card .role { color: #f1ecff; font-size: .95rem; }
.cast-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -22px color-mix(in srgb, var(--c1) 85%, transparent); }
@media (max-width: 900px) { .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cast-card, .cast-card.lead { grid-column: span 1; aspect-ratio: 3 / 4; } .cast-card.lead h3 { font-size: var(--step-2); } }
@media (max-width: 480px) { .cast { grid-template-columns: minmax(0, 1fr); } .cast-card, .cast-card.lead { aspect-ratio: 4 / 3.6; } }

.dark-cast { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .dark-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dark-cast { grid-template-columns: minmax(0, 1fr); } }
.dossier { padding: 22px; border-radius: var(--r); display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 46, 99, .16), rgba(10, 7, 32, .4) 60%); border: 1px solid rgba(255, 46, 99, .25); }
.dossier::after { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; top: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255,46,99,.55), transparent 70%); }
.dossier h3 { font-size: 1.15rem; }
.dossier p { color: var(--soft); font-size: var(--step--1); }
.dossier .members { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.dossier .members li { font-size: var(--step--1); color: var(--soft); }
.dossier .members b { color: #fff; font-weight: 600; margin-right: 4px; }
.redact { display: inline-block; background: #fff; color: transparent; user-select: none; border-radius: 3px; line-height: 1.1; }

/* character profile */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(32px, 5vw, 70px) 0; align-items: start; }
.profile .portrait { aspect-ratio: 2 / 3; border-radius: calc(var(--r) + 4px); background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--c1) 70%, transparent); }
.profile .portrait > img.slot-img { object-position: 50% 20%; }
.profile .portrait .ph { background: transparent; }
.profile .portrait-wrap { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 10px; }
.profile .portrait-wrap::before { content: ""; position: absolute; width: 38%; aspect-ratio: 1; right: -12%; top: -6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.6), transparent 24%), linear-gradient(150deg, var(--c2), var(--c1)); filter: blur(1px); opacity: .9; }
.profile-body > div:first-child .kicker { color: var(--c1); filter: brightness(1.3); }
.profile h1 { font-size: var(--step-4); background: linear-gradient(110deg, #fff 20%, var(--c1) 70%, var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.say { letter-spacing: 0.02em; color: var(--soft); font-size: 1.05rem; margin-top: 10px; }
.say b { color: #fff; font-weight: 500; }
.file { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; margin-block: 24px; }
.file div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.file dt { letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); font-size: 0.72rem; font-weight: 600; }
.file dd { margin: 0; font-weight: 500; font-size: 1.05rem; }
.eyes { display: inline-flex; gap: 6px; align-items: center; }
.eyes i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px currentColor; }
.profile-body { display: grid; gap: 34px; }
.profile-body h2 { font-size: var(--step-2); margin-bottom: 14px; }
.profile-body h2::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; margin-top: 10px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.profile-body .prose p { color: #e9e4ff; }
.profile-body .prose .first::first-letter { background: linear-gradient(150deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; }
.abilities { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.abilities li { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-sm); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 20%, transparent), var(--card) 70%); border: 1px solid color-mix(in srgb, var(--c1) 30%, transparent); }
.abilities b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.abilities span { color: var(--soft); font-size: var(--step--1); }
.abilities li.lock { background: var(--card); border-color: var(--line); border-style: dashed; }
.abilities li.lock b { color: var(--soft); }
.ties { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ties li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.ties a { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.ties a:hover { color: var(--cyan); }
.ties span { color: var(--soft); font-size: var(--step--1); }
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sheet .slot { aspect-ratio: 3 / 4; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.sheet .slot > img.slot-img { }
.sheet .slot .ph { background: rgba(10,7,32,.35); }
.char-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.char-nav a { text-decoration: none; padding: 12px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.char-nav a:hover { background: var(--card-2); border-color: var(--line-2); }
@media (max-width: 820px) {
  .file { --cols: 2 !important; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile .portrait-wrap { position: relative; top: 0; max-width: 440px; }
  .ties li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
body[data-c] { --accent: var(--c1); }
body[data-c] .page-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 600px at 15% 10%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%), radial-gradient(700px 600px at 95% 60%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 70%); }

/* =====================================================================
   ART ARCHIVE
   ===================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.masonry { columns: 4 240px; column-gap: var(--gap); }
.art { break-inside: avoid; margin-bottom: var(--gap); display: grid; gap: 8px; background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: zoom-in; width: 100%; font: inherit; }
.art .slot { width: 100%; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.art:nth-child(4n+1) .slot { --c1: var(--magenta); --c2: var(--violet); }
.art:nth-child(4n+2) .slot { --c1: var(--blue); --c2: var(--cyan); }
.art:nth-child(4n+3) .slot { --c1: var(--amber); --c2: var(--magenta); }
.art:nth-child(4n+4) .slot { --c1: var(--violet); --c2: var(--blue); }
.art:hover .slot { transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(255,46,136,.7); }
.art .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; color: var(--soft); padding-inline: 4px; }
.art .meta b { color: #fff; font-weight: 500; }
.era-note { color: var(--soft); max-width: 44rem; margin-bottom: 18px; min-height: 1.6em; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--text); }
dialog.lightbox::backdrop { background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(6px); }
.lb { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage .slot { height: 100%; max-height: 100%; max-width: 100%; }
.lb-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.lb-cap b { font-family: var(--display); font-size: var(--step-1); font-weight: 600; }
.lb-cap span { color: var(--soft); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.origin { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.origin::before { content: ""; position: absolute; left: calc(8rem + 11px); top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--violet) 40%, var(--magenta) 80%, var(--glow)); box-shadow: 0 0 16px rgba(138,61,255,.5); }
.origin li { display: grid; grid-template-columns: 8rem 24px minmax(0, 1fr); gap: 20px; padding-block: 0 clamp(30px, 4vw, 48px); }
.origin .when { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; text-align: right; color: var(--cyan); padding-top: 2px; }
.origin .dot { width: 24px; height: 24px; border-radius: 50%; margin-top: 2px; position: relative; z-index: 1; background: radial-gradient(circle at 30% 28%, #fff 0, transparent 35%), var(--grad); box-shadow: 0 0 0 5px var(--night), 0 0 18px rgba(255,46,136,.6); }
.origin li.now .dot { background: radial-gradient(circle at 30% 28%, #fff 0, transparent 35%), linear-gradient(150deg, var(--glow), var(--amber)); box-shadow: 0 0 0 5px var(--night), 0 0 26px 6px rgba(255,200,120,.55); }
.origin h3 { font-size: var(--step-2); margin-bottom: 10px; }
.origin .body { display: grid; gap: 0.9em; max-width: 40rem; padding: 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.origin .body p { color: #e6e0ff; }
.origin .body .slot { aspect-ratio: 16 / 9; margin-top: 6px; }
.origin .split-names { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .origin::before { left: 10px; }
  .origin li { grid-template-columns: 24px minmax(0, 1fr); gap: 14px; }
  .origin .when { grid-column: 2; text-align: left; grid-row: 1; }
  .origin .dot { grid-column: 1; grid-row: 1; }
  .origin .body { grid-column: 2; padding: 18px; }
}
.creator { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: calc(var(--r) + 6px);
  background: linear-gradient(130deg, rgba(255,46,136,.22), rgba(138,61,255,.18) 50%, rgba(59,109,255,.14)); border: 1px solid var(--line-2); }
.creator .slot { aspect-ratio: 4 / 5; border-radius: var(--r); }
@media (max-width: 760px) { .creator { grid-template-columns: minmax(0, 1fr); } .creator .slot { max-width: 320px; } }
.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.credits .panel { padding: 26px; display: grid; gap: 6px; align-content: start; }
.credits .panel:first-child { background: linear-gradient(160deg, rgba(47,139,255,.28), var(--card) 70%); }
.credits .panel:last-child { background: linear-gradient(160deg, rgba(255,138,61,.24), var(--card) 70%); }
.credits b { font-family: var(--display); font-size: var(--step-2); font-weight: 700; line-height: 1.1; }
.credits span { color: var(--cyan); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.credits p { color: var(--soft); font-size: var(--step--1); margin-top: 6px; }
@media (max-width: 640px) { .credits { grid-template-columns: minmax(0, 1fr); } }
.ways { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.way { padding: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.way h3 { font-size: 1.1rem; }
.way p { color: var(--soft); font-size: var(--step--1); }
@media (max-width: 900px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   EXTRAS
   ===================================================================== */
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--gap); }
.episode { display: grid; gap: 10px; align-content: start; padding: 10px 10px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.episode:hover { transform: translateY(-4px); border-color: var(--line-2); }
.episode > :not(.slot) { margin-inline: 8px; }
.episode .slot { aspect-ratio: 16 / 9; }
.episode h3 { font-size: 1.1rem; }
.episode .n { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.episode p { color: var(--soft); font-size: var(--step--1); }
.episode .btn { justify-self: start; min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.follow { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-content: center; gap: 22px; text-align: center; justify-items: center; padding-block: 60px; }
.lost .fracture { height: 140px; }

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

/* =====================================================================
   ART CARDS + DESIGNED PLACEHOLDERS
   Cards are a colour gradient with a giant monogram. Drop an image at the
   path in the <img> and it covers the placeholder in full colour.
   Stacking: gradient bg → .mono → img.art-img → ::after fade → text
   ===================================================================== */
.bro, .rail-card, .cast-card, .feature { isolation: isolate; }
.bro::before, .rail-card::before { content: none; }
.mono { color: rgba(255, 255, 255, .16) !important; position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none;
  font-family: var(--display); font-weight: 800; line-height: .8; letter-spacing: -0.06em; color: transparent;
  font-size: clamp(9rem, 22vw, 20rem); mix-blend-mode: overlay; }
.mono::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: -12%; right: -26%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 26%), linear-gradient(150deg, var(--c2), var(--c1)); opacity: .55; }
.mono::after { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(-35deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.mono.sm { font-size: clamp(6rem, 12vw, 10rem); }
img.art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; z-index: 0; transition: transform .6s; }
.bro::after, .rail-card::after, .cast-card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 7, 32, .88)); }
.bro > :not(.mono):not(.art-img), .rail-card > :not(.mono):not(.art-img), .cast-card > .cap { position: relative; z-index: 1; }
.bro .chip { position: absolute; }
.bro:hover img.art-img, .rail-card:hover img.art-img, .cast-card:hover img.art-img { transform: scale(1.04); }
.rail-card, .cast-card { display: grid; grid-template-rows: 1fr auto; align-content: stretch; }
.rail-card > b, .rail-card > span { grid-row: auto; }
.rail-card { align-content: end; grid-template-rows: none; }
.cast-card .slot { z-index: 0; }
.cast-card .slot .ph { display: none; }

/* feature banner: gradient-first, image optional */
.feature { background: linear-gradient(115deg, #ff5a7a 0%, var(--magenta) 25%, var(--violet) 60%, var(--blue)); }
.feature::before { background: radial-gradient(60% 120% at 85% 50%, rgba(255, 255, 255, .22), transparent 60%); }
.feature::after { background: linear-gradient(90deg, rgba(10, 7, 32, .55), rgba(10, 7, 32, 0) 65%); }
.feature > img.art-img { z-index: -2; object-position: 50% 30%; }
.feature .orb.a { width: 160px; height: 160px; right: 34%; top: -50px; --o1: #ffb36b; --o2: var(--magenta); z-index: -1; }
.feature .orb.b { width: 60px; height: 60px; right: 6%; bottom: 10%; --o1: var(--cyan); --o2: var(--blue); z-index: -1; }
.feature .streak { position: absolute; z-index: -1; height: 2px; width: 40%; right: -5%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); transform: rotate(-30deg); opacity: .5; }

/* comic-page placeholder in colour */
.cover-ph { position: absolute; inset: 0; z-index: 0; display: grid; align-content: space-between; padding: 12% 10%; overflow: hidden;
  background: linear-gradient(160deg, #ff7a6b, var(--magenta) 30%, var(--violet) 65%, var(--blue)); }
.cover-ph::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; left: 25%; top: 28%;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.6), transparent 25%), linear-gradient(150deg, #ffd08a, var(--magenta) 60%); opacity: .8; box-shadow: 0 0 60px rgba(255,200,140,.5); }
.cover-ph img { position: relative; width: 70%; height: auto; filter: drop-shadow(0 4px 18px rgba(10,7,32,.6)); }
.cover-ph b { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(.75rem, 1.6vw, 1.1rem); line-height: 1.15; text-shadow: 0 2px 16px rgba(10,7,32,.6); }
.cover-ph small { position: relative; display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.slot.loaded .cover-ph { visibility: hidden; }
.profile .portrait .ph { place-content: end center; padding-bottom: 26px; }
.profile .portrait .ph-glyph { display: none; }
.profile .portrait .mono { font-size: clamp(12rem, 26vw, 22rem); }

.bro > span.chip.tag { position: absolute; top: 20px; left: 20px; }
.bro > span.chip.tag, .rail-card .tag { background: rgba(10, 7, 32, .45); color: #fff; border-color: rgba(255,255,255,.25); }
.cast-card, .rail-card { grid-template-rows: none; align-content: end; }
@media (max-width: 860px) { .hero-card { right: 0; } }

/* =====================================================================
   GAMES HUB
   ===================================================================== */
.qx-logo { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: .9; font-size: clamp(3rem, 2rem + 6vw, 6.5rem); }
.qx-logo span { display: inline-block; background: linear-gradient(150deg, #ffd08a, var(--magenta) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; transform: skewX(-8deg) scale(1.08); margin-left: .02em; filter: drop-shadow(0 0 24px rgba(255, 46, 136, .55)); }
.game-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; text-decoration: none;
  padding: clamp(24px, 5vw, 60px); border-radius: calc(var(--r) + 8px);
  background: radial-gradient(70% 90% at 85% 40%, rgba(255, 46, 136, .45), transparent 70%), radial-gradient(60% 80% at 10% 100%, rgba(59, 109, 255, .4), transparent 70%), linear-gradient(140deg, #1d1250, #120c33);
  border: 1px solid var(--line-2); transition: transform .3s, box-shadow .3s; }
.game-hero:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgba(255, 46, 136, .8); }
.gh-copy { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; }
.gh-copy p { color: #e9e4ff; max-width: 40ch; }
.gh-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gh-feats li { display: flex; gap: 10px; align-items: center; color: #e9e4ff; font-size: var(--step--1); }
.gh-feats li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(255, 46, 136, .8); flex-shrink: 0; }
.game-hero .orb.a { width: 90px; height: 90px; right: 6%; top: 8%; --o1: #ffb36b; --o2: var(--magenta); }
.game-hero .orb.b { width: 40px; height: 40px; right: 42%; bottom: 10%; --o1: var(--cyan); --o2: var(--blue); }
.game-hero .orb.c { width: 22px; height: 22px; left: 46%; top: 14%; --o1: var(--violet); --o2: var(--blue); }
.gh-art { position: relative; height: clamp(220px, 28vw, 340px); z-index: 1; }
.gh-card { position: absolute; width: 46%; aspect-ratio: 3 / 4; border-radius: 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transition: transform .4s; }
.gh-card b { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 5.5rem); color: rgba(255,255,255,.9); text-shadow: 0 4px 30px rgba(10,7,32,.4); }
.gh-card.c1 { left: 27%; top: 0; z-index: 2; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 40%), linear-gradient(150deg, #ff9a6b, var(--magenta) 50%, var(--violet)); }
.gh-card.c2 { left: 0; top: 12%; transform: rotate(-12deg); background: linear-gradient(150deg, var(--xel), var(--xel-2)); }
.gh-card.c3 { right: 0; top: 12%; transform: rotate(12deg); background: linear-gradient(150deg, var(--zir), var(--zir-2)); }
.game-hero:hover .gh-card.c2 { transform: rotate(-16deg) translateX(-10px); }
.game-hero:hover .gh-card.c3 { transform: rotate(16deg) translateX(10px); }
.game-hero:hover .gh-card.c1 { transform: translateY(-8px); }
@media (max-width: 760px) { .game-hero { grid-template-columns: 1fr; } .gh-art { order: -1; height: 220px; max-width: 360px; width: 100%; justify-self: center; } }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.game-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 4; display: grid; align-content: end;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 55%, var(--deep)), color-mix(in srgb, var(--c2) 45%, var(--deep))); border: 1px solid var(--line); filter: saturate(.8); cursor: not-allowed; }
.game-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,7,32,.9)); }
.game-card .gc-body { position: relative; z-index: 1; display: grid; gap: 8px; padding: 18px; justify-items: start; }
.game-card h3 { font-size: 1.15rem; }
.game-card p { color: #e2dcf7; font-size: .9rem; line-height: 1.5; }
.game-card .tag { background: rgba(10,7,32,.45); color: #fff; }
.tape { position: absolute; z-index: 2; top: 30px; right: -54px; transform: rotate(35deg); width: 230px; text-align: center; padding: 5px 0; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #120c33;
  background: repeating-linear-gradient(-45deg, #ffd23f 0 12px, #ffb800 12px 24px); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
@media (max-width: 1000px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .game-grid { grid-template-columns: 1fr; } .game-card { aspect-ratio: 16 / 11; } }

/* =====================================================================
   QUIZX
   ===================================================================== */
.quizx-page { padding-top: clamp(20px, 4vw, 48px); }
.quizx { max-width: 920px; margin-inline: auto; scroll-margin-top: calc(var(--header-h) + 12px); }
.qx-screen { position: relative; }
.qx-start { display: grid; gap: clamp(18px, 2.4vw, 26px); isolation: isolate; }
.qx-start .orb.a { width: clamp(90px, 14vw, 170px); height: auto; aspect-ratio: 1; right: 2%; top: -10px; z-index: -1; --o1: #ffb36b; --o2: var(--magenta); }
.qx-start .orb.b { width: 46px; height: 46px; right: 24%; top: 120px; z-index: -1; --o1: var(--cyan); --o2: var(--blue); }
.qx-start-head { display: grid; gap: 12px; }
.qx-start-head .lede { font-size: var(--step-1); color: var(--soft); font-weight: 300; max-width: 36ch; }
.qx-daily { position: relative; overflow: hidden; display: grid; gap: 8px; justify-items: start; text-align: left; cursor: pointer; color: #fff; font: inherit;
  padding: clamp(20px, 3vw, 30px); border-radius: var(--r); border: 1px solid rgba(255,255,255,.25);
  background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(120deg, #ff6a7a, var(--magenta) 30%, var(--violet) 70%, var(--blue)); box-shadow: 0 24px 50px -24px rgba(255, 46, 136, .9); transition: transform .2s, box-shadow .2s; }
.qx-daily:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -22px rgba(138, 61, 255, .9); }
.qx-daily .tag.live { background: rgba(10,7,32,.35); }
.qx-daily b { font-family: var(--display); font-size: var(--step-2); font-weight: 700; }
.qx-daily span:not(.tag) { color: #fff; opacity: .92; max-width: 46ch; }
.qx-daily small, .qx-mode small { font-size: .8rem; letter-spacing: .06em; opacity: .85; }
.qx-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qx-mode { position: relative; overflow: hidden; display: grid; gap: 4px; align-content: start; justify-items: start; text-align: left; cursor: pointer; font: inherit; color: #fff;
  padding: 18px 18px 16px; min-height: 132px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 34%, transparent), color-mix(in srgb, var(--c2) 12%, transparent) 75%); transition: transform .2s, background .2s; }
.qx-mode::before { content: ""; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 8px; background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.7), transparent 30%), linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px -6px var(--c1); }
.qx-mode:hover { transform: translateY(-3px); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 48%, transparent), color-mix(in srgb, var(--c2) 18%, transparent) 75%); }
.qx-mode b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.qx-mode span { color: #e6e0ff; font-size: .86rem; line-height: 1.4; }
.qx-mode small { margin-top: auto; padding-top: 8px; color: var(--soft); }
@media (max-width: 760px) { .qx-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qx-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qx-rules div { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.qx-rules b { font-family: var(--display); font-size: .9rem; font-weight: 600; }
.qx-rules span { color: var(--soft); font-size: .88rem; line-height: 1.5; }
.qx-rules em { font-style: normal; color: #fff; font-weight: 600; }
@media (max-width: 760px) { .qx-rules { grid-template-columns: 1fr; } }
.qx-toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; justify-self: start; min-height: 44px; }
.qx-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qx-toggle .sw { width: 46px; height: 26px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); position: relative; transition: background .2s; flex-shrink: 0; }
.qx-toggle .sw::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; top: 2px; left: 2px; background: #fff; transition: transform .2s; }
.qx-toggle input:checked + .sw { background: var(--grad); border-color: transparent; }
.qx-toggle input:checked + .sw::after { transform: translateX(20px); }
.qx-toggle input:focus-visible + .sw { outline: 2px solid var(--cyan); outline-offset: 3px; }
.qx-small { color: var(--soft); font-size: .85rem; }

/* play */
.qx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.qx-bar-l, .qx-bar-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qx-mode-label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
#qx-num { color: var(--soft); font-size: .95rem; }
.qx-score { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.qx-streak { font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: linear-gradient(120deg, var(--amber), var(--magenta)); }
.qx-streak:empty { display: none; }
.qx-pips { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.qx-pips span { height: 6px; border-radius: 6px; background: var(--card-2); transition: background .3s, box-shadow .3s; }
.qx-pips span.now { background: rgba(255,255,255,.55); }
.qx-pips span.ok { background: linear-gradient(90deg, var(--zia), var(--cyan)); box-shadow: 0 0 10px rgba(55, 213, 255, .6); }
.qx-pips span.no { background: linear-gradient(90deg, var(--xel), var(--magenta)); }
.qx-card { position: relative; overflow: hidden; padding: clamp(20px, 4vw, 40px); border-radius: calc(var(--r) + 4px);
  background: radial-gradient(70% 60% at 100% 0%, rgba(138, 61, 255, .3), transparent 70%), linear-gradient(170deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.qx-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; padding-right: 64px; }
.qx-diff { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #fff; }
.qx-diff[data-d="1"] { background: linear-gradient(120deg, var(--zia), var(--zia-2)); }
.qx-diff[data-d="2"] { background: linear-gradient(120deg, var(--amber), var(--magenta)); }
.qx-diff[data-d="3"] { background: linear-gradient(120deg, var(--xel), var(--xel-2)); }
.qx-timer { position: absolute; top: clamp(16px, 3vw, 30px); right: clamp(16px, 3vw, 30px); width: 54px; height: 54px; display: grid; place-items: center; --p: 1; }
.qx-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.qx-timer circle { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3.5; }
.qx-timer circle.arc { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: calc(106.8 * (1 - var(--p))); transition: stroke-dashoffset .1s linear, stroke .3s; filter: drop-shadow(0 0 4px var(--cyan)); }
.qx-timer b { font-family: var(--display); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.qx-timer.low circle.arc { stroke: var(--xel); filter: drop-shadow(0 0 5px var(--xel)); }
.qx-timer.low b { color: #ff7a95; }
.qx-timer.frozen circle.arc { stroke: var(--violet); filter: drop-shadow(0 0 6px var(--violet)); }
.qx-q { font-size: clamp(1.25rem, 1rem + 1.3vw, 1.85rem); line-height: 1.3; font-weight: 600; margin-bottom: clamp(20px, 3vw, 30px); text-wrap: pretty; }
.qx-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qx-answers.tf .qx-ans { min-height: 76px; justify-content: center; font-size: 1.15rem; }
@media (max-width: 620px) { .qx-answers { grid-template-columns: 1fr; } .qx-answers.tf { grid-template-columns: 1fr 1fr; } }
.qx-ans { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 1.02rem; color: #fff; cursor: pointer; min-height: 64px;
  padding: 12px 16px; border-radius: var(--r-sm); background: rgba(10, 7, 32, .45); border: 1.5px solid var(--line-2); transition: transform .15s, background .2s, border-color .2s, opacity .3s; }
.qx-ans .key { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .85rem; background: var(--card-2); border: 1px solid var(--line-2); }
.qx-ans:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255,255,255,.6); background: rgba(138, 61, 255, .22); }
.qx-ans:hover:not(:disabled) .key { background: var(--grad); border-color: transparent; }
.qx-ans:disabled { cursor: default; }
.qx-ans.right { border-color: var(--zia); background: linear-gradient(120deg, rgba(31, 214, 166, .35), rgba(55, 213, 255, .18)); box-shadow: 0 0 0 1px var(--zia), 0 10px 30px -10px rgba(31, 214, 166, .7); }
.qx-ans.right .key { background: var(--zia); border-color: transparent; color: #08261e; }
.qx-ans.wrong { border-color: var(--xel); background: linear-gradient(120deg, rgba(255, 46, 99, .35), rgba(138, 31, 255, .16)); animation: shake .4s; }
.qx-ans.wrong .key { background: var(--xel); border-color: transparent; }
.qx-ans:disabled:not(.right):not(.wrong) { opacity: .45; }
.qx-ans.gone { opacity: .15 !important; transform: scale(.97); }
@keyframes shake { 0%, 100% { translate: 0; } 25% { translate: -6px; } 75% { translate: 6px; } }
.qx-feedback { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm); display: grid; gap: 6px; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qx-feedback > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.qx-feedback .verdict { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.qx-feedback .pts { font-family: var(--display); font-weight: 700; color: var(--cyan); }
.qx-feedback .why { color: #e6e0ff; font-size: .95rem; }
.qx-feedback.ok { background: rgba(31, 214, 166, .12); border: 1px solid rgba(31, 214, 166, .4); }
.qx-feedback.no { background: rgba(255, 46, 99, .12); border: 1px solid rgba(255, 46, 99, .4); }
.qx-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.qx-life { display: flex; gap: 10px; flex-wrap: wrap; }
.qx-lifeline { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: .95rem; color: #fff; cursor: pointer; min-height: 48px;
  padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid color-mix(in srgb, var(--c1) 50%, transparent); transition: background .2s, transform .15s; }
.qx-lifeline .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px -6px var(--c1); }
.qx-lifeline .ic svg { width: 18px; height: 18px; }
.qx-lifeline small { font-weight: 400; color: var(--soft); font-size: .8rem; }
.qx-lifeline:hover:not(:disabled) { background: var(--card-2); transform: translateY(-2px); }
.qx-lifeline:disabled { opacity: .4; cursor: not-allowed; }
.qx-lifeline.used .ic { background: var(--card-2); box-shadow: none; }
.qx-lifeline.used { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.4); }

/* end */
.qx-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 44px); border-radius: calc(var(--r) + 6px);
  background: radial-gradient(60% 80% at 0% 0%, rgba(255, 46, 136, .3), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgba(59, 109, 255, .3), transparent 70%), var(--deep); border: 1px solid var(--line-2); }
.qx-rank-orb { width: clamp(130px, 20vw, 200px); aspect-ratio: 1; border-radius: 50%; --o1: var(--magenta); --o2: var(--violet);
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.85) 0, rgba(255,255,255,0) 26%), linear-gradient(150deg, var(--o1), var(--o2));
  box-shadow: 0 0 80px -6px var(--o2), inset -14px -18px 40px rgba(20, 0, 60, .35); animation: float 6s ease-in-out infinite; }
.qx-result-copy { display: grid; gap: 10px; justify-items: start; }
.qx-ranked { color: var(--soft); font-size: .95rem; }
.qx-rank { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; background: linear-gradient(110deg, #fff 30%, #ffd08a 60%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-block: 8px; }
.qx-stats div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.qx-stats b { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.qx-stats span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.qx-newbest { font-weight: 700; color: #ffd08a; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
@media (max-width: 640px) { .qx-result { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qx-result-copy { justify-items: center; } .qx-result .btn-row { justify-content: center; } }
.qx-review-h { margin: 34px 0 14px; font-size: 1.2rem; }
.qx-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qx-review li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.qx-review .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .8rem; }
.qx-review li.ok .n { background: linear-gradient(150deg, var(--zia), var(--cyan)); color: #08261e; }
.qx-review li.no .n { background: linear-gradient(150deg, var(--xel), var(--xel-2)); }
.qx-review b { display: block; font-weight: 500; font-size: .95rem; line-height: 1.4; }
.qx-review .a { color: var(--soft); font-size: .85rem; }
.qx-review .g { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--cyan); white-space: nowrap; }
.qx-review li.no .g { color: var(--soft); font-family: var(--body); font-weight: 500; }
@media (max-width: 1000px) and (min-width: 861px) { .nav a { padding: 8px 10px; } }
/* gallery with real sheets */
.sheet .g-tile { margin: 0; display: grid; gap: 8px; }
.sheet .g-tile.wide { grid-column: 1 / -1; }
.sheet .g-tile.wide .slot { aspect-ratio: 3 / 2; background: #ece6d8; display: block; cursor: zoom-in; }
.sheet .g-tile.wide .slot > img.slot-img { object-fit: contain; background: #ece6d8; }
.sheet .g-tile .slot { aspect-ratio: 1 / 1; }
.sheet figcaption { font-size: .88rem; color: var(--soft); display: flex; justify-content: space-between; gap: 10px; }
.sheet figcaption span { opacity: .7; }

/* =====================================================================
   v3 — MINIMAL DARK
   Near-black, off-white type, hairlines, one restrained crimson accent.
   This layer overrides the colourful theme above.
   ===================================================================== */
:root {
  --night: #09090b; --deep: #111113;
  --card: #111113; --card-2: #18181b;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --text: #ededec; --soft: #8f8f96;
  --accent: #e5484d;
  --magenta: #e5484d; --violet: #3a3a40; --blue: #2a2a2f; --cyan: #ededec; --amber: #8f8f96; --glow: #ededec;
  --xel: #d9535b; --xel-2: #3a1f22; --zir: #5b8bd9; --zir-2: #1d2636;
  --max: #d39a5a; --max-2: #36281b; --zia: #4fb39a; --zia-2: #1a302a;
  --isaac: #63b585; --isaac-2: #1b2e24; --krissy: #9d86df; --krissy-2: #29233a;
  --grad: linear-gradient(var(--text), var(--text));
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --r: 14px; --r-sm: 10px;
  --step-3: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem);
}
body { background: var(--night); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }
h1 { font-weight: 500; }
h3 { font-weight: 500; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: #fff; }
a { text-decoration-color: rgba(255,255,255,.3); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline-color: var(--text); }

/* remove decoration */
.orb, .streaks, .hero-ring, .hero-wave, .feature .streak, .mono::before, .mono::after,
.page-head::before, .page-head::after, .profile .portrait-wrap::before, .dossier::after,
.site-footer::before, .section-head h2::after, .profile-body h2::after, .rules li::before, .narration::before { display: none !important; }
.grad-text, .ep-list .n, .ranks .r, .prose .first::first-letter, .profile h1, .qx-logo span, .qx-rank,
.profile-body .prose .first::first-letter { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--text) !important; filter: none !important; }
.grad-text { color: var(--soft) !important; }
.profile h1 { color: var(--text) !important; }
.prose .first::first-letter { font-weight: 500; color: var(--text) !important; }
* { text-shadow: none !important; }

/* header + footer */
.site-header { background: rgba(9,9,11,.8); border-bottom-color: var(--line); }
.brand img { filter: none; height: 36px; }
.nav a { color: var(--soft); border-radius: 8px; font-size: .94rem; }
.nav a:hover { background: transparent; color: var(--text); }
.nav a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--text); }
.nav a.nav-read { background: var(--text); color: #09090b; box-shadow: none; border-radius: 999px; padding-inline: 16px; }
.nav a.nav-read:hover { filter: none; background: #fff; }
.menu-btn { background: transparent; border-color: var(--line-2); }
.site-footer { background: transparent; border-top: 1px solid var(--line); }
.site-footer img { filter: none; width: 110px; opacity: .9; }

/* buttons, tags, labels */
.btn { background: var(--text); color: #09090b; box-shadow: none; border-radius: 999px; font-weight: 500; }
.btn::after { content: "→"; }
.btn:hover { background: #fff; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--text); }
.kicker { color: var(--soft); font-weight: 500; letter-spacing: .2em; font-size: .74rem; }
.tag { background: transparent; border-color: var(--line-2); color: var(--soft); border-radius: 999px; }
.tag.live { background: transparent; color: var(--text); border-color: var(--line-2); }
.tag.live::before { background: var(--accent); box-shadow: none; }

/* surfaces: flat, hairline */
.panel, .way2, .way, .steps > li, .ep-list li, .rules li, .ranks li, .place, .episode, .file div, .abilities li, .ties li,
.qx-rules div, .qx-stats div, .qx-review li, .side-index, .origin .body, .dossier, .saga .panel, .pair .panel, .factions .panel, .credits .panel, .split .side {
  background: var(--card) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.abilities li.lock { border-style: dashed !important; }
.way2:hover, .ep-list li:hover, .episode:hover { background: var(--card-2) !important; border-color: var(--line-2) !important; transform: none; }
.narration { background: transparent; border: 0; border-left: 1px solid var(--accent); border-radius: 0; padding: .2em 0 .2em 1.2em; backdrop-filter: none; font-weight: 300; }
.side-index a:hover { background: transparent; }
.section-head p, .page-head .lede { color: var(--soft); }
.page-head { padding-block: clamp(64px, 10vw, 140px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 64px); }
.page-head h1 { max-width: 16ch; }
.section { padding-block: clamp(48px, 7vw, 100px); }

/* numbered circles become plain numerals */
.way2 .num, .steps .mark { background: transparent !important; box-shadow: none !important; border: 1px solid var(--line-2); color: var(--text); font-weight: 400; font-size: 1rem; }
.way2 { justify-items: start; text-align: left; padding: 28px 24px; }
.way2 .num { width: 44px; height: 44px; }
.ep-list .n, .ranks .r { font-weight: 300 !important; color: var(--soft) !important; }

/* image slots + placeholders */
.slot { background: var(--deep); border-radius: var(--r-sm); }
.ph { background: var(--deep) !important; }
.ph-glyph { background: transparent; border: 1px solid var(--line-2); box-shadow: none; width: 28px; height: 28px; }
.ph-label { font-weight: 500; }
.ph-page { background: var(--deep); }
.ph-page .cell { background: transparent; border-color: var(--line); }
.cover-ph { background: #141416; }
.cover-ph::before { display: none; }
.cover-ph img { width: 60%; opacity: .9; filter: none; }
.cover-ph b { font-weight: 500; font-size: clamp(.75rem, 1.4vw, 1rem); color: var(--soft); }
.cover-ph small { color: var(--soft); }
.mono { font-weight: 300; color: rgba(255,255,255,.06) !important; mix-blend-mode: normal; letter-spacing: -0.08em; }

/* character cards: flat dark, thin colour line as identity */
.cast-card, .rail-card, .bro, .game-card {
  background: var(--deep) !important; border: 1px solid var(--line) !important; box-shadow: none !important; filter: none !important; }
.cast-card::before, .rail-card::before, .bro::before { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: var(--c1); opacity: .9; }
.cast-card::after, .rail-card::after, .bro::after, .game-card::after { background: linear-gradient(180deg, transparent 50%, rgba(9,9,11,.92)) !important; }
.cast-card:hover, .rail-card:hover { transform: translateY(-3px); border-color: var(--line-2) !important; }
.cast-card h3, .cast-card.lead h3 { font-weight: 500; }
.rail-card b, .bro .who { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; }
.cast-card .role, .rail-card span, .bro .where { color: var(--soft); }
.bro > span.chip.tag, .rail-card .tag { background: rgba(9,9,11,.6); color: var(--text); border-color: var(--line-2); }
.dossier { background: var(--card) !important; }

/* home hero: type + two portraits */
.hero2 { min-height: min(calc(100svh - var(--header-h)), 820px); }
.hero2 .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-copy h1 { font-weight: 500; letter-spacing: -0.045em; font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem); line-height: 1; }
.hero-copy h1 .grad-text { color: var(--soft) !important; }
.hero-copy .hero-logo { filter: none; width: clamp(120px, 14vw, 170px); opacity: .95; }
.hero-copy .sub { color: var(--soft); }
.hv2 { aspect-ratio: auto; max-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.hv-panel { position: relative; display: block; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); aspect-ratio: 3 / 4.4; text-decoration: none; background: var(--deep); }
.hv-panel:nth-child(2) { margin-top: 56px; }
.hv-panel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.25) contrast(1.02); transition: filter .5s, transform .8s; }
.hv-panel:hover img { filter: none; transform: scale(1.03); }
.hv-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9,9,11,.9)); }
.hv-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: var(--c1); }
.hv-panel span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hv-panel b { font-weight: 500; font-size: 1rem; }
.hv-panel i { font-style: normal; color: var(--soft); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 860px) { .hv2 { order: 0; max-width: 460px; width: 100%; } .hero-copy { justify-items: start; text-align: left; } .hero-meta, .hero-copy .btn-row { justify-content: flex-start; } }

/* feature banner + quote + origin */
.feature { background: var(--deep) !important; border: 1px solid var(--line); }
.feature::before { display: none; }
.feature::after { background: linear-gradient(90deg, rgba(9,9,11,.9), rgba(9,9,11,.2)) !important; }
.feature .eyebrow { font-family: var(--body); font-style: normal; font-weight: 500; font-size: .74rem; letter-spacing: .2em; color: var(--soft); }
.feature h2 { font-weight: 500; }
.feature .cover { transform: none; box-shadow: none; border: 1px solid var(--line-2); }
.feature .btn.ghost { background: transparent !important; }
.feature .tag { background: transparent !important; color: var(--soft) !important; }
.quote-band { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.quote-band p { font-weight: 400; letter-spacing: -0.03em; }
.years { font-weight: 300; letter-spacing: -0.05em; }
.years i { background: var(--line-2); box-shadow: none; height: 1px; }
.years .b { -webkit-text-stroke: 0; color: var(--soft); }
.years .grad-text { color: var(--text) !important; }
.ep-card .n, .episode .n, .hero-card small, .credits span, .origin .when, .qx-mode-label { color: var(--soft) !important; }
.ep-card:hover .slot, .issue-card:hover .slot, .art:hover .slot, .thumb:hover .slot { transform: none; box-shadow: none; border-color: var(--line-2); }

/* about timeline */
.origin::before { background: var(--line-2); box-shadow: none; width: 1px; }
.origin .dot { background: var(--night) !important; border: 1px solid var(--line-2); box-shadow: 0 0 0 5px var(--night) !important; width: 13px; height: 13px; margin: 6px 0 0 5px; }
.origin li.now .dot { background: var(--accent) !important; border-color: var(--accent); }
.creator { background: var(--card); border-color: var(--line); }

/* profiles */
body[data-c] .page-glow { display: none; }
.profile .portrait { background: var(--deep); box-shadow: none; border: 1px solid var(--line); }
.profile-body > div:first-child .kicker { color: var(--soft); filter: none; }
.say b { color: var(--text); }
.eyes i { box-shadow: none; }
.abilities li { background: var(--card) !important; }
.sheet .slot { background: var(--deep) !important; }
.sheet .g-tile.wide .slot, .sheet .g-tile.wide .slot > img.slot-img { background: #141416; }
.char-nav a { background: transparent; }

/* world diagram — monochrome */
.energies svg [stroke="url(#edge)"] { stroke: rgba(255,255,255,.25); }

/* reader */
.stage { background: #050506; }
.reader-tools { background: transparent; }
.tool { border-radius: 8px; }
.tool[aria-pressed="true"] { background: var(--text); color: #09090b; box-shadow: none; }
.filters .tool[aria-pressed="true"] { background: var(--text); color: #09090b; }
.scrub { accent-color: var(--text); }
.thumb.on .slot { border-color: var(--text); box-shadow: none; }

/* games hub */
.qx-logo { font-weight: 600; letter-spacing: -0.06em; }
.qx-logo span { color: var(--accent) !important; transform: none; margin-left: 0; }
.game-hero { background: var(--card); border: 1px solid var(--line); }
.game-hero:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.gh-feats li::before { background: var(--accent); box-shadow: none; width: 5px; height: 5px; }
.gh-card { background: var(--deep) !important; border: 1px solid var(--line-2); box-shadow: none; }
.gh-card b { font-weight: 300; color: var(--soft); }
.gh-card.c1 b { color: var(--accent); }
.game-card { cursor: not-allowed; }
.tape { background: transparent; color: var(--soft); box-shadow: none; transform: none; top: 16px; right: 16px; width: auto; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; letter-spacing: .12em; font-weight: 500; }

/* quiz */
.qx-daily { background: var(--card); border: 1px solid var(--line-2); box-shadow: none; color: var(--text); }
.qx-daily:hover { transform: none; box-shadow: none; border-color: var(--text); }
.qx-daily span:not(.tag) { color: var(--soft); }
.qx-daily .tag.live { background: transparent; }
.qx-mode { background: var(--card); border: 1px solid var(--line); min-height: 116px; }
.qx-mode::before { width: 8px; height: 8px; margin-bottom: 14px; background: var(--c1); box-shadow: none; }
.qx-mode:hover { transform: none; background: var(--card-2); border-color: var(--line-2); }
.qx-mode b { font-weight: 500; }
.qx-mode span { color: var(--soft); }
.qx-toggle input:checked + .sw { background: var(--text); }
.qx-toggle input:checked + .sw::after { background: #09090b; }
.qx-card { background: var(--card); box-shadow: none; border-color: var(--line); }
.qx-q { font-weight: 500; }
.qx-diff { background: transparent !important; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; }
.qx-diff::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--zia); }
.qx-diff[data-d="2"]::before { background: var(--max); }
.qx-diff[data-d="3"]::before { background: var(--xel); }
.qx-timer circle.arc { stroke: var(--text); filter: none; }
.qx-timer.low circle.arc { stroke: var(--accent); filter: none; }
.qx-timer.low b { color: var(--accent); }
.qx-timer.frozen circle.arc { stroke: var(--zir); filter: none; }
.qx-ans { background: transparent; border: 1px solid var(--line-2); }
.qx-ans .key { background: transparent; border-color: var(--line-2); font-family: var(--body); font-weight: 500; color: var(--soft); }
.qx-ans:hover:not(:disabled) { transform: none; background: rgba(255,255,255,.04); border-color: var(--text); }
.qx-ans:hover:not(:disabled) .key { background: var(--text); color: #09090b; border-color: transparent; }
.qx-ans.right { background: rgba(79, 179, 154, .1); border-color: var(--zia); box-shadow: none; }
.qx-ans.right .key { background: var(--zia); color: #06140f; }
.qx-ans.wrong { background: rgba(229, 72, 77, .1); border-color: var(--accent); }
.qx-ans.wrong .key { background: var(--accent); color: #fff; }
.qx-feedback.ok { background: transparent; border: 1px solid rgba(79,179,154,.4); }
.qx-feedback.no { background: transparent; border: 1px solid rgba(229,72,77,.4); }
.qx-feedback .pts { color: var(--zia); }
.qx-feedback .verdict { font-weight: 500; }
.qx-pips span.now { background: var(--soft); }
.qx-pips span.ok { background: var(--zia); box-shadow: none; }
.qx-pips span.no { background: var(--accent); }
.qx-streak { background: transparent; border: 1px solid var(--line-2); font-weight: 500; }
.qx-score { font-weight: 500; }
.qx-lifeline { background: transparent; border-color: var(--line-2); font-weight: 500; }
.qx-lifeline .ic { background: transparent; border: 1px solid var(--line-2); box-shadow: none; color: var(--c1); }
.qx-lifeline:hover:not(:disabled) { transform: none; background: rgba(255,255,255,.04); }
.qx-result { background: var(--card); border-color: var(--line); }
.qx-rank-orb { width: clamp(110px, 16vw, 160px); background: none !important; border: 1px solid var(--line-2); box-shadow: none; animation: none; position: relative; }
.qx-rank-orb::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--o1); }
.qx-rank { font-weight: 500; }
.qx-newbest { color: var(--accent); }
.qx-review li.ok .n { background: transparent; border: 1px solid var(--zia); color: var(--zia); }
.qx-review li.no .n { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.qx-review .g { color: var(--zia); font-family: var(--body); font-weight: 500; }
.cast-card::before, .rail-card::before, .bro::before { top: auto !important; inset: auto 0 0 0; }
.qx-mode[data-mode="mixed"] { --c1: var(--accent) !important; }
.qx-mode[data-mode="easy"] { --c1: var(--zia) !important; }
.qx-mode[data-mode="medium"] { --c1: var(--max) !important; }
.qx-mode[data-mode="hard"] { --c1: var(--xel) !important; }

/* =====================================================================
   GLOSSARY + RELATIONSHIP WEB
   ===================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.web-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.web-canvas { border: 1px solid var(--line); border-radius: var(--r); background: #0c0c0e; overflow-x: auto; }
#web { display: block; width: 100%; min-width: 720px; height: auto; font-family: var(--body); }
.w-zone { fill: rgba(255,255,255,.015); stroke: var(--line); stroke-dasharray: 3 5; }
.w-zone-label { fill: var(--soft); font-size: 11px; letter-spacing: .2em; font-weight: 500; }
.w-link { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; transition: opacity .25s, stroke-width .25s; }
.w-link.k-blood { stroke: var(--xel); }
.w-link.k-found { stroke: var(--zia); }
.w-link.k-rival { stroke: var(--max); }
.w-link.k-mentor { stroke: var(--zir); }
.w-link.k-allies { stroke: rgba(255,255,255,.45); }
.w-link.k-enemy { stroke: var(--accent); }
.w-link.k-serves { stroke: rgba(255,255,255,.3); }
.w-link.k-created { stroke: rgba(255,255,255,.5); }
.w-link.k-hidden { stroke: var(--krissy); }
.w-link.off { display: none; }
#web.focus .w-link { opacity: .08; }
#web.focus .w-link.on { opacity: 1; stroke-width: 2.5; }
.w-node { cursor: pointer; outline: none; transition: opacity .25s; }
.w-node .w-halo { fill: none; stroke: transparent; stroke-width: 1.5; transition: stroke .2s; }
.w-node .w-disc { fill: #17171a; stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.w-node[class*="c-"] .w-disc { stroke-width: 2; }
.w-node.c-xel .w-disc { stroke: var(--xel); } .w-node.c-zirous .w-disc { stroke: var(--zir); }
.w-node.c-max .w-disc { stroke: var(--max); } .w-node.c-zia .w-disc { stroke: var(--zia); }
.w-node.c-isaac .w-disc { stroke: var(--isaac); } .w-node.c-krissy .w-disc { stroke: var(--krissy); }
.w-ini { fill: var(--text); font-size: 18px; font-weight: 500; letter-spacing: .02em; }
.w-label { fill: var(--text); font-size: 15px; font-weight: 500; paint-order: stroke; stroke: #0c0c0e; stroke-width: 5px; stroke-linejoin: round; }
.w-node:hover .w-halo, .w-node:focus-visible .w-halo, .w-node.sel .w-halo { stroke: var(--text); }
#web.focus .w-node { opacity: .2; }
#web.focus .w-node.on { opacity: 1; }
.web-panel { position: sticky; top: calc(var(--header-h) + 16px); padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); display: grid; gap: 10px; min-height: 220px; align-content: start; }
.web-panel h3 { font-size: 1.5rem; }
.web-panel .btn-row { margin-top: 8px; }
.web-panel .btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.w-conns { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.w-conn { width: 100%; display: grid; grid-template-columns: 14px auto 1fr; gap: 4px 10px; align-items: baseline; text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; border-top: 1px solid var(--line); padding: 10px 0; cursor: pointer; }
.w-conn:hover b { text-decoration: underline; }
.w-conn b { font-weight: 500; font-size: .95rem; }
.w-conn span:last-child { grid-column: 2 / -1; color: var(--soft); font-size: .86rem; line-height: 1.4; }
.w-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); align-self: center; }
.w-dot.k-blood { background: var(--xel); } .w-dot.k-found { background: var(--zia); } .w-dot.k-rival { background: var(--max); }
.w-dot.k-mentor { background: var(--zir); } .w-dot.k-enemy { background: var(--accent); } .w-dot.k-hidden { background: var(--krissy); }
.web-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.w-key { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: .86rem; color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 38px; }
.w-key svg { overflow: visible; }
.w-key svg line { stroke-width: 2.5; }
.w-key[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
@media (max-width: 960px) { .web-layout { grid-template-columns: 1fr; } .web-panel { position: static; } }

.g-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.g-search { flex: 1 1 320px; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--soft); min-height: 48px; }
.g-search:focus-within { border-color: var(--text); }
.g-search input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1rem; min-height: 46px; }
.g-search input::placeholder { color: var(--soft); }
.g-count { font-size: .9rem; }
.g-types { margin-bottom: 10px; }
.g-az { display: flex; flex-wrap: wrap; gap: 2px; margin: 10px 0 24px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.g-az a, .g-az span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: .9rem; text-decoration: none; }
.g-az a:hover { background: var(--card-2); }
.g-az span.off { color: rgba(255,255,255,.18); }
.g-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-letter { grid-column: 1 / -1; font-size: 1.6rem; font-weight: 300; color: var(--soft); margin: 22px 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.g-letter:first-child { margin-top: 0; }
.g-entry { padding: 20px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; scroll-margin-top: calc(var(--header-h) + 20px); transition: border-color .4s; }
.g-entry.flash { animation: gflash 1.6s ease; }
@keyframes gflash { 0%, 40% { border-color: var(--text); background: var(--card-2); } 100% { border-color: var(--line); } }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-head h4 { margin: 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.g-type { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.g-type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--soft); }
.g-type.t-character::before { background: var(--xel); } .g-type.t-faction::before { background: var(--krissy); }
.g-type.t-place::before { background: var(--zia); } .g-type.t-lore::before { background: var(--zir); }
.g-type.t-power::before { background: var(--max); } .g-type.t-object::before { background: var(--isaac); }
.g-short { color: var(--text); }
.g-body { color: var(--soft); font-size: .94rem; line-height: 1.6; }
.g-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.g-see { font-size: .86rem; color: var(--soft); }
.g-see a { color: var(--text); }
.g-acts { display: flex; gap: 6px; }
.g-act { font-size: .82rem; text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.g-act:hover { border-color: var(--text); }
.g-empty { grid-column: 1 / -1; padding: 30px 0; }
@media (max-width: 760px) { .g-list { grid-template-columns: 1fr; } }
.web-hint { display: none; font-size: .85rem; margin-top: 10px; } @media (max-width: 760px) { .web-hint { display: block; } }

/* =====================================================================
   WATCH PAGE
   ===================================================================== */
.page-head .btn svg { margin-right: 2px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap); align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #050506; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-face { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; text-decoration: none; padding: 0; cursor: pointer; background: #0c0c0e; color: var(--text); font: inherit; text-align: left; }
.player-face:disabled { cursor: default; }
.pf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.player-face:hover .pf-img { opacity: 1; }
.player-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9,9,11,.85)); }
.pf-over { position: absolute; z-index: 1; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); right: 120px; display: grid; gap: 4px; }
.pf-ep { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.pf-title { font-size: clamp(1.2rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.pf-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #09090b; transition: transform .2s; }
.pf-play svg { margin-left: 4px; }
.player-face:hover .pf-play { transform: translate(-50%, -50%) scale(1.06); }
.pf-soon { position: absolute; z-index: 1; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.player-meta { display: grid; gap: 10px; padding: 22px 4px 0; }
.player-meta h2 { font-size: var(--step-2); }
.player-meta .muted { max-width: 60ch; }
.watch-side { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); }
.watch-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.watch-side-head h3 { font-size: 1rem; }
.watch-side-head span { font-size: .8rem; }
.ep-playlist { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: 620px; overflow-y: auto; }
.ep-item button { width: 100%; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; border-radius: 10px; padding: 8px; cursor: pointer; }
.ep-item button:hover { background: var(--card-2); }
.ep-item.on button { background: var(--card-2); box-shadow: inset 2px 0 0 var(--accent); }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; display: grid; place-items: center; background: #1a1a1d; }
.ep-thumb-n { font-size: 1.2rem; font-weight: 300; color: var(--soft); }
.ep-thumb img.slot-img { z-index: 2; }
.ep-text { display: grid; gap: 2px; min-width: 0; }
.ep-n { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.ep-text b { font-weight: 500; font-size: .95rem; line-height: 1.3; }
.ep-d { font-size: .8rem; color: var(--soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-item.soon b { color: var(--soft); }
@media (max-width: 980px) { .watch-layout { grid-template-columns: 1fr; } .watch-side { position: static; } .ep-playlist { max-height: none; } }
@media (max-width: 480px) { .ep-item button { grid-template-columns: 96px minmax(0, 1fr); } .pf-over { right: 16px; } .pf-play { width: 60px; height: 60px; } }
.watch-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: clamp(22px, 3vw, 36px); text-decoration: none; }
.watch-cta div { display: grid; gap: 8px; }
.watch-cta:hover { border-color: var(--line-2) !important; }

/* =====================================================================
   HOME — NEWS CAROUSEL
   ===================================================================== */
.news-sec { padding-top: clamp(8px, 2vw, 24px); }
.news-ctrl { display: flex; gap: 8px; }
.news-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-2); color: var(--text); cursor: pointer; }
.news-btn:hover { border-color: var(--text); }
.news-pause .i-play { display: none; }
.news.paused ~ * .i-play, .news-sec:has(.news.paused) .news-pause .i-play { display: block; }
.news-sec:has(.news.paused) .news-pause .i-pause { display: none; }
.news-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.news-track::-webkit-scrollbar { display: none; }
.news-slide { scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: clamp(300px, 34vw, 420px); }
.news-media { position: relative; overflow: hidden; background: #0d0d10; display: block; }
.news-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .8s; }
.news-slide:hover .news-img { transform: scale(1.03); }
.news-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--card)); }
.news-mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; letter-spacing: -0.05em; color: rgba(255,255,255,.06); }
.news-body { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 52px); }
.news-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-date { font-size: .82rem; color: var(--soft); }
.news-body h3 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.1; }
.news-body .muted { max-width: 42ch; }
.news-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.news-dot { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.news-dot::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background .2s, width .2s; }
.news-dot[aria-current="true"]::before { background: var(--text); width: 28px; }
@media (max-width: 760px) { .news-slide { grid-template-columns: 1fr; grid-template-rows: 200px auto; } .news-media::after { background: linear-gradient(180deg, transparent 50%, var(--card)); } .news-body { padding: 20px 22px 26px; } }

/* =====================================================================
   HOME — hub
   ===================================================================== */
.hub-line { color: var(--text); font-size: 1rem; max-width: 46ch; padding-left: 14px; border-left: 1px solid var(--accent); }
.hub-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(22px, 3vw, 36px); }
.hub-head .muted { max-width: 52ch; }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hub-item { display: grid; gap: 8px; align-content: start; padding: 24px 22px 28px; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; min-height: 170px; position: relative; }
.hub-item:hover { background: var(--card); }
.hub-item::after { content: "→"; position: absolute; right: 20px; top: 22px; color: var(--soft); transition: transform .2s, color .2s; }
.hub-item:hover::after { transform: translateX(3px); color: var(--text); }
.hub-item .num { font-size: .78rem; color: var(--soft); letter-spacing: .1em; }
.hub-item b { font-weight: 500; font-size: 1.12rem; letter-spacing: -0.02em; margin-top: 18px; }
.hub-item span:last-child { color: var(--soft); font-size: .9rem; line-height: 1.5; }
@media (max-width: 960px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-head { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .hub-grid { grid-template-columns: 1fr; } .hub-item { min-height: 0; } .hub-item b { margin-top: 6px; } }

/* home ledger teaser */
.ledger-teaser { display: grid; gap: 18px; text-decoration: none; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r); background: #e9e5db; color: #17150f; border: 0; transition: transform .25s; }
.ledger-teaser:hover { transform: translateY(-3px); }
.lt-mast { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 3px double #17150f; }
.lt-name { font-family: "Fraktur", "Old English Text MT", serif; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; }
.lt-date { font-family: "Newsreader", Georgia, serif; font-size: .9rem; font-style: italic; color: #4a463c; }
.lt-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.lt-h { font-family: "Newsreader", Georgia, serif; font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.08; letter-spacing: -0.01em; }
.lt-dek { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.08rem; color: #3b372e; margin-top: 10px; }
.lt-more { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 1px solid #b9b3a5; display: grid; gap: 12px; align-content: start; }
.lt-more li { font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 1rem; line-height: 1.25; padding-bottom: 12px; border-bottom: 1px solid #cfc9bb; }
.lt-more li:last-child { border-bottom: 0; }
.lt-cta { font-size: .88rem; font-weight: 500; }
@media (max-width: 720px) { .lt-body { grid-template-columns: 1fr; } .lt-more { padding-left: 0; border-left: 0; } }

/* =====================================================================
   THE RAVENPORT LEDGER
   ===================================================================== */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Fell"; src: url("../fonts/fell.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fell"; src: url("../fonts/fell-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fell SC"; src: url("../fonts/fell-sc.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraktur"; src: url("../fonts/fraktur.woff2") format("woff2"); font-weight: 400; font-display: swap; }
.ledger-page { padding-top: clamp(28px, 4vw, 56px); }
.lx-intro { display: grid; gap: 8px; max-width: 60ch; margin-bottom: 22px; }
.lx-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lx-nav .btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.lx-nav .btn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.lx-which { color: var(--soft); font-size: .9rem; }
.lx-paper { --ink: #17150f; --ink-2: #4a463c; --rule: #b9b3a5; background: #ebe7dd; color: var(--ink); border-radius: 6px; padding: clamp(18px, 4vw, 52px); font-family: "Newsreader", Georgia, "Times New Roman", serif; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 3px 3px; }
.lx-paper ::selection { background: var(--ink); color: #ebe7dd; }
.lx-mast { text-align: center; border-bottom: 3px double var(--ink); padding-bottom: 10px; }
.lx-ears { display: flex; justify-content: space-between; gap: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 8px; font-family: var(--body); }
.lx-name { font-family: "Fraktur", "Old English Text MT", serif; font-weight: 400; font-size: clamp(2.2rem, 1rem + 6vw, 5.6rem); line-height: 1.05; letter-spacing: 0; color: var(--ink); text-wrap: balance; }
.lx-motto { font-style: italic; color: var(--ink-2); margin: 4px 0 12px; }
.lx-dateline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 8px; font-size: .86rem; font-family: var(--body); letter-spacing: .04em; }
.lx-ticker { overflow: hidden; border-bottom: 1px solid var(--ink); padding: 8px 0; font-family: var(--body); font-size: .86rem; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lx-ticker > div { display: inline-flex; gap: 40px; animation: tick 90s linear infinite; }
.lx-ticker span::before { content: "■"; font-size: .6em; margin-right: 12px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }
.lx-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 0; margin-top: 22px; }
.lx-lead { padding-right: clamp(16px, 2.6vw, 32px); border-right: 1px solid var(--rule); }
.lx-section { font-family: var(--body); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8a2a22; margin-bottom: 6px; }
.lx-lead-h { font-family: "Newsreader", Georgia, serif; font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -0.015em; color: var(--ink); }
.lx-dek { font-style: italic; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); margin-top: 10px; line-height: 1.4; }
.lx-by { font-family: var(--body); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.lx-body { columns: 2 220px; column-gap: 28px; column-rule: 1px solid var(--rule); font-size: 1.05rem; line-height: 1.55; }
.lx-body p { margin: 0 0 .8em; break-inside: avoid-column; text-align: justify; hyphens: auto; }
.lx-body p.first::first-letter { float: left; font-weight: 700; font-size: 3.6em; line-height: .82; padding: 4px 8px 0 0; }
.lx-side { padding-left: clamp(16px, 2.6vw, 32px); display: grid; gap: 0; align-content: start; }
.lx-box { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.lx-box:first-child { padding-top: 0; }
.lx-box h3 { font-family: "Newsreader", Georgia, serif; font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: 0; color: var(--ink); margin-bottom: 6px; }
.lx-box p { font-size: .98rem; line-height: 1.5; }
.lx-weather .lx-temp { display: flex; align-items: baseline; gap: 12px; }
.lx-weather .lx-temp b { font-size: 3rem; font-weight: 300; line-height: 1; }
.lx-weather .lx-temp span { font-family: var(--body); font-size: .85rem; color: var(--ink-2); }
.lx-sky { font-weight: 700; margin: 4px 0 2px; }
.lx-shade { background: var(--ink); color: #ebe7dd; padding: 16px 18px; margin: 16px 0; border: 0; }
.lx-shade .lx-section { color: #ebe7dd; opacity: .7; }
.lx-shade h3 { color: #ebe7dd; }
.lx-op { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lx-op span { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lx-op b { font-size: 1.05rem; line-height: 1.25; font-style: italic; font-weight: 600; }
.lx-stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px double var(--ink); margin-top: 26px; padding-top: 18px; }
.lx-story { padding: 0 18px 18px; border-right: 1px solid var(--rule); }
.lx-story:first-child { padding-left: 0; }
.lx-story:last-child { border-right: 0; padding-right: 0; }
.lx-story.big { grid-column: span 2; }
.lx-story.big h3 { font-size: 1.7rem; }
.lx-story:nth-child(n+4) { border-top: 1px solid var(--rule); padding-top: 18px; }
.lx-story:nth-child(4) { padding-left: 0; }
.lx-story:nth-child(3) { border-right: 0; padding-right: 0; }
.lx-story h3 { font-family: "Newsreader", Georgia, serif; font-weight: 700; font-size: 1.2rem; line-height: 1.15; letter-spacing: 0; color: var(--ink); }
.lx-story .lx-dek { font-size: 1rem; }
.lx-story .lx-by { border: 0; padding: 0; margin: 8px 0 0; }
.lx-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; border-top: 3px double var(--ink); margin-top: 8px; padding-top: 18px; }
.lx-bottom > section:first-child { padding-right: 24px; border-right: 1px solid var(--rule); }
.lx-bottom > section:last-child { padding-left: 24px; }
.lx-briefs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .96rem; line-height: 1.45; }
.lx-briefs li { padding-bottom: 8px; border-bottom: 1px dotted var(--rule); }
.lx-class { columns: 2 180px; column-gap: 18px; column-rule: 1px solid var(--rule); font-family: var(--body); font-size: .84rem; line-height: 1.45; }
.lx-class p { break-inside: avoid; margin: 0 0 10px; padding: 8px; border: 1px solid var(--rule); }
.lx-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--ink); text-align: center; font-style: italic; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .lx-grid { grid-template-columns: 1fr; }
  .lx-lead { padding-right: 0; border-right: 0; }
  .lx-side { padding-left: 0; margin-top: 20px; border-top: 3px double var(--ink); padding-top: 16px; }
  .lx-stories { grid-template-columns: 1fr 1fr; }
  .lx-story, .lx-story:first-child, .lx-story:nth-child(4), .lx-story:last-child { padding: 16px 12px 16px 0; border-right: 0; border-top: 1px solid var(--rule); }
  .lx-story.big { grid-column: 1 / -1; border-top: 0; }
  .lx-bottom { grid-template-columns: 1fr; }
  .lx-bottom > section:first-child { padding-right: 0; border-right: 0; padding-bottom: 18px; }
  .lx-bottom > section:last-child { padding-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
}
@media (max-width: 520px) { .lx-stories { grid-template-columns: 1fr; } .lx-ears span:last-child { display: none; } .lx-body { columns: 1; } }
@media (prefers-reduced-motion: reduce) { .lx-ticker > div { animation: none; } }
.news-media.news-paper { background: #ebe7dd; color: #17150f; display: grid; place-content: center; text-align: center; gap: 8px; padding: 24px; border-bottom: 0; }
.news-media.news-paper::after { display: none; }
.np-name { font-family: "Fraktur", serif; font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem); line-height: 1.05; }
.np-sub { font-family: "Newsreader", Georgia, serif; font-style: italic; color: #4a463c; padding-top: 8px; border-top: 3px double #17150f; }
@media (max-width: 760px) { .news-media.news-paper::after { background: none; } }
.dossier.has-img { padding-top: 0 !important; overflow: hidden; }
.d-img { display: block; margin: 0 -22px 6px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.d-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s; }
.d-img:hover img { transform: scale(1.03); }
/* about: tribute */
.tribute { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.tribute-art { position: relative; display: block; min-height: 360px; text-decoration: none; }
.tribute-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.tribute-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(9,9,11,.85)); }
.tribute-art::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: var(--zir); }
.tribute-art span { position: absolute; z-index: 1; left: 18px; bottom: 16px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.tribute-copy { padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; align-content: center; }
.tribute-copy h3 { font-size: var(--step-3); }
.tribute-copy > p:not(.kicker) { color: #d9d9dc; max-width: 54ch; }
.tribute-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tribute-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tribute-list b { font-weight: 500; }
.tribute-list span { color: var(--soft); }
.tribute-also { margin-top: 18px; color: var(--soft); font-size: .92rem; }
.tribute-also b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .tribute { grid-template-columns: 1fr; } .tribute-art { min-height: 300px; } }

/* =====================================================================
   NAV v4 — Home link + Read/Watch button pair
   ===================================================================== */
.nav-cta { display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; order: 9; }
.nav a.nav-read, .nav a.nav-watch { order: 0; margin: 0; padding: 8px 18px; border-radius: 999px; font-weight: 600; }
.nav a.nav-read { background: var(--text); color: #09090b; }
.nav a.nav-read:hover { background: #fff; color: #09090b; }
.nav a.nav-watch { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a.nav-watch:hover { box-shadow: inset 0 0 0 1px var(--text); }
.nav a.nav-read[aria-current="page"] { background: var(--text); color: #09090b; }
.nav a.nav-watch[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--text); background: var(--card-2); }
@media (max-width: 860px) {
  .nav-cta { order: -1; margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav a.nav-read, .nav a.nav-watch { text-align: center; padding: 12px 16px; }
}

/* =====================================================================
   VIDEOS
   ===================================================================== */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); align-items: start; }
.vid { display: grid; gap: 8px; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; width: 100%; }
.vid.soon { cursor: default; }
.vid-slot { position: relative; width: 100%; max-height: 520px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #111113; transition: border-color .2s; }
.vid:hover:not(.soon) .vid-slot { border-color: var(--line-2); }
.vid-slot > .slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(9,9,11,.72); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); transition: transform .2s, background .2s; z-index: 2; }
.vid-play svg { margin-left: 3px; }
.vid:hover .vid-play { transform: scale(1.08); background: var(--text); color: #09090b; }
.vid-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(9,9,11,.72); color: var(--soft); border: 1px solid var(--line); }
.vid .meta { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; color: var(--soft); padding-inline: 2px; }
.vid .meta b { color: var(--text); font-weight: 500; }
.vid-note { margin: 0; color: var(--muted, var(--soft)); font-size: .88rem; padding-inline: 2px; opacity: .8; }
.vid-frame { height: 100%; max-height: 100%; max-width: 100%; margin: auto; background: #000; border-radius: 10px; overflow: hidden; }
.vid-frame video, .vid-frame iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.lb-stage:has(.vid-frame) { place-items: center; }
@media (max-width: 860px) {
  .nav.open { background: var(--night); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
}

/* =====================================================================
   SECTION SUB-MENUS (Codex, Gallery)
   ===================================================================== */
.nav a[aria-current="true"] { color: var(--text); }
.subnav-wrap { padding-top: clamp(18px, 3vw, 28px); }
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; text-decoration: none; color: var(--soft); font-size: .95rem; font-weight: 500; padding: 12px 14px 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.subnav-wrap + .page-head { padding-top: clamp(28px, 5vw, 56px); }

/* =====================================================================
   BESTIARY — illustrated book (js/book.js)
   ===================================================================== */
.bk { --parch: #efe2c4; --parch-2: #e3d1aa; --parch-edge: #c9b184; --ink: #2b1d10; --ink-soft: #5b4a37; --ink-faint: #7d6a52;
  --oxblood: #6e1f17; --leather: #1a110e; --leather-2: #2a1a15; --gilt: #b89763;
  --old: "Fell", "Newsreader", Georgia, serif; --oldsc: "Fell SC", "Fell", Georgia, serif;
  --bk-h: clamp(580px, calc(100vh - 250px), 860px);
  position: relative; scroll-margin-top: calc(var(--header-h) + 12px); }
.bk .vh, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bestiary-page .page-head { padding-block: clamp(24px, 4vw, 44px) clamp(18px, 2.5vw, 26px); margin-bottom: 20px; }
.bestiary-page .page-head h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); }

.bk-editor-banner { background: #2a2410; border: 1px dashed #b8a24a; color: #f0e3a6; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: .92rem; }
.bk-editor-banner a { color: inherit; }

/* toolbar */
.bk-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.bk-tool { min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); font: 500 .92rem/1 var(--ui, inherit); cursor: pointer; }
.bk-tool:hover { border-color: var(--line-2); }
.bk-tool.ghost { background: transparent; }
.bk-tool:disabled { opacity: .35; cursor: default; }
.bk-tool[aria-expanded="true"] { background: var(--text); color: #09090b; }
.bk-search { flex: 1 1 220px; min-width: 0; }
.bk-search input { width: 100%; min-height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #0f0f11; color: var(--text); padding: 8px 16px; font: inherit; font-size: 1rem; }
.bk-search input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.bk-settings { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(380px, 100%); background: #151517; border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; box-shadow: 0 24px 60px -20px #000; display: grid; gap: 14px; }
.bk-settings .bk-small-h { color: var(--text); }
.bk-switch { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; position: relative; }
.bk-switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.bk-switch-ui { width: 44px; height: 26px; border-radius: 999px; background: #2a2a2f; position: relative; transition: background .2s; grid-row: 1; }
.bk-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #9a9aa2; transition: transform .2s, background .2s; }
.bk-switch input:checked + .bk-switch-ui { background: var(--text); }
.bk-switch input:checked + .bk-switch-ui::after { transform: translateX(18px); background: #09090b; }
.bk-switch input:focus-visible + .bk-switch-ui { outline: 2px solid var(--text); outline-offset: 2px; }
.bk-switch input:disabled + .bk-switch-ui { opacity: .35; }
.bk-switch-t { display: grid; gap: 2px; font-size: .9rem; color: var(--soft); line-height: 1.45; }
.bk-switch-t b { color: var(--text); font-weight: 500; font-size: .98rem; }
.bk-set-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.bk-set-row .bk-fine { color: var(--soft); }
.bk-linkbtn { background: none; border: 0; padding: 6px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .9rem; }

/* stage + book */
.bk-stage { position: relative; }
.bk-loading { color: var(--soft); padding: 40px 0; }
.bk-error, .bk-gate { max-width: 40rem; margin: 20px auto; padding: clamp(28px, 5vw, 48px); border-radius: 8px; background: radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(92,58,20,.35)), url("../images/brand/parchment.jpg") 0 0 / 640px; color: var(--ink); font-family: "Fell", "Newsreader", Georgia, serif; font-size: 1.1rem; line-height: 1.65; box-shadow: 0 30px 80px -30px #000, inset 0 0 60px rgba(120, 80, 30, .25); }
.bk-gate h2, .bk-error h2 { font-family: "Fell", "Newsreader", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); color: var(--ink); margin-bottom: 14px; }
.bk-gate p + p { margin-top: 12px; }
.bk-gate-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.bk-btn { min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--ink); color: var(--parch); font: 400 1.08rem/1 var(--oldsc); cursor: pointer; }
.bk-btn:hover { background: #000; }
.bk-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.bk-btn:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; }

/* cover */
.bk-cover-wrap { display: grid; place-items: center; padding: clamp(10px, 3vw, 30px) 0; }
.bk-cover { width: min(420px, 100%, calc((100vh - 300px) * .75)); min-width: min(300px, 100%); aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 40px 32px; border-radius: 6px 14px 14px 6px; position: relative;
  background: radial-gradient(90% 70% at 50% 35%, #3a241c, var(--leather) 70%), var(--leather);
  box-shadow: inset 10px 0 18px -8px rgba(0,0,0,.8), inset -2px 0 0 rgba(255,255,255,.04), inset 0 0 0 10px rgba(0,0,0,.25), inset 0 0 0 11px rgba(184,151,99,.35), 0 40px 80px -30px #000, 0 0 0 1px #000; }
.bk-cover::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: linear-gradient(transparent, rgba(184,151,99,.25), transparent); }
.bk-cover-logo { width: min(200px, 55%); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)) sepia(.35) brightness(.95); }
.bk-cover-rule { width: 60%; height: 1px; background: linear-gradient(90deg, transparent, var(--gilt), transparent); }
.bk-cover-title { font-family: "Fraktur", "Fell", "Newsreader", Georgia, serif; font-weight: 400; letter-spacing: .01em; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); line-height: 1.05; color: #e6d3a6; text-shadow: 0 2px 0 #000; }
.bk-cover-open { margin-top: 8px; background: #e6d3a6; color: var(--leather); }
.bk-cover-open:hover { background: #f3e5c3; }
.bk-cover .bk-linkbtn { color: #b7a27a; }

.bk-book { position: relative; }
.bk-book.spread { display: grid; grid-template-columns: 1fr 1fr; height: var(--bk-h); padding: 12px; border-radius: 10px; background: linear-gradient(90deg, var(--leather-2), var(--leather) 49%, #0d0806 50%, var(--leather) 51%, var(--leather-2)); box-shadow: 0 40px 90px -40px #000, 0 0 0 1px #000; }
.bk-page { position: relative; min-width: 0; overflow: hidden; color: var(--ink); background: var(--parch);
  background-image:
    radial-gradient(120% 95% at 50% 45%, rgba(255,248,226,.45), rgba(255,248,226,0) 55%),
    radial-gradient(28% 22% at 82% 14%, rgba(140,92,35,.16), transparent 70%),
    radial-gradient(22% 18% at 12% 86%, rgba(120,78,30,.14), transparent 70%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(92,58,20,.38) 100%),
    url("../images/brand/parchment.jpg");
  background-size: auto, auto, auto, auto, 640px 640px;
  font-family: var(--old); font-size: 1.14rem; line-height: 1.62; letter-spacing: .005em; padding: clamp(28px, 3.2vw, 46px) clamp(26px, 3.4vw, 50px) 56px; }
.bk-page.left { border-radius: 4px 2px 2px 4px; box-shadow: inset -30px 0 34px -22px rgba(60, 34, 8, .6), inset 0 0 0 1px rgba(110,70,25,.25), inset 0 0 70px rgba(110, 70, 25, .28); }
.bk-page.right { border-radius: 2px 4px 4px 2px; box-shadow: inset 30px 0 34px -22px rgba(60, 34, 8, .6), inset 0 0 0 1px rgba(110,70,25,.25), inset 0 0 70px rgba(110, 70, 25, .28); }
.bk-page.single { border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(110,70,25,.25), inset 0 0 70px rgba(110, 70, 25, .3), 0 30px 70px -30px #000; padding: 26px 20px 36px; font-size: 1.06rem; }
.bk-flow { height: 100%; overflow: hidden; }
.bk-page.single .bk-flow { height: auto; overflow: visible; }
.bk-page.bk-scroll .bk-flow { overflow-y: auto; }
.bk-folio { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-family: var(--oldsc); font-size: .92rem; letter-spacing: .14em; color: var(--ink-faint); }
.bk-folio:empty { display: none; }
.bk-blank { display: grid; }
.bk-orn, .bk-noplate-orn { display: block; width: 90px; height: 90px; margin: auto; opacity: .35;
  background: radial-gradient(circle, transparent 38%, var(--ink-faint) 39%, var(--ink-faint) 41%, transparent 42%), linear-gradient(45deg, transparent 48%, var(--ink-faint) 49%, var(--ink-faint) 51%, transparent 52%), linear-gradient(-45deg, transparent 48%, var(--ink-faint) 49%, var(--ink-faint) 51%, transparent 52%); }
.bk-blank .bk-flow { display: grid; place-items: center; }
.bk-book.turn-f .bk-page { animation: bkTurnF .28s ease-out; }
.bk-book.turn-b .bk-page { animation: bkTurnB .28s ease-out; }
@keyframes bkTurnF { from { opacity: .35; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes bkTurnB { from { opacity: .35; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bk-book .bk-page { animation: none !important; } .bk-switch-ui, .bk-switch-ui::after { transition: none; } }

/* typography inside pages */
.bk-page :is(h2, h3) { color: var(--ink); font-family: var(--old); }
.bk-page p, .bk-page li { text-shadow: 0 0 .4px rgba(43,29,16,.35); }
.bk-kicker { font-family: var(--oldsc); font-size: .74rem; letter-spacing: .18em;  color: var(--oxblood); margin-bottom: 6px; }
.bk-title { font-family: var(--oldsc) !important; font-weight: 400; letter-spacing: .01em; font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.7rem); line-height: 1.05; }
.bk-title:focus { outline: none; }
.bk-title:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 4px; }
.bk-badge { display: inline-block; margin-top: 10px; font-family: var(--oldsc); font-size: .8rem; letter-spacing: .04em; line-height: 1.3; padding: 5px 11px; border-radius: 4px; border: 1px solid rgba(122, 36, 32, .45); color: var(--oxblood); background: rgba(122, 36, 32, .06); }
.bk-intro { color: var(--ink-soft); margin: 10px 0 18px; }
.bk-small-h { font-family: var(--oldsc) !important; font-size: 1rem !important; letter-spacing: .08em; color: var(--ink-faint); font-weight: 400 !important; margin-bottom: 8px; }
.bk-fine { font-family: var(--old); font-style: italic; font-size: .92rem; line-height: 1.45; color: var(--ink-faint); }
.bk-page a { color: var(--ink); text-decoration-color: rgba(42,31,21,.35); text-underline-offset: 3px; }
.bk-page a:hover { color: var(--oxblood); text-decoration-color: var(--oxblood); }
.bk-page a:focus-visible, .bk-page button:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; border-radius: 3px; }
.bk-page mark { background: rgba(184, 120, 30, .3); color: inherit; padding: 0 1px; border-radius: 2px; }
.bk-block + .bk-block { margin-top: 18px; }
.bk-lead p { font-size: 1.14em; line-height: 1.6; }
.bk-lead:not(.bk-cont) p::first-letter { float: left; font-family: "Fraktur", var(--old); font-size: 3.6em; line-height: .8; padding: 6px 10px 0 0; color: var(--oxblood); font-weight: 400; }
.bk-sec h3 { font-family: var(--oldsc) !important; font-size: 1.3rem; font-weight: 400; letter-spacing: -0.005em; margin-bottom: 4px; }
.bk-sec h3::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--oxblood); vertical-align: middle; margin-right: 10px; }
.bk-contd { font-family: var(--oldsc); font-size: .74rem; letter-spacing: .14em;  color: var(--ink-faint); margin-bottom: 4px; }
.bk-related { border-top: 1px solid rgba(42,31,21,.18); padding-top: 14px; }
.bk-related ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.bk-related li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.bk-empty { color: var(--ink-soft); font-style: italic; }
.bk-draft { margin-top: 22px; }

/* entry left page */
.bk-fixedpage .bk-flow { display: flex; flex-direction: column; }
.bk-entry-left { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; }
.bk-page.single .bk-entry-left { height: auto; }
.bk-plate { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bk-plate-btn { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bk-plate-btn img { display: block; max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(40, 20, 0, .45)); }
.bk-book.spread .bk-plate-btn img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.bk-book.single .bk-plate-btn { display: block; margin: 0 auto; }
.bk-book.single .bk-plate-btn img { width: auto; margin: 0 auto; }
.bk-plate-zoom { position: absolute; right: 10px; bottom: 10px; font-family: var(--display); font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: rgba(20, 12, 8, .72); color: #f1e3c3; opacity: 0; transition: opacity .2s; }
.bk-plate-btn:hover .bk-plate-zoom, .bk-plate-btn:focus-visible .bk-plate-zoom { opacity: 1; }
.bk-plate-btn:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 4px; }
.bk-artnote { font-size: .84rem; line-height: 1.45; font-style: italic; color: var(--ink-faint); text-align: center; }
.bk-noplate { flex: 1 1 auto; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px solid rgba(42,31,21,.2); border-radius: 4px; background: rgba(120, 80, 30, .06); }
.bk-noplate-t { font-family: var(--oldsc); font-size: .8rem; letter-spacing: .12em;  color: var(--ink-faint); }
.bk-entry-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bk-mark { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(42,31,21,.3); background: transparent; color: var(--ink); font: 400 1rem/1 var(--old); cursor: pointer; }
.bk-mark svg { opacity: .35; }
.bk-mark[aria-pressed="true"] { background: var(--ink); color: var(--parch); border-color: var(--ink); }
.bk-mark[aria-pressed="true"] svg { opacity: 1; color: #d9a94f; }

/* contents */
.bk-contents-left { display: flex; flex-direction: column; }
.bk-tabs { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(42,31,21,.18); padding-top: 8px; }
.bk-tab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left; padding: 8px 10px; min-height: 40px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: 500 1rem/1.3 "Fell", "Newsreader", Georgia, serif; cursor: pointer; }
.bk-tab:hover { background: rgba(122, 36, 32, .07); }
.bk-tab[aria-pressed="true"] { background: var(--ink); color: var(--parch); }
.bk-tab-n { font-family: var(--oldsc); font-size: .8rem; opacity: .7; }
.bk-marks { margin-top: 18px; border-top: 1px solid rgba(42,31,21,.18); padding-top: 12px; }
.bk-marks ul { list-style: none; padding: 0; display: grid; gap: 4px; margin-bottom: 4px; }
.bk-mode { margin-top: auto; padding-top: 14px; }
.bk-chapter { font-family: "Fraktur", var(--old) !important; font-size: 1.6rem; font-weight: 400; border-bottom: 1px solid rgba(42,31,21,.25); padding-bottom: 6px; margin-bottom: 8px; }
.bk-toc { list-style: none; padding: 0; display: grid; gap: 2px; }
.bk-toc li { display: grid; grid-template-columns: 2.1em 1fr auto; gap: 6px; align-items: baseline; padding: 5px 0; border-bottom: 1px dotted rgba(42,31,21,.22); }
.bk-toc-n { font-family: var(--oldsc); font-size: .8rem; color: var(--ink-faint); }
.bk-toc-t { display: grid; }
.bk-toc .bk-elink { font-weight: 400; text-decoration: none; }
.bk-toc .bk-elink:hover { text-decoration: underline; }
.bk-toc-c { font-size: .88rem; color: var(--ink-soft); line-height: 1.35; }
.bk-toc-mark { color: #9b6a1c; }
.bk-hit { padding-bottom: 12px; border-bottom: 1px dotted rgba(42,31,21,.22); }
.bk-hit + .bk-hit { margin-top: 12px; }
.bk-hit .bk-elink { font-weight: 400; font-size: 1.1rem; }
.bk-hit-class { font-family: var(--oldsc); font-size: .78rem; color: var(--oxblood); letter-spacing: .03em; }
.bk-hit-snip { font-size: .95rem; color: var(--ink-soft); margin-top: 2px; }

/* editor-only */
.bk-ed { border: 1px dashed #9a7d1f; background: rgba(230, 200, 80, .14); border-radius: 4px; padding: 10px 12px; }
.bk-ed-label { font-family: var(--display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #7a5d00; margin-bottom: 4px; }
.bk-ed-tag, .bk-ed-inline { font-family: var(--display); font-size: .68rem; letter-spacing: .06em; color: #7a5d00; font-style: normal; }
.bk-ed-tag { border: 1px dashed #9a7d1f; border-radius: 3px; padding: 1px 5px; }
.bk-meta { list-style: none; padding: 0; font-family: var(--display); font-size: .78rem; line-height: 1.5; color: var(--ink-soft); word-break: break-word; }
.bk-meta .bk-warn { color: #a01010; }
.bk-pending { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.bk-pending p { font-size: .9rem; color: var(--ink-soft); }

/* controls */
.bk-controls { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 8px; margin-top: 14px; }
.bk-cbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); cursor: pointer; }
.bk-cbtn:hover:not(:disabled) { background: var(--text); color: #09090b; }
.bk-cbtn:disabled { opacity: .3; cursor: default; }
.bk-cbtn[hidden] { display: none; }
.bk-cinfo { text-align: center; display: grid; gap: 2px; font-size: .9rem; color: var(--soft); min-width: 0; }
.bk-cinfo b { color: var(--text); font-weight: 500; }
.bk-cinfo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* zoom */
dialog.bk-zoom { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8, 6, 5, .96); color: #f1e3c3; display: none; }
dialog.bk-zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
dialog.bk-zoom::backdrop { background: rgba(0,0,0,.85); }
.bk-zbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
.bk-zt { font-family: "Fell", "Newsreader", Georgia, serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0; color: #f1e3c3; }
.bk-zgrp { display: flex; align-items: center; gap: 6px; }
.bk-zlvl { min-width: 3.4em; text-align: center; font-size: .88rem; color: #c9b88f; }
.bk-zview { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: zoom-in; }
.bk-zview.zoomed { cursor: grab; }
.bk-zview:focus-visible { outline: 2px solid #f1e3c3; outline-offset: -4px; }
.bk-zview img { max-width: calc(100vw - 32px); max-height: 100%; transform-origin: center; transition: transform .15s ease-out; user-select: none; }
@media (prefers-reduced-motion: reduce) { .bk-zview img { transition: none; } }
.bk-zcap { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); font-size: .88rem; line-height: 1.5; color: #c9b88f; max-width: 60rem; margin: 0 auto; text-align: center; }
.bk-zcap i { display: block; opacity: .8; }

/* single-page (mobile) */
.bk-book.single .bk-plate-btn img { max-height: 72vh; }
.bk-book.single .bk-entry-left { gap: 16px; }
.bk-book.single .bk-contents-left .bk-mode { margin-top: 12px; }
.bk-single-body { margin-top: 24px; border-top: 1px solid rgba(42,31,21,.2); padding-top: 22px; }
@media (max-width: 899px) {
  .bk-controls { grid-template-columns: auto 1fr auto; }
  .bk-settings { left: 0; right: 0; width: auto; }
  .bk-bar .bk-search { order: 5; flex-basis: 100%; }
}

/* profile galleries: concept art + four head views */
.sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sheet .g-tile .slot > img.slot-img { object-position: 50% 30%; }
.sheet .g-tile.concept .slot { aspect-ratio: 16 / 9; }
.sheet .g-tile.concept .slot > img.slot-img { object-fit: cover; }

/* characters: Judus family strip, key art */
.dark-cast .dossier.wide { grid-column: span 2; }
@media (max-width: 900px) { .dark-cast .dossier.wide { grid-column: 1 / -1; } }
.members-art { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.members-art li { display: grid; gap: 4px; align-content: start; font-size: var(--step--1); color: var(--soft); line-height: 1.4; }
.members-art img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: 10px; display: block; transition: transform .3s; }
.members-art a { display: block; border-radius: 10px; overflow: hidden; }
.members-art a:hover img { transform: scale(1.04); }
.members-art b { color: var(--text); font-weight: 500; margin-top: 4px; }
@media (max-width: 560px) { .members-art { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.key-art { margin: 0 0 var(--gap); border-radius: var(--r); overflow: hidden; position: relative; }
.key-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.key-art a:hover img { transform: scale(1.02); }
.key-art figcaption { position: absolute; left: 16px; bottom: 14px; font-size: .8rem; letter-spacing: .06em; color: rgba(255,255,255,.8); background: rgba(9,9,11,.55); padding: 5px 10px; border-radius: 999px; }
.brand img { height: 38px; }
.hero-copy .hero-logo { width: clamp(180px, 22vw, 300px); }
.site-footer img { width: 160px; }
.reader-note { margin-top: 14px; text-align: center; color: var(--soft); font-size: .92rem; }
.sheet .g-tile.concept.tall .slot { aspect-ratio: 4 / 5; }
.sheet .g-tile.concept.tall .slot > img.slot-img { object-position: 50% 30%; }
.key-art img { object-position: 50% 32%; }
