/* PoC 7.8 · shared/ambient.css · from poc76b.html lines 144–185 */
/* living environments: ambient layers stay low (opacity at most .18), slow, GPU-friendly */
.scene:not(.live) *,.scene:not(.live) *::before,.scene:not(.live) *::after{animation-play-state:paused!important}
.amb{position:absolute;pointer-events:none}
.sweep{inset:0 -60%;background:linear-gradient(100deg,transparent 40%,rgba(225,255,252,.13) 50%,transparent 60%);animation:sweep 16s linear infinite}
.sweep.warm{background:linear-gradient(100deg,transparent 40%,rgba(255,214,160,.14) 50%,transparent 60%);opacity:0;animation:sweep 16s linear infinite,temp 20s ease-in-out infinite alternate}
.paperl{inset:-30% -60%;background:linear-gradient(125deg,transparent 38%,rgba(255,250,232,.15) 50%,transparent 62%);animation:paper 14s ease-in-out infinite alternate}
.ray{top:-4%;height:78%;width:6%;transform-origin:50% 0;background:linear-gradient(180deg,rgba(190,255,250,.16),rgba(150,255,250,.05) 60%,transparent);filter:blur(6px);animation:sway 11s ease-in-out infinite alternate}
.ray.b{animation-duration:13s;animation-delay:-5s}
.shim{left:41%;width:18%;top:71%;height:29%;overflow:hidden;clip-path:polygon(44% 0,56% 0,100% 100%,0 100%)}
.shim::before{content:"";position:absolute;left:0;right:0;top:-40%;height:40%;background:linear-gradient(180deg,transparent,rgba(210,255,250,.16),transparent);animation:shim 7s ease-in infinite}
.spot{left:0;width:46%;top:58%;height:40%;border-radius:50%;background:radial-gradient(ellipse,rgba(200,250,255,.12),transparent 70%);animation:spot 16s ease-in-out infinite alternate}
.glint{width:2.2%;aspect-ratio:1;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(230,255,255,.9) 0 6%,transparent 22%),linear-gradient(90deg,transparent 46%,rgba(220,255,255,.75) 50%,transparent 54%),linear-gradient(0deg,transparent 46%,rgba(220,255,255,.75) 50%,transparent 54%);opacity:0;animation:glint 4.2s ease-in-out infinite}
.glint:nth-of-type(2){animation-duration:3.1s;animation-delay:-1.2s}.glint:nth-of-type(3){animation-duration:5s;animation-delay:-2.6s}.glint:nth-of-type(4){animation-duration:2.6s;animation-delay:-.8s}
.mist{left:55.7%;top:91%;width:13%;aspect-ratio:2;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,rgba(235,235,255,.18),transparent 70%);animation:mist 6s ease-out infinite}
.mist.b{animation-delay:-3s}
.win{width:1.6%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,214,150,.9),rgba(255,170,80,.25) 45%,transparent 70%);mix-blend-mode:screen;animation:twink 3s ease-in-out infinite}
.win:nth-of-type(2n){animation-duration:2.2s;animation-delay:-.7s}.win:nth-of-type(3n){animation-duration:3.8s;animation-delay:-1.9s}.win:nth-of-type(5n){animation-duration:2.7s;animation-delay:-1.1s}
.fog.cl{animation:cloud 24s ease-in-out infinite alternate;opacity:.8}
.fog.rev{animation-direction:alternate-reverse;animation-duration:31s}
@keyframes lampf{0%,100%{opacity:.82;transform:translate(-50%,-50%) scale(1)}23%{opacity:.66;transform:translate(-50%,-50%) scale(.95)}41%{opacity:.9;transform:translate(-50%,-50%) scale(1.04)}67%{opacity:.7;transform:translate(-50%,-50%) scale(.97)}84%{opacity:.95;transform:translate(-50%,-50%) scale(1.06)}}
@keyframes firef{0%,100%{opacity:.85;transform:translate(-50%,-50%) scale(1)}17%{opacity:.6;transform:translate(-50%,-50%) scale(.9)}29%{opacity:.95}52%{opacity:.7;transform:translate(-50%,-50%) scale(1.08)}71%{opacity:1}88%{opacity:.65}}
@keyframes sweep{0%{transform:translateX(-30%)}55%,100%{transform:translateX(30%)}}
@keyframes temp{to{opacity:1}}
@keyframes paper{to{transform:translate(18%,6%)}}
@keyframes sway{0%{transform:rotate(-5deg);opacity:.75}100%{transform:rotate(5deg);opacity:1}}
@keyframes shim{0%,55%{transform:translateY(0)}100%{transform:translateY(350%)}}
@keyframes spot{to{transform:translateX(118%)}}
@keyframes glint{0%,70%,100%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(0)}82%{opacity:.85;transform:translate(-50%,-50%) scale(1) rotate(25deg)}}
@keyframes mist{0%{opacity:0;transform:translate(-50%,-30%) scale(.7)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-110%) scale(1.5)}}
@keyframes twink{0%,100%{opacity:.35}50%{opacity:.85}}
@keyframes cloud{to{transform:translateX(30px)}}
@keyframes bpulse{0%,100%{stroke-opacity:.5}50%{stroke-opacity:1}}
@keyframes breath{50%{transform:scale(1.02)}}
.smoke{position:absolute;left:73.8%;top:17%;width:4%;height:12%;transform:translate(-50%,-100%)}
.smoke i{position:absolute;left:50%;bottom:0;width:60%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(220,215,235,.35),transparent 70%);animation:smoke 5s linear infinite}
.smoke i:nth-child(2){animation-delay:-1.7s}.smoke i:nth-child(3){animation-delay:-3.4s}
.fog{position:absolute;left:-20%;width:140%;height:30%;background:radial-gradient(ellipse at 30% 50%,rgba(200,185,235,.22),transparent 60%),radial-gradient(ellipse at 75% 60%,rgba(200,185,235,.18),transparent 60%);filter:blur(8px);animation:drift 26s ease-in-out infinite alternate}
@keyframes pulse{0%,100%{opacity:.55;transform:translate(-50%,-50%) scale(.94)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.06)}}
@keyframes ring{0%{opacity:.9;transform:translate(-50%,-50%) scale(.6)}100%{opacity:0;transform:translate(-50%,-50%) scale(3.2)}}
@keyframes flick{0%,100%{opacity:.8}20%{opacity:.55}35%{opacity:.95}60%{opacity:.65}80%{opacity:1}}
@keyframes smoke{0%{transform:translate(-50%,0) scale(.4);opacity:0}15%{opacity:1}100%{transform:translate(-20%,-260%) scale(2.4);opacity:0}}
@keyframes drift{to{transform:translateX(12%)}}
