/* Core Styles - Festive Tactical Pivot */
:root {
    /* Colors */
    --color-ice-blue: #e0f7fa;
    --color-ice-white: #ffffff;
    --color-festive-red: #d32f2f;
    --color-festive-green: #2e7d32;
    --color-festive-gold: #ffd700;
    --color-festive-blue: #0392ff;
    --color-intel-blue: #0071c5;
    --color-bg-dark: #0b1026;

    /* Gradients */
    --gradient-frost: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --gradient-gold: linear-gradient(45deg, #ffd700, #ffecb3, #ffd700);
    --gradient-mission: linear-gradient(to right, rgba(0, 113, 197, 0.1), transparent);

    /* Fonts */
    --font-primary: 'IntelOne Display', sans-serif;
    --font-UI: 'VT323', monospace;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'IntelOne Display';
    src: url('assets/fonts/intelone-display-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}



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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-ice-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilities */
.glass-panel {
    background: rgba(11, 16, 38, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
}



.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}



/* Sections */
section {
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero */
#hero {
    background: url('assets/fundo_celebracao.webp') no-repeat center center/cover;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 6rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 16, 38, 0.7) 0%, var(--color-bg-dark) 100%);
    z-index: 0;
}

/* Ranking Table */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.ranking-table th {
    text-align: left;
    padding: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-pos {
    font-weight: bold;
    color: var(--color-intel-blue);
}

.rank-1 .rank-pos {
    color: var(--color-festive-gold);
}

.rank-2 .rank-pos {
    color: #c0c0c0;
}

.rank-3 .rank-pos {
    color: #cd7f32;
}

.trend-up {
    color: var(--color-festive-green);
}

.trend-down {
    color: var(--color-festive-red);
}





/* Responsive */
@media (max-width: 768px) {
    #hero {
        padding-top: 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    .ranking-table th:nth-child(4),
    .ranking-table td:nth-child(4) {
        display: none;
        /* Hide standard diff column on mobile if needed */
    }



    .glass-panel {
        padding: 1.5rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem !important;
    }



    .rewards-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }


}

/* =========================================
   Mobile Responsiveness Updates
   ========================================= */

/* Hero Container */
.hero-section {
    min-height: 100vh;
    padding-top: 8rem;
    align-items: flex-start;
}

.hero-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left-col {
    flex: 2 1 400px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hero-identity {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

/* Table Responsive Wrapper */
.table-responsive {
    width: 100%;
    padding-right: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-bg-dark);
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

/* Snow Canvas */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 2rem;
    }

    .hero-identity {
        gap: 2rem;
        justify-content: center;
        text-align: center;
    }

    .hero-identity img {
        margin: 0 auto;
    }

    .hero-identity>div {
        margin-top: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
    }

    .hero-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1rem;
    }

    .hero-left-col {
        flex: 1 1 auto;
        width: 100%;
    }

    .hero-identity {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-identity h1 {
        font-size: 2rem !important;
    }

    .hero-identity p {
        font-size: 1.1rem !important;
    }

    .glass-panel {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }

    /* Adjust lists in How to Participate */
    ul li {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    ul li>div:first-child {
        margin-bottom: 10px;
    }

    /* Rewards Grid */
    .rewards-grid {
        gap: 1rem !important;
    }

    .rewards-grid>div {
        flex: 1 1 120px !important;
    }

    /* FAQ padding */
    .faq-section {
        padding: 3rem 1rem;
    }

    .right-col {
        flex: 1 1 auto;
        width: 100%;
    }

    /* Center Section Titles and Subtitles on Mobile */
    .glass-panel h2,
    .glass-panel h2+p {
        text-align: center !important;
    }
}

@media (max-width: 480px) {


    .hero-identity h1 {
        font-size: 1.8rem !important;
    }

    .glass-panel h2 {
        font-size: 1.6rem !important;
    }
}