:root {
    --primary: #4dabff;
    --primary-glow: rgba(77, 171, 255, 0.4);
    --gold: #ffcf4d;
    --gold-glow: rgba(255, 207, 77, 0.3);
    --silver: #e0e0e0;
    --silver-glow: rgba(224, 224, 224, 0.2);
    --bronze: #cd7f32;
    --bronze-glow: rgba(205, 127, 50, 0.2);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --bg: #0b0f1a;
    --card-bg: rgba(15, 23, 42, 0.9);
    /* More solid, less transparent */
    --card-border: rgba(255, 255, 255, 0.12);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-snap-type: y mandatory;
}

section,
header {
    scroll-snap-align: start;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/recap2025_bg.png') no-repeat center center;
    background-size: cover;
    z-index: -2;
    opacity: 0.7;
    filter: blur(10px);
    /* Significant blur for prettiness */
    transform: scale(1.1);
    /* Prevent white edges from blur */
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(11, 15, 26, 0.2) 0%, rgba(11, 15, 26, 0.95) 100%);
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 40px;
}

.trophy-wrapper {
    margin-bottom: 40px;
    display: inline-block;
    position: relative;
}

.trophy-img {
    width: 240px;
    height: 240px;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.brand {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Section */
.stats-section {
    text-align: center;
    padding: 40px 0 80px;
}

.stats-section .tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stats-row-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-align: center;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-title p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

/* Podium */
.podium {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 24px;
}

.podium-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.podium-card.gold {
    padding: 48px 24px;
    border-color: #ffd700;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.25) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.1);
}

.podium-card.silver {
    border-color: #e5e7eb;
    background: linear-gradient(180deg, rgba(229, 231, 235, 0.15) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.podium-card.bronze {
    border-color: #cd7f32;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.15) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.podium-card.gold .rank-label {
    color: var(--gold);
}

.podium-card.silver .rank-label {
    color: var(--silver);
}

.podium-card.bronze .rank-label {
    color: var(--bronze);
}

.winner-name {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.winner-meta {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    display: block;
}

.winner-score {
    font-size: 2.5rem;
    font-weight: 800;
}

.gold .winner-score {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}

.silver .winner-score {
    color: var(--silver);
}

.bronze .winner-score {
    color: var(--bronze);
}

/* List */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.mini-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.mini-card .rank {
    font-weight: 800;
    color: var(--text-dim);
    margin-right: 12px;
    width: 20px;
}

.mini-card .name {
    flex-grow: 1;
    font-weight: 600;
}

.mini-card .score {
    font-weight: 800;
    color: var(--primary);
    width: 60px;
    text-align: right;
}

/* Table */
.table-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 20px 24px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--card-border);
}

td {
    padding: 12px 24px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

.table-rank {
    color: var(--text-dim);
    font-weight: 800;
    width: 60px;
}

.table-score {
    color: var(--primary);
    font-weight: 800;
}

.x-link {
    color: var(--primary);
    text-decoration: none;
}

.x-link:hover {
    text-decoration: underline;
}

.chart-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 100%;
    backdrop-filter: blur(10px);
}

/* Community Section */
.community-section {
    text-align: center;
}

.x-community-button {
    display: inline-block;
    background: linear-gradient(135deg, #1d9bf0, #0d8bd9);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(29, 155, 240, 0.4);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    width: auto;
    max-width: fit-content;
    margin: 0 auto;
}

.x-community-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(29, 155, 240, 0.5);
}

/* Scoring Info */
.scoring-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.score-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.score-pill span {
    color: var(--primary);
    margin-right: 4px;
}

footer {
    text-align: center;
    padding-top: 60px;
    border-top: 1px solid var(--card-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .podium {
        grid-template-columns: 1fr 1.1fr 1fr;
        gap: 6px;
    }

    .podium-card {
        padding: 16px 8px;
        border-radius: 16px;
    }

    .podium-card.gold {
        padding: 20px 10px;
    }

    .rank-label {
        font-size: 0.6rem;
        margin-bottom: 8px;
    }

    .winner-name {
        font-size: 1rem;
    }

    .winner-meta {
        font-size: 0.65rem;
        margin-bottom: 10px;
    }

    .winner-score {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 12px;
    }
}