/* =========================================================================
   THE GRIMOIRE — two readings of one body.
   Mundus  = the vertical scroll WordPress already renders (the record).
   Mythica = the same content repaginated into facing spreads (the codex).
   The <body> class is the Sight: .mundus | .mythica. Nothing about the post
   is duplicated — the reader below reads the .entry-content DOM and lays it
   out differently. This stylesheet dresses both states.
   ========================================================================= */

:root {
  --ink:        #eae4d3;
  --ink-dim:    #b7bac8;
  --gold:       #e8c476;
  --gold-bright:#f4dfa8;
  --parch:      #f3ead6;   /* the page — warm vellum */
  --parch-edge: #d9c9a4;
  --page-ink:   #2a2216;   /* text on the page */
  --page-faint: #6b5c40;
  --night:      #070b1a;
  --serif:      "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: #0d1020;
}

/* ============================ theme chrome ============================ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: #0b0e1c; border-bottom: 1px solid rgba(150,160,200,.14);
}
.site-brand { font-size: 17px; letter-spacing: .12em; color: var(--gold-bright); }
.site-nav { font-size: 12px; letter-spacing: .06em; color: var(--ink-dim); }
.site-footer {
  padding: 26px; text-align: center; font-size: 11px; letter-spacing: .08em;
  color: var(--ink-dim); background: #0b0e1c; border-top: 1px solid rgba(150,160,200,.14);
}
/* the footer + theme header are Mundus furniture; the codex is full-bleed */
body.mythica .site-footer { display: none; }

