@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@500;700;900&display=swap');

:root {
    --bg-main: #0F172A;
    --navy: #1E295E;
    --navy-light: #2D3A75;
    --white: #FEFEFE;
    --dim: #94A3B8;
    --border: rgba(254, 254, 254, 0.08);
    --glass: rgba(254, 254, 254, 0.03);
    --primary: #38BDF8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-night { background-color: #0F172A; }

/* Minimalist Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 0.75rem 5%;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header.scrolled .logo img {
    max-height: 55px !important;
    transition: max-height 0.4s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: flex-end;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: flex-start;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    background: rgba(11, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 9999;
}

.mobile-nav.active {
    display: flex;
    animation: slideDownMenu 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem 5% !important;
        background: transparent !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000 !important;
    }
    .header-left {
        display: flex !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 42px !important;
    }
    .header-left .nav-link { display: none !important; }
    .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 !important;
        z-index: 10 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .logo img { 
        height: 55px !important;
        max-height: 55px !important;
        width: auto !important;
        max-width: 200px !important;
    }
    .header-right {
        grid-column: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        position: static !important;
        z-index: auto !important;
    }
    .header-right .nav-link { display: none !important; }
    .header-icon-desktop {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 50% !important;
        background: rgba(255,255,255,0.16) !important;
        border: 1.5px solid rgba(255,255,255,0.4) !important;
        color: #FFFFFF !important;
        font-size: 1rem !important;
        cursor: pointer !important;
        outline: none !important;
        padding: 0 !important;
        -webkit-appearance: none !important;
        flex-shrink: 0 !important;
        order: 99 !important;
    }
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    justify-self: center;
    padding: 0 2.5rem;
}
    display: inline-block;
}

.admin-access {
    background: var(--glass);
    border: 1px solid var(--border);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.admin-access:hover {
    background: var(--white);
    color: var(--navy);
    transform: scale(1.1);
}

/* Clean Hero Section with Animated Gradient & Image */
/* Clean Hero Section with Animated Gradient & Image */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

/* Background Image and Zoom Animation (Ken Burns Effect) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.9) 100%),
        linear-gradient(-45deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 94, 0.8), rgba(19, 27, 61, 0.8), rgba(45, 58, 117, 0.7)),
        url('../assets/images/banner1.jpg') center/cover no-repeat;
    background-size: cover, 400% 400%, cover;
    background-blend-mode: normal, overlay, normal;
    z-index: 1;
    pointer-events: none;
    transform-origin: center center;
    animation: heroZoomBG 20s ease-in-out infinite alternate;
}

/* Névoa de Base (Ultra Fog Effect - Respirando Suavemente) */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(to top, var(--bg-main) 0%, rgba(15, 23, 42, 0.9) 20%, transparent 100%);
    z-index: 2;
    animation: fogPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroZoomBG {
    0% {
        transform: scale(1.0);
        background-position: center, 0% 50%, center;
    }
    100% {
        transform: scale(1.08);
        background-position: center, 100% 50%, center;
    }
}

@keyframes fogPulse {
    0% { opacity: 0.5; }
    100% { opacity: 0.85; }
}

.menu-toggle {
    display: none;
}

.admin-access {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    color: #FFFFFF !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    outline: none !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.admin-access:hover {
    background: #FFFFFF !important;
    color: #1E295E !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    margin-right: 1rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 1;
    color: #FFFFFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburguer Menu Desktop (hidden) */
.menu-toggle {
    display: none;
}

@media (max-width: 600px) {
    header {
        padding: 1rem 5% !important;
    }
.logo img {
    transition: max-height 0.4s ease;
}
    .top-nav {
        gap: 1rem !important;
    }
    
    .nav-link {
        font-size: 0.85rem !important;
        letter-spacing: 1.5px !important;
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
        opacity: 0.8;
    }
    .nav-link::after {
        display: none; /* remove hover line under on mobile to keep clean */
    }
    .nav-link:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    
    .admin-access {
        order: 2; /* Coloca o botão de login/painel à esquerda do hambúrguer */
        width: 42px !important;
        height: 42px !important;
    }
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--white);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--dim);
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

/* Animated Champion Button */
.btn-campeao {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 35px;
    border-radius: 50px;
    color: #E2B5FF;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: transparent;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-campeao::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    background: linear-gradient(90deg, #9049B5, #4F46E5, #9049B5, #EC4899, #9049B5);
    background-size: 400% 400%;
    z-index: -2;
    animation: borderGlow 3s linear infinite;
    transition: all 0.3s ease;
}

.btn-campeao::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #0F172A; /* Match main background to make center solid */
    border-radius: 50px;
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-campeao:hover {
    transform: translateY(-3px);
    color: #FFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-campeao:hover i {
    color: #FFF !important;
}

.btn-campeao:hover::before {
    filter: blur(8px);
    opacity: 0.8;
}

.btn-campeao:hover::after {
    background: rgba(15, 23, 42, 0.8);
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    padding: 1.25rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(254, 254, 254, 0.2);
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 10%;
    margin-bottom: 5rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 32px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: rgba(254, 254, 254, 0.3);
    background: rgba(254, 254, 254, 0.05);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 0.8;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--dim);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 0 5%;
    }
    header {
        padding: 1.5rem 5%;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Modal Inscrição Home */
.home-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-modal.active {
    display: flex;
    animation: modalIn 0.3s ease;
}

.modal-card {
    background: #FEFEFE;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Elite Cards Styles (Alternative to Podium) */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
    padding: 2rem 0;
}

.podium-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.podium-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none;
}

