.sr-reveal-fx {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 4;
  display: none;
  width: clamp(166px, 50vw, 232px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.is-sr-reveal .sr-reveal-fx { display: block; }
.play-screen.is-sr-reveal .play-machine { cursor: default; }
.is-sr-reveal .machine-state-open { opacity: 1; }

.play-screen.is-sr-reveal .capsule {
  display: block;
  left: 50%;
  top: 58%;
  width: clamp(166px, 50vw, 232px);
  transform: translate(-50%, -50%);
  animation: none;
}

.capsule-sr-glow {
  z-index: 1;
  opacity: 0;
}

.is-sr-reveal:not(.is-opening) .capsule-closed {
  animation: sr-capsule-tremble 0.18s ease-in-out infinite, sr-shell-dim 1.4s ease-in-out both;
}

.is-sr-reveal:not(.is-opening) .capsule-sr-glow {
  animation: sr-capsule-tremble 0.18s ease-in-out infinite, sr-shell-illuminate 1.4s ease-in-out both;
}

.is-sr-reveal .capsule-sr-glow,
.is-sr-reveal .capsule-open {
  filter: drop-shadow(0 0 12px #ffde7d99);
}

.sr-reveal-light {
  position: absolute;
  inset: -65%;
  background: radial-gradient(ellipse, #fff8ce 0%, #ffdf76b3 21%, #eeb73d55 40%, #eeb73d00 68%);
  opacity: 0;
  animation: sr-gold-light 2.3s ease-in-out both;
}

.sr-reveal-seam {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 52%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffdc78, #fff9df, #ffdc78, transparent);
  box-shadow: 0 0 16px 5px #fbd76f66;
  animation: sr-seam-light 1.4s ease-in both;
}

.is-sr-reveal.is-opening .sr-reveal-seam {
  animation: sr-seam-release 0.9s ease-out both;
}

.sr-reveal-particles { position: absolute; inset: 0; }
.sr-reveal-particles i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 9px;
  border-radius: 2px;
  background: #fff4bf;
  box-shadow: 0 0 7px 2px #efb53c99;
  opacity: 0;
}
.sr-reveal-particles i:nth-child(1) { --x: -125px; --y: -90px; }
.sr-reveal-particles i:nth-child(2) { --x: -55px; --y: -145px; }
.sr-reveal-particles i:nth-child(3) { --x: 35px; --y: -155px; }
.sr-reveal-particles i:nth-child(4) { --x: 110px; --y: -110px; }
.sr-reveal-particles i:nth-child(5) { --x: 150px; --y: -25px; }
.sr-reveal-particles i:nth-child(6) { --x: 130px; --y: 60px; }
.sr-reveal-particles i:nth-child(7) { --x: 75px; --y: 125px; }
.sr-reveal-particles i:nth-child(8) { --x: -15px; --y: 150px; }
.sr-reveal-particles i:nth-child(9) { --x: -95px; --y: 105px; }
.sr-reveal-particles i:nth-child(10) { --x: -145px; --y: 30px; }
.sr-reveal-particles i:nth-child(11) { --x: -145px; --y: -35px; }
.sr-reveal-particles i:nth-child(12) { --x: 75px; --y: -70px; }
.is-sr-reveal.is-opening .sr-reveal-particles i {
  animation: sr-gold-particle 0.9s cubic-bezier(0.12, 0.65, 0.24, 1) both;
}

@keyframes sr-capsule-tremble {
  0%, 100% { transform: translateX(-1px) rotate(-0.7deg); }
  50% { transform: translateX(1px) rotate(0.7deg); }
}
@keyframes sr-shell-illuminate {
  0% { opacity: 0; }
  80%, 100% { opacity: 1; }
}
@keyframes sr-shell-dim {
  0% { opacity: 1; }
  80%, 100% { opacity: 0; }
}
@keyframes sr-gold-light {
  0% { opacity: 0; transform: scale(0.65); }
  58% { opacity: 0.75; transform: scale(1); }
  72% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.22); }
}
@keyframes sr-seam-light {
  from { opacity: 0; transform: scaleX(0.4); }
  to { opacity: 0.85; transform: scaleX(1); }
}
@keyframes sr-seam-release {
  from { opacity: 0.85; transform: scaleX(1); }
  to { opacity: 0; transform: scaleX(1.5); }
}
@keyframes sr-gold-particle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(100deg) scale(0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .is-sr-reveal:not(.is-opening) .capsule-closed { animation: sr-shell-dim 1.4s ease-in-out both; }
  .is-sr-reveal:not(.is-opening) .capsule-sr-glow { animation: sr-shell-illuminate 1.4s ease-in-out both; }
  .sr-reveal-particles, .sr-reveal-seam { display: none; }
  .sr-reveal-light { animation: sr-gold-soft 2.3s ease-in-out both; }
  @keyframes sr-gold-soft {
    0%, 100% { opacity: 0; }
    60%, 75% { opacity: 0.55; }
  }
}
