:root {
    /* Colors - Backgrounds */
    --bg-primary: #050816;
    --bg-secondary: #101827;
    
    /* Colors - Glass & Surfaces */
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --blur-amount: 18px;
    
    /* Gradients */
    --grad-blue: linear-gradient(135deg, #1e40af, #38bdf8);
    --grad-purple: linear-gradient(135deg, #581c87, #c084fc);
    --grad-gold: linear-gradient(135deg, #ca8a04, #fde68a);
    
    /* Glow Effects */
    --glow-blue: rgba(56,189,248,0.4);
    --glow-purple: rgba(192,132,252,0.35);
    --glow-gold: rgba(250,204,21,0.4);
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #dbeafe;
    --text-muted: #94a3b8;
    
    /* Layout */
    --max-width: 1280px;
    --radius: 24px;
    --btn-radius: 18px;
    --nav-width: 80px;
    
    /* Spacing */
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
    
    /* Fonts */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Subtle star texture background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.05), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #fff;
}

p {
    color: var(--text-muted);
}

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

/* =========================================
   UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--space-desktop) 0;
}

@media (max-width: 1024px) {
    .section-padding { padding: var(--space-tablet) 0; }
}

@media (max-width: 768px) {
    .section-padding { padding: var(--space-mobile) 0; }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-gradient-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* =========================================
   TYPOGRAPHY SPECIFICS
   ========================================= */
.h1-display {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.h2-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.legal-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 2rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--btn-radius);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:active {
    transform: scale(0.96);
}

.btn-gold {
    background: var(--grad-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--glow-gold);
}
.btn-gold::before {
    background: linear-gradient(135deg, #fde68a, #ca8a04);
}
.btn-gold:hover {
    box-shadow: 0 6px 25px var(--glow-gold);
    transform: translateY(-2px);
    color: var(--bg-primary);
}
.btn-gold:hover::before { opacity: 1; }

.btn-blue {
    background: var(--grad-blue);
    color: #fff;
    box-shadow: 0 4px 15px var(--glow-blue);
}
.btn-blue::before {
    background: linear-gradient(135deg, #38bdf8, #1e40af);
}
.btn-blue:hover {
    box-shadow: 0 6px 25px var(--glow-blue);
    transform: translateY(-2px);
    color: #fff;
}
.btn-blue:hover::before { opacity: 1; }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* =========================================
   HEADER (GALACTIC COMMAND PANEL)
   ========================================= */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--max-width);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(5, 8, 22, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: translateY(-1px);
}

.logo-icon-svg {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(109, 40, 217, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-icon-svg {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    display: flex;
    align-items: baseline;
}

.brand-name {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F8FAFC, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.brand-tld {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #10B981;
    margin-left: 2px;
}

.header-center { flex-grow: 1; }

@media (max-width: 768px) {
    .site-header { top: 10px; width: 95%; }
    .header-inner { padding: 8px 15px; }
    .logo-text { display: none; } /* Hide text on small screens, keep icon */
    .btn-header { padding: 10px 20px; font-size: 0.85rem; }
}

/* =========================================
   FLOATING SIDE NAVIGATION
   ========================================= */
.side-nav {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(56,189,248,0.1), inset 0 0 10px rgba(192,132,252,0.1);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.nav-link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--glow-purple);
}

.nav-link.active {
    color: #fff;
    background: var(--grad-blue);
    box-shadow: 0 0 20px var(--glow-blue);
}

/* Tooltip for desktop nav */
.nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: rgba(16, 24, 39, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-head);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Bottom Navigation */
@media (max-width: 1024px) {
    .side-nav {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 10px 20px;
        width: 90%;
        max-width: 400px;
        justify-content: space-between;
        border-radius: 100px;
    }
    .nav-link::after { display: none; }
    .nav-link { width: 40px; height: 40px; }
    .nav-link:hover { transform: translateY(-5px); }
    
    /* Adjust main content for bottom nav */
    main { padding-bottom: 100px; }
}

/* =========================================
   HERO SECTION (GALAXY LAUNCH GATE)
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-left: 120px; /* Offset for desktop nav */
}

@media (max-width: 1024px) { .hero { padding-left: 0; } }

/* Deep Space Cinematic Background */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 64, 175, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 28, 135, 0.4) 0%, transparent 50%),
        var(--bg-primary);
    /* Placeholder for actual cinematic space image if desired, using CSS to guarantee theme compliance without broken links */
}

/* Cosmic Particles / Stars Animation */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff80, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ffffff40, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff80, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: drift 100s linear infinite;
    opacity: 0.5;
}

