html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-tap-highlight-color: transparent;
}

/* Better Experience */
::selection {
    background: rgba(245, 158, 11, 0.45);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
::-moz-selection {
    background: rgba(245, 158, 11, 0.45);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #011710;
    opacity: 0;
    scrollbar-width: none;
    transition: opacity 0.5s ease;
    -ms-overflow-style: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #fef08a;
}

body.loaded {
    opacity: 1;
}

/* Background */
.mesh-bg {
    position: fixed;
    inset: -5%;
    z-index: 0;
    background: 
        radial-gradient(at 0% 0%, hsla(160,85%,5%,1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(158,68%,14%,1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(43,89%,22%,0.25) 0, transparent 50%),
        radial-gradient(at 0% 50%, hsla(165,75%,9%,1) 0, transparent 50%),
        radial-gradient(at 50% 50%, hsla(158,60%,16%,1) 0, transparent 50%),
        radial-gradient(at 100% 50%, hsla(160,85%,5%,1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(43,89%,22%,0.2) 0, transparent 50%),
        radial-gradient(at 50% 100%, hsla(158,68%,12%,1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(160,85%,5%,1) 0, transparent 50%);
    background-size: 100% 100%;
    will-change: transform;
    animation: meshTransform 24s ease-in-out infinite alternate;
}

@keyframes meshTransform {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.04) translate(-1%, 1%); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    -webkit-filter: blur(90px);
    z-index: 1;
    opacity: 0.45;
    animation: orbFloat 16s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; background: #f59e0b; top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 280px; height: 280px; background: #059669; top: 38%; right: -90px; animation-delay: -5s; }
.orb-3 { width: 220px; height: 220px; background: #d97706; bottom: -60px; left: 25%; animation-delay: -10s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(35px, -35px) scale(1.1); }
    66% { transform: translate(-25px, 25px) scale(0.9); }
}

/* Particles */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(251, 191, 36, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: particleRise 12s linear infinite backwards;
}
@keyframes particleRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    15% { opacity: 0.9; transform: translateY(85vh) scale(1.2); }
    85% { opacity: 0.9; }
    100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

/* Game Cards */
.glass {
    background: rgba(4, 40, 31, 0.60);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(254, 240, 138, 0.15);
}

.glass-strong {
    background: rgba(4, 47, 36, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(254, 240, 138, 0.25);
}

/* Banner */
.banner-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.35);
    aspect-ratio: 16 / 7;
    min-height: 160px;
    max-height: 220px;
}
.banner-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(1, 23, 16, 0.85) 100%);
    pointer-events: none;
}
.banner-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(254, 240, 138, 0.25) 50%, transparent 60%);
    animation: bannerShine 5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes bannerShine {
    0%, 70%, 100% { transform: translateX(-100%); opacity: 0; }
    75% { opacity: 1; }
    90% { transform: translateX(100%); opacity: 0; }
}

/* Typography */
.title-text {
    font-family: 'Cinzel', 'Poppins', serif;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 25%, #f59e0b 50%, #fef08a 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.3));
}
@keyframes titleShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Download Card */
.dl-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    will-change: transform;
}
.dl-card:hover {
    transform: translateY(-4px) scale(1.015);
}
.dl-card:active {
    transform: translateY(-1px) scale(0.985);
}

.icon-pulse {
    position: relative;
}
.icon-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px solid #f59e0b;
    opacity: 0;
    animation: iconPulse 2s ease-out infinite;
}
@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #b45309 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(254, 240, 138, 0.5);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #f59e0b 40%, #d97706 100%);
}
.btn-primary:active {
    transform: translateY(0) scale(0.96);
}

.btn-share {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    transition: all 0.3s ease;
}
.btn-share:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(254, 240, 138, 0.6);
    transform: scale(1.08);
}
.btn-share:active {
    transform: scale(0.92);
}

.badge-new {
    background: linear-gradient(135deg, rgba(4, 47, 36, 0.95), rgba(245, 158, 11, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.6);
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Share Overlay */
.sheet-overlay {
    will-change: opacity;
    transition: opacity 0.2s ease-out;
}
.sheet-overlay.hidden { opacity: 0; pointer-events: none; }
.sheet-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }

.bottom-sheet {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bottom-sheet.closed { transform: translateY(100%) translateZ(0); }
.bottom-sheet.open { transform: translateY(0%) translateZ(0); }

.social-btn {
    background: rgba(4, 47, 36, 0.6);
    will-change: transform;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.social-btn:hover {
    transform: translateY(-2px);
}
.social-btn:active {
    transform: scale(0.95);
}

.toast {
    animation: toastIn 0.4s ease-out forwards, toastOut 0.4s ease-in 2.6s forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 30px) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translate(-50%, 0) scale(1); }
    to { opacity: 0; transform: translate(-50%, 30px) scale(0.9); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.5s; }
.d5 { animation-delay: 0.65s; }

/* Telegram Footer */
.telegram-footer {
    text-decoration: none;
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}
.telegram-footer:hover {
    transform: translateY(-3px);
}
.telegram-footer-content {
    background: rgba(4, 47, 36, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(254, 240, 138, 0.2);
}
.telegram-footer:hover .telegram-footer-content {
    border-color: rgba(245, 158, 11, 0.7);
    background: rgba(4, 55, 42, 0.8);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25), 0 0 25px rgba(16, 185, 129, 0.2);
}
.telegram-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
}
.telegram-text {
    flex: 1;
    min-width: 0;
}
.telegram-label {
    font-size: 13px;
    font-weight: 800;
    color: #fef08a;
    display: block;
    letter-spacing: 0.3px;
}
.telegram-channel {
    font-size: 11px;
    font-weight: 500;
    color: #a7f3d0;
    display: block;
    margin-top: 1px;
}
.telegram-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #022c22;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.telegram-footer:hover .telegram-arrow {
    transform: translateX(4px);
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
}

/* Marquee */
.ticker-marquee-wrap {
    display: flex;
    overflow: hidden;
    width: 100%;
}
.ticker-marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    font-size: 0.75rem;
    color: rgba(254, 240, 138, 0.95);
    font-weight: 600;
    white-space: nowrap;
    animation: marqueeScroll 35s linear infinite;
    will-change: transform;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}