@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Colors */
    --bg-primary: #07050B;
    --bg-secondary: #120B1F;
    --surface-glass: rgba(255, 255, 255, 0.05);
    --surface-glass-hover: rgba(255, 255, 255, 0.08);
    
    --arcane-purple-start: #5B21B6;
    --arcane-purple-end: #8B5CF6;
    --ancient-gold-start: #D97706;
    --ancient-gold-end: #FBBF24;
    --mystic-silver-start: #475569;
    --mystic-silver-end: #CBD5E1;
    
    --purple-glow: rgba(139, 92, 246, 0.45);
    --gold-glow: rgba(251, 191, 36, 0.45);
    --silver-glow: rgba(203, 213, 225, 0.35);
    
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1280px;
    --nav-width: 80px;
    --glass-blur: 16px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-pill: 100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(91, 33, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

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

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

a:hover {
    color: var(--ancient-gold-end);
}

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

ul {
    list-style: none;
}

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

.text-gradient-gold {
    background: linear-gradient(135deg, var(--ancient-gold-start), var(--ancient-gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--arcane-purple-start), var(--arcane-purple-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Compliance Notices */
.compliance-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--text-secondary);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.75rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
}

.compliance-bar span {
    max-width: var(--max-width);
}

.compliance-bar strong {
    color: var(--ancient-gold-end);
    font-weight: 700;
}

.game-compliance {
    text-align: center;
    padding-top: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-compliance strong {
    color: var(--ancient-gold-end);
}

/* Glassmorphism */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--arcane-purple-start), var(--arcane-purple-end));
    color: #fff;
    box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--purple-glow);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--ancient-gold-start), var(--ancient-gold-end));
    color: #000;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--gold-glow);
    color: #000;
}

.btn-glass {
    background: var(--surface-glass);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--glass-blur));
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ancient-gold-end);
    color: var(--ancient-gold-end);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Top Header */
.top-header {
    position: fixed;
    top: 38px; /* Offset for compliance bar */
    left: 0;
    width: 100%;
    padding: 24px 60px 24px 140px; /* offset for side nav */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 90;
    background: linear-gradient(to bottom, rgba(7, 5, 11, 0.9), transparent);
    pointer-events: none; /* Let clicks pass through empty space */
}

.top-header > * {
    pointer-events: auto; /* Re-enable for children */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    animation: pulse-glow 4s infinite alternate;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.domain-ext {
    font-size: 0.55em;
    opacity: 0.8;
    color: var(--ancient-gold-end);
    text-transform: lowercase;
    vertical-align: super;
    margin-left: 3px;
    letter-spacing: 0.5px;
}

/* Floating Side Navigation */
.side-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    border-radius: var(--radius-pill);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 100;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15), inset 0 0 20px rgba(251, 191, 36, 0.05);
    transition: all 0.4s ease;
}

.side-nav:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
}

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

.nav-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--ancient-gold-end);
    transform: scale(1.15);
    background: rgba(251, 191, 36, 0.1);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--arcane-purple-start), var(--arcane-purple-end));
    color: #fff;
    border: 1px solid var(--ancient-gold-end);
    box-shadow: 0 0 20px var(--purple-glow);
}

/* Tooltip */
.nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: none;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-left: 80px; /* Offset for nav */
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('images/ancient-magical-library-background.png') center/cover no-repeat;
    z-index: 1;
    animation: subtle-parallax 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 5, 11, 0.4) 0%,
        rgba(7, 5, 11, 0.8) 50%,
        var(--bg-primary) 100%
    );
    z-index: 2;
}

.particles, .fog {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.fog {
    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" result="noise"/><feColorMatrix type="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 0.1 0" in="noise" result="coloredNoise"/></filter><rect width="100%" height="100%" filter="url(%23f)"/></svg>');
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: fog-drift 60s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    animation: fade-up 1s ease 0.2s forwards;
}

.hero p.lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fade-up 1s ease 0.4s forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    opacity: 0;
    animation: fade-up 1s ease 0.6s forwards;
}

.legal-notice-hero {
    margin-top: 60px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fade-up 1s ease 0.8s forwards;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Books */
.floating-book {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #2a164d, #140b2e);
    border-radius: 4px 12px 12px 4px;
    border-left: 8px solid var(--ancient-gold-start);
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.1);
    z-index: 4;
}

.book-1 { top: 20%; left: 15%; animation: float 6s ease-in-out infinite; transform: rotate(-15deg); }
.book-2 { top: 60%; right: 15%; animation: float 8s ease-in-out infinite 1s; transform: rotate(25deg); width: 80px; height: 110px;}
.book-3 { top: 30%; right: 25%; animation: float 7s ease-in-out infinite 2s; transform: rotate(10deg); width: 50px; height: 70px; border-left-color: var(--arcane-purple-start);}

/* Game Section */
.game-section {
    padding: 120px 0;
    position: relative;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(139, 92, 246, 0.03)" stroke-width="0.5" fill="none"/></svg>') repeat;
    background-size: 200px 200px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.game-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px;
    border-radius: calc(var(--radius-lg) + 4px);
    position: relative;
    background: linear-gradient(135deg, var(--arcane-purple-start), var(--ancient-gold-start), var(--arcane-purple-end));
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px var(--purple-glow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-wrapper:hover {
    transform: scale(1.01) translateY(-5px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px var(--gold-glow);
}

.game-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
}

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

.game-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--ancient-gold-end);
}

