/* 
  Attack Wheel Styling 
  Premium, high-fidelity radial menu for move selection.
*/

:root {
  --wheel-bg: rgba(12, 14, 20, 0.94);
  --wheel-border: rgba(255, 255, 255, 0.15);
  --wheel-accent: #6b9fff;
  --wheel-glow: rgba(107, 159, 255, 0.2);
  --wheel-item-bg: rgba(25, 32, 45, 0.85);
  --wheel-item-border: rgba(154, 216, 255, 0.25);
}

.play-field-skill-wheel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-field-skill-wheel:not(.hidden) {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.play-field-skill-wheel__ring {
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 18, 26, 0.96) 0%, rgba(10, 12, 18, 0.9) 70%, rgba(5, 6, 8, 0.4) 100%);
  border: 1px solid var(--wheel-border);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.8),
    inset 0 0 100px rgba(0, 0, 0, 0.5);
  position: relative;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Selection Hub */
.play-field-skill-wheel__center {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(20, 24, 32, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  padding: 20px;
  pointer-events: auto;
}

.play-field-skill-wheel__center-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.play-field-skill-wheel__center-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.play-field-skill-wheel__center-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--wheel-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.play-field-skill-wheel__center-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Radial Selection Slice Indicator */
.play-field-skill-wheel__slice {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 580px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  background: conic-gradient(from -15deg, transparent 0deg, rgba(107, 159, 255, 0.25) 15deg, transparent 30deg);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s cubic-bezier(0.1, 0.7, 0.1, 1);
}

/* Category Sectors (Visual Dividers) */
.play-field-skill-wheel__sector-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
  transform-origin: 0 0;
  pointer-events: none;
}

/* Individual Move Items */
.play-field-skill-wheel__item {
  position: absolute;
  width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid var(--wheel-item-border);
  background: var(--wheel-item-bg);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.2s cubic-bezier(0.17, 0.84, 0.44, 1);
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}

.play-field-skill-wheel__item:hover,
.play-field-skill-wheel__item.is-hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.play-field-skill-wheel__item.is-selected {
  background: var(--wheel-accent);
  color: #0d1117;
  border-color: transparent;
  box-shadow: 0 0 25px var(--wheel-glow);
}

/* Type Coloring */
.play-field-skill-wheel__item.type-fire { border-color: rgba(255, 68, 68, 0.4); background: rgba(85, 20, 20, 0.8); }
.play-field-skill-wheel__item.type-water { border-color: rgba(68, 136, 255, 0.4); background: rgba(20, 45, 85, 0.8); }
.play-field-skill-wheel__item.type-grass { border-color: rgba(68, 255, 68, 0.4); background: rgba(20, 85, 20, 0.8); }
.play-field-skill-wheel__item.type-electric { border-color: rgba(255, 255, 68, 0.4); background: rgba(85, 85, 20, 0.8); }
.play-field-skill-wheel__item.type-psychic { border-color: rgba(255, 68, 255, 0.4); background: rgba(85, 20, 85, 0.8); }
.play-field-skill-wheel__item.type-ice { border-color: rgba(68, 255, 255, 0.4); background: rgba(20, 85, 85, 0.8); }
.play-field-skill-wheel__item.type-poison { border-color: rgba(187, 68, 255, 0.4); background: rgba(62, 20, 85, 0.8); }
.play-field-skill-wheel__item.type-bug { border-color: rgba(170, 187, 34, 0.4); background: rgba(56, 62, 11, 0.8); }
.play-field-skill-wheel__item.type-dragon { border-color: rgba(102, 51, 255, 0.4); background: rgba(34, 17, 85, 0.8); }
.play-field-skill-wheel__item.type-ghost { border-color: rgba(119, 119, 187, 0.4); background: rgba(39, 39, 62, 0.8); }
.play-field-skill-wheel__item.type-normal { border-color: rgba(170, 170, 153, 0.4); background: rgba(56, 56, 51, 0.8); }
.play-field-skill-wheel__item.type-flying { border-color: rgba(136, 153, 255, 0.4); background: rgba(45, 51, 85, 0.8); }

/* Category Labels */
.play-field-skill-wheel__category-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  pointer-events: none;
  transform-origin: center;
}

/* Animations */
@keyframes wheel-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.play-field-skill-wheel__ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: wheel-rotate 60s linear infinite;
  pointer-events: none;
}
