
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #04081a;
    color: #cbd5e1;
    overflow-x: hidden;
}

html { overflow-y: scroll; scroll-behavior: smooth; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(4, 8, 26, 0.98) 0%, #04081a 100%);
    z-index: -2;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #04081a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1e3a5f, #0f172a);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }

.glass-panel {
    background: rgba(10, 18, 40, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card {
    background: linear-gradient(135deg,
        rgba(22, 36, 71, 0.55) 0%,
        rgba(10, 18, 40, 0.80) 100%
    );
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    background: linear-gradient(135deg,
        rgba(22, 36, 71, 0.65) 0%,
        rgba(10, 18, 40, 0.90) 100%
    );
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow:
        0 20px 50px rgba(14, 165, 233, 0.14),
        0 0 0 1px rgba(56,189,248,0.08),
        inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(-3px);
}

.card-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(56,189,248,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.card-glow:hover::after { opacity: 1; }

.nav-pill-active {
    background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(56,189,248,0.06));
    border: 1px solid rgba(56,189,248,0.2);
    box-shadow: 0 0 16px rgba(56,189,248,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

@keyframes custom-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll-custom {
    animation: custom-scroll 28s linear infinite;
    will-change: transform;
}

.ticker-container:hover .ticker-content,
.ticker-container:active .ticker-content,
.ticker-container:focus-within .ticker-content {
    animation-play-state: paused !important;
}

.ticker-fade {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(56,189,248,0.2); }
    50%       { box-shadow: 0 0 35px rgba(56,189,248,0.4); }
}
@keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 400% center; }
}
@keyframes allbase-hue {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes aurora {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(30px,-20px) scale(1.05); }
    100% { transform: translate(0,0) scale(1); }
}

.animate-fade-up   { animation: fade-up 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.animate-fade-in   { animation: fade-in 0.4s ease both; }
.animate-float     { animation: float 4s ease-in-out infinite; }
.animate-glow      { animation: glow-pulse 2.5s ease-in-out infinite; }
.animate-aurora    { animation: aurora 12s ease-in-out infinite; }

.text-shimmer {
    background: linear-gradient(90deg,
        #38bdf8 0%,
        #bae6fd 14%,
        #f0f9ff 27%,
        #fdf4ff 37%,
        #f472b6 50%,
        #fdf4ff 63%,
        #f0f9ff 73%,
        #bae6fd 86%,
        #38bdf8 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: allbase-hue 5.6s linear infinite;
}

.badge-live {
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(56,189,248,0.05));
    border: 1px solid rgba(56,189,248,0.25);
    backdrop-filter: blur(8px);
}

.stat-card {
    background: linear-gradient(135deg, rgba(22,36,71,0.6), rgba(10,18,40,0.8));
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: rgba(56,189,248,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14,165,233,0.1);
}

.rule-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.5), rgba(10,18,40,0.7));
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.rule-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(56,189,248,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rule-card:hover::before { opacity: 1; }
.rule-card:hover {
    border-color: rgba(56,189,248,0.15);
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(10,18,40,0.85));
}

.faq-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.6), rgba(10,18,40,0.75));
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
.faq-card:hover {
    border-color: rgba(56,189,248,0.2);
    box-shadow: 0 4px 20px rgba(14,165,233,0.08);
}

@media (max-width: 767px) {
    .glass-panel {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 18, 40, 0.96);
    }
    .glass-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: linear-gradient(135deg, rgba(22,36,71,0.8), rgba(10,18,40,0.95));
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }
    .glass-card:hover {
        transform: none;
    }
    .animate-aurora { animation: none; }
}

.optimize-render {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.btn-join {
    position: relative;
    overflow: hidden;
}
.btn-join::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.btn-join:hover::after { left: 140%; }