/* Gamer’s Bar ambient scene. Artwork and motion stay behind every interactive layer. */
:root{--footer:48px}
body{isolation:isolate;background-color:#080c18}
body::before{content:"";position:fixed;inset:-2vmax;z-index:-3;pointer-events:none;background:linear-gradient(rgba(8,12,24,.12),rgba(8,12,24,.25)),url('/assets/background/glass-wide-1672.webp?v=0.25.1') center/cover no-repeat;opacity:.64;transform:translate3d(0,0,0) scale(1.012);animation:ambient-drift 78s ease-in-out infinite alternate;animation-play-state:paused}
body.ambient-running::before{animation-play-state:running}
.ambient-canvas{position:fixed;inset:0;z-index:-2;width:100%;height:100%;pointer-events:none;contain:strict}
@keyframes ambient-drift{0%{transform:translate3d(-1.4%,-.8%,0) scale(1.012)}50%{transform:translate3d(.7%,1.3%,0) scale(1.035)}100%{transform:translate3d(1.2%,-.7%,0) scale(1.012)}}
.ambient-toggle{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;background:rgba(22,216,255,.04);border:1px solid rgba(150,196,220,.2);border-radius:9px;color:#a8c6d5;cursor:pointer;touch-action:manipulation}
.ambient-toggle:hover{background:rgba(22,216,255,.13);color:#e0f8ff}.ambient-toggle:focus-visible{outline:2px solid #16d8ff;outline-offset:3px}.ambient-toggle[hidden]{display:none!important}
.ambient-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.ambient-play{display:none}.ambient-toggle[aria-pressed=true] .ambient-play{display:block}.ambient-toggle[aria-pressed=true] .ambient-pause{display:none}
.ambient-toggle-floating{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:40;background:#142333}
@media(max-width:1000px) and (max-resolution:1dppx) and (orientation:landscape){body::before{background-image:linear-gradient(rgba(8,12,24,.12),rgba(8,12,24,.25)),url('/assets/background/glass-wide-1280.webp?v=0.25.1')}}
@media(orientation:portrait){body::before{background-image:linear-gradient(rgba(8,12,24,.12),rgba(8,12,24,.25)),url('/assets/background/glass-portrait-941.webp?v=0.25.1')}}
@media(max-width:650px){.ambient-toggle{width:26px;height:26px;flex-basis:26px}:root{--footer:70px}.status-bar{min-height:70px}.connection-details{gap:8px}}
@media(prefers-reduced-motion:reduce){body::before{animation:none;transform:none}}
@media(prefers-reduced-transparency:reduce){body::before{opacity:.25}.ambient-canvas{opacity:.45}}
@media(forced-colors:active){body::before,.ambient-canvas,.ambient-toggle{display:none!important}}
@media print{body::before,.ambient-canvas,.ambient-toggle{display:none!important}}

/* Vector reflection overlay: native display-density edges, no input interception. */
.ambient-optics{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;overflow:hidden;opacity:.46;contain:strict}
.optic-flow{position:absolute;inset:0;will-change:transform;transform-origin:50% 50%;animation:optic-drift 42s ease-in-out infinite alternate paused}.optic-flow-b{animation-duration:61s;animation-delay:-17s;opacity:.6}
.ambient-running .optic-flow{animation-play-state:running}
@keyframes optic-drift{from{transform:translate3d(-14px,20px,0) rotate(-3deg)}to{transform:translate3d(20px,-16px,0) rotate(4deg)}}
@media(max-width:800px){.ambient-optics{opacity:.3}.optic-flow-b{display:none}}
@media(prefers-reduced-motion:reduce){.optic-flow{animation:none}}
@media(prefers-reduced-transparency:reduce){.ambient-optics{opacity:.15}}
@media(forced-colors:active){.ambient-optics{display:none}}
@media print{.ambient-optics{display:none}}

.optic-flow>svg{display:block;width:100%;height:100%;overflow:visible}
