/* Storybook scene pass. Keep objects independent for hit testing and upgrades. */
:root { --storybook-gold: #f9d989; --storybook-blue: #254c63; }
/* One coherent illustrated landscape, not competing CSS polygons over the artwork. */
.scene {
  background: #d2e5e9 url("assets/stage2/world/fairytale-meadow.svg") center 54% / cover no-repeat;
}
.scene .mountains, .scene .forest, .scene .land,
.scene .river, .scene .path, .scene .snow-bank, .scene .moon {
  display: none;
}
/* Existing painted trees replace the flat clipped triangles. */
.scene .pine {
  background: url("assets/stage2/world/pine.png") center bottom / contain no-repeat;
  clip-path: none;
  border: 0;
  filter: drop-shadow(0 10px 7px rgba(15, 46, 55, .32));
  transform-origin: center bottom;
}
.scene .pine::after { content: none; }
.scene .pine-a { left: 0; top: 40%; width: 12%; height: 34%; }
.scene .pine-b { left: 15%; top: 37%; width: 9%; height: 25%; transform: scale(.82); }
.scene .pine-c { right: -1%; top: 40%; width: 13%; height: 34%; transform: scale(.94); }
.scene .pine-d { right: 15%; top: 37%; width: 9%; height: 25%; transform: scale(.8); }
/* A single light direction unites independently illustrated props. */
.scene .world-object {
  --lift: 0px;
  filter: drop-shadow(0 12px 7px rgba(23, 52, 63, .32));
  transform: translate3d(0, var(--lift), 0);
  transition: transform .18s ease, filter .18s ease;
}
.scene .world-object:hover,
.scene .world-object:focus-visible {
  --lift: -5px;
  filter: drop-shadow(0 15px 9px rgba(23, 52, 63, .40));
}
.scene .world-object img { image-rendering: auto; }
.scene .tree-object .tree-halo {
  background: radial-gradient(ellipse, rgba(255, 234, 162, .47), rgba(255, 208, 94, .13) 52%, transparent 74%);
  filter: blur(8px);
}
.scene .tree-object::before {
  content: "";
  position: absolute;
  bottom: 5%; left: 17%; width: 66%; height: 12%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(31, 65, 76, .37), transparent 70%);
}
.scene .illustrated-building .building-sign,
.scene .world-object .object-tag {
  border: 1px solid rgba(253, 235, 188, .95);
  border-radius: 9px;
  color: #553c2c;
  background: linear-gradient(180deg, #fff6de 0%, #eac993 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.86), 0 3px 0 rgba(119,81,42,.18), 0 8px 14px rgba(21,52,63,.22);
  letter-spacing: .02em;
  text-shadow: 0 1px rgba(255,255,255,.65);
}
/* Decorative scenery must never intercept gameplay interaction. */
.scene .pine, .scene .scenic-props, .scene .snowfall-layer,
.scene .aurora-ribbon, .scene .sky-glow, .scene .fireflies { pointer-events: none; }
@media (max-width: 760px) {
  .scene { background-position: 50% center; }
  .scene .pine-a { left: -4%; top: 41%; width: 19%; height: 28%; }
  .scene .pine-b, .scene .pine-d { display: none; }
  .scene .pine-c { right: -5%; top: 41%; width: 19%; height: 28%; }
  .scene .illustrated-building .building-sign,
  .scene .world-object .object-tag { font-size: clamp(8px, 1.75vw, 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .scene .world-object { transition: none; }
}
