/* Klasroyal wheel: stage presentation over the existing API-driven prize logic. */
body:has(.wheel-card) .shortcut-bar { display: none; }
.wheels-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
.wheel-card { position: relative; overflow: hidden; padding: clamp(20px, 4vw, 38px); border: 1px solid rgba(218, 184, 108, .35); background: radial-gradient(ellipse at 50% 40%, #1b3150 0, #0d1a2d 55%, #080f1c 100%); box-shadow: inset 0 1px rgba(255, 236, 188, .18), 0 28px 70px rgba(0, 0, 0, .35); }
.wheel-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 37%, rgba(229, 186, 91, .13), transparent 44%); }
.wheel-card-head { position: relative; min-height: 0; text-align: center; }
.wheel-card-head h2 { font-family: var(--font-display); font-size: clamp(25px, 3.7vw, 37px); }
.wheel-card-head p { min-height: 0; font-size: 13px; }
.wheel-card .wheel-stage { width: min(530px, 100%); margin: 30px auto 35px; aspect-ratio: 1; isolation: isolate; }
.wheel-card .wheel { position: absolute; inset: 5.5%; width: 89%; height: 89%; border-radius: 50%; box-shadow: 0 0 0 3px #4f4129, 0 0 0 7px #d1ad64, 0 0 0 11px #0a1527, 0 18px 35px rgba(0,0,0,.55); }
.wheel-light-ring { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #14233a; background: radial-gradient(circle, #354667 58%, #07111e 69%, #c5a668 71%, #1b2b43 75%); box-shadow: 0 0 0 2px #886d41, inset 0 0 20px #000, 0 0 35px rgba(213, 168, 79, .16); }
.wheel-light-ring i { position: absolute; z-index: 4; left: calc(50% - 4px); top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #f5dca1; box-shadow: 0 0 5px 2px rgba(243, 197, 101, .7); transform: rotate(calc(var(--light-index) * 11.25deg)) translateY(calc(-1 * (min(530px, 100vw - 80px) / 2 - 16px))); animation: royal-wheel-bulb 2.8s ease-in-out infinite; animation-delay: calc(var(--light-index) * -75ms); }
.wheel-card .wheel-pointer { z-index: 6; top: 0; border-left-width: 20px; border-right-width: 20px; border-top-width: 39px; border-top-color: #f7e1a3; filter: drop-shadow(0 4px 3px #000); }
.wheel-card .wheel-hub { z-index: 5; width: 20%; height: 20%; background: radial-gradient(circle at 35% 25%, #f8eac1, #d1ab61 48%, #72552c 82%); box-shadow: 0 0 0 3px #fff0b5, 0 0 0 8px #132039, 0 8px 24px #000; }
.wheel-card .wheel-hub img { width: 68%; }
.wheel-base { position: absolute; z-index: -1; left: 22%; right: 22%; bottom: -6%; height: 16%; border-radius: 50% 50% 12% 12%; border: 2px solid #b4965a; background: linear-gradient(#283b57, #101b30 58%, #09111f); box-shadow: 0 10px 20px #0008; }
.wheel-card .prize-list { position: relative; display: flex; flex-wrap: wrap; justify-content: center; max-width: 560px; margin: 0 auto 20px; }
.wheel-card .prize-list li { flex: 0 1 auto; min-width: 70px; padding: 8px 10px; font-size: 12px; border: 1px solid rgba(230, 194, 114, .25); background: rgba(7, 16, 30, .6); border-radius: 999px; }
.wheel-card .btn { position: relative; max-width: 340px; margin: 0 auto; }
.wheel-card [data-spin-wheel]:disabled { opacity: .58; filter: saturate(.65); cursor: not-allowed; }
.wheel-card .wheel-result { position: relative; }
@keyframes royal-wheel-bulb { 0%,100% { opacity: .4; box-shadow: 0 0 3px 1px rgba(243,197,101,.35); } 45% { opacity: 1; box-shadow: 0 0 8px 3px rgba(243,197,101,.85); } }
@media (max-width: 620px) {
  .wheel-card { padding: 18px 12px 24px; }
  .wheel-card .wheel-stage { width: min(360px, calc(100vw - 52px)); margin: 24px auto 30px; }
  .wheel-light-ring { border-width: 6px; }
  .wheel-light-ring i { width: 6px; height: 6px; left: calc(50% - 3px); top: calc(50% - 3px); transform: rotate(calc(var(--light-index) * 11.25deg)) translateY(calc(-1 * (min(360px, 100vw - 52px) / 2 - 12px))); }
  .wheel-card .wheel-pointer { border-left-width: 14px; border-right-width: 14px; border-top-width: 28px; }
  .wheel-card .prize-list li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .wheel-card .wheel { transition-duration: .1ms; } .wheel-light-ring i { animation: none; opacity: .85; } }

/* Full-bleed wheel room. The wheel, not a rectangular card, owns the stage. */
.wheel-page { position:relative; min-height:calc(100dvh - 160px); overflow:hidden; isolation:isolate; background:radial-gradient(ellipse 70% 48% at 50% 30%,#1b3048 0%,#101d31 45%,transparent 82%),linear-gradient(180deg,#0a1425 0%,#091320 65%,#07111c 100%); }
.wheel-page::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(circle at 50% 38%,rgba(236,198,118,.12),transparent 29%),radial-gradient(ellipse 65% 12% at 50% 75%,rgba(216,167,85,.09),transparent 70%); }
.wheel-page::after { content:''; position:absolute; left:50%; top:35%; width:min(900px,90vw); aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; z-index:-1; pointer-events:none; background:radial-gradient(circle,transparent 47%,rgba(244,207,137,.065) 56%,transparent 66%); }
.wheel-page-inner { padding-top:clamp(32px,4vw,58px); padding-bottom:clamp(65px,7vw,110px); }
.wheel-page-head { text-align:center; }
.wheel-page-head>span { color:#e8c77e; font:800 11px/1.3 var(--font-display); letter-spacing:.21em; }
.wheel-page-head h1 { margin:10px 0 6px; color:#f5eddb; font:900 clamp(33px,4vw,58px)/1.06 var(--font-display); letter-spacing:-.035em; }
.wheel-page-head p { margin:0; color:#b8c1ca; font-size:clamp(12px,1.2vw,15px); }
.wheel-page .wheels-grid { max-width:1000px; margin:0 auto; }
.wheel-page .wheel-card { overflow:visible; padding:0 20px; border:0; border-radius:0; background:none; box-shadow:none; }
.wheel-page .wheel-card::before { display:none; }
.wheel-page .wheel-card .wheel-stage { --wheel-size:min(650px,calc(100vw - 80px)); width:var(--wheel-size); max-width:none; margin:22px auto 46px; filter:drop-shadow(0 22px 35px #0008); }
.wheel-page .wheel-light-ring { border:9px solid #182738; background:radial-gradient(circle,#364b67 53%,#101b2b 62%,#dbb675 69%,#142235 72%); box-shadow:0 0 0 2px #927245,inset 0 0 25px #000b,0 0 40px #c89e5440,0 0 105px #c89e5420; }
.wheel-page .wheel-light-ring i { transform:rotate(calc(var(--light-index) * 11.25deg)) translateY(calc(var(--wheel-size) / -2 + 18px)); }
.wheel-page .wheel-card .wheel { box-shadow:0 0 0 3px #50412d,0 0 0 8px #d9b975,0 0 0 12px #142235,0 24px 42px #000a; }
.wheel-page .wheel-card .wheel-pointer { top:-4px; filter:drop-shadow(0 6px 5px #000d); }
.wheel-page .wheel-base { display:none; }
.wheel-page .wheel-card .prize-list { max-width:680px; gap:8px; margin:0 auto 22px; }
.wheel-page .wheel-card .prize-list li { min-width:78px; border-color:#d9b8784d; background:#0b1828cc; color:#e9e5dc; }
.wheel-page .wheel-card .btn { max-width:360px; min-height:55px; border-radius:12px; }
.wheel-page .wheel-card .wheel-result { color:#eed393; }
@media(max-width:620px) {
  .wheel-page { min-height:calc(100dvh - 80px); }
  .wheel-page-inner { padding-top:26px; padding-bottom:120px; }
  .wheel-page-head h1 { font-size:34px; }
  .wheel-page .wheel-card { padding:0 8px; }
  .wheel-page .wheel-card .wheel-stage { --wheel-size:min(360px,calc(100vw - 34px)); margin:28px auto 42px; }
  .wheel-page .wheel-light-ring { border-width:6px; }
  .wheel-page .wheel-light-ring i { transform:rotate(calc(var(--light-index) * 11.25deg)) translateY(calc(var(--wheel-size) / -2 + 12px)); }
  .wheel-page .wheel-card .prize-list { max-width:350px; gap:6px; }
  .wheel-page .wheel-card .prize-list li { min-width:68px; }
}
