/* Seasonal motion is decorative, transform-based, and can always be paused. */
.holiday-atmosphere, .celebration-layer {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; user-select: none;
}
.holiday-atmosphere { z-index: 0; contain: strict; }
.celebration-layer { z-index: 410; }
.season-ribbon, .festive-garland-crown, .steps-strip-wrap, .step-page-shell, .app-shell, .site-footer { position: relative; z-index: 1; }
.holiday-flake {
  position: absolute; top: -26px; left: var(--flake-x); color: #fff6e0;
  text-shadow: 0 0 8px rgba(246, 214, 138, 0.45);
  font-size: var(--flake-size); opacity: 0;
  animation: holiday-snow var(--flake-duration) linear var(--flake-delay) infinite;
}
body[data-page="3"] .holiday-flake { color: #fffaeb; }
@keyframes holiday-snow {
  0% { transform: translate3d(0,-20px,0) rotate(0); opacity: 0; }
  8%, 85% { opacity: var(--flake-opacity); }
  48% { transform: translate3d(var(--flake-drift),48vh,0) rotate(95deg); }
  100% { transform: translate3d(calc(var(--flake-drift) * -.4),calc(100dvh + 36px),0) rotate(190deg); opacity: 0; }
}
.christmas-post-scene { transition: transform .35s ease; }
.christmas-post-scene:hover { transform: translateY(-5px) rotate(-1deg); }
.scene-sticker { animation: delivery-sticker 5s ease-in-out infinite; transform-origin: 15% 15%; }
@keyframes delivery-sticker { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(-5deg) translateY(-3px); } }
.tiny-star, .rules-sparkle, .showcase-star { animation: christmas-twinkle 3.8s ease-in-out infinite; }
.star-two { animation-delay: -1.9s; }
@keyframes christmas-twinkle { 0%,100% { opacity: .6; scale: .9; } 50% { opacity: 1; scale: 1.12; } }
.preview-gift-tag { animation: keepsake-sway 5.5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes keepsake-sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(-4deg) translateY(-5px); } }
.gift-tag-bow { animation: ribbon-sway 5.5s ease-in-out infinite; transform-origin: 50% 45%; }
@keyframes ribbon-sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(-4deg) translateY(-4px); } }
.tree-lights-drape img, .festive-garland-crown .garland-lights-img { animation: lights-breathe 3.4s ease-in-out infinite; }
@keyframes lights-breathe {
  0%,100% { opacity: .85; filter: drop-shadow(0 2px 6px #e3b85b44); }
  50% { opacity: 1; filter: drop-shadow(0 3px 14px #ffd98288); }
}
.motion-enter .story-panel, .motion-enter .room-page-heading {
  animation: christmas-arrival .6s cubic-bezier(.2,.75,.25,1) both;
}
.motion-enter .stationery-card, .motion-enter .tree-stage-slot {
  animation: christmas-arrival .65s .1s cubic-bezier(.2,.75,.25,1) both;
}
.motion-enter .christmas-rules, .motion-enter .primary-action-slot { animation: christmas-arrival .65s .19s cubic-bezier(.2,.75,.25,1) both; }
.motion-enter .secondary-cards-slot { animation: christmas-arrival .65s .26s cubic-bezier(.2,.75,.25,1) both; }
@keyframes christmas-arrival {
  from { opacity: 0; transform: translate3d(0,16px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
.game-cta-btn { transition: transform .2s cubic-bezier(.2,.8,.3,1), background .2s, box-shadow .2s; }
@media (hover: hover) {
  .game-cta-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 5px 0 #91323c, 0 12px 22px #b6404c22; }
  .game-cta-btn:hover:not(:disabled) > span { transform: translateX(3px); }
  .quick-name-chip:hover { transform: translateY(-2px) rotate(-2deg); }
}
.game-cta-btn > span { transition: transform .2s; }
.game-cta-btn:active:not(:disabled) { transform: translateY(2px) scale(.985); }
.is-drawing .tree-stage-card { animation: draw-magic 1.2s ease-in-out infinite; }
@keyframes draw-magic { 0%,100% { box-shadow: 0 28px 64px -18px rgba(4, 14, 9, 0.78),0 0 0 0 #d8b85e00; } 50% { box-shadow: 0 28px 64px -18px rgba(4, 14, 9, 0.78),0 0 28px 4px #eec86b66; } }
.is-drawing .spin-status-banner { animation: draw-caption 1.2s ease-in-out infinite; }
@keyframes draw-caption { 50% { translate: 0 -3px; } }
.reveal-modal-card { transform-origin: 50% 70%; }
.modal-backdrop.is-open .reveal-modal-card { animation: gift-open .58s cubic-bezier(.17,.85,.27,1.1) both; }
@keyframes gift-open { 0% { opacity: 0; transform: translateY(22px) scale(.88) rotate(-3deg); } 65% { opacity: 1; transform: translateY(-3px) scale(1.025) rotate(.8deg); } 100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
.modal-backdrop.is-open .reveal-wax-emblem { animation: gift-bounce .75s .12s cubic-bezier(.2,.8,.3,1) both; }
@keyframes gift-bounce { 0% { transform: scale(.65) rotate(-12deg); } 50% { transform: scale(1.14) rotate(8deg); } 75% { transform: scale(.96) rotate(-3deg); } 100% { transform: scale(1) rotate(0); } }
.motion-confetti { position: absolute; width: 8px; height: 10px; border-radius: 2px; background: var(--confetti-color); }
.motion-confetti.is-star { width: 14px; height: 14px; clip-path: polygon(50% 0,61% 35%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 35%); }
.motion-confetti.is-dot { border-radius: 50%; width: 6px; height: 6px; }
.motion-confetti.is-ribbon { width: 5px; height: 12px; }
.flight-sparkle-dot.is-star { width: 12px; height: 12px; border-radius: 0; background: #e9bd64; clip-path: polygon(50% 0,61% 35%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 35%); }
.landing-ring { position: absolute; width: 60px; height: 60px; border: 2px solid #e7c46f; border-radius: 50%; margin: -30px 0 0 -30px; }
.effects-control { appearance: none; border: 1px solid rgba(232, 198, 122, 0.30); background: rgba(255, 250, 236, 0.08); color: #f6df9e; font-family: var(--font-sans); font-size: 9.5px; font-weight: 700; min-height: 40px; padding: 6px 11px; cursor: pointer; border-radius: 9px; }
.effects-control:hover { background: rgba(255, 250, 236, 0.18); }
.effects-control:disabled { cursor: default; }
.site-footer > .effects-control { display: inline-flex; gap: 6px; align-items: center; }
.motion-suspended .holiday-flake { animation-play-state: paused; }
.effects-paused *, .effects-paused *::before, .effects-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.effects-paused .card-postmark { background-image: url('/assets/christmas/christmas-post.svg'); }
@media (max-width: 480px) {
  .card-postmark { background-image: url('/assets/christmas/christmas-post-animated.svg'); }
  .effects-control { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-atmosphere, .celebration-layer { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card-postmark { background-image: url('/assets/christmas/christmas-post.svg'); }
}