.podium-item:hover {
    transform: translateY(-20px);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.podium-rank {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0.1;
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
}

.podium-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
    padding: 10px;
    border: 2px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: 0.5s;
}

.podium-item:hover .podium-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.podium-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1px;
}

.podium-points {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.podium-points span:first-child {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
}

.podium-points span:last-child:not(:first-child) {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CHAMPION CARD */
.podium-item.first {
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
    transform: scale(1.1);
    z-index: 10;
    order: 2;
}

.animated-border-overlay {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, #9049B5, #4F46E5, #9049B5, #EC4899, #9049B5);
    background-size: 400% 400%;
    animation: podiumBorderGlow 3s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes podiumBorderGlow {
    0% { background-position: 0% 0%, 0% 50%; }
    100% { background-position: 0% 0%, 100% 50%; }
}

.podium-item.first:hover {
    transform: scale(1.15) translateY(-25px);
}

.podium-item.first .podium-rank {
    opacity: 0.3;
    color: #FBBF24;
}

.podium-item.first .podium-avatar {
    width: 160px;
    height: 160px;
    border: 3px solid transparent;
    background: rgba(255,255,255,0.02);
    box-shadow: 0 0 50px rgba(144, 73, 181, 0.4);
    position: relative;
}

.podium-item.first .podium-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(90deg, #9049B5, #4F46E5, #9049B5, #EC4899, #9049B5);
    background-size: 400% 400%;
    animation: podiumBorderGlow 3s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.podium-item.first::before {
    content: 'SEGUE O LÍDER';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #9049B5, #4F46E5, #9049B5, #EC4899, #9049B5);
    background-size: 400% 400%;
    animation: podiumBorderGlow 3s linear infinite;
    color: #FFFFFF;
    padding: 5px 20px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 0 0 15px 15px;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(144, 73, 181, 0.4);
    margin-bottom: 1.5rem;
}

/* SECOND & THIRD */
.podium-item.second { order: 1; }
.podium-item.third { order: 3; }

/* Table Swipe Tip for Mobile */
.mobile-table-tip {
    display: none !important;
}

@keyframes pulseTip {
    0% { transform: scale(1); opacity: 0.95; }
    100% { transform: scale(1.02); opacity: 1; }
}

@keyframes bounceHorizontal {
    0% { transform: translateX(-3px); }
    100% { transform: translateX(3px); }
}

@media (max-width: 1024px) {
    .podium-item.first { transform: scale(1); }
    .podium-item.first:hover { transform: translateY(-20px); }
    .podium-container { gap: 1rem; }
}

@media (max-width: 768px) {
    .podium-container {
        flex-direction: column;
        padding: 0 10%;
    }
    .podium-item {
        width: 100%;
        max-width: 100%;
        padding: 1.8rem 1.2rem !important;
        border-radius: 28px !important;
    }
    .podium-item.first::before {
        display: none !important;
    }
    .podium-rank {
        top: 1rem !important;
        right: 1.2rem !important;
        font-size: 2.2rem !important;
    }
    .podium-avatar {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 1rem !important;
        padding: 8px !important;
    }
    .podium-name {
        font-size: 1.25rem !important;
        margin-bottom: 0.8rem !important;
    }
    .podium-points span:first-child {
        font-size: 1.6rem !important;
    }
    .mobile-table-tip {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: rgba(56, 189, 248, 0.08) !important;
        border: 1px solid rgba(56, 189, 248, 0.15) !important;
        color: #38BDF8 !important;
        padding: 0.75rem 1.2rem !important;
        border-radius: 50px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        margin: 0 auto 1.5rem auto !important;
        width: fit-content !important;
        max-width: 92% !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        animation: pulseTip 2s infinite alternate !important;
    }
}

/* Ranking Section Animated Background */
.ranking-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(to bottom, #080B13, #0F172A);
    overflow: hidden;
}

/* Nebula Clouds */
.ranking-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(144, 73, 181, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.4) 0%, transparent 70%);
    animation: nebulaMove 20s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Animated Starry Sky (Parallax) */
.ranking-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, #fff 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, #fff 1px, transparent 1px),
        radial-gradient(circle at 50% 60%, rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,1) 2px, transparent 2px),
        radial-gradient(circle at 90% 50%, #fff 1px, transparent 1px),
        radial-gradient(circle at 40% 10%, rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 90%, rgba(255,255,255,1) 2px, transparent 2px);
    background-size: 200px 200px, 200px 200px, 300px 300px, 300px 300px, 400px 400px, 400px 400px, 200px 200px, 300px 300px, 400px 400px;
    animation: moveStars 60s linear infinite;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    pointer-events: none;
    opacity: 0.6;
}

@keyframes moveStars {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: -200px -200px, -200px -200px, -300px -300px, -300px -300px, -400px -400px, -400px -400px, -200px -200px, -300px -300px, -400px -400px; }
}

@keyframes nebulaMove {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(2%, 2%); }
    100% { transform: scale(1) translate(-2%, 1%); }
}

