:root {
    --bg-center: #E0D8C8;
    /* Light Dusty Beige */
    --bg-edge: #C0B8A8;
    /* Darker Muddy Grey */
    --text-main: #FFFFFF;
    /* White for inside card */
    --text-sub: #BBBBBB;
    /* Light Grey for subtext */
    --volt: #F4C430;
    /* Industrial Yellow */
    --tread-color: #605848;
}

body {
    /* Static Background Image */
    background: url('assets/bg_tread.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* REMOVED CANVAS */
#tread-canvas {
    display: none;
}

.content-wrapper {
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 900px;
    background: rgba(20, 20, 20, 0.95);
    /* Dark Anthracite */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
}

/* HERO */
.main-logo {
    width: 360px;
    height: auto;
    margin-bottom: 1.5rem;
    /* Strong double-layer white glow to act as a backlight/outline for black text */
    filter: drop-shadow(0 0 1px white) drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.03);
}

h1 {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    /* Force White */
}

.subline {
    font-size: 1rem;
    color: var(--text-sub);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* PROGRESS BAR */
.progress-container {
    width: 300px;
    margin: 0 auto 4rem auto;
    text-align: left;
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--volt);
    /* Yellow label pops on dark */
    margin-bottom: 6px;
    display: block;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    /* Light track on dark */
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    width: 98%;
    background: var(--volt);
    box-shadow: 0 0 15px var(--volt);
    /* Glow */
    border-radius: 4px;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

/* PARTNERS */
.partners-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.partner-link {
    display: block;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: translateY(-3px);
}

.partner-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    /* Unify all logos: Make them White (inverted black) and set opacity */
    /* This fixes "too dark" logos by forcing them white, then dimming slightly */
    filter: brightness(0) invert(1) opacity(0.6);
    transition: all 0.3s ease;
}

.partner-link:hover .partner-logo {
    /* Reveal original color on hover */
    filter: none;
    opacity: 1;
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Specific adjustment removed as all are now unified */
.invert-if-dark {
    filter: brightness(0) invert(1) opacity(0.6) !important;
}

.partner-link:hover .invert-if-dark {
    /* Reveal original color on hover */
    filter: none !important;
    opacity: 1 !important;
}

footer {
    margin-top: 3rem;
    font-size: 0.75rem;
    color: var(--text-sub);
    font-weight: 500;
}

.creator-link {
    color: var(--volt);
    text-decoration: none;
    font-weight: 700;
}

/* GLOBAL SECURITY LOCKDOWN */
img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .main-logo {
        width: 80%;
        max-width: 280px;
    }

    .content-wrapper {
        width: 85%;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .progress-container {
        width: 100%;
    }

    .partner-grid {
        gap: 1.5rem;
    }

    .partner-logo {
        height: 35px;
    }
}