@keyframes cta-glow {
  0%, 100% { opacity: .28; transform: scale(.96); }
  50%      { opacity: .95; transform: scale(1.08); }
}
@keyframes cta-bright {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}
@keyframes cta-pulse-shadow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0,0,0,.6),
      0 0 14px rgba(255,106,26,.35),
      0 0 28px rgba(255,106,26,.18),
      0 10px 30px rgba(0,0,0,.55),
      inset 0 1px 0 rgba(255,255,255,.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0,0,0,.6),
      0 0 28px rgba(255,154,58,.9),
      0 0 56px rgba(255,106,26,.55),
      0 10px 30px rgba(0,0,0,.55),
      inset 0 1px 0 rgba(255,255,255,.45);
  }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(6px); opacity: 1; }
}
@keyframes ember-rise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12% { opacity: .85; }
  100% { transform: translateY(-110vh) translateX(18px) scale(.4); opacity: 0; }
}

.embers {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.embers i {
  position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%;
  background: radial-gradient(circle, #ffd28a 0%, #ff6a1a 55%, transparent 70%);
  box-shadow: 0 0 8px #ff6a1a; animation: ember-rise linear infinite;
}
.embers i:nth-child(1)  { left: 8%;  animation-duration: 9s;  animation-delay: 0s; }
.embers i:nth-child(2)  { left: 16%; animation-duration: 11s; animation-delay: 1.2s; width: 2px; height: 2px; }
.embers i:nth-child(3)  { left: 24%; animation-duration: 8s;  animation-delay: 2.4s; }
.embers i:nth-child(4)  { left: 35%; animation-duration: 12s; animation-delay: .6s; }
.embers i:nth-child(5)  { left: 48%; animation-duration: 10s; animation-delay: 3s; width: 4px; height: 4px; }
.embers i:nth-child(6)  { left: 56%; animation-duration: 9.5s; animation-delay: 1.8s; }
.embers i:nth-child(7)  { left: 64%; animation-duration: 13s; animation-delay: .3s; }
.embers i:nth-child(8)  { left: 72%; animation-duration: 8.5s; animation-delay: 2.1s; }
.embers i:nth-child(9)  { left: 81%; animation-duration: 11.5s; animation-delay: 4s; }
.embers i:nth-child(10) { left: 88%; animation-duration: 9s;  animation-delay: 1s; }
.embers i:nth-child(11) { left: 42%; animation-duration: 14s; animation-delay: 2.8s; width: 2px; height: 2px; }
.embers i:nth-child(12) { left: 93%; animation-duration: 10.5s; animation-delay: .9s; }

@media (prefers-reduced-motion: reduce) {
  .embers i { animation: none !important; opacity: 0; }
}

/* —— START GAME modal open/close —— */
.start-modal__backdrop,
.start-modal__panel {
  opacity: 0;
  transition: opacity .22s ease;
}
.start-modal__panel {
  transform: scale(0.92) translateY(8px);
  transition:
    opacity .22s ease,
    transform .22s cubic-bezier(.2, .8, .2, 1);
}
.start-modal.is-open .start-modal__backdrop,
.start-modal.is-open .start-modal__panel {
  opacity: 1;
}
.start-modal.is-open .start-modal__panel {
  transform: scale(1) translateY(0);
}
.start-modal.is-closing .start-modal__backdrop,
.start-modal.is-closing .start-modal__panel {
  opacity: 0;
}
.start-modal.is-closing .start-modal__panel {
  transform: scale(0.94) translateY(6px);
}
