/* 🎡 Колесо фортуны */

.wheel, .number {
  padding: 2rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#wheel-result {
  font-size: 1.2rem;
  text-align: center;
  color: #ccc;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #1f1f1f;
  border-radius: 8px;
  border: 1px solid #333;
  min-height: 3rem;
  transition: background-color 0.3s, color 0.3s;
}

#wheel-result i {
  margin-right: 0.5rem;
  color: #ffc107;
}

.wheel-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.wheel-controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  user-select: none;
}

.choice-field {
  padding: 0.5rem;
  background-color: #1c1c1c;
  color: white;
  border: none;
  border-radius: 6px;
  width: 100%;
}

#wheelCanvas {
  border-radius: 50%;
  display: block;
  cursor: pointer;
}

#wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.power-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 250px;
}

.power-indicator {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: visible;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.15);
}

.power-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7f1d1d, #ff0033, #ff3e7f);
  transition: width 0.15s ease-out;
  border-radius: 4px;
  animation: neonBar 1.5s infinite ease-in-out;
}

@keyframes neonBar {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(255, 0, 51, 0.4),
      0 0 12px rgba(255, 0, 51, 0.3),
      0 0 18px rgba(255, 0, 51, 0.25);
  }
  50% {
    box-shadow:
      0 0 8px rgba(255, 30, 90, 0.6),
      0 0 16px rgba(255, 30, 90, 0.4),
      0 0 24px rgba(255, 30, 90, 0.3);
  }
}

/* Tooltip Points */
.tooltip-point {
  position: absolute;
  top: 0;
  height: 100%;
  pointer-events: auto;
}

.tooltip-point.left {
  left: 0;
  width: 33.33%;
}
.tooltip-point.center {
  left: 33.33%;
  width: 33.34%;
}
.tooltip-point.right {
  left: 66.67%;
  width: 33.33%;
}

.tooltip-point::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--darklite);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  white-space: pre;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tooltip-point:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.option-row {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.field-btn {
  background-color: #333;
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.field-btn:hover {
  background-color: #555;
}

.result {
  font-size: 1.2rem;
  text-align: center;
  color: var(--pink);
  user-select: none;
}

.resultNumber {
  font-size: 1.2rem;
  text-align: center;
  color: var(--pink);
}

/* 🎛 Мини-кнопка */
.btn.mini {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  background-color: #2a2a2a;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.mini:hover {
  background-color: #3a3a3a;
}

/* Стили блокировки */
.choice-field.disabled,
.field-btn.disabled,
.btn.disabled,
.btn[disabled],
input[disabled],
button[disabled] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.activeRandomNum {
  color: var(--pink);
  text-shadow: 0 0 25px var(--pink), 0 0 30px rgba(255, 0, 100, 0.3);
  transition: all 0.3s ease;
}

.number-result {
  font-size: 2.5rem;
  font-weight: bold;
}