/* Coin flipper — local only */

.coin-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
  align-items: start;
  justify-items: center;
}

.coin-stage {
  perspective: 800px;
  width: min(14rem, 100%);
  aspect-ratio: 1;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
}

.coin-stage:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 4px;
  border-radius: 999px;
}

.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.2, 0.64, 1);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.coin__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  letter-spacing: 0.06em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.coin__face--heads {
  background: linear-gradient(145deg, #fbbf24, #d97706);
  color: #422006;
  transform: rotateY(0deg);
}

.coin__face--tails {
  background: linear-gradient(145deg, #94a3b8, #64748b);
  color: #0f172a;
  transform: rotateY(180deg);
}

.coin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.coin-stats {
  width: 100%;
  max-width: 24rem;
}

.coin-stat {
  flex: 1 1 auto;
  justify-content: center;
}

.coin-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #64748b);
  text-align: center;
  max-width: 28rem;
}
