/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0612;
    --bg-secondary: #110a1a;
    --bg-card: #1a0f2e;
    --bg-card-hover: #251540;
    --text-primary: #ffffff;
    --text-secondary: #b8a9d4;
    --text-muted: #6b5a8a;
    --accent-purple: #9b4dff;
    --accent-purple-light: #bf7fff;
    --accent-purple-glow: rgba(155, 77, 255, 0.5);
    --accent-pink: #ff4da6;
    --accent-cyan: #4dffff;
    --neon-purple: #9b4dff;
    --border-color: #3d2a5c;
    --gradient-dark: linear-gradient(180deg, #0a0612 0%, #1a0f2e 100%);
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --neon-glow: 0 0 10px var(--accent-purple), 0 0 20px var(--accent-purple), 0 0 40px var(--accent-purple-glow);
    --glass-bg: rgba(10, 6, 18, 0.7);
    --glass-border: rgba(155, 77, 255, 0.2);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: loader-pulse 1.2s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ===== Subtle Vignette (no animation for performance) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 6, 18, 0.4) 100%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    background: rgba(10, 6, 18, 0.95);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(155, 77, 255, 0.15);
}

.btn-nav {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    justify-self: end;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(77, 255, 255, 0.5);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--accent-cyan), 0 0 10px var(--accent-cyan); }
    50% { opacity: 0.8; box-shadow: 0 0 15px var(--accent-cyan), 0 0 25px var(--accent-cyan); }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    /* Fallback gradient when image is missing */
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(155, 77, 255, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(100, 50, 180, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, #1a0a2e 0%, #0a0612 50%, #050308 100%);
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* Purple overlay on background image */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(155, 77, 255, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(191, 127, 255, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10, 6, 18, 0.4) 0%, rgba(10, 6, 18, 0.7) 100%);
    z-index: 1;
}

/* Vignette effect */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 6, 18, 0.8) 100%);
    z-index: 2;
}

/* CRT overlay for hero */
.crt-overlay {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        );
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ouch Logo in Hero */
.ouch-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
}

.ouch-logo .logo-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px var(--accent-purple)) drop-shadow(0 0 40px var(--accent-purple-glow));
    /* Retro/CRT effect on logo */
    image-rendering: auto;
    border-radius: 20px;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Live Players Badge */
.live-players {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(155, 77, 255, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(155, 77, 255, 0.2), inset 0 0 20px rgba(77, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(77, 255, 255, 0.5);
}

/* Mouse Glow Effect - optimized */
.mouse-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 77, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.mouse-glow.active {
    opacity: 1;
}

/* Fog disabled for performance - can be re-enabled if needed */
.fog {
    display: none;
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    bottom: -10px;
    animation: floatUp 25s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* Utility Classes */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(155, 77, 255, 0.15);
    border: 1px solid var(--accent-purple);
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-purple-light);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(155, 77, 255, 0.3), inset 0 0 15px rgba(155, 77, 255, 0.1);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple-light) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px var(--accent-purple-glow);
}

@keyframes neonPulse {
    0%, 100% { filter: drop-shadow(0 0 20px var(--accent-purple-glow)); }
    50% { filter: drop-shadow(0 0 40px var(--accent-purple-glow)) drop-shadow(0 0 60px rgba(155, 77, 255, 0.3)); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-subtitle .highlight {
    color: var(--accent-purple-light);
    font-weight: 600;
    text-shadow: 0 0 20px var(--accent-purple-glow);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons - Retro TV Effect ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Retro TV button scanline effect */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 77, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-purple-light) 0%, var(--accent-purple) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 77, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

@keyframes btnGlitch {
    0%, 100% { transform: translateY(-2px) translateX(0); }
    20% { transform: translateY(-2px) translateX(-2px); }
    40% { transform: translateY(-2px) translateX(2px); }
    60% { transform: translateY(-2px) translateX(-1px); }
    80% { transform: translateY(-2px) translateX(1px); }
}

.btn-secondary {
    background: rgba(155, 77, 255, 0.15);
    color: var(--accent-purple-light);
    border: 1px solid rgba(155, 77, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(155, 77, 255, 0.25);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 77, 255, 0.3);
}

.btn-tertiary {
    background: rgba(77, 255, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(77, 255, 255, 0.3);
}

.btn-tertiary:hover {
    background: rgba(77, 255, 255, 0.25);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 255, 255, 0.3);
}

.btn-play {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    color: white;
    margin-top: 1rem;
    font-size: 0.8rem;
    box-shadow: 0 0 15px var(--accent-purple-glow);
    border: 1px solid var(--accent-purple-light);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-purple-glow), 0 0 50px rgba(255, 77, 166, 0.3);
    animation: btnGlitch 0.3s ease;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--text-muted), transparent);
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--accent-purple);
    border-bottom: 1px solid var(--accent-purple);
    padding: 2rem 0;
    box-shadow: 0 0 30px rgba(155, 77, 255, 0.15), inset 0 0 60px rgba(155, 77, 255, 0.05);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-purple-light);
    text-shadow: 0 0 10px var(--accent-purple-glow);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ===== SEALED Section ===== */
