/* Additive world layer. The complete Regular layout remains in site.css. */
html { background-color:var(--forest-deep); }
body.abyss-page { background:transparent; isolation:isolate; }
#abyss-world,.abyss-still { position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
#abyss-world { display:block; opacity:0; }
.abyss-still { background-color:var(--forest-deep); background-image:radial-gradient(ellipse at 12% 35%,rgba(201,169,97,.16),transparent 42%),radial-gradient(ellipse at 90% 70%,rgba(61,112,80,.4),transparent 52%); }
html.abyss-live #abyss-world { opacity:1; }
html.abyss-live .abyss-still { opacity:0; }
.abyss-page main,.abyss-page .footer { position:relative; z-index:1; }
/* Open the existing forest bands and gutters; keep reading surfaces quiet. */
.abyss-page .section--green,.abyss-page .proof-strip,.abyss-page .garden-band { background:rgba(12,25,18,.66); }
.abyss-page .section--paper { background:linear-gradient(90deg,rgba(251,248,236,.50),rgba(251,248,236,.97) 12%,rgba(251,248,236,.97) 88%,rgba(251,248,236,.50)); }
.abyss-page .section--pale { background:linear-gradient(90deg,rgba(229,235,214,.5),rgba(229,235,214,.96) 12%,rgba(229,235,214,.96) 88%,rgba(229,235,214,.5)); }
.abyss-page .page-section:not(.section--green):not(.section--paper):not(.section--pale) { background:rgba(244,239,225,.96); }
.abyss-page .footer { background:rgba(12,25,18,.85); }
.abyss-page .page-section:has(> .container > .callout) { background:rgba(12,25,18,.66); }
.abyss-hud { display:none; position:fixed; top:calc(var(--header-h) + 12px); right:16px; z-index:15; gap:16px; max-width:calc(100% - 32px); padding:8px 12px; border:1px solid rgba(201,169,97,.55); background:var(--forest-deep); color:var(--cream); font:400 10px/1.4 var(--mono); letter-spacing:.06em; pointer-events:none; }
html.abyss-live .abyss-hud { display:flex; }
.abyss-hud [data-abyss-zone] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:38ch; }
.abyss-hud [data-abyss-progress] { color:var(--gold-soft); min-width:4ch; }
html.menu-open .abyss-hud,body:has(.nav-more.is-open) .abyss-hud { visibility:hidden; }
.abyss-credit { max-width:var(--container); margin:28px auto 0; padding:0 var(--gutter); color:var(--cream); font-size:12px; }
/* Fail open even if the inherited observer or module fails. */
.abyss-page .reveal,.abyss-page [data-process] { opacity:1; visibility:visible; transform:none; }
html.abyss-calm *,html.abyss-calm *::before,html.abyss-calm *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
@media(max-width:880px) {
 .abyss-hud { top:calc(var(--header-h) + 8px); right:12px; padding:6px 8px; gap:10px; font-size:9px; max-width:calc(100% - 24px); }
 .abyss-hud [data-abyss-zone] { max-width:24ch; }
 .abyss-page .section--paper { background:linear-gradient(90deg,rgba(251,248,236,.65),rgba(251,248,236,.98) 7%,rgba(251,248,236,.98) 93%,rgba(251,248,236,.65)); }
 .abyss-page .section--pale { background:linear-gradient(90deg,rgba(229,235,214,.65),rgba(229,235,214,.98) 7%,rgba(229,235,214,.98) 93%,rgba(229,235,214,.65)); }
}
@media(prefers-reduced-motion:reduce) { .abyss-page *, .abyss-page *::before,.abyss-page *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }
