:root { --tg-safe-top: 0px; --tg-safe-bottom: 0px; --tg-viewport-height: 100vh; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Exo 2', sans-serif; font-weight: 800; user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
html, body { width: 100vw; max-width: 100%; height: var(--tg-viewport-height); overflow: hidden; background-color: #1a1c38; color: #ffffff; background: linear-gradient(180deg, #1d1844 0%, #292451 100%); margin: 0; padding: 0; }
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; cursor: pointer; -webkit-touch-callout: none !important; -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; -webkit-user-drag: none !important; touch-action: manipulation !important; }
a, button, div, span { -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; }

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.spinner-container { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 35px 20px; gap: 12px; width: 100%; }
.spinner { width: 36px; height: 36px; border: 3px solid rgba(73, 206, 254, 0.15); border-top: 3px solid #49cefe; border-right: 3px solid #4ade80; border-radius: 50%; animation: spin 0.8s linear infinite; box-shadow: 0 0 15px rgba(73, 206, 254, 0.2); }
.spinner-small { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.2); border-top: 2px solid #49cefe; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; vertical-align: middle; margin: 0 auto; }
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; margin-bottom: 25px; padding: 10px; width: 100%; }
.page-btn { background: linear-gradient(135deg, rgba(61, 70, 130, 0.8), rgba(38, 41, 87, 0.9)); border: 2px solid #6285d9; color: #ffffff; padding: 8px 18px; border-radius: 12px; cursor: pointer; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: all 0.2s ease; }
.page-btn:active { transform: scale(0.94); background: #1e70e5; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; border-color: rgba(255, 255, 255, 0.1); box-shadow: none; transform: none; }
.page-info { font-size: 13px; font-weight: 900; color: #49cefe; background: rgba(26, 28, 56, 0.8); padding: 6px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.my-rank-row { border: 2px solid #49cefe !important; background: rgba(73, 206, 254, 0.18) !important; box-shadow: 0 0 12px rgba(73, 206, 254, 0.25); }

.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; }
.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); } }

#global-loader { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.loader-bar-container { width: 80%; max-width: 300px; height: 14px; background: rgba(26, 28, 56, 0.9); border-radius: 8px; border: 2px solid #3d4682; overflow: hidden; margin-top: 15px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.6); position: relative; }
.loader-progress { width: 0%; height: 100%; background: linear-gradient(90deg, #1e70e5, #49cefe); transition: width 0.15s ease; box-shadow: 0 0 12px rgba(73,206,254,0.8); }

.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), width 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: center; 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; gap: 20px;}
.ob-step.active { display: flex; animation: fadeIn 0.4s ease-in; }
.ob-logo { width: 220px; max-width: 80%; object-fit: contain; }
.ob-image { width: 100%; max-width: 280px; object-fit: contain; }
.ob-text-area { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 10px; }
.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; font-weight: 800; padding: 0 20px; }
.ob-dots { display: flex; gap: 8px; margin-top: auto; }
.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: 100vw; max-width: 100%; overflow-x: hidden; 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; width: 100vw; max-width: 100%; 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; }

.home-tabs-container { display: flex; background: #262957; border-radius: 12px; margin-bottom: 20px; border: 2px solid #3d4682; padding: 4px; }
.htab { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 900; color: #a9b5df; cursor: pointer; border-radius: 10px; text-transform: uppercase; }
.htab.active { background: linear-gradient(90deg, #1e70e5, #49cefe); color: white; box-shadow: 0 2px 5px rgba(0,0,0,0.4); }

.cards-wrapper { display: flex; flex-direction: column; gap: 40px; max-width: 100%; margin: 0 auto; padding: 10px 20px; }
.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-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; }

.winners-btn { background: #dce3f1; color: #000000; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none; }
.winners-btn img { filter: brightness(0); width: 14px; height: 14px; }

.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: 120px; }
.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; }

.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 { display: flex; flex-direction: column; gap: 12px; }

.task-row { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(145deg, #3c4273, #2a2d52); padding: 14px 16px; border-radius: 14px; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.2s; }
.task-row:active { transform: scale(0.98); }
.task-left { display: flex; align-items: center; gap: 15px; flex: 1; }
.task-icon { width: 36px; height: 36px; border-radius: 50%; background: #1a1c38; display: flex; justify-content: center; align-items: center; overflow: hidden; flex-shrink: 0; }
.task-icon img { width: 100%; height: 100%; object-fit: cover; }
.task-info { display: flex; flex-direction: column; gap: 4px; flex: 1; padding-right: 10px; }
.task-name { font-size: 14px; font-weight: 900; text-transform: uppercase; word-break: break-word; white-space: normal; line-height: 1.3; }
.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; }
.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; }

.copy-icon { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; cursor: pointer; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0px 1px 2px rgba(0,0,0,0.8)); flex-shrink: 0; }
.copy-box-btn { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; cursor: pointer; filter: brightness(0) drop-shadow(0px 1px 1px rgba(0,0,0,0.2)); flex-shrink: 0; }

.overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 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); }