.sealed-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.sealed-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(155, 77, 255, 0.02) 50px, rgba(155, 77, 255, 0.02) 51px);
    pointer-events: none;
}

.sealed-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sealed-header {
    text-align: center;
    margin-bottom: 4rem;
}

.classified-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(155, 77, 255, 0.15);
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    box-shadow: 0 0 20px rgba(155, 77, 255, 0.3), inset 0 0 20px rgba(155, 77, 255, 0.1);
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(155, 77, 255, 0.3), inset 0 0 20px rgba(155, 77, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(155, 77, 255, 0.5), inset 0 0 30px rgba(155, 77, 255, 0.2); }
}

.sealed-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 30px var(--accent-purple-glow), 0 0 60px rgba(155, 77, 255, 0.3);
}

@keyframes sealedGlow {
    0%, 100% { text-shadow: 0 0 30px var(--accent-purple-glow), 0 0 60px rgba(155, 77, 255, 0.3); }
    50% { text-shadow: 0 0 50px var(--accent-purple-glow), 0 0 100px rgba(155, 77, 255, 0.5), 0 0 150px rgba(155, 77, 255, 0.2); }
}

.sealed-status {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(77, 255, 255, 0.5);
}

.status-eta {
    color: var(--text-muted);
}

.sealed-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sealed-brief {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.brief-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.brief-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.brief-peek {
    font-size: 0.75rem;
    color: var(--accent-red);
    cursor: pointer;
}

.brief-item {
    margin-bottom: 1.5rem;
}

.brief-key {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.brief-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.brief-value.redacted {
    color: var(--text-muted);
    background: linear-gradient(90deg, var(--text-muted), var(--border-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brief-value.threat {
    color: var(--accent-red);
    font-weight: 700;
}

.sealed-warning {
    background: rgba(155, 77, 255, 0.1);
    border: 1px solid rgba(155, 77, 255, 0.4);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    box-shadow: inset 0 0 20px rgba(155, 77, 255, 0.1);
}

.warning-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-pink);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 77, 166, 0.5);
}

.warning-text {
    font-style: italic;
    color: var(--text-secondary);
}

.sealed-cta {
    display: inline-block;
    color: var(--accent-purple-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-shadow: 0 0 10px var(--accent-purple-glow);
}

.sealed-cta:hover {
    text-decoration: underline;
    text-shadow: 0 0 20px var(--accent-purple-glow);
}

.sealed-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subject-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 10;
}

.sealed-character-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sealed-character {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sealed-character::before {
    content: '📦';
    font-size: 6rem;
    opacity: 0.5;
    filter: grayscale(50%);
}

.redacted-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-purple-light);
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

/* ===== Speedrunners Carousel Section ===== */
.speedrunners-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.speedrunners-container {
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

.speedrunner-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    flex: 1;
}

.speedrunner-carousel::-webkit-scrollbar {
    display: none;
}

.speedrunner-card {
    flex-shrink: 0;
    width: 220px;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.speedrunner-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(155, 77, 255, 0.2);
}

.speedrunner-card.featured {
    width: 260px;
    background: linear-gradient(135deg, rgba(155, 77, 255, 0.2) 0%, rgba(10, 6, 18, 0.9) 100%);
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(155, 77, 255, 0.3);
}

.speedrunner-rank {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.speedrunner-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    background: rgba(155, 77, 255, 0.2);
}

.speedrunner-card.featured .speedrunner-avatar {
    width: 100px;
    height: 100px;
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(155, 77, 255, 0.5);
}

.speedrunner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speedrunner-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.speedrunner-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.speedrunner-card.featured .speedrunner-name {
    font-size: 1.25rem;
}

.speedrunner-game {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.speedrunner-time {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-top: 0.5rem;
}

.speedrunner-card.featured .speedrunner-time {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-purple);
}

.speedrunner-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-purple);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
    
    .speedrunner-card {
        width: 180px;
    }
    
    .speedrunner-card.featured {
        width: 200px;
    }
}

/* ===== Games Section ===== */
.games-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.games-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--accent-purple-glow));
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1100px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

