/* ============================================================
   wheel.css — 大转盘
   ============================================================ */
.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.wheel-modal[hidden] { display: none; }

.wheel-modal__panel {
  position: relative;
  width: min(100%, 420px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.wheel-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.wheel-modal__close:hover { background: var(--panel-2); color: var(--ink); }

.wheel-modal__title {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 6px;
  padding: 0 28px;
}
.wheel-modal__sub {
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ---------------- 转盘本体 ---------------- */
.wheel {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
}
.wheel__canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #14141c, 0 0 0 8px rgba(255, 255, 255, 0.08), var(--shadow);
}
.wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  z-index: 3;
}
.wheel__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(255, 61, 113, 0.4);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.wheel__spin:hover:not([disabled]) { transform: translate(-50%, -50%) scale(1.05); }
.wheel__spin[disabled] {
  opacity: 0.75;
  cursor: default;
  transform: translate(-50%, -50%);
}

.wheel-modal__result {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.wheel-modal__result.is-on { color: var(--ok); }
.wheel-modal__fine {
  color: #7d7d8e;
  font-size: 11.5px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .wheel-modal__panel { padding: 26px 24px 22px; }
  .wheel-modal__title { font-size: 24px; }
  .wheel { width: 340px; }
  .wheel__spin { width: 96px; height: 96px; font-size: 16px; }
}