/* ============================= the Sight ============================= */
.sight {
  position: fixed; z-index: 60;
  top: 74px; right: 24px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(150,160,200,.18);
  background: rgba(10,14,28,.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sight-label {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-dim); margin-right: 4px;
}
.sight-btn {
  font-family: var(--serif); font-size: 13px; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
  transition: color .3s, background .3s, box-shadow .3s;
}
.sight-btn .sight-glyph { font-size: 14px; opacity: .8; }
.sight-btn:hover { color: var(--ink); }
.sight-btn.is-on {
  color: var(--night);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 16px rgba(232,196,118,.35);
}
.sight-btn.is-on .sight-glyph { opacity: 1; }

/* =========================================================================
   MUNDUS — the vertical reading. The record as WordPress renders it.
   ========================================================================= */
.entry { max-width: 760px; margin: 0 auto; padding: 54px 22px 40px; }
.entry-content { color: #d8d3c4; }
.entry-title {
  font-weight: 400; font-size: 40px; line-height: 1.12; letter-spacing: .01em;
  color: var(--gold-bright); margin: 0 0 6px;
}
.entry-meta {
  font-style: italic; color: var(--ink-dim); margin: 0 0 30px; font-size: 15px;
}
.entry-content h2 {
  font-weight: 400; font-size: 25px; color: var(--gold);
  margin: 40px 0 12px; letter-spacing: .01em;
}
.entry-content p { font-size: 18px; line-height: 1.72; margin: 0 0 20px; }
.entry-content strong { color: #efe7d3; font-weight: 600; }
.wp-block-image { margin: 0 0 28px; }
.wp-block-image img { width: 100%; height: auto; display: block; border-radius: 3px; }
.wp-block-image figcaption {
  font-style: italic; font-size: 13.5px; color: var(--ink-dim);
  text-align: center; margin-top: 8px;
}

/* In Mundus, the codex layer is absent from the flow. Scoped to the Sight so
   the Mythica display:block (below) can't leak back into the scroll. */
#grimoire-stage, .g-transport { display: none; }

/* =========================================================================
   MYTHICA — the codex reading. Full-bleed night; a book of facing pages
   floats in it. The reader builds #grimoire-stage and fills it with .g-page
   spreads; here we dress them.
   ========================================================================= */
body.mythica { overflow: hidden; }
body.mythica .entry,
body.mythica .site-header { display: none; }

body.mythica #grimoire-stage {
  display: block;
  position: fixed; inset: 0; z-index: 20;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, #16224e 0%, rgba(20,16,44,0) 60%),
    radial-gradient(ellipse 90% 60% at 50% 120%, #0d1730 0%, rgba(12,18,42,0) 55%),
    linear-gradient(180deg, #070f22 0%, #050a16 60%, #03060f 100%);
  overflow: hidden;
  opacity: 0;
  transition: opacity .5s ease;
}
body.mythica #grimoire-stage.is-in { opacity: 1; }

/* the book: a centered spread that holds two facing pages (one on narrow) */
.g-book {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: 0;
  perspective: 2600px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}

/* a page — warm vellum, generous margins, the ink of a real book */
.g-page {
  position: relative;
  width: var(--page-w, 440px);
  height: var(--page-h, 640px);
  background:
    linear-gradient(90deg, rgba(0,0,0,.14), rgba(0,0,0,0) 6%, rgba(0,0,0,0) 94%, rgba(0,0,0,.10)),
    linear-gradient(180deg, #f6eede, var(--parch) 40%, #efe4cc);
  color: var(--page-ink);
  padding: 46px 42px 40px;
  overflow: hidden;
  border: 1px solid var(--parch-edge);
}
/* recto/verso gutter shading — the valley between facing pages */
.g-page.recto { border-top-right-radius: 4px; border-bottom-right-radius: 4px;
  box-shadow: inset 14px 0 26px -18px rgba(60,44,20,.7); }
.g-page.verso { border-top-left-radius: 4px; border-bottom-left-radius: 4px;
  box-shadow: inset -14px 0 26px -18px rgba(60,44,20,.7); }

/* page content inherits the book's hand */
.g-page :where(h1,h2,h3) { font-weight: 400; color: #3a2c14; letter-spacing: .01em; }
.g-page h1 { font-size: 30px; line-height: 1.12; margin: 0 0 6px; }
.g-page .entry-meta { color: var(--page-faint); font-size: 13.5px; margin: 0 0 16px; }
.g-page h2 { font-size: 21px; color: #5a3f18; margin: 4px 0 10px; }
.g-page p { font-size: 15.5px; line-height: 1.6; margin: 0 0 13px; text-align: justify;
  hyphens: auto; -webkit-hyphens: auto; }
.g-page strong { color: #2a2216; font-weight: 700; }
.g-page em { color: #3a2c14; }
.g-page .wp-block-image { margin: 0 0 14px; }
.g-page .wp-block-image img { width: 100%; height: auto; border-radius: 2px;
  filter: saturate(.92) contrast(1.02); }
.g-page .wp-block-image figcaption { font-size: 12px; color: var(--page-faint);
  text-align: center; margin-top: 5px; font-style: italic; }

/* the injected title-block (opening leaf) when the theme keeps the H1 outside
   the content container */
.g-page .g-titleblock { margin: 0 0 12px; }
.g-page .g-titleblock h1 { font-size: 30px; line-height: 1.12; margin: 0 0 6px; }
.g-page .g-titleblock .entry-meta { color: var(--page-faint); font-size: 13.5px; margin: 0; }

/* AUTHOR-COLOUR NEUTRALISATION — VELLUM ONLY. On the light vellum page the
   post's own colours (a white-on-dark post would vanish) are overridden to the
   page's ink so any post reads. UNDERLAND does the opposite: it ADOPTS the
   post's own background, colour and font (below), so the codex looks like the
   post itself — there we must NOT neutralise. */
#grimoire-stage.theme-vellum .g-page :where(p, li, blockquote, span, em, i) { color: var(--page-ink) !important; }
#grimoire-stage.theme-vellum .g-page :where(h1, h2, h3, h4) { color: #4a3312 !important; }
#grimoire-stage.theme-vellum .g-page :where(strong, b) { color: #241d12 !important; }
#grimoire-stage.theme-vellum .g-page a { color: #6b4e1e !important; text-decoration: underline; text-decoration-thickness: .5px; }
/* any figure image, however the block wraps it */
.g-page figure img, .g-page .wp-block-image img { width: 100%; height: auto; border-radius: 2px;
  filter: saturate(.94) contrast(1.02); }

/* the folio line — page number, whispered */
.g-folio {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; font-size: 11px; letter-spacing: .18em;
  color: var(--page-faint);
}
.g-page.verso .g-folio { text-align: left; left: 42px; }
.g-page.recto .g-folio { text-align: right; right: 42px; }

/* turning: the page rotates about the gutter (Y axis at its inner edge) */
.g-page.turning { z-index: 5; }
.g-turn-fx {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.3,0,.2,1);
  transform-origin: left center;
}
.g-turn-fx.verso-origin { transform-origin: right center; }

/* =========================================================================
   THEMING — the framing is a preset. `vellum` (above) is the clean default;
   `underland` is the ePub reading: the book afloat on the post's own world,
   aged pages, a living gilt-vine frame. Other designs drop in as new themes.
   ========================================================================= */

/* the backdrop — the POST'S OWN background, painted OPAQUELY (so the Mundus
   content behind can't leak through), using Code Engine Pro's OWN computed
   size/position (captured, not re-invented) so it matches the scroll across
   screens. A soft dim keeps the book the focus. */
.g-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.g-backdrop::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--post-bg, none);
  background-size: var(--post-bg-size, cover);
  background-position: var(--post-bg-pos, center);
  background-repeat: var(--post-bg-repeat, no-repeat);
  filter: brightness(.72);
}
.g-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 84% 80% at 50% 46%, rgba(4,7,14,0), rgba(4,6,12,.26) 70%, rgba(2,4,9,.54) 100%);
}
body.mythica #grimoire-stage.theme-underland { background: #06070d; }
#grimoire-stage.theme-underland .g-book { z-index: 2; }

/* PAGES ADOPT THE POST. --page-bg / --page-fg / --page-font are captured from
   the live post so the codex looks like the vertical scroll: the post's own
   panel colour, text colour and typeface. Nodes keep their own inline colours;
   only the page's ground and default ink come from the post. */
#grimoire-stage.theme-underland .g-page {
  background: var(--page-bg, #0e0e12);
  color: var(--page-fg, #f2efe8);
  font-family: var(--page-font, inherit);
  border: 1px solid rgba(206,172,110,.28);
  box-shadow: inset 0 0 60px rgba(0,0,0,.42);
}
#grimoire-stage.theme-underland .g-page.recto { box-shadow: inset 16px 0 34px -20px rgba(0,0,0,.85), inset 0 0 60px rgba(0,0,0,.42); }
#grimoire-stage.theme-underland .g-page.verso { box-shadow: inset -16px 0 34px -20px rgba(0,0,0,.85), inset 0 0 60px rgba(0,0,0,.42); }
/* text elements inherit the post's ink instead of the vellum ink; headings and
   the injected title keep the post's face and weight */
#grimoire-stage.theme-underland .g-page :where(p, li, blockquote, h1, h2, h3, h4, .g-titleblock h1) {
  color: inherit; font-family: inherit;
}
#grimoire-stage.theme-underland .g-page :where(h1, h2, h3, .g-titleblock h1) { color: inherit; }
/* HYPERLINKS must read as links — the concept is grimoires linking to grimoires
   (and to Mythipedia). Gilt, underlined, so a term is visibly a door. Forced
   over the post's own link colour so it always shows on the black page. */
#grimoire-stage.theme-underland .g-page a,
#grimoire-stage.theme-underland .g-page a:link,
#grimoire-stage.theme-underland .g-page a:visited {
  color: #e8c476 !important;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 2px; text-decoration-color: rgba(232,196,118,.55);
  cursor: pointer;
}
#grimoire-stage.theme-underland .g-page a:hover {
  color: #f4dfa8 !important; text-decoration-color: #f4dfa8;
  text-shadow: 0 0 12px rgba(232,196,118,.4);
}
#grimoire-stage.theme-underland .g-folio { color: rgba(206,172,110,.72); }
/* the BOOK is a brown leather tome: a board that frames the black pages, on the
   post's own world behind. Brown book · black pages · the story's world beyond. */
#grimoire-stage.theme-underland .g-book::before {
  content: ''; position: absolute; inset: -24px -28px -28px -28px; z-index: -1;
  border-radius: 11px;
  background: linear-gradient(158deg, #5c4126 0%, #422d18 52%, #291b0e 100%);
  box-shadow:
    0 34px 78px rgba(0,0,0,.62),
    inset 0 0 0 2px rgba(122,86,44,.55),
    inset 0 0 0 6px rgba(198,158,96,.20),
    inset 0 2px 10px rgba(255,226,170,.10);
}
/* the spine valley down the gutter of the tome */
#grimoire-stage.theme-underland .g-book::after {
  content: ''; position: absolute; top: -18px; bottom: -22px; left: 50%; width: 24px;
  transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(20,12,4,.55) 45%, rgba(20,12,4,.55) 55%, rgba(0,0,0,0));
}
#grimoire-stage.theme-underland .g-page { border-color: rgba(140,100,52,.4); }

