.now-scene { --scene-day-sky:#c3d4dd; --scene-night-sky:#172e4a; --scene-fade:650ms; }
.now-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 2755 / 2049;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.now-scene .scene-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.now-scene img.scene-layer { display: block; object-fit: fill; user-select: none; }
.now-scene[data-ready="false"] > .scene-layer { visibility: hidden; }
.now-scene[data-ready="false"] > .room-day { visibility: visible; }
.now-scene .window {
  -webkit-mask-image: var(--scene-window-mask);
  mask-image: var(--scene-window-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.now-scene .sky-day { background: var(--scene-day-sky); }
.now-scene .sky-night { background: var(--scene-night-sky); }
.now-scene .room-day { z-index: 1; }
.now-scene .room-night { z-index: 2; }
.now-scene .night-effects { z-index: 3; opacity: .12; transition: opacity var(--scene-fade) ease-in-out; }
.now-scene [data-transition="night"] { opacity: 0; transition: opacity var(--scene-fade) ease-in-out; }
.now-scene[data-period="night"] [data-transition="night"],
.now-scene[data-period="night"] .night-effects { opacity: 1; }
.now-scene .light-halo { filter: blur(2px); opacity: .14; }
/* These clips only divide existing source pixels; all layers keep the full canvas. */
.now-scene .steady-lights {
  /* Exclude the three candle flames so a static duplicate cannot hide their sway. */
  clip-path: polygon(39% 0, 46% 0, 46% 45%, 51.5% 45%, 51.5% 0, 100% 0, 100% 100%, 39% 100%);
}
.now-scene .tree-lights { animation: fb-scene-tree-glimmer 3.8s ease-in-out infinite; }
/* Group boundaries sit in transparent row gaps (source y=1062 and y=1296). */
.now-scene .tree-lights-top { clip-path: inset(0 61% 48.17% 0); animation-delay: -.7s; }
.now-scene .tree-lights-middle { clip-path: inset(51.83% 61% 36.75% 0); animation-duration: 4.7s; animation-delay: -2.9s; }
.now-scene .tree-lights-bottom { clip-path: inset(63.25% 61% 0 0); animation-duration: 5.3s; animation-delay: -1.8s; }
@keyframes fb-scene-tree-glimmer {
  0%, 100% { opacity: 1; }
  42% { opacity: .22; }
  72% { opacity: .78; }
}
.now-scene .candle-flame { transform-box: view-box; animation: fb-scene-candle-sway 2.6s ease-in-out infinite; }
.now-scene .candle-left { transform-origin: 1309px 861px; animation-delay: -.8s; }
.now-scene .candle-center { transform-origin: 1354px 787px; animation-duration: 3.2s; animation-delay: -2.1s; }
.now-scene .candle-right { transform-origin: 1398px 859px; animation-duration: 2.9s; animation-delay: -1.3s; }
@keyframes fb-scene-candle-sway {
  0%, 100% { transform: rotate(-3deg) scale(.95, .96); opacity: .84; }
  25% { transform: rotate(2deg) scale(1.03, 1.08); opacity: 1; }
  55% { transform: rotate(4deg) scale(.9, .92); opacity: .62; }
  80% { transform: rotate(-1deg) scale(.98, 1.03); opacity: .94; }
}
.now-scene .snow { overflow: visible; }
.now-scene .snowflake {
  animation: fb-scene-snow-fall var(--duration) linear var(--delay) infinite;
  opacity: var(--opacity);
}
@keyframes fb-scene-snow-fall {
  from { transform: translate(0, -30px); }
  to { transform: translate(var(--drift), 1030px); }
}
.now-scene.is-paused .snowflake, .now-scene.is-paused .tree-lights,
.now-scene.is-paused .candle-flame { animation-play-state: paused; }
.now-scene .scene-window-button {
  position:absolute; z-index:4; left:36.66%; top:5.08%; width:22.25%; height:42.75%;
  min-width:44px; min-height:44px; padding:0; margin:0; border:0;
  background:transparent; color:inherit; cursor:pointer; touch-action:manipulation;
  clip-path:polygon(5% 10%,96% 10%,96% 56%,87% 58%,79% 78%,79% 88%,96% 93%,96% 96%,7% 96%);
}
.now-scene .scene-window-button:disabled { cursor:default; pointer-events:none; }
.now-scene .scene-window-button:focus-visible { outline:2px solid #ffd1dc; outline-offset:-6px; }
.now-scene .scene-window-hint {
  position:absolute; z-index:5; left:47.8%; top:21%; transform:translate(-50%,-50%);
  background:rgba(27,27,27,.9); color:#ffd1dc; padding:8px 12px; border-radius:3px;
  font:400 14px/1.4 'Helvetica Neue','PingFang SC',Arial,sans-serif;
  white-space:nowrap; pointer-events:none; opacity:0; transition:opacity 180ms ease;
}
@media (hover:hover) { .now-scene .scene-window-button:not(:disabled):hover + .scene-window-hint { opacity:1; } }
.now-scene .scene-window-button:focus-visible + .scene-window-hint { opacity:1; }
@media (prefers-reduced-motion: reduce) {
  .now-scene, .now-scene .scene-layer { transition: none !important; }
  .now-scene .snowflake { animation: none; transform: translate(0, var(--static-y)); }
  .now-scene .tree-lights { animation: none; opacity: .88; }
  .now-scene .candle-flame { animation: none; transform: none; opacity: 1; }
  .now-scene .scene-window-hint { transition:none; }
}
