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

:root { color-scheme: dark; --night: #06142e; --panel: #0f2444; --cyan: #21daf7; --pink: #8fd9ff; --lime: #7fe6c0; --yellow: #ffd42b; --violet: #2e6de0; --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%, #163a66, 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(130 190 255 / 0.4); border-radius: 34px; background: #0f2444; box-shadow: 0 32px 100px rgb(2 4 16 / 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, #163a66, #0d2240 62%, #060f22); }
.demo-intro-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, #0f2444), repeating-radial-gradient(ellipse at 50% 110%, transparent 0 55px, rgb(70 140 220 / 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; border-radius: 50%; transform: translate(-50%, -43%); filter: drop-shadow(0 28px 34px rgb(2 4 16 / 0.44)); animation: mascot-float 3.6s ease-in-out infinite; mask-image: radial-gradient(circle closest-side at 50% 50%, #000 55%, transparent 98%); -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 55%, transparent 98%); }
.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(8 18 40 / 0.75); color: #8ff1ff; box-shadow: 0 12px 28px rgb(2 4 16 / 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(10 30 60 / 0.35), inset 8px 9px 13px rgb(255 255 255 / 0.43), 0 10px 18px rgb(2 8 20 / 0.3); 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, #eaf6ff, #8fd9ff 43%, #3f8ad1); }
.lime { background: linear-gradient(145deg, #d9fff3, #6fe8c8 43%, #1f9e82); }
.yellow { background: linear-gradient(145deg, #fff8af, #ffd42b 43%, #ec8a0f); }
.violet { background: linear-gradient(145deg, #bcd4ff, #4f7fe0 43%, #1f3f99); }
.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: #1b2a44; 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; }

/* Tela de jogo: mesmo visual do jogo real (css/arena.css). */
.demo-screen--game { padding: 0; background: radial-gradient(120% 60% at 50% 0%, rgb(40 52 110 / 0.55), transparent 60%), linear-gradient(180deg, #0d1530 0%, #111a3a 55%, #0b1330 100%); }
.game-shell { position: relative; width: min(100%, 520px); height: 100vh; height: 100svh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
.dg-top { padding: max(14px, env(safe-area-inset-top)) 18px 6px; display: flex; align-items: center; gap: 10px; }
.dg-ic { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgb(120 215 235 / 0.35); border-radius: 12px; background: rgb(255 255 255 / 0.03); color: #8fe3f0; cursor: pointer; }
.dg-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg-ic--back { border-color: rgb(255 255 255 / 0.12); color: #cfd6ee; }
.dg-ic[aria-pressed="false"] { opacity: .45; }
.dg-logo { margin-left: 6px; display: flex; align-items: center; gap: 4px; }
.dg-logo img { height: 46px; width: auto; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.35)); }
.dg-logo span { display: grid; line-height: .9; }
.dg-logo b { font-size: 21px; font-weight: 900; color: transparent; background: linear-gradient(180deg, #ffffff 0%, #d6f3ff 55%, #8fd2f5 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1.2px #1f5aa8; filter: drop-shadow(0 2px 0 #163f7d); }
.dg-acts { margin-left: auto; display: flex; gap: 8px; }
.dg-hud { padding: 14px 18px 0; display: grid; justify-items: center; text-align: center; }
.dg-pill { padding: 6px 14px; border: 1px solid rgb(130 220 240 / 0.28); border-radius: 999px; background: rgb(255 255 255 / 0.03); color: #8fe3f0; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.dg-valor { margin-top: 12px; font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dg-sub { margin-top: 7px; color: #8a94b8; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.dg-cont { margin-top: 16px; display: flex; align-items: center; gap: 16px; color: #c3cbe6; font-size: 13px; font-weight: 500; }
.dg-cont b { color: #fff; font-weight: 800; }
.dg-cont i { width: 1px; height: 16px; background: rgb(255 255 255 / 0.18); }
.game-canvas-wrap { position: relative; min-height: 0; overflow: hidden; touch-action: none; }
.game-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
/* Cronometro do bloco (mesmo visual de css/arena.css) */
.ar-timer { position: absolute; z-index: 4; left: 50%; top: 10px; width: 64px; height: 64px; transform: translateX(-50%); display: grid; place-content: center; justify-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(200 240 255 / 0.16), rgb(20 40 80 / 0.35) 70%); box-shadow: 0 0 22px rgb(111 214 234 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.18); backdrop-filter: blur(4px); pointer-events: none; }
.ar-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ar-timer__trk { fill: none; stroke: rgb(255 255 255 / 0.1); stroke-width: 3.5; }
.ar-timer__arc { fill: none; stroke: url(#ar-gelo); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgb(140 230 250 / 0.7)); }
.ar-timer b { position: relative; color: #eafcff; font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgb(140 230 250 / 0.8); }
.ar-timer small { position: relative; margin-top: 1px; color: rgb(180 230 245 / 0.7); font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ar-timer.is-pouco b { color: #fff; animation: ar-tic 1s ease-in-out infinite; }
.ar-timer.is-pouco { box-shadow: 0 0 28px rgb(160 235 255 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.25); }
@keyframes ar-tic { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } }
.ar-pico { position: absolute; z-index: 4; left: 50%; top: 82px; transform: translateX(-50%); padding: 4px 10px; border: 1px solid rgb(255 213 107 / 0.45); border-radius: 999px; background: rgb(60 40 0 / 0.35); color: #ffd56b; font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; pointer-events: none; }
.combo-flash { position: absolute; z-index: 5; left: 50%; top: 22%; transform: translate(-50%, -50%); color: #ffd56b; font-size: 26px; font-weight: 800; pointer-events: none; white-space: nowrap; text-shadow: 0 0 18px rgb(255 200 80 / 0.55), 0 2px 0 rgb(120 70 0 / 0.5); }
.combo-flash.is-on { animation: dg-pop .75s ease both; }
@keyframes dg-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.85); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 70% { opacity: 1; transform: translate(-50%, -55%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -75%) scale(1); } }
.game-actions { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 40px 18px max(14px, env(safe-area-inset-bottom)); display: grid; gap: 10px; background: linear-gradient(180deg, transparent 0, rgb(11 19 48 / 0.55) 42%, rgb(11 19 48 / 0.95) 62%); }
.dg-prog { position: relative; height: 2px; margin: 6px -18px 0; background: rgb(255 255 255 / 0.22); }
.dg-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #ff2f66; transition: width .35s ease; }
.dg-prog b { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #ff2f66; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgb(255 47 102 / 0.8); transition: left .35s ease; }
.dg-faltam { margin: 0; color: #dfe5f6; font-size: 13px; font-weight: 600; text-align: center; }
.game-actions .demo-goal { margin: 0; min-height: 18px; color: rgb(225 232 250 / 0.72); text-shadow: 0 1px 6px rgb(0 0 0 / 0.5); font-size: 13px; font-weight: 500; text-align: center; }
.encaixar-button { min-height: 56px; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 16px; backdrop-filter: blur(6px); background: linear-gradient(90deg, rgb(111 214 234 / 0.88) 0%, rgb(79 182 226 / 0.88) 50%, rgb(61 149 212 / 0.88) 100%); color: #0b1a33; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 28px rgb(70 170 230 / 0.25), inset 0 1px rgb(255 255 255 / 0.35); transition: transform .1s ease; }
.encaixar-button:active { transform: scale(.98); }
.cashout-button { min-height: 44px; padding: 0 14px 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 14px; background: transparent; color: #aab4d4; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cashout-button strong { padding: 5px 10px; border-radius: 9px; background: rgb(255 255 255 / 0.06); color: #fff; font-size: 13px; }

.demo-screen--result { overflow-y: auto; align-items: safe center; background: radial-gradient(circle at 50% 24%, rgb(63 148 255 / 0.2), transparent 23rem), rgb(6 14 32 / 0.78); 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, #f7fcff 45%, #eef6fc); color: #143a66; box-shadow: 0 32px 100px rgb(2 4 16 / 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%, #f0fdf5 48%, #eef6fc 100%); }
.result-card[data-outcome="lost"] { background: radial-gradient(circle at 50% 0, #fff 0 18%, #eef7ff 48%, #e4ecf6 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(90 130 190 / 0.35); 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; height: 104px; width: auto; filter: drop-shadow(0 10px 16px rgb(10 30 60 / 0.22)); }
.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: #1f6fd1; 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 #cfe0f2; border-radius: 18px; background: #eef6fc; 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: #2e6de0; }
.demo-campaign small { display: block; margin-top: 10px; }
[data-demo-status]:not(.sr-only) { display: block; padding: 10px 18px; background: #163a66; color: #ffe3b3; font-size: 12px; line-height: 1.5; }
.result-prize { padding: 18px 10px; border: 1px solid #cfe0f2; border-radius: 23px; background: linear-gradient(145deg, #fff, #eef6fc); }
.result-prize small { display: block; color: #5c7294; 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, #eaf0f8); }
.result-card[data-outcome="lost"] .result-prize strong { color: #5c7294; }
.result-message { margin: 18px auto; max-width: 34ch; color: #5c7294; 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: #5c7294; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.replay-button:hover { background: #e6f1fb; }
.result-note { display: block; margin-top: 7px; color: #8498bd; 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(2 6 16 / 0.82); 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: #0f2444; box-shadow: 0 25px 70px rgb(2 4 16 / 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: #9fb3d6; font-size: 13px; }
.exit-dialog .demo-primary { width: 100%; min-height: 55px; margin: 0; }
.exit-dialog .replay-button { color: #c7d6ec; }

@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; }
}

.orange { background: linear-gradient(145deg, #ffe6bf, #ffb347 43%, #e08410); }
.blue { background: linear-gradient(145deg, #a9bff2, #2a55d6 43%, #12296e); }
.amber { background: linear-gradient(145deg, #ffc2a0, #f0641f 43%, #a83200); }
.red { background: linear-gradient(145deg, #ffb8b8, #ff3b3b 43%, #a80f0f); }
.teal { background: linear-gradient(145deg, #b9fff1, #14d2b0 43%, #08806c); }
.cashout-button.is-goal { border-color: rgb(255 214 90 / 0.55); background: rgb(255 214 90 / 0.1); color: #ffe27a; animation: goal-glow 1.4s ease-in-out infinite; }
.cashout-button.is-goal strong { background: #ffd45a; color: #2a1d00; }
@keyframes goal-glow { 50% { box-shadow: 0 0 26px rgb(255 214 90 / 0.35); } }