/* the living frame — coded gilt-vine (placeholder for the author's own art).
   Overhangs the book onto the backdrop; never intercepts the reader. */
.g-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 6; pointer-events: none; }
#grimoire-stage:not(.theme-underland) .g-frame { display: none; }   /* vellum stays bare */
.g-vine { position: absolute; width: 190px; height: 190px; opacity: .92;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.g-vine svg { width: 100%; height: 100%; display: block; }
.g-vine-tl { top: -26px; left: -26px; }
.g-vine-tr { top: -26px; right: -26px; transform: scaleX(-1); }
.g-vine-bl { bottom: -26px; left: -26px; transform: scaleY(-1); }
.g-vine-br { bottom: -26px; right: -26px; transform: scale(-1, -1); }

/* ===================== media viewer (the "FooBox") ==================== */
/* Click an image in the codex and it opens here. This is the seed of the
   media-object opener the Calliope canvas will share — images now, video and
   live frames later (same overlay, richer content). */
.g-lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 5vh 5vw;
  background: rgba(3,5,10,.88);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  cursor: zoom-out; opacity: 0; transition: opacity .32s;
}
.g-lightbox.is-in { opacity: 1; }
.g-lightbox img, .g-lightbox video, .g-lightbox audio, .g-lightbox .g-embed {
  max-width: 92vw; max-height: 82vh; border-radius: 4px;
  box-shadow: 0 34px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(206,172,110,.25);
  transform: scale(.955); transition: transform .32s cubic-bezier(.2,0,.2,1);
}
.g-lightbox .g-embed { width: min(92vw, 1200px); aspect-ratio: 16 / 9; height: auto; border: 0; }
.g-lightbox audio { width: min(92vw, 560px); box-shadow: none; }
.g-lightbox.is-in img, .g-lightbox.is-in video, .g-lightbox.is-in audio, .g-lightbox.is-in .g-embed { transform: scale(1); }

