/* ============================================================================
   AMULETDROP — Plinko Hero styles (pairs with plinko-hero.js)
   ========================================================================== */
.ph-wrap {
  position: relative;
  width: 340px;
  max-width: 92vw;
  margin: 0 auto 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#phCanvas {
  display: block;
  width: 340px;
  max-width: 92vw;
  height: auto;
  touch-action: manipulation;
  cursor: pointer;
}

/* Big, obvious, pulsing DROP button */
.ph-drop {
  position: relative;
  margin-top: -2px;
  padding: 13px 30px;
  border: none;
  border-radius: 999px;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1020;
  background: linear-gradient(100deg, #fde9b0 0%, #f7d98a 40%, #e0a94a 100%);
  box-shadow: 0 6px 20px rgba(224, 169, 74, 0.45), 0 0 0 1px rgba(255, 240, 200, 0.5) inset;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.25s ease;
  animation: phDropPulse 1.5s ease-in-out infinite;
  z-index: 3;
}
.ph-drop:hover { transform: translateY(-1px) scale(1.03); }
.ph-drop:active { transform: translateY(0) scale(0.98); }
.ph-drop--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

@keyframes phDropPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(224,169,74,0.45), 0 0 0 1px rgba(255,240,200,0.5) inset; }
  50%      { box-shadow: 0 6px 30px rgba(240,200,120,0.85), 0 0 0 1px rgba(255,240,200,0.7) inset; }
}

/* WIN text — pops in with a bounce */
.ph-win {
  margin: 8px 0 0;
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  background: linear-gradient(90deg, #fde9b0, #f7d98a, #f0abfc, #f7d98a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(240, 200, 120, 0.5);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.ph-win.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* The real casino CTA lights up on win (JS also sets inline boxShadow) */
.cta-ignite {
  animation: ctaIgnite 1.1s ease-in-out infinite !important;
}
@keyframes ctaIgnite {
  0%, 100% { box-shadow: 0 0 30px rgba(240,200,120,0.75), 0 0 60px rgba(139,92,246,0.55); }
  50%      { box-shadow: 0 0 44px rgba(240,200,120,1), 0 0 84px rgba(139,92,246,0.8); }
}

@media (max-width: 380px) {
  .ph-wrap, #phCanvas { width: 300px; }
  .ph-win { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-drop { animation: none; }
  .cta-ignite { animation: none !important; }
}
