:root {
    --navy: #05101c;
    --deep-blue: #0f223d;
    --rich-blue: #1e406e;
    --ice-blue: #4fa3e0;
    --frost: #f0f8ff;
    --pure-white: #ffffff;
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent-red: #d62828;
    --accent-silver: #e2e8f0;
    --accent-platinum: #94a3b8;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--navy);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Mountains of Christmas', cursive;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--ice-blue);
}

.text-silver {
    color: var(--accent-silver);
}

.text-red {
    color: var(--accent-red);
}

.glass-panel {
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--ice-blue);
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(79, 163, 224, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 163, 224, 0.6);
}

/* --- Snowfall --- */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation: snowfall linear infinite;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes snowfall {
    to {
        transform: translate(0, 100vh) rotate(360deg);
    }
}

/* Large decorative snowflakes for roster section */
.roster-snowflake {
    position: absolute;
    color: rgba(79, 163, 224, 0.15);
    pointer-events: none;
    z-index: 0;
}

#players,
#activities,
#archives {
    position: relative;
    overflow: hidden;
}

#players .container,
#activities .container,
#archives .container {
    position: relative;
    z-index: 1;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
    padding: 0.8rem 0;
    background: var(--pure-white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e6ed;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: auto;
    width: 240px;
    background: var(--pure-white);
    padding: 5px;
    border-radius: 8px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--navy);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ice-blue);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--ice-blue);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Updated to use local asset path, but will need to be verified */
    background: radial-gradient(circle at center, rgba(30, 64, 110, 0.4) 0%, rgba(5, 16, 28, 1) 100%),
        url('../images/hero-bg.jpg') center/contain no-repeat;
    background-size: 100% 100%;
    position: relative;
    text-align: center;
    padding-top: 80px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--navy), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, #fff, #c0d9ea);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--ice-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Countdown */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.time-box {
    background: rgba(15, 34, 61, 0.8);
    border: 1px solid var(--ice-blue);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(79, 163, 224, 0.2);
}

.time-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pure-white);
    display: block;
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Sections --- */
.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--pure-white);
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card {
    padding: 1.5rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--ice-blue);
    box-shadow: 0 10px 30px rgba(79, 163, 224, 0.15);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--ice-blue);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Players */
.team-card {
    border-top: 4px solid var(--ice-blue);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.team-avalanche {
    border-color: var(--ice-blue);
}

.team-blizzard {
    border-color: var(--ice-blue);
    background: rgba(30, 64, 110, 0.3);
}

.team-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.team-name {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    color: var(--pure-white);
}

.team-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--ice-blue);
}

.roster {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.player {
    text-align: center;
    width: 110px;
}

.player-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--glass-border);
    margin: 0 auto 0.75rem;
    object-fit: cover;
    object-position: top;
    transition: 0.3s;
    cursor: pointer;
}

.player:hover .player-img {
    transform: scale(1.1);
    border-color: var(--ice-blue);
}

.player-name {
    font-weight: 700;
    color: var(--pure-white);
    font-size: 0.95rem;
}

.player-age {
    font-size: 0.8rem;
    color: var(--ice-blue);
}

.yeti-card {
    max-width: 700px;
    margin: 3rem auto 0;
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.1), rgba(5, 16, 28, 0.8));
    border: 1px solid rgba(214, 40, 40, 0.3);
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.yeti-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--accent-red);
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
}

/* Games */
.games-container {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.game-column-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2rem;
    color: var(--ice-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.freeze-tag-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.freeze-tag-column img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.game-item {
    background: rgba(15, 34, 61, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: 0.3s;
}

.game-item:hover {
    border-color: var(--ice-blue);
}

.game-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.game-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--pure-white);
}

.game-meta {
    font-size: 0.8rem;
    color: var(--ice-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.game-content {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.game-content p {
    color: var(--pure-white);
}

.prize-badge {
    display: inline-block;
    background: rgba(79, 163, 224, 0.2);
    color: var(--ice-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(79, 163, 224, 0.3);
    margin-top: 1rem;
}

.prize-badge i {
    margin-right: 0.5rem;
    color: var(--ice-blue);
}

/* Gallery */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #02080e;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 968px) {
    .games-container {
        grid-template-columns: 1fr;
    }

    .freeze-tag-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .yeti-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* Horizontal Accordion (Used in 2022/2023) */
.accordion-container {
    display: flex;
    width: 100%;
    height: 500px;
    gap: 0.5rem;
    margin-top: 3rem;
}

.accordion-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.5s ease;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.accordion-item:hover {
    flex: 3;
    border-color: var(--ice-blue);
    box-shadow: var(--shadow-lg);
}

.accordion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.7);
}

.accordion-item:hover .accordion-bg {
    filter: brightness(1);
}

.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    opacity: 1;
    transition: all 0.3s ease;
}

.accordion-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--ice-blue);
    white-space: nowrap;
}

.accordion-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 0.9rem;
    color: #e0e6ed;
}

.accordion-item:hover .accordion-desc {
    max-height: 100px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    background: black;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .accordion-container {
        flex-direction: column;
        height: 800px;
    }

    .accordion-item:hover {
        flex: 2;
    }
}