/* media POSTER in the page — a still that opens the player in the viewer */
.g-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 14px;
  border-radius: 3px; overflow: hidden; cursor: pointer;
  background: linear-gradient(158deg, #1b1712, #0c0a08);
  box-shadow: inset 0 0 0 1px rgba(206,172,110,.28);
}
.g-media-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; padding-left: 3px; color: #14100a;
  background: rgba(232,196,118,.94);
  box-shadow: 0 6px 22px rgba(0,0,0,.5), 0 0 0 6px rgba(232,196,118,.16);
  transition: transform .25s, box-shadow .25s;
}
.g-media:hover .g-media-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 6px 26px rgba(0,0,0,.55), 0 0 0 9px rgba(232,196,118,.2); }
.g-media-audio .g-media-play { font-size: 22px; padding-left: 0; }
.g-lightbox-cap {
  color: #d8d3c4; font-family: var(--serif); font-style: italic; font-size: 14px;
  text-align: center; max-width: 70ch;
}
.g-lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(206,172,110,.4); background: rgba(10,14,28,.6);
  color: var(--gold); font-size: 18px; cursor: pointer;
}

/* ============================ transport ============================= */
.g-transport {
  position: fixed; z-index: 40; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(150,160,200,.18);
  background: rgba(10,14,28,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body:not(.mythica) .g-transport { display: none; }
.g-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--gold); cursor: pointer;
  border: 1px solid rgba(232,196,118,.3); background: transparent;
  transition: box-shadow .3s, border-color .3s, opacity .3s;
}
.g-arrow:hover { border-color: rgba(232,196,118,.7); box-shadow: 0 0 14px rgba(232,196,118,.2); }
.g-arrow[disabled] { opacity: .3; cursor: default; box-shadow: none; }
.g-count {
  font-size: 12px; letter-spacing: .06em; color: var(--ink);
  min-width: 92px; text-align: center;
}

/* invisible click-zones on the outer thirds of the book, for tap-to-turn */
.g-flip-zone {
  position: absolute; top: 0; bottom: 0; width: 22%; z-index: 8; cursor: pointer;
}
.g-flip-zone.prev { left: 0; }
.g-flip-zone.next { right: 0; }

/* a hint the first time */
.g-hint {
  position: fixed; z-index: 40; left: 50%; top: 30px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .1em; color: var(--ink-dim);
  opacity: .0; transition: opacity .6s; pointer-events: none;
}
.g-hint.show { opacity: .8; }

