
/* Ambient light runs only on visible scenes. */
.light-bar {display:flex;align-items:center;justify-content:space-between;gap:14px}
.light-toggle {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:4px 2px;color:inherit;background:transparent;border:0;font:600 12px/1.3 DM,sans-serif;cursor:pointer}
.light-toggle[hidden] {display:none}
.light-icon {width:9px;height:11px;border-inline:3px solid currentColor}
html[data-light-paused] .light-icon {width:0;height:0;border:0;border-left:8px solid currentColor;border-block:5px solid transparent}
[data-ambient] {--light-play:paused}
[data-ambient].in-light {--light-play:running}
html[data-light-paused] [data-ambient],html[data-light-hidden] [data-ambient] {--light-play:paused}
@keyframes beam-travel {
  0% {transform:translate3d(-14%,-3%,0) rotate(-13deg);opacity:.48}
  100% {transform:translate3d(13%,5%,0) rotate(4deg);opacity:1}
}
@keyframes glass-glide {
  0%,100% {transform:translate3d(-38%,0,0);opacity:.18}
  50% {transform:translate3d(38%,0,0);opacity:.84}
}
@keyframes candle-glow {
  0%,100% {transform:translate3d(-7%,1%,0) scale(.94);opacity:.34}
  46% {transform:translate3d(9%,-4%,0) scale(1.05);opacity:.88}
  72% {transform:translate3d(6%,1%,0) scale(1);opacity:.62}
}
@media(prefers-reduced-motion:no-preference) {
  .light-wash,.glass-light,.light-mask,.photo-glow {
    position:absolute;inset:0;pointer-events:none;overflow:hidden
  }
  .light-wash::before,.glass-light::before,.photo-glow::before {
    content:"";position:absolute;pointer-events:none;
    animation-play-state:var(--light-play);
  }
  .light-wash::before {
    inset:-17% -8%;
    background:linear-gradient(109deg,transparent 18%,var(--light-tint,#e8786f) 40%,transparent 63%);
    mask-image:radial-gradient(ellipse at 51% 42%,black,transparent 68%);
    animation:beam-travel 6.8s ease-in-out -2s infinite alternate;
    animation-play-state:var(--light-play)
  }
  .glass-light::before {
    inset:0 -45%;
    background:linear-gradient(104deg,transparent 35%,#fcd7ab28 45%,#ffebd16e 49%,#ffc99c24 53%,transparent 60%);
    animation:glass-glide 6.6s ease-in-out -1.5s infinite;
    animation-play-state:var(--light-play)
  }
  .photo-glow::before {
    inset:-12%;background:radial-gradient(ellipse at 54% 51%,#ffbd6c68,transparent 48%);
    mix-blend-mode:screen;animation:candle-glow 5.8s ease-in-out -1.3s infinite;
    animation-play-state:var(--light-play)
  }
}
@media(prefers-reduced-motion:reduce) {
  .light-wash,.glass-light,.photo-glow {display:none}
}
