/* Variables & Theme configuration */
:root {
    /* Color System */
    --bg-primary: #0a0a0d;
    --bg-secondary: #141417;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --accent-primary: #a78bfa;
    --accent-secondary: #38bdf8;
    --highlight: #e9d5ff;
    
    --text-primary: #f5f5f5;
    --text-secondary: #9ca3af;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --container-max: 1400px;
    --spacing-mobile: 50px;
    --spacing-tablet: 70px;
    --spacing-desktop: 100px;
    
    /* Components */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 22px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 50%, rgba(167, 139, 250, 0.05), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.05), transparent 25%);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--highlight) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism System */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.4);
    color: #fff;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Header Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 13, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 15px var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--accent-primary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(80px + var(--spacing-desktop)) 0 var(--spacing-desktop);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('images/diamond-crystal-refraction-abstract-background.webp'); /* Virtual asset */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -2;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse-glow 8s infinite alternate;
}

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

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.legal-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Game Section - CORE FOCUS */
.game-section {
    position: relative;
    z-index: 2;
}

.game-container {
    max-width: 1300px; /* Large immersive frame */
    margin: 0 auto;
    width: 100%;
}

.game-header {
    margin-bottom: 40px;
}

.game-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-secondary));
    z-index: -1;
    border-radius: calc(var(--radius-lg) + 2px);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.game-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(167, 139, 250, 0.15);
}

.game-wrapper:hover::before {
    opacity: 1;
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background-color: #000;
}

/* Informational Content Sections */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    padding: 40px;
    text-align: center;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer & Legal */
.footer {
    margin-top: auto;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: var(--accent-secondary);
}

.legal-disclaimer {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.legal-disclaimer p {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.legal-disclaimer p:last-child {
    margin-bottom: 0;
}

.age-gate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Content Pages (Terms, Privacy, etc.) */
.page-header {
    padding: calc(80px + 60px) 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(167, 139, 250, 0.05), transparent);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    margin: 40px 0 20px;
    color: var(--highlight);
}

.text-content p, .text-content ul {
    margin-bottom: 20px;
}

.text-content ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.text-content ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Animations */
@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

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

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Media Queries */
@media (max-width: 1024px) {
    .section { padding: var(--spacing-tablet) 0; }
    .game-wrapper { aspect-ratio: 16/10; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .section { padding: var(--spacing-mobile) 0; }
    .nav-links { display: none; } /* Simplified for prompt, real world needs hamburger */
    .hero { min-height: 60vh; padding-top: 120px; }
    .game-wrapper { aspect-ratio: 4/3; border-radius: var(--radius-md); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .game-wrapper { aspect-ratio: 1/1; }
    .btn { width: 100%; }
}