@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    --space-black: #050505;
    --plasma-cyan: #00f5ff;
    --quantum-purple: #9b5de5;
    --neon-magenta: #ff2e63;
    --alien-green: #00ff88;
    
    --cosmic-gradient: linear-gradient(135deg, var(--plasma-cyan), var(--quantum-purple), var(--neon-magenta), var(--alien-green));
    
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.15);
    
    --sidebar-collapsed: 70px;
    --sidebar-expanded: 240px;
    
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--space-black);
    color: #ffffff;
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: radial-gradient(circle at 20% 30%, rgba(155, 93, 229, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(0, 245, 255, 0.15) 0%, transparent 40%);
    background-size: cover;
    animation: cosmic-drift 20s infinite alternate linear;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: transparent url('images/starry-night-space-background.png') repeat top center;
    opacity: 0.3;
    animation: stars-move 100s linear infinite;
}

@keyframes cosmic-drift {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes stars-move {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-head {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1rem; }
p { font-size: clamp(0.9rem, 1.5vw, 1.1rem); line-height: 1.6; margin-bottom: 1rem; color: #cccccc; }

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

/* Custom Cursor */
.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,245,255,0.8) 0%, rgba(0,245,255,0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.2s, height 0.2s;
}

/* Sidebar Layout */
.app-container {
    display: flex;
    flex-grow: 1;
    position: relative;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-collapsed);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    overflow-x: hidden;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

.sidebar:hover {
    width: var(--sidebar-expanded);
    box-shadow: 10px 0 30px rgba(0, 245, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 40px;
    text-decoration: none;
    color: white;
    width: var(--sidebar-expanded);
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--cosmic-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-head);
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--plasma-cyan);
}

.sidebar-logo-text {
    margin-left: 15px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.sidebar:hover .sidebar-logo-text {
    opacity: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: var(--sidebar-expanded);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #aaa;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--plasma-cyan);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover::before, .nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    width: 40px;
    text-align: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-text {
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: var(--font-head);
    letter-spacing: 1px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.sidebar:hover .nav-text {
    opacity: 1;
}

/* Mobile Header/Nav Toggle */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    z-index: 1001;
    border-bottom: 1px solid var(--glass-border);
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
}

.mobile-toggle {
    background: none;
    border: none;
    color: var(--plasma-cyan);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
    transition: margin-left 0.4s, width 0.4s;
    position: relative;
}

.page-wrapper {
    padding: 40px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* UI Components */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-panel:hover::before {
    opacity: 1;
}

/* Buttons & Interactions */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-warp {
    background: var(--cosmic-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.4);
}

.btn-warp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-warp:hover::after {
    left: 100%;
}

.btn-warp:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--plasma-cyan);
    border: 2px solid var(--plasma-cyan);
}

.btn-outline:hover {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

/* Experimental Interactions */
.revolver-spin {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.revolver-spin:hover {
    transform: rotate(360deg) scale(1.1);
}

.liquid-morph {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transition: border-radius 0.4s ease;
}
.liquid-morph:hover {
    border-radius: 50%;
}

/* Mandatory Compliance Text */
.compliance-banner-hero {
    background: rgba(0,0,0,0.7);
    border-left: 4px solid var(--neon-magenta);
    padding: 15px;
    margin: 20px 0;
    display: inline-block;
    border-radius: 0 10px 10px 0;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.compliance-text {
    font-size: 0.85rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.compliance-text-large {
    font-size: 0.8rem;
    color: #bbb;
    margin-bottom: 10px;
    line-height: 1.5;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 5%;
}

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

.floating-planet {
    position: absolute;
    right: 5%;
    top: 20%;
    width: 40vw;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(155, 93, 229, 0.5));
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Footer */
footer {
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 60px 5% 30px;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--plasma-cyan);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--alien-green);
}

.badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.badge {
    border: 1px solid #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-18 { border-color: var(--neon-magenta); color: var(--neon-magenta); }
.badge-play { border-color: var(--alien-green); color: var(--alien-green); }

.important-notice {
    background: rgba(255, 46, 99, 0.1);
    border: 1px solid var(--neon-magenta);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Animations Triggered by JS */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.mobile-active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .mobile-header {
        display: flex;
    }
    .hero {
        padding-top: 120px;
    }
    .floating-planet {
        opacity: 0.3;
        top: 30%;
    }
}

/* Game Frame Styles */
.game-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
    border: 2px solid var(--glass-border);
    position: relative;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Cards */
.game-card {
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(155, 93, 229, 0.3);
    border-color: var(--plasma-cyan);
}

/* Featured Game Card */
.featured-game-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    cursor: default;
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-game-card {
        flex-direction: row;
    }
}

.featured-game-image {
    position: relative;
    flex: 1;
}

.featured-game-image .game-card-img {
    height: 100%;
    margin-bottom: 0;
    border-radius: 0;
    min-height: 250px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--neon-magenta);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-head);
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 46, 99, 0.5);
}

.featured-game-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.game-tag {
    background: rgba(0, 245, 255, 0.1);
    color: var(--plasma-cyan);
    border: 1px solid var(--plasma-cyan);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-game-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.featured-game-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--alien-green);
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--plasma-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* Accordion FAQ */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
}
.faq-question {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--plasma-cyan);
    margin-bottom: 10px;
}

/* Standard Pages */
.legal-content h2 {
    color: var(--plasma-cyan);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.legal-content p {
    margin-bottom: 15px;
}
.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #cccccc;
    line-height: 1.6;
}