.game-controls {
    display: flex;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.game-iframe-wrapper {
    flex: 1;
    position: relative;
    background: #000;
}

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

/* Features Section */
.features-section {
    padding: 120px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><text y="50" font-size="20" fill="rgba(255,255,255,0.02)">ᚱ ᚢ ᚾ ᛖ</text></svg>');
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 0 1px var(--ancient-gold-end);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.2), rgba(217, 119, 6, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--ancient-gold-end);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

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

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Asymmetrical Grid Placements */
.feat-1 { grid-column: span 8; background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2)); }
.feat-2 { grid-column: span 4; background: linear-gradient(145deg, rgba(91, 33, 182, 0.1), rgba(0,0,0,0.2)); }
.feat-3 { grid-column: span 4; background: linear-gradient(145deg, rgba(217, 119, 6, 0.05), rgba(0,0,0,0.2)); }
.feat-4 { grid-column: span 4; background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2)); }
.feat-5 { grid-column: span 4; background: linear-gradient(145deg, rgba(71, 85, 105, 0.1), rgba(0,0,0,0.2)); }
.feat-6 { grid-column: span 12; background: linear-gradient(145deg, rgba(139, 92, 246, 0.05), rgba(251, 191, 36, 0.05)); display: flex; align-items: center; gap: 40px;}

.feat-6 .feature-icon { margin-bottom: 0; flex-shrink: 0; width: 80px; height: 80px;}
.feat-6 svg { width: 40px; height: 40px; }

/* Legal / Interior Pages */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(18, 11, 31, 0.8), var(--bg-primary));
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ancient-gold-end), transparent);
}

.content-section {
    padding: 80px 0 120px;
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    padding: 60px;
    border-radius: var(--radius-lg);
}

.content-card h2 { margin-top: 40px; margin-bottom: 20px; font-size: 2rem; color: var(--ancient-gold-end); }
.content-card h2:first-child { margin-top: 0; }
.content-card h3 { margin-top: 30px; margin-bottom: 16px; font-size: 1.4rem; }
.content-card p { margin-bottom: 20px; color: var(--text-secondary); }
.content-card ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-secondary); }
.content-card li { margin-bottom: 10px; position: relative; }
.content-card li::before {
    content: '✨';
    position: absolute;
    left: -25px;
    font-size: 0.8rem;
    top: 4px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--arcane-purple-start), transparent);
}

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

.footer-brand .logo-text { margin-bottom: 16px; display: inline-block; }
.footer-desc { color: var(--text-muted); max-width: 400px; }

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--ancient-gold-start);
}

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); padding-left: 5px; }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-address {
    margin-top: 12px;
    font-style: normal;
    line-height: 1.5;
}

.disclaimer-box {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.2);
}

/* --- Contact Us Redesign --- */
.content-section.contact-section {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info, .contact-form-wrapper {
    padding: 50px;
    border-radius: var(--radius-lg);
}

.contact-info h2, .contact-form-wrapper h2 {
    color: var(--ancient-gold-end);
    margin-bottom: 16px;
    font-size: 2rem;
    margin-top: 0;
}

.contact-info > p, .contact-form-wrapper > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.2), rgba(217, 119, 6, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ancient-gold-end);
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.method-details h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.method-details p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--ancient-gold-end);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%2394A3B8" xmlns="http://www.w3.org/2000/svg"><path d="M7 10L12 15L17 10H7Z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px;
    padding-right: 48px;
    cursor: pointer;
}

select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 10px;
    width: auto;
}

/* Animations */
@keyframes fade-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 5px var(--purple-glow)); }
    100% { filter: drop-shadow(0 0 20px var(--ancient-gold-end)); }
}

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

@keyframes fog-drift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 100%; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes subtle-parallax {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -1%); }
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 80px; }
    .top-header { padding: 20px 40px 20px 100px; }
    .features-grid { grid-template-columns: repeat(8, 1fr); }
    .feat-1 { grid-column: span 8; }
    .feat-2, .feat-3, .feat-4, .feat-5 { grid-column: span 4; }
    .feat-6 { grid-column: span 8; flex-direction: column; align-items: flex-start; text-align: left; gap: 20px;}
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .compliance-bar {
        font-size: 0.65rem;
        padding: 8px 10px;
        line-height: 1.4;
        flex-direction: column;
    }
    
    .top-header {
        top: 44px; /* Adjusted for mobile compliance bar */
    }

    .container { padding: 0 20px; }
    .top-header { padding: 16px 20px; justify-content: center; background: var(--bg-primary); border-bottom: 1px solid rgba(255,255,255,0.05);}
    .top-header .btn { display: none; } /* Hide CTA on mobile header to save space */
    
    .hero { padding-left: 0; min-height: 100svh;}
    .hero-actions { flex-direction: column; }
    
    .features-grid { grid-template-columns: 1fr; }
    .feat-1, .feat-2, .feat-3, .feat-4, .feat-5, .feat-6 { grid-column: span 1; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-desc { margin: 0 auto; }
    
    /* Mobile Bottom Navigation */
    .side-nav {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        padding: 12px 20px;
        border-radius: 0;
        border-top: 1px solid rgba(139, 92, 246, 0.3);
        border-left: none;
        border-right: none;
        border-bottom: none;
        background: rgba(7, 5, 11, 0.95);
        backdrop-filter: blur(20px);
    }
    
    .nav-link::after { display: none; } /* Disable tooltips on mobile */
    
    .game-section { padding: 60px 20px; }
    .content-section { padding: 40px 20px; }
    .content-card { padding: 30px; }
    
    /* Padding bottom for body so content isn't hidden by bottom nav */
    body { padding-bottom: 70px; }
}

@media (max-width: 600px) {
    .contact-info, .contact-form-wrapper { padding: 30px 20px; }
}