/* 活的小店：新图层的开关（设计文档 S1–S8）。图层在 src/scene_layers.mjs，排在 style.css 之后。 */
.scene [class^="g-sky-"], .scene [class^="g-sun-"], .scene [class^="g-sprig-"], .scene [class^="g-star-"],
.scene [class^="g-d-"], .scene [class^="g-loaf"], .scene .g-bottle, .scene .g-jar, .scene .g-term,
.scene .g-cat-shadow, .scene .g-tail-b, .scene .g-cat-stretch, .scene .g-steam, .scene .g-daylight,
.scene .g-late, .scene .g-reg-slip, .scene .g-o-sky, .scene .g-o-warm, .scene .g-o-open,
.scene .g-o-light, .scene .g-o-passer { display: none; pointer-events: none; }

/* S1 时间。小瓶、许愿瓶：有 f-phase-* 就在（只有 HOME 有） */
.scene[class*="f-phase-"] .g-bottle, .scene[class*="f-phase-"] .g-jar,
.f-phase-dawn .g-sky-dawn, .f-phase-day .g-sky-day, .f-phase-dusk .g-sky-dusk,
.f-phase-day .g-sun-day, .f-phase-dusk .g-sun-dusk, .f-phase-day .g-daylight, .f-late .g-late,
.f-phase-dawn .g-o-sky, .f-phase-day .g-o-sky, .f-phase-dusk .g-o-sky,
.f-open .g-o-open, .f-open .g-o-warm, .f-phase-dawn .g-o-warm { display: inline; }
.f-phase-day .g-o-dim, .f-phase-dusk .g-o-dim { display: none; }
.f-phase-dawn .g-o-sky rect { fill: #566C86; }
.f-phase-dusk .g-o-sky rect { fill: #EF7D57; }
.scene.f-late .g-lit rect:nth-child(2), .scene.f-late .g-lit rect:nth-child(3) { opacity: 0; }

.f-term .g-term, .f-season-spring .g-sprig-spring, .f-season-summer .g-sprig-summer,
.f-season-autumn .g-sprig-autumn, .f-season-winter .g-sprig-winter { display: inline; }

.f-stars-1 .g-star-1, .f-stars-2 .g-star-1, .f-stars-3 .g-star-1, .f-stars-4 .g-star-1, .f-stars-5 .g-star-1,
.f-stars-2 .g-star-2, .f-stars-3 .g-star-2, .f-stars-4 .g-star-2, .f-stars-5 .g-star-2,
.f-stars-3 .g-star-3, .f-stars-4 .g-star-3, .f-stars-5 .g-star-3,
.f-stars-4 .g-star-4, .f-stars-5 .g-star-4, .f-stars-5 .g-star-5,
.f-gold-1 .g-star-gold-1, .f-gold-2 .g-star-gold-1, .f-gold-3 .g-star-gold-1, .f-gold-4 .g-star-gold-1, .f-gold-5 .g-star-gold-1,
.f-gold-2 .g-star-gold-2, .f-gold-3 .g-star-gold-2, .f-gold-4 .g-star-gold-2, .f-gold-5 .g-star-gold-2,
.f-gold-3 .g-star-gold-3, .f-gold-4 .g-star-gold-3, .f-gold-5 .g-star-gold-3,
.f-gold-4 .g-star-gold-4, .f-gold-5 .g-star-gold-4, .f-gold-5 .g-star-gold-5 { display: inline; }

.f-d-plant .g-d-plant, .f-d-polaroid .g-d-polaroid, .f-d-tripod .g-d-tripod, .f-d-cup .g-d-cup,
.f-d-doorphoto .g-d-doorphoto, .f-d-tally .g-d-tally, .f-d-ball .g-d-ball { display: inline; }

/* S3 拿铁 */
.f-spot-floor .g-cat-all, .f-spot-floor .g-tail-b, .f-spot-floor .g-cat-stretch { transform: translate(-80px, 96px); }
.f-spot-floor .g-cat-shadow, .f-spot-booth .g-loaf, .f-spot-booth .g-loaf-open,
.f-spot-booth:not(.f-eyes-open) .g-loaf-closed, .f-spot-booth.f-blink .g-loaf-closed,
.f-tail .g-tail-b, .f-stretch .g-cat-stretch { display: inline; }
.f-tail .g-tail-a, .f-spot-booth .g-cat-all, .f-spot-booth .g-tail-b, .f-spot-booth .g-cat-stretch { display: none; }

/* S5 小票 */
.f-reg-new .g-reg-slip { display: inline; }
.f-reg-new .g-slip-in { animation: print 0.6s steps(3) 1; }
@keyframes print { from { transform: translateY(12px); } to { transform: translateY(0); } }

.f-steam .g-steam { display: inline; animation: steam 2.4s steps(3) infinite; }
@keyframes steam { from { transform: translateY(0); opacity: 0.5; } to { transform: translateY(-6px); opacity: 0; } }
.f-phase-night .g-o-light { display: inline; }
.f-phase-night .g-o-light rect { animation: twinkle 5s steps(1) infinite; }
.f-phase-night .g-o-light rect:nth-child(2) { animation-delay: -2.5s; }
@keyframes twinkle { 0% { opacity: 0.9; } 50% { opacity: 0.2; } }
.f-passer .g-o-passer { display: inline; }
.f-passer .g-o-walk { animation: pass 4s steps(20) 1 both; }
@keyframes pass { from { transform: translateX(0); } to { transform: translateX(380px); } }
.f-paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .f-reg-new .g-slip-in, .f-steam .g-steam, .f-phase-night .g-o-light rect { animation: none; }
  .f-steam .g-steam { opacity: 0.5; }
  .f-passer .g-o-passer { display: none; }
}
