/* Çark Çevirme: araca özel stiller (token'lar app.css'ten gelir; turuncu marka paleti) */
.tool__grid--wheel {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 480px);
}

.wheel-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.wheel {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  user-select: none;
}

.wheel__canvas,
.wheel__confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.wheel__canvas {
  box-shadow: var(--sh);
}

.wheel__confetti {
  pointer-events: none;
}

.wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 30px solid var(--ink);
  filter: drop-shadow(0 2px 3px #16110c59);
  pointer-events: none;
}

.wheel__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 104px;
  height: 104px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 5px var(--white), var(--glow);
}

.wheel__spin:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.97);
}

.wheel__spin:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.wheel__spin[aria-disabled="true"] {
  cursor: progress;
}

.wheel__hint {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.wheel-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.wheel-tools .btn {
  min-height: 44px;
}

.tool__grid--wheel .textarea {
  min-height: 240px;
  resize: vertical;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 899px) {
  .tool__grid--wheel {
    grid-template-columns: 1fr;
  }

  .wheel__spin {
    width: 84px;
    height: 84px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel__spin:active:not(:disabled) {
    transform: translate(-50%, -50%);
  }
}
