/* Battery (10/19): same look, far less work for the phone. */

/* Glows that animated box-shadow/filter repainted every frame: the halo is now drawn once and only fades (cheap) */
.tb-today.tb-glow,html body.has-goal-bar .ui2-bar>.sq-top-collection.tb-book-new{animation:none!important;position:relative}
.tb-today.tb-glow::before,html body.has-goal-bar .ui2-bar>.sq-top-collection.tb-book-new::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:0 0 0 6px var(--halo-ring),0 0 16px 4px var(--halo);opacity:0;animation:battery-halo 1.8s ease-in-out infinite}
.tb-today.tb-glow::before{--halo-ring:#ff8cc055;--halo:#ff8cc066}
html body.has-goal-bar .ui2-bar>.sq-top-collection.tb-book-new::before{--halo-ring:#5fd6a855;--halo:#5fd6a866}
@keyframes battery-halo{50%{opacity:1}}
.calm-moon.bedtime img{animation:battery-moon 3.2s ease-in-out infinite!important;filter:drop-shadow(0 0 9px #ffe28a)}
@keyframes battery-moon{50%{transform:scale(1.06)}}

/* Night sky: half the twinkling stars and fireflies (they are made in a fixed order: 4 clouds, 28 stars, 8 fireflies) */
body .v2x-sky>.v2x-star:nth-child(odd),body .v2x-sky>.v2x-fly:nth-child(even){display:none!important}

/* Nothing animates behind a game or the toy viewer */
body.arcade-open *:not(.v2-arcade):not(.v2-arcade *),
body:has(> dialog[open]) *:not(dialog[open]):not(dialog[open] *){animation-play-state:paused!important}

@media (prefers-reduced-motion:reduce){.tb-today.tb-glow::before,html body.has-goal-bar .ui2-bar>.sq-top-collection.tb-book-new::before{animation:none;opacity:.6}}

/* Battery pass 2 (10/21): same look, less repainting while the game sits idle */
/* the "tap here" hint glow pulses 3 times, then stays lit (it used to pulse forever exactly while nobody was playing) */
@media (prefers-reduced-motion:no-preference){.v2l-glow{animation-iteration-count:3!important}.hunter-shop.v2l-glow .town-enter-label{animation-iteration-count:3!important}}
/* Room: these panels are ~93% opaque, so the blur behind them was invisible but recomputed every frame over the bobbing toys */
html body.ui2[data-place=home] :is(.room-tools .btn,.room-collection){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* Calm: the storefront windows stay warmly lit instead of pulsing a brightness filter on every shop; dock icons keep their glow, still */
body.calm-mode .storefront-glow{animation:none!important}
.calm-dock img{animation:none!important;filter:drop-shadow(0 0 10px #ffe2a088) drop-shadow(0 2px 2px #0006)}

/* Pause decorative pseudo-elements too when a dialog fully covers the scene. */
body:has(> dialog[open]) *:not(dialog[open]):not(dialog[open] *)::before,
body:has(> dialog[open]) *:not(dialog[open]):not(dialog[open] *)::after{animation-play-state:paused!important}
