
.r-common, .lands-common {
  --r-fill: hsl(150 28% 36%); --r-edge: rgba(226, 240, 230, 0.22); --r-glow: rgba(0, 0, 0, 0);
  --r-plate: #22372a; --r-ink: #eef5ef; --r-chip: #b7d2bf;
}
.r-uncommon, .lands-uncommon {
  --r-fill: hsl(148 48% 37%); --r-edge: #7ee2a8; --r-glow: rgba(94, 226, 150, 0.28);
  --r-plate: #145236; --r-ink: #effff5; --r-chip: #8ee8b4;
}
.r-semi-rare, .lands-semi-rare {
  --r-fill: hsl(188 56% 34%); --r-edge: #8ae9ff; --r-glow: rgba(110, 225, 255, 0.45);
  --r-plate: #0c4f5f; --r-ink: #f0fcff; --r-chip: #93ecff;
}
.r-rare, .lands-rare {
  --r-fill: hsl(266 36% 45%); --r-edge: #e0c9ff; --r-glow: rgba(196, 150, 255, 0.6);
  --r-plate: #45296f; --r-ink: #f8f2ff; --r-chip: #dcc4ff;
}
.r-ultra-rare, .lands-ultra-rare {
  --r-fill: hsl(42 88% 54%); --r-edge: #fff4c8; --r-glow: rgba(255, 214, 102, 0.75);
  --r-plate: var(--gold-deep); --r-ink: var(--gold-ink); --r-chip: #ffd873;
}
.wheel .wheel-seg i {
  background:
    radial-gradient(circle closest-side at 50% 50%,
      rgba(0, 0, 0, 0) 87%, var(--r-edge) 88.5%, var(--r-edge) 93%, rgba(0, 0, 0, 0) 94.5%),
    radial-gradient(circle closest-side at 50% 50%, rgba(0, 0, 0, 0) 55%, var(--r-glow) 100%),
    radial-gradient(circle at 50% 42%,
      rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, 0.16) 100%),
    var(--r-fill, var(--surface));
}
.wheel .wheel-seg.r-uncommon i { border-top-color: rgba(126, 226, 168, 0.5); }
.wheel .wheel-seg.r-semi-rare i { border-top-color: rgba(138, 233, 255, 0.6); }
.wheel .wheel-seg.r-rare i { border-top-color: rgba(224, 201, 255, 0.75); }
.wheel .wheel-seg.r-ultra-rare i {
  border-top-color: #fff4c8;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.3) 47%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle closest-side at 50% 50%,
      rgba(0, 0, 0, 0) 80%, rgba(255, 244, 200, 0.7) 81%, rgba(255, 244, 200, 0.7) 83%,
      rgba(0, 0, 0, 0) 84%, rgba(0, 0, 0, 0) 87%, var(--r-edge) 88.5%, var(--r-edge) 94%, rgba(0, 0, 0, 0) 95%),
    radial-gradient(circle closest-side at 50% 50%, rgba(0, 0, 0, 0) 50%, var(--r-glow) 100%),
    var(--r-fill);
}
.wheel .wheel-seg.r-ultra-rare i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 250, 225, 0.55) 50%,
                              rgba(255, 255, 255, 0) 60%);
  transform: translateX(-60%);
  animation: wheel-glint 7s ease-in-out 1.2s infinite;
}
.wheel-frame.is-spinning .wheel-seg i::after,
.wheel .wheel-seg.is-claimed i::after { display: none; }
@keyframes wheel-glint {
  0% { transform: translateX(-60%); }
  16%, 100% { transform: translateX(60%); }
}
.wheel-rarity.r-ultra-rare {
  background: linear-gradient(100deg, var(--gold-deep) 40%, #fff1bf 50%, var(--gold-deep) 60%) 120% 0 / 250% 100%;
  animation: wheel-chip-glint 7s ease-in-out 2s infinite;
}
@keyframes wheel-chip-glint {
  0% { background-position: 120% 0; }
  18%, 100% { background-position: -20% 0; }
}
.wheel .wheel-seg.r-semi-rare img { filter: drop-shadow(0 0 4px var(--r-glow)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.wheel .wheel-seg.r-rare img,
.wheel .wheel-seg.r-ultra-rare img { filter: drop-shadow(0 0 7px var(--r-glow)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.wheel .wheel-seg.is-claimed img { filter: grayscale(1); }
.wheel .wheel-seg.is-won.r-rare i,
.wheel .wheel-seg.is-won.r-ultra-rare i { filter: brightness(1.3) saturate(1.2); }
.wheel-frame.lands-uncommon::before,
.wheel-frame.lands-semi-rare::before,
.wheel-frame.lands-rare::before,
.wheel-frame.lands-ultra-rare::before {
  box-shadow: inset 0 4px 0 rgba(255, 245, 214, 0.45), inset 0 -4px 0 rgba(120, 72, 14, 0.35),
              0 12px 28px rgba(0, 0, 0, 0.36), 0 0 0 3px var(--r-edge), 0 0 44px 6px var(--r-glow);
}
.wheel-frame.lands-rare::before { animation: wheel-ring 1.4s var(--ease) both; }
.wheel-frame.lands-ultra-rare::before { animation: wheel-ring 1.1s var(--ease) 2 both; }
.wheel-frame.lands-ultra-rare.is-landed { animation: wheel-plop-big 0.8s var(--ease); }
@keyframes wheel-ring {
  0% { box-shadow: inset 0 4px 0 rgba(255, 245, 214, 0.45), inset 0 -4px 0 rgba(120, 72, 14, 0.35),
                   0 12px 28px rgba(0, 0, 0, 0.36), 0 0 0 0 var(--r-edge), 0 0 0 0 var(--r-glow); }
  40% { box-shadow: inset 0 4px 0 rgba(255, 245, 214, 0.45), inset 0 -4px 0 rgba(120, 72, 14, 0.35),
                    0 12px 28px rgba(0, 0, 0, 0.36), 0 0 0 7px var(--r-edge), 0 0 80px 18px var(--r-glow); }
}
@keyframes wheel-plop-big {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(0.96); }
  62% { transform: scale(1.03); }
}
.wheel-plaque[class*="r-"] {
  background: var(--r-plate);
  color: var(--r-ink);
  box-shadow: inset 0 4px 0 var(--r-edge), inset 0 -4px 0 rgba(0, 0, 0, 0.3),
              4px 4px 0 rgba(0, 0, 0, 0.4), 0 0 26px var(--r-glow), 0 12px 26px rgba(0, 0, 0, 0.45);
}
.wheel-plaque.r-ultra-rare {
  box-shadow: inset 0 4px 0 var(--gold), inset 0 -4px 0 rgba(26, 18, 4, 0.3),
              4px 4px 0 var(--gold-side), 0 0 40px var(--r-glow), 0 12px 26px rgba(0, 0, 0, 0.45);
}
.wheel-plaque .wheel-plaque-r {
  margin: 0 0 3px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--r-chip);
}
.wheel-plaque.r-ultra-rare .wheel-plaque-r { color: var(--gold-ink); }
.wheel-plaque small + small { font-weight: 600; line-height: 1.3; }
.wheel-rarity {
  display: inline-block;
  padding: 1px 8px 2px;
  border: 1px solid var(--r-chip);
  border-radius: 999px;
  color: var(--r-chip);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: 1px;
}
.wheel-rarity.r-ultra-rare { color: var(--gold-ink); border-color: var(--gold); }
.wheel-times { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; margin-right: 4px; }
.wheel-mix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.wheel-mix-l { color: var(--muted); font-size: 0.85rem; margin-right: 2px; }
.wheel-mix .wheel-rarity { font-size: 0.78rem; padding: 2px 9px 3px; }
.wheel-note { display: block; margin-top: 2px; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.wheelpage .wheel-list li.r-semi-rare,
.wheelpage .wheel-list li.r-rare,
.wheelpage .wheel-list li.r-ultra-rare,
.wheelpage .wheel-inv li.r-semi-rare,
.wheelpage .wheel-inv li.r-rare,
.wheelpage .wheel-inv li.r-ultra-rare {
  padding-left: 10px;
  box-shadow: inset 3px 0 0 var(--r-edge);
background: linear-gradient(90deg, var(--r-glow), rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0)),
              linear-gradient(90deg, var(--r-glow), rgba(0, 0, 0, 0) 55%);
}
.wheelpage .wheel-list li.r-common .wheel-rarity { opacity: 0.85; }
.wheelpage [hidden] { display: none !important; }
.wheel-lede-free { margin-top: 8px; }
.wheel-lede-free a, .wheel-next a { color: var(--gold); }
.wheel-subhead { margin: 22px 0 4px; font-size: 1.05rem; }
.wheel-super-go { margin-top: 14px; }
.wheel-next { margin: 4px 0 0; }
.wheel-next-h { margin: 0 0 4px; font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 1.15rem; }
.wheel-next .muted.small { margin: 0; }
.wheel-cleared-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 198, 92, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 198, 92, 0.07);
  font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
  .wheel-frame[class*="lands-"]::before, .wheel-frame.lands-ultra-rare.is-landed { animation: none; }
  .wheel .wheel-seg i::after { display: none; }
  .wheel-rarity.r-ultra-rare { animation: none; background: var(--gold-deep); }
}
.wheel-stage.wheel-stage-check { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
@media (max-width: 820px) {
  .wheel-stage.wheel-stage-check { grid-template-columns: minmax(0, 1fr); }
}
