
.wheelpage h1 { margin: 0 0 6px; }
.wheel-preview {
  border: 1px solid rgba(255, 198, 92, 0.4);
  background: rgba(255, 198, 92, 0.07);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 11px 16px;
  margin: 0 0 26px;
  font-size: 0.92rem;
}
.wheel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.wheel-lede { color: var(--muted); max-width: 46ch; margin: 0; }
.wheel-bank {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}
.wheel-bank-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.wheel-shut {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--muted);
}
.wheel-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 34px;
  align-items: center;
  margin-bottom: 30px;
background: radial-gradient(ellipse 46% 60% at 32% 50%, rgba(255, 198, 92, 0.10), rgba(255, 198, 92, 0) 100%);
}
.wheel-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  aspect-ratio: 1;
}
.wheel-frame.is-preview {
  cursor: pointer;
  transition: transform 0.28s var(--ease), filter 0.28s var(--ease);
}
.wheel-frame.is-preview:hover { transform: scale(1.02); filter: brightness(1.06); }
.wheel-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
background:
repeating-conic-gradient(from -7.5deg,
      rgba(255, 246, 214, 0.42) 0deg 5deg,
      rgba(255, 220, 140, 0.08) 5deg 10deg,
      rgba(120, 72, 14, 0.26) 10deg 13.4deg,
      rgba(60, 34, 6, 0.34) 13.4deg 15deg),
    radial-gradient(circle at 50% 36%, #ffe7a6 0%, #eab24d 52%, #c98f2e 100%);
  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 60px rgba(255, 198, 92, 0.12);
}
.wheel-marker {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 40px;
  height: 58px;
  margin-left: -20px;
  z-index: 6;
background: radial-gradient(circle at 40% 30%, #fff3cc 0%, #ffd264 45%, #e9a83a 100%);
  clip-path: polygon(50.0% 100.0%, 76.3% 63.8%, 87.3% 57.5%, 95.2% 49.2%, 99.4% 39.8%, 99.6% 29.9%, 95.6% 20.4%, 88.0% 12.0%, 77.2% 5.5%, 64.2% 1.4%, 50.0% 0.0%, 35.8% 1.4%, 22.8% 5.5%, 12.0% 12.0%, 4.4% 20.4%, 0.4% 29.9%, 0.6% 39.8%, 4.8% 49.2%, 12.7% 57.5%, 23.7% 63.8%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
transform-origin: 50% 34.5%;
}
.wheel-frame.is-landed { animation: wheel-plop 0.7s var(--ease); }
.wheel-frame.is-landed .wheel-marker {
  animation: wheel-marker-land 0.7s var(--ease);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(255, 209, 102, 0.8));
}
@keyframes wheel-plop {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(0.975); }
  65% { transform: scale(1.015); }
}
@keyframes wheel-marker-land {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.14); }
}
.wheel {
  position: absolute;
inset: 15px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.35);
  background: var(--bg-alt);
  overflow: hidden;
box-shadow: inset 0 0 0 3px rgba(255, 226, 158, 0.28),
              inset 0 10px 24px rgba(0, 0, 0, 0.3),
              inset 0 -8px 18px rgba(0, 0, 0, 0.22);
transition: transform 4.6s cubic-bezier(0.17, 0.78, 0.26, 1);
  will-change: transform;
}
.wheel-line {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 0.7%;
  height: 46.5%;
  margin-left: -0.35%;
  transform-origin: 50% 100%;
  z-index: 4;
  pointer-events: none;
  border-radius: 99px;
  background: rgba(255, 244, 214, 0.3);
  box-shadow: 1px 0 0 rgba(5, 11, 7, 0.3);
}
.wheel-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 340%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -45%);
  background: radial-gradient(circle at 36% 30%, #fff4d0 0%, #f2b94d 55%, #b27a22 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.wheel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(115% 85% at 30% 20%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.14) 100%);
}
.wheel-seg {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}
.wheel-seg i {
  position: absolute;
  inset: 0;
  display: block;
background: var(--surface);
  border-top: 2px solid rgba(255, 255, 255, 0.22);
transition: filter 0.5s var(--ease);
}
.wheel-seg.is-claimed i {
  filter: brightness(0.6) saturate(0.5);
  border-top-color: rgba(255, 255, 255, 0.1);
}
.wheel-seg.is-claimed::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(14% - var(--icon, 10%) / 2);
width: var(--icon, 10%);
  height: var(--icon, 10%);
