/* PulseTrek home: environment backgrounds (live-env1). Applies only once env.js adds body.hdri-on. */
/* Environment backgrounds: fade is done in-shader on the background only; no canvas mask */
body.hdri-on #c{-webkit-mask-image:none!important;mask-image:none!important}
/* live-env1: glow geometry is static on the home page (body.env-home) so it does not resize when env.js boots. */
body.env-home .glow{inset:-12% 0!important;max-width:none!important;background:radial-gradient(closest-side ellipse,rgba(32,72,190,.75),rgba(16,38,120,.4) 45%,rgba(3,4,9,0) 100%)!important}
/* stage reaches up behind heading; heading stays on top + readable, drags pass through to the canvas */
/* live-env1: layout part is keyed to body.env-home (static in index.html) so the hero does not jump when env.js boots. */
body.env-home .hero h1,body.env-home .hero .sub{position:relative;z-index:3;pointer-events:none}
body.hdri-on .hero h1,body.hdri-on .hero .sub{text-shadow:0 2px 18px rgba(3,4,9,.65)}
body.env-home .hero{padding-top:10px}
body.env-home .hero h1{margin-top:2px}
body.env-home .hero .sub{margin-top:8px}

/* Hero contrast over environments: local text halos + dark glass, never an HDRI/canvas overlay. */
body.hdri-on .hero > .sub{
 color:#f5f7fb;
 text-shadow:0 1px 2px rgba(0,0,0,.98),0 0 4px rgba(0,0,0,.95),0 2px 10px rgba(0,0,0,.85);
}
/* hdri47: headline gets the subtitle's exact three-layer halo (colour unchanged). */
body.hdri-on .hero > h1{
 text-shadow:0 1px 2px rgba(0,0,0,.98),0 0 4px rgba(0,0,0,.95),0 2px 10px rgba(0,0,0,.85);
}
body.hdri-on .hero > #chat{
 background:rgba(9,14,25,.62);
 border-color:rgba(255,255,255,.28);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 3px 16px rgba(0,0,0,.16);
}
body.hdri-on .hero > #chat > textarea,
body.hdri-on .hero > #chat > input{
 color:#f6f8fc;opacity:1;
 text-shadow:0 1px 3px rgba(0,0,0,.75);
}
body.hdri-on .hero > #chat > textarea::placeholder,
body.hdri-on .hero > #chat > input::placeholder{
 color:#edf1f7;opacity:1;
}
body.hdri-on .hero > #chat > .spark{color:#f6f8fc}
body.hdri-on .hero > #chat > button{
 color:#fff;background:rgba(255,255,255,.20);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
