@font-face { font-family: "WNU"; src: url("/static/fonts/WNU.woff2?v=1") format("woff2"); font-weight: 400 900; font-display: swap; }
/* Wolf Nation Universe: design system (v0.1, stand-in until the custom font and art exist) */
:root {
  --bg: #07080d; --bg-2: #0d1018; --panel: #121623; --line: #232a3b;
  --text: #ebe7e0; --muted: #a3a7b3; --silver: #d6dbe4;
  --star: #e11d48;
  --nation: #2fbf71; --renova: #e8a27c; --dragon: #e02d2d; --chimera: #8b5cf6; --chimera-2: #22d3ee; --council: #c9d1d9;
  --threat: #cfe3ff;
  --portal: var(--nation); --portal-accent: var(--silver);
  --braid: linear-gradient(90deg, #2fbf71, #ffc94d 25%, #e02d2d 40%, #8b5cf6 60%, #22d3ee 75%, #e8a27c 90%, #2fbf71);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --title: "WNU", "Cinzel", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --r: 14px; --gutter: clamp(16px, 4vw, 48px); --max: 1180px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--portal-accent); }
a:hover { color: #fff; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.muted { color: var(--muted); } .small { font-size: .82rem; }

/* type */
.display, .display-sm, .hero-title, .logo, .eyebrow, .btn, .portal-card-name { font-family: var(--display); letter-spacing: .06em; }
.display { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; margin: .2em 0; font-weight: 700; text-transform: uppercase; }
.display-sm { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.15; margin: .3em 0; font-weight: 700; text-transform: uppercase; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .28em; color: var(--portal); margin: 0; }
.tagline { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--silver); font-style: italic; max-width: 46ch; }
.prose { max-width: 65ch; } .prose p { margin: 0 0 1em; }
h3 { font-family: var(--display); letter-spacing: .05em; text-transform: uppercase; font-size: 1rem; color: var(--portal); margin: 0 0 .4em; }
code { font-size: .9em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter);
  background: rgba(7, 8, 13, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { text-decoration: none; color: var(--silver); font-weight: 700; text-transform: uppercase; font-size: 1rem; white-space: nowrap; }
.logo span { color: var(--muted); font-weight: 500; letter-spacing: .3em; font-size: .78em; }
.logo-star { color: var(--star); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
/* the Wolf Nation Universe crest is the logo (Edith, 2026-11-18, gold) */
.logo-crest { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(232,185,104,.45)); transition: transform .3s, filter .3s; }
.logo:hover .logo-crest { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(232,185,104,.85)); }
/* the opening screen: the crest is the title and the way in */
.crest-btn { display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity 1.4s, transform 1.4s; }
.hero.stage-1 .crest-btn { opacity: 1; transform: none; }
.crest-btn .crest { display: block; width: min(46vh, 420px, 78vw); height: auto;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.9)) drop-shadow(0 0 26px rgba(232,185,104,.32)); transition: transform .4s, filter .4s; }
.crest-btn:hover .crest, .crest-btn:focus-visible .crest { transform: scale(1.03); filter: drop-shadow(0 6px 30px rgba(0,0,0,.9)) drop-shadow(0 0 38px rgba(232,185,104,.6)); }
.crest-btn:focus-visible { outline: none; }
.hero .headline { margin: .7em auto .9em; }
.begin .begin-label { display: inline-block; padding: 10px 22px; border-radius: 999px; color: #f6e2b3; border: 1px solid rgba(232,185,104,.7);
  background: rgba(10,8,5,.55); box-shadow: 0 0 26px -4px rgba(232,185,104,.7); transition: background .3s, box-shadow .3s; }
