:root {
    /* Color System */
    --base-primary: #020202;
    --base-secondary: #0b1a16;
    
    /* Gradients */
    --jade-glow: linear-gradient(135deg, #0f766e, #34d399);
    --red-glow: linear-gradient(135deg, #b91c1c, #ef4444);
    --gold-glow: linear-gradient(135deg, #facc15, #f59e0b);
    
    /* Glass / Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(250, 204, 21, 0.15); /* Soft gold edge */
    
    /* Glow Effects */
    --glow-jade: rgba(52, 211, 153, 0.35);
    --glow-red: rgba(239, 68, 68, 0.35);
    --glow-gold: rgba(250, 204, 21, 0.35);
    
    /* Typography */
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-muted: #6b7280;
    
    /* Layout */
    --max-width: 1280px;
    --spacing-desktop: 120px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 20px;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--base-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--base-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--base-secondary);
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Background Effects */
body {
    background: radial-gradient(circle at 50% 0%, var(--base-secondary) 0%, var(--base-primary) 70%);
    min-height: 100vh;
    position: relative;
}

.mist-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.mist {
    position: absolute;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="3"/></filter><rect width="100%" height="100%" filter="url(%23f)" opacity="0.05" fill="white"/></svg>');
    opacity: 0.3;
    animation: mistMove 60s linear infinite;
}

/* Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Typography Classes */
.h1-cinematic {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.subtext-elegant {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Image Utilities & Layouts */
.inline-visual-art {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin: 24px 0 40px 0;
    transition: transform 0.5s ease;
}

.inline-visual-art:hover {
    transform: scale(1.02);
}

.text-image-split {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 60px;
}

.text-image-split.reverse {
    flex-direction: row-reverse;
}

.split-content-area {
    flex: 1;
}

.split-image-area {
    flex: 1;
}

.split-image-art {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.split-image-art:hover {
    box-shadow: 0 15px 45px var(--glow-jade);
    border-color: rgba(52, 211, 153, 0.4);
}

.hero-landscape-banner {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin: 40px auto 0;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Header - Floating Jade Nav */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    height: 70px;
    border-radius: var(--radius-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header:hover {
    box-shadow: 0 10px 40px rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.4);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-icon {
    width: 24px;
    height: 24px;
    fill: url(#gold-grad);
}

.desktop-nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.desktop-nav a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--gold-glow);
    transition: width 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--glow-gold);
}

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

/* Mobile Bottom Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 70px;
    border-radius: var(--radius-lg);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 16px;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mobile-nav svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gold-glow);
    color: var(--base-primary);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.legal-hero-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating Lanterns */
.lanterns-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.lantern {
    position: absolute;
    width: 30px;
    height: 40px;
    background: var(--red-glow);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--glow-red);
    opacity: 0.6;
    animation: floatUp 15s ease-in-out infinite;
}
.lantern::after {
    content:'';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: rgba(250,204,21,0.5);
}

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

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    transition: transform 0.5s ease;
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--jade-glow);
    border-radius: calc(var(--radius-md) + 2px);
    z-index: -1;
    opacity: 0.3;
    animation: borderPulse 4s ease-in-out infinite;
}

.game-wrapper:hover {
    transform: scale(1.01);
}

.game-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: calc(var(--radius-md) - 8px);
    overflow: hidden;
    position: relative;
}

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

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 16px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.feature-card {
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) { grid-column: span 7; }
.feature-card:nth-child(2) { grid-column: span 5; }
.feature-card:nth-child(3) { grid-column: span 5; }
.feature-card:nth-child(4) { grid-column: span 7; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(52, 211, 153, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: url(#gold-grad);
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Generic Page Layout (About, Contact, Legal) */
.page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}

.content-box {
    border-radius: var(--radius-md);
    padding: 60px;
    max-width: 1000px; /* Increased to accommodate splits */
    margin: 0 auto;
}

.content-box.narrow {
    max-width: 800px;
}

.content-box h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #fff;
}

.content-box p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.1);
}

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

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px 0;
    margin-top: 80px;
    background: linear-gradient(to top, #000, transparent);
}

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

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-legal-block {
    max-width: 800px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-legal-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.copyright {
    font-size: 0.8rem;
    color: #4b5563;
    margin-top: 16px;
}

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

@keyframes mistMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.8) rotate(-5deg); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-20vh) scale(1) rotate(5deg); opacity: 0; }
}

@keyframes borderPulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.6; box-shadow: 0 0 30px var(--glow-jade); }
    100% { opacity: 0.2; }
}

/* Media Queries */
@media (max-width: 1024px) {
    .section-spacing { padding: var(--spacing-tablet) 0; }
    .feature-card:nth-child(n) { grid-column: span 6; } 
    .hero-landscape-banner { height: 300px; }
}

@media (max-width: 768px) {
    .section-spacing { padding: var(--spacing-mobile) 0; }
    header {
        top: 16px;
        height: 60px;
        justify-content: center;
    }
    .desktop-nav, .header-cta { display: none; }
    .mobile-nav { display: flex; }
    
    .hero { padding-top: 100px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto;}
    
    .feature-card:nth-child(n) { grid-column: span 12; }
    .content-box { padding: 32px 24px; }
    
    .text-image-split, .text-image-split.reverse {
        flex-direction: column;
        gap: 32px;
    }
    .split-image-art {
        min-height: 250px;
    }
    .hero-landscape-banner {
        height: 200px;
        margin-top: 24px;
    }
    
    body { padding-bottom: 90px; } 
}