/* The wallpaper, atmosphere and camera have different coordinate spaces. Only the wallpaper is zoomed. */
.lc-scene-world {
  position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none;
  background-color: var(--ds-surface-canvas);
}
.lc-scene-wall, .lc-scene-ambient, .lc-scene-base, .lc-scene-art, .lc-scene-air,
.lc-scene-sample, .lc-scene-sample-wall, .lc-scene-sample-air {
  position: absolute; inset: 0; pointer-events: none;
}
.lc-scene-art, .lc-scene-air { display: block; width: 100%; height: 100%; }
:is(.lc-scene-art, .lc-scene-air, .lc-scene-camera)[hidden] { display: none; }
.lc-scene-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.lc-scene-base {
  background: var(--lc-bg, #101116) var(--lc-art-image, none) center var(--lc-art-y, center) / cover no-repeat;
  filter: var(--lc-scene-filter, none);
  transform: scale(var(--lc-scene-fringe, 1));
}
[data-lc-photo="webgl"] > .lc-scene-base { visibility: hidden; }
:is(.lc-scene-wall, .lc-scene-sample-wall)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 49%, transparent 34%, rgb(5 5 13 / var(--lc-scene-vignette, 0)) 100%),
    linear-gradient(0deg, rgb(224 93 36 / var(--lc-scene-heat, 0)), transparent 57%),
    linear-gradient(135deg, rgb(105 144 208 / var(--lc-scene-ghost, 0)), transparent 72%);
}
.lc-scene-wall { transition: filter 300ms ease, transform 300ms ease; }
html[data-lc-talk="open"] .lc-scene-wall {
  filter: blur(11.2px);
  transform: scale(1.06);
}
/* Other screens keep the exact crop, overlaid with the user's background settings. */
html[data-hub-overlay="open"] .lc-scene-wall,
html[data-lc-sheet="open"] .lc-scene-wall,
html:has(#screen-landing[hidden] ~ .screen:not([hidden])) .lc-scene-wall {
  filter: blur(var(--lc-back-blur, 3.5px)) brightness(var(--lc-back-brightness, .73));
  transform: scale(var(--lc-back-zoom, 1.06));
}
/* Settings on the modal and channel don't change the weather's crop, speed or sharpness. */
html:is([data-lc-talk="open"], [data-hub-overlay="open"], [data-lc-sheet="open"]) .lc-scene-ambient {
  opacity: .76;
}
html[data-hub-motion="reduced"] .lc-scene-wall { transition: none; }
@media (prefers-reduced-motion: reduce) { .lc-scene-wall { transition: none; } }
@media (min-aspect-ratio: 5/2) { .lc-scene-world { --lc-art-y: top; } }

/* A decorative HUD, not a real camera: no input, media access or capture. It tracks visualViewport. */
.lc-scene-camera {
  --lc-camera-ink: #f2f4ff;
  --lc-camera-shadow: rgb(14 14 22 / .78);
  --lc-camera-size: clamp(14px, 2.2vw, 33px);
  position: fixed; inset: 0 auto auto 0; width: 100%; height: 100%;
  pointer-events: none; color: var(--lc-camera-ink);
  opacity: calc(.2 + .8 * var(--lc-camera-power, .5));
  font: 650 var(--ds-fs-micro, .6875rem)/1 ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
html[data-hub-theme="light"]:is(:not([data-lc-art]), [data-lc-art="plain"]) > body > .lc-scene-camera,
.lc-scene-sample[data-hub-theme="light"] .lc-scene-camera {
  --lc-camera-ink: #262a39;
  --lc-camera-shadow: rgb(252 250 255 / .86);
}
.lc-camera-frame {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 0 1px var(--lc-camera-shadow));
}
#lc-camera .lc-camera-frame { inset: var(--ds-safe-top) var(--ds-safe-right) var(--ds-safe-bottom) var(--ds-safe-left); }
/* Frame follows the viewport edge; on narrow screens the labels sit above the search copy. */
#lc-camera :is(.lc-camera-rec, .lc-camera-time) { top: var(--lc-camera-label-top, 16px); }
@media (max-width: 540px) { #lc-camera { --lc-camera-label-top: 3px; } }
.lc-camera-frame > i {
  position: absolute; width: var(--lc-camera-size); height: var(--lc-camera-size);
  border: solid currentColor; border-width: 0;
}
.lc-camera-frame > i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 3px; }
.lc-camera-frame > i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 3px; }
.lc-camera-frame > i:nth-child(3) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 3px; }
.lc-camera-frame > i:nth-child(4) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 3px; }
.lc-camera-rec, .lc-camera-time { position: absolute; top: 10px; letter-spacing: .11em; text-shadow: 0 0 4px var(--lc-camera-shadow); }
.lc-camera-rec { left: 11px; display: flex; align-items: center; gap: 5px; }
.lc-camera-time { right: 11px; }
.lc-camera-rec::before {
  content: ''; width: 7px; height: 7px; background: #ef575b; border-radius: 50%;
  box-shadow: 0 0 7px rgb(248 75 84 / .31);
}
[data-recording="on"] .lc-camera-rec::before { animation: lc-scene-pulse 2.4s ease-in-out infinite; }
@keyframes lc-scene-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .lc-camera-rec::before { animation: none !important; } }
@media (forced-colors: active) { .lc-scene-world, .lc-scene-camera, .lc-scene-sample { display: none; } }

/* Same scene in an isolated bounded sample. Only its own crop is drawn; action/text layers are above it. */
.lc-scene-sample { overflow: hidden; border-radius: inherit; }
.lc-scene-sample .lc-scene-camera { position: absolute; --lc-camera-size: 12px; }
.lc-scene-sample .lc-camera-frame { inset: 7px; }
.lc-scene-sample .lc-camera-rec { top: 6px; left: 6px; }
.lc-scene-sample .lc-scene-base { background-position: center; }