.begin:hover .begin-label, .begin:focus-visible .begin-label { background: rgba(232,185,104,.18); box-shadow: 0 0 36px -2px rgba(232,185,104,.95); }
/* the crest breaking apart: its medallions fly to their doors (hero.js) */
.crest-piece { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; border-radius: 50%; background-repeat: no-repeat; will-change: transform, opacity; }
.crest-burst { position: fixed; z-index: 59; pointer-events: none; border-radius: 50%; border: 2px solid rgba(246,226,179,.9); box-shadow: 0 0 40px rgba(232,185,104,.85), inset 0 0 30px rgba(232,185,104,.5); }
.crest.split-out { opacity: .18; transition: opacity .35s .15s; }
.hero.split .place-ring, .hero.split .place-label { transition-delay: var(--land, 1.1s) !important; }
.hero.split .place-ring::after { animation-delay: calc(var(--land, 1.1s) + .4s) !important; }
.hero.quiet .map-intro { opacity: 0 !important; transition: none !important; pointer-events: none; }
/* the crest on the lit map: bottom-left corner; click it to light the worlds again */
.map-logo { position: absolute; left: 18px; bottom: 14px; z-index: 6; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 1s 2.4s; }
.hero.begun .map-logo { opacity: 1; pointer-events: auto; }
.map-logo .crest { display: block; width: 104px; height: auto; filter: drop-shadow(0 3px 14px rgba(0,0,0,.95)) drop-shadow(0 0 14px rgba(232,185,104,.35)); transition: transform .3s; }
.map-logo:hover .crest, .map-logo:focus-visible .crest { transform: scale(1.07); }
.map-logo:focus-visible { outline: 2px solid #f6e2b3; outline-offset: 4px; border-radius: 12px; }
@media (max-width: 760px) {
  .map-logo { left: 10px; bottom: 52px; } .map-logo .crest { width: 76px; }
  .logo { gap: 6px; font-size: .86rem; } .logo-crest { width: 32px; height: 32px; }
  .crest-btn .crest { width: min(36vh, 72vw); }
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-family: var(--display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.site-nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; }
@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 16px var(--gutter); background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-block; text-decoration: none; text-transform: uppercase; font-size: .82rem; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--portal); color: #05070c; box-shadow: 0 0 0 0 transparent; }
.btn-primary:hover { color: #05070c; box-shadow: 0 0 24px -4px var(--portal); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--text); background: rgba(0,0,0,.25); }
.btn-small { padding: 8px 16px; font-size: .74rem; background: var(--star); color: #fff; }
.btn-small:hover { color: #fff; }
.btn-buy { background: var(--panel); color: var(--text); border-color: var(--line); padding: 10px 16px; font-size: .74rem; }
.btn-buy:first-child { background: var(--portal); color: #05070c; border-color: var(--portal); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.coming-soon { color: var(--portal-accent); font-style: italic; }
.text-link { text-decoration: none; font-family: var(--display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* sections */
main > section, .book, .character { padding: clamp(40px, 7vw, 90px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.portal-hero { text-align: left; padding-top: clamp(50px, 9vw, 110px) !important; position: relative; }
.portal-hero::before { content: ""; position: absolute; inset: -40px -50vw auto; height: 380px; z-index: -1;
  background: radial-gradient(60% 100% at 30% 0%, color-mix(in srgb, var(--portal) 28%, transparent), transparent 70%); }
.portal-hook { font-size: 1.18rem; padding-top: 0 !important; }
.elements { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.element { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-decoration: none; color: var(--text); }
a.element:hover { border-color: var(--portal); }
.element p { margin: 0; color: var(--muted); }
.wing-desc { color: var(--muted); max-width: 60ch; margin-top: 0; }
.start-here { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.sb-answer { font-size: 1.15rem; }
@media (max-width: 640px) { .start-here { grid-template-columns: 1fr; } .start-here > div:first-child { max-width: 220px; } }

/* books */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; margin-top: 20px; }
.book-card { text-decoration: none; color: var(--text); position: relative; display: flex; flex-direction: column; gap: 6px; }
.book-card:hover .cover { transform: translateY(-4px); box-shadow: 0 16px 40px -14px var(--portal); }
.book-card-title { font-family: var(--display); font-size: .86rem; letter-spacing: .04em; line-height: 1.25; }
.book-card-series { font-size: .78rem; color: var(--muted); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--portal); color: #05070c; font: 700 .64rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.badge-soon { background: var(--panel); color: var(--portal-accent); top: auto; bottom: 64px; }
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--panel); transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 30px -18px #000; }
.cover-placeholder { display: grid; place-items: center; text-align: center; padding: 12px; border: 1px solid var(--line); font-family: var(--display); font-size: .8rem; color: var(--muted); }
.book { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.book-cover { position: sticky; top: 90px; }
.crumbs { font-family: var(--display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.crumbs a { text-decoration: none; color: var(--portal); }
.series { color: var(--muted); margin-top: 0; font-style: italic; }
.series-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--display); font-size: .8rem; }
.series-nav a { text-decoration: none; }
@media (max-width: 720px) { .book { grid-template-columns: 1fr; } .book-cover { position: static; max-width: 240px; } }

/* characters */
.cast { display: flex; flex-wrap: wrap; gap: 10px; }
.cast-card { display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); background: var(--panel); }
.cast-card span { color: var(--muted); font-size: .8rem; }
.cast-card:hover { border-color: var(--portal); }

/* start here */
.starts { display: grid; gap: 18px; }
.start-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--panel); border-left: 4px solid var(--pc); }
.start-row .eyebrow { color: var(--pc); }
.saga { columns: 2 280px; padding-left: 1.3em; } .saga li { margin: 0 0 .35em; break-inside: avoid; }
.saga a { color: var(--text); text-decoration: none; } .saga a:hover { color: var(--portal); }

/* portals grid (home) */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 26px; }
.portal-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 22px; border-radius: var(--r); text-decoration: none; color: var(--text);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--pc) 34%, transparent), transparent 60%), var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.portal-card:hover { transform: translateY(-4px); border-color: var(--pc); color: var(--text); }
.portal-card-name { font-size: 1.15rem; font-weight: 700; text-transform: uppercase; color: var(--pc); }
.portal-card-tag { font-style: italic; color: var(--silver); }
.portal-card-count { margin-top: auto; font-family: var(--display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cta-band { text-align: center; }
.cta-band .sb-problem { font-size: 1.3rem; font-style: italic; max-width: 50ch; margin: 0 auto 6px; }
.cta-band .sb-change { color: var(--muted); margin: 0 0 22px; }
.feature { border-top: 1px solid var(--line); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 50px var(--gutter) 40px; text-align: center; background: var(--bg-2); }
.newsletter { max-width: 560px; margin: 0 auto 30px; padding: 0 !important; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 220px; max-width: 320px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; font-family: var(--display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: var(--muted); text-decoration: none; }

/* ---------- HERO: THE LIVING MAP ---------- */
.hero { position: relative; height: calc(100svh - 58px); min-height: 520px; max-width: none !important; padding: 0 !important; overflow: hidden; isolation: isolate; background: #06070c; }
.map-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.map-desktop .map-base { filter: brightness(.82) saturate(.95); transition: filter 1.6s; }
.map-lit { opacity: 0; transition: opacity 2.4s ease; }
.map-phone { display: none; } .map-phone .map-base { filter: brightness(.62) saturate(.85); transition: filter 1.6s; }
.hero.begun .map-desktop .map-base, .hero.begun .map-phone .map-base { filter: none; }
.hero.begun .map-lit { opacity: 1; }
@media (max-width: 760px) and (orientation: portrait) { .map-desktop { display: none; } .map-phone { display: block; } }
.map-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 1.4s;
  background: radial-gradient(70% 60% at 50% 42%, rgba(4,5,10,.62), rgba(4,5,10,.25) 60%, transparent 85%), linear-gradient(180deg, rgba(4,5,10,.35), transparent 25%, transparent 80%, rgba(4,5,10,.55)); }
.hero.begun .map-shade { opacity: 0; }
.hero.diving .map-stage { transition: transform 1s cubic-bezier(.55,0,.75,.2); transform: translate(-50%, -50%) scale(4); }
.hero.diving::after { content: ""; position: absolute; inset: 0; z-index: 20; background: #06070c; animation: divefade 1s ease-in forwards; }
/* the Celestial Court's door: you hit the clouds (Edith, 2026-11-21), a quick white-gold flash, not the dark dive */
.hero.diving.to-clouds .map-stage { transition-duration: .45s; }
.hero.diving.to-clouds::after { background: radial-gradient(circle at 50% 45%, #fff, #fff6e0 55%, #f8e9c6); animation-duration: .4s; }
@keyframes divefade { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
/* the real flight clip (hero.js): covers the map, fades in, and lands on the portal's opening picture */
.flight-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 25; background: #06070c;
  opacity: 0; transition: opacity .35s ease; cursor: pointer; }
.flight-video.on { opacity: 1; }
.hero.flying .whisper { opacity: 0; }

/* the five places */
.place { position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 0; height: 0; text-decoration: none; color: #fff; visibility: hidden; }
.place-ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; opacity: 0; transform: scale(.4);
  background: radial-gradient(circle, color-mix(in srgb, var(--pc) 75%, #fff) 0 12%, color-mix(in srgb, var(--pc) 55%, transparent) 22%, transparent 70%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--pc) 80%, #fff) inset, 0 0 26px 6px color-mix(in srgb, var(--pc) 55%, transparent); transition: opacity .8s, transform .8s; }
.place-ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--pc) 80%, #fff); opacity: 0; }
.place-label { position: absolute; left: 0; top: 34px; transform: translateX(-50%) translateY(6px); white-space: nowrap; padding: 6px 12px; border-radius: 999px; opacity: 0;
  font: 700 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; background: rgba(5,6,10,.72); border: 1px solid color-mix(in srgb, var(--pc) 70%, transparent);
  box-shadow: 0 0 18px -4px var(--pc); transition: opacity .8s, transform .8s; backdrop-filter: blur(4px); }
.hero.begun .place { visibility: visible; }
.hero.begun .place-ring, .hero.begun .place-label { opacity: 1; transform: none; transition-delay: calc(1.1s + var(--i) * .45s); }
.hero.begun .place-label { transform: translateX(-50%); }
.hero.begun .place-ring::after { animation: ripple 2.6s calc(1.6s + var(--i) * .45s) ease-out infinite; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }
.place:hover .place-ring, .place:focus-visible .place-ring { transform: scale(1.25) !important; transition-delay: 0s !important; }
.place:hover .place-label, .place:focus-visible .place-label { background: color-mix(in srgb, var(--pc) 40%, #05060a); transition-delay: 0s !important; }
.place:focus-visible { outline: none; } .place:focus-visible .place-label { outline: 2px solid #fff; outline-offset: 2px; }

/* the invitation */
.map-intro { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter) 6vh;
  transition: opacity 1s, transform 1.2s; }
.hero.begun .map-intro { opacity: 0; transform: translateY(-30px); pointer-events: none; }
.hero-title { position: relative; display: inline-flex; flex-direction: column; align-items: center; margin: 0; text-transform: uppercase; line-height: 1; }
.hero-title .t1 { font-size: clamp(2.5rem, 8.2vw, 6.2rem); font-weight: 900; letter-spacing: .04em; }
.hero-title .t2 { font-size: clamp(1rem, 2.6vw, 1.7rem); font-weight: 500; letter-spacing: .62em; margin-top: .45em; padding-left: .62em; }
.hero-title .t1, .hero-title .t2 { background: linear-gradient(180deg, #ffffff, #d9dde5 55%, #9aa1ae); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(8px); transition: opacity 1.2s, transform 1.2s; filter: drop-shadow(0 2px 18px rgba(0,0,0,.85)); }
.hero.stage-1 .hero-title .t1, .hero.stage-1 .hero-title .t2 { opacity: 1; transform: none; }
.hero.revealed .hero-title .t1 { background: var(--braid); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: braid 14s linear infinite; }
@keyframes braid { to { background-position: 300% 0; } }
.scratch { position: absolute; height: 3px; width: 92%; left: 4%; border-radius: 3px; transform-origin: left center; transform: rotate(-9deg) scaleX(0); z-index: 2;
  background: linear-gradient(90deg, transparent, #fff 15%, #ffc94d 40%, #e02d2d 60%, #8b5cf6 80%, transparent); box-shadow: 0 0 14px 2px rgba(255, 201, 77, .6); opacity: .95; }
.scratch.s1 { top: 18%; } .scratch.s2 { top: 34%; } .scratch.s3 { top: 50%; }
.hero.stage-2 .scratch { animation: claw .55s cubic-bezier(.2,.8,.2,1) forwards, fadeclaw 1.4s 1s forwards; }
.hero.stage-2 .scratch.s2 { animation-delay: .1s, 1.1s; } .hero.stage-2 .scratch.s3 { animation-delay: .2s, 1.2s; }
@keyframes claw { to { transform: rotate(-9deg) scaleX(1); } }
@keyframes fadeclaw { to { opacity: 0; } }
.headline { font-size: clamp(1.1rem, 2.3vw, 1.5rem); font-style: italic; margin: 1.1em auto 1.4em; max-width: 34ch; text-shadow: 0 2px 16px #000, 0 0 2px #000; opacity: 0; transition: opacity 1s .3s; }
.hero.stage-3 .headline { opacity: 1; }
.begin { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; color: #fff; cursor: pointer; opacity: 0; transition: opacity 1s; font: inherit; }
.hero.stage-3 .begin { opacity: 1; }
.begin-orb { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; color: #fff;
  background: radial-gradient(circle, rgba(47,191,113,.55), rgba(47,191,113,.12) 60%, transparent 72%); box-shadow: 0 0 0 1.5px rgba(214,255,230,.75) inset, 0 0 34px 6px rgba(47,191,113,.45);
  animation: breathe 2.8s ease-in-out infinite; transition: transform .25s; }
.begin-orb svg { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(255,255,255,.7)); }
.begin-orb::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px solid rgba(214,255,230,.6); animation: ripple 2.8s ease-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 1.5px rgba(214,255,230,.9) inset, 0 0 54px 14px rgba(47,191,113,.6); } }
.begin:hover .begin-orb, .begin:focus-visible .begin-orb { transform: scale(1.08); }
.begin:focus-visible { outline: none; } .begin:focus-visible .begin-label { outline: 2px solid #fff; outline-offset: 4px; }
.begin-label { font: 700 .9rem var(--display); letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 2px 12px #000; }
.intro-alt { margin: 22px 0 0; opacity: 0; transition: opacity 1s .4s; } .hero.stage-3 .intro-alt { opacity: 1; }
.intro-alt a { color: var(--silver); font-size: .92rem; text-shadow: 0 2px 10px #000; }
.map-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; margin: 0; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(5,6,10,.6); border: 1px solid rgba(255,255,255,.2); font: .78rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--silver);
  opacity: 0; transition: opacity 1s 3.6s; pointer-events: none; }
.hero.begun .map-hint { opacity: 1; }
.sound-toggle { position: absolute; right: var(--gutter); top: 18px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(5,6,10,.5); color: var(--silver); font: .74rem var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.sound-toggle svg { width: 18px; height: 18px; } .sound-toggle[aria-pressed="true"] { border-color: var(--nation); color: #fff; }
.whisper { position: absolute; z-index: 7; width: 270px; border-radius: 14px; overflow: hidden; background: rgba(7, 8, 13, .92); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 50px -12px #000; pointer-events: none; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .25s, transform .25s; }
.whisper.show { opacity: 1; transform: none; }
.whisper img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.whisper .w-body { padding: 12px 14px 14px; }
.whisper .w-name { margin: 0 0 4px; font: 700 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--wc, #fff); }
.whisper .w-line { margin: 0; font-style: italic; font-size: .92rem; line-height: 1.45; }
.whisper .w-go { margin: 8px 0 0; font: .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .hero { height: calc(100svh - 54px); }
  .place-label { font-size: .64rem; padding: 5px 9px; }
  .whisper { width: auto; left: 16px !important; right: 16px; top: auto !important; bottom: 70px; }
  .sound-toggle span { display: none; }
  .map-hint { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); font-size: .66rem; bottom: 14px; }
  .guide span { display: none; } .guide { padding: 7px; }
}

/* ---------- GUIDE ICON (every page) ---------- */
.guide { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; text-decoration: none;
  color: #dff7ea; background: rgba(6,8,12,.78); border: 1px solid rgba(47,191,113,.55); box-shadow: 0 0 22px -6px rgba(47,191,113,.8); backdrop-filter: blur(8px);
  font: 700 .72rem var(--display); letter-spacing: .18em; text-transform: uppercase; transition: transform .2s, box-shadow .2s; }
.guide svg { width: 30px; height: 30px; }
.guide:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 30px -4px rgba(47,191,113,.95); }
body[data-portal="universe"] .guide { display: none; }
/* Back to this portal's books, on every book page (Edith, 2026-11-20); the map guide holds the left corner */
.back-pill { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; text-decoration: none;
  color: #fff; background: rgba(6,8,12,.78); border: 1px solid var(--portal-accent, var(--portal)); box-shadow: 0 0 22px -6px var(--portal-accent, var(--portal)); backdrop-filter: blur(8px);
  font: 700 .72rem var(--display); letter-spacing: .16em; text-transform: uppercase; transition: transform .2s, box-shadow .2s; max-width: calc(100vw - 200px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-pill span { font-size: 1.1rem; line-height: 1; }
.back-pill:hover { transform: translateY(-2px); box-shadow: 0 0 30px -4px var(--portal-accent, var(--portal)); }
.back-end { display: flex; justify-content: center; padding: 10px var(--gutter) 90px; }

/* ---------- PORTAL ARRIVAL HERO ---------- */
.portal-hero.has-art { max-width: none !important; margin: 0; padding: 0 !important; position: relative; min-height: min(78svh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.portal-hero.has-art::before { display: none; }
.portal-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: arrive 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes arrive { from { transform: scale(1.12); filter: brightness(.4); } to { transform: none; filter: none; } }
.portal-hero.has-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,8,13,.55) 70%, var(--bg)); }
.portal-hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(26px, 5vw, 56px); text-shadow: 0 2px 18px #000; }
.portal-hero.text-right .portal-hero-text { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.portal-hero.text-right .tagline { margin-left: auto; }
@media (max-width: 760px) {
  .portal-hero.has-art { display: block; min-height: 0; }
  .portal-art { position: relative; height: auto; aspect-ratio: 16 / 9; object-position: 50% 0; }
  .portal-hero.has-art::after { background: linear-gradient(180deg, transparent 25%, var(--bg) 62%); }
  .portal-hero-text, .portal-hero.text-right .portal-hero-text { margin-top: -60px; align-items: flex-start; text-align: left; }
  .portal-hero.text-right .tagline { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero .hero-title .t1, .hero .hero-title .t2, .hero .headline, .hero .begin, .hero .intro-alt { opacity: 1; transform: none; }
  .hero .scratch { display: none; }
}

/* the universe's own lettering for big titles (Cinzel stays for small labels and buttons) */
.display, .display-sm, .hero-title, .hero-title .t1, .hero-title .t2, .portal-card-name, .book h1, .character h1 { font-family: var(--title); }

/* ---------- each world's edge: solid letters, with a thin edge of that world's color skimming the outside (Edith, 2026-11-17) ---------- */
.portal-hero h1, .book h1 { --edge: var(--portal); color: #f3efe7; -webkit-text-stroke: 2px var(--edge); paint-order: stroke fill;
  text-shadow: 0 0 2px var(--edge), 0 0 10px color-mix(in srgb, var(--edge) 55%, transparent), 0 3px 18px rgba(0,0,0,.9); }
body[data-portal="nation"] .portal-hero h1, body[data-portal="nation"] .book h1 { --edge: #2fbf71; }          /* emerald, Silas's eyes */
body[data-portal="renova"] .portal-hero h1, body[data-portal="renova"] .book h1 { --edge: #e8a27c; }          /* rose gold */
body[data-portal="dragon-hall"] .portal-hero h1, body[data-portal="dragon-hall"] .book h1 { --edge: #e8333a; } /* red (Edith, 2026-11-23: red, not orange) */
body[data-portal="chimera-pact"] .portal-hero h1, body[data-portal="chimera-pact"] .book h1 { --edge: #9b6cff; } /* violet */
body[data-portal="shifter-council"] .portal-hero h1, body[data-portal="shifter-council"] .book h1 { --edge: #7fe0c0; } /* aurora */

/* keep faces in frame: pictures with people are pinned to the top */
body[data-portal="nation"] .portal-art, body[data-portal="chimera-pact"] .portal-art { object-position: 50% 0; }
@media (min-width: 761px) { .portal-hero.text-right .portal-hero-text { padding-left: max(var(--gutter), 46%); } }

/* ---------- FIND YOUR DOOR: one door at a time, down a flight path (Edith, 2026-11-17) ---------- */
.journey { position: relative; max-width: 1180px !important; padding-bottom: 40px !important; }
.journey-head { text-align: center; max-width: 720px; margin: 0 auto 30px; position: relative; z-index: 2; }
.journey-sub { color: var(--silver); font-style: italic; font-size: 1.1rem; }
.flight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.flight-path { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.flight-trail { fill: none; stroke: url(#none); stroke: #d6dbe4; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(160, 230, 200, .7)); }
.flight-dot { fill: #fff; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px rgba(47,191,113,.9)); }

.door-stop { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(220px, 400px) minmax(0, 560px); gap: clamp(24px, 4.5vw, 70px);
  align-items: center; justify-content: center; min-height: 86vh; padding: 60px 0; }
.door-stop.door-right { grid-template-columns: minmax(0, 560px) minmax(220px, 400px); }
.door-text { min-width: 0; }
.door-stop.door-right .door { order: 2; } .door-stop.door-right .door-text { order: 1; text-align: right; }
.door-stop.door-right .door-cta { justify-content: flex-end; }

/* the text slides in when the door is reached */
.door-text { opacity: 0; transform: translateY(26px); transition: opacity .9s .25s, transform .9s .25s; }
.door-stop.open .door-text { opacity: 1; transform: none; }
.door-text .eyebrow { color: var(--pc); }
.door-name { font-family: var(--title); font-size: clamp(2rem, 4.2vw, 3.4rem); overflow-wrap: break-word; line-height: 1.05; margin: .15em 0 .2em; text-transform: uppercase; letter-spacing: .03em;
  color: #f3efe7; -webkit-text-stroke: 2px var(--pc); paint-order: stroke fill; text-shadow: 0 0 2px var(--pc), 0 0 14px color-mix(in srgb, var(--pc) 55%, transparent); }
.door-tag { font-style: italic; color: var(--silver); font-size: 1.15rem; margin: 0 0 14px; }
.door-hook p { margin: 0 0 12px; }
.door-who { color: var(--muted); font-size: .95rem; }
.door-who strong { color: var(--text); font-weight: 600; }
.door-count { font-family: var(--display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pc); margin: 14px 0; }
.door-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.door-cta .btn-primary { --portal: var(--pc); }

/* the door itself: an arched doorway that swings open on its world */
.door { position: relative; display: block; width: 100%; max-width: 400px; justify-self: center; aspect-ratio: 3 / 4.4; text-decoration: none; perspective: 1400px; }
.door-glow { position: absolute; inset: -18% -22%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 45%, transparent), transparent);
  opacity: .25; transition: opacity 1.2s; z-index: -1; }
.door-stop.open .door-glow { opacity: .9; animation: doorbreathe 4.5s ease-in-out infinite; }
@keyframes doorbreathe { 50% { opacity: .55; } }
.door-arch { position: absolute; inset: 0; border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px; overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 0 0 10px var(--frame-1), 0 0 0 13px var(--frame-2), 0 0 0 16px rgba(0,0,0,.6), 0 30px 70px -20px #000, 0 0 60px -10px var(--pc); }
.door-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.door-stop.open .door-arch img { transform: scale(1); }
.door-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--leaf); box-shadow: inset 0 0 40px rgba(0,0,0,.65);
  transition: transform 1.6s cubic-bezier(.6,.05,.2,1); backface-visibility: hidden; }
.leaf-l { left: 0; transform-origin: left center; border-right: 1px solid rgba(0,0,0,.6); }
.leaf-r { right: 0; transform-origin: right center; border-left: 1px solid rgba(0,0,0,.6); }
.door-stop.open .leaf-l { transform: rotateY(-108deg); } .door-stop.open .leaf-r { transform: rotateY(108deg); }
.door:hover .door-arch img, .door:focus-visible .door-arch img { transform: scale(1.05); }
.door:focus-visible { outline: none; } .door:focus-visible .door-arch { outline: 3px solid #fff; outline-offset: 20px; }
.door-sill { position: absolute; left: -8%; right: -8%; bottom: -26px; height: 14px; border-radius: 4px; background: var(--frame-1); box-shadow: 0 8px 20px rgba(0,0,0,.6); }

/* each world's door */
[data-world="shifter-council"] { --frame-1: #6f7a80; --frame-2: #b7f5dd;
  --leaf: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px), radial-gradient(120% 80% at 50% 0%, #5b6670, #2a3138 70%); }
[data-world="shifter-council"] .door-arch { box-shadow: 0 0 0 10px var(--frame-1), 0 0 0 13px var(--frame-2), 0 0 0 16px rgba(0,0,0,.6), 0 30px 70px -20px #000, 0 0 70px -6px #5ef0b8, 0 0 120px -10px #9b6cff; }
[data-world="dragon-hall"] { --frame-1: #4a4038; --frame-2: #e8333a;
  --leaf: linear-gradient(90deg, transparent 48%, rgba(224,45,45,.5) 49% 51%, transparent 52%), repeating-linear-gradient(0deg, #3a302a 0 46px, #e02d2d55 46px 48px), #2c2420; }
[data-world="renova"] { --frame-1: #7a5236; --frame-2: #e8a27c;
  --leaf: repeating-linear-gradient(90deg, #8a5a38 0 22px, #6e4429 22px 24px), linear-gradient(#9a6a45, #5b3a24); }
[data-world="chimera-pact"] { --frame-1: #23202e; --frame-2: #9b6cff;
  --leaf: linear-gradient(90deg, transparent 30%, rgba(155,108,255,.55) 30.5% 31%, transparent 31.5% 69%, rgba(34,211,238,.5) 69.5% 70%, transparent 70.5%),
          repeating-linear-gradient(0deg, transparent 0 38px, rgba(155,108,255,.35) 38px 39px), #17151f; }
[data-world="nation"] { --frame-1: #3d3128; --frame-2: #2fbf71;
  --leaf: radial-gradient(circle at 50% 18%, #1a1410 0 5px, transparent 6px), radial-gradient(circle at 50% 82%, #1a1410 0 5px, transparent 6px),
          repeating-linear-gradient(90deg, #4a3526 0 30px, #3a281c 30px 32px), #3d2b1f; }
[data-world="nation"] .door-arch img, [data-world="chimera-pact"] .door-arch img { object-position: 30% 0; }

@media (max-width: 860px) {
  .door-stop, .door-stop.door-right { grid-template-columns: 1fr; min-height: 0; padding: 50px 0 40px 34px; gap: 34px; }
  .door-stop.door-right .door, .door-stop.door-right .door-text { order: 0; text-align: left; }
  .door-stop.door-right .door-cta { justify-content: flex-start; }
  .door { max-width: 300px; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .door-text { opacity: 1; transform: none; }
  .door-leaf { display: none; }
}

/* ---------- MOMENTS FROM THE STORY (portal agents keep these current) ---------- */
.moments .moment-list { display: grid; gap: 26px; margin-top: 22px; }
.moment { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px #000; }
.moment:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.moment:nth-child(even) .moment-pic { order: 2; }
.moment-pic { position: relative; min-height: 260px; background: #0b0d14; }
.moment-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.moment-pic-pending { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: .78rem var(--display); letter-spacing: .16em; text-transform: uppercase;
  background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--portal) 22%, transparent), transparent), #0b0d14; }
.moment-text { padding: clamp(20px, 3vw, 34px); }
.moment-title { font-family: var(--title); font-size: clamp(1.5rem, 2.8vw, 2.1rem); text-transform: uppercase; letter-spacing: .03em; color: #f3efe7; margin: .2em 0 .4em;
  -webkit-text-stroke: 1.5px var(--portal); paint-order: stroke fill; }
.moment-teaser { font-style: italic; font-size: 1.1rem; color: var(--silver); }
.moment-teaser p { margin: 0 0 12px; }
.moment-story p { margin: 0 0 12px; }
.moment-reveal { margin: 6px 0 14px; }
.moment-reveal summary { cursor: pointer; display: inline-block; font: .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--portal);
  border: 1px solid color-mix(in srgb, var(--portal) 55%, transparent); border-radius: 999px; padding: 8px 14px; list-style: none; }
.moment-reveal summary::-webkit-details-marker { display: none; }
.moment-reveal[open] summary { margin-bottom: 12px; }
.moment-audio { width: 100%; margin: 6px 0 12px; }
.badge-draft { background: #f2c94c; color: #111; top: 12px; left: 12px; z-index: 2; }
@media (max-width: 760px) {
  .moment, .moment:nth-child(even) { grid-template-columns: 1fr; }
  .moment:nth-child(even) .moment-pic { order: 0; }
  .moment-pic { min-height: 200px; }
}

/* ---------- IN THEIR OWN WORDS: tidbits that point to a portal interview ---------- */
.tidbit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.tidbit { position: relative; margin: 0; padding: 22px 22px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--portal); display: flex; flex-direction: column; gap: 10px; }
.tidbit-topic { margin: 0; font: .7rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--portal); }
.tidbit blockquote { margin: 0; font-style: italic; font-size: 1.08rem; line-height: 1.55; }
.tidbit blockquote p { margin: 0; }
.tidbit blockquote p::before { content: "\201C"; }
.tidbit blockquote p::after { content: "\201D"; }
.tidbit figcaption { font-family: var(--display); font-size: .78rem; letter-spacing: .1em; color: var(--silver); }
.tidbit .text-link { margin-top: auto; }
.interview .interview-body h3 { margin-top: 1.6em; }
.badge-inline { display: inline-block; background: #f2c94c; color: #111; font: 700 .7rem var(--display); letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; }

/* ---------- series blurb (Edith's copy) ---------- */
.series-blurb { margin: 18px 0 26px; padding: 22px 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--portal); max-width: 820px; }
.series-blurb .prose p { margin: 0 0 12px; }
.series-blurb .btn { margin-top: 6px; }

/* ---------- the close: answer, change, end result + the ask ---------- */
.closer { margin: 10px 0 14px; font-weight: 600; color: #f3efe7; }
.closer p { margin: 0 0 8px; }
.book-ask { margin-top: 4px; }
.btn-sm { padding: 9px 16px; font-size: .72rem; align-self: flex-start; }

/* moment pictures keep their full widescreen shape (no cropping) */
.moment { align-items: center; }
.moment-pic { min-height: 0; aspect-ratio: 16 / 9; align-self: center; }
@media (max-width: 760px) { .moment-pic { min-height: 0; } }

/* TALL moment pictures (3:4, Edith 2026-11-19, from Dragon Hall on): the picture stands beside the text like a
   book page on wide screens, and on top, full width, on phones. */
.moment.moment-tall { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: stretch; }
.moment.moment-tall:nth-child(even) { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.moment-tall .moment-pic { aspect-ratio: 3 / 4; align-self: start; }
.moment-tall .moment-text { align-self: center; }
@media (max-width: 760px) {
  .moment.moment-tall, .moment.moment-tall:nth-child(even) { grid-template-columns: 1fr; }
  .moment-tall .moment-pic { max-height: 82vh; aspect-ratio: 3 / 4; width: 100%; }
}

/* ---------- ASK LA PATRON: picture + topics + his voice (no text blocks) ---------- */
.ask { position: relative; }
.ask-stage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 0; margin-top: 18px; border-radius: var(--r); overflow: hidden;
  background: #07080d; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px #000; }
.ask-pic { position: relative; aspect-ratio: 16 / 9; background: #0b0d14; }
.ask-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
/* Tall 3:4 speaker pictures (Crimson, David): picture beside the topics, never cropped at the head */
.ask-tall .ask-stage { grid-template-columns: minmax(0, 1fr) minmax(240px, 1.15fr); }
.ask-tall .ask-pic { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .ask-tall .ask-stage { grid-template-columns: 1fr; } .ask-tall .ask-pic { aspect-ratio: auto; height: min(125vw, 72vh); } }
.ask-tall .ask-img { object-position: center top; }
.ask-img-pending { display: grid; place-items: center; color: var(--muted); font: .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 20px;
  background: radial-gradient(60% 60% at 35% 50%, color-mix(in srgb, var(--portal) 25%, transparent), transparent), #0b0d14; }
.ask-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 22px 18px; font-style: italic; font-size: 1.05rem; color: #fff; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); transition: opacity .5s; pointer-events: none; }
.ask.speaking .ask-caption { opacity: 1; }
.ask-topics { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: linear-gradient(180deg, #0d1018, #07080d); }
.ask-prompt { margin: 0 0 6px; font: .7rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ask-topic { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  background: transparent; color: var(--text); font: 600 .95rem var(--body); transition: background .2s, border-color .2s; }
.ask-topic:hover, .ask-topic:focus-visible { background: color-mix(in srgb, var(--portal) 14%, transparent); border-color: color-mix(in srgb, var(--portal) 45%, transparent); outline: none; }
.ask-topic.playing { background: color-mix(in srgb, var(--portal) 22%, transparent); border-color: var(--portal); }
.ask-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--portal); box-shadow: 0 0 10px var(--portal); }
.ask-topic.playing .ask-dot { animation: askpulse 1s ease-in-out infinite; }
@keyframes askpulse { 50% { transform: scale(1.6); opacity: .6; } }
.ask-spoiler { margin-left: auto; font: .6rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: #f2c94c; border: 1px solid rgba(242,201,76,.45); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.ask-spoiler + .ask-soon { margin-left: 8px; }
.ask-topic.confirming { border-color: rgba(242,201,76,.7); background: rgba(242,201,76,.08); }
.ask-soon { margin-left: auto; font: .62rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ask-close { margin-top: 16px; }
@media (max-width: 760px) { .ask-stage { grid-template-columns: 1fr; } }

/* ---------- BOOK CAROUSEL: small covers drifting by; tap one for its story ---------- */
/* the row drifts by script (carousel.js) and the visitor can scroll, drag, swipe or use the arrows (Edith, 2026-11-20) */
.cv-wrap { position: relative; margin: 18px 0 8px; }
.carousel { position: relative; overflow-x: auto; overflow-y: hidden; padding: 10px 0; scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; user-select: none; }
.carousel.dragging .cv { pointer-events: none; }
.cv-track { display: flex; gap: 16px; width: max-content; padding: 0 4px; }
.cv-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--text);
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px -10px #000; }
.cv-arrow:hover, .cv-arrow:focus-visible { border-color: var(--portal); color: var(--portal); outline: none; }
.cv-left { left: 0; } .cv-right { right: 0; }
.cv-fits .cv-arrow { display: none; }
.cv { position: relative; flex: none; width: 112px; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--panel);
  box-shadow: 0 10px 24px -12px #000; transition: transform .2s, box-shadow .2s; }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv:hover, .cv:focus-visible { transform: translateY(-6px) scale(1.04); box-shadow: 0 16px 30px -10px var(--portal); outline: none; }
.cv.active { box-shadow: 0 0 0 2px var(--portal), 0 16px 30px -10px var(--portal); }
.cv-ph { display: grid; place-items: center; height: 100%; padding: 8px; font: .7rem var(--display); color: var(--muted); text-align: center; }
.cv-badge { position: absolute; left: 6px; top: 6px; background: var(--portal); color: #05070c; font: 700 .55rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; }
.cv-info { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; margin-top: 8px; padding: 18px; border-radius: var(--r);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--portal) 45%, transparent); animation: cvin .25s ease-out; }
.cv-info[hidden] { display: none; }
@keyframes cvin { from { opacity: 0; transform: translateY(6px); } }
.cv-info-img { width: 110px; border-radius: 6px; }
.cv-info-title { font-family: var(--title); font-size: 1.4rem; color: #f3efe7; text-transform: uppercase; margin: 2px 0 6px; }
.cv-info-teaser { margin: 0 0 12px; color: var(--silver); }
.cv-info-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
/* Home showcase slideshow (Edith, 2026-11-20): one tall picture with its words, swipe or tap through */
.ss { position: relative; margin-top: 18px; outline: none; }
.ss-slide { display: none; margin: 0; grid-template-columns: minmax(0, auto) minmax(260px, 1fr); gap: 28px; align-items: center; }
.ss-slide.on { display: grid; animation: cvin .35s ease-out; }
.ss-slide img { display: block; height: min(78vh, 760px); width: auto; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r);
  box-shadow: 0 24px 50px -24px #000, 0 0 0 1px color-mix(in srgb, var(--portal) 35%, transparent); }
.ss-wide img { object-fit: contain; background: #05070a; }   /* a reused wide picture shows whole in the tall frame */
.ss-words { padding: 8px 4px; }
.ss-count { display: block; font: 700 .7rem var(--display); letter-spacing: .14em; color: var(--portal); margin-bottom: 14px; }
.ss-line { font-family: var(--display); font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.5; color: #f3efe7; margin: 0 0 12px; }
.ss-who { color: var(--portal); font: 700 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 0; }
.ss-nav { position: absolute; top: calc(min(78vh, 760px) / 2 - 24px); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ss-nav:hover, .ss-nav:focus-visible { border-color: var(--portal); color: var(--portal); outline: none; }
.ss-prev { left: -8px; } .ss-next { left: calc(min(78vh, 760px) * 3 / 4 - 40px); }
.ss-dots { display: flex; gap: 8px; margin-top: 16px; }
.ss-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.ss-dot.on { background: var(--portal); }
@media (max-width: 760px) {
  .ss-slide { grid-template-columns: 1fr; gap: 14px; }
  .ss-slide img { width: 100%; height: auto; }
  .ss-nav { top: calc((100vw - 2 * var(--gutter)) * 2 / 3 - 24px); }
  .ss-prev { left: 8px; } .ss-next { left: auto; right: 8px; }
  .ss-dots { justify-content: center; }
}

/* Meet the Chimera: person cards in the same carousel (Edith, 2026-11-20) */
.cv-person { width: 132px; aspect-ratio: 3 / 4; background: #f4f2ee; }
.cv-person img { object-position: center top; }
.cv-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 6px; font: 700 .68rem var(--display); letter-spacing: .08em; text-transform: uppercase;
  color: #f3efe7; text-align: center; background: linear-gradient(transparent, rgba(5,7,12,.85)); }
.people .cv-info-img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; background: #f4f2ee; }
.cv-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 14px; }
.cv-facts dt { font: 700 .62rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--portal); padding-top: 3px; }
.cv-facts dd { margin: 0; color: var(--silver); }
.cv-abil { margin: 0; padding-left: 1.1em; }
.cv-abil li { margin: 0 0 3px; }
.cv-abil li::marker { color: var(--portal); }
@media (max-width: 600px) {
  .people .cv-info { grid-template-columns: 1fr; gap: 12px; }
  .people .cv-info-img { width: 96px; }
  .cv-facts { grid-template-columns: 1fr; gap: 2px; }
  .cv-facts dd { margin-bottom: 8px; }
}

/* series blurb with its picture */
.series-blurb.has-pic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; padding: 0; overflow: hidden; max-width: none; }
.series-blurb.has-pic .sb-pic { position: relative; min-height: 100%; }
.series-blurb.has-pic .sb-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0; }
.series-blurb.has-pic .sb-text { padding: 22px 24px; }
@media (max-width: 760px) { .series-blurb.has-pic { grid-template-columns: 1fr; } .series-blurb.has-pic .sb-pic { aspect-ratio: 16 / 9; } }

/* a book's moments sit inside the book, under its cover and blurb */
.book + .moments { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter) 70px; }

/* ---------- THE READING CORNER: a story to scroll through ---------- */
.reader-hero { min-height: 46vh; display: flex; align-items: flex-end; background-size: cover; background-position: 30% 0; position: relative; }
.reader-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,13,.2), rgba(7,8,13,.6) 60%, var(--bg)); }
.reader-hero-text { position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 30px; text-shadow: 0 2px 16px #000; }
.reader { max-width: 680px !important; margin: 0 auto; padding: 20px var(--gutter) 80px; font-size: 1.15rem; line-height: 1.85; }
.reader p { margin: 0 0 1.1em; }
.reader-chapter { font-family: var(--title); text-transform: uppercase; letter-spacing: .06em; text-align: center; color: var(--portal); margin: 2.4em 0 1em; font-size: 1.4rem; }
.reader-end { text-align: center; margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); }

/* ---------- printing / PDF: a clean book page ---------- */
@media print {
  @page { size: letter; margin: 0.9in 0.85in; }
  body { background: #fff !important; color: #111 !important; font-size: 12pt; }
  .site-header, .site-footer, .guide, .reader-end .btn, .skip { display: none !important; }
  .reader-hero { min-height: 0; background: none !important; display: block; page-break-after: always; padding-top: 2.6in; text-align: center; }
  .reader-hero::after { display: none; }
  .reader-hero-text { text-shadow: none; }
  .reader-hero .eyebrow { color: #555 !important; }
  .reader-hero .display { color: #111 !important; font-size: 34pt; }
  .reader-hero .tagline { color: #333 !important; margin: 10pt auto 0; }
  .reader { max-width: none !important; padding: 0 !important; font-size: 12pt; line-height: 1.6; color: #111; }
  .reader-chapter { color: #111 !important; page-break-before: always; margin-top: 0; }
  .reader-chapter:first-child { page-break-before: avoid; }
  .reader-end { border-top: 1px solid #ccc; }
  .reader-end .closer { color: #111 !important; }
}

/* ---------- THE READING CORNER: a rocking chair by lamplight ---------- */
.reading-corner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 50px); align-items: center; }
.rc-room { position: relative; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 80% 20%, #2a1c10, #0d0a08 60%, #07080d); border: 1px solid #2a2018; aspect-ratio: 7 / 5; }
.rc-scene { width: 100%; height: 100%; display: block; }
.rc-chair { transform-box: view-box; transform-origin: 196px 268px; animation: rcrock 3.6s ease-in-out infinite alternate; }
@keyframes rcrock { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.rc-glow { animation: rcglow 5s ease-in-out infinite; }
@keyframes rcglow { 50% { opacity: .8; } }
.rc-fire { animation: rcfire 1.8s ease-in-out infinite; }
@keyframes rcfire { 25% { opacity: .7; } 50% { opacity: 1; } 75% { opacity: .82; } }
.rc-sub { color: var(--silver); font-style: italic; }
.rc-list { display: grid; gap: 12px; margin-top: 14px; }
.rc-story { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.rc-story:hover { transform: translateX(4px); border-color: #f0b46a; color: var(--text); }
.rc-story img, .rc-spine { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.rc-spine { display: grid; place-items: center; padding: 4px; background: linear-gradient(90deg, #3a2a1c, #6b4a2c); color: #f3e3c8; font: .6rem var(--display); text-align: center; }
.rc-story-text { display: flex; flex-direction: column; gap: 4px; }
.rc-story-text strong { font-family: var(--title); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
.rc-story-text span { font: .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #f0b46a; }
@media (max-width: 760px) { .reading-corner { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rc-chair, .rc-glow, .rc-fire { animation: none; } }

/* ---------- STEP INSIDE: the way into a book's moments (Edith: "I completely missed the BirthRight moments") ---------- */
.btn-step { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; line-height: 1.15;
  animation: stepglow 2.4s ease-in-out infinite; }
.btn-step small { font-size: .7rem; letter-spacing: .08em; text-transform: none; opacity: .85; font-weight: 400; }
.btn-step .step-spark { display: inline-block; animation: stepspark 2.4s ease-in-out infinite; }
.book-info > .btn-step { margin: 4px 0 18px; }
@keyframes stepglow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--portal-accent, #f0b46a) 0%, transparent); }
  50% { box-shadow: 0 0 22px 4px color-mix(in srgb, var(--portal-accent, #f0b46a) 55%, transparent); } }
@keyframes stepspark { 50% { transform: scale(1.35) rotate(20deg); } }
.moments { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { .btn-step, .btn-step .step-spark { animation: none; } }

/* Start here: the cover opens the story, the glowing button leads in, the stores come second (Edith, 2026-11-17) */
.start-cover { display: inline-block; transition: transform .25s, box-shadow .25s; border-radius: 6px; }
.start-cover:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.start-way-in { margin: 18px 0 6px; }
.start-or { margin: 14px 0 6px; font: .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.start-here .buy .btn-buy { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.start-here .buy .btn-buy:hover { border-color: var(--portal-accent, #f0b46a); color: var(--text); }
/* Stepping inside: the moments fade in on arrival instead of the page racing to them */
.moments.arriving { opacity: 0; transform: translateY(14px); }
.moments.arriving.arrived { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s ease; }

/* Inside a book's own page: no cover column; the story gets the full width (Edith, 2026-11-17) */
.book.solo { grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; }
/* Series box: the picture shows whole across the top, never squeezed into a strip */
.series-blurb.has-pic { grid-template-columns: 1fr; }
.series-blurb.has-pic .sb-pic { min-height: 0; aspect-ratio: 16 / 9; }
.series-blurb.has-pic .sb-pic img { object-position: 50% 25%; }

/* "The Nation has grown": each square shows its world's picture with the text (Edith, 2026-11-17) */
.element.has-pic { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.element.has-pic:hover { transform: translateY(-3px); }
.element .el-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.element .el-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.element.has-pic:hover .el-pic img { transform: scale(1.04); }
.element.has-pic h3 { margin: 14px 18px 6px; }
.element.has-pic p { margin: 0 18px 18px; }
.free-note { margin: 10px 0 4px; font: 600 .82rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold, #d8b25a); }
.crest-fly { position: fixed; z-index: 58; pointer-events: none; display: block; max-width: none;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.9)) drop-shadow(0 0 30px rgba(232,185,104,.5)); }
/* empty sockets on the tree where the flown medallions sat */
.crest-tree img { display: block; width: 100%; height: 100%; }
.socket { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #1b150c 0 55%, #0b0907 100%); box-shadow: inset 0 3px 10px rgba(0,0,0,.9); }
.map-logo { position: absolute; }
.map-logo .socket { display: none; }
.hero.split .map-logo .socket { display: block; }
/* "Touch the gate": a pulsing gold ring on the gate medallion and a small tag pointing at it (Edith, 2026-11-18) */
.crest-btn { position: relative; width: fit-content; }
.gate-cue { position: absolute; left: 14%; top: 31.8%; width: 19.6%; height: 19.6%; pointer-events: none; opacity: 0; transition: opacity 1s 1.6s; }
.hero.stage-3 .gate-cue { opacity: 1; }
.hero.split .gate-cue, .hero.begun .gate-cue { opacity: 0; transition: opacity .2s; }
.gate-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #f6e2b3;
  box-shadow: 0 0 18px 4px rgba(232,185,104,.85), inset 0 0 14px rgba(232,185,104,.6); animation: gatepulse 2.2s ease-out infinite; }
.gate-ring.r2 { animation-delay: 1.1s; }
@keyframes gatepulse { 0% { transform: scale(.92); opacity: 1; } 70% { opacity: .15; } 100% { transform: scale(1.55); opacity: 0; } }
.gate-tip { position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 12px 6px 14px; border-radius: 999px;
  font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #f6e2b3; background: rgba(10,8,5,.78);
  border: 1px solid rgba(232,185,104,.75); box-shadow: 0 0 18px -2px rgba(232,185,104,.7); animation: gatenudge 2.2s ease-in-out infinite; }
.gate-tip::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left-color: rgba(232,185,104,.9); }
@keyframes gatenudge { 50% { transform: translateY(-50%) translateX(5px); } }
.crest-btn:hover .gate-ring, .crest-btn:focus-visible .gate-ring { border-color: #fff; }
@media (max-width: 760px) {
  .gate-tip { right: auto; left: 50%; top: auto; bottom: calc(100% + 12px); transform: translateX(-30%); font-size: .62rem; padding: 5px 10px; animation: none; }
  .gate-tip::after { left: 30%; top: 100%; transform: translateX(-50%); border-left-color: transparent; border-top-color: rgba(232,185,104,.9); }
}
@media (prefers-reduced-motion: reduce) { .gate-ring, .gate-tip { animation: none; } }
/* stronger gate cue: a steady bright ring with a dark edge, plus pulses rolling outward */
.gate-cue::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #fffaf0;
  box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 0 16px 6px rgba(255,236,190,.95), inset 0 0 12px 3px rgba(255,236,190,.7); animation: gateglow 2.2s ease-in-out infinite; }
@keyframes gateglow { 50% { box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 0 30px 12px rgba(255,236,190,1), inset 0 0 16px 5px rgba(255,236,190,.9); } }
.gate-ring { border: 3px solid #fffaf0; box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 0 20px 6px rgba(255,220,140,.95); }
@media (prefers-reduced-motion: reduce) { .gate-cue::before { animation: none; } }
@media (max-width: 760px) {
  .gate-tip { right: calc(100% + 8px); left: auto; top: 50%; bottom: auto; transform: translateY(-50%); white-space: normal; width: 4.6em; text-align: center;
    line-height: 1.25; font-size: .56rem; letter-spacing: .1em; padding: 5px 6px; border-radius: 10px; }
  .gate-tip::after { left: 100%; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: rgba(232,185,104,.9); }
}
/* newsletter gift: the free novella through BookFunnel (Edith, 2026-11-18) */
.newsletter { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; max-width: 760px; text-align: left; }
.nl-gift { display: block; transition: transform .3s; } .nl-gift:hover { transform: translateY(-3px) rotate(-1deg); }
.nl-gift .cover { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 14px 34px -10px rgba(0,0,0,.9), 0 0 30px -8px rgba(232,185,104,.55); }
.nl-text h2 { margin: .2em 0 .4em; }
.nl-text .eyebrow { color: #e8b968; }
.nl-text .btn { margin: 6px 0 8px; }
@media (max-width: 640px) { .newsletter { grid-template-columns: 1fr; justify-items: center; text-align: center; } .nl-gift { width: 140px; } }
/* "Listen" button on moments (Edith, 2026-11-18: audio for every portal) */
.listen { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 14px; padding: 10px 18px 12px 14px; border-radius: 999px; cursor: pointer;
  font: 600 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: #f6e2b3; background: rgba(10,8,5,.55);
  border: 1px solid rgba(232,185,104,.7); box-shadow: 0 0 20px -6px rgba(232,185,104,.7); overflow: hidden; transition: background .25s, box-shadow .25s; }
.listen:hover, .listen:focus-visible { background: rgba(232,185,104,.16); box-shadow: 0 0 28px -4px rgba(232,185,104,.95); outline: none; }
.listen-icon { width: 0; height: 0; border-left: 11px solid #f6e2b3; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.listen.playing .listen-icon { width: 10px; height: 13px; border: 0; background: linear-gradient(90deg, #f6e2b3 0 35%, transparent 35% 65%, #f6e2b3 65%); }
.listen-who { font: italic 400 .78rem var(--body, Lora, serif); letter-spacing: 0; text-transform: none; color: var(--silver, #c9d1d9); }
.listen-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(232,185,104,.15); }
.listen-bar span { display: block; height: 100%; width: 0%; background: #e8b968; transition: width .25s linear; }

/* ---------- SHIFTER COUNCIL OPENING: the crest comes home (Edith, 2026-11-20) ---------- */
.council-opening { position: relative; margin: 0; padding: 0; }
.co-stage { position: relative; width: min(100%, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; background: #efe3c6; }
.co-ring, .co-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-video { transition: opacity .9s ease; }
.co-stage.settled .co-video { opacity: 0; pointer-events: none; }
/* the floor line runs through the middle of the gold circle (77.5% down the picture); the crest stands on it */
.co-rise { position: absolute; inset: 0; clip-path: inset(0 0 22.5% 0); }
.co-rise.free, .home .co-rise { clip-path: none; }
.co-crest { position: absolute; left: 50%; top: 17.5%; height: 60%; aspect-ratio: 1; transform: translateX(-50%) translateY(102%); opacity: 0;
  transition: transform 2.8s cubic-bezier(.22,.75,.25,1), opacity .9s ease; }
.crest-on .co-crest, .home .co-crest { opacity: 1; transform: translateX(-50%) translateY(0); }
.co-glow { position: absolute; left: 50%; top: 77.5%; width: 48%; height: 16%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255,244,205,.95) 0, rgba(255,218,140,.55) 38%, rgba(255,200,110,0) 70%); }
.crest-on .co-glow { animation: coRiseGlow 3.4s ease-out forwards; }
.home .co-glow { opacity: .3; animation: none; }
@keyframes coRiseGlow { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 100% { opacity: .3; transform: translate(-50%, -50%) scale(1); } }
.co-tree { display: block; width: 100%; height: 100%; filter: brightness(1.3) hue-rotate(-15deg) saturate(.72) drop-shadow(0 0 28px rgba(255,214,140,.55)) drop-shadow(0 6px 18px rgba(80,55,10,.35)); }  /* gold matched to the floor circle (Edith, 2026-11-20) */
.co-socket { position: absolute; border-radius: 50%; pointer-events: none; transition: opacity .35s ease;
  background: radial-gradient(circle at 50% 45%, #2a2112 0 55%, #120e08 100%); box-shadow: inset 0 3px 10px rgba(0,0,0,.9); }
.co-socket.filled, .home .co-socket { opacity: 0; }
.co-med { position: absolute; display: block; border: 0; padding: 0; margin: 0; border-radius: 50%; cursor: pointer; opacity: 0;
  background-image: url("/static/art/wnu-crest.webp"); background-size: 510.2% 510.2%; background-repeat: no-repeat; background-color: transparent;
  filter: brightness(1.3) hue-rotate(-15deg) saturate(.72); }
.home .co-med { opacity: 1; }
/* a ring of light around each medallion, deep amber with a dark bronze edge so it reads against the pale floor
   (Edith, 2026-11-20: "you can barely see them light up") */
.co-med::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; pointer-events: none; border: 3px solid rgba(176,110,20,0); }
.home .co-med::after { animation: coRing 2.8s ease-in-out infinite; }
@keyframes coRing {
  0%, 100% { border-color: rgba(176,110,20,.6); box-shadow: 0 0 0 2px rgba(80,40,0,.35), 0 0 12px 3px rgba(255,170,40,.55); transform: scale(1); }
  50% { border-color: rgba(255,200,90,1); box-shadow: 0 0 0 3px rgba(80,40,0,.6), 0 0 28px 11px rgba(255,165,30,.95); transform: scale(1.06); } }
.co-med:not(.co-med-still):hover::after, .co-med:focus-visible::after, .co-med.active::after { animation: none; border-color: #fff1c2;
  box-shadow: 0 0 0 4px rgba(95,45,0,.85), 0 0 40px 18px rgba(255,170,30,1), inset 0 0 14px 4px rgba(255,220,140,.9); transform: scale(1.14); }
.co-med-still { cursor: default; }
.co-med:not(.co-med-still):hover, .co-med:focus-visible { outline: none; }
@keyframes coglow { 0%, 100% { box-shadow: 0 0 6px 1px rgba(232,185,104,.45); } 50% { box-shadow: 0 0 22px 7px rgba(255,214,140,.9); } }
.co-label { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); margin: 0; padding: 7px 16px; border-radius: 999px; pointer-events: none;
  background: rgba(6,8,12,.74); color: #f6e2b3; font: 700 .76rem var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transition: opacity .3s ease; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.co-label.on { opacity: 1; }
.co-skip { position: absolute; right: 16px; top: 16px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55);
  background: rgba(6,8,12,.45); color: #fff; font: 700 .72rem var(--display); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.co-title { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 6px; }
.co-hint { margin: 10px 0 0; color: var(--gold, #d8b25a); font: 600 .78rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 700px) {
  .co-stage { width: 100%; aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { .home .co-med::after { animation: none; border-color: rgba(176,110,20,.7); } .co-crest { transition: none; } .crest-on .co-glow { animation: none; opacity: .3; } }

/* Ask: Pause and Stop while he speaks (Edith, 2026-11-23) */
.ask-controls { position: absolute; top: 12px; right: 12px; display: none; gap: 8px; z-index: 3; }
.ask.speaking .ask-controls { display: flex; }
.ask-ctl { font: .7rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(8,10,16,.72); border: 1px solid var(--portal); border-radius: 999px; padding: 8px 14px; cursor: pointer; backdrop-filter: blur(4px); }
.ask-ctl:hover, .ask-ctl:focus-visible { background: color-mix(in srgb, var(--portal) 35%, rgba(8,10,16,.8)); outline: none; }

/* Series blurbs on the portals as slideshows (Edith, 2026-11-23: no blocks of text) */
.series-slides { margin: 18px 0 30px; }
.series-slides > .eyebrow { margin-bottom: 10px; }
.series-slides .ss-words .ss-line p { margin: 0; }
.series-slides .ss-words .btn { margin-top: 14px; }
/* Ask: how to start and stop (Edith, 2026-11-23: "Tap it once to turn it on... another one to turn it off") */
.ask-how { margin: -2px 0 10px; font-size: .86rem; font-style: italic; color: var(--text); opacity: .85; }

/* Gift of the Month (Chimera portal, 2026-11-23) */
.gift-month .gift-frame{max-width:380px;margin:1rem auto 0}
.gift-item{margin:0}
.gift-item video{width:100%;aspect-ratio:9/16;border-radius:18px;background:#000;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.gift-item figcaption{text-align:center;margin-top:.6rem}

/* Dragon Hall: what every dragon can do (2026-11-23) */
.dm-traits{text-align:center;margin:.4rem auto 1rem;max-width:760px}
.dm-traits ul{list-style:none;padding:0;margin:.5rem 0 0;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.dm-traits li{padding:.35rem .9rem;border:1px solid rgba(224,45,45,.55);border-radius:999px;background:linear-gradient(180deg,rgba(224,45,45,.18),rgba(0,0,0,.35));font-size:.92rem}

/* Book blurb slideshow and series banner (Dragon Hall first, 2026-11-24) */
.book-slides { margin: 14px 0 22px; }
.series-banner { position: relative; display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; padding: 22px 24px; min-height: 96px;
  border-radius: var(--r); border: 1px solid var(--portal); background-size: cover; background-position: center 30%; overflow: hidden;
  text-decoration: none; color: #f3efe7; }
.series-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,.72) 55%, rgba(5,7,10,.35) 100%); }
.series-banner > * { position: relative; }
.series-banner .eyebrow { margin: 0; color: var(--portal-accent, var(--portal)); }
.series-banner .sbn-line { flex: 1; font-family: var(--display); font-size: 1.05rem; }
.series-banner .sbn-go { font-size: 1.8rem; color: var(--portal); transition: transform .2s; }
.series-banner:hover .sbn-go, .series-banner:focus-visible .sbn-go { transform: translateX(4px); }
@media (max-width: 720px) { .series-banner { flex-wrap: wrap; } .series-banner .sbn-line { flex-basis: 100%; order: 3; } }

/* Button lettering: golden ivory, never black (Edith, 2026-11-24: "the color of the font shouldn't be black...
   maybe like a golden ivory"). Pale portal colors (Renova peach, Celestial silver) keep dark lettering so it stays readable. */
.btn-primary, .btn-primary:hover { color: #f6e7c1; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
body[data-portal="renova"] .btn-primary, body[data-portal="shifter-council"] .btn-primary,
body[data-portal="renova"] .btn-primary:hover, body[data-portal="shifter-council"] .btn-primary:hover { color: #05070c; text-shadow: none; }

/* Diary doorway (2026-11-25): picture beside the invitation; the diary opens full screen */
.diary-door{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(20px,4vw,56px);align-items:center;max-width:1040px;margin-inline:auto}
.diary-door .dd-pic img{width:100%;height:auto;display:block;border-radius:14px;box-shadow:0 24px 50px rgba(0,0,0,.5)}
.diary-door .dd-text{display:grid;gap:12px;justify-items:start}
.diary-door .dd-meta{font-size:.9rem;opacity:.75;margin:0}
@media(max-width:720px){.diary-door{grid-template-columns:1fr}.diary-door .dd-pic{max-width:420px}}
.dd-overlay{position:fixed;inset:0;z-index:1000;background:#2a070b}
.dd-overlay iframe{width:100%;height:100%;border:0;display:block}

/* Welcome lines on the entrance picture, one at a time (Renova, 2026-11-25: no text blocks) */
.hero-hook{max-width:34ch;margin-top:14px;display:grid;gap:6px}
.hero-hook p{margin:0;font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.45;color:#f6e7c1;opacity:0;animation:heroLine 1.2s ease forwards}
@keyframes heroLine{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hero-hook p{animation:none;opacity:1}}

/* Start here: whole covers, no text walls (Edith, 2026-11-25) */
.start-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin: 10px 0 40px; }
.start-card { background: var(--panel, #12151d); border-top: 3px solid var(--pc); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.start-card-cover { display: block; width: 100%; max-width: 220px; }
.start-card-cover .cover { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: contain; display: block; border-radius: 6px; }
.start-card .eyebrow { margin: 14px 0 2px; color: var(--pc); }
.start-card h3 { margin: 0 0 6px; }
.start-card-line { font-size: .95rem; margin: 0 0 12px; }
.start-card .buy { justify-content: center; margin-top: auto; }
.saga-row { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 16px; scroll-snap-type: x mandatory; }
.saga-cover { position: relative; flex: 0 0 120px; scroll-snap-align: start; }
.saga-cover .cover { width: 120px; height: auto; aspect-ratio: 2/3; object-fit: contain; display: block; border-radius: 4px; }
.saga-n { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.75); color: #f0b46a; font-size: .8rem; padding: 2px 7px; border-radius: 10px; }

/* Moments: "Summary" and "Listen" labeled apart (Edith, 2026-11-25) */
.moment-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--portal-accent, #f0b46a); margin: 18px 0 6px; }
.moment-listen { margin-top: 10px; }
.moment-narration { font-style: italic; margin-top: 10px; }

/* Summary is a button; Listen words light up as read (Edith, 2026-11-25) */
.moment-summary summary { border: 1px solid var(--line, #333); border-radius: 999px; padding: 8px 16px; }
.moment-listen { margin-top: 14px; }
.moment-narration { font-style: italic; margin-top: 12px; line-height: 1.7; }
.moment-narration .nw { transition: color .25s, opacity .25s; }
.moment-narration.reading .nw { opacity: .4; }
.moment-narration.reading .nw.said { opacity: 1; color: var(--portal-accent, #f0b46a); }

.moment-buttons { margin-top: 14px; }
.moment-readalong { font-style: normal; }

/* Start here cards fill the row and stay centered; 2 across on tablets, 1 on phones (Edith, 2026-11-25) */
.start-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1240px; margin-left: auto; margin-right: auto; width: 100%; }
.start-card-cover { max-width: 260px; }
@media (max-width: 1000px) { .start-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .start-cards { grid-template-columns: 1fr; max-width: 360px; } }
.saga-list-btn { text-align: center; margin-top: 18px; }

/* Meet the Alphas / Meet the Mates, and the divider (Edith, 2026-11-28) */
.meet-row { text-align: center; }
.meet-faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1100px; margin: 18px auto 0; }
.meet-face { margin: 0; }
.meet-face img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.meet-face figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.meet-name { font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; }
.meet-role { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--portal-accent, #f0b46a); }
@media (max-width: 760px) { .meet-faces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wnu-divider { display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 30px auto; padding: 0 20px; }
.wnu-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--portal-accent, #f0b46a), transparent); }
.wnu-divider img { width: 56px; height: 56px; opacity: .9; }

.dd-text .dd-sub{font-family:inherit;font-size:1.05rem;letter-spacing:.12em;text-transform:uppercase;margin:.2rem 0 .1rem;opacity:.9}
.dd-text .dd-from{margin:.1rem 0 .6rem}

/* Skip to the books keeps the original gold outline (Edith, 2026-11-29: it matched the page better) */
.begin-start { text-decoration: none; }

/* the note under Skip to the books (Edith, 2026-11-29) */
.skip-note { margin: 10px 0 0; font-size: .86rem; font-style: italic; color: rgba(246,226,179,.85); text-shadow: 0 1px 6px rgba(0,0,0,.7); opacity: 0; transition: opacity 1s; }
.hero.stage-3 .skip-note { opacity: 1; }

/* ---- The Chimera Deck (Edith, 2026-11-29) ---- */
.dk-deck{border:1px solid rgba(34,211,238,.35);border-radius:22px;padding:2rem 1rem 2.4rem;margin-left:auto;margin-right:auto;max-width:1000px;
  background:linear-gradient(180deg,rgba(139,92,246,.10),rgba(7,6,12,.35));box-shadow:0 0 0 1px rgba(139,92,246,.22) inset,0 0 60px -12px rgba(139,92,246,.45)}
.dk-deck h2,.dk-deck .wing-desc{text-align:center}.dk-deck .wing-desc{font-style:italic;margin-left:auto;margin-right:auto}
.dk-deck .gift-frame{max-width:360px}
.dk-card{position:relative;margin:0 auto;aspect-ratio:5/8;border-radius:22px;background:linear-gradient(160deg,#2a2f3a,#14161c 55%,#1d1a2b);
  border:2px solid #22d3ee;box-shadow:0 0 0 6px #14161c,0 0 0 7.5px rgba(139,92,246,.8),0 0 50px 4px rgba(34,211,238,.3),0 20px 50px rgba(0,0,0,.6)}
.dk-deco{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:#22d3ee;stroke-width:1.2;opacity:.55}
.dk-deco .dk-nodes{fill:#22d3ee;stroke:none}
.dk-face{position:absolute;inset:15% 9% 15%;border-radius:12px;overflow:hidden;border:1px solid rgba(34,211,238,.5);background:#000}
.dk-face video{width:100%;height:100%;object-fit:cover;display:block}
.dk-corner{position:absolute;display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1}
.dk-corner.tl{top:12px;left:14px}.dk-corner.br{bottom:12px;right:14px;transform:rotate(180deg)}
.dk-ix{font-family:var(--display,serif);font-weight:700;font-size:1.9rem;color:#22d3ee;text-shadow:0 0 8px rgba(34,211,238,.6)}
.dk-suit{width:42px;height:46px}
.dk-pips{position:absolute;top:27%;display:flex;flex-direction:column;gap:12%;height:46%}
.dk-pips.l{left:4px}.dk-pips.r{right:4px}
.dk-pip{width:20px;height:20px;fill:none;stroke:#22d3ee;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(34,211,238,.9))}
.dk-name{position:absolute;left:17%;right:17%;bottom:6.5%;margin:0;text-align:center;font-family:var(--display,serif);letter-spacing:.14em;text-transform:uppercase;
  font-size:1rem;color:#f3ecff;padding:6px 0;border-top:1px solid rgba(34,211,238,.45);border-bottom:1px solid rgba(34,211,238,.45);
  background:linear-gradient(90deg,transparent,rgba(139,92,246,.35),transparent)}
@media (max-width:420px){.dk-deck .gift-frame{max-width:300px}.dk-suit{width:32px;height:35px}.dk-ix{font-size:1.5rem}.dk-pip{width:16px;height:16px}}
.dk-pm{display:inline-block;width:20px;height:20px;margin:0 8px;flex:none}
.dk-name{left:12%;right:12%;display:flex;align-items:center;justify-content:center}

/* Wolf Nation maps under the book rows (Edith, 2026-11-30) */
.nation-map{text-align:center;padding-top:.5rem}
.nation-map .eyebrow{margin-bottom:.8rem}
.nm-frame{display:block;max-width:1100px;margin:0 auto;border-radius:18px;overflow:hidden;position:relative;
  box-shadow:0 0 0 1px rgba(232,185,104,.35),0 18px 60px rgba(0,0,0,.55),0 0 80px -20px rgba(232,185,104,.35)}
.nm-frame img{display:block;width:100%;height:auto}
.nm-frame::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 60px rgba(0,0,0,.35)}
.nm-hint{font-size:.82rem;font-style:italic;opacity:.7;margin-top:.6rem}

/* The Chimera Deck: the card starts face down and turns over on a tap (Edith, 2026-11-30) */
.dk-flip{margin:0 auto;perspective:1400px}
.dk-inner{position:relative;aspect-ratio:5/8;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.dk-flip.turned .dk-inner{transform:rotateY(180deg)}
.dk-inner>.dk-back,.dk-inner>.dk-card{position:absolute;inset:0;margin:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.dk-inner>.dk-card{transform:rotateY(180deg);aspect-ratio:auto;cursor:pointer}
.dk-back{display:block;width:100%;height:100%;padding:0;border:0;border-radius:22px;cursor:pointer;
  background:#0d0b18 url(/static/art/chimera-deck/card-back.webp) center/cover no-repeat;
  box-shadow:0 0 0 6px #14161c,0 0 0 7.5px rgba(139,92,246,.8),0 0 50px 4px rgba(34,211,238,.3),0 20px 50px rgba(0,0,0,.6);
  transition:transform .25s ease,box-shadow .25s ease}
.dk-back:hover,.dk-back:focus-visible{transform:translateY(-4px);box-shadow:0 0 0 6px #14161c,0 0 0 7.5px rgba(139,92,246,1),0 0 70px 8px rgba(34,211,238,.45),0 24px 60px rgba(0,0,0,.6)}
.dk-tap{position:absolute;left:0;right:0;bottom:6%;text-align:center;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;
  color:#9ff3ff;text-shadow:0 0 10px rgba(34,211,238,.8);animation:dk-pulse 2.4s ease-in-out infinite}
@keyframes dk-pulse{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.dk-inner{transition:none}.dk-tap{animation:none}}
