:root {
  --deep: #030a1a;
  --navy: #071a36;
  --blue: #3ba9ff;
  --blue-b: #82d0ff;
  --ice: #c8edff;
  --gold: #ffd76a;
  --gold-d: #f5a300;
  --white: #f7fbff;
  --muted: #9db6d1;
  --size: min(86vw, 50vh, 430px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@supports (height: 100svh) {
  :root { --size: min(86vw, 50svh, 430px); }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; height: 100%; background: var(--deep); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  color: var(--white);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--deep);
}
button { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Background */
.bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, #0b2a52 0%, #061630 46%, #030a1a 100%); }
.orb { position: absolute; display: block; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(59, 169, 255, .34), rgba(59, 169, 255, 0) 68%); }
.orb-a { top: -18vmax; left: -22vmax; width: 70vmax; height: 70vmax; -webkit-animation: orb 9s ease-in-out infinite; animation: orb 9s ease-in-out infinite; }
.orb-b { right: -26vmax; bottom: -20vmax; width: 78vmax; height: 78vmax; -webkit-animation: orb 11s -4s ease-in-out infinite; animation: orb 11s -4s ease-in-out infinite; }
.stars { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.star { position: absolute; display: block; width: 3px; height: 3px; border-radius: 50%; background: #cfeeff; opacity: 0;
  -webkit-animation: twinkle 3.4s ease-in-out infinite; animation: twinkle 3.4s ease-in-out infinite; }

/* Layout */
.stage { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; width: 100%; max-width: min(650px, 100%); margin: 0 auto;
  padding: 12px 16px 16px; padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 10px; }
.brandbox { display: flex; align-items: center; gap: 12px; }
.seal { display: block; flex: 0 0 auto; line-height: 0; }
.seal img { display: block; width: 40px; height: 40px; object-fit: contain; }
.logo { display: block; width: auto; height: 38px; max-width: 150px; object-fit: contain; }
.top-right { display: flex; align-items: center; gap: 10px; }
.age { padding: 6px 9px; border: 1px solid rgba(155, 211, 255, .3); border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.sound { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid rgba(155, 211, 255, .3); border-radius: 50%; color: var(--ice); background: rgba(255, 255, 255, .05); cursor: pointer; }
.sound svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sound .ico-off { display: none; }
.sound[aria-pressed="true"] .ico-on { display: none; }
.sound[aria-pressed="true"] .ico-off { display: block; opacity: .7; }

.main { display: flex; flex: 1 0 auto; min-height: calc(100vh - 70px); flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 5px 11px 5px 8px; border: 1px solid rgba(130, 208, 255, .35); border-radius: 999px; color: var(--blue-b); background: rgba(65, 171, 255, .12); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.kicker i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-b); -webkit-animation: blink 1.4s ease-in-out infinite; animation: blink 1.4s ease-in-out infinite; }
h1 { margin: 0; font-family: "Chakra Petch", Manrope, sans-serif; font-size: 32px; font-size: clamp(28px, 8.4vw, 42px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; text-shadow: 0 0 28px rgba(59, 169, 255, .35); }
h1 span { color: var(--blue-b); }

/* Wheel */
.wheel-wrap { position: relative; flex: 0 0 auto; width: var(--size); height: var(--size); margin: 34px auto 24px; margin: clamp(30px, 6vh, 44px) auto clamp(22px, 4vh, 30px); }
.wheel-glow { position: absolute; top: -4%; right: -4%; bottom: -4%; left: -4%; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(59, 169, 255, .55), rgba(59, 169, 255, 0) 72%);
  -webkit-animation: glow2 3.4s ease-in-out infinite; animation: glow2 3.4s ease-in-out infinite; }
.rim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, #e4f6ff, #4a8bc0 18%, #163f6c 38%, #b8e8ff 58%, #3b78ae 78%, #e4f6ff);
  box-shadow: 0 0 0 4px rgba(164, 219, 255, .1), 0 22px 50px rgba(0, 0, 0, .55), 0 0 60px rgba(59, 169, 255, .3); }
.rim::after { content: ""; position: absolute; top: 5.2%; right: 5.2%; bottom: 5.2%; left: 5.2%; border-radius: 50%; background: #06152b; box-shadow: inset 0 0 0 2px rgba(200, 237, 255, .25); }
.wheel-rot { position: absolute; top: 6.4%; right: 6.4%; bottom: 6.4%; left: 6.4%; border-radius: 50%; will-change: transform;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.wheel-rot canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }

.lights { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.bulb { position: absolute; left: 50%; top: 50%; width: calc(var(--size) * .034); height: calc(var(--size) * .034); margin: calc(var(--size) * -.017) 0 0 calc(var(--size) * -.017); border-radius: 50%; background: #48688f;
  -webkit-transform: rotate(calc(var(--i) * 15deg)) translateY(calc(var(--size) * -.4735)); transform: rotate(calc(var(--i) * 15deg)) translateY(calc(var(--size) * -.4735)); }
.bulb::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe9a8 45%, #ffb400 100%); box-shadow: 0 0 calc(var(--size) * .026) rgba(255, 200, 80, .95);
  -webkit-animation: bulb 1.4s ease-in-out infinite; animation: bulb 1.4s ease-in-out infinite; }
.bulb:nth-child(even)::after { -webkit-animation-delay: .7s; animation-delay: .7s; }
.wheel-wrap.is-spinning .bulb::after { -webkit-animation-duration: .5s; animation-duration: .5s; }
.wheel-wrap.is-spinning .bulb:nth-child(even)::after { -webkit-animation-delay: .25s; animation-delay: .25s; }
.wheel-wrap.is-won .bulb::after { -webkit-animation-duration: .32s; animation-duration: .32s; }
.wheel-wrap.is-won .bulb:nth-child(even)::after { -webkit-animation-delay: .16s; animation-delay: .16s; }
.wheel-wrap.is-spinning .wheel-glow { -webkit-animation-duration: 1.1s; animation-duration: 1.1s; }
.wheel-wrap.is-won .wheel-glow { background: radial-gradient(circle, rgba(255, 200, 80, .55), rgba(255, 200, 80, 0) 66%); -webkit-animation-duration: .9s; animation-duration: .9s; }

.pointer { position: absolute; z-index: 4; top: -3.4%; left: 50%; width: 12%; height: calc(var(--size) * .16); margin-left: -6%; -webkit-transform-origin: 50% 35%; transform-origin: 50% 35%; will-change: transform;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .55)); pointer-events: none; }
.pointer svg { display: block; width: 100%; height: 100%; }

