.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.plate-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: var(--scene-art-fit, cover); object-position: var(--scene-art-position, center); -webkit-user-select: none; user-select: none; }
.plate-film { opacity: 0; pointer-events: none; }
.plate-film.has-frame { opacity: 1; }
.scene-ending { position: absolute; inset: 0; z-index: 1; }
.scene-ending[hidden] { display: none; }
.scene-motion { position: absolute; z-index: 1; pointer-events: none; }
.scene-action {
  display: grid; place-items: center; position: absolute; z-index: 2;
  left: var(--scene-x); top: var(--scene-y); translate: -50% -50%;
  width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0;
  color: #ffefbb; background: transparent; cursor: pointer; touch-action: manipulation;
}
.scene-action:focus-visible { outline: 2px solid var(--focus-on-forest); outline-offset: 2px; box-shadow: 0 0 0 4px #20362c; }
.scene-mark {
  display: block; width: 26px; height: 26px; border: 1px solid #fff1b8;
  border-radius: 50%; background: #2c261e8c; box-shadow: 0 0 0 2px #2c261e9c, 0 0 12px #ffdd9070;
  pointer-events: none;
}
.scene-mark::after {
  content: ""; display: block; width: 12px; height: 12px; margin: 6px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.scene-ending[data-scene-motion] .scene-mark {
  width: 23px; height: 23px; background: transparent;
  box-shadow: 0 0 0 1px #2c261ecc, inset 0 0 0 1px #2c261e70, 0 0 9px #ffdd9070;
}
.scene-ending[data-scene-motion] .scene-mark::after { content: none; }
.scene-ending[data-scene-motion] .scene-action:is(:hover,:focus-visible) .scene-mark {
  border-color: #fff7dc; box-shadow: 0 0 0 1px #2c261ecc, 0 0 14px #ffdd90;
}
.scene-moving :is(.scene-mark, .scene-effect) { visibility: hidden; }
.scene-action:is([data-effect="leaf"], [data-effect="ribbon"]) { touch-action: none; cursor: grab; }
.scene-action:is([data-effect="leaf"], [data-effect="ribbon"]):active { cursor: grabbing; }
.scene-action[data-effect="leaf"] .scene-mark::after {
  clip-path: none; border-radius: 1px 9px 1px 9px; rotate: -20deg; background: #f4b45c;
}
.scene-action[data-effect="ribbon"] .scene-mark::after {
  clip-path: none; rotate: 20deg; background: #e98270; border-radius: 2px 4px 2px 4px;
}
.scene-effect {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
  translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fff4b6 4%, #ffda7c9e 25%, transparent 71%);
}
.scene-action[data-effect="ripple"] .scene-effect { width: 70px; height: 27px; background: none; border: 2px solid #b4edff; }
.scene-action[data-effect="chime"] .scene-effect { background: none; border: 2px solid #fff2bf; box-shadow: 0 0 0 7px #ffdda28c; }
.scene-action[data-effect="snow"] .scene-effect {
  background: none; box-shadow: 2px -22px 0 -18px #fff, 21px -10px 0 -18px #fff, 22px 13px 0 -18px #fff,
    -5px 23px 0 -18px #fff, -21px 11px 0 -17px #fff, -21px -15px 0 -18px #fff;
}
@keyframes scene-pulse {
  0% { opacity: .95; scale: .6; }
  35% { opacity: .85; }
  100% { opacity: 0; scale: 2.6; }
}
@keyframes scene-flutter {
  30% { transform: translate(7px, -8px) rotate(18deg); }
  70% { transform: translate(-3px, -2px) rotate(-12deg); }
}
@keyframes scene-flakes {
  0% { opacity: .95; scale: .75; transform: translateY(-12px); }
  45% { opacity: .9; }
  100% { opacity: 0; scale: 1.9; transform: translateY(25px); }
}
.scene-action[data-effect="bell-ring"] .scene-effect {
  width: 52px; height: 31px;
  border: 2px solid #ffe0a0; background: none;
  box-shadow: 0 0 0 7px #ffdc9285, 0 0 0 14px #ffdc923b;
}
.scene-action[data-effect="bell-lamp"] .scene-effect {
  width: 64px; height: 64px;
  background: radial-gradient(circle, #fffad0 5%, #ffc462a3 26%, #f98a4038 50%, transparent 69%);
}
.scene-action:is([data-effect="bell-ribbon"], [data-effect="bell-scarf"]) .scene-effect {
  width: 62px; height: 28px; border-radius: 0;
  background: linear-gradient(148deg,#ffdfb3,#dc4b3f 52%,#a52731);
  clip-path: polygon(0 28%, 26% 18%, 48% 54%, 78% 40%, 100% 18%, 91% 56%, 100% 81%, 76% 71%, 49% 100%, 24% 65%, 0 77%);
}
.scene-action[data-effect="bell-scarf"] .scene-effect {
  background: linear-gradient(148deg,#c7fbe7,#35a7a2 52%,#14707b);
}
.scene-action[data-effect="bell-tracks"] .scene-effect {
  width: 82px; height: 38px; border-radius: 0;
  background: radial-gradient(ellipse 5px 8px at 12% 70%, #fff7b5 60%, transparent),
    radial-gradient(ellipse 5px 8px at 30% 35%, #ffdc8f 60%, transparent),
    radial-gradient(ellipse 5px 8px at 49% 66%, #ffedac 60%, transparent),
    radial-gradient(ellipse 4px 7px at 68% 31%, #ffe89c 60%, transparent),
    radial-gradient(ellipse 4px 6px at 88% 54%, #ffdc8f 60%, transparent);
}
.scene-action[data-effect="bell-star"] .scene-effect {
  width: 47px; height: 47px; border-radius: 0;
  background: radial-gradient(circle, #fffde0 17%, #ffd473 72%);
  clip-path: polygon(50% 0, 61% 36%, 100% 39%, 69% 62%, 79% 100%, 50% 77%, 21% 100%, 31% 62%, 0 39%, 39% 36%);
}
.scene-action[data-effect="bell-dust"] .scene-effect {
  width: 44px; height: 44px;
  background: none; box-shadow: 1px -21px 1px -19px #fff3b6, 19px -10px 2px -19px #ffbf65,
    21px 11px 1px -19px #ffdd87, -10px 19px 1px -19px #fff0a6, -20px 3px 2px -19px #eeb66b;
}
@keyframes bell-ring {
  0% { opacity: 0; transform: scale(.45) rotate(-12deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: scale(2.15) rotate(8deg); }
}
@keyframes bell-lamp {
  0%, 100% { opacity: 0; scale: .75; }
  30% { opacity: .92; scale: 1.55; }
  45% { opacity: .66; }
  63% { opacity: .86; scale: 1.35; }
}
@keyframes bell-ribbon {
  0% { opacity: .85; transform: scale(.65) rotate(-24deg); }
  38% { opacity: .94; transform: translate(12px,-10px) rotate(14deg); }
  68% { opacity: .63; transform: translate(-6px,-22px) rotate(-12deg); }
  100% { opacity: 0; transform: translate(13px,-35px) scale(.85) rotate(22deg); }
}
@keyframes bell-tracks {
  0% { opacity: .9; clip-path: inset(0 88% 0 0); }
  62% { opacity: .88; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(0 0 0 0); }
}
@keyframes bell-star {
  0% { opacity: .77; transform: scale(.55) rotate(-26deg); }
  35% { opacity: .99; transform: scale(1.12) rotate(10deg); }
  65% { opacity: .8; transform: scale(.92) rotate(26deg); }
  100% { opacity: 0; transform: scale(1.4) rotate(58deg); }
}
@keyframes bell-dust {
  0% { opacity: .96; transform: scale(.35); }
  40% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-22px) scale(2.25) rotate(30deg); }
}
@media (prefers-reduced-motion: reduce) {
  .scene-activated[data-effect] .scene-effect { opacity: .5; }
}
@media (prefers-reduced-motion: no-preference) {
  .plate-film { transition: opacity .25s ease; }
  .scene-activated .scene-effect { animation: scene-pulse 1.15s ease-out; }
  .scene-activated[data-effect="blink"] .scene-effect { animation: scene-pulse .7s ease-out 2; }
  .scene-activated[data-effect="snow"] .scene-effect { animation-name: scene-flakes; }
  .scene-activated:is([data-effect="leaf"], [data-effect="ribbon"]) .scene-mark { animation: scene-flutter .9s ease-in-out; }
  .scene-activated[data-effect="bell-ring"] .scene-effect { animation: bell-ring 1.1s ease-out; }
  .scene-activated[data-effect="bell-lamp"] .scene-effect { animation: bell-lamp 1.35s ease-in-out; }
  .scene-activated:is([data-effect="bell-ribbon"], [data-effect="bell-scarf"]) .scene-effect { animation: bell-ribbon 1.18s ease-out; }
  .scene-activated[data-effect="bell-tracks"] .scene-effect { animation: bell-tracks 1.35s ease-out; }
  .scene-activated[data-effect="bell-star"] .scene-effect { animation: bell-star 1.12s ease-out; }
  .scene-activated[data-effect="bell-dust"] .scene-effect { animation: bell-dust 1.2s ease-out; }
}
