/* Heavenly Baked — "The Icing Swirl" (companion to motion.js) */
.swirl-veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, #5A3A22 0%, #402A1E 62%, #2A1A10 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease, transform .7s ease;
}
.swirl-veil.swirl-lift { opacity: 0; transform: translateY(-2.5%); }
.swirl-stage { text-align: center; }
.swirl-caption {
  margin-top: 14px; font-family: 'Caveat', cursive; font-size: 2rem; color: #FFF6E8;
  opacity: 0; animation: swirl-cap 1s ease .9s forwards;
}
@keyframes swirl-cap { to { opacity: 1; } }

.site-header { position: relative; }
.roll-charm {
  position: absolute; left: 10px; top: 100%; z-index: 60;
  width: 38px; height: 38px; padding: 0; background: none; border: 0; cursor: pointer;
  filter: drop-shadow(0 4px 6px rgba(64, 42, 30, .3));
}
.roll-charm svg { display: block; }
.roll-charm.spinning svg { animation: roll-spin .9s cubic-bezier(.3, .7, .4, 1) 1; }
@keyframes roll-spin { from { transform: rotate(0deg) scale(1); } 45% { transform: rotate(200deg) scale(1.14); } to { transform: rotate(360deg) scale(1); } }

.success-roll { display: flex; justify-content: center; margin: 10px 0 2px; }
.success-roll .swirl-path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: swirl-draw 1.3s ease .15s forwards; }
@keyframes swirl-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .roll-charm.spinning svg, .success-roll .swirl-path, .swirl-caption { animation: none; }
  .success-roll .swirl-path { stroke-dashoffset: 0; }
}