@keyframes drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    padding: 0 20px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .hero-actions { flex-direction: column; }
}

/* =========================================
   GAME SECTION (CORE PRODUCT)
   ========================================= */
.game-section {
    position: relative;
    padding-left: 120px;
}
@media (max-width: 1024px) { .game-section { padding-left: 0; } }

.game-showcase {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius);
    padding: 2px; /* For animated border */
    background: linear-gradient(135deg, rgba(56,189,248,0.5), rgba(192,132,252,0.5), rgba(250,204,21,0.5));
    animation: borderGlow 5s linear infinite alternate;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(45deg); }
}

.game-inner {
    background: var(--bg-secondary);
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

.game-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-title i { color: #fde68a; }

.game-controls button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-head);
    transition: all 0.3s;
    font-size: 0.9rem;
}
.game-controls button:hover {
    background: rgba(255,255,255,0.1);
}

.game-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

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

.game-info {
    padding: 30px;
    text-align: center;
    background: rgba(0,0,0,0.3);
}

/* Fullscreen mode classes */
.is-fullscreen {
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    max-width: none;
    border-radius: 0;
    padding: 0;
    background: #000;
}
.is-fullscreen .game-inner { border-radius: 0; height: 100%; }
.is-fullscreen .game-frame-container { padding-bottom: 0; flex-grow: 1; height: calc(100vh - 70px); }

/* =========================================
   FEATURE SECTION (GALAXY SYSTEM GRID)
   ========================================= */
.features-section { padding-left: 120px; }
@media (max-width: 1024px) { .features-section { padding-left: 0; } }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(255,255,255,0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-icon svg { width: 30px; height: 30px; stroke: var(--text-secondary); }

.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Asymmetrical Spanning */
.card-wide { grid-column: span 8; }
.card-narrow { grid-column: span 4; }
.card-half { grid-column: span 6; }

@media (max-width: 1024px) {
    .card-wide, .card-narrow, .card-half { grid-column: span 6; }
}
@media (max-width: 768px) {
    .card-wide, .card-narrow, .card-half { grid-column: span 12; }
}

/* =========================================
   PAGES: ABOUT & LEGAL
   ========================================= */
.page-hero {
    padding: 180px 20px 80px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(30, 64, 175, 0.2), transparent 70%);
    position: relative;
    padding-left: 120px;
}
@media (max-width: 1024px) { .page-hero { padding-left: 20px; } }

.content-section {
    padding: 40px 20px 100px;
    padding-left: 140px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 1024px) { .content-section { padding-left: 20px; } }

.text-block {
    margin-bottom: 40px;
}
.text-block h2 { margin-bottom: 20px; color: var(--text-secondary); }
.text-block p { margin-bottom: 15px; font-size: 1.1rem; }
.text-block ul { margin-left: 20px; margin-bottom: 15px; color: var(--text-muted); }
.text-block li { margin-bottom: 10px; }

/* FAQ Styles */
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-summary {
    padding: 20px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
    content: '+';
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: transform 0.3s;
}
details[open] .faq-summary::after { transform: rotate(45deg); }
.faq-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 24px; text-align: left;}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    background: rgba(0,0,0,0.4);
}
textarea.form-control { min-height: 150px; resize: vertical; }

.form-message {
    display: none;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    text-align: center;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
    position: relative;
    z-index: 10;
    padding-left: 120px; /* nav offset */
}
@media (max-width: 1024px) { .site-footer { padding-left: 0; } }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col { display: flex; flex-direction: column; align-items: center; }
}

.footer-logo { margin-bottom: 20px; }
.footer-desc { max-width: 400px; margin-bottom: 20px; }

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-secondary); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* =========================================
   ANIMATIONS (AOS Style)
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }