@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: var(--white); 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: 100dvh; overflow: hidden; }
.demo::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(circle, rgb(255 255 255 / 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 / 36%); border-radius: 34px; background: #241052; box-shadow: 0 32px 100px rgb(5 0 26 / 58%), 0 0 0 8px rgb(255 255 255 / 4%); }
.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 / 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 / 18%) 56px 58px); pointer-events: none; }
.demo-intro-logo { position: absolute; z-index: 3; top: 24px; left: 50%; width: min(255px, 66%); height: auto; transform: translateX(-50%); filter: drop-shadow(0 13px 24px rgb(6 0 30 / 46%)); }
.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 / 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 / 22%); border-radius: 999px; background: rgb(24 7 66 / 73%); color: #8ff1ff; box-shadow: 0 12px 28px rgb(4 0 24 / 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 / 42%); border-radius: 50%; box-shadow: inset -12px -15px 20px rgb(37 7 87 / 31%), inset 8px 9px 13px rgb(255 255 255 / 43%), 0 10px 18px rgb(5 0 28 / 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 / 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 / 45%); border-radius: 20px; background: linear-gradient(135deg, var(--yellow), #ffae25 48%, #ff784b); color: #351260; box-shadow: 0 16px 36px rgb(255 141 27 / 25%), inset 0 2px rgb(255 255 255 / 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: 100dvh; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; border-inline: 1px solid rgb(203 177 255 / 19%); background: radial-gradient(circle at 50% 42%, rgb(32 216 247 / 13%), transparent 48%), linear-gradient(180deg, #2c1266, #160936); box-shadow: 0 0 90px rgb(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 / 10%); }
.round-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 15px; background: rgb(255 255 255 / 7%); 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 img { width: 134px; height: auto; display: block; }
.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 / 11%); border-radius: 14px; background: rgb(255 255 255 / 5%); }
.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 / 42%); border-radius: 50%; box-shadow: inset -5px -6px 8px rgb(29 5 80 / 30%), inset 3px 4px 6px rgb(255 255 255 / 45%); }
.game-canvas-wrap { position: relative; min-height: 0; overflow: hidden; border-block: 1px solid rgb(255 255 255 / 9%); background: linear-gradient(180deg, rgb(13 4 43 / 46%), rgb(25 8 65 / 20%)); 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 / 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 / 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 / 35%); border-radius: 19px; background: linear-gradient(135deg, #23daf6, #8256ff); color: #fff; box-shadow: 0 13px 28px rgb(36 194 244 / 18%), inset 0 1px rgb(255 255 255 / 35%); font-size: 12px; font-weight: 950; cursor: pointer; }
.cashout-button strong { padding: 8px 10px; border-radius: 11px; background: rgb(23 5 65 / 22%); font-size: 14px; }

.demo-screen--result { overflow-y: auto; background: radial-gradient(circle at 50% 24%, rgb(255 59 169 / 20%), transparent 23rem), rgb(16 6 42 / 75%); backdrop-filter: blur(12px); }
.result-card { position: relative; width: min(450px, 100%); padding: 28px 26px 23px; overflow: hidden; border: 1px solid rgb(255 255 255 / 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 / 62%); text-align: center; animation: result-in .45s ease-out both; }
.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 / 18%)); }
.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; }
.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-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; }
.result-confetti i { position: absolute; width: 9px; height: 20px; border-radius: 4px; animation: confetti 1.6s ease-out infinite; }
.result-confetti i:nth-child(1) { left: 10%; top: 10%; background: var(--cyan); }
.result-confetti i:nth-child(2) { left: 24%; top: 4%; background: var(--pink); animation-delay: -.6s; }
.result-confetti i:nth-child(3) { right: 17%; top: 8%; background: var(--lime); animation-delay: -.9s; }
.result-confetti i:nth-child(4) { right: 7%; top: 22%; background: var(--yellow); animation-delay: -.3s; }
.result-confetti i:nth-child(5) { left: 4%; top: 30%; background: var(--violet); animation-delay: -1.2s; }
.result-confetti i:nth-child(6) { right: 32%; top: 3%; background: var(--cyan); animation-delay: -.2s; }

.exit-dialog { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(9 2 30 / 80%); backdrop-filter: blur(12px); }
.exit-dialog > div { width: min(380px, 100%); padding: 27px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 27px; background: #2a1262; box-shadow: 0 25px 70px rgb(3 0 20 / 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-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes confetti { from { opacity: 0; transform: translateY(-15px) rotate(0); } 30% { opacity: 1; } to { opacity: 0; transform: translateY(120px) rotate(360deg); } }

@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 img { width: 112px; }
  .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; }
}
