:root {
    --bg: #050b14; /* --cmg-dark */
    --card-bg: rgba(12, 21, 36, 0.8); /* --cmg-card with alpha */
    --primary: #9d50bb; /* --cmg-purple */
    --secondary: #00d2ff; /* --cmg-blue */
    --accent: #f9d423; /* --cmg-yellow */
    --green: #00ff87; /* --cmg-green */
    --text: #e0e0e0; /* --cmg-text */
    --text-dim: #aaaaaa;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 210, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Outfit', 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Luxury Background */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    width: clamp(200px, 25vw, 380px);
    aspect-ratio: 8/1;
    height: auto;
    background: url('../assets/banner_logo_wide.png') no-repeat center;
    background-size: contain;
    text-indent: -9999px;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--text);
    text-shadow: 0 0 10px var(--secondary);
}

/* Hero Section */
.hero {
    padding: 2rem 5% 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-banner-container {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    margin-bottom: -150px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    border: 1px solid var(--glass-border);
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.5s ease;
}

.hero-banner-container:hover .hero-banner {
    transform: scale(1.05);
}

.hero-content {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    position: relative;
    z-index: 6;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Audio Player */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin: 1rem auto 0;
    backdrop-filter: blur(10px);
}

.vibe-meter-container {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.vibe-meter {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 0 10px var(--secondary);
    transition: width 0.2s ease;
}

.play-btn {
    background: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

/* Games Grid */
.section-title {
    padding: 4rem 5% 2rem;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 5% 10rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    transform-style: preserve-3d;
}

.game-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(1deg);
    border-color: var(--secondary);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.game-card:hover::after {
    opacity: 1;
}

.game-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.game-info {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.game-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.game-details p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--glass);
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
    border: 1px solid var(--glass-border);
}

/* Animations */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes neonPulse {
    0% { filter: drop-shadow(0 0 2px var(--primary)); }
    50% { filter: drop-shadow(0 0 10px var(--primary)) drop-shadow(0 0 20px var(--secondary)); }
    100% { filter: drop-shadow(0 0 2px var(--primary)); }
}

.glitch:hover {
    animation: glitch 0.3s infinite;
    color: var(--secondary);
    text-shadow: 2px 2px var(--primary), -2px -2px var(--accent);
}

.logo {
    animation: neonPulse 4s infinite ease-in-out;
}

.section-title {
    background: linear-gradient(90deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-banner-container { height: 300px; }
    .games-grid { grid-template-columns: 1fr; }
}
