/* RANVYX Mystery Wheel — charcoal glass (site theme) */
#storeWheelPage{
  display:none;
  min-height:72vh;
  padding:1.75rem 1rem 4rem;
  position:relative;
  z-index:2;
}
html.store-view-wheel #storeWheelPage{display:block!important}
html.store-view-wheel #storeHomeBlock,
html.store-view-wheel .store-extra,
html.store-view-wheel #storeCategoryPage,
html.store-view-wheel #storeContactPage,
html.store-view-wheel #storeHistoryPage,
html.store-view-wheel #storeTopupPage{display:none!important}

#storeWheelPage::before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 60% 38% at 50% 10%, rgba(159,171,189,.08), transparent 62%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(106,128,160,.05), transparent 55%);
  pointer-events:none;z-index:0;
}

.wheel-wrap{
  position:relative;z-index:1;
  max-width:980px;margin:0 auto;text-align:center;
}
.wheel-eyebrow{
  font-family:Orbitron,Rajdhani,sans-serif;
  letter-spacing:.22em;font-size:.68rem;font-weight:600;
  color:var(--p1, #9fabbd);margin-bottom:.4rem;
  text-transform:uppercase;
}
.wheel-title{
  font-family:Orbitron,Rajdhani,sans-serif;
  font-size:clamp(1.65rem,4.2vw,2.45rem);font-weight:800;
  color:#f8fafc;margin:0 0 .4rem;
  letter-spacing:.04em;
  text-shadow:0 0 24px rgba(159,171,189,.18);
}
.wheel-sub{
  font-family:Rajdhani,system-ui,sans-serif;
  font-size:1.05rem;font-weight:500;
  color:rgba(226,232,240,.72);margin:0 0 1.15rem;
}
.wheel-meta{
  display:flex;flex-wrap:wrap;gap:.55rem;justify-content:center;margin-bottom:1.25rem;
}
.wheel-chip{
  padding:.42rem .95rem;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(12,12,16,.55);
  color:#e8edf4;font-size:.86rem;
  font-family:Rajdhani,sans-serif;font-weight:600;letter-spacing:.03em;
  backdrop-filter:blur(8px);
}

.wheel-stage{
  position:relative;
  width:min(600px,92vw);height:min(600px,92vw);
  margin:0 auto 1.15rem;
}
.wheel-stage::before{
  content:"";
  position:absolute;inset:-8px;border-radius:50%;
  background:radial-gradient(circle, rgba(159,171,189,.1) 0%, transparent 68%);
  z-index:0;opacity:.7;pointer-events:none;
}
.wheel-stage.is-spinning::before{
  opacity:1;
  background:radial-gradient(circle, rgba(159,171,189,.18) 0%, transparent 70%);
}

.wheel-fx{
  position:absolute;inset:-8%;border-radius:50%;pointer-events:none;z-index:5;
  opacity:0;
}
.wheel-fx.burst{
  opacity:1;
  background:radial-gradient(circle at 50% 8%, rgba(220,228,238,.35), transparent 30%);
  animation:wheel-burst .9s ease-out forwards;
}
@keyframes wheel-burst{
  0%{transform:scale(.82);opacity:0}
  35%{opacity:1}
  100%{transform:scale(1.18);opacity:0}
}

.wheel-pointer{
  position:absolute;top:-2px;left:50%;transform:translateX(-50%);
  z-index:6;width:0;height:0;
  border-left:13px solid transparent;border-right:13px solid transparent;
  border-top:28px solid #c5ceda;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.wheel-pointer::after{
  content:"";position:absolute;left:-5px;top:-28px;
  width:10px;height:10px;border-radius:50%;
  background:#e8edf4;box-shadow:0 0 10px rgba(255,255,255,.35);
}
.wheel-stage.wheel-land .wheel-pointer{
  animation:pointer-pop .55s ease;
}
@keyframes pointer-pop{
  0%,100%{transform:translateX(-50%) scale(1)}
  40%{transform:translateX(-50%) scale(1.2)}
}

.wheel-disk{
  width:100%;height:100%;border-radius:50%;
  border:4px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 0 28px rgba(255,255,255,.04),
    inset 0 0 50px rgba(0,0,0,.35),
    0 0 0 8px rgba(255,255,255,.04),
    0 18px 40px rgba(0,0,0,.35);
  transition:transform 6s cubic-bezier(.08,.82,.12,1);
  position:relative;overflow:hidden;background:#0a0a0e;z-index:1;
}
.wheel-stage.is-spinning .wheel-disk{
  box-shadow:
    inset 0 0 40px rgba(0,0,0,.4),
    0 0 0 8px rgba(255,255,255,.06),
    0 18px 40px rgba(0,0,0,.4);
}
@property --spin {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
.wheel-slots{
  position:absolute;inset:0;width:100%;height:100%;
  z-index:1;pointer-events:none;
}
.wheel-slots line{
  stroke:rgba(255,255,255,.28);
  stroke-width:0.55;
  stroke-linecap:round;
}
.wheel-prizes{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  --spin: 0deg;
}
.wheel-prize{
  position:absolute;left:50%;top:50%;
  width:auto;height:auto;
  display:block;
  transform:
    translate(-50%, -50%)
    rotate(var(--a))
    translateY(calc(var(--r, -162) * 1px))
    rotate(calc(-1 * (var(--a) + var(--spin))));
  transform-origin:center center;
  will-change:transform;
}
.wheel-prize-box{
  width:108px;height:108px;border-radius:16px;
  position:relative;
  overflow:hidden;
  background:rgba(14,14,18,.42);
  border:1.5px solid rgba(255,255,255,.22);
  box-shadow:
    0 8px 18px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter:blur(6px);
  display:grid;place-items:center;
  padding:5px;
  box-sizing:border-box;
}
.wheel-prize-box img{
  position:relative;z-index:1;
  width:100%;height:100%;
  max-width:100%;max-height:100%;
  aspect-ratio:1 / 1;
  object-fit:contain;
  object-position:center;
  display:block;
  border-radius:14px;
  filter:contrast(1.04) saturate(1.05);
}
.wheel-prize-box span{
  position:absolute;z-index:2;
  left:5px;right:5px;bottom:5px;
  font-family:Orbitron,Rajdhani,sans-serif;
  font-size:.58rem;font-weight:700;letter-spacing:.01em;
  color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.95);
  line-height:1.15;
  overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  word-break:break-word;text-align:center;
  padding:.18rem .28rem;border-radius:8px;
  background:rgba(6,6,10,.7);
  border:1px solid rgba(255,255,255,.12);
}
.wheel-prize.is-winner .wheel-prize-box{
  border-color:rgba(255,255,255,.7);
  box-shadow:0 0 0 2px rgba(159,171,189,.45), 0 0 22px rgba(255,255,255,.18);
}
.wheel-prize.is-winner .wheel-prize-box span{
  background:rgba(30,34,42,.72);
}

.wheel-prizes[data-n="xl"] .wheel-prize-box{width:120px;height:120px;border-radius:18px}
.wheel-prizes[data-n="xl"] .wheel-prize-box span{font-size:.6rem}

.wheel-prizes[data-n="lg"] .wheel-prize-box{width:108px;height:108px;border-radius:16px}
.wheel-prizes[data-n="lg"] .wheel-prize-box span{font-size:.54rem}

.wheel-prizes[data-n="md"] .wheel-prize-box{width:90px;height:90px;border-radius:14px}
.wheel-prizes[data-n="md"] .wheel-prize-box span{font-size:.48rem;left:3px;right:3px;bottom:3px}

.wheel-prizes[data-n="sm"] .wheel-prize-box{width:72px;height:72px;border-radius:12px}
.wheel-prizes[data-n="sm"] .wheel-prize-box span{font-size:.4rem;padding:.1rem .15rem}

@media (max-width:768px){
  #storeWheelPage{padding:1.25rem .85rem 3.5rem}
  .wheel-wrap{padding:0 .15rem}
  .wheel-meta{gap:.4rem}
  .wheel-chip{font-size:.78rem;padding:.36rem .75rem}
  .wheel-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
}

@media (max-width:480px){
  .wheel-stage{width:min(520px,94vw);height:min(520px,94vw)}
  .wheel-prizes[data-n="lg"] .wheel-prize-box{width:92px;height:92px}
  .wheel-prizes[data-n="xl"] .wheel-prize-box{width:100px;height:100px}
  .wheel-prize-box span{font-size:.48rem}
}

.wheel-center{
  position:absolute;inset:38%;border-radius:50%;
  background:radial-gradient(circle at 32% 28%, #2a2a32, #0a0a0e 72%);
  border:2px solid rgba(255,255,255,.18);
  box-shadow:inset 0 0 16px rgba(255,255,255,.05), 0 0 18px rgba(0,0,0,.35);
  z-index:4;display:grid;place-items:center;
  color:#e8edf4;
  font-family:Orbitron,sans-serif;font-size:.72rem;letter-spacing:.14em;font-weight:700;
}
.wheel-stage.is-spinning .wheel-center{
  animation:center-glow .5s ease-in-out infinite alternate;
}
@keyframes center-glow{
  from{box-shadow:inset 0 0 16px rgba(255,255,255,.05), 0 0 14px rgba(0,0,0,.3)}
  to{box-shadow:inset 0 0 20px rgba(255,255,255,.1), 0 0 22px rgba(159,171,189,.18)}
}

.wheel-spin-btn{
  appearance:none;border:1px solid rgba(255,255,255,.14);cursor:pointer;
  padding:.95rem 2.2rem;border-radius:999px;
  font-family:Orbitron,Rajdhani,sans-serif;font-weight:700;
  letter-spacing:.06em;font-size:1rem;color:#f3f4f6;
  background:linear-gradient(145deg, #2e2e36 0%, #17171d 48%, #0b0b0f 100%);
  box-shadow:0 10px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.wheel-spin-btn:hover:not(:disabled){
  transform:translateY(-1px);filter:brightness(1.1);
  box-shadow:0 12px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.18);
}
.wheel-spin-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}

.wheel-legend{
  margin-top:1.4rem;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(148px,1fr));
  gap:.65rem;text-align:left;
}
.wheel-legend-item{
  display:flex;gap:.65rem;align-items:center;
  padding:.55rem .7rem;border-radius:14px;
  background:rgba(12,12,16,.72);
  border:1px solid rgba(255,255,255,.1);
  color:#e2e8f0;font-size:.84rem;
  font-family:Rajdhani,sans-serif;font-weight:600;
  transition:border-color .2s ease, transform .2s ease;
}
.wheel-legend-item:hover{
  border-color:rgba(255,255,255,.22);
  transform:translateY(-1px);
}
.wheel-legend-thumb{
  width:48px;height:48px;flex:0 0 auto;border-radius:12px;
  object-fit:contain;object-position:center;
  background:rgba(10,10,14,.85);
  border:1px solid rgba(255,255,255,.12);
  padding:4px;box-sizing:border-box;
}
.wheel-swatch{
  width:12px;height:12px;border-radius:50%;flex:0 0 auto;
  box-shadow:0 0 0 2px rgba(255,255,255,.08);
}
.wheel-legend-meta{min-width:0;display:flex;flex-direction:column;gap:1px}
.wheel-legend-meta strong{
  font-family:Orbitron,Rajdhani,sans-serif;font-size:.72rem;font-weight:700;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.wheel-legend-meta small{color:#94a3b8;font-weight:500;font-size:.75rem}

.wheel-result-modal{
  position:fixed;inset:0;z-index:12000;display:none;place-items:center;
  background:rgba(2,4,10,.78);backdrop-filter:blur(10px);padding:1rem;
}
.wheel-result-modal.open{display:grid}
.wheel-result-card{
  width:min(420px,94vw);border-radius:20px;padding:1.35rem 1.25rem 1.2rem;
  background:linear-gradient(165deg,#1a1a22 0%,#08080c 65%);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  color:#fff;text-align:center;
}
.wheel-result-card .wheel-eyebrow{margin-bottom:.55rem}
.wheel-result-card h3{
  font-family:Orbitron,Rajdhani,sans-serif;font-size:1.25rem;margin:.2rem 0 .5rem;
}
.wheel-result-img{
  width:120px;height:120px;object-fit:contain;object-position:center;
  margin:.35rem auto .7rem;display:block;border-radius:16px;
  background:rgba(10,10,14,.7);border:1px solid rgba(255,255,255,.12);
  padding:8px;box-sizing:border-box;
}
.wheel-result-img[hidden]{display:none}
.wheel-result-key{
  margin:.75rem 0;padding:.75rem;border-radius:12px;
  background:rgba(0,0,0,.4);border:1px dashed rgba(255,255,255,.18);
  font-family:Space Mono,ui-monospace,monospace;word-break:break-all;color:#e8edf4;
}
.wheel-result-actions{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin-top:.95rem}
.wheel-result-actions button{
  border:0;border-radius:999px;padding:.58rem 1.15rem;cursor:pointer;font-weight:700;
  font-family:Rajdhani,sans-serif;font-size:.95rem;
}
.wheel-btn-primary{
  background:linear-gradient(145deg, #2e2e36, #17171d);color:#f3f4f6;
  border:1px solid rgba(255,255,255,.14);
}
.wheel-btn-ghost{background:rgba(255,255,255,.08);color:#e2e8f0}
