@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap");

:root { color-scheme: dark; --night: #12072d; --panel: #28105e; --cyan: #21daf7; --pink: #ff3ca8; --lime: #8dec28; --yellow: #ffd42b; --violet: #914fff; --white: #fffaff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; overscroll-behavior: none; }
body { margin: 0; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 20%, #40208a, var(--night) 58%); font-family: "Nunito", ui-rounded, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.demo { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; }
.demo::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(circle, rgb(255 255 255 / 0.35) 1px, transparent 1.5px); background-size: 38px 38px; mask-image: linear-gradient(#000, transparent 86%); }
.demo-screen { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }

.demo-intro-card { width: min(440px, 100%); overflow: hidden; border: 1px solid rgb(211 187 255 / 0.36); border-radius: 34px; background: #241052; box-shadow: 0 32px 100px rgb(5 0 26 / 0.58), 0 0 0 8px rgb(255 255 255 / 0.04); }
.demo-intro-art { position: relative; height: min(66dvh, 560px); min-height: 400px; overflow: hidden; background: radial-gradient(circle at 50% 43%, rgb(34 219 247 / 0.31), transparent 29%), linear-gradient(155deg, #4a1c99, #201052 62%, #10062c); }
.demo-intro-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, #241052), repeating-radial-gradient(ellipse at 50% 110%, transparent 0 55px, rgb(121 76 217 / 0.18) 56px 58px); pointer-events: none; }
.demo-intro-logo { position: absolute; z-index: 3; top: 26px; left: 50%; transform: translateX(-50%); --wm-size: 40px; }
.demo-intro-mascot { position: absolute; z-index: 3; top: 50%; left: 50%; width: min(285px, 73%); height: auto; transform: translate(-50%, -43%); filter: drop-shadow(0 28px 34px rgb(5 0 27 / 0.44)); animation: mascot-float 3.6s ease-in-out infinite; }
.demo-label { position: absolute; z-index: 4; left: 50%; bottom: 28px; width: max-content; max-width: calc(100% - 30px); padding: 9px 15px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; background: rgb(24 7 66 / 0.73); color: #8ff1ff; box-shadow: 0 12px 28px rgb(4 0 24 / 0.28); font-size: 10px; font-weight: 950; letter-spacing: .16em; transform: translateX(-50%); backdrop-filter: blur(11px); }
.intro-bubbles .pop-bubble { position: absolute; z-index: 2; }
.intro-bubbles .pop-bubble:nth-child(1) { width: 86px; height: 86px; left: -18px; top: 25%; }
.intro-bubbles .pop-bubble:nth-child(2) { width: 58px; height: 58px; right: 8%; top: 24%; }
.intro-bubbles .pop-bubble:nth-child(3) { width: 43px; height: 43px; left: 13%; bottom: 24%; }
.intro-bubbles .pop-bubble:nth-child(4) { width: 78px; height: 78px; right: -19px; bottom: 18%; }
.intro-bubbles .pop-bubble:nth-child(5) { width: 39px; height: 39px; left: 9%; top: 14%; }
.intro-bubbles .pop-bubble:nth-child(6) { width: 49px; height: 49px; right: 24%; bottom: 12%; }

.pop-bubble { display: block; border: 2px solid rgb(255 255 255 / 0.42); border-radius: 50%; box-shadow: inset -12px -15px 20px rgb(37 7 87 / 0.31), inset 8px 9px 13px rgb(255 255 255 / 0.43), 0 10px 18px rgb(5 0 28 / 0.29); animation: bubble-float 5s ease-in-out infinite; }
.pop-bubble::after { content: ""; position: absolute; width: 23%; height: 13%; left: 22%; top: 17%; border-radius: 50%; background: rgb(255 255 255 / 0.79); transform: rotate(-25deg); }
.cyan { background: linear-gradient(145deg, #b9fbff, #20daf7 43%, #0b78e3); }
.pink { background: linear-gradient(145deg, #ffb8df, #ff3ca8 43%, #c40d7c); }
.lime { background: linear-gradient(145deg, #e8ffa6, #8dec28 43%, #3fb516); }
.yellow { background: linear-gradient(145deg, #fff8af, #ffd42b 43%, #ec8a0f); }
.violet { background: linear-gradient(145deg, #d6baff, #914fff 43%, #5020be); }
.demo-primary { width: calc(100% - 36px); min-height: 66px; margin: 18px; padding: 0 23px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid rgb(255 255 255 / 0.45); border-radius: 20px; background: linear-gradient(135deg, var(--yellow), #ffae25 48%, #ff784b); color: #351260; box-shadow: 0 16px 36px rgb(255 141 27 / 0.25), inset 0 2px rgb(255 255 255 / 0.52); font-weight: 950; text-decoration: none; cursor: pointer; }
.demo-primary:hover { filter: brightness(1.05); transform: translateY(-2px); }
.demo-primary span { font-size: 12px; }

.demo-screen--game { padding: 0; background: linear-gradient(180deg, #251057, #12072d); }
.game-shell { position: relative; width: min(100%, 520px); height: 100vh; height: 100svh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; border-inline: 1px solid rgb(203 177 255 / 0.19); background: radial-gradient(circle at 50% 42%, rgb(32 216 247 / 0.13), transparent 48%), linear-gradient(180deg, #2c1266, #160936); box-shadow: 0 0 90px rgb(0 0 0 / 0.38); }
.game-topbar { min-height: calc(66px + env(safe-area-inset-top)); padding: max(13px, env(safe-area-inset-top)) 14px 8px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 9px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.round-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 15px; background: rgb(255 255 255 / 0.07); color: #d9ccf2; font-size: 24px; cursor: pointer; }
.sound-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sound-button[aria-pressed="false"] { color: #816ea9; }
.game-brand { display: grid; justify-items: center; }
.game-brand .wm { --wm-size: 21px; }
.game-brand span { margin-top: -3px; color: #68eafd; font-size: 7px; font-weight: 950; letter-spacing: .2em; }
.game-stats { min-height: 67px; padding: 9px 13px; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 8px; }
.game-stats > div { min-width: 0; padding: 9px 11px; display: grid; align-content: center; border: 1px solid rgb(255 255 255 / 0.11); border-radius: 14px; background: rgb(255 255 255 / 0.05); }
.game-stats small { display: block; color: #8e7bb7; font-size: 7px; font-weight: 950; letter-spacing: .11em; }
.game-stats strong { display: block; margin-top: 2px; color: #fff; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.next-preview { width: 25px; height: 25px; margin-top: 2px; border: 1px solid rgb(255 255 255 / 0.42); border-radius: 50%; box-shadow: inset -5px -6px 8px rgb(29 5 80 / 0.3), inset 3px 4px 6px rgb(255 255 255 / 0.45); }
.game-canvas-wrap { position: relative; min-height: 0; overflow: hidden; border-block: 1px solid rgb(255 255 255 / 0.09); background: linear-gradient(180deg, rgb(13 4 43 / 0.46), rgb(25 8 65 / 0.2)); touch-action: none; }
.game-canvas-wrap::before { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 34px 34px; }
.game-canvas-wrap canvas { position: relative; z-index: 2; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.danger-label { position: absolute; z-index: 3; top: 76%; left: 50%; padding: 4px 8px; border-radius: 999px; background: rgb(255 50 125 / 0.15); color: #ff78ae; font-size: 6px; font-weight: 950; letter-spacing: .15em; transform: translateX(-50%); pointer-events: none; }
.combo-flash { position: absolute; z-index: 5; top: 47%; left: 50%; padding: 9px 15px; border-radius: 16px; background: rgb(36 7 86 / 0.67); color: var(--yellow); font-size: 24px; font-weight: 950; transform: translate(-50%, -50%) rotate(-4deg); text-shadow: 0 4px 13px #2b006b; pointer-events: none; animation: combo-in .6s ease-out both; backdrop-filter: blur(7px); }
.game-actions { min-height: calc(116px + env(safe-area-inset-bottom)); padding: 10px 14px max(12px, env(safe-area-inset-bottom)); display: grid; align-content: center; gap: 8px; }
.game-actions p { margin: 0; color: #9a88bf; font-size: 9px; font-weight: 800; text-align: center; }
.game-actions p span { color: var(--cyan); }
.cashout-button { min-height: 62px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 19px; background: linear-gradient(135deg, #23daf6, #8256ff); color: #fff; box-shadow: 0 13px 28px rgb(36 194 244 / 0.18), inset 0 1px rgb(255 255 255 / 0.35); font-size: 12px; font-weight: 950; cursor: pointer; }
.cashout-button strong { padding: 8px 10px; border-radius: 11px; background: rgb(23 5 65 / 0.22); font-size: 14px; }

.demo-screen--result { overflow-y: auto; align-items: safe center; background: radial-gradient(circle at 50% 24%, rgb(255 59 169 / 0.2), transparent 23rem), rgb(16 6 42 / 0.75); backdrop-filter: blur(12px); }
.result-card { position: relative; isolation: isolate; width: min(450px, 100%); padding: 28px 26px 23px; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.38); border-radius: 34px; background: radial-gradient(circle at 50% 0, #fff, #fff8ff 45%, #f4edff); color: #2f145d; box-shadow: 0 32px 100px rgb(5 0 27 / 0.62); text-align: center; }
.result-card.is-entering[data-outcome="cashout"] { animation: result-victory-in .58s cubic-bezier(.16,1,.3,1) both; }
.result-card.is-entering[data-outcome="lost"] { animation: result-defeat-in .58s cubic-bezier(.2,.8,.2,1) both; }
.result-card[data-outcome="cashout"] { background: radial-gradient(circle at 50% 0, #fff 0 20%, #f5ffe5 48%, #f4edff 100%); }
.result-card[data-outcome="lost"] { background: radial-gradient(circle at 50% 0, #fff 0 18%, #eef7ff 48%, #eee6fb 100%); }
.result-card > :not(.result-animation) { position: relative; z-index: 2; }
.result-animation { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.result-animation__ring { position: absolute; left: 50%; top: 67px; width: 74px; height: 74px; border: 2px solid rgb(54 218 242 / 0.7); border-radius: 50%; transform: translate(-50%,-50%); }
.result-card[data-outcome="cashout"] .result-animation__ring { animation: demo-victory-ring 1.05s cubic-bezier(.16,1,.3,1) both; }
.result-card[data-outcome="cashout"] .result-animation__ring--two { border-color: rgb(159 245 68 / 0.76); animation-delay: .17s; }
.result-card[data-outcome="lost"] .result-animation__ring { border-color: rgb(116 90 185 / 0.3); animation: demo-defeat-ring .9s ease-out both; }
.result-card[data-outcome="lost"] .result-animation__ring--two { animation-delay: .14s; }
.result-animation i { position: absolute; display: block; pointer-events: none; }
.result-card[data-outcome="cashout"] .result-animation i { --angle: calc(var(--i) * 30deg); left: 50%; top: 70px; width: 8px; height: 15px; border-radius: 3px; background: hsl(calc(var(--i) * 47deg) 92% 58%); box-shadow: 0 0 8px rgb(255 255 255 / 0.68); animation: demo-victory-confetti 1.4s calc(var(--i) * 24ms) cubic-bezier(.12,.68,.18,1) both; }
.result-card[data-outcome="lost"] .result-animation i { left: var(--x); top: -20px; width: 9px; height: 9px; border: 1px solid rgb(255 255 255 / 0.6); border-radius: 50%; background: radial-gradient(circle at 34% 27%, #fff 0 12%, hsl(calc(205deg + var(--i) * 7deg) 76% 72%) 28%, hsl(calc(248deg + var(--i) * 4deg) 49% 52%) 100%); box-shadow: 0 4px 11px rgb(57 38 119 / 0.18); animation: demo-defeat-bubbles 1.65s calc(var(--i) * 28ms) ease-in both; }
.result-card[data-outcome="cashout"] .result-animation i:nth-of-type(3n) { width: 6px; height: 12px; }
.result-card[data-outcome="cashout"] .result-animation i:nth-of-type(3n + 2) { width: 10px; height: 18px; }
.result-card[data-outcome="lost"] .result-animation i:nth-of-type(3n) { width: 7px; height: 7px; }
.result-card[data-outcome="lost"] .result-animation i:nth-of-type(3n + 2) { width: 11px; height: 11px; }
.result-card > img { position: relative; z-index: 2; width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 11px 16px rgb(73 23 137 / 0.18)); }
.result-card.is-entering[data-outcome="cashout"] > img { animation: demo-victory-mascot .9s .07s cubic-bezier(.16,1.4,.3,1) both; }
.result-card.is-entering[data-outcome="lost"] > img { animation: demo-defeat-mascot .85s .05s cubic-bezier(.24,.72,.3,1) both; }
.result-card > p:first-of-type { margin: 7px 0 0; color: #9a4bd6; font-size: 9px; font-weight: 950; letter-spacing: .16em; }
.result-card h2 { margin: 5px 0 18px; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.demo-campaign { margin: 18px 0; padding: 16px; border: 1px solid #dcc9f5; border-radius: 18px; background: #f1e8ff; text-align: left; font-size: 13px; line-height: 1.55; }
.demo-campaign p { margin: 0 0 12px; }
.demo-campaign label { display: flex; align-items: flex-start; gap: 10px; font-weight: 800; cursor: pointer; }
.demo-campaign input { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0; accent-color: #7438c5; }
.demo-campaign small { display: block; margin-top: 10px; }
[data-demo-status]:not(.sr-only) { display: block; padding: 10px 18px; background: #391647; color: #ffe3b3; font-size: 12px; line-height: 1.5; }
.result-prize { padding: 18px 10px; border: 1px solid #dcd0fa; border-radius: 23px; background: linear-gradient(145deg, #fff, #f4edff); }
.result-prize small { display: block; color: #8c7aa8; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.result-prize strong { display: block; margin-top: 4px; color: #19a966; font-size: clamp(3rem, 13vw, 4.35rem); font-weight: 950; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.result-card[data-outcome="lost"] .result-prize { background: linear-gradient(145deg, #fff, #eeeafa); }
.result-card[data-outcome="lost"] .result-prize strong { color: #725b9b; }
.result-message { margin: 18px auto; max-width: 34ch; color: #705f91; font-size: 13px; line-height: 1.5; }
.demo-primary--register { width: 100%; min-height: 70px; margin: 0; font-size: 17px; }
.replay-button { min-height: 45px; margin-top: 9px; padding: 9px 18px; border: 0; border-radius: 13px; background: transparent; color: #725b9b; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.replay-button:hover { background: #eee6ff; }
.result-note { display: block; margin-top: 7px; color: #9889ae; font-size: 9px; line-height: 1.45; }
.exit-dialog { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(9 2 30 / 0.8); backdrop-filter: blur(12px); }
.exit-dialog > div { width: min(380px, 100%); padding: 27px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 27px; background: #2a1262; box-shadow: 0 25px 70px rgb(3 0 20 / 0.54); text-align: center; }
.exit-dialog > div > span { color: #64e8fa; font-size: 8px; font-weight: 950; letter-spacing: .15em; }
.exit-dialog h2 { margin: 7px 0 8px; }
.exit-dialog p { margin: 0 0 17px; color: #ad9dcd; font-size: 13px; }
.exit-dialog .demo-primary { width: 100%; min-height: 55px; margin: 0; }
.exit-dialog .replay-button { color: #c5b8de; }

@keyframes mascot-float { 50% { transform: translate(-50%, -48%) rotate(2deg); } }
@keyframes bubble-float { 50% { transform: translateY(-11px) scale(1.04); } }
@keyframes combo-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(-10deg); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(3deg); } to { opacity: 0; transform: translate(-50%, -70%) scale(1) rotate(-4deg); } }
@keyframes result-victory-in { from { opacity: 0; transform: translateY(18px) scale(.92); filter: saturate(1.4) brightness(1.14); } to { opacity: 1; transform: none; } }
@keyframes result-defeat-in { 0% { opacity: 0; transform: translateX(-7px) scale(.97); filter: saturate(.55); } 38% { transform: translateX(5px) scale(1); } 67% { transform: translateX(-2px); } 100% { opacity: 1; transform: none; } }
@keyframes demo-victory-ring { 0% { opacity: .85; transform: translate(-50%,-50%) scale(.35); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(2.9); } }
@keyframes demo-defeat-ring { 0% { opacity: .68; transform: translate(-50%,-50%) scale(1.8); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(.45); } }
@keyframes demo-victory-confetti { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(0) scale(.25); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(-138px) rotate(260deg) scale(1); } }
@keyframes demo-defeat-bubbles { 0% { opacity: 0; transform: translate3d(0,-18px,0) scale(1.12); } 17% { opacity: .6; } 100% { opacity: 0; transform: translate3d(var(--drift),440px,0) scale(.18); } }
@keyframes demo-victory-mascot { 0% { opacity: 0; transform: translateY(24px) scale(.45) rotate(-14deg); } 66% { opacity: 1; transform: translateY(-8px) scale(1.12) rotate(5deg); } 100% { transform: none; } }
@keyframes demo-defeat-mascot { 0% { opacity: 0; transform: translateY(-18px) scale(1.08) rotate(8deg); } 56% { opacity: 1; transform: translateY(8px) scale(.94) rotate(-5deg); } 100% { transform: translateY(3px) scale(.97) rotate(-2deg); filter: saturate(.78); } }

@media (max-height: 730px) {
  .demo-intro-art { min-height: 330px; height: 56dvh; }
  .demo-intro-mascot { width: min(230px, 65%); }
  .game-topbar { min-height: calc(56px + env(safe-area-inset-top)); }
  .game-stats { min-height: 58px; padding-block: 6px; }
  .game-actions { min-height: calc(102px + env(safe-area-inset-bottom)); }
  .cashout-button { min-height: 55px; }
}
@media (max-width: 370px) {
  .game-stats strong { font-size: 14px; }
  .game-brand .wm { --wm-size: 18px; }
  .result-card { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .result-animation { display: none; }
}
