/* 圆形转盘 — 春节红金主题 v2
   优化：数字精确居中、福字中心、灯泡更亮、外圈金光晕、指针更精致 */

.wheel-wrap {
  position: relative;
  width: min(92vw, 380px);
  height: min(92vw, 380px);
  margin: 30px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 整体外发光，让转盘区域有焦点感 */
.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,100,.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── 最外圈：灯泡装饰 ── */
.wheel-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.wheel-lights .light {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fff3a8 35%, #ffba00 80%, #ff5722 100%);
  box-shadow:
    0 0 4px rgba(255, 255, 255, .9),
    0 0 10px rgba(255, 220, 80, 1),
    0 0 18px rgba(255, 130, 30, .7),
    0 0 26px rgba(255, 90, 30, .4);
  margin: -7px 0 0 -7px;
  animation: light-twinkle 1.2s ease-in-out infinite;
}
/* 用奇偶 / 3n / 5n 错峰，让闪烁不像同步规律 */
.wheel-lights .light:nth-child(2n)   { animation-delay: 0.3s;  }
.wheel-lights .light:nth-child(3n)   { animation-delay: 0.6s;  }
.wheel-lights .light:nth-child(5n)   { animation-delay: 0.9s;  }
.wheel-lights .light:nth-child(7n)   { animation-delay: 0.15s; }
@keyframes light-twinkle {
  0%, 100% {
    opacity: 1;
    transform: translate(var(--lx), var(--ly)) scale(1);
    filter: brightness(1.05);
  }
  50% {
    opacity: .45;
    transform: translate(var(--lx), var(--ly)) scale(.55);
    filter: brightness(.7);
  }
}

/* ── 转盘外框（红金条纹边）── */
.wheel-frame {
  position: relative;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border-radius: 50%;
  padding: 16px;
  background:
    repeating-conic-gradient(
      from 0deg,
      var(--red) 0deg 10deg,
      var(--gold) 10deg 20deg
    );
  box-shadow:
    0 0 0 2px var(--red-deep),
    0 0 0 5px var(--gold),
    0 0 0 7px var(--red-deep),
    0 14px 38px rgba(139, 0, 0, .4),
    inset 0 0 0 4px rgba(255, 255, 255, .12);
  z-index: 1;
}

/* ── 顶部指针 ── */
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 36px solid var(--red);
  z-index: 6;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.45));
}
/* 指针顶部装饰球 */
.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -42px;
  left: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffceb 0%, #ffd86b 60%, #c8102e 100%);
  box-shadow:
    0 0 0 3px var(--red),
    0 0 0 5px var(--gold),
    0 4px 10px rgba(0,0,0,.45);
}
/* 指针底部装饰小金线 */
.wheel-pointer::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -22px;
  width: 24px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* ── 转盘本体 ── */
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gray-line);
  box-shadow:
    inset 0 0 0 3px var(--gold),
    inset 0 0 0 5px var(--red-deep),
    inset 0 -8px 16px rgba(0, 0, 0, .25),
    inset 0 8px 16px rgba(255, 255, 255, .25);
  position: relative;
  transition: transform 4s cubic-bezier(.17, .67, .12, .99);
  transform: rotate(0deg);
}

/* 扇区金色分割线（跟扇区一起转）*/
.wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg calc(360deg / var(--sectors, 12) - 0.8deg),
      rgba(255, 220, 100, .9) calc(360deg / var(--sectors, 12) - 0.8deg) calc(360deg / var(--sectors, 12))
    );
  pointer-events: none;
  z-index: 1;
}
/* 转盘上的高光（顶部更亮，营造立体感）*/
.wheel::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.25) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ── 数字标签层（跟扇区一起转）── */
.wheel .num-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.wheel .num-label {
  position: absolute;
  top: 50%;
  left: 50%;
  /* transform-origin 默认 center —— 不要设 0 0，否则旋转会让数字偏出扇区中心 */
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0,0,0,.7),
    0 0 4px rgba(0,0,0,.4),
    0 0 8px rgba(255,180,0,.3);
  white-space: nowrap;
  letter-spacing: 1px;
}

/* ── 中心金色圆环（hub）── */
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: -65px 0 0 -65px;
  background:
    radial-gradient(circle, var(--gold) 0%, var(--gold-soft) 55%, var(--red) 100%);
  box-shadow:
    0 0 0 3px var(--red-deep),
    0 0 0 6px var(--gold),
    0 0 0 8px var(--red-deep),
    0 8px 22px rgba(0, 0, 0, .4);
  z-index: 3;
  animation: hub-pulse 3s ease-in-out infinite;
}
@keyframes hub-pulse {
  0%, 100% { box-shadow:
    0 0 0 3px var(--red-deep),
    0 0 0 6px var(--gold),
    0 0 0 8px var(--red-deep),
    0 8px 22px rgba(0, 0, 0, .4),
    0 0 12px rgba(255, 215, 100, .35);
  }
  50%      { box-shadow:
    0 0 0 3px var(--red-deep),
    0 0 0 6px var(--gold),
    0 0 0 8px var(--red-deep),
    0 8px 22px rgba(0, 0, 0, .4),
    0 0 28px rgba(255, 215, 100, .75);
  }
}

/* ── 中央"春"字（待抽时），抽中后显示号码 ── */
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fffaf0 0%, #fff 35%, #fff5e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  font-weight: 700;
  color: var(--red);
  box-shadow:
    inset 0 0 0 2px var(--gold),
    inset 0 0 0 5px var(--red-deep),
    inset 0 -4px 8px rgba(139, 0, 0, .15),
    0 4px 14px rgba(0,0,0,.28);
  z-index: 4;
  /* 圆体字体栈：Mac/iOS 优先 Yuanti SC，Windows 用幼圆，最终 fallback 苹方 */
  font-family: "Hiragino Maru Gothic ProN", "Yuanti SC", "Yuanti TC",
               "幼圆", "YouYuan",
               "PingFang SC", "Hiragino Sans GB", sans-serif;
  user-select: none;
  letter-spacing: 0;
}
/* 抽中状态：换数字字号、回到稳重感 */
.wheel-center.revealed {
  font-size: 48px;
  font-weight: 900;
  animation: pop 0.6s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes pop {
  0%   { transform: translate(-50%,-50%) scale(.4); }
  60%  { transform: translate(-50%,-50%) scale(1.25); }
  100% { transform: translate(-50%,-50%) scale(1); }
}

.wheel-team {
  text-align: center;
  font-size: 19px;        /* 16 → 19 */
  color: var(--ink);
  margin-top: 26px;
  font-weight: 700;
  min-height: 26px;
  letter-spacing: .5px;
}
.wheel-perf {
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
  min-height: 22px;
  opacity: .92;
}
.wheel-perf[hidden] { display: none; }