.hub { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; width: 21%; height: 21%; margin: -10.5% 0 0 -10.5%; padding: 0; place-items: center; border: 3px solid var(--ice); border-radius: 50%; cursor: pointer;
  background: linear-gradient(145deg, #1d4a78, #04101f); box-shadow: 0 6px 20px rgba(0, 0, 0, .6), inset 0 0 18px rgba(90, 183, 255, .4); }
.hub img { display: block; width: 58%; height: auto; }
.hub::before { content: ""; position: absolute; top: -8%; right: -8%; bottom: -8%; left: -8%; border: 2px solid rgba(130, 208, 255, .6); border-radius: 50%; pointer-events: none;
  -webkit-animation: ring 2.2s ease-out infinite; animation: ring 2.2s ease-out infinite; }

/* Spin button */
.spin { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; width: 100%; max-width: 360px; min-height: 60px; padding: 0 22px; border: 1px solid #d4f0ff; border-radius: 18px; cursor: pointer; color: #041426;
  background: linear-gradient(105deg, #41abff, #a6e1ff); box-shadow: 0 14px 36px rgba(59, 169, 255, .42); font-size: 18px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  -webkit-animation: btn 2.2s ease-in-out infinite; animation: btn 2.2s ease-in-out infinite; }
.spin svg { position: relative; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spin span { position: relative; }
.spin::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  -webkit-animation: shine 3s 1s ease-in-out infinite; animation: shine 3s 1s ease-in-out infinite; }
.spin:disabled { cursor: default; opacity: .6; -webkit-animation: none; animation: none; }
.spin:disabled::after { display: none; }
.foot { margin: 16px 0 0; color: #6f87a0; font-size: 11px; font-weight: 600; letter-spacing: .02em; }

/* Win modal */
.win { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; padding: 20px; overflow: hidden; background: rgba(2, 8, 22, .88); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s .35s; }
.win.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease, visibility 0s 0s; }
.win-rays { position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; pointer-events: none; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(255, 215, 106, .2) 0deg 7deg, rgba(255, 215, 106, 0) 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0) 38%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0) 38%);
  -webkit-animation: rays 24s linear infinite; animation: rays 24s linear infinite; }
.win-card { position: relative; width: 100%; max-width: 380px; padding: 30px 22px 22px; border: 1px solid rgba(255, 215, 106, .5); border-radius: 28px; text-align: center; opacity: 0;
  background: radial-gradient(120% 80% at 50% -10%, #1a5a95 0%, #0a2448 46%, #050f22 100%); box-shadow: 0 30px 100px rgba(0, 0, 0, .8), 0 0 70px rgba(255, 200, 80, .2);
  -webkit-transform: translate3d(0, 34px, 0) scale(.84); transform: translate3d(0, 34px, 0) scale(.84);
  transition: transform .65s cubic-bezier(.2, 1.3, .3, 1), opacity .4s ease; }
.win.is-on .win-card { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); }
.win-kicker { margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .3em; }
.win-card h2 { margin: 0; font-family: "Chakra Petch", Manrope, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.win-prize { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 14px 0 4px; font-family: "Chakra Petch", Manrope, sans-serif; line-height: .95; }
.win-prize b { font-size: 76px; font-size: clamp(66px, 20vw, 88px); font-weight: 700; letter-spacing: -.04em; color: var(--gold);
  background: linear-gradient(180deg, #fff3c2, #ffd15a 55%, #f09a00); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.win-prize small { font-size: 28px; font-weight: 700; color: var(--white); }
.win-name { margin: 0; color: var(--blue-b); font-size: 15px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.win-text { margin: 12px 8px 0; color: #b9cede; font-size: 14px; line-height: 1.5; }
.win-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; width: 100%; min-height: 56px; margin-top: 18px; border: 1px solid #fff0b8; border-radius: 16px; color: #3b2300; text-decoration: none;
  background: linear-gradient(105deg, #ffc93a, #fff0a8); box-shadow: 0 12px 32px rgba(255, 190, 60, .4); font-size: 18px; font-weight: 800; }
.win-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  -webkit-animation: shine 2.6s .6s ease-in-out infinite; animation: shine 2.6s .6s ease-in-out infinite; }
.win-cta span { font-size: 22px; line-height: 1; }
.win-again { margin-top: 12px; padding: 10px 14px; border: 0; color: #8fa8c2; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }

.fx { position: fixed; z-index: 60; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

/* Small phones (iPhone SE / 320px) */
@media (max-width: 360px) {
  .logo { height: 32px; }
  .kicker { font-size: 9px; }
  .spin { min-height: 54px; font-size: 16px; }
  .win-card { padding: 26px 16px 18px; }
}
@media (max-height: 640px) {
  .wheel-wrap { margin-top: 26px; margin-bottom: 16px; }
  .kicker { margin-bottom: 8px; }
  .foot { margin-top: 10px; }
}
/* Landscape phones */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --size: min(64vh, 300px); }
  .main { flex-direction: column; }
  h1 { font-size: 22px; }
  .kicker { display: none; }
  .wheel-wrap { margin: 22px auto 12px; }
  .spin { min-height: 48px; }
  .foot { display: none; }
}

/* Keyframes: transform + opacity only, safe on iOS Safari and Android Chrome */
@-webkit-keyframes orb { 0%, 100% { -webkit-transform: translate3d(0, 0, 0) scale(1); opacity: .7; } 50% { -webkit-transform: translate3d(3vmax, 2vmax, 0) scale(1.12); opacity: 1; } }
@keyframes orb { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .7; } 50% { transform: translate3d(3vmax, 2vmax, 0) scale(1.12); opacity: 1; } }
@-webkit-keyframes twinkle { 0%, 100% { opacity: 0; -webkit-transform: scale(.6); } 50% { opacity: .85; -webkit-transform: scale(1.2); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .85; transform: scale(1.2); } }
@-webkit-keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@-webkit-keyframes glow { 0%, 100% { opacity: .55; -webkit-transform: scale(.96); } 50% { opacity: 1; -webkit-transform: scale(1.05); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@-webkit-keyframes bulb { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes bulb { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@-webkit-keyframes ring { 0% { opacity: .85; -webkit-transform: scale(.92); } 100% { opacity: 0; -webkit-transform: scale(1.5); } }
@keyframes ring { 0% { opacity: .85; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.5); } }
@-webkit-keyframes btn { 0%, 100% { -webkit-transform: scale(1); } 50% { -webkit-transform: scale(1.035); } }
@keyframes btn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@-webkit-keyframes shine { 0%, 55% { -webkit-transform: translate3d(-150%, 0, 0) skewX(-20deg); } 100% { -webkit-transform: translate3d(350%, 0, 0) skewX(-20deg); } }
@keyframes shine { 0%, 55% { transform: translate3d(-150%, 0, 0) skewX(-20deg); } 100% { transform: translate3d(350%, 0, 0) skewX(-20deg); } }
@-webkit-keyframes rays { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } }
@keyframes rays { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


/* ================= Footer / license ================= */
.site-foot { padding: 34px 6px 8px; text-align: center; }
.foot-title { margin: 0 0 16px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.foot-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; }
.foot-license-link { display: block; width: 120px; height: 120px; }
.foot-license { display: block; width: 120px; height: 120px; border: 0; overflow: hidden; background: transparent; pointer-events: none; }
.foot-badges { display: flex; align-items: center; gap: 10px; }
.foot-badges img { display: block; width: 80px; height: 80px; object-fit: contain; }
.foot-legal { max-width: 820px; margin: 18px auto 0; color: #7f96ad; font-size: 10px; font-weight: 500; line-height: 1.55; }
.foot-bc { display: grid; justify-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(155, 211, 255, .18); }
.foot-bc img { display: block; width: 72vw; max-width: 210px; height: auto; }
.foot-bc p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.4; }

/* ================= Motion layer ================= */
.rain { position: fixed; z-index: 0; top: 0; left: 0; width: 100%; height: 100%; max-width: 100%; pointer-events: none; overflow: hidden; }
.sheen { position: absolute; z-index: 2; top: 6.4%; right: 6.4%; bottom: 6.4%; left: 6.4%; border-radius: 50%; pointer-events: none; will-change: transform;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0 78%, rgba(255,255,255,.28) 90%, rgba(255,255,255,0) 100%);
  -webkit-animation: rays 4.6s linear infinite; animation: rays 4.6s linear infinite; }
.wheel-wrap.is-spinning .sheen { -webkit-animation-duration: 1.6s; animation-duration: 1.6s; }
.spark { position: absolute; z-index: 5; width: calc(var(--size) * .085); height: calc(var(--size) * .085); margin: calc(var(--size) * -.0425) 0 0 calc(var(--size) * -.0425); pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 12%, rgba(255,255,255,0) 14%),
    linear-gradient(90deg, rgba(255,255,255,0) 0, #fff 50%, rgba(255,255,255,0) 100%) center / 100% 8% no-repeat,
    linear-gradient(0deg, rgba(255,255,255,0) 0, #fff 50%, rgba(255,255,255,0) 100%) center / 8% 100% no-repeat;
  -webkit-animation: spark 2.8s ease-in-out infinite; animation: spark 2.8s ease-in-out infinite; }

.top { -webkit-animation: dropIn .8s var(--ease) both; animation: dropIn .8s var(--ease) both; }
.kicker { -webkit-animation: rise .7s .25s var(--ease) both; animation: rise .7s .25s var(--ease) both; }
h1 { -webkit-animation: rise .8s .4s var(--ease) both; animation: rise .8s .4s var(--ease) both; }
h1 span { background: linear-gradient(100deg, #82d0ff 30%, #ffffff 50%, #82d0ff 70%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-animation: shimmer 3.6s 1.2s linear infinite; animation: shimmer 3.6s 1.2s linear infinite; }
.wheel-wrap { -webkit-animation: wheelIn 1.3s .55s cubic-bezier(.2, 1.15, .3, 1) backwards; animation: wheelIn 1.3s .55s cubic-bezier(.2, 1.15, .3, 1) backwards; transition: -webkit-transform .2s ease; transition: transform .2s ease; }
.wheel-wrap.is-tap { -webkit-transform: scale(.985); transform: scale(.985); }
.spin { -webkit-animation: rise .8s 1.2s var(--ease) both; animation: rise .8s 1.2s var(--ease) both; }
.spin:disabled { cursor: default; opacity: 1; }
.foot { -webkit-animation: fade 1s 1.6s ease both; animation: fade 1s 1.6s ease both; }

.rv { opacity: 0; -webkit-transform: translate3d(0, 28px, 0); transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; -webkit-transform: none; transform: none; }
.rv .foot-partners > *, .rv .foot-bc { opacity: 0; -webkit-transform: translate3d(0, 18px, 0); transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in .foot-partners > *, .rv.is-in .foot-bc { opacity: 1; -webkit-transform: none; transform: none; }
.rv.is-in .foot-partners > :nth-child(2) { transition-delay: .15s; }
.rv.is-in .foot-bc { transition-delay: .3s; }

.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .55); -webkit-transform: scale(0); transform: scale(0);
  -webkit-animation: ripple .7s ease-out forwards; animation: ripple .7s ease-out forwards; }

.flash { position: fixed; z-index: 55; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 42%, rgba(190, 232, 255, .85), rgba(59, 169, 255, .4) 40%, rgba(59, 169, 255, 0) 72%); }
.flash.go { -webkit-animation: flash .9s ease-out; animation: flash .9s ease-out; }
.stage.shake { -webkit-animation: shake .7s cubic-bezier(.36, .07, .19, .97); animation: shake .7s cubic-bezier(.36, .07, .19, .97); }

@media (prefers-reduced-motion: reduce) {
  .wheel-wrap, .top, .kicker, h1, .foot { -webkit-animation-duration: .01s; animation-duration: .01s; -webkit-animation-delay: 0s; animation-delay: 0s; }
  .rv { -webkit-transform: none; transform: none; opacity: 1; }
}

@-webkit-keyframes rise { from { opacity: 0; -webkit-transform: translate3d(0, 26px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@-webkit-keyframes dropIn { from { opacity: 0; -webkit-transform: translate3d(0, -24px, 0); } to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); } }
@keyframes dropIn { from { opacity: 0; transform: translate3d(0, -24px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@-webkit-keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@-webkit-keyframes wheelIn { from { opacity: 0; -webkit-transform: scale(.55) rotate(-70deg); } to { opacity: 1; -webkit-transform: scale(1) rotate(0deg); } }
@keyframes wheelIn { from { opacity: 0; transform: scale(.55) rotate(-70deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
@-webkit-keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@-webkit-keyframes spark { 0%, 100% { opacity: 0; -webkit-transform: scale(.2) rotate(0deg); } 50% { opacity: 1; -webkit-transform: scale(1) rotate(45deg); } }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@-webkit-keyframes ripple { to { opacity: 0; -webkit-transform: scale(4); } }
@keyframes ripple { to { opacity: 0; transform: scale(4); } }
@-webkit-keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@-webkit-keyframes shake { 10%, 90% { -webkit-transform: translate3d(-2px, 0, 0); } 20%, 80% { -webkit-transform: translate3d(5px, 2px, 0); } 30%, 50%, 70% { -webkit-transform: translate3d(-8px, -3px, 0); } 40%, 60% { -webkit-transform: translate3d(8px, 3px, 0); } }
@keyframes shake { 10%, 90% { transform: translate3d(-2px, 0, 0); } 20%, 80% { transform: translate3d(5px, 2px, 0); } 30%, 50%, 70% { transform: translate3d(-8px, -3px, 0); } 40%, 60% { transform: translate3d(8px, 3px, 0); } }
@-webkit-keyframes cta { 0%, 100% { -webkit-transform: scale(1); box-shadow: 0 12px 32px rgba(255, 190, 60, .4); } 50% { -webkit-transform: scale(1.03); box-shadow: 0 14px 44px rgba(255, 190, 60, .75); } }
@keyframes cta { 0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(255, 190, 60, .4); } 50% { transform: scale(1.03); box-shadow: 0 14px 44px rgba(255, 190, 60, .75); } }
@-webkit-keyframes frameGlowB { 0%, 100% { box-shadow: 0 0 20px rgba(59, 169, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .3); } 50% { box-shadow: 0 0 42px rgba(59, 169, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .3); } }
@keyframes frameGlowB { 0%, 100% { box-shadow: 0 0 20px rgba(59, 169, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .3); } 50% { box-shadow: 0 0 42px rgba(59, 169, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .3); } }

/* ================= Win popup (final) ================= */
.win { display: flex; padding: 16px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.win-rays { display: none; }
.win-card { width: 100%; max-width: 380px; margin: auto; padding: 46px 20px 18px; border: 1px solid transparent; text-align: center;
  background: linear-gradient(#071a36, #050f22) padding-box, linear-gradient(160deg, #cfeeff, #3ba9ff 32%, #123f78 62%, #82d0ff) border-box;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .85), 0 0 60px rgba(59, 169, 255, .18); }
.win-card > * { position: relative; opacity: 0; -webkit-transform: translate3d(0, 16px, 0); transform: translate3d(0, 16px, 0); }
.win.is-on .win-card > * { -webkit-animation: rise .6s calc(.2s + var(--i, 0) * .09s) var(--ease) both; animation: rise .6s calc(.2s + var(--i, 0) * .09s) var(--ease) both; }
.win.is-on .win-card > .win-cta { -webkit-animation: rise .6s calc(.2s + var(--i, 0) * .09s) var(--ease) both, cta 1.8s 1.4s ease-in-out infinite; animation: rise .6s calc(.2s + var(--i, 0) * .09s) var(--ease) both, cta 1.8s 1.4s ease-in-out infinite; }

.crest { position: absolute !important; left: 50%; top: -32px; display: grid; place-items: center; width: 156px; height: 64px; margin-left: -78px; border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(#0d2a52, #061530) padding-box, linear-gradient(120deg, #cfeeff, #3ba9ff 45%, #82d0ff) border-box; box-shadow: 0 10px 28px rgba(0, 0, 0, .6); }
.crest img { display: block; width: auto; height: 34px; }

.win-card .win-kicker { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 6px; color: #82d0ff; font-size: 12px; font-weight: 800; letter-spacing: .34em; }
.win-card .win-kicker::before, .win-card .win-kicker::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, rgba(130, 208, 255, 0), #82d0ff); }
.win-card .win-kicker::after { -webkit-transform: scaleX(-1); transform: scaleX(-1); }
.win-card h2 { margin: 0; font-size: 25px; letter-spacing: -.01em; }

.prize-box { margin: 16px 0 0; padding: 2px; border-radius: 22px; background: linear-gradient(160deg, #cfeeff, #3ba9ff 40%, #1a5c9e 65%, #82d0ff);
  box-shadow: 0 0 30px rgba(59, 169, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-animation: frameGlowB 2.6s ease-in-out infinite; animation: frameGlowB 2.6s ease-in-out infinite; }
.win.is-on .win-card > .prize-box { -webkit-animation: rise .6s calc(.2s + var(--i, 0) * .09s) var(--ease) both, frameGlowB 2.6s 1s ease-in-out infinite; animation: rise .6s calc(.2s + var(--i, 0) * .09s) var(--ease) both, frameGlowB 2.6s 1s ease-in-out infinite; }
.prize-in { position: relative; overflow: hidden; padding: 18px 10px 16px; border-radius: 20px; background: radial-gradient(90% 90% at 50% 0%, #14417a, #061530 78%); }
.prize-in::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  -webkit-animation: shine 3s 1s ease-in-out infinite; animation: shine 3s 1s ease-in-out infinite; }
.win-card .win-prize { margin: 0; }
.win-card .win-prize b { font-size: 80px; font-size: clamp(72px, 21vw, 92px); background: linear-gradient(180deg, #ffffff, #bfe6ff 55%, #5cb8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 18px rgba(59, 169, 255, .5)); }
.win-card .win-name { display: block; margin: 2px 0 0; color: #fff; font-family: "Chakra Petch", Manrope, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; text-transform: uppercase; text-shadow: 0 2px 14px rgba(59, 169, 255, .55); }

.perks { margin-top: 14px; padding: 12px 10px 10px; border: 1px solid rgba(130, 208, 255, .22); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.perks-title { margin: 0 0 10px; color: #9db6d1; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.perks ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px; padding: 9px 4px; border-radius: 12px; border: 1px solid rgba(130, 208, 255, .3); background: linear-gradient(180deg, rgba(59, 169, 255, .2), rgba(59, 169, 255, .05)); }
.perks li b { display: block; font-family: "Chakra Petch", sans-serif; font-size: 22px; line-height: 1.1; color: #9bdcff; }
.perks li span { display: block; margin-top: 3px; color: #e6f1fb; font-size: 10px; font-weight: 700; line-height: 1.2; }

.win-card .win-cta { min-height: 60px; margin-top: 16px; font-size: 18px; }
.win-trust { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 0; padding: 10px 8px; border: 1px solid rgba(155, 211, 255, .2); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.tr-item { display: flex; align-items: center; gap: 8px; text-align: left; }
.tr-item > span { display: grid; gap: 1px; }
.tr-item b { color: #eaf4ff; font-size: 12.5px; font-weight: 800; line-height: 1.15; }
.tr-item small { color: #8fa8c2; font-size: 10.5px; font-weight: 600; line-height: 1.15; }
.tr-item img { display: block; width: 34px; height: 34px; object-fit: contain; }
.tr-item svg { flex: 0 0 auto; width: 30px; height: 30px; fill: none; stroke: #82d0ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tr-sep { width: 1px; height: 30px; background: rgba(155, 211, 255, .22); }
.wspark { position: absolute; z-index: 1; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 50%, rgba(255,255,255,0)) center / 100% 7% no-repeat, linear-gradient(0deg, rgba(255,255,255,0), #fff 50%, rgba(255,255,255,0)) center / 7% 100% no-repeat;
  -webkit-animation: spark 2.4s var(--d) ease-in-out infinite; animation: spark 2.4s var(--d) ease-in-out infinite; }
@media (max-height: 700px) { .crest { top: -28px; height: 56px; } .crest img { height: 32px; } .win-card { padding-top: 40px; } .win-card .win-name { font-size: 21px; } .perks { margin-top: 10px; } .win-card .win-cta { min-height: 54px; margin-top: 12px; } .prize-in { padding: 12px 10px 12px; } }

/* low-end device mode (auto) */
.lite .orb, .lite .sheen, .lite .spark, .lite .wheel-glow, .lite .prize-in::after, .lite .wspark { -webkit-animation: none !important; animation: none !important; }
.lite .sheen, .lite .spark { display: none; }
.lite .prize-box { -webkit-animation: none !important; animation: none !important; }

/* spin button: stable, no pulse / no shine sweep */
.spin::after { display: none !important; }
.spin:disabled { opacity: 1 !important; -webkit-animation: rise .8s 1.2s var(--ease) both !important; animation: rise .8s 1.2s var(--ease) both !important; }

.spin .ripple, .win-cta .ripple { position: absolute; }

/* header register button */
.top { gap: 10px; }
.top-cta { display: grid; flex: 1 1 auto; align-items: center; justify-items: center; overflow: hidden; min-width: 0; max-width: 200px; height: 38px; margin: 0 auto; padding: 0 12px; border: 1px solid #fff0b8; border-radius: 12px; text-decoration: none; color: #3b2300;
  background: linear-gradient(105deg, #ffc93a, #fff0a8); box-shadow: 0 6px 18px rgba(255, 190, 60, .35); font-size: 11px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.top-cta .tc { grid-area: 1 / 1; opacity: 0; -webkit-animation: tcA 4.4s ease-in-out infinite; animation: tcA 4.4s ease-in-out infinite; }
.top-cta .tc-a { opacity: 1; }
.top-cta .tc-b { -webkit-animation-name: tcB; animation-name: tcB; }
@-webkit-keyframes tcA { 0%, 42% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); } 50%, 92% { opacity: 0; -webkit-transform: translate3d(0, -10px, 0); } 100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); } }
@keyframes tcA { 0%, 42% { opacity: 1; transform: translate3d(0, 0, 0); } 50%, 92% { opacity: 0; transform: translate3d(0, -10px, 0); } 100% { opacity: 1; transform: translate3d(0, 0, 0); } }
@-webkit-keyframes tcB { 0%, 42% { opacity: 0; -webkit-transform: translate3d(0, 10px, 0); } 50%, 92% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); } 100% { opacity: 0; -webkit-transform: translate3d(0, 10px, 0); } }
@keyframes tcB { 0%, 42% { opacity: 0; transform: translate3d(0, 10px, 0); } 50%, 92% { opacity: 1; transform: translate3d(0, 0, 0); } 100% { opacity: 0; transform: translate3d(0, 10px, 0); } }
@media (max-width: 480px) {
  .age { display: none; }
  .logo { height: 30px; }
  .seal img { width: 32px; height: 32px; }
  .brandbox { gap: 8px; }
}
@media (max-width: 360px) { .top-cta { font-size: 10px; padding: 0 8px; } .top { gap: 6px; } }

/* license seal (transparent PNG instead of white-box iframe) */
.foot-license-link { width: 96px; height: 96px; }
.foot-license { width: 96px; height: 96px; object-fit: contain; pointer-events: auto; -webkit-filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }
.foot-partners { gap: 14px 20px; }

/* header bar */
.top { position: relative; margin-bottom: 4px; padding: 6px 2px 12px; }
.top::before { content: ""; position: absolute; z-index: -1; top: -60px; right: -16px; bottom: 0; left: -16px; width: auto; margin: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 62, 112, .95) 0%, rgba(9, 32, 66, .85) 55%, rgba(6, 20, 44, .55) 100%); border-bottom: 1px solid rgba(130, 208, 255, .22); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.vsep { display: block; flex: 0 0 auto; width: 1px; height: 26px; background: linear-gradient(180deg, rgba(130, 208, 255, 0), rgba(130, 208, 255, .55), rgba(130, 208, 255, 0)); }
.top-cta { height: 30px; max-width: 170px; padding: 0 10px; border-radius: 10px; box-shadow: none; font-size: 10px; }
@media (max-width: 360px) { .top-cta { height: 28px; font-size: 9.5px; padding: 0 7px; } }

/* floating sound toggle */
.sound { position: fixed; z-index: 40; right: 14px; bottom: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 42px; height: 42px; border-color: rgba(155, 211, 255, .4); background: rgba(6, 22, 48, .82); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.top-cta { margin: 0 0 0 auto; }
@media (min-width: 481px) { .top-cta { margin: 0 auto; } }

/* no layout shift when the popup opens */
.win { overscroll-behavior: contain; touch-action: pan-y; }
.stage.shake { -webkit-animation: none !important; animation: none !important; }

/* no horizontal overflow: clip rotating layers to the wheel circle, keep glow inside the viewport */
html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
.wheel-clip, .sheen-clip { position: absolute; top: 6.4%; right: 6.4%; bottom: 6.4%; left: 6.4%; border-radius: 50%; overflow: hidden; -webkit-transform: translateZ(0); transform: translateZ(0); }
.wheel-clip { z-index: 1; }
.sheen-clip { z-index: 2; pointer-events: none; }
.wheel-clip .wheel-rot { top: 0; right: 0; bottom: 0; left: 0; }
.sheen-clip .sheen { top: 0; right: 0; bottom: 0; left: 0; }

.wheel-glow { top: -4%; right: -4%; bottom: -4%; left: -4%; background: radial-gradient(circle, rgba(59, 169, 255, .6), rgba(59, 169, 255, 0) 72%);
  -webkit-animation: glow2 3.4s ease-in-out infinite; animation: glow2 3.4s ease-in-out infinite; }
.wheel-wrap.is-won .wheel-glow { background: radial-gradient(circle, rgba(255, 200, 80, .55), rgba(255, 200, 80, 0) 72%); }
@-webkit-keyframes glow2 { 0%, 100% { opacity: .55; -webkit-transform: scale(.97); } 50% { opacity: 1; -webkit-transform: scale(1.02); } }
@keyframes glow2 { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.02); } }

.wheel-wrap { overflow: visible; max-width: 100%; }
.main { max-width: 100%; overflow-x: clip; }
.top { max-width: 100%; }
.fx, .flash { width: 100%; max-width: 100%; overflow: hidden; }

/* ===== mobile tune (<=480px): bigger heading, tighter spacing, header ===== */
@media (max-width: 480px) {
  .stage { padding-top: 8px; }
  .top { margin-bottom: 0; padding: 4px 2px 8px; }
  .logo { height: 40px; max-width: 120px; }
  .seal img { width: 34px; height: 34px; }
  .top-cta { flex: 0 0 auto; height: 32px; max-width: 130px; padding: 0 12px; font-size: 13px; letter-spacing: -.3px; border-radius: 10px; }
  .main { min-height: 0; justify-content: flex-start; padding-top: 10px; }
  .kicker { margin: 0 0 8px; }
  h1 { font-size: 42px; font-size: clamp(40px, 11.8vw, 52px); line-height: 1.02; letter-spacing: -.035em; }
  .wheel-wrap { margin: 18px auto 16px; }
  .foot { margin-top: 12px; }
  .site-foot { padding-top: 26px; }
}
@media (max-width: 360px) { .top-cta { font-size: 12px; padding: 0 10px; } .logo { height: 36px; } }

@media (max-width: 480px) {
  h1 { margin-top: 10px; font-size: 38px; font-size: clamp(36px, 10.6vw, 46.8px); }
}

/* ===== footer + header cleanup ===== */
.rv, .rv .foot-partners > *, .rv .foot-bc { opacity: 1 !important; -webkit-transform: none !important; transform: none !important; transition: none !important; }

.site-foot { margin-top: 28px; padding: 24px 0 calc(72px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(130, 208, 255, .16); text-align: center; }
.foot-title { margin: 0 0 14px; color: #b9cede; font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.foot-partners { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 14px; padding: 14px 12px; border: 1px solid rgba(130, 208, 255, .16); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.foot-license-link { flex: 0 0 auto; display: block; width: 72px; height: 72px; }
.foot-license { width: 72px; height: 72px; }
.foot-badges { flex: 0 1 auto; display: flex; align-items: center; gap: 10px; }
.foot-badges img { width: 64px; height: 64px; }
.foot-legal { margin: 14px 0 0; padding: 0 4px; color: #8ea6bf; font-size: 10.5px; font-weight: 500; line-height: 1.6; }
.foot-bc { margin-top: 18px; padding-top: 16px; gap: 6px; }
.foot-bc img { width: 150px; max-width: 60vw; }
.foot-bc p { font-size: 11.5px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 0 10px; }
.brandbox { gap: 10px; }
.top-cta { margin: 0 0 0 auto; height: 34px; }

.foot-partners { width: -webkit-max-content; width: max-content; max-width: 100%; margin: 0 auto; }
.foot-legal, .foot-title, .foot-bc p { text-align: center; word-break: normal; overflow-wrap: normal; -webkit-hyphens: none; hyphens: none; }
@media (max-width: 360px) { .foot-title { font-size: 10px; letter-spacing: .1em; } .foot-partners { gap: 10px; padding: 12px 8px; } .foot-badges img { width: 56px; height: 56px; } .foot-license-link, .foot-license { width: 64px; height: 64px; } }

/* ================================================================
   FINAL LAYOUT (single source of truth for header / main / footer)
   spacing scale: 16 gutter, 12 / 16 / 24 / 32 vertical rhythm
   ================================================================ */
html { height: auto; min-height: 100%; overflow-x: hidden; width: auto; max-width: none; }
body { width: auto; max-width: none; overflow: visible; min-height: 100vh; min-height: 100dvh; }
.stage { width: 100%; max-width: 650px; margin: 0 auto; padding: 0 16px; padding-top: env(safe-area-inset-top, 0px); }

.stage .top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; min-height: 60px; margin: 0; padding: 0; }
.stage .top::before { top: -80px; right: -16px; bottom: 0; left: -16px; }
.stage .brandbox { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.stage .top-cta { margin: 0 0 0 auto; height: 34px; }
.stage .top-right { flex: 0 0 auto; }

.stage .main { min-height: 0; justify-content: flex-start; padding: 24px 0 0; }
.stage .kicker { margin: 0 0 4px; }
.stage h1 { margin: 10px 0 0; }
.stage .wheel-wrap { margin: 42px auto 26px; }
.stage .foot { margin: 14px 0 0; }

.stage .site-foot { margin-top: 32px; padding: 28px 0 24px; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 481px) {
  .stage .main { padding-top: 32px; }
  .stage .wheel-wrap { margin: 48px auto 30px; }
}

@media (max-width: 480px) { .stage .top-right { display: none; } }

/* spin button + note are visible immediately (no entrance delay) */
.spin, .spin:disabled, .foot { -webkit-animation: none !important; animation: none !important; opacity: 1 !important; -webkit-transform: none; transform: none; }
