:root {
    --primary-color: #ff0044;
    --primary-hover: #ff3366;
    --secondary-color: #2a475e;
    --steam-gradient: linear-gradient(135deg, #66c0f4 0%, #2a475e 100%);
    --text-color: #ffffff;
    --bg-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(3px);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.tagline {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    color: white;
    min-width: 200px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-steam {
    background: var(--steam-gradient);
}

.btn-steam:hover {
    filter: brightness(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.8;
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.icon-wrapper {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    font-weight: bold;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step p {
    font-size: 1.2rem;
    font-weight: 600;
}

.step-divider {
    height: 2px;
    background: rgba(255,255,255,0.2);
    flex: 1;
    display: none;
}

@media (min-width: 768px) {
    .step-divider {
        display: block;
    }
}

/* Minigames Section */
.minigames {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.4);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.game-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.game-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.game-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.game-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: linear-gradient(to top, transparent, rgba(0,0,0,0.8));
}

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

.faq-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h4 i {
    color: var(--primary-color);
}

.faq-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    padding-left: 28px;
}

/* Legal Pages */
.legal-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.legal-header {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

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

.legal-logo {
    height: 40px;
    width: auto;
}

.legal-container {
    flex: 1;
    padding: 60px 20px;
}

.legal-content {
    background: #fafafa;
    color: #333;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    font-family: var(--font-heading);
    color: #111;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.legal-content p, .legal-content li {
    margin-bottom: 1em;
    color: #444;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 1em;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

/* Footer */
footer {
    background: #111;
    padding: 50px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: white;
}

.social-media {
    display: flex;
    gap: 20px;
}

.social-media a {
    color: white;
    font-size: 1.5rem;
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.social-media a:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Animations */
@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.animate-pop {
    animation: pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
}

.delay-1 {
    animation-delay: 0.6s;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tagline {
        font-size: 2rem;
    }

    .logo {
        width: 180px;
        height: 180px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }
    
    .legal-content {
        padding: 20px;
    }
}