.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; transition: 0.2s; }
.popup-btn-full.theme-btn { background: linear-gradient(90deg, #1e70e5, #49cefe); border: 2px solid #b7e3ff; }
.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; }

.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: calc(22px + var(--tg-safe-bottom)); left: 50%; transform: translateX(-50%); width: 92vw; max-width: 460px; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; z-index: 100; background: #262957; border: 3px solid #3d4682; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.6); }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; opacity: 0.7; transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); background: #1a1c38; border-radius: 12px; width: 18%; height: 48px; position: relative; }
.nav-item.center-item { opacity: 1; background: linear-gradient(180deg, #ffc444, #f5911e); border: 2px solid #ffeba1; transform: translateY(-14px); height: 58px; width: 22%; border-radius: 16px; box-shadow: 0 6px 15px rgba(0,0,0,0.4); z-index: 2; }
.nav-item.active:not(.center-item) { opacity: 1; background: #3c4273; transform: translateY(-2px) scale(1.05); }
.nav-icon { width: 22px; height: 22px; object-fit: contain; margin-bottom: 2px; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5)); }
.nav-item.center-item .nav-icon { width: 28px; height: 28px; margin-bottom: 2px; }
.nav-item span { font-size: 9px; font-weight: 900; text-transform: uppercase; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); transition: color 0.2s; white-space: nowrap; }
.nav-item.active:not(.center-item) span { color: #49cefe !important; }
.nav-item.center-item span { color: #ffffff !important; font-size: 11px; }
.nav-badge { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; background: #ef4444; border: 2px solid #262957; border-radius: 50%; box-shadow: 0 0 5px rgba(239, 68, 68, 0.5); display: none; }

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

.how-it-works-list { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: #dce3f1; margin-top: 8px; line-height: 1.5; font-weight: 700; text-align: left; padding: 0 5px; }
.how-item { display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.icon-check { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; min-width: 16px !important; min-height: 16px !important; object-fit: contain; margin-top: 2px; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }

.play-stats-board { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 10px; border-top: 1px dashed rgba(255,255,255,0.1); border-bottom: 1px dashed rgba(255,255,255,0.1); margin-bottom: 20px; }
.play-stat-col { display: flex; flex-direction: column; align-items: center; flex: 1; }
.play-stat-col.center-col { border-left: 1px dashed rgba(255,255,255,0.2); border-right: 1px dashed rgba(255,255,255,0.2); }
.play-stat-label { font-size: 11px; color: #a9b5df; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; }
.play-stat-value { font-size: 20px; font-weight: 900; color: #fff; }
.play-stat-prizes { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 900; color: #fefb49; }
.play-center-img-wrapper { display: flex; justify-content: center; align-items: center; margin: 10px 0; min-height: 180px; }
.play-center-img { width: 100%; max-width: 250px; object-fit: contain; } 
.play-timer-section { text-align: center; font-size: 12px; font-weight: 900; color: #fff; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }
.play-btn-styled { background: linear-gradient(180deg, #a750f9, #8629d8); border: 3px solid #dcb3fd; border-radius: 14px; padding: 14px 60px; font-size: 20px; font-weight: 900; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-transform: uppercase; transition: transform 0.1s; box-shadow: none; }
.play-btn-styled:active { transform: translateY(3px); }
.play-btn-styled:disabled { opacity: 0.6; cursor: not-allowed; transform: none; filter: grayscale(50%); }
.play-bottom-actions { display: flex; gap: 10px; padding: 0 10px; }
.play-action-btn { flex: 1; display: flex; align-items: center; padding: 10px; border-radius: 12px; border: none; cursor: pointer; position: relative; gap: 10px; }
.play-action-btn.fun-mode { background: #dce3f1; color: #15112e; }
.play-action-btn.get-entry { background: #dce3f1; color: #15112e; border: 2px solid #49cefe; }
.play-action-btn .btn-text { display: flex; flex-direction: column; text-align: left; }
.play-action-btn .btn-sub { font-size: 9px; font-weight: 900; color: #6285d9; }
.play-action-btn .btn-main { font-size: 12px; font-weight: 900; }
.play-action-btn .strike { text-decoration: line-through; font-size: 9px; color: #ef4444; margin-left: 4px; }
.discount-badge { position: absolute; top: -8px; right: -8px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 8px; border: 1px solid #fff; transform: rotate(10deg); }

.top3-container { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin-bottom: 25px; margin-top: 45px; padding-bottom: 0; border-bottom: 3px solid rgba(255, 255, 255, 0.08); }
.top3-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: #262957; padding: 35px 5px 15px 5px; border-radius: 16px 16px 0 0; position: relative; width: 31%; border-top: 3px solid transparent; box-shadow: inset 0px 5px 10px rgba(255, 255, 255, 0.05), 0px -4px 12px rgba(0, 0, 0, 0.3); cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.top3-item:active { filter: brightness(1.2); }
.top3-item.rank-1 { height: 165px; width: 36%; z-index: 5; background: linear-gradient(180deg, rgba(255, 215, 0, 0.15), #262957 70%); border-top-color: #ffd700; box-shadow: inset 0px 5px 15px rgba(255, 215, 0, 0.15), 0px -4px 15px rgba(0, 0, 0, 0.4); }
.top3-item.rank-2 { height: 130px; background: linear-gradient(180deg, rgba(192, 192, 192, 0.12), #262957 70%); border-top-color: #c0c0c0; box-shadow: inset 0px 5px 12px rgba(192, 192, 192, 0.1), 0px -4px 10px rgba(0, 0, 0, 0.3); }
.top3-item.rank-3 { height: 115px; background: linear-gradient(180deg, rgba(205, 127, 50, 0.12), #262957 70%); border-top-color: #cd7f32; box-shadow: inset 0px 5px 12px rgba(205, 127, 50, 0.1), 0px -4px 10px rgba(0, 0, 0, 0.3); }
.top3-avatar-wrap { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; }
.top3-item.rank-1 .top3-avatar-wrap { top: -42px; }
.top3-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 3px solid #1a1c38; background: #1a1c38; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
.top3-item.rank-1 .top3-avatar { width: 65px; height: 65px; border-color: #ffd700; box-shadow: 0px 0px 18px rgba(255, 215, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.6); }
.top3-item.rank-2 .top3-avatar { border-color: #c0c0c0; }
.top3-item.rank-3 .top3-avatar { border-color: #cd7f32; }
.top3-badge { position: absolute; bottom: -8px; width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.8)); z-index: 2; }
.top3-item.rank-1 .top3-badge { width: 34px; height: 34px; bottom: -10px; }
.top3-name { font-size: 11px; font-weight: 900; color: #fff; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-bottom: 6px; padding: 0 4px; display: flex; align-items: center; justify-content: center; width: 100%; z-index: 2; }
.top3-item.rank-1 .top3-name { font-size: 13px; color: #ffd700; margin-bottom: 8px; }
.top3-score { font-size: 10px; background: rgba(26, 28, 56, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); padding: 3px 8px; border-radius: 8px; color: #a9b5df; margin-bottom: 6px; z-index: 2; }
.top3-prize { font-size: 12px; font-weight: 900; color: #4ade80; display: flex; align-items: center; justify-content: center; gap: 4px; z-index: 2; }
.top3-item.rank-1 .top3-prize { font-size: 14px; }
.top3-prize img { width: 14px; height: 14px; }
.empty-podium { visibility: hidden; pointer-events: none; }

.floating-text-airdrop { position: fixed; color: #4ade80; font-size: 24px; font-weight: 900; text-shadow: 2px 2px 0 #000; pointer-events: none; z-index: 9999; transition: transform 0.6s ease-out, opacity 0.6s ease-out; }
.partner-task-card { background: #3c4273; padding: 14px 16px; border-radius: 12px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.1); text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.partner-task-title { font-size: 12px; font-weight: 900; color: #a9b5df; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }

@keyframes hitFlash { 0% { transform: scale(0.92); filter: brightness(1.3); } 50% { transform: scale(1.08); filter: brightness(1.6); } 100% { transform: scale(1); filter: none; } }
.hit-anim { animation: hitFlash 0.15s ease-out forwards !important; }

.floating-monster { position: relative; z-index: 2; animation: floatAirdrop 3.5s ease-in-out infinite; display: flex; justify-content: center; align-items: flex-end; }
@keyframes floatAirdrop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.monster-platform { width: 170px; height: 22px; background: radial-gradient(ellipse at center, rgba(73, 206, 254, 0.7) 0%, rgba(30, 112, 229, 0.3) 50%, transparent 80%); border-radius: 50%; margin-top: -6px; filter: blur(3px); box-shadow: 0 4px 12px rgba(73, 206, 254, 0.4); z-index: 1; transition: all 0.15s ease; }
.timer-display { color: #ef4444 !important; }
.payment-tabs { display: flex; flex-direction: row; width: 100%; background: #1a1c38; border: 2px solid #3d4682; padding: 4px; border-radius: 14px; gap: 4px; margin-bottom: 15px; }
.ptab { flex: 1; display: flex; justify-content: center; align-items: center; padding: 10px; border-radius: 10px; color: #a9b5df; font-weight: 900; cursor: pointer; transition: all 0.2s ease; font-size: 13px; text-transform: uppercase; white-space: nowrap; letter-spacing: 1px; }
.ptab.active { background: linear-gradient(90deg, #1e70e5, #49cefe); color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.4); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; margin-top: 15px; }
.offer-card { background: #262957; border: 2px solid #3d4682; border-radius: 16px; padding: 15px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.offer-card img { width: 100%; max-height: 90px; object-fit: contain; margin-bottom: 10px; }
.offer-title { font-size: 13px; font-weight: 900; color: #fff; margin-bottom: 5px; }
.offer-bonus { font-size: 11px; font-weight: 900; color: #4ade80; margin-bottom: 10px; background: rgba(74, 222, 128, 0.15); padding: 2px 8px; border-radius: 8px; }
.buy-offer-btn { width: 100%; background: linear-gradient(90deg, #1e70e5, #49cefe); border: none; padding: 8px; border-radius: 10px; color: white; font-weight: 900; font-size: 12px; cursor: pointer; transition: 0.2s; }
.buy-offer-btn:active { transform: scale(0.95); }

.custom-buy-bar { background: linear-gradient(90deg, #1e70e5, #8629d8); border: 2px solid #b7e3ff; border-radius: 14px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; margin-top: 10px; margin-bottom: 25px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.4); transition: transform 0.1s; }
.custom-buy-bar:active { transform: scale(0.98); }
.custom-buy-bar-text { font-size: 14px; font-weight: 900; color: #fff; text-transform: uppercase; }
.custom-buy-bar-icon { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; max-width: 24px !important; max-height: 24px !important; flex-shrink: 0; object-fit: contain; filter: brightness(0) invert(1); }

.waiting-room-card { background: linear-gradient(135deg, #202342 0%, #2a2d52 100%); border: 2px solid #3d4682; border-radius: 20px; padding: 24px 18px; text-align: center; margin-top: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.participant-box { background: #1a1c38; border: 2px solid #4a63a3; border-radius: 16px; padding: 20px; margin: 20px 0; }
.participant-number { font-size: 38px; font-weight: 900; color: #49cefe; text-shadow: 0 0 10px rgba(73, 206, 254, 0.5); }
.participant-label { font-size: 13px; color: #a9b5df; text-transform: uppercase; margin-top: 5px; }
.waiting-notice-text { font-size: 14px; color: #ffe522; font-weight: 800; margin-bottom: 25px; letter-spacing: 0.5px; }
.waiting-actions-grid { display: flex; gap: 12px; width: 100%; }
.waiting-btn { flex: 1; padding: 14px 10px; border-radius: 12px; font-size: 14px; font-weight: 900; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; border: none; }
.waiting-btn.play-locked { background: #2a2d52; color: #8a96be; border: 2px solid #3d4682; cursor: not-allowed; opacity: 0.7; }
.waiting-btn.practice-btn { background: linear-gradient(90deg, #1e70e5, #49cefe); color: #ffffff; border: 2px solid #b7e3ff; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* =========================================
   CLEAN BATTLE ARENA STYLES (NO GLOW/BLUR)
   ========================================= */

.arena-offers-row { 
    display: flex; justify-content: space-around; align-items: flex-start; 
    width: 100%; z-index: 10;
}

.arena-offer-item { 
    display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.2s;
}

.arena-offer-item:active { transform: scale(0.95); }

.ao-icon { 
    width: 44px; height: 44px; background: #1a1c38; border: 2px solid #ffeba1; 
    border-radius: 12px; display: flex; justify-content: center; align-items: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: border-color 0.2s;
}

.arena-offer-item:hover .ao-icon { border-color: #ffc444; }

.ao-icon img { width: 24px; height: 24px; object-fit: contain; }
.ao-name { font-size: 10px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }

.arena-main-view { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    width: 100%; margin-top: 15px; 
}
.ship-showcase-container { 
    display: flex; align-items: center; justify-content: space-between; 
    width: 100%; max-width: 320px; margin-bottom: 15px;
}
.nav-arrow { 
    width: 44px; height: 44px; background: #3d4682; border: 2px solid #6285d9; 
    border-radius: 50%; display: flex; justify-content: center; align-items: center; 
    cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.4); transition: 0.1s;
}
.nav-arrow:active { transform: scale(0.9); background: #4a63a3; }
.nav-arrow img { width: 16px; margin-right: 2px; }
.nav-arrow.right { transform: scaleX(-1); }
.nav-arrow.right:active { transform: scaleX(-1) scale(0.9); }

.ship-display-pod { 
    width: 150px; height: 150px; position: relative; 
    display: flex; justify-content: center; align-items: center;
}
#battle-ship-img { 
    max-width: 140px; max-height: 140px; object-fit: contain; transition: transform 0.3s;
}
.ship-lock-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none;
    background: #1a1c38; padding: 8px 16px; border-radius: 10px; color: #ef4444;
    font-size: 12px; font-weight: 900; letter-spacing: 1px; border: 2px solid #ef4444; 
    align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.ship-stats-panel { 
    width: 90%; max-width: 320px; background: #262957; border: 2px solid #3d4682; 
    border-radius: 18px; padding: 15px; margin-bottom: 20px; box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.ship-name-solid { 
    font-size: 18px; font-weight: 900; color: #fff; text-align: center; 
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px dashed rgba(255,255,255,0.1); 
    text-transform: uppercase; letter-spacing: 2px;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-box { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; }
.stat-box.dmg { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
.stat-box.hp { background: rgba(74, 222, 128, 0.15); border: 1px solid rgba(74, 222, 128, 0.3); }
.stat-icon { width: 26px; height: 26px; background: #1a1c38; border-radius: 6px; display: flex; justify-content: center; align-items: center; }
.stat-icon img { width: 14px; }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 9px; color: #a9b5df; font-weight: 900; text-transform: uppercase; }
.stat-val { font-size: 14px; font-weight: 900; }
.stat-box.dmg .stat-val { color: #ef4444; }
.stat-box.hp .stat-val { color: #4ade80; }

.battle-action-wrapper { width: 100%; display: flex; justify-content: center; }
.solid-play-btn { 
    width: 100%; max-width: 260px; background: linear-gradient(90deg, #1e70e5, #49cefe); 
    border: 2px solid #b7e3ff; padding: 15px 20px; border-radius: 14px; font-size: 16px; 
    font-weight: 900; color: #fff; display: flex; align-items: center; justify-content: center; 
    gap: 8px; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.1s;
}
.solid-play-btn:active { transform: translateY(3px); box-shadow: none; }

/* Transparent Stats Panel for Battle Card */
.ship-stats-panel.transparent-stats {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 10px !important;
    margin-bottom: 0 !important;
}

.ship-stats-panel.transparent-stats .stat-box {
    background: rgba(26, 28, 56, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Update Play Button transition inside Battle Card */
#battle-play-btn {
    border: 3px solid transparent !important;
}
