img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; pointer-events: none; }
img.close-btn, img.back-btn, img.arrow-icon, img.copy-icon, img.copy-box-btn { pointer-events: auto; }
.next_btn { border-radius: 12px; border: 3px solid #b7e3ff; background: linear-gradient(0deg, #1e70e5 -7.28%, #49cefe 113.16%); box-shadow: 0 4px 15px rgba(0,0,0,0.4); color: white; padding: 12px 60px; font-size: 18px; font-weight: 900; cursor: pointer; text-transform: uppercase; margin-bottom: 25px; transition: transform 0.1s; }
.next_btn:active { transform: translateY(3px); }
.next_btn:disabled { opacity: 0.7; cursor: not-allowed; }
html, body { width: 100%; height: var(--tg-viewport-height); overflow: hidden; background-color: #1a1c38; color: #ffffff; background: linear-gradient(180deg, #1d1844 0%, #292451 100%); }
.global-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.stars-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8) 1px, transparent 1px), radial-gradient(circle at 90% 40%, rgba(255,255,255,0.6) 1.5px, transparent 1.5px), radial-gradient(circle at 50% 80%, rgba(255,255,255,0.9) 1px, transparent 1px), radial-gradient(circle at 75% 15%, rgba(255,255,255,0.5) 2px, transparent 2px); background-size: 150px 150px; z-index: 0; pointer-events: none; animation: twinkle1 4s infinite alternate ease-in-out; }
.stars-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 25% 60%, rgba(255,255,255,1) 1.5px, transparent 1.5px), radial-gradient(circle at 80% 85%, rgba(255,255,255,0.8) 1px, transparent 1px), radial-gradient(circle at 40% 10%, rgba(255,255,255,0.9) 2px, transparent 2px); background-size: 200px 200px; animation: twinkle2 3s infinite alternate-reverse ease-in-out; }
@keyframes twinkle1 { 0% { opacity: 0.6; } 100% { opacity: 1; } }
@keyframes twinkle2 { 0% { opacity: 0.4; } 100% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bg-planet-top { position: absolute; top: -40px; left: -40px; width: 140px; animation: float 6s ease-in-out infinite; pointer-events: none; z-index: 1; transition: top 1s cubic-bezier(0.25, 0.8, 0.25, 1), left 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.bg-bomb-bottom { position: absolute; bottom: -15px; right: -15px; width: 80px; animation: float 5s ease-in-out infinite alternate; pointer-events: none; opacity: 0.9; z-index: 1;}
.img-placeholder { background-color: transparent; display: inline-block; overflow: hidden; }
.onboarding-screen { display: flex; flex-direction: column; width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 900; background: transparent; }
.ob-step { display: none; flex-direction: column; align-items: center; justify-content: space-between; width: 100%; height: 100%; padding: calc(40px + var(--tg-safe-top)) 20px calc(40px + var(--tg-safe-bottom)) 20px; text-align: center; position: relative; z-index: 10; }
.ob-step.active { display: flex; animation: fadeIn 0.4s ease-in; }
.ob-logo { width: 220px; max-width: 80%; object-fit: contain; margin-top: 10px; }
.ob-image { width: 100%; max-width: 320px; object-fit: contain; flex: 1; margin: 20px 0; }
.ob-text-area { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 20px; }
.ob-title { font-size: 22px; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.ob-subtitle { font-size: 13px; color: #a9b5df; margin-bottom: 25px; font-weight: 800; padding: 0 20px; }
.ob-dots { display: flex; gap: 8px; margin-bottom: 10px; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.ob-dot.active { background: #ffffff; box-shadow: 0 0 5px #fff; }
.app-container { display: none; flex-direction: column; height: 100%; width: 100%; position: absolute; top: 0; left: 0; z-index: 10; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: calc(30px + var(--tg-safe-top)) 16px 12px 16px; position: fixed; top: 0; left: 0; width: 100%; z-index: 90; background: rgba(26, 28, 56, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.coin-group { display: flex; gap: 24px; padding-left: 5px; }
.coin-pill { position: relative; display: flex; align-items: center; justify-content: center; background-color: #20244c; border: 2px solid #4a63a3; border-radius: 20px; height: 28px; min-width: 80px; padding-left: 18px; padding-right: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.3); cursor: pointer; }
.coin-pill img.coin-main { position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; object-fit: contain; z-index: 2; pointer-events: none;}
.coin-pill img.coin-plus { position: absolute; left: 8px; bottom: -4px; width: 16px; height: 16px; object-fit: contain; z-index: 3; pointer-events: none;}
.coin-pill span { font-size: 13px; font-weight: 900; color: white; margin-left: 5px; }
.profile-btn { display: flex; flex-direction: column; align-items: center; position: relative; cursor: pointer; }
.profile-img-wrap { width: 44px; height: 44px; border: 2px solid #6285d9; border-radius: 12px; padding: 2px; background-color: #1b1c3a; }
.profile-img-wrap img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.profile-badge { background-color: #6285d9; color: #fff; font-size: 10px; font-weight: 900; padding: 3px 10px; border-radius: 12px; position: absolute; bottom: -10px; text-transform: uppercase; border: 1px solid #1b1c3a; letter-spacing: 0.5px; z-index: 5; }
.scrollable-content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: calc(100px + var(--tg-safe-top)) 16px calc(130px + var(--tg-safe-bottom)) 16px; position: relative; z-index: 10; }
.page-content { display: none; animation: fadeIn 0.3s ease-in; }
.page-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.header-section { text-align: center; margin-bottom: 25px; display: flex; flex-direction: column; align-items: center; }
.header-logo { width: 160px; max-width: 100%; object-fit: contain; margin-bottom: 8px; } 
.cards-wrapper { display: flex; flex-direction: column; gap: 40px; max-width: 500px; margin: 0 auto; padding: 10px 12px; }
.game-card-container { position: relative; width: 100%; border-radius: 28px; }
.game-card-container::before { content: ''; position: absolute; top: 10px; left: -8px; right: -8px; bottom: -8px; border-radius: 28px; z-index: 1; box-shadow: none; }
.game-card-container.purple-accent::before { background: #ab56ff; }
.game-card-container.yellow-accent::before { background: #ffbe30; }
.game-card-shell { position: relative; background: #566487; border-radius: 24px; padding: 6px 6px 26px 6px; z-index: 2; border-top: 2px solid #7383a8; border-bottom: 2px solid #3d4a6a; }
.info-btn { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; background: #ff4b6b; border: 2px solid #fff; color: white; font-family: serif; font-style: italic; font-weight: bold; font-size: 14px; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 10; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.4); }
.game-card-inner { background: #202342; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.game-card-header { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.gc-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; color: #fff; text-transform: uppercase; }
.gc-title span { color: #88c0d0; font-size: 16px; }
.gc-stats { display: flex; gap: 16px; font-size: 14px; font-weight: 900; }
.gc-stat { display: flex; align-items: center; gap: 4px; }
.gc-stat.gold { color: #f5d742; }
.gc-stat.green { color: #4ade80; }
.gc-stat img { width: 18px; height: 18px; object-fit: contain; }
.gc-banner { width: 100%; height: 95px; object-fit: cover; display: block; border-top: 1px solid rgba(255,255,255,0.1); }
.tech-dots { position: absolute; bottom: 10px; display: flex; gap: 6px; }
.tech-dots.left { left: 24px; }
.tech-dots.right { right: 24px; }
.tech-dots span { width: 8px; height: 4px; background: #3b4661; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(0,0,0,0.4); }
.gc-enter-btn { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); padding: 10px 45px; font-size: 18px; font-weight: 900; color: #fff; text-transform: uppercase; border-radius: 14px; z-index: 10; cursor: pointer; border: 3px solid transparent; transition: transform 0.1s; }
.gc-enter-btn:active { transform: translate(-50%, 2px); }
.btn-purple { background: linear-gradient(180deg, #a750f9, #8629d8); border-color: #dcb3fd; box-shadow: none; }
.btn-yellow { background: linear-gradient(180deg, #ffc444, #f5911e); border-color: #ffeba1; box-shadow: none; }
.prize-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.back-btn { width: 24px; height: 24px; cursor: pointer; object-fit: contain; }
.prize-title { font-size: 24px; text-transform: uppercase; font-weight: 900; }
.prize-selector { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 20px; }
.prize-selector-btn { background: #3d4682; border: 2px solid #6285d9; padding: 8px 30px; border-radius: 12px; font-size: 14px; text-transform: uppercase; min-width: 140px; text-align: center; }
.arrow-icon { width: 16px; height: 16px; object-fit: contain; cursor: pointer; }
.prize-pool-info { display: flex; justify-content: space-between; align-items: center; background: transparent; padding: 10px 0; margin-bottom: 15px; }
.pool-text { font-size: 12px; color: #a9b5df; margin-bottom: 5px; text-transform: uppercase; }
.pool-amounts { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; }
.pool-amounts img { width: 18px; height: 18px; object-fit: contain; }
.winners-btn { background: #dce3f1; color: #15112e; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 900; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.leaderboard { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px;}
.lb-row { display: flex; align-items: center; justify-content: space-between; background: #3c4273; padding: 12px 15px; border-radius: 12px; cursor: pointer; transition: 0.2s;}
.lb-row:active { transform: scale(0.98); }
.lb-left { display: flex; align-items: center; gap: 12px; flex: 1; overflow: hidden;}
.lb-rank { width: 30px; height: 30px; object-fit: contain; display: flex; justify-content: center; align-items: center; font-size: 16px; font-weight: 900; flex-shrink: 0;}
.lb-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.lb-score { background: #1a1c38; padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.lb-rewards { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; }
.reward-col { display: flex; flex-direction: column; align-items: center; }
.reward-col img { width: 18px; height: 18px; margin-bottom: 2px; object-fit: contain; }
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 15px; }
.page-btn { background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); color: #fff; padding: 8px 14px; border-radius: 12px; cursor: pointer; font-weight: 700; transition: 0.2s; }
.page-btn:active { background: rgba(255,255,255,0.2); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.page-info { font-size: 14px; font-weight: 700; color: #a9b5df; }
.my-rank-row { border: 2px solid #49cefe !important; background: rgba(73, 206, 254, 0.15) !important; }
.spinner-container { display: flex; justify-content: center; align-items: center; padding: 30px; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #49cefe; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.task-hero { text-align: center; margin-bottom: 20px; }
.task-hero img { width: 160px; max-width: 100%; object-fit: contain; margin-bottom: 10px; }
.task-hero-text { font-size: 16px; font-weight: 900; line-height: 1.4; }
.text-cyan { color: #49cefe; }
.text-green { color: #4ade80; }
.task-list-title { font-size: 18px; margin-bottom: 15px; text-transform: uppercase; }
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-row { display: flex; align-items: center; justify-content: space-between; background: #3c4273; padding: 14px 16px; border-radius: 12px; cursor: pointer; }
.task-left { display: flex; align-items: center; gap: 15px; }
.task-icon { width: 36px; height: 36px; border-radius: 50%; background: #1a1c38; display: flex; justify-content: center; align-items: center; overflow: hidden;}
.task-icon img { width: 100%; height: 100%; object-fit: cover; }
.task-info { display: flex; flex-direction: column; gap: 4px; }
.task-name { font-size: 14px; font-weight: 900; text-transform: uppercase; }
.task-reward { display: flex; align-items: center; gap: 4px; color: #4ade80; font-size: 13px; }
.task-reward img { width: 14px; height: 14px; }
.task-right { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #a9b5df; }
.play-arrow { color: #ffffff; font-size: 18px; }
.claim-btn-small { background: rgba(46,204,113,0.15); color: #27ae60; border: none; padding: 6px 12px; border-radius: 8px; font-weight: 900; font-size: 12px; cursor: pointer;}
.claim-btn-small.start { background: linear-gradient(90deg, #1e70e5, #49cefe); color: white; }
.invite-stats-container { display: flex; gap: 12px; margin-bottom: 25px; }
.invite-stat-box { flex: 1; background: #3c4273; padding: 16px; border-radius: 16px; text-align: center; border: 2px solid #6285d9; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.invite-stat-label { font-size: 12px; color: #a9b5df; margin-bottom: 8px; text-transform: uppercase; font-weight: 800; }
.invite-stat-value { font-size: 22px; font-weight: 900; color: #49cefe; }
.invite-stat-value.gold { color: #ffe522; display: flex; justify-content: center; align-items: center; gap: 6px; }
.invite-stat-value.gold img { width: 22px; height: 22px; object-fit: contain; }
.invite-link-wrapper { background: #1a1c38; padding: 18px; border-radius: 16px; border: 2px solid #4a63a3; margin-bottom: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.invite-link-label { font-size: 13px; color: #a9b5df; margin-bottom: 12px; text-transform: uppercase; font-weight: 900; }
.invite-link-inner { display: flex; justify-content: space-between; align-items: center; background: #262957; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.invite-link-text { font-size: 12px; color: #fff; word-break: break-all; padding-right: 15px; opacity: 0.9; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 9999; display: none; justify-content: center; align-items: center; }
.overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.popup-box { width: 90%; max-width: 380px; background: #3c4273; border-radius: 20px; padding: 20px 16px; position: relative; border: 2px solid #6285d9; display: flex; flex-direction: column; gap: 15px; }
.popup-header-ribbon { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); background: #dce3f1; color: #15112e; padding: 10px 40px; border-radius: 20px; font-size: 18px; font-weight: 900; border: 3px solid #6285d9; white-space: nowrap; }
.close-btn { position: absolute; top: -15px; right: -10px; width: 36px; height: 36px; cursor: pointer; z-index: 10; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }
.popup-profile-banner { background-color: #1d1844; border-radius: 14px; padding: 20px; margin-top: 15px; display: flex; align-items: center; gap: 15px; position: relative; border: 1px solid rgba(255,255,255,0.1); }
.popup-profile-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); border-radius: 14px; z-index: 1; }
.popup-avatar { width: 55px; height: 55px; border-radius: 12px; border: 2px solid #4a63a3; background: #1b1c3a; padding: 2px; position: relative; z-index: 2; }
.popup-avatar img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.popup-user-info { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 2; }
.popup-name { font-size: 18px; font-weight: 900; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.popup-code { font-size: 11px; color: #dce3f1; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.copy-icon { width: 14px; height: 14px; cursor: pointer; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0px 1px 2px rgba(0,0,0,0.8)); }
.popup-block { background: #262957; border-radius: 14px; padding: 16px; position: relative; margin-top: 10px; }
.block-label { position: absolute; top: -12px; left: 16px; background: #262957; padding: 4px 12px; border-radius: 8px; font-size: 10px; text-transform: uppercase; color: #fff; }
.reward-paid { text-align: center; font-size: 12px; font-weight: 900; margin: 5px 0; text-transform: uppercase; }
.reward-paid span { color: #fefb49; }
.recent-reward-flex { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.reward-pill { background: #1a1c38; display: flex; align-items: center; padding: 4px 12px 4px 4px; border-radius: 20px; gap: 8px; }
.reward-pill img { width: 24px; height: 24px; }
.min-balance { text-align: right; font-size: 10px; color: #a9b5df; }
.min-balance span { display: block; font-size: 14px; color: #fefb49; text-decoration: underline; margin-top: 2px; }
.popup-btn-full { width: 100%; background: #3d4682; border: none; padding: 12px; border-radius: 10px; color: white; font-weight: 900; font-size: 12px; margin-top: 15px; cursor: pointer; display: flex; justify-content: center; gap: 8px; }
.wallet-box { background: #dce3f1; padding: 12px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.wallet-address { font-size: 10px; color: #6b7280; display: flex; flex-direction: column; }
.wallet-address span { font-size: 14px; color: #111827; font-weight: 900; margin-top: 2px; }
.disconnect-text { color: #ef4444; font-size: 12px; font-weight: 900; cursor: pointer; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 14px; align-items: center; color: #dce3f1; }
.summary-row:last-child { border-bottom: none; }
.switch { position: relative; display: inline-block; width: 48px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #292d5c; transition: .3s; border-radius: 24px; border: 2px solid #465992; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; top: 2px; background-color: #a9b5df; transition: .3s; border-radius: 50%; }
.switch input:checked + .slider { background-color: #49cefe; border-color: #1e70e5; }
.switch input:checked + .slider:before { transform: translateX(24px); background-color: #fff; box-shadow: 0 0 5px rgba(255,255,255,0.8); }
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-around; align-items: flex-end; padding-top: 15px; padding-left: 10px; padding-right: 10px; padding-bottom: calc(24px + var(--tg-safe-bottom)); z-index: 100; background: linear-gradient(to top, rgba(21,17,46,1) 40%, rgba(21,17,46,0) 100%); }
.nav-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; opacity: 0.5; transition: 0.2s; }
.nav-item.active { opacity: 1; transform: translateY(-4px) scale(1.15); } 
.nav-icon { width: 34px; height: 34px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.8)); }
.nav-item span { font-size: 11px; font-weight: 900; text-transform: uppercase; text-shadow: 1px 1px 4px rgba(0,0,0,0.9); transition: color 0.2s; }
.nav-item.active span { color: #49cefe; }
.converter-flex { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; gap: 10px; }
.conv-input-box { background: #1a1c38; border: 2px solid #3d4682; border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; flex: 1; }
.conv-input-box input { background: transparent; border: none; color: #fff; font-size: 16px; font-weight: 900; width: 100%; outline: none; }
.how-it-works-list { display: flex; flex-direction: column; gap: 12px; font-size: 12px; color: #dce3f1; margin-top: 5px; line-height: 1.4; font-weight: 700; }
.how-item { display: flex; gap: 8px; align-items: flex-start; }
.icon-check { width: 14px; height: 14px; object-fit: contain; margin-top: 2px; flex-shrink: 0; }
.copy-box-wrapper { background: #dce3f1; border-radius: 12px; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border: 2px solid #b7e3ff; }
.copy-box-left { display: flex; flex-direction: column; flex: 1; overflow: hidden; padding-right: 10px; }
.copy-box-label { font-size: 10px; font-weight: 900; color: #6285d9; text-transform: uppercase; margin-bottom: 2px;}
.copy-box-value { font-size: 14px; font-weight: 900; color: #15112e; word-break: break-all;}
.copy-box-btn { width: 22px; height: 22px; cursor: pointer; filter: brightness(0) drop-shadow(0px 1px 1px rgba(0,0,0,0.2)); flex-shrink: 0; }
