/* =====================================================================
   ZX NEPHILIM — v5 "Gothic Lore" design layer
   Loaded after site.css and hud.css. Inspired by lore hubs such as
   League of Legends Universe (structure) and Diablo IV (gothic finish).
   To go back to the v4 HUD look, delete this file's <link> on every page
   (or restore Design Backups/ZX-Website-Design-v4-HUD.zip).
   ===================================================================== */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --night: #09080a; --deep: #0f0d10;
  --card: #121014; --card-2: #19161b;
  --text: #ece4d6; --soft: #a39a8c; --faint: #6f675d;
  --gold: #c8aa6e; --gold-2: #8a6d3b; --gold-hi: #f0e6d2;
  --blood: #b3262c; --blood-2: #6e1418;
  --zred: #b3262c; --xblue: #4f7cff; --accent: #c8aa6e;
  --line: rgba(200, 170, 110, .16); --line-2: rgba(200, 170, 110, .34);
  --serif: "Cinzel", "Times New Roman", serif;
  --mono: "Cinzel", "Times New Roman", serif;
  --r: 0; --r-sm: 0;
}
::selection { background: var(--gold); color: #120e08; }

/* ---------- ambient: warm and quiet, no grid ---------- */
.hud-ambient { background: radial-gradient(60vmax 50vmax at 50% -10%, rgba(200,170,110,.07), transparent 70%), radial-gradient(50vmax 40vmax at 100% 100%, rgba(179,38,44,.08), transparent 70%), var(--night) !important; }
.ha-grid { display: none; }
.ha-stars { opacity: .35; }
.hud-frame { border-color: var(--line); }
.hf-c { border-color: var(--gold); width: 10px; height: 10px; }
.hud-rail { color: var(--faint); font: 600 10px/1 var(--serif); letter-spacing: .3em; border-right-color: var(--line); }
.hr-cross::before, .hr-cross::after { background: var(--gold); }
.hr-track i { background: var(--gold); }
.hud-loader { background: var(--night); }
.hl-inner { font-family: var(--serif); letter-spacing: .3em; }
.hl-bar i { background: var(--gold); }

@media (hover: hover) and (pointer: fine) {
  html.hud-on :is(a, button, [role=button], summary, label, select, .bk-plate-btn) { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='15' fill='%23c8aa6e' fill-opacity='.14' stroke='%23000' stroke-opacity='.45' stroke-width='3'/><circle cx='20' cy='20' r='15' fill='none' stroke='%23c8aa6e' stroke-width='1.5'/><circle cx='20' cy='20' r='2.5' fill='%23f0e6d2'/></svg>") 20 20, pointer; }
}

/* ---------- type ---------- */
.page-head h1, .section-head h2, .hx-copy h1, .profile h1, .yt-cta h2, .feature h2, .hub-head h2, .lore-name, .issue-hero h1 {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.02; color: var(--gold-hi); }
h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .03em; }
h3 { letter-spacing: .04em; }
.page-head h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem); }
.section-head h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); }
.page-head h1 .grad-text, .grad-text { color: var(--gold) !important; -webkit-text-fill-color: currentColor; background: none !important; }
.kicker, .eyebrow, .tag, .num, .counter, .meta, .sn-n, .news-date, .lx-section { font-family: var(--serif) !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.kicker, .eyebrow { color: var(--gold); font-size: .72rem; }
.kicker::before, .eyebrow::before { content: none; }
.kicker a { color: inherit; text-decoration: none; }
.lede, .section-head p { color: var(--soft); }

/* page head: centred, with the gold rule-diamond-rule ornament */
.page-head { text-align: center; border-bottom: 0; display: grid; justify-items: center; }
.page-head .lede { margin-inline: auto; }
.page-head::after { content: ""; position: static; display: block !important; width: min(520px, 80%); height: 12px; margin-top: 22px; border: 0;
  background:
    linear-gradient(var(--gold-2), var(--gold-2)) left 50% / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right 50% / calc(50% - 14px) 1px no-repeat,
    linear-gradient(45deg, transparent 42%, var(--gold) 43% 57%, transparent 58%) center / 12px 12px no-repeat,
    linear-gradient(-45deg, transparent 42%, var(--gold) 43% 57%, transparent 58%) center / 12px 12px no-repeat; }

/* section heads: centred title with ornament lines either side (like LoL "LATEST") */
main { counter-reset: none; }
main > .section > .wrap > .section-head::before, main > .section > .wrap > .rail-head > .section-head::before, main > .section > .wrap > .hub-head > .section-head::before { content: none !important; }
.section-head { text-align: center; margin-inline: auto; }
.section-head h2 { display: block; }
.section-head h2::before, .section-head h2::after { content: ""; display: inline-block; vertical-align: middle; width: clamp(28px, 7vw, 120px); height: 1px; margin: 0 .55em .12em; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.section-head h2::after { background: linear-gradient(90deg, var(--gold-2), transparent); }
.section-head p { margin-inline: auto; }
.rail-head { align-items: end; }
.rail-head .section-head, .hub-head .section-head { text-align: left; margin-inline: 0; }
.rail-head .section-head h2::before, .hub-head .section-head h2::before { content: none; }
.rail-head .section-head h2::after, .hub-head .section-head h2::after { margin-left: .55em; }

/* ---------- header + nav ---------- */
.site-header { background: rgba(9,8,10,.96) !important; border-bottom: 1px solid var(--line); }
.nav a { font: 600 .74rem/1 var(--serif) !important; letter-spacing: .18em; color: var(--soft); }
.nav a:hover { color: var(--gold-hi); }
.nav a[aria-current]:not(.nav-read) { color: var(--gold); }
.nav a[aria-current]:not(.nav-read)::before { content: ""; position: absolute; left: 50%; bottom: 2px; top: auto; width: 6px; height: 6px; margin-left: -3px; background: var(--gold); transform: rotate(45deg); }
.nav a[aria-current]:not(.nav-read)::after { content: none; }
.nav a.nav-read { clip-path: none; background: transparent !important; color: var(--gold-hi) !important; box-shadow: inset 0 0 0 1px var(--gold); padding: 12px 18px !important; }
.nav a.nav-read:hover { background: var(--gold) !important; color: #120e08 !important; }
.menu-btn { font-family: var(--serif); }

/* ---------- buttons ---------- */
.btn { clip-path: none; font: 600 .78rem/1 var(--serif) !important; letter-spacing: .2em; padding: 15px 26px !important; }
.btn:not(.ghost) { background: linear-gradient(180deg, #1e1a14, #120f0b) !important; color: var(--gold-hi) !important; box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 1px rgba(0,0,0,.6) !important; }
.btn:not(.ghost):hover { background: var(--gold) !important; color: #120e08 !important; box-shadow: 0 0 24px rgba(200,170,110,.35) !important; }
.btn.ghost { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line-2) !important; color: var(--text) !important; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--gold) !important; color: var(--gold-hi) !important; }
.tag { font-size: .62rem !important; border-color: var(--line-2) !important; color: var(--soft) !important; background: transparent !important; }
.tag.live { color: var(--gold-hi) !important; border-color: var(--blood) !important; }
.tag.live::before { background: var(--blood) !important; }
.tool { font-family: var(--serif) !important; letter-spacing: .14em; }
.tool[aria-pressed="true"], .filters .tool[aria-pressed="true"] { background: var(--gold) !important; color: #120e08 !important; }

/* ---------- surfaces: gold hairline frame instead of HUD brackets ---------- */
.panel, .dossier, .g-entry, .tribute, .yt-cta {
  background: linear-gradient(180deg, rgba(25,22,27,.9), rgba(14,12,15,.9)) !important;
  border: 1px solid var(--line) !important; box-shadow: inset 0 0 0 4px rgba(0,0,0,.35), inset 0 0 0 5px rgba(200,170,110,.07); }
.cast-card, .rail-card, .bro { border: 1px solid var(--line-2); }
.narration { border-left-color: var(--gold) !important; }
.file dt { font-family: var(--serif); color: var(--gold); letter-spacing: .18em; }

/* sub-navigation cards */
.subnav a { background: var(--card); border-color: var(--line) !important; }
.subnav a:hover { border-color: var(--gold) !important; background: #17140f; }
.subnav a::after { font-family: var(--serif); color: var(--gold-2); }
.subnav .sn-n { color: var(--gold); }
.subnav b { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; color: var(--gold-hi); }
.subnav i { font-family: var(--ui, inherit); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.subnav a[aria-current] { background: linear-gradient(180deg, #2a2216, #17120c) !important; border-color: var(--gold) !important; color: var(--gold-hi) !important; }
.subnav a[aria-current] i { color: var(--soft); } .subnav a[aria-current]::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); top: 20px; }

/* ---------- home hero ---------- */
.hx-copy h1 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1; }
.hx-copy h1 .dim { color: var(--gold); }
.hx-copy .hub-line { border-left-color: var(--gold); }
.hx-hud { font-family: var(--serif); font-weight: 600; letter-spacing: .3em; color: var(--gold-2); }
.hx-hud .tr, .hx-hud .br { display: none; }
.hub-item .num { color: var(--gold) !important; }
.hub-item b, .cast-card .cap h3, .rail-card b, .bro .who { font-family: var(--serif); letter-spacing: .06em; }
.cast-card .role, .rail-card span:last-child { font-family: var(--serif); letter-spacing: .18em; }

/* ---------- character grid: tall portrait cards with a gold name plate ---------- */
.cast { gap: 14px !important; }
.cast-card { background: #0c0b0d; overflow: hidden; }
.cast-card .art-img { transition: transform .6s ease, filter .4s; filter: saturate(.9); }
.cast-card:hover .art-img { transform: scale(1.04); filter: none; }
.cast-card .cap { text-align: center; background: linear-gradient(0deg, rgba(9,8,10,.98) 30%, rgba(9,8,10,.7) 70%, transparent) !important; padding-top: 46px !important; }
.cast-card .cap::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 10px; border: 1px solid var(--gold); transform: rotate(45deg); background: rgba(9,8,10,.9); box-shadow: inset 0 0 0 4px rgba(9,8,10,.9), inset 0 0 0 5px var(--gold-2); }
.cast-card .cap h3 { color: var(--gold-hi); font-size: clamp(1rem, .9rem + .4vw, 1.25rem); }
.cast-card .role { color: var(--gold) !important; display: block; margin-top: 6px; }
.cast-card:hover { border-color: var(--gold); }
.cast-card .mono { display: none; }

/* ---------- footer ---------- */
.footer-nav a { font: 600 .7rem/1 var(--serif); letter-spacing: .16em; }
.site-footer { border-top: 1px solid var(--line); }
.legal { font-family: inherit; }

/* =====================================================================
   CHARACTER DOSSIER PAGES (xel.html, zirous.html …)
   ===================================================================== */
.lore-hero { position: relative; min-height: min(86svh, 900px); display: grid; align-items: end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.lore-hero .lh-art { position: absolute; inset: 0; z-index: -2; background: #0c0b0d; }
.lore-hero .lh-art .lh-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; object-position: var(--pos, 50% 22%); filter: blur(28px) saturate(.8) brightness(.45); transform: scale(1.1); }
.lore-hero .lh-art .lh-fig { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: min(100%, 900px); transform: translateX(-50%); object-fit: cover; object-position: var(--pos, 50% 22%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.lore-hero .lh-art.is-ph { display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, #1c1813, #0a090b 70%); }
.lore-hero .lh-art.is-ph img { width: min(340px, 60%); height: auto; opacity: .45; object-fit: contain; }
.lore-hero .lh-art.is-ph .ph-note { position: absolute; top: 24px; right: 24px; font: 600 .66rem/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.lore-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--night) 4%, rgba(9,8,10,.55) 30%, rgba(9,8,10,0) 60%), linear-gradient(180deg, rgba(9,8,10,.6), transparent 20%); }
.lh-crumb { position: absolute; top: 22px; left: 0; right: 0; }
.lh-crumb ol { list-style: none; display: flex; gap: 10px; align-items: center; margin: 0; padding: 0; font: 600 .68rem/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.lh-crumb li + li::before { content: "›"; color: var(--gold); margin-right: 10px; }
.lh-crumb a { color: var(--gold); text-decoration: none; }
.lh-plate { text-align: center; padding-bottom: clamp(30px, 5vw, 56px); }
.lore-name { font-size: clamp(3rem, 1.6rem + 6vw, 7.4rem); margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.8); color: var(--gold); background: linear-gradient(180deg, #f0e6d2, #c8aa6e 60%, #8a6d3b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lh-rule { width: min(760px, 92%); margin: 14px auto 12px; height: 12px;
  background:
    linear-gradient(var(--gold-2), var(--gold-2)) left 50% / calc(50% - 16px) 1px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right 50% / calc(50% - 16px) 1px no-repeat,
    linear-gradient(45deg, transparent 40%, var(--gold) 41% 59%, transparent 60%) center / 12px 12px no-repeat; }
.lh-title { font: 600 clamp(.72rem, .66rem + .2vw, .86rem)/1.3 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-hi); margin: 0; }
.lh-say { margin: 10px 0 0; color: var(--soft); font-size: .92rem; }

.dossier-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); gap: 10px; margin-top: -1px; padding-block: 34px 10px; }
.dr-col { border: 1px solid var(--line); background: linear-gradient(180deg, #141115, #0e0c0f); padding: 22px 18px; }
.dr-h { font: 600 .66rem/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); text-align: center; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dr-rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dr-rel a { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.dr-rel .ring { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold); box-shadow: 0 0 0 3px #0e0c0f, 0 0 0 4px var(--gold-2); background: #1a1714; }
.dr-rel .ring img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.dr-rel b { display: block; font: 600 .86rem/1.2 var(--serif); letter-spacing: .06em; color: var(--gold-hi); }
.dr-rel span { display: block; font-size: .82rem; line-height: 1.4; color: var(--soft); }
.dr-rel a:hover b { color: var(--gold); }
.dr-main { text-align: center; padding: 30px clamp(18px, 3vw, 44px); }
.dr-quote { font: 600 clamp(1.1rem, .95rem + .6vw, 1.45rem)/1.45 var(--serif); letter-spacing: .02em; color: var(--gold-hi); margin: 0; }
.dr-quote::before { content: "\201C"; } .dr-quote::after { content: "\201D"; }
.dr-quote-by { margin: 10px 0 22px; color: var(--gold); font: 600 .78rem/1 var(--serif); letter-spacing: .16em; }
.dr-bio { text-align: left; color: var(--text); line-height: 1.75; margin: 0 auto; max-width: 60ch; border-top: 1px solid var(--line); padding-top: 22px; }
.dr-bio::first-letter { float: left; font: 600 3.4em/.8 var(--serif); color: var(--gold); padding: 6px 10px 0 0; }
.dr-main .btn { margin-top: 24px; }
.dr-facts { margin: 0; display: grid; gap: 0; }
.dr-facts div { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--line); text-align: center; }
.dr-facts div:last-child { border-bottom: 0; }
.dr-facts dt { font: 600 .62rem/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.dr-facts dd { margin: 0; font-size: .92rem; color: var(--text); }
.dr-facts .eyes { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 4px; }
.dr-facts .eyes i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.lore-body { max-width: 860px; margin-inline: auto; padding-block: 40px 20px; display: grid; gap: 46px; }
.lore-body > section > h2 { display: flex; align-items: center; gap: 18px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); color: var(--gold-hi); text-transform: uppercase; margin-bottom: 18px; }
.lore-body > section > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent); }
.lore-body .prose p { line-height: 1.8; }
.lore-body .abilities li, .lore-body .ties li { border-color: var(--line) !important; }
.lore-body .abilities b, .lore-body .ties a { font-family: var(--serif); letter-spacing: .05em; color: var(--gold-hi); }
.lore-body .char-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.lore-body .char-nav a { font: 600 .74rem/1.3 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.lore-body .char-nav a:hover { color: var(--gold-hi); }

@media (max-width: 900px) {
  .lore-hero { min-height: 72svh; }
  .lore-hero .lh-art .lh-fig { max-width: none; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .dossier-row { grid-template-columns: 1fr; }
  .dr-main { order: -1; }
  .dr-rel { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .dr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .dr-facts div:nth-last-child(2) { border-bottom: 0; }
}

/* =====================================================================
   READ PAGE: current-issue banner + shelf
   ===================================================================== */
.issue-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); min-height: clamp(320px, 42vw, 520px); display: grid; align-items: center; }
.issue-hero .ih-art { position: absolute; inset: 0; z-index: -2; }
.issue-hero .ih-art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); }
.issue-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 10%, rgba(9,8,10,.75) 42%, rgba(9,8,10,.15) 80%), linear-gradient(0deg, var(--night), transparent 30%); }
.issue-hero .wrap { display: grid; gap: 16px; justify-items: start; padding-block: 48px; }
.issue-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.6rem); max-width: 14ch; margin: 0; }
.issue-hero p.dek { color: var(--text); max-width: 46ch; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.reader-head h1 { font-family: var(--serif); text-transform: uppercase; letter-spacing: .04em; color: var(--gold-hi); }
.shelf .issue-card h3 { font-family: var(--serif); letter-spacing: .04em; color: var(--gold-hi); }
.shelf .issue-card .slot { border: 1px solid var(--line-2); }
.shelf .issue-card:hover .slot { border-color: var(--gold); }
.reader .stage { border: 1px solid var(--line) !important; }
.scrub { accent-color: var(--gold); }

/* ---------- misc pages ---------- */
.origin .when { font-family: var(--serif); color: var(--gold); letter-spacing: .12em; }
.origin .now .dot { background: var(--gold) !important; }
.g-entry h3, .g-entry b { font-family: var(--serif); }
.yt-cta h2 { color: var(--gold-hi); }
.dr-quote.narr { font-family: var(--ui, inherit); font-weight: 300; font-style: italic; letter-spacing: 0; color: var(--text); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }
.dr-quote.narr::before, .dr-quote.narr::after { content: none; }
.lore-hero .lh-art.is-ph img { opacity: .7; }
.lore-hero .lh-art.is-ph .ph-note { color: var(--gold); }
.reader-page { padding-top: 0 !important; }

/* ---------- home: latest comic pages ---------- */
.pg-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pg-card { display: grid; gap: 10px; text-decoration: none; color: var(--text); }
.pg-img { display: block; aspect-ratio: 885 / 1254; overflow: hidden; border: 1px solid var(--line-2); background: #0c0b0d; }
.pg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pg-card:hover .pg-img { border-color: var(--gold); }
.pg-card:hover .pg-img img { transform: scale(1.03); }
.pg-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pg-cap b { font: 600 .8rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.pg-cap i { font: 600 .62rem/1 var(--serif); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--night); background: var(--gold); padding: 4px 7px; }
@media (max-width: 760px) { .pg-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rail-card .mono { display: none; }

/* =====================================================================
   LINKED LORE (js/linked-lore.js)
   ===================================================================== */
.ll-term { all: unset; cursor: help; color: inherit; border-bottom: 1px dotted currentColor; border-bottom-color: color-mix(in srgb, var(--gold) 70%, transparent); transition: color .15s, border-color .15s; }
.ll-term:hover, .ll-term[aria-expanded="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); border-bottom-style: solid; }
.ll-term:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.bk-page .ll-term { border-bottom-color: rgba(110, 31, 23, .6); }
.bk-page .ll-term:hover, .bk-page .ll-term[aria-expanded="true"] { color: var(--oxblood, #6e1f17); }
.ll-pop { position: absolute; z-index: 400; max-width: calc(100vw - 24px); display: block !important; grid-template-columns: none !important; }
.ll-pop[hidden] { display: none !important; }
.ll-pop .ll-in { position: relative; background: linear-gradient(180deg, #1a1612, #0f0d0f); border: 1px solid var(--gold-2); box-shadow: 0 24px 60px -20px #000, inset 0 0 0 4px rgba(0,0,0,.35), inset 0 0 0 5px rgba(200,170,110,.12); padding: 18px 18px 16px; color: var(--text); font-family: var(--ui, inherit); }
.ll-media { margin: -18px -18px 14px; height: 120px; overflow: hidden; border-bottom: 1px solid var(--line); }
.ll-media[hidden] { display: none; }
.ll-media img { width: 100%; height: 100%; object-fit: cover; }
.ll-k { margin: 0 0 4px; font: 600 .6rem/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.ll-h { margin: 0 0 8px; font: 600 1.15rem/1.2 var(--serif); letter-spacing: .04em; color: var(--gold-hi); padding-right: 26px; }
.ll-d { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--text); }
.ll-rel { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ll-rel a { color: var(--gold-hi); text-decoration: none; font-size: .92rem; }
.ll-rel a::before { content: "\25C6"; color: var(--gold); font-size: .6em; margin-right: 8px; vertical-align: .15em; }
.ll-rel a:hover { color: var(--gold); }
.ll-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ll-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font: 600 .66rem/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; color: #120e08; background: var(--gold); border: 1px solid var(--gold); }
.ll-btn.ghost { background: transparent; color: var(--gold-hi); border-color: var(--line-2); }
.ll-btn:hover { filter: brightness(1.1); } .ll-btn.ghost:hover { border-color: var(--gold); }
.ll-btn[hidden] { display: none; }
.ll-btn:focus-visible, .ll-x:focus-visible, .ll-rel a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.ll-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--soft); font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.ll-media:not([hidden]) ~ .ll-x, .ll-x:first-child { color: var(--gold-hi); text-shadow: 0 1px 4px #000; }
.ll-x:hover { color: var(--gold-hi); }
/* phones: bottom sheet */
.ll-scrim { position: fixed; inset: 0; z-index: 399; background: rgba(0,0,0,.35); }
.ll-scrim[hidden] { display: none; }
.ll-pop.sheet { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; max-width: none; max-height: 70vh; overflow: auto; animation: llUp .22s ease-out; }
.ll-pop.sheet .ll-in { border-left: 0; border-right: 0; border-bottom: 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.ll-pop.sheet .ll-in::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -8px auto 12px; }
.ll-pop.sheet .ll-media { margin-top: 0; height: 110px; }
@keyframes llUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ll-pop.sheet { animation: none; } }
.g-seen { margin: 8px 0 0; font-size: .85rem; color: var(--soft); }
.g-seen b { font: 600 .62rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.g-seen a { color: var(--gold-hi); }

/* =====================================================================
   THREE ENERGIES (js/energies.js)
   ===================================================================== */
.en-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.en-fig { display: grid; gap: 14px; justify-items: center; }
.en-fig svg { width: 100%; max-width: 460px; overflow: visible; }
.en-node { cursor: pointer; outline: none; }
.en-node > circle, .en-node text { transition: opacity .5s ease; }
.en-node .ring { fill: none; stroke: rgba(200,170,110,.35); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s; }
.en-node text { fill: var(--gold-hi); font: 600 13px var(--serif); letter-spacing: .2em; text-anchor: middle; pointer-events: none; }
.en-node:hover .ring, .en-node:focus-visible .ring, .en-node.on .ring { stroke: var(--gold); stroke-width: 2.2; }
.en-node:focus-visible .ring { stroke-dasharray: 4 4; }
.n-angel, .n-demonic, .n-human, .n-centre { transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .9s, opacity .9s; }
.en-wrap.raw .n-angel { transform: translate(0, -34px); }
.en-wrap.raw .n-demonic { transform: translate(-30px, 18px); }
.en-wrap.raw .n-human { transform: translate(30px, 18px); }
.en-wrap.raw .en-node:not(.n-centre) > circle:first-child { opacity: .55; }
.en-wrap.raw .n-centre { opacity: .45; }
.en-wrap.raw .n-centre .core { transform-origin: 210px 212px; transform: scale(.6); }
.n-centre .core { transition: transform .9s; }
.n-centre .dot { fill: #fff6dc; }
.n-centre text { font-size: 11px; fill: #120e08; letter-spacing: .14em; }
.en-wrap.raw .n-centre text { fill: var(--gold-hi); }
.en-wrap.syn .n-angel, .en-wrap.syn .n-demonic, .en-wrap.syn .n-human { filter: drop-shadow(0 0 14px rgba(200,170,110,.35)); }
.en-wrap.syn .n-centre { filter: drop-shadow(0 0 22px rgba(255,236,190,.8)); }
.en-wrap.syn .n-centre .core { transform-origin: 210px 212px; transform: scale(1.35); animation: enPulse 2.4s ease-in-out infinite; }
.en-wrap.syn .n-centre .dot { r: 16; }
@keyframes enPulse { 50% { transform: scale(1.5); } }
.en-links path { fill: none; stroke: rgba(200,170,110,.18); stroke-width: 1; stroke-dasharray: 3 7; transition: stroke .9s, stroke-width .9s; }
.en-wrap.syn .en-links path { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 10 6; animation: enFlow 1.6s linear infinite; }
@keyframes enFlow { to { stroke-dashoffset: -32; } }
.en-toggle { display: inline-flex; border: 1px solid var(--line-2); }
.en-toggle button { min-height: 42px; padding: 0 18px; background: transparent; border: 0; color: var(--soft); font: 600 .7rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.en-toggle button[aria-pressed="true"] { background: var(--gold); color: #120e08; }
.en-toggle button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.en-state { margin: 0; text-align: center; color: var(--soft); font-size: .9rem; max-width: 40ch; min-height: 2.8em; }
.en-panel { border: 1px solid var(--line); background: linear-gradient(180deg, #141115, #0e0c0f); padding: clamp(20px, 2.6vw, 30px); min-height: 320px; }
.en-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: var(--gold-hi); text-transform: uppercase; margin: 4px 0 12px; border-left: 3px solid var(--c, var(--gold)); padding-left: 12px; }
.en-points { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; line-height: 1.6; }
.en-points li::marker { color: var(--gold); }
.en-dl { margin: 16px 0 0; display: grid; gap: 0; }
.en-dl div { display: grid; grid-template-columns: 9em 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.en-dl dt { font: 600 .62rem/1.6 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.en-dl dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.en-sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.en-scale { color: var(--soft); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.en-hint { color: var(--soft); font-size: .85rem; font-style: italic; }
.en-bios { margin: 16px 0 0; font-size: .9rem; } .en-bios b { font: 600 .62rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.en-bios a { color: var(--gold-hi); } .en-soon { color: var(--faint); }
@media (max-width: 860px) { .en-wrap { grid-template-columns: 1fr; } .en-panel { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .en-wrap .n-centre .core, .en-links path { animation: none !important; } }

/* =====================================================================
   BESTIARY COLLECTION (js/bestiary-codex.js)
   ===================================================================== */
.bx-tabs { display: flex; justify-content: center; gap: 0; margin: 0 auto 26px; border: 1px solid var(--line-2); width: max-content; max-width: 100%; }
.bx-tabs button { min-height: 46px; padding: 0 22px; background: transparent; border: 0; color: var(--soft); font: 600 .74rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.bx-tabs button[aria-selected="true"] { background: var(--gold); color: #120e08; }
.bx-tabs button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.bx-top { display: grid; gap: 12px; justify-items: center; margin-bottom: 22px; }
.bx-count { margin: 0; font: 600 .8rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.bx-count b { color: var(--gold-hi); font-size: 1.1em; }
.bx-bar { width: min(420px, 100%); height: 4px; background: rgba(200,170,110,.15); }
.bx-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.bx-chips { justify-content: center; }
.bx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bx-card { position: relative; aspect-ratio: 5 / 7.4; perspective: 1200px; }
.bx-inner { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.bx-card.open .bx-inner { transform: rotateY(180deg); }
.bx-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--line-2); background: #0e0c0f; overflow: hidden; display: flex; flex-direction: column; }
.bx-card:hover .bx-front, .bx-card:focus-within .bx-front { border-color: var(--gold); }
.bx-art { flex: 1 1 auto; min-height: 0; position: relative; background: radial-gradient(70% 60% at 50% 40%, #241e16, #0b0a0c 75%); }
.bx-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bx-art.sil { display: grid; place-items: center; }
.bx-sil { width: 46%; aspect-ratio: 3 / 4; display: grid; place-items: center; font: 600 2.4rem/1 var(--serif); color: var(--gold-2); border-radius: 50% 50% 18% 18% / 40% 40% 18% 18%; background: radial-gradient(60% 50% at 50% 30%, #2a2318, #141114); box-shadow: inset 0 0 0 1px rgba(200,170,110,.25); }
.bx-cap { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #151216, #0d0b0e); }
.bx-cat { margin: 0 0 4px; font: 600 .58rem/1.3 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bx-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.2; color: var(--gold-hi); letter-spacing: .04em; }
.bx-tier { margin: 4px 0 0; color: var(--soft); font-size: .8rem; line-height: 1.35; }
.bx-danger { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.bx-dl { font: 600 .56rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.bx-pips { display: inline-flex; gap: 3px; }
.bx-pips i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold-2); }
.bx-pips i.on { background: var(--blood); border-color: #e0545a; }
.bx-unr { font-size: .7rem; color: var(--faint); font-style: italic; }
.bx-back { transform: rotateY(180deg); padding: 16px 16px 14px; overflow-y: auto; background: linear-gradient(180deg, #19150f, #0e0c0f); }
.bx-back h3 { font-size: 1.1rem; margin-bottom: 8px; }
.bx-ov { margin: 0 0 10px; font-size: .86rem; line-height: 1.55; }
.bx-dl2 { margin: 0; display: grid; gap: 8px; }
.bx-dl2 div { border-top: 1px solid var(--line); padding-top: 7px; }
.bx-dl2 dt { font: 600 .56rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.bx-dl2 dd { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--text); }
.bx-dl2 a { color: var(--gold-hi); }
.bx-note { margin: 10px 0 0; padding: 8px 10px; border-left: 2px solid var(--blood); background: rgba(179,38,44,.08); font-size: .78rem; line-height: 1.5; color: var(--soft); }
.bx-book { margin-top: 12px; min-height: 36px; padding: 0 12px; background: transparent; border: 1px solid var(--line-2); color: var(--gold-hi); font: 600 .6rem/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; position: relative; z-index: 3; }
.bx-book:hover { border-color: var(--gold); }
.bx-hit { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; cursor: pointer; }
.bx-hit:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.bx-card.open .bx-hit { inset: 6px 6px auto auto; width: 34px; height: 34px; }
.bx-card.open .bx-hit::after { content: "\00D7"; color: var(--gold-hi); font-size: 1.4rem; line-height: 34px; }
.bx-card.open .bx-back { z-index: 1; }
.bx-card.locked .bx-front { border-style: dashed; border-color: var(--line-2); }
.bx-card.locked .bx-hit { cursor: default; }
.bx-card.locked h3 { color: var(--soft); }
.bx-shown { text-align: center; margin-top: 16px; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .bx-inner { transition: none; } }
@media (max-width: 520px) { .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .bx-card { aspect-ratio: 5 / 8.4; } .bx-back { padding: 12px; } }
.bx-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bx-card { aspect-ratio: 5 / 8; }
.bx-back .bx-cat, .bx-back h3 { padding-right: 34px; }

/* =====================================================================
   RELATIONSHIP WEB (js/web.js)
   ===================================================================== */
.web-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.web-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.web-stage { position: relative; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 45%, #17130f, #0a090b 80%); overflow: hidden; touch-action: none; }
.web-stage svg { display: block; width: 100%; height: auto; cursor: grab; user-select: none; }
.web-link { cursor: pointer; outline: none; }
.web-link .hit { stroke: transparent; stroke-width: 18; }
.web-link .vis { stroke-width: 2.4; opacity: .75; transition: opacity .3s, stroke-width .3s; }
.web-link.k-rival .vis { stroke-dasharray: 8 6; }
.web-link.k-romance .vis { stroke-dasharray: 2 6; stroke-linecap: round; stroke-width: 3; }
.web-link.k-mentor .vis { stroke-dasharray: 14 4 2 4; }
.web-link:hover .vis, .web-link:focus-visible .vis { stroke-width: 4; opacity: 1; }
.web-node { cursor: pointer; outline: none; }
.web-node .halo { fill: none; stroke: transparent; stroke-width: 3; transition: stroke .3s; }
.web-node .disc { fill: #1a1611; }
.web-node .ring { fill: none; stroke: var(--gold); stroke-width: 2; }
.web-node .sil { fill: var(--gold-2); font: 600 22px var(--serif); text-anchor: middle; letter-spacing: .1em; }
.web-node .lbl { fill: var(--gold-hi); font: 600 15px var(--serif); text-anchor: middle; letter-spacing: .08em; paint-order: stroke; stroke: #0a090b; stroke-width: 4px; }
.web-node.locked .ring { stroke: var(--line-2); stroke-dasharray: 4 4; }
.web-node.locked .lbl { fill: var(--faint); }
.web-node:hover .halo, .web-node:focus-visible .halo, .web-node.lit .halo { stroke: var(--gold-hi); }
.web-node, .web-link { transition: opacity .35s; }
#web-root.focus .web-node:not(.lit), #web-root.focus .web-link:not(.lit) { opacity: .14; }
.web-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 6px; }
.web-zoom button { width: 38px; height: 38px; border: 1px solid var(--line-2); background: rgba(9,8,10,.85); color: var(--gold-hi); font-size: 1.2rem; cursor: pointer; }
.web-zoom button:focus-visible { outline: 2px solid var(--gold); }
.web-panel { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, #141115, #0e0c0f); padding: 20px; align-self: start; }
.web-panel h3 { color: var(--gold-hi); text-transform: uppercase; margin: 4px 0 12px; font-size: 1.3rem; padding-right: 30px; }
.web-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--soft); font-size: 1.4rem; cursor: pointer; }
.web-x:focus-visible { outline: 2px solid var(--gold); }
.web-rel { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.web-rel li { border-left: 3px solid var(--c); padding-left: 12px; }
.web-rel b { font-family: var(--serif); letter-spacing: .05em; color: var(--gold-hi); margin-right: 8px; }
.web-k { font: 600 .56rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.web-rel p { margin: 4px 0 0; font-size: .9rem; line-height: 1.5; color: var(--text); }
.web-pair { border-left: 3px solid var(--c); padding-left: 12px; line-height: 1.6; }
.web-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 0 0; margin: 0; font-size: .82rem; color: var(--soft); }
.web-legend li { display: flex; align-items: center; gap: 8px; }
.web-legend i { width: 30px; height: 0; border-top: 2.4px solid var(--c); }
.web-legend i.k-rival { border-top-style: dashed; } .web-legend i.k-romance { border-top-style: dotted; border-top-width: 3px; } .web-legend i.k-mentor { border-top-style: double; border-top-width: 4px; }
@media (max-width: 860px) {
  .web-shell { grid-template-columns: 1fr; }
  .web-panel.sheet.has { position: fixed; left: 0; right: 0; bottom: 0; z-index: 380; max-height: 60vh; overflow: auto; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: 0 -20px 50px -10px #000; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); animation: llUp .22s ease-out; }
}

/* =====================================================================
   WHICH NEPHILIM ARE YOU? (js/nephilim-quiz.js)
   ===================================================================== */
.pq { max-width: 880px; margin: 0 auto; }
.pq-intro, .pq-q, .pq-result { border: 1px solid var(--line); background: linear-gradient(180deg, #141115, #0e0c0f); padding: clamp(22px, 4vw, 44px); text-align: center; }
.pq-intro h2, .pq-q h2, .pq-result > h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); color: var(--gold-hi); text-transform: uppercase; margin: 8px 0 14px; outline: none; }
.pq-intro .lede { margin: 0 auto 24px; max-width: 40ch; }
.pq-bar { height: 4px; background: rgba(200,170,110,.15); margin-bottom: 18px; }
.pq-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .4s ease; }
.pq-n { margin: 0; font: 600 .66rem/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.pq-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; text-align: left; }
.pq-a { min-height: 58px; padding: 14px 18px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.35; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.pq-a:hover { border-color: var(--gold); background: rgba(200,170,110,.08); }
.pq-a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.pq-back { margin-top: 18px; background: none; border: 0; color: var(--soft); font: 600 .7rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; min-height: 40px; }
.pq-back:hover { color: var(--gold-hi); }
.pq-cards { display: grid; gap: 16px; margin-top: 10px; text-align: left; }
.pq-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pq-card { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); border: 1px solid var(--gold-2); background: #0c0b0d; }
.pq-cards.two .pq-card { grid-template-columns: 1fr; }
.pq-por { aspect-ratio: 4 / 5; overflow: hidden; border-right: 1px solid var(--line); }
.pq-cards.two .pq-por { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 11; }
.pq-por img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.pq-body { padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.pq-body h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: var(--gold-hi); text-transform: uppercase; }
.pq-text { margin: 0; line-height: 1.6; }
.pq-power { margin: 0; color: var(--soft); font-size: .92rem; }
.pq-power b, .pq-energy b { font: 600 .6rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.pq-energy { display: flex; align-items: center; gap: 12px; }
.pq-energy p { margin: 0; font-size: .92rem; }
.pq-en { width: 74px; height: auto; flex: none; }
.pq-en circle { fill: rgba(200,170,110,.04); stroke: rgba(200,170,110,.3); stroke-width: 1.5; }
.pq-en circle.angel.on { fill: rgba(127,183,255,.35); stroke: #7fb7ff; }
.pq-en circle.demonic.on { fill: rgba(200,50,58,.35); stroke: #c8323a; }
.pq-en circle.human.on { fill: rgba(224,154,74,.35); stroke: #e09a4a; }
.pq-en circle.core { fill: #2a2318; stroke: var(--gold-2); }
.pq-en circle.core.on { fill: #fff6dc; stroke: var(--gold); filter: drop-shadow(0 0 6px #c8aa6e); }
.pq-soon { opacity: .55; cursor: default; }
.pq-row { justify-content: center; margin-top: 22px; }
.pq-note { min-height: 1.4em; margin: 10px 0 0; }
.pq-more { margin: 14px 0 0; color: var(--soft); font-size: .9rem; } .pq-more a { color: var(--gold-hi); }
@media (max-width: 640px) { .pq-answers, .pq-cards.two { grid-template-columns: 1fr; } .pq-card { grid-template-columns: 1fr; } .pq-por { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 1 / 1; } }
.pq-hero h2 { font-family: var(--serif); text-transform: uppercase; color: var(--gold-hi); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.web-panel { display: block !important; grid-template-columns: none !important; top: auto; }
@media (max-width: 860px) { .web-panel.sheet.has { top: auto !important; } }
/* characters grid: the present-day cast in a row of three, the prologue pair below */
.cast .cast-card.lead:is([data-c="xel"], [data-c="max"], [data-c="isaac"]) { grid-column: span 4; aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .cast .cast-card.lead { grid-column: 1 / -1 !important; } }
.shelf .issue-card.current .slot { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.shelf .issue-card.current h3::after { content: " \00b7 Reading"; font-family: var(--sans, inherit); font-size: .7em; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #aaa); }
/* new logo (Oct 30): squarer, so a little taller in the header */
.brand img { height: 48px !important; width: auto !important; }
.site-footer img[src*="logo"] { width: 130px !important; }

/* ============ Comic page: shelf first (Oct 30) ============ */
.comic-shelf { padding-top: clamp(28px, 4vw, 56px); }
.shelf-head { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.shelf-head h1 { font-family: var(--serif); color: var(--gold-hi); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); letter-spacing: .04em; text-transform: uppercase; }
.webtoon-link { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border: 1px solid var(--line-2); background: rgba(0, 220, 100, .06); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.webtoon-link:hover, .webtoon-link:focus-visible { border-color: #00dc64; background: rgba(0, 220, 100, .12); }
.webtoon-link .wt-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #00dc64; color: #fff; font: 800 1.2rem/1 var(--sans, system-ui); }
.webtoon-link b { display: block; font-family: var(--serif); letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.webtoon-link small { display: block; color: var(--soft); font-size: .8rem; }
.webtoon-link .wt-arrow { color: #00dc64; font-size: 1.2rem; }
.comic-shelf .shelf { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 26px; }
.comic-shelf .issue-card { gap: 10px; padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .2s, transform .2s; }
.comic-shelf .issue-card:hover, .comic-shelf .issue-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); }
.comic-shelf .issue-card .slot { aspect-ratio: 202 / 142; border: 0 !important; transform: none !important; box-shadow: none !important; opacity: 1 !important; position: relative; overflow: hidden; }
.comic-shelf .issue-card .slot img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.comic-shelf .issue-card h3 { font-size: 1.05rem; }
.comic-shelf .issue-card p.muted { font-size: .92rem; line-height: 1.5; }
.comic-shelf .issue-card.current { border-color: var(--gold); }
.comic-shelf .issue-card.current h3::after { content: none; }
.read-badge { position: absolute; top: 10px; right: 10px; padding: 5px 10px; background: rgba(9,8,10,.88); border: 1px solid var(--gold); color: var(--gold-hi); font-family: var(--serif); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.issue-card.is-read .slot img { filter: saturate(.75); }
.issue-progress { display: grid; gap: 6px; }
.ip-bar { height: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); overflow: hidden; }
.ip-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.ip-text { font-size: .8rem; color: var(--soft); letter-spacing: .04em; }
.ip-cta { font-family: var(--serif); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
@media (max-width: 560px) { .comic-shelf .shelf { grid-template-columns: minmax(0, 1fr); } .webtoon-link { width: 100%; } }
.reader-title { font-family: var(--serif); color: var(--gold-hi); font-size: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }
.reader-end { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--gold-2); background: rgba(200,170,110,.06); display: grid; gap: 14px; }
.reader-end[hidden] { display: none; }

/* ============ Learn as you read: veils ============ */
[data-at] { position: relative; }
.zx-spoil > :not(.zx-veil) { filter: blur(14px) saturate(.4); opacity: .55; pointer-events: none; user-select: none; }
.zx-spoil { overflow: hidden; }
.zx-veil { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 14px; text-align: center; background: linear-gradient(180deg, rgba(9,8,10,.55), rgba(9,8,10,.82)); border: 1px dashed var(--line-2); }
.zx-veil-k { font-family: var(--serif); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-size: .78rem; }
.zx-veil-at { color: var(--text); font-size: .9rem; }
.zx-veil-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.zx-veil-btn { padding: 7px 12px; font: inherit; font-size: .8rem; letter-spacing: .06em; border: 1px solid var(--gold); background: var(--gold); color: #120f0a; text-decoration: none; cursor: pointer; min-height: 36px; }
.zx-veil-btn.ghost { background: transparent; color: var(--gold-hi); }
.zx-veil-btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
li.zx-spoil, .rules li.zx-spoil { min-height: 120px; }
.g-entry.zx-spoil { min-height: 150px; }
.zx-page-spoil { filter: blur(18px); pointer-events: none; user-select: none; max-height: 100vh; overflow: hidden; }
.zx-page-veil { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); padding: 28px; background: #0f0d10; border: 1px solid var(--gold); box-shadow: 0 30px 80px rgba(0,0,0,.7); display: grid; gap: 12px; }
.zx-page-veil h2 { font-family: var(--serif); color: var(--gold-hi); font-size: 1.6rem; }
.zx-sbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px 18px; margin: 18px 0 8px; border: 1px solid var(--line-2); background: rgba(200,170,110,.05); }
.zx-sbar p { margin: 0; max-width: 62ch; font-size: .95rem; color: var(--soft); }
.zx-sbar b { color: var(--gold-hi); font-weight: 600; }
.zx-sbar-acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .zx-spoil > :not(.zx-veil) { filter: blur(14px); } }

/* ============ Home: background slideshow ============ */
.hx-show { overflow: hidden; }
.hx-show .hx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hx-show .hx-slide.on { opacity: .9; animation: hxZoom 9s ease-out forwards; }
.hx-show.paused .hx-slide.on { animation-play-state: paused; }
@keyframes hxZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hx-show::after { z-index: 1; }
.hx-dots { position: absolute; z-index: 6; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 3vw, 36px); display: flex; align-items: center; gap: 4px; }
.hx-dot, .hx-pause { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; color: var(--gold-hi); }
.hx-dot::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); background: transparent; transition: background .2s; }
.hx-dot.on::before { background: var(--gold); }
.hx-pause { font-size: .7rem; border: 1px solid var(--line-2); margin-left: 6px; }
.hx-dot:focus-visible, .hx-pause:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hx-show .hx-slide { transition: opacity 2.5s ease; } .hx-show .hx-slide.on { animation: none; transform: none; } }
@media (max-width: 760px) { .hx-show .hx-slide.on { opacity: .5; } .hx-dots { bottom: 10px; } }
.shelf-head .section-head { text-align: left; justify-items: start; margin: 0; max-width: 46rem; }
.shelf-head .section-head p { margin-inline: 0; }
.zx-inner { display: block; }
p.zx-spoil { min-height: 130px; }

/* ============ Vertical strip reader (Nov 2026) ============ */
.strip-reader { display: block; padding-top: clamp(20px, 3vw, 40px); }
.strip-reader .reader-head { margin-bottom: 18px; }
.strip { width: min(760px, 100%); margin: 0 auto; display: flex; flex-direction: column; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.5); outline: none; }
.strip-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; background: #0c0b0d; }
.strip-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.strip-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .15s linear; }
.strip-bar { position: sticky; bottom: 12px; z-index: 30; width: min(760px, calc(100% - 24px)); margin: 10px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px; background: rgba(9,8,10,.88); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: none; }
.strip-reader.in-strip .strip-bar { opacity: 1; transform: none; pointer-events: auto; }
.strip-bar .counter { font-family: var(--serif); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--gold-hi); }
.strip-bar .tool { min-height: 40px; }
.strip-reader .reader-end { width: min(760px, 100%); margin: 24px auto 0; }
.strip-thumbs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; }
.strip-thumbs .thumb { display: grid; gap: 6px; padding: 4px; background: none; border: 1px solid var(--line); cursor: pointer; color: var(--text); }
.strip-thumbs .thumb img { width: 100%; aspect-ratio: 1 / 1.4; object-fit: cover; object-position: top; display: block; }
.strip-thumbs .thumb.on { border-color: var(--gold); }
.strip-thumbs .thumb span { font-size: .8rem; }
@media (max-width: 760px) { .strip { box-shadow: none; } .strip-reader > .wrap:first-child { padding-inline: 16px; } }
.pg-img img, .feature .cover .slot-img { object-position: 50% 0; }

/* Home: "the world unlocks as you read" steps */
.unlock-sec { padding-top: clamp(36px, 5vw, 64px); }
.unlock-steps { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.unlock-steps li { counter-increment: st; padding: 12px 14px; border: 1px solid var(--line-2); background: rgba(9,8,10,.55); display: grid; gap: 4px; }
.unlock-steps li::before { content: "0" counter(st); font-family: var(--serif); color: var(--gold); font-size: .8rem; letter-spacing: .14em; }
.unlock-steps b { font-family: var(--serif); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); }
.unlock-steps span { font-size: .9rem; color: var(--soft); line-height: 1.45; }
@media (max-width: 640px) { .unlock-steps { grid-template-columns: minmax(0, 1fr); } }
.news-img { object-position: 50% 0; }

/* ============ "I've read up to..." chooser + first-visit welcome ============ */
.zx-upto { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.zx-upto-k { font-size: .85rem; color: var(--soft); }
.zx-upto-row { display: flex; flex-wrap: wrap; gap: 8px; }
.zx-upto-btn { min-height: 40px; padding: 8px 14px; font: inherit; font-size: .85rem; letter-spacing: .04em; color: var(--gold-hi); background: transparent; border: 1px solid var(--gold-2); cursor: pointer; }
.zx-upto-btn:hover { border-color: var(--gold); background: rgba(200,170,110,.08); }
.zx-upto-btn.on { background: var(--gold); color: #120f0a; border-color: var(--gold); }
.zx-upto-btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.lore-body > section.zx-spoil, .dossier-row.zx-spoil { min-height: 220px; }
html.zx-locked, html.zx-locked body { overflow: hidden; }
.zx-welcome { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; background: rgba(6,5,7,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: zxFade .25s ease; }
.zx-welcome-box { width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 14px; padding: 30px 28px; background: #0f0d10; border: 1px solid var(--gold); box-shadow: 0 30px 90px rgba(0,0,0,.75); }
.zx-welcome-box h2 { font-family: var(--serif); color: var(--gold-hi); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.15; margin: 0; }
.zx-welcome-box p { margin: 0; }
.zx-welcome-box .zx-upto { padding-top: 12px; }
.zx-welcome-box > .btn { justify-self: start; }
@keyframes zxFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zx-welcome { animation: none; } }
@media (max-width: 480px) { .zx-welcome-box { padding: 22px 18px; } .zx-welcome-box > .btn { justify-self: stretch; text-align: center; } }
.rules.faces { margin-top: 18px; } .rules.faces a { color: var(--gold-hi); text-decoration: none; } .rules.faces a:hover { text-decoration: underline; }
