/* ============================================================
 * wheel.css — 摸鱼大转盘
 * ============================================================ */

.wheel-page { max-width: 440px; margin: 0 auto; text-align: center; }

.wheel-box {
  position: relative;
  width: min(320px, 76vw);
  aspect-ratio: 1;
  margin: 22px auto 14px;
}
.wheel-rotor {
  position: absolute;
  inset: 0;
  transition: transform 4.4s cubic-bezier(.12, .66, .04, 1);
  will-change: transform;
}
.wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(60, 50, 30, .18));
}

/* 指针(顶部朱砂) */
.wheel-pointer {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 22px solid var(--cinnabar);
  filter: drop-shadow(0 2px 3px rgba(138, 47, 36, .4));
  z-index: 4;
}
.wheel-pointer::after {
  content: '';
  position: absolute;
  top: -24px;
  left: -4.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cinnabar-deep);
}

/* 中央轮毂按钮 */
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.6px solid var(--ink);
  background: var(--paper-card);
  font-size: 24px;
  letter-spacing: 0;
  z-index: 5;
  box-shadow: 0 3px 12px rgba(60, 50, 30, .22), inset 0 0 0 4px rgba(43, 43, 43, .06);
  transition: all .25s ease;
}
.wheel-hub:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  box-shadow: 0 3px 16px rgba(176, 58, 46, .3), inset 0 0 0 4px rgba(176, 58, 46, .08);
}
.wheel-hub:active { transform: translate(-50%, -50%) scale(.93); }

.wheel-chance {
  font-size: 13px;
  color: var(--ink-60);
  letter-spacing: .12em;
}
.wheel-chance b { color: var(--cinnabar); font-weight: 600; margin: 0 1px; }

/* 结果 */
.wheel-result {
  min-height: 52px;
  margin: 12px 0 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
  line-height: 1.7;
}
.wheel-result.show { opacity: 1; transform: none; }
.wheel-result.hit { font-size: 16px; color: var(--cinnabar); letter-spacing: .12em; }
.wheel-result.miss { font-size: 14px; color: var(--ink-60); letter-spacing: .18em; }
.result-note { font-size: 12px; color: var(--ink-60); letter-spacing: .1em; }
.result-star { color: var(--gold); }

/* 中奖墨彩飞溅 */
.confetti {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 5px;
  border-radius: 1px;
  pointer-events: none;
  z-index: 6;
  animation: confettiFly 1.25s cubic-bezier(.2, .7, .4, 1) both;
}

/* 试卷登记 */
.paper-box { margin-top: 14px; }
.paper-note { margin: 8px 0 0; }

/* 概率一览 */
.prob-toggle {
  margin: 16px auto 0;
  font-size: 12px;
  color: var(--ink-60);
  letter-spacing: .15em;
  border-bottom: 1px dotted var(--ink-25);
  padding-bottom: 2px;
  transition: color .25s;
}
.prob-toggle:hover { color: var(--ink); }
.prob-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.25, .9, .3, 1), opacity .4s;
  opacity: 0;
  font-size: 12.5px;
  color: var(--ink-60);
  line-height: 2.1;
  letter-spacing: .06em;
}
.prob-list.open { max-height: 240px; opacity: 1; margin-top: 8px; }
.prob-list b { color: var(--ink); font-weight: 600; }
.prob-foot { font-size: 11px; color: rgba(176, 58, 46, .75); }

/* 转盘志 */
.wheel-history { text-align: left; max-width: 380px; margin: 0 auto; }
.hist-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  padding: 6px 2px;
  border-bottom: 1px dashed var(--ink-15);
  color: var(--ink-60);
}
.hist-line.hit .hist-label { color: var(--cinnabar); }
.hist-date { flex: none; width: 3.4em; letter-spacing: .05em; }
.hist-label { flex: 1; letter-spacing: .05em; }
.hist-extra {
  flex: none;
  font-size: 10px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0 4px;
}