.container-ranking {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.ranking-container, .podium-container {
    position: relative;
    z-index: 2;
}

/* Torneios Page Specific */
.torneios-hero {
    min-height: 50vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('../assets/images/hero.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.torneios-hero h1 {
    font-size: 2.8rem;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .torneios-hero h1 {
        font-size: 2.2rem !important;
    }
}

.torneios-hero p {
    font-size: 1.1rem;
    max-width: 600px;
}

.animate-title {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-title span {
    color: var(--primary);
    display: block;
}

.animate-text {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--dim);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Light Section Styles */
.light-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(to bottom, #080B13, #0F172A) !important;
    color: #CBD5E1 !important;
    overflow: hidden;
}

.light-section h2, .light-section h3 {
    color: #F1F5F9 !important;
}

.light-section p {
    color: #94A3B8 !important;
}

/* Nebula Clouds for light-section */
.light-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(144, 73, 181, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.4) 0%, transparent 70%);
    animation: nebulaMove 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Animated Starry Sky (Parallax) for light-section */
.light-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, #fff 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, #fff 1px, transparent 1px),
        radial-gradient(circle at 50% 60%, rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,1) 2px, transparent 2px),
        radial-gradient(circle at 90% 50%, #fff 1px, transparent 1px),
        radial-gradient(circle at 40% 10%, rgba(255,255,255,0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 90%, rgba(255,255,255,1) 2px, transparent 2px);
    background-size: 200px 200px, 200px 200px, 300px 300px, 300px 300px, 400px 400px, 400px 400px, 200px 200px, 300px 300px, 400px 400px;
    animation: moveStars 60s linear infinite;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

.light-section .tab-content {
    position: relative;
    z-index: 1;
}

/* Glassmorphism over white boxes inside light-section */
.light-section .bg-white {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #F1F5F9 !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.light-section .text-slate-800 {
    color: #F1F5F9 !important;
}

.light-section .text-slate-700 {
    color: #CBD5E1 !important;
}

.light-section .text-slate-600 {
    color: #94A3B8 !important;
}

.light-section .text-slate-500 {
    color: #94A3B8 !important;
}

.light-section .bg-slate-50 {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.light-section .bg-slate-50\/70 {
    background: rgba(0, 0, 0, 0.2) !important;
}

.light-section .bg-slate-100 {
    background: rgba(255, 255, 255, 0.05) !important;
}

.light-section .border-slate-100 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.light-section .border-slate-200\/80 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.light-section table th {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #CBD5E1 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.light-section table td {
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    color: #E2E8F0 !important;
}

.light-section .regulamento-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0 !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
}

.light-section .regulamento-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.light-section .regulamento-header h2 {
    color: #F1F5F9 !important;
}

.light-section .regulamento-body {
    color: #CBD5E1 !important;
}

.light-section .regulamento-body h3 {
    color: #F1F5F9 !important;
}

.light-section .regulamento-body strong {
    color: #F1F5F9 !important;
}

/* Tournament Grid & Cards - Premium Clean Version */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
    padding-top: 2rem;
}

.tournament-card {
    background: #FFFFFF;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.tournament-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    border-color: var(--primary);
}

.tournament-banner {
    position: relative;
    height: 220px;
    background: #0F172A;
    overflow: hidden;
}

.tournament-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.tournament-card:hover .tournament-banner img {
    transform: scale(1.1);
}

.tournament-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 2;
}

.tournament-status.finalizado {
    background: rgba(100, 116, 139, 0.9);
}

.tournament-card.is-finalized {
    opacity: 0.5;
    filter: grayscale(0.6);
}

.tournament-card.is-finalized:hover {
    opacity: 1;
    filter: grayscale(0);
}

.tournament-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tournament-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.tournament-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #64748B;
    font-size: 0.8rem;
    font-weight: 600;
}

