/* 情缘大转盘 */
.wheel-page-wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 14px calc(32px + env(safe-area-inset-bottom, 0px));
}

.wheel-page-main {
  padding-top: 4px;
}

.wheel-page .wheel-hero {
  text-align: center;
  padding: 4px 0 16px;
}
.wheel-page .wheel-hero__title {
  font-family: var(--hub-font-display, 'Ma Shan Zheng', cursive);
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 6px;
  color: var(--hub-gold, #f2ddb8);
}
.wheel-page .wheel-hero__sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hub-muted, #a89898);
}
.wheel-page .wheel-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 240, 245, 0.12);
  border: 1px solid rgba(200, 120, 140, 0.35);
  font-size: 0.85rem;
  color: var(--hub-text-soft);
}
.wheel-page .wheel-balance strong {
  color: var(--hub-blush, #e8a0b0);
  font-size: 1rem;
}

.wheel-stage {
  position: relative;
  width: min(360px, 92vw);
  margin: 0 auto 20px;
  aspect-ratio: 1;
}
.wheel-stage__pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #c45c7a;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.wheel-stage__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 7px solid #e8c8a0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 3px rgba(255, 248, 240, 0.9);
  background: #fffaf5;
}
.wheel-stage__disc {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 4.2s cubic-bezier(0.15, 0.85, 0.2, 1);
  will-change: transform;
}
.wheel-stage__disc.is-spinning {
  transition-duration: 4.5s;
}
.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 0;
  transform-origin: 0% 100%;
  transform: rotate(var(--seg-rot, 0deg));
  clip-path: polygon(0 100%, 100% 0, 0 0);
  box-sizing: border-box;
  pointer-events: none;
}
.wheel-segment__label {
  position: absolute;
  left: 8%;
  top: 22%;
  width: 72%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  text-align: center;
  line-height: 1.1;
  transform-origin: 50% 120%;
}
.wheel-segment__icon {
  display: block;
  font-size: 0.95rem;
  line-height: 1;
}
.wheel-segment__yuan {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a3038;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wheel-segment__yuan--lg {
  font-size: 0.7rem;
}
.wheel-stage__hub {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff8f2, #f0dcc8);
  border: 2px solid #e0b890;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 0.68rem;
  color: #8a6060;
}
.wheel-stage__hub strong {
  font-size: 0.9rem;
  color: #c05070;
}

.wheel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.wheel-actions .hub-btn--primary {
  min-width: 220px;
}
.wheel-actions__meta {
  font-size: 0.78rem;
  color: var(--hub-muted);
  text-align: center;
  margin: 0;
  padding: 0 8px;
}
.wheel-result {
  text-align: center;
  padding: 14px 18px;
  margin: 0 auto 20px;
  max-width: 360px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(40, 28, 36, 0.85), rgba(60, 36, 48, 0.9));
  border: 1px solid rgba(200, 120, 140, 0.35);
  display: none;
}
.wheel-result.is-show {
  display: block;
  animation: wheelPop 0.5s ease;
}
@keyframes wheelPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.wheel-result__icon {
  font-size: 2rem;
  line-height: 1;
}
.wheel-result__title {
  margin: 6px 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hub-gold);
}
.wheel-result__net {
  font-size: 0.82rem;
  color: var(--hub-muted);
}

.wheel-odds {
  margin: 0 auto;
  max-width: 420px;
}
.wheel-odds__title {
  font-size: 0.9rem;
  margin: 0 0 10px;
  text-align: center;
  color: var(--hub-gold-dim);
  font-family: var(--hub-font-display);
}
.wheel-odds__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.wheel-odds__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--hub-border);
  font-size: 0.78rem;
}
.wheel-odds__item span:last-child {
  color: var(--hub-muted);
}

.wheel-recent {
  margin-top: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 12px;
}
.wheel-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}
.wheel-recent__list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--hub-border);
  color: var(--hub-text-soft);
}

@media (max-width: 380px) {
  .wheel-stage {
    width: min(320px, 94vw);
  }
  .wheel-segment__yuan {
    font-size: 0.72rem;
  }
  .wheel-segment__icon {
    font-size: 0.85rem;
  }
}

.wheel-verify-banner {
  margin: 12px auto 0;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(242, 221, 184, 0.35);
  background: rgba(40, 24, 32, 0.72);
  text-align: center;
}
.wheel-verify-banner p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--hub-muted, #c8b8b8);
  line-height: 1.45;
}
.wheel-actions #wheelSpinBtn.is-gated {
  opacity: 0.72;
}
