/* ========== 模块轮盘样式 ========== */

/* 右下角小轮盘兼作切换模式入口 */
.mini-module-wheel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 90px;
  height: 90px;
  z-index: 500;
  cursor: pointer;
  pointer-events: auto;
}

.mini-module-wheel:focus-visible {
  outline: 3px solid #FCD34D;
  outline-offset: 4px;
}

.mini-module-wheel svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.mini-module-wheel .wheel-label {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-module-wheel .wheel-action-label {
  color: #FCD34D;
  font-size: 12px;
}

/* 点击“切换模式”后弹出的大轮盘 */
.module-wheel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.module-wheel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.module-wheel-container {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  aspect-ratio: 1;
  overflow: visible;
  transform: scale(0.82);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-wheel-overlay.active .module-wheel-container {
  transform: scale(1);
}

.module-wheel-container svg {
  overflow: visible;
}

.module-wheel-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}

/* 轮盘扇区 */
.wheel-sector {
  cursor: pointer;
  transition: fill-opacity 0.25s ease, stroke 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
  transform-origin: center center;
}

.wheel-sector:hover {
  filter: brightness(1.15);
}

.wheel-icon-group {
  transition: transform 0.15s ease;
  pointer-events: none;
}

.wheel-icon-group image {
  pointer-events: none;
}

/* 悬停提示文字（放在遮罩层，用视口坐标定位，避免被SVG裁剪） */
.wheel-hover-label {
  position: absolute;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  letter-spacing: 3px;
  z-index: 10001;
}

.wheel-hover-label.visible {
  opacity: 1;
}

/* 折线指示器 */
#wheel-indicator {
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* 底部提示 */
.module-wheel-hint {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

.module-wheel-hint kbd {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 12px;
  margin: 0 2px;
}
