/* Yazı Tura - tool specific */
.cf-card {
  text-align: center;
}

.cf-stage {
  perspective: 900px;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0 0.5rem;
}

.cf-coin {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out;
}

.cf-coin.show-back {
  transform: rotateY(180deg);
}

.cf-coin.cf-spin {
  animation: cfSpin 0.9s cubic-bezier(0.3, 0.7, 0.4, 1);
}

@keyframes cfSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(1800deg); }
}

.cf-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backface-visibility: hidden;
  border: 5px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.cf-front {
  background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 70%);
  color: #713f12;
}

.cf-back {
  background: radial-gradient(circle at 35% 30%, #e2e8f0, #94a3b8 70%);
  color: #1e293b;
  transform: rotateY(180deg);
}

.cf-btn {
  margin: 0.5rem auto 0;
  min-width: 200px;
}

.cf-reset {
  display: block;
  margin: 0.9rem auto 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.cf-reset:hover {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .cf-coin {
    width: 120px;
    height: 120px;
  }
  .cf-face {
    font-size: 1.1rem;
  }
}