transform: translateX(-50%) rotate(calc(-1 * (var(--a, 0deg) + var(--turned, 0deg))));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23000' stroke-opacity='.7' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23ffc65c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wheel-seg.is-won { z-index: 3; }
.wheel-seg.is-won i { filter: brightness(1.35) saturate(1.15); }
.wheel-seg b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wheel-seg img {
  position: absolute;
  left: 50%;
top: calc(14% - var(--icon, 10%) / 2);
  transform: translateX(-50%);
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}
.wheel-seg.is-claimed img { opacity: 0.25; filter: grayscale(1); }
.wheel-seg i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(14% + var(--icon, 0%) * 0.12);
  width: calc(var(--icon, 0%) * 1.5);
  height: calc(var(--icon, 0%) * 0.42);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 72%);
}
.wheel-seg.is-claimed i::before { display: none; }
.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 31%;
  height: 31%;
  margin: -15.5% 0 0 -15.5%;
  border-radius: 50%;
background: radial-gradient(circle at 50% 32%, #2a5a3d 0%, #143224 60%, #0d2418 100%);
  border: 3px solid transparent;
  box-shadow: 0 0 0 4px #eab24d,
              0 0 0 5px rgba(255, 246, 214, 0.45),
              inset 0 2px 0 rgba(255, 255, 255, 0.14),
              inset 0 -5px 10px rgba(0, 0, 0, 0.3),
              0 6px 16px rgba(0, 0, 0, 0.4);
  display: grid;
  place-content: center;
  text-align: center;
  z-index: 2;
}
.wheel-hub-n {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.55);
}
.wheel-hub-l { display: block; font-size: 0.72rem; color: var(--muted); }
.wheel-side {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(16, 36, 22, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.wheel-count { font-size: 1.05rem; margin: 0 0 6px; }
.wheel-count b { font-family: var(--display); font-size: 1.9rem; color: var(--gold); }
.wheel-track { display: flex; gap: 5px; margin: 0 0 14px; }
.wheel-track i {
  flex: 1 1 0;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wheel-track i.is-on {
  background: linear-gradient(180deg, #ffe7a6, #eab24d 55%, #c98f2e);
  box-shadow: inset 0 1px 0 rgba(255, 245, 214, 0.6),
              inset 0 -1px 0 rgba(120, 72, 14, 0.5),
              0 0 8px rgba(255, 198, 92, 0.35);
}
.wheel-side .btn.is-busy { pointer-events: none; }
body.is-embed > *:not(main) { display: none; }
body.is-embed .wheelpage { padding-top: 14px; }
body.is-embed .wheel-preview { margin-right: 44px; }   
.wheel-cleared {
  border: 1px solid rgba(255, 198, 92, 0.4);
  background: rgba(255, 198, 92, 0.07);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 2px 0 0;
}
.wheel-cleared-h {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 800;
  color: var(--gold);
}
.wheel-cleared p:last-child { margin-bottom: 0; }
.wheel-won {
  margin: 14px 0 0;
  min-height: 1.4em;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
}
.wheel-won.is-new { animation: wheel-land 0.5s var(--ease); }
@keyframes wheel-land {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
.wheel-prizepop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  height: 26%;
  margin: -13% 0 0 -13%;           
  z-index: 8;
  image-rendering: pixelated;
  pointer-events: none;
  visibility: hidden;              
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}
.wheel-prizepop.pop-2 { width: 30%; height: 30%; margin: -15% 0 0 -15%; }
.wheel-prizepop.pop-3 { width: 36%; height: 36%; margin: -18% 0 0 -18%; }
.wheel-prizepop.is-on { visibility: visible; animation: wheel-prizepop 2.6s var(--ease) both; }
.wheel-prizepop.is-on + .wheel-hub > span { visibility: hidden; }
@keyframes wheel-prizepop {
  0% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
  12% { opacity: 1; transform: scale(1.16) rotate(5deg); }
  22% { transform: scale(1) rotate(0deg); }
  86% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
.wheel-plaque {
  position: absolute;
  left: 50%;
  top: 72%;
  z-index: 10;
  max-width: 78%;
  margin: 0;
  padding: 8px 18px 9px;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.15;
  background: var(--gold-deep);
  color: var(--gold-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  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 12px 26px rgba(0, 0, 0, 0.45);
  visibility: hidden;
}
.wheel-plaque small { display: block; margin-top: 3px; font-size: 0.72rem; font-weight: 700; }
.wheel-plaque.is-on { visibility: visible; animation: wheel-plaque 2.6s var(--ease) 0.1s both; }
@keyframes wheel-plaque {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.85); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  18% { transform: translate(-50%, -50%) scale(1); }
  86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
.wheel-fx {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}
.wheel-fx span {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
animation: wheel-fall var(--d, 2s) var(--ease) var(--delay, 0s) both;
}
@keyframes wheel-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--x, 0), var(--y, 220px)) rotate(var(--r, 360deg)); opacity: 0; }
}
.wheelpage .wheel-list,
.wheelpage .wheel-inv { list-style: none; margin: 14px 0 0; padding: 0; }
.wheelpage .wheel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.wheelpage .wheel-list li:first-child { border-top: 0; }
.wheelpage .wheel-list img,
.wheelpage .wheel-inv img { image-rendering: pixelated; flex: none; }
.wheelpage .wheel-prize { flex: 1 1 0; min-width: 0; }
.wheelpage .wheel-prize b { font-weight: 600; margin-right: 4px; }
.wheelpage .wheel-list li.is-claimed { opacity: 0.45; }
.wheel-worth {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 0.9rem;
  white-space: nowrap;
}
.wheelpage .wheel-odds { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.wheel-superline { margin-top: 16px; }
.wheel-superline b { color: var(--gold); }
.wheelpage .wheel-inv li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.wheelpage .wheel-inv li:first-child { border-top: 0; }
.wheelpage .wheel-inv li > div { flex: 1 1 180px; min-width: 0; }
.wheelpage .wheel-inv .muted.small { display: block; }
.wheel-claim, .wheel-staff-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wheel-claim input { width: 190px; margin: 0; }
.wheel-staff-form input { width: 84px; margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wheel-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 12px;
  margin: 16px 0 14px;
}
.wheel-pack { margin: 0; }
.wheel-pack-btn {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.wheel-pack-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.wheel-pack-btn.is-best { border-color: rgba(255, 198, 92, 0.55); }
.wheel-pack-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wheel-pack-w { font-size: 0.78rem; color: var(--muted); }
.wheel-pack-p { font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.wheel-pack-each { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wheel-pack-off { font-size: 0.76rem; color: var(--gold); }
@media (max-width: 820px) {
  .wheel-stage { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wheel-frame { max-width: 300px; }
  .wheel-side { padding: 16px 18px; }
.wheel-side > .muted.small { display: none; }
  .wheel-side .btn-block { margin-top: 12px; }
  .wheel-plaque { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .wheel-head { align-items: flex-start; margin-bottom: 16px; gap: 10px 20px; }
  .wheel-lede { font-size: 0.95rem; }
  .wheel-bank-n { font-size: 2rem; }
.wheelpage .wheel-list li { flex-wrap: wrap; row-gap: 2px; }
  .wheelpage .wheel-odds { width: 100%; padding-left: 46px; font-size: 0.9rem; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel { transition: none; }
  .wheel-won.is-new { animation: none; }
  .wheel-pack-btn { transition: none; }
  .wheel-pack-btn:hover { transform: none; }
  .wheel-frame.is-preview { transition: none; }
  .wheel-frame.is-preview:hover { transform: none; }
.wheel-seg i, .wheel-seg img { transition: none; }
  .wheel-frame.is-landed, .wheel-frame.is-landed .wheel-marker { animation: none; }
  .wheel-track i { transition: none; }
  .wheel-fx span, .wheel-plaque, .wheel-prizepop { animation: none; }
}
