:root {
  --bg: #0d081e;
  --bg-soft: #150e2e;
  --surface: #1d1240;
  --surface-2: #261a52;
  --border: #3b2a70;
  --text: #eef1ff;
  --dim: #9aa3c7;
  --primary: #7c5cff;
  --primary-2: #5a3df5;
  --pink: #ed147d;
  --accent: #00e5a8;
  --danger: #ff5470;
  --warning: #ffb547;
  --gold: #ffd166;
  --shadow: 0 16px 50px #0009;
  --tap-size: 44px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 8px #0008); }
.brand span b { color: var(--accent); }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 0; border-radius: 999px; color: #fff; font-weight: 900; letter-spacing: -.02em; }
.btn-primary { background: linear-gradient(135deg, #00e5a8, #00c888); box-shadow: 0 9px 24px #00e5a844, inset 0 1px #fff7; color: #05291f; }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary span { font-size: 26px; line-height: 0; }
.btn-ghost { border: 1px solid var(--border); background: #ffffff0a; color: var(--text); box-shadow: none; }
.btn-xl { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 12px; }
.btn:disabled { cursor: wait; opacity: .55; }
.message { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; text-align: center; }
.message.success { color: var(--accent); }

/* Public landing, matched to the supplied reference HTML. */
.landing { min-height: 100vh; overflow: hidden; font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; background: radial-gradient(1200px 600px at 80% -10%, #a855f738, transparent 60%), radial-gradient(900px 500px at -10% 30%, #d84aff1f, transparent 55%), var(--bg); }
.landing .app-header { position: absolute; z-index: 50; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: linear-gradient(#080c18d9, transparent); }
.landing-logo img { display: block; width: auto; height: 44px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.landing .app-header .btn { min-height: 44px; padding: 8px 14px; border-radius: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: transform .12s, box-shadow .12s, opacity .12s; }
.landing .app-header .btn:hover { transform: translateY(-2px); }
.landing .app-header .btn-primary { color: white; background: linear-gradient(135deg, #7c5cff, #5a3df5); box-shadow: 0 8px 22px #7558ff66; }
.lp-hero { position: relative; overflow: hidden; padding: calc(72px + env(safe-area-inset-top, 0px)) 16px 32px; }
.lp-hero-bg { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #1c0c3014 0%, #1c0c3047 62%, var(--bg) 100%), var(--landing-bg-mobile) center top / cover no-repeat; }
.lp-hero-inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; text-align: center; }
.lp-title { margin: 0 0 14px; font-size: clamp(1.1rem, 4.8vw, 1.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; }
.lp-title-break { display: none; }
.lp-title-accent { color: var(--gold); text-shadow: 0 0 18px #ffd16673; }
.lp-title-money { color: var(--accent); text-shadow: 0 0 18px #00e5a873; }
.lp-hero-banner--video { isolation: isolate; position: relative; width: 100%; max-width: 280px; margin: 30px auto 24px; border-radius: 24px; box-shadow: 0 18px 48px #0000008c; }
.lp-hero-banner--video::before { position: absolute; z-index: 2; inset: -5px; padding: 5px; border-radius: 29px; content: ""; pointer-events: none; background: conic-gradient(from var(--card-spin), #8b5cf6 0deg, #d84aff 70deg, #ff69dc 135deg, #ffd166 190deg, #f05bd8 245deg, #a855f7 305deg, #8b5cf6 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: card-border-spin 2.2s linear infinite, fire-border-flicker 1.1s ease-in-out infinite alternate; }
.lp-hero-banner--video::after { position: absolute; z-index: -1; inset: -6px; border-radius: 30px; content: ""; pointer-events: none; box-shadow: 0 0 14px #a855f78c, 0 0 30px #d84aff61, inset 0 0 10px #c084fc26; animation: fire-glow-pulse 1.3s ease-in-out infinite alternate; }
.lp-video-link { display: block; overflow: hidden; width: 100%; border: 0; border-radius: 22px; background: transparent; }
.lp-video-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.lp-video-link video { display: block; width: 100%; height: auto; border-radius: 22px; background: #12062b; pointer-events: none; }
.lp-video-badge { position: absolute; z-index: 5; top: 0; left: 50%; display: inline-flex; align-items: center; overflow: hidden; padding: 8px 20px; transform: translate(-50%, -50%); border: 3px solid #f05bd8; border-radius: 999px; color: white; background: #12062b; box-shadow: 0 0 0 5px #12062b, 0 0 18px #f05bd8cc; font-size: .76rem; font-weight: 900; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; pointer-events: none; animation: bonusPulse 2.4s ease-in-out infinite; }
.lp-video-badge::after { position: absolute; inset: 0; border-radius: inherit; content: ""; background: linear-gradient(115deg, transparent 34%, #ffffff1f 43%, #ffffffa6 50%, #ffffff1f 57%, transparent 66%) 0 0 / 250% 100%; animation: bonusSweep 4.8s linear infinite; }
.lp-video-badge strong { margin-right: 4px; color: #f05bd8; font: inherit; }
.lp-video-badge strong.online-bump { animation: online-number-bump .35s ease; }
.lp-video-badge-icon { width: 1.05em; height: 1.05em; margin-right: 5px; fill: white; stroke: none; vertical-align: -.14em; }
.lp-ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.landing .btn-accent { color: #042818; background: linear-gradient(135deg, #00ff88, #00e055); }
.landing .lp-btn-primary { width: 100%; min-height: 0; padding: 16px 24px; border-radius: 999px; font-size: 1rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 28px #00ff7873; animation: lp-cta-soft-pulse 2.8s ease-in-out infinite; }
.lp-btn-link { padding: 8px; border: 0; color: #c9bfdf; background: transparent; font-size: .9rem; font-weight: 600; }
.lp-howto { padding: 44px 0 48px; border-top: 1px solid #ffffff0f; border-bottom: 1px solid #ffffff0f; background: #00000038; }
.lp-howto-head { margin-bottom: 28px; padding: 0 16px; text-align: center; }
.lp-howto-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--accent); }
.lp-howto-icon svg { width: 28px; height: 28px; }
.lp-howto-title { margin: 0; font-size: 1.55rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.lp-howto-sub { margin: 8px 0 0; color: var(--dim); font-size: .9rem; line-height: 1.45; }
.lp-howto-scroll { display: flex; overflow-x: auto; gap: 14px; padding: 4px 16px 12px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lp-howto-scroll::-webkit-scrollbar { display: none; }
.lp-howto-card { flex: 0 0 min(72vw, 260px); overflow: hidden; border: 1px solid #ffffff14; border-radius: 18px; background: #0e1222eb; box-shadow: 0 12px 32px #00000059; scroll-snap-align: center; }
.lp-howto-visual { position: relative; overflow: hidden; aspect-ratio: 3; background: #0a0e1a; }
.lp-howto-visual--board { display: block; padding: 0; background: radial-gradient(circle at 50% 30%, #a855f738, transparent 55%), #0a0818; }
.lp-howto-visual img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.lp-howto-badge { position: absolute; top: 10px; right: 10px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #041510; background: var(--accent); box-shadow: 0 4px 14px #00e5a873; font-size: 1rem; font-weight: 900; }
.lp-howto-card h3 { margin: 0; padding: 14px 14px 6px; font-size: .95rem; font-weight: 800; line-height: 1.25; }
.lp-howto-card p { margin: 0; padding: 0 14px 16px; color: var(--dim); font-size: .82rem; line-height: 1.5; }
.lp-section { max-width: 480px; margin: 0 auto; padding: 40px 16px; }
.lp-section-reviews { padding-top: 16px; }
.lp-section-title { margin: 0; text-align: center; font-size: 1.55rem; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; }
.lp-section-sub { margin: 8px 0 28px; color: var(--dim); text-align: center; font-size: .9rem; line-height: 1.45; }
.lp-reviews { display: flex; flex-direction: column; gap: 14px; }
.lp-review { padding: 20px; border: 1px solid #ffffff14; border-radius: 18px; background: #171c36b3; }
.lp-review-stars { margin-bottom: 12px; color: var(--gold); font-size: .9rem; letter-spacing: 3px; }
.lp-review-text { margin: 0 0 16px; color: var(--text); font-size: .92rem; line-height: 1.55; }
.lp-review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { display: grid; flex-shrink: 0; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #7c5cff, #00c2ff); font-weight: 800; }
.lp-review-name { font-size: .9rem; font-weight: 800; }
.lp-review-badge { margin-top: 2px; color: var(--accent); font-size: .75rem; }
.lp-final { max-width: 480px; margin: 0 auto; padding: 36px 16px 48px; text-align: center; }
.lp-final h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 900; }
.lp-final p { margin: 0 0 22px; color: var(--dim); font-size: .92rem; line-height: 1.5; }
.lp-footer { padding: 28px 16px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ffffff14; text-align: center; }
.lp-footer-logo { width: auto; height: 56px; margin-bottom: 14px; opacity: .9; }
.lp-footer-copy { margin: 0; color: var(--dim); font-size: .82rem; }
.lp-footer-note { margin: 8px 0 0; color: #9aa3c7b3; font-size: .75rem; line-height: 1.4; }

@property --card-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes card-border-spin { to { --card-spin: 360deg; } }
@keyframes fire-border-flicker { from { opacity: .75; filter: brightness(.95); } to { opacity: 1; filter: brightness(1.15); } }
@keyframes fire-glow-pulse { from { opacity: .55; transform: scale(.995); } to { opacity: 1; transform: scale(1); } }
@keyframes bonusPulse { 0%, 100% { box-shadow: 0 0 5px #f5c51840; } 50% { box-shadow: 0 0 16px #f5c51899; } }
@keyframes bonusSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes lp-cta-soft-pulse { 0%, 100% { filter: brightness(1); transform: scale(1); box-shadow: 0 8px 24px #00ff7857; } 50% { filter: brightness(1.06); transform: scale(1.012); box-shadow: 0 10px 30px #00ff787a; } }
@keyframes online-number-bump { 50% { color: white; transform: translateY(-1px) scale(1.08); } }

@media (min-width: 768px) {
  .lp-hero { padding: calc(88px + env(safe-area-inset-top, 0px)) 24px 48px; }
  .lp-hero-bg { background-image: linear-gradient(180deg, #1c0c3014 0%, #1c0c3047 62%, var(--bg) 100%), var(--landing-bg-desktop); }
  .lp-hero-inner, .lp-section, .lp-final { max-width: 720px; }
  .lp-title { font-size: 3.4rem; white-space: normal; }
  .lp-title-break { display: initial; }
  .lp-howto-scroll { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; max-width: 1100px; margin: 0 auto; padding: 4px 24px 12px; gap: 16px; }
  .lp-howto-card { max-width: none; }
  .lp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* Authentication — scenic composition copied from the supplied SingleFile states. */
body:has(.auth-shell) .bubble-install-bar,
body:has(.panel-shell) .bubble-install-bar,
body:has(.tutorial-game-page) .bubble-install-bar { display: none !important; }
body.dialog-open { overflow: hidden; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.auth-shell {
  --auth-scene: var(--auth-bg-mobile);
  min-height: 100dvh; display: flex; position: relative; overflow: hidden;
  background-color: #0d081e;
  background-image: linear-gradient(180deg,rgba(13,8,30,.06),rgba(13,8,30,.2)),var(--auth-scene,var(--auth-bg-desktop));
  background-position: center; background-size: cover; background-attachment: fixed;
}
.auth-page { min-height: 100dvh; width: 100%; padding: calc(32px + env(safe-area-inset-top,0px)) 16px calc(32px + env(safe-area-inset-bottom,0px)); display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.auth-logo { display: block; width: 126px; filter: drop-shadow(0 8px 16px #21082d80); }
.auth-logo img { display: block; width: 100%; height: auto; }
.auth-card { width: 100%; max-width: 420px; padding: 24px; border: 1px solid #d84aff47; border-radius: 14px; background: #180d2ed9; box-shadow: 0 24px 60px #00000073,0 0 32px #8c3cdc38; backdrop-filter: none; }
.auth-card h1 { margin: 0 0 6px; color: var(--text); font-family: "Segoe UI",system-ui,sans-serif; font-size: 25.6px; font-weight: 700; letter-spacing: normal; text-align: left; }
.auth-card > p { margin: 0 0 24px; color: var(--dim); font-size: 15.2px; line-height: normal; }
.form { display: grid; gap: 14px; }
.input,.form input,.form select { width: 100%; height: 50px; padding: 13px 14px; border: 1px solid #3b2a70; border-radius: 10px; outline: 0; color: var(--text); background: #150e2e; font: inherit; font-size: 17px; transition: border-color .15s,box-shadow .15s; }
.auth-card .input { min-height: 50px; }
.input::placeholder,.form input::placeholder { color: #9f94af; opacity: 1; }
.input:focus,.form input:focus,.form select:focus { border-color: #8d66ff; box-shadow: 0 0 0 3px #7c5cff38; }
.input-group { position: relative; }
.input-password .input { padding-right: 52px; }
.input-eye { position: absolute; top: 50%; right: 7px; width: var(--tap-size); height: var(--tap-size); padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 9px; color: #b8adc6; background: transparent; }
.input-eye svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.form .message { min-height: 0; margin: -2px 0 0; color: #ff8295; font-size: 12px; }
.auth-card .form { display: block; }
.auth-card .form > .input,.auth-card .form > .input-group { margin-bottom: 16px; }
.auth-card .form .message:empty { display: none; }
.auth-card .btn-primary { height: 47px; min-height: 47px; padding: 13px 26px; gap: 8px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#7c5cff,#5a3df5); box-shadow: 0 8px 24px #7c5cff66; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.auth-switch { margin-top: 18px; color: var(--dim); font-size: 14.4px; text-align: center; }
.auth-switch a { color: #00e5a8; font-weight: 800; }

/* Logged application — one authoritative shell and one set of modal primitives. */
.panel-shell {
  --surface: #1b102ddb; --surface-solid: #161020; --ink: #f7f3ff; --muted: #b6a9c5;
  --line: #ffffff24; --purple: #c05cff; --panel-scene: var(--panel-bg-mobile);
  --panel-overlay: linear-gradient(180deg,#080c1847,#080c187a);
  --panel-nav-space: calc(78px + env(safe-area-inset-bottom));
  position: relative; min-height: 100dvh; overflow-x: hidden; color: var(--ink); background-color: #0d081e;
}
.panel-shell::before { content:"";position:fixed;inset:0 0 var(--panel-nav-space);z-index:0;pointer-events:none;background-image:var(--panel-overlay),var(--panel-scene,var(--panel-bg-desktop));background-size:auto,cover;background-position:0 0,center top;background-repeat:no-repeat; }
.panel-shell > * { position:relative;z-index:1; }
.panel-shell.dark { --surface: #10091ded; --surface-solid: #10091d; --muted: #aaa0ba; --line: #ffffff1c; --panel-overlay:linear-gradient(180deg,#080c1847,#080c187a); }
.panel-shell--light { --surface: #1b102ddb; --surface-solid: #161020; --ink: #f7f3ff; --muted: #b6a9c5; --line: #ffffff24; background-color: #0d081e; --panel-overlay:linear-gradient(180deg,#1c0c301f,#1c0c3047); }
.panel-shell--light .panel-theme-btn { color: #5b21b6; border-color: #ffffff4d; background: rgba(255,255,255,.35); }
.install-bar { position: fixed; z-index: 82; top: 0; left: 0; right: 0; min-height: 64px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; color: #fff; background: #2a0b3ee8; box-shadow: 0 2px 14px #13051f66; backdrop-filter: blur(14px); }
.install-bar-close { flex: 0 0 auto; width: var(--tap-size); height: var(--tap-size); padding: 0; border: 1px solid #ffffff26; border-radius: 50%; background: #8a12396b; color: #fff; font-size: 14px; }
.install-bar-icon { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.install-bar-text { margin: 0; color: #fff; font-size: 12px; font-weight: 900; line-height: 1.16; text-transform: uppercase; }
.install-bar-cta { min-width: 104px; height: var(--tap-size); margin-left: auto; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #f09bff73; border-radius: 999px; color: #fff; background: linear-gradient(180deg,#c64cff,#7a1bb5); font-size: 12px; font-weight: 900; text-transform: uppercase; box-shadow: 0 4px 14px #7f20af70; animation: install-pulse 1.8s ease-in-out infinite; }
.install-bar-cta svg { width: 17px; height: 17px; }
.panel-topbar { position: fixed; z-index: 80; top: 0; left: 0; right: 0; width: 100%; height: 78px; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg,#170724c9,transparent); }
.panel--has-install-bar .panel-topbar { top: 64px; }
.panel-topbar-logo { width: 126px; max-height: 58px; object-fit: contain; filter: drop-shadow(0 4px 9px #24052b9c); }
.panel-topbar-actions { display: flex; align-items: center; gap: 9px; }
.panel-balance { min-width: 84px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.08; text-shadow: 0 2px 5px #16041d; }
.panel-balance-label { color: #eadcf0; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.panel-balance-value { color: #00f2b3; font-size: 15px; font-weight: 950; }
.panel-theme-btn,.panel-profile-btn { width: var(--tap-size); height: var(--tap-size); display: grid; place-items: center; border: 1px solid #ffffff4d; border-radius: 50%; color: #fff; background: #2a1745bf; backdrop-filter: blur(8px); }
.panel-theme-btn svg { width: 20px; height: 20px; }
.panel-notifications-btn { position: relative; }
.panel-notifications-btn > span { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #2a0d41; border-radius: 999px; color: #fff; background: #ff3b72; font-size: 10px; font-weight: 900; }
.panel-profile-btn { border: 2px solid #e5c7ff; background: linear-gradient(145deg,#9d4edd,#5a148c); font-size: 14px; font-weight: 950; box-shadow: 0 4px 12px #360a5973; }
.panel-page { width: 100%; max-width:560px; min-height: 100dvh; margin: 0 auto; padding: 114px 16px 110px; display: grid; place-items: start center; }
.panel--has-install-bar .panel-page { padding-top: 174px; }
.panel-card { isolation: isolate; position: relative; width: 100%; padding: 22px; overflow: visible; border: 1px solid #d84aff47; border-radius: 24px; background: #1d124094; box-shadow: 0 8px 32px #00000040; backdrop-filter: blur(16px); }
.panel-card::before { content: ""; position: absolute; z-index: 4; inset: -2px; padding: 2px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--card-spin),transparent 0deg 230deg,#a855f755 260deg,#c26bff 300deg,#ffe06b 325deg,#ff5bd8 345deg,#a96cff 355deg,transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: brightness(1.22); animation: card-border-spin 2.2s linear infinite,fire-border-flicker 1.1s ease-in-out infinite alternate; }
.panel-card::after { content: ""; position: absolute; z-index: -1; inset: -6px; border-radius: 26px; pointer-events: none; box-shadow: 0 0 14px #a855f773,0 0 28px #d84aff47,inset 0 0 10px #c084fc1f; animation: fire-glow-pulse 1.3s ease-in-out infinite alternate; }
.panel-banner { position: relative; width: calc(100% + 44px); margin: -22px -22px 20px; overflow: hidden; border-radius: 24px 24px 0 0; background: #210339; }
.panel-banner > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.online-fire-pill { isolation: isolate; position: absolute; right: 12px; top: 12px; min-width: 102px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; color: #fff; background: #080a12e8; font-size: 12.48px; font-weight: 700; box-shadow: 0 3px 12px #0006; backdrop-filter: blur(6px); }
.online-fire-pill::before { content: ""; position: absolute; z-index: -1; inset: -2px; padding: 2px; border-radius: inherit; background: conic-gradient(from var(--card-spin),transparent 0deg 210deg,#ff6400aa 250deg,#ff5500 290deg,#ffdd44 320deg,#ff2200 340deg,#ff8800 352deg,transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: brightness(1.2); animation: pill-border-spin 1.6s linear infinite,fire-border-flicker .85s ease-in-out infinite alternate; }
.online-fire-pill::after { content: ""; position: absolute; z-index: -2; inset: -6px; border-radius: inherit; box-shadow: 0 0 10px #ff6400e8,0 0 20px #ff3200a6,0 0 32px #ff780073; animation: fire-glow-pulse .9s ease-in-out infinite alternate; }
.live-count { color: #ff2a2a; font-variant-numeric: tabular-nums; font-weight: 900; animation: live-count-pulse .95s ease-in-out infinite; }
.online-fire-pill .online-label { color: #ffffffb8; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.panel-card > .panel-label { margin: 0 0 10px; color: var(--dim); font-size: 11.52px; font-weight: 800; }
.panel-label { color: var(--dim); font-size: 11.52px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.entry-grid { margin-bottom: 14px; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.entry-chip { height: auto; padding: 14px 8px; border: 1px solid #3b2a70; border-radius: 12px; color: var(--text); background: #ffffff0d; font-size: 16px; font-weight: 800; transition: border-color .15s,background-color .15s,transform .15s; }
.entry-chip.selected { border-color: #b9d9ff; color: #12142a; background: linear-gradient(180deg,#d8efff,#91c7ff); box-shadow: 0 3px 10px #79b9ff4f; }
.money-input { height: auto; margin: 0 0 18px; padding: 0 14px; display: flex; align-items: center; gap: 10px; overflow: hidden; border: 1px solid #3b2a70; border-radius: 12px; background: var(--bg-soft); }
.money-input:focus-within { border-color: #8fbfff; box-shadow: 0 0 0 3px #8fbfff24; }
.money-input .prefix { min-width: auto; color: var(--dim); background: transparent; border: 0; font-size: 16px; font-weight: 700; }
.money-input input { width: 100%; height: auto; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; font-weight: 700; }
.money-input input::placeholder { color: #a99ab4; }
.reward-box { min-height: 0; margin: 0 0 20px; padding: 16px; display: block; border: 1px solid #00c2ff73; border-radius: 16px; color: var(--text); background: #00c2ff1a; text-align: center; }
.reward-box .label { color: var(--text); font-size: 15.2px; font-weight: 600; }
.reward-box .value { margin-top: 2px; color: #ffe600; font-size: 27.2px; font-weight: 900; text-shadow: 0 0 14px #ffe6008c; }
.panel-cta,.sheet-cta { width: 100%; min-height: 49px; margin: 0; border: 0; border-radius: 999px; color: #042818; background: linear-gradient(135deg,#00ff88,#00e055); font-size: 16px; font-weight: 800; box-shadow: 0 10px 30px #00ff7873; }
.panel-cta { min-height: 0; padding: 17px; font-size: 16.8px; animation: cta-pulse 1.6s ease-in-out infinite; }
.bottom-nav { position: fixed; z-index: 79; left: 0; right: 0; bottom: 0; width: 100%; height: 78px; padding: 10px 8px; display: flex; align-items: center; justify-content: center; gap: clamp(15.6px,4vw,34px); border-top: 1px solid #ffffff26; color: #fff; background: #160921f2; box-shadow: 0 -8px 24px #10031973; backdrop-filter: blur(18px); }
.nav-item { width: auto; min-width: 60px; padding: 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: #9aa3c7; font-size: 11.52px; font-weight: 600; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: #eacbff; }
.nav-item.center { margin-top: -30px; overflow: visible; justify-content: normal; color: #ffd166; font-weight: 900; }
.nav-circle { position: relative; width: 60px; height: 60px; margin: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#35205e,#150a2c); box-shadow: 0 0 18px #a855f766; }
.nav-circle::before { content: ""; position: absolute; z-index: 0; inset: -2px; padding: 2px; border-radius: inherit; background: conic-gradient(from var(--card-spin),transparent 0deg 220deg,#d84aff55 260deg,#e16bff 300deg,#ffd166 330deg,#b966ff 350deg,transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: drop-shadow(0 0 6px #d84affaa); animation: card-border-spin 1.8s linear infinite; }
.nav-circle::after { content: ""; position: absolute; inset: -7px; z-index: -1; border-radius: 50%; box-shadow: 0 0 18px #d84aff88; animation: fire-glow-pulse 1.15s ease-in-out infinite alternate; }
.nav-bubble { width: 38px !important; height: 38px !important; }

/* Bottom sheets */
.sheet-overlay { position: fixed; z-index: 120; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 44px 0 var(--panel-nav-space); background: #05070fb8; backdrop-filter: blur(5px); animation: sheetBackdropIn .2s ease-out both; }
.sheet { position: relative; width: min(100%,560px); max-height: calc(100dvh - 44px - var(--panel-nav-space)); padding: 8px 20px 24px; overflow: hidden auto; overscroll-behavior: contain; border: 1px solid #ffffff21; border-bottom: 0; border-radius: 26px 26px 0 0; color: #f7f3ff; background: #10141f; box-shadow: 0 -18px 55px #0009; backface-visibility: hidden; will-change: transform,opacity; animation: sheetUp .3s cubic-bezier(.22,1,.36,1); }
.sheet-handle { width: 44px; height: 4px; margin: 2px auto 9px; border-radius: 10px; background: #ffffff45; }
.sheet-handle-overlay { position: absolute; z-index: 2; top: 8px; left: 50%; margin-left: -22px; background: #ffffffc2; }
.sheet-header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff16; }
.sheet-header h2 { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 900; }
.sheet-close { position: relative; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #b414148c; font-size: 17.6px; backdrop-filter: blur(4px); }
.sheet-close::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; }
.sheet-close-overlay { position: absolute; z-index: 3; top: 12px; right: 12px; }
.sheet-hero { position: relative; margin: -8px -20px 18px; overflow: hidden; border-radius: 26px 26px 0 0; background: #27033d; }
.sheet-hero img { display: block; width: 100%; height: auto; object-fit: cover; }
.sheet-section { margin: 0 0 14px; padding: 16px; border: 1px solid #3b2a70; border-radius: 16px; background: #ffffff0a; }
.sheet-section .panel-label { margin-bottom: 8px; }
.sheet .money-input { margin: 0 0 14px; overflow: visible; border-radius: 12px; }
.sheet .message { min-height: 0; margin: 0 3px 10px; color: #ff8295; font-size: 12px; font-weight: 700; }
.sheet .sheet-cta { width: 100%; min-height: 56px; margin: 6px 0 0; padding: 17px; font-size: 16.8px; }
.quick-grid { padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
.quick-value { position: relative; min-height: 58px; padding: 20px 8px 14px; border: 1px solid #3b2a70; border-radius: 14px; color: #fff; background: #ffffff0a; font-size: 1.05rem; font-weight: 800; overflow: visible; }
.quick-value.bonus-glow { border-color: #f5c518cc; color: #fff; animation: bonusPulse 2.4s ease-in-out infinite; }
.quick-value.bonus-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg,transparent 38%,#f5c5181f 44%,#f6d3656b 50%,#f5c5181f 56%,transparent 62%) 0 0 / 250% 100%; animation: bonusSweep 3.6s linear infinite; }
.quick-badge { position: absolute; z-index: 1; top: -9px; left: 50%; padding: 3px 10px; transform: translateX(-50%); border-radius: 999px; color: #fff; font-size: 9.92px; font-weight: 800; line-height: normal; letter-spacing: .05em; white-space: nowrap; }
.deposit-money { margin: 0 !important; }
.cupom-section { margin: 0 0 14px; }
.cupom-link { position: relative; min-height: 0; padding: 4px 2px; display: inline-flex; align-items: center; gap: 4px; border: 0; color: #42f0ba; background: transparent; font-size: 14.72px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cupom-link::before { content: ""; position: absolute; inset: -8px -4px; }
.cupom-link svg { width: 18px; height: 18px; }
.cupom-row { display: flex; gap: 7px; }
.cupom-row input { flex: 1; min-width: 0; height: 44px; padding: 0 11px; border: 1px solid #ffffff24; border-radius: 8px; color: #fff; background: #090d16; }
.cupom-row button { min-width: 88px; min-height: 44px; border: 0; border-radius: 8px; color: #06241a; background: #21e6a3; font-size: 12px; font-weight: 900; }
.cupom-help { margin: 6px 0 0; color: #b6a9c5; font-size: 10px; line-height: 1.4; }
.saldo-row { display: flex; align-items: center; gap: 12px; }
.saldo-row .coin { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#fcb900,#e48900); font-size: 12px; font-weight: 950; }
.saldo-row .label { color: #b6a9c5; font-size: 12px; font-weight: 700; }
.saldo-row .value { margin-top: 2px; color: #2df0a7; font-size: 21.6px; font-weight: 900; }
.saldo-row .value.zero { color: #ff6278; }
.notice-box { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d4aa5070; border-radius: 8px; color: #ffd166; background: #ffb54710; font-size: 13.6px; line-height: 1.45; }
.pix-view { padding: 2px 0 0; text-align: center; }
.pix-timer { display: flex; flex-direction: column; margin-bottom: 10px; }
.pix-timer-label { color: #b6a9c5; font-size: 11px; }
.pix-timer-digits { color: #ff6278; font-size: 24px; font-weight: 950; font-variant-numeric: tabular-nums; }
.pix-view-qr { width: 190px; height: 190px; margin: 0 auto 12px; display: grid; place-items: center; border: 8px solid #fff; background: #fff; box-shadow: 0 0 0 1px #ddd,0 9px 24px #0004; }
.pix-qr-svg { display: block; width: 100%; height: 100%; stroke: none; }
.pix-copy-box { max-height: 82px; padding: 9px; overflow-wrap: anywhere; overflow-y: auto; border: 1px solid #ffffff24; border-radius: 8px; color: #cbbfd7; background: #080c15; font: 10px/1.35 monospace; text-align: left; }
.pix-txid { margin-top: 10px; color: #a99db5; font: 9px monospace; }
.history { display: grid; }
.history-row,.notification-row { width: 100%; min-height: 52px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid #ffffff12; color: inherit; background: transparent; text-align: left; }
.history-row div,.notification-row div { display: grid; gap: 3px; }
.history-row small,.notification-row small { color: #b6a9c5; font-size: 10px; }
.status { padding: 4px 7px; border-radius: 999px; color: #a9ffe4; background: #00e5a81a; font-size: 9px; text-transform: uppercase; }
.status.pending { color: #ffe09d; background: #ffb5471f; }
.empty { padding: 24px 10px; color: #b6a9c5; font-size: 12px; text-align: center; }
.winner-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid #d693ff; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#a844df,#5a1186); font-size: 16px; font-weight: 800; }
.profile-user { display: flex; align-items: center; gap: 13px; }
.profile-user-info { min-width: 0; flex: 1; }
.profile-user-name { font-size: 16px; font-weight: 800; }
.profile-user-phone { color: var(--dim); font-size: 13.6px; }
.profile-ref-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.profile-ref-link { min-width: 0; overflow: hidden; color: var(--dim); font-size: 11.52px; text-overflow: ellipsis; white-space: nowrap; }
.profile-ref-copy { position: relative; flex: 0 0 auto; min-height: 27px; padding: 5px 10px; border: 1px solid #3b2a70; border-radius: 999px; color: var(--text); background: #ffffff0d; font-size: 11.52px; font-weight: 700; }
.profile-ref-copy::before { content: ""; position: absolute; inset: -9px -4px; border-radius: inherit; }
.quick-stats { display: grid; }
.profile-stats { grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 14px; }
.quick-stat { padding: 14px 10px; border: 1px solid #3b2a70; border-radius: 12px; text-align: center; }
.quick-stat .v { overflow: hidden; color: var(--text); font-size: 18.4px; font-weight: 800; line-height: 22.08px; text-overflow: ellipsis; white-space: nowrap; }
.quick-stat .l { margin-top: 4px; color: var(--dim); font-size: 11.52px; line-height: 14.4px; }
.profile-history-header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.profile-history-header .panel-label { margin: 0; }
.profile-history-toggle { position: relative; min-height: 28px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #3b2a70; border-radius: 999px; color: var(--dim); background: #ffffff0d; font-size: 12.48px; font-weight: 700; }
.profile-history-toggle::before { content: ""; position: absolute; inset: -8px -3px; border-radius: inherit; }
.profile-history-toggle svg { width: 14px; height: 14px; }
.profile-unavailable { min-height: var(--tap-size); padding: 0 10px; display: inline-flex; align-items: center; border-radius: 5px; color: #b6a9c5; background: #ffffff0a; font-size: 9px; font-weight: 800; }
.profile-password-form { display: grid; gap: 10px; }
.profile-password-form label { display: grid; gap: 5px; color: #cabdd4; font-size: 11px; font-weight: 700; }
.profile-password-form .input { height: 44px; min-height: 44px; }
.btn-danger { width: 100%; min-height: 47px; margin-top: 3px; padding: 13px 26px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#ff5470,#d63356); font-size: 16px; font-weight: 700; }
.ref-card { margin-bottom: 14px; padding: 18px; border: 1px solid #7effc76b; border-radius: 14px; color: #fff; background: linear-gradient(125deg,#087f5b,#08a96f 62%,#16bd83); box-shadow: 0 8px 20px #032d245e; }
.ref-card .row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 15px; }
.ref-card .label { font-size: 10px; opacity: .85; }
.ref-card .big { margin-top: 2px; font-size: 23px; font-weight: 950; }
.ref-card .small { font-size: 9px; opacity: .75; }
.ref-card .cta { width: 100%; min-height: 42px; margin-top: 14px; border: 0; border-radius: 8px; color: #087f5b; background: #fff; font-size: 12px; font-weight: 900; }
.ref-link-label { margin-bottom: 6px !important; }
.ref-link-value { overflow: hidden; color: #b6a9c5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ref-copy-btn { width: 100%; min-height: var(--tap-size); margin-top: 8px; color: #fff; background: #6d1897; }
.sheet .btn-sm { min-height: var(--tap-size); }
.ref-levels { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: 14px; }
.ref-level { padding: 10px 3px; border: 1px solid #ffffff17; border-radius: 8px; text-align: center; }
.ref-level .tier { color: #d894ff; font-size: 14px; font-weight: 950; }
.ref-level .tier-sub,.ref-level .count-sub { color: #b6a9c5; font-size: 7px; }
.ref-level .count { margin-top: 7px; font-size: 14px; font-weight: 900; }
.ref-level .vol { margin-top: 6px; color: #2df0a7; font-size: 9px; font-weight: 800; }
.ref-history-empty { padding: 14px 5px 3px; color: #b6a9c5; font-size: 11px; text-align: center; }
.notification-row i { padding: 4px 7px; border-radius: 99px; color: #073a2d; background: #00e5a8; font-size: 9px; font-style: normal; font-weight: 900; }
.toast-stack { position: fixed; z-index: 100; top: 86px; right: 12px; width: min(330px,calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none; }
.panel--has-install-bar .toast-stack { top: 150px; }
.game-toast { min-height: 58px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #ffffff24; border-radius: 13px; color: #fff; background: #160b29ed; box-shadow: 0 12px 34px #0008; animation: toast-in .45s cubic-bezier(.16,1,.3,1) both,toast-out .35s ease-in calc(4.5s + var(--toast-index)*.25s) forwards; backdrop-filter: blur(12px); }
.game-toast-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #23e4a3; box-shadow: 0 0 12px #23e4a3; }
.game-toast div { display: grid; gap: 2px; }
.game-toast strong { font-size: 12px; }
.game-toast small { color: #cdbfd7; font-size: 10px; line-height: 1.35; }
.live-toast { position: fixed; z-index: 90; left: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); width: max-content; max-width: min(320px,calc(100vw - 24px)); padding: 12px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #d84aff40; border-radius: 16px; color: #fff; background: #180d2eeb; box-shadow: 0 13px 34px #0008; backdrop-filter: blur(12px); animation: live-toast-in .45s cubic-bezier(.22,1,.36,1) both; }
.live-toast.leaving { animation: live-toast-out .4s forwards; }
.live-toast-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #78ffd0; border-radius: 50%; color: #091b14; background: linear-gradient(145deg,#72ffd0,#20d99b); box-shadow: 0 0 14px #28e5a566; }
.live-toast-icon svg { width: 19px; height: 19px; stroke-width: 2.1; }
.live-toast div { min-width: 0; display: grid; }
.live-toast strong { font-size: 12px; }
.live-toast small { color: #cdbfd7; font-size: 10px; }
.live-toast b { margin-left: auto; color: #54f0b7; font-size: 12px; white-space: nowrap; }

/* Full-screen seven-state tutorial. */
.tutorial-game-page { width: 100%; height: 100dvh; min-height: 0; position: fixed; z-index: 2000; inset: 0; overflow: hidden; color: #fff; background: #17062d var(--tutorial-bg) center/cover no-repeat; }
.tutorial-game-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#26043d31,#16032b24 48%,#13031ea3); pointer-events: none; }
.tutorial-skip-btn { position: fixed; z-index: 2010; top: max(15px,env(safe-area-inset-top)); right: max(15px,env(safe-area-inset-right)); min-width: 108px; min-height: var(--tap-size); padding: 0 16px; border: 1px solid #ffffff5c; border-radius: 999px; color: #fff; background: #13072288; font-size: 12px; font-weight: 800; backdrop-filter: blur(7px); }
.bb-hud { position: fixed; z-index: 2005; top: max(14px,env(safe-area-inset-top)); left: 50%; width: min(450px,calc(100vw - 220px)); display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: start; transform: translateX(-50%); text-align: center; text-shadow: 0 2px 5px #19021f,0 0 3px #fff6; }
.bb-hud-corner { padding-top: 5px; color: #d8a313; font-size: clamp(15px,2vw,20px); font-weight: 950; }
.bb-hud-score strong { display: block; color: #00c76b; font-size: clamp(25px,3.5vw,39px); font-weight: 950; line-height: 1; }
.bb-hud-progress { display: block; width: 100%; height: 10px; margin-top: 5px; overflow: hidden; border: 1px solid #ffffff3b; border-radius: 999px; background: #11051f87; }
.bb-hud-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#00df83,#ffe329); transition: width .3s ease-out; }
.tutorial-gain { position: fixed; z-index: 2006; top: 90px; left: 50%; transform: translateX(-50%); color: #00f19b; font-size: 18px; font-weight: 950; text-shadow: 0 2px 6px #071a12; }
.bubble-stage { position: absolute; z-index: 2002; bottom: -2px; left: 50%; width: min(460px,42vw); transform: translateX(-50%); }
.bubble-stage img { display: block; width: 100%; height: auto; }
.tutorial-modal-overlay { position: fixed; z-index: 2008; inset: 0; display: grid; place-items: center; padding: 70px 16px 20px; background: #12031d3d; }
.tutorial-modal { width: min(435px,calc(100vw - 28px)); overflow: hidden; border: 1px solid #d84aff59; border-radius: 16px; color: #fff; background: #1b0c35ed; box-shadow: 0 22px 55px #08020ab8; }
.tutorial-modal > img { display: block; width: 100%; aspect-ratio: 600/230; object-fit: cover; }
.tutorial-modal-body { padding: 19px 26px 25px; text-align: center; }
.tutorial-modal h1 { margin: 0 0 8px; font-size: clamp(23px,4vw,29px); font-weight: 950; }
.tutorial-modal p { margin: 0 auto 19px; color: #f0e7f5; font-size: 15px; font-weight: 700; line-height: 1.5; }
.tutorial-modal .btn { min-height: 52px; margin-top: 10px; border-radius: 11px; font-weight: 950; text-transform: uppercase; }
.tutorial-modal .btn-accent { color: #061c13; background: linear-gradient(180deg,#1df5a6,#00d983); box-shadow: 0 7px 18px #00e5a847; }
.tutorial-modal .btn-ghost { border: 1px solid #ffffff35; color: #fff; background: #ffffff08; }
.tutorial-modal-overlay:has(.tutorial-modal--intro) { padding: 16px; }
.tutorial-modal--intro { position: relative; width: 100%; max-width: 440px; padding: 0 28px 28px; overflow: hidden; border: 1px solid #3b2a70; border-radius: 18px; color: #eef1ff; background: #1d1240; box-shadow: 0 10px 40px #00000073; }
.tutorial-modal--intro > img { position: relative; width: calc(100% + 56px); height: auto; margin-left: -28px; border-radius: 0; object-fit: cover; aspect-ratio: auto; }
.tutorial-modal--intro .tutorial-modal-body { padding: 16px 0 0; }
.tutorial-modal--intro h1 { margin: 0 0 10px; font-size: 24px; font-weight: 700; }
.tutorial-modal--intro p { margin: 0 0 22px; color: #fff; font-size: 19.2px; font-weight: 700; line-height: 27.84px; }
.tutorial-modal--intro .btn { height: 55px; min-height: 55px; margin: 0; padding: 16px 36px; border-radius: 12px; font-size: 17.6px; font-weight: 700; }
.tutorial-modal--intro .btn + .btn { height: 49px; min-height: 49px; margin-top: 10px; padding-block: 14px; }
.tutorial-callout { position: fixed; z-index: 2007; inset: 0; padding: 0; border: 0; color: #fff; background: transparent; text-align: center; cursor: pointer; }
.tutorial-callout span { position: absolute; display: block; max-width: 360px; padding: 13px 16px; border: 1px solid #ffffff2e; border-radius: 13px; background: #19062fc9; box-shadow: 0 10px 30px #10021c70; font-size: 14px; font-weight: 800; line-height: 1.45; backdrop-filter: blur(8px); }
.tutorial-callout strong { position: absolute; left: 50%; bottom: max(18px,env(safe-area-inset-bottom)); min-width: 150px; min-height: 44px; padding: 0 18px; display: grid; place-items: center; transform: translateX(-50%); border-radius: 999px; color: #071b15; background: #18e69a; font-size: 12px; text-transform: uppercase; box-shadow: 0 7px 18px #00e5a847; }
.tutorial-callout--aim span,.tutorial-callout--bomb span,.tutorial-callout--stone span { top: 37%; right: max(18px,6vw); }
.tutorial-callout--goal span { top: 90px; left: 50%; transform: translateX(-50%); }
.tutorial-callout--cashout span { right: max(18px,6vw); bottom: 88px; }

/* Tutorial guidance is layered over the same iframe and canvas used by the real game. */
.tutorial-guide-layer { position: fixed; z-index: 2004; inset: 0; pointer-events: none; }
.tutorial-guide-layer button,.tutorial-guide-layer .tutorial-modal-overlay { pointer-events: auto; }
.tutorial-game-frame { position: absolute; inset: 0; width: 100%; height: 100dvh; }
.tutorial-spotlight-hole { position: fixed; z-index: 2006; border-radius: 50%; pointer-events: none; outline:1.5px solid #ffe56673; transition: left .78s cubic-bezier(.22,1,.36,1),top .78s cubic-bezier(.22,1,.36,1),width .78s cubic-bezier(.22,1,.36,1),height .78s cubic-bezier(.22,1,.36,1); }
.phase-aim .tutorial-spotlight-hole { left: calc(50% - 174px); top: 112px; width: 120px; height: 120px; }
.phase-bomb .tutorial-spotlight-hole { left: calc(50% + 18px); top: 145px; width: 108px; height: 108px; }
.phase-stone .tutorial-spotlight-hole { left: calc(50% - 72px); top: 188px; width: 112px; height: 112px; }
.phase-goal .tutorial-spotlight-hole { left: calc(50% - min(223px,45vw)); top: calc(100dvh - 92px); width: min(446px,90vw); height: 62px; border-radius: 18px; }
.tutorial-copy { position: fixed; z-index: 2007; top: 19%; left: 50%; width: min(268px,calc(100vw - 28px)); padding: 0 4px; transform: translateX(-50%); border: 0; color: #fff; background: none; text-shadow:0 1px 2px #000e,0 2px 12px #000a; font-size: clamp(.88rem,3.8vw,.98rem); font-weight: 700; line-height: 1.4; text-align: center; pointer-events: none; }
.tutorial-copy[data-side=right]::before { content:'';position:absolute;left:-12px;top:calc(50% - 8px);border:8px solid transparent;border-left:0;border-right:10px solid #ffe566; }
.tutorial-copy--turn { top:40%;width:min(540px,calc(100vw - 28px));font-size:clamp(1.65rem,7vw,2.5rem);font-weight:900;line-height:1.18; }
.tutorial-hand { position:fixed;z-index:2008;font-size:42px;line-height:1;pointer-events:none;filter:drop-shadow(0 3px 5px #0009);animation:tutorial-hand-bob 1.2s ease-in-out infinite; }
.tutorial-copy--aim,.tutorial-copy--bomb,.tutorial-copy--stone { top: auto; right: max(18px,6vw); bottom: 120px; left: auto; transform: none; }
.tutorial-copy--goal { top: 82px; }
.typewriter-copy { display: inline; }
.typing-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: #fff; animation: caret-blink .7s steps(1,end) infinite; }
.tutorial-guide-action { position: fixed; z-index: 2011; bottom: max(18px,env(safe-area-inset-bottom)); left: 50%; min-width: 200px; min-height: 52px; padding: 14px 28px; transform: translateX(-50%); border: 1px solid #8affd4; border-radius: 14px; color: #061c13; background: linear-gradient(180deg,#20f7aa,#00d983); box-shadow: 0 8px 22px #00d98359,0 2px 5px #0008; text-shadow: none; font-size: 16px; font-weight: 900; line-height: 1.15; touch-action: manipulation; transition: transform .16s ease,filter .16s ease,box-shadow .16s ease; }
@media (hover:hover) { .tutorial-guide-action:hover { transform: translateX(-50%) translateY(-2px); filter: brightness(1.06); box-shadow: 0 11px 26px #00d98370,0 3px 7px #0008; } }
.tutorial-guide-action:active { transform: translateX(-50%) translateY(1px) scale(.98); filter: brightness(.94); box-shadow: 0 4px 12px #00d98345,0 1px 3px #0008; }
.tutorial-guide-action:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.tutorial-modal--intro h1 span { color: #ffd166; }
.tutorial-modal--win { animation: modal-pop .5s cubic-bezier(.16,1,.3,1); }
.tutorial-reward { display: block; margin: 5px 0 12px; color: #ffd166; font-size: 48px; line-height: 1; text-shadow: 0 4px 18px #d18b2273; animation: win-fade-up .65s .1s cubic-bezier(.16,1,.3,1) both; }
.tutorial-confetti { position: fixed; z-index: 2015; inset: 0; overflow: hidden; pointer-events: none; }
.tutorial-confetti i { position: absolute; top: -20px; left: calc(8% + var(--i)*12%); width: 9px; height: 18px; background: hsl(calc(var(--i)*48deg) 88% 61%); animation: confetti-fall calc(.7s + var(--i)*.08s) ease-out both; transform: rotate(calc(var(--i)*31deg)); }

.game-shell { position: fixed; z-index: 2000; inset: 0; overflow: hidden; background: #0d081e; }
.game-frame { width: 100%; height: 100dvh; border: 0; background: #0d081e; }
.game-exit { position: fixed; z-index: 2020; top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #fff3; border-radius: 50%; color: #fff; background: #120a29aa; font-size: 25px; backdrop-filter: blur(9px); }

button,a,input { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
button:not(:disabled),a[href] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #8bdcff; outline-offset: 3px; }
::selection { color: #fff; background: #7c2ec4; }
* { scrollbar-color: #7c2ec4 #10091d; scrollbar-width: thin; }
html:has(.panel-shell), body:has(.panel-shell) { scrollbar-color: auto; scrollbar-width: auto; }
@keyframes sheetFade { from { opacity: 0; } }
@keyframes sheetBackdropIn { from { opacity: 0; backdrop-filter: blur(0); } }
@keyframes sheetUp { from { transform: translateY(60%); opacity: .4; } }
@keyframes pill-border-spin { to { --card-spin: 360deg; } }
@keyframes nav-border-spin { to { transform: rotate(360deg); } }
@keyframes live-count-pulse { 0%,100% { opacity: .9; text-shadow: 0 0 8px #ff282899,0 0 16px #ff3c3c59; transform: scale(1); } 50% { opacity: 1; text-shadow: 0 0 12px #ff3232f2,0 0 24px #ff5028a6; transform: scale(1.1); } }
@keyframes cta-pulse { 0%,100% { box-shadow: 0 10px 30px #00ff7873,0 0 0 0 #00ff7873; } 50% { box-shadow: 0 10px 30px #00ff7873,0 0 0 10px #00ff7800; } }
@keyframes install-pulse { 0%,100% { box-shadow: 0 4px 14px #7f20af70,0 0 0 0 #e89bff26; } 50% { box-shadow: 0 6px 20px #a53ad38c,0 0 0 4px #e89bff12; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(32px); filter: blur(5px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(18px); } }
@keyframes live-toast-in { from { opacity: 0; transform: translateX(calc(-100% - 16px)); } to { opacity: 1; transform: translateX(0); } }
@keyframes live-toast-out { to { transform: translateX(calc(-100% - 16px)); opacity: 0; } }
@keyframes target-pulse { to { filter: drop-shadow(0 0 15px #fff) brightness(1.18); transform: translateX(-50%) scale(1.08); } }
@keyframes bubble-remove { to { opacity: 0; transform: translateX(-50%) scale(.2); filter: blur(7px); } }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes hud-score-pop { 45% { transform: scale(1.24); color: #fff36b; } }
@keyframes gain-rise { from { opacity: 0; transform: translate(-50%,18px) scale(.75); } 55% { opacity: 1; } to { opacity: 0; transform: translate(-50%,-22px) scale(1.08); } }
@keyframes cashout-pulse { 50% { transform: translateX(-50%) scale(1.04); box-shadow: 0 10px 32px #00e5a8a6; } }
@keyframes modal-pop { from { opacity: 0; transform: scale(.86); filter: blur(7px); } }
@keyframes win-fade-up { from { opacity: 0; transform: translateY(15px); } }
@keyframes confetti-fall { to { top: 105%; transform: translateX(calc((var(--i) - 4)*9px)) rotate(calc(var(--i)*170deg)); } }
@keyframes board-shake { 25% { transform: translateX(calc(-50% - 8px)); } 75% { transform: translateX(calc(-50% + 8px)); } }
@keyframes projectile-flight { from { transform: translate(calc(var(--from-x) - 24px),calc(var(--from-y) - 24px)) scale(.9); } to { transform: translate(calc(var(--to-x) - 24px),calc(var(--to-y) - 24px)) scale(1); } }
@keyframes stone-fall { to { opacity: 0; transform: translate(-50%,260px) rotate(38deg); } }
@keyframes tutorial-hand-bob { 0%,100% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(5px,10px) rotate(-3deg); } }

@media (min-width: 700px) {
  body:has(.auth-shell) { --auth-desktop-scene: 1; }
  .auth-scene { --auth-scene: var(--auth-bg-desktop); }
  .panel-page { place-items: start center; }
  .panel--has-install-bar .panel-page { padding-top: 162px; }
}
@media (min-width:768px) {
  body:has(.panel-shell) { --panel-desktop-scene:1; }
  #app > .panel-shell:not([hidden]) { --panel-scene:var(--panel-bg-desktop); }
}
@media (max-width: 699px) {
  .install-bar { min-height: 52px; padding: 6px 10px; }
  .panel--has-install-bar .panel-topbar { top: 52px; }
  .panel--has-install-bar .panel-page { padding-top: 166px; }
  .install-bar-close { width: var(--tap-size); height: var(--tap-size); }
  .install-bar-icon { width: 37px; height: 37px; }
  .install-bar-cta { min-width: 88px; height: var(--tap-size); padding: 0 13px; }
  #app .panel-topbar { height: 68px; padding-inline: 11px; }
  .panel-topbar-logo { width: 104px; }
  .sheet[role="dialog"] { padding-inline: 20px; border-radius: 26px 26px 0 0; }
  .sheet-hero { margin-right: -20px; margin-left: -20px; border-radius: 26px 26px 0 0; }
  .bb-hud { width: min(330px,calc(100vw - 126px)); grid-template-columns: .9fr 1.2fr .9fr; }
  .bb-hud-corner { font-size: 13px; }
  .tutorial-skip-btn { top: calc(env(safe-area-inset-top) + 14px); right: 10px; }
  .tutorial-callout span { max-width: min(270px,70vw); font-size: 12px; }
  .tutorial-callout--aim span,.tutorial-callout--bomb span,.tutorial-callout--stone span { top: 18%; right: 16px; }
  .tutorial-callout--cashout span { right: 16px; bottom: 84px; }
}
/* Match the live cascade: height changes page spacing, while the later
   original base card rules retain 22px padding and full-size controls. */
@media (max-height:810px) {
  .panel-page { padding:108px 14px 100px; }
}
@media (max-height:700px) {
  .panel-page { padding:104px 12px 96px; }
}
@media (max-width: 390px) {
  .auth-page { padding-inline: 13px; }
  .tutorial-modal-body { padding: 16px 18px 20px; }
  .tutorial-guide-action { width: min(240px,calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .install-bar-cta,.typing-caret,.tutorial-cashout { animation: none !important; }
  .panel-cta { animation-duration: 3.2s; }
  .nav-circle::before { animation-duration: 3.6s; }
  .quick-value.bonus-glow { animation-duration: 4.8s; }
  .quick-value.bonus-glow::after { animation-duration: 7.2s; }
  .tutorial-hand,.target-red,.target-bomb,.target-stone { animation: none !important; }
  .sheet-overlay { animation-duration: .15s; }
  .sheet { animation: sheetFade .18s ease-out both; }
  .live-toast,.game-toast { animation-duration: .12s; }
}
