/* Bonus wheel: native modal focus management, keyboard and touch support. */
.wheel-open, .wheel-dialog button { font-family: inherit; cursor: pointer; }
.wheel-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid #7fcaff; border-radius: 10px; color: #c8edff; background: #102b48; font-size: 12px; font-weight: 800; white-space: nowrap; }
.wheel-open > span { color: #a6e1ff; font-size: 20px; }
.wheel-open:hover { background: #1b4063; }
button:focus-visible, .wheel-claim:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
body.wheel-is-open { overflow: hidden; }
.wheel-dialog { width: min(440px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid #537f9f; border-radius: 28px; color: #f7fbff; background: radial-gradient(ellipse at 50% 35%, #163d63 0%, #081b34 50%, #040d1d 100%); box-shadow: 0 30px 100px #000b, 0 0 50px #3ba9ff25; }
.wheel-dialog::backdrop { background: #010713d9; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.wheel-panel { position: relative; padding: 28px 26px 18px; text-align: center; }
.wheel-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid #9bd3ff30; border-radius: 50%; color: #c6def2; background: #ffffff08; font-size: 26px; line-height: 1; }
.wheel-close:hover { background: #ffffff18; }
.wheel-kicker { margin: 3px 28px 12px; color: #a6dfff; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.wheel-dialog h2 { margin: 0; font-family: 'Chakra Petch', sans-serif; font-size: clamp(27px, 7vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.wheel-dialog h2 span { color: #8ed2ff; }
#wheel-description { margin: 10px 0 0; color: #b9cede; font-size: 14px; line-height: 1.5; }
.wheel-stage { position: relative; width: min(100%, 300px); margin: 24px auto 14px; }
.wheel-pointer { position: absolute; z-index: 4; top: -9px; left: calc(50% - 12px); width: 24px; height: 32px; background: #fff0b5; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 3px 3px #0008); }
.wheel-rim { position: relative; aspect-ratio: 1; padding: 9px; border: 1px solid #d4efff; border-radius: 50%; background: linear-gradient(135deg, #d8f2ff, #417fb2 35%, #153f6c 65%, #b1e5ff); box-shadow: 0 0 0 5px #a4dbff12, 0 0 40px #3ba9ff30, 0 15px 35px #0006; }
.wheel-disc { position: relative; width: 100%; height: 100%; border-radius: 50%; background: repeating-conic-gradient(from -22.5deg, #1f4b77 0deg 45deg, #b1e1ff 45deg 90deg); box-shadow: inset 0 0 0 2px #ecf8ff55; transform: rotate(0deg); }
.wheel-prize { position: absolute; top: 0; left: 50%; width: 26%; height: 50%; padding-top: 18px; transform-origin: 50% 100%; transform: translateX(-50%) rotate(calc(var(--slice) * 45deg)); color: #fff; font-family: 'Chakra Petch', sans-serif; font-size: clamp(15px, 4.4vw, 21px); line-height: 1.05; font-weight: 700; white-space: nowrap; }
.wheel-prize:nth-child(even) { color: #082847; }
.wheel-prize.is-retry { font-size: clamp(11px, 3.2vw, 14px); letter-spacing: .02em; }
.wheel-prize small { display: block; margin: 5px auto 0; max-width: 54px; font-family: Manrope, sans-serif; font-size: 8px; line-height: 1.25; letter-spacing: .04em; white-space: normal; }
.wheel-hub { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 25%; height: 25%; place-items: center; transform: translate(-50%, -50%); border: 3px solid #c7eaff; border-radius: 50%; background: linear-gradient(145deg, #193d60, #041225); box-shadow: 0 4px 15px #0007; }
.wheel-hub img { width: 78%; height: auto; }
.wheel-status { min-height: 20px; margin: 12px 0; color: #bed2e3; font-size: 14px; line-height: 1.4; }
.wheel-spin, .wheel-claim { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; min-height: 54px; padding: 14px 20px; border: 1px solid #d4f0ff; border-radius: 14px; color: #041426; background: linear-gradient(105deg, #5ab7ff, #b3e6ff); box-shadow: 0 8px 25px #3ba9ff30; font-size: 17px; font-weight: 800; text-decoration: none; }
.wheel-spin > span, .wheel-claim > span { font-size: 24px; line-height: 1; }
.wheel-spin:disabled { cursor: wait; opacity: .65; }
.wheel-footnote { margin: 12px 0 0; color: #95acc3; font-size: 11px; line-height: 1.5; }
.wheel-result { margin: 22px 0 12px; padding: 24px 10px; border: 1px solid #8ed2ff66; border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, #3287c344, #ffffff04); }
.wheel-result > span { display: block; color: #a6dfff; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.wheel-result strong { display: block; margin-top: 8px; color: #b2e4ff; font: 700 clamp(66px, 18vw, 90px)/1 'Chakra Petch', sans-serif; letter-spacing: -.04em; text-shadow: 0 0 30px #5ab7ff50; }
.wheel-result strong small { font-size: .5em; color: white; }
.is-won .wheel-result { margin-top: 8px; }
.wheel-dialog [hidden] { display: none !important; }
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar .brand img { height: 35px; }
  .topbar-side { gap: 6px; }
  .topbar .age { padding-right: 5px; font-size: 9px; }
  .wheel-open { padding: 7px 9px; font-size: 11px; }
  .wheel-open > span { display: none; }
  .topbar .mini-cta { padding: 8px; font-size: 10px; min-height: 40px; }
  .topbar .mini-cta b { display: none; }
}
@media (max-width: 360px) {
  .wheel-panel { padding: 26px 18px 16px; }
  .wheel-prize { padding-top: 14px; }
  .topbar .brand img { height: 29px; }
}
.wheel-nudge {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 10px 12px 10px 16px; border: 1px solid #8ed2ff66; border-radius: 14px;
  color: #f7fbff; background: #0c223ad9; box-shadow: 0 12px 36px #0008; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 800 14px/1.3 Manrope, sans-serif; text-align: left; cursor: pointer;
  transform: translate3d(0, 120%, 0); opacity: 0; pointer-events: none;
}
.wheel-nudge.is-on { transform: none; opacity: 1; pointer-events: auto; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
.wheel-nudge b { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; color: #041426; background: linear-gradient(105deg, #5ab7ff, #b3e6ff); font-size: 12px; }
.wheel-nudge[hidden] { display: none !important; }
@media (min-width: 901px) {
  .wheel-open { min-height: 48px; padding-inline: 18px; font-size: 13px; border-radius: 12px; }
  .wheel-nudge { left: 50%; right: auto; width: min(520px, calc(100% - 32px)); transform: translate3d(-50%, 120%, 0); }
  .wheel-nudge.is-on { transform: translate3d(-50%, 0, 0); }
}