.meta-item i {
    width: 32px;
    height: 32px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-tournament {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #0F172A 0%, #1E295E 100%);
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(15, 23, 94, 0.2);
    margin-top: auto;
}

.btn-tournament:hover {
    background: var(--primary);
    color: #0F172A;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
}

/* Ranking Table Rows */
.ranking-table-row {
    transition: background 0.3s;
}

.ranking-table-row:hover {
    background: rgba(255,255,255,0.02);
}

/* First Place Animated Row */
.rank-1-row {
    background: linear-gradient(
        90deg,
        rgba(144, 73, 181, 0.18),
        rgba(79, 70, 229, 0.15),
        rgba(236, 72, 153, 0.12),
        rgba(79, 70, 229, 0.15),
        rgba(144, 73, 181, 0.18)
    );
    background-size: 300% 100%;
    animation: rankRowGlow 4s ease-in-out infinite;
    box-shadow: inset 4px 0 0 #9049B5;
}

.rank-1-row:hover {
    background: linear-gradient(
        90deg,
        rgba(144, 73, 181, 0.28),
        rgba(79, 70, 229, 0.22),
        rgba(236, 72, 153, 0.18),
        rgba(79, 70, 229, 0.22),
        rgba(144, 73, 181, 0.28)
    ) !important;
    background-size: 300% 100% !important;
}

@keyframes rankRowGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