.game-card {
    background: rgba(26, 15, 46, 0.9);
    border: 1px solid rgba(155, 77, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Subtle glow on cards */
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(155, 77, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: 
        0 0 40px rgba(155, 77, 255, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

/* CRT/Retro overlay on game images */
.game-image-overlay {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        ),
        linear-gradient(180deg, transparent 60%, rgba(10, 6, 18, 0.8) 100%);
    pointer-events: none;
}

.game-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.playing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(77, 255, 255, 0.5);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.peak {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.game-code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--accent-purple);
    padding: 4rem 2rem 2rem;
    box-shadow: 0 -10px 40px rgba(155, 77, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Retro TV effect on social buttons */
.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
    pointer-events: none;
}

.social-link:hover {
    background: rgba(155, 77, 255, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple-light);
    box-shadow: 0 0 20px var(--accent-purple-glow), inset 0 0 20px rgba(155, 77, 255, 0.1);
    text-shadow: 0 0 10px var(--accent-purple-glow);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 4rem 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .ouch-logo {
        width: 100px;
        height: 120px;
    }
    
    .sealed-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sealed-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .btn-nav {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .nav-logo-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .ouch-logo {
        width: 80px;
        height: 100px;
    }
    
    .live-players {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sealed-title {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .mouse-glow {
        display: none;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== Glitch Effect ===== */
.glitch-container {
    position: relative;
}

.glitch-container::before,
.glitch-container::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
}

.glitch-container:hover::before {
    animation: glitch 0.3s linear;
    background: var(--accent-purple);
    mix-blend-mode: multiply;
}

@keyframes glitch {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.1; transform: translate(-2px, 2px); }
    40% { opacity: 0.1; transform: translate(2px, -2px); }
    60% { opacity: 0.1; transform: translate(-2px, -2px); }
    80% { opacity: 0.1; transform: translate(2px, 2px); }
}

/* ===== Neon Text Effect ===== */
.neon-text {
    color: var(--accent-purple-light);
    text-shadow: 
        0 0 5px var(--accent-purple-light),
        0 0 10px var(--accent-purple-light),
        0 0 20px var(--accent-purple),
        0 0 40px var(--accent-purple),
        0 0 80px var(--accent-purple);
}

/* ===== Redacted Avatar Style ===== */
.avatar-redacted {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    color: var(--accent-purple);
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.speedrunner-name.redacted,
.speedrunner-time.redacted {
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ===== Submit Time CTA ===== */
.submit-time-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.submit-time-cta span {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Creators/Team Page ===== */
.team-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.team-hero-content {
    max-width: 700px;
}

.team-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(155, 77, 255, 0.15);
    border: 1px solid var(--accent-purple);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.team-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.team-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.team-section {
    padding: 4rem 2rem 6rem;
    background: var(--bg-secondary);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.creator-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.creator-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(155, 77, 255, 0.15);
}

/* Owner highlight - red accent */
.creator-card.owner {
    position: relative;
    border-color: rgba(255, 70, 70, 0.3);
}

.creator-card.owner::before {
    content: 'OWNER';
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #ff4646 0%, #cc2020 100%);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 70, 70, 0.4);
}

.creator-card.owner:hover {
    border-color: rgba(255, 70, 70, 0.6);
    box-shadow: 0 20px 40px rgba(255, 70, 70, 0.15);
}

.creator-card.owner .creator-avatar {
    border-color: #ff4646;
    box-shadow: 0 0 30px rgba(255, 70, 70, 0.3);
}

.creator-card.new-member {
    position: relative;
    border-color: rgba(0, 200, 150, 0.3);
}

.creator-card.new-member:hover {
    border-color: rgba(0, 200, 150, 0.6);
    box-shadow: 0 20px 40px rgba(0, 200, 150, 0.15);
}

.new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #00c896 0%, #00a67d 100%);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 200, 150, 0.5), 0 0 30px rgba(0, 200, 150, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 200, 150, 0.5), 0 0 30px rgba(0, 200, 150, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 200, 150, 0.7), 0 0 40px rgba(0, 200, 150, 0.5); }
}

.creator-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(155, 77, 255, 0.3);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.creator-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.creator-role {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(155, 77, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple-light);
    margin-bottom: 1rem;
}

.creator-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.creator-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Story Section */
.story-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.story-container {
    max-width: 900px;
    margin: 0 auto;
}

.story-content {
    text-align: center;
}

.story-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

.story-text {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 3rem;
}

.story-text p {
    margin-bottom: 1.25rem;
}

.story-text strong {
    color: var(--accent-purple-light);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

@media (max-width: 700px) {
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 0.25rem;
}

.story-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Join CTA Section */
.join-cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.join-cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.join-cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.join-cta-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Nav active state */
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(155, 77, 255, 0.15);
}