/* measuring frame — an off-screen page-sized box the reader flows text into
   to decide where pages break. Never seen. */
.g-measure {
  position: fixed; visibility: hidden; pointer-events: none;
  left: -9999px; top: 0;
  overflow: hidden;
}

/* =========================================================================
   COMIC READ-BACK (SEAM:READER) — a mythica_comic's authored pages -> panels
   rendered as flipbook leaves. Each leaf holds one 3:4 page canvas; panels are
   placed by rect (% of the canvas), the art fills an overflow-clip with the
   Pocket's authored crop, and captions overlay by %. Read-only: no editor
   chrome. Mirrors the Pocket's Comic Press so a page reads back as composed.
   ========================================================================= */

/* on a comic, the art wants the whole leaf — drop the prose margins */
body.gr-comic .g-page { padding: 12px; }
/* full-bleed: no matte at all, the page runs to the leaf edge */
body.gr-bleed .g-page { padding: 0; }

.g-page-inner.g-comic {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

/* the page canvas — a 3:4 field (the Pocket's authoring ratio), letterboxed to
   fit the leaf so panel percentages land exactly where they were composed */
.g-comic-page {
  position: relative;
  /* width/height are set in JS to the page's TRUE aspect, contained in the leaf
     (pure CSS can't fit an arbitrary-aspect box in a differently-shaped parent) */
  max-width: 100%; max-height: 100%;
  background: #0b0e1c;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,.5);
  /* the page is a query container: captions size in cq units so text zooms WITH
     the art at any leaf size, instead of staying a fixed pixel size */
  container-type: size;
}

/* a panel — the same gold frame the Pocket draws, no handles */
.g-comic-panel {
  position: absolute;
  border: 1.5px solid rgba(232,196,122,.55);
  border-radius: 3px;
  overflow: hidden;
  background: #05060d;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.g-comic-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 1.5px; }
.g-comic-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  user-select: none; -webkit-user-select: none; pointer-events: none;
}

/* captions — the three kinds, lifted from the Pocket's Comic Press (read-only).
   Sizes are in cqw (1cqw = 1% of the page width) with a clamp so text stays
   legible at any leaf size: it matches the Pocket at ~360px wide and scales
   proportionally as you grow or shrink the page. Tune the middle cqw value to
   make all caption text bigger/smaller relative to the art. */
.g-ccap {
  position: absolute; z-index: 4; max-width: 82%; min-width: 6cqw;
  pointer-events: none;
}
.g-ccap .g-ccap-txt { display: block; overflow-wrap: break-word; }
.g-ccap-speech {
  background: #f4ead2; color: #241a08;
  border: 0.4cqw solid #caa64f; border-radius: 3.8cqw;
  padding: 1.9cqw 3.3cqw; font-family: var(--serif);
  font-size: clamp(8px, 3.4cqw, 20px); line-height: 1.35;
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
}
.g-ccap-speech::after {
  content: ""; position: absolute; left: 4.4cqw; bottom: -2.2cqw; width: 3.6cqw; height: 3.6cqw;
  background: #f4ead2; border-right: 0.4cqw solid #caa64f; border-bottom: 0.4cqw solid #caa64f;
  transform: rotate(45deg) skew(14deg,14deg);
}
.g-ccap-narration {
  background: linear-gradient(165deg, rgba(240,212,147,.16), rgba(240,212,147,.05)), #141b3d;
  color: var(--ink); border: 0.28cqw solid rgba(240,212,147,.55);
  padding: 1.9cqw 3cqw; font-family: var(--serif); font-style: italic;
  font-size: clamp(8px, 3.3cqw, 19px); line-height: 1.4; box-shadow: 0 3px 10px rgba(0,0,0,.45);
}
.g-ccap-caption {
  color: var(--gold); font-family: var(--serif);
  font-size: clamp(8px, 3.4cqw, 20px); letter-spacing: .05em;
  padding: 0.5cqw 1.4cqw;
  text-shadow: 0 1px 6px rgba(0,0,0,.85), 0 0 16px rgba(240,212,147,.3);
}
/* the codex forces prose links gilt; comic captions are not links — keep them */
#grimoire-stage.theme-underland .g-page .g-ccap :where(a) { color: inherit !important; }

@media (max-width: 720px) {
  .sight { top: auto; bottom: 20px; right: 50%; transform: translateX(50%); }
  body.mythica .g-transport { bottom: 84px; }
}
