/* css/gamble.css — Coin flip / chocolate bar gamble animation */

.gamble-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gamble-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.gamble-coin {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: coin-flip 2.5s ease-out forwards;
  transform-style: preserve-3d;
}

@keyframes coin-flip {
  0% { transform: rotateY(0deg) scale(1); }
  30% { transform: rotateY(720deg) scale(1.2); }
  60% { transform: rotateY(1440deg) scale(1.1); }
  85% { transform: rotateY(2160deg) scale(1.05); }
  100% { transform: rotateY(2520deg) scale(1); }
}

.gamble-label {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 20px;
  letter-spacing: 0.05em;
}
