/* PoC 7.8 · shared/base.css · from poc76b.html lines 13–52 */
:root{--ink:#f3eefc;--dim:#c9bfe0;--teal:#5ff3e6;--mag:#d58cff;--amber:#ffc27a;--red:#ff8a8a;--bg:#07051a;--glass:rgba(12,8,34,.74)}
*{box-sizing:border-box;margin:0}
html,body{background:var(--bg);color:var(--ink);font:16px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
#track{height:1600vh;position:relative}
html.snap{scroll-snap-type:y mandatory}html.snap.free{scroll-snap-type:none}
.snapm{position:absolute;left:0;width:1px;height:0;scroll-snap-align:start;scroll-snap-stop:always;pointer-events:none}
#stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;touch-action:pan-y pinch-zoom}
/* every scene is a painting in its own 1672x941 coordinate space, scaled to cover */
.scene{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none}
.frame{position:absolute;left:50%;top:50%;width:max(100vw,177.69vh);width:max(100vw,177.69svh);aspect-ratio:1672/941;transform:translate(-50%,-50%);will-change:transform;pointer-events:none}
.frame>img,.frame>video,.frame>canvas:not(.water),.frame>svg,.frame .lay{position:absolute;inset:0;width:100%;height:100%;display:block}
/* sc4/sc5 bases are drawn as is: the 8.1 depth canvas, the drone flights and the static view all show the same painting (no dim filter) */
/* the arch inside the gate: a window into the next world */
/* the clip is the measured inner arch of the painting (1672x941 image space, objectBoundingBox of the full-frame layer), so it follows the cover fit at every size */
.arch{position:absolute;inset:0;clip-path:url(#archClip);-webkit-clip-path:url(#archClip);pointer-events:none;visibility:hidden}
.arch .archin{position:absolute;left:43.48%;top:17.64%;width:13.04%;height:53.77%}
.arch img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .6s}
.frame>svg.archrim{opacity:0;pointer-events:none;overflow:visible}
.archrim path,.archrim circle{fill:none;vector-effect:none}
.archrim .ainner{stroke:rgba(150,255,250,.75);stroke-width:30}
.archrim .arim{stroke:rgba(110,255,240,.6);stroke-width:7}
.archrim .arimc{stroke:rgba(230,255,253,.95);stroke-width:1.5}
.archrim .afront{stroke:rgba(205,255,252,.9);stroke-width:5}
.archrim.warm .ainner{stroke:rgba(255,236,205,.7)}.archrim.warm .arim{stroke:rgba(255,214,160,.55)}.archrim.warm .arimc{stroke:rgba(255,248,232,.95)}.archrim.warm .afront{stroke:rgba(255,240,210,.9)}
.fx{position:absolute;inset:0;pointer-events:none}
.glow{position:absolute;border-radius:50%;transform:translate(-50%,-50%);mix-blend-mode:screen;pointer-events:none}
.portal{left:49.6%;top:40%;width:34%;aspect-ratio:1;background:radial-gradient(circle,rgba(150,255,250,.55),rgba(95,243,230,.18) 35%,transparent 65%);animation:pulse 3.6s ease-in-out infinite}
.ring{left:49.6%;top:40%;width:9%;aspect-ratio:1;border:2px solid rgba(180,255,250,.7);box-shadow:0 0 18px rgba(95,243,230,.8);animation:ring 3.6s ease-out infinite}
.lamp{width:7%;aspect-ratio:1;background:radial-gradient(circle,rgba(255,200,120,.75),rgba(255,150,60,.2) 40%,transparent 70%);animation:lampf 3.1s ease-in-out infinite}
.lamp:nth-of-type(2n){animation-duration:2.6s;animation-delay:-.6s}
.lamp:nth-of-type(3n){animation-duration:4.1s;animation-delay:-1.1s}
.lamp:nth-of-type(5n){animation-duration:3.6s;animation-delay:-2.3s}
.lamp:nth-of-type(7n){animation-duration:2.9s;animation-delay:-1.7s}
.cry{width:9%;aspect-ratio:1;background:radial-gradient(circle,rgba(120,255,245,.6),rgba(95,243,230,.15) 40%,transparent 70%);animation:pulse 3.4s ease-in-out infinite}
.cry:nth-of-type(2n){animation-delay:-1.4s}.cry:nth-of-type(3n){animation-delay:-2.6s}
.fire{width:5%;aspect-ratio:1;background:radial-gradient(circle,rgba(255,190,110,.8),rgba(255,120,40,.2) 45%,transparent 70%);animation:firef .9s infinite}
.fire:nth-of-type(2n){animation-duration:1.13s;animation-delay:-.4s}
