:root {
    /* Colors */
    --void-dark: #050508;
    --void-secondary: #0a0a12;
    --surface: #12121c;
    
    /* Energy Colors */
    --toxic-green: #00ff9f;
    --acid-purple: #7f00ff;
    --lava-red: #ff3c38;
    --electric-blue: #00d4ff;
    
    /* Gradients */
    --chaotic-gradient: linear-gradient(135deg, var(--toxic-green), var(--acid-purple), var(--lava-red), var(--electric-blue));
    
    /* Gloss & Glass Layers */
    --glass: rgba(255, 255, 255, 0.05);
    --gloss-highlight: rgba(255, 255, 255, 0.08);
    --glow-overlay: rgba(0, 255, 159, 0.15);
    
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
}

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

body {
    background-color: var(--void-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    background-image: url('assets/dark-abstract-energy-waves-liquid-texture.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--void-dark) 80%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

.chaotic-text {
    background: var(--chaotic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shineText 3s linear infinite;
}

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

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}
@media(min-width: 768px) { .container { padding: 0 70px; } }
@media(min-width: 1024px) { .container { padding: 0 100px; } }

/* Particle System Layer */
#particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    background: var(--toxic-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--toxic-green), 0 0 20px var(--electric-blue);
    animation: floatUp 4s infinite linear, flicker 1.5s infinite alternate;
    opacity: 0.6;
}

/* Floating Header */
.energy-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(18, 18, 28, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--gloss-highlight);
    border-radius: 40px 15px 30px 20px; /* Organic shape */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, box-shadow 0.4s ease;
}

.energy-header::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 10%; width: 80%; height: 2px;
    background: var(--chaotic-gradient);
    filter: blur(4px);
    opacity: 0.7;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--toxic-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--chaotic-gradient);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--lava-red);
    animation: pulse 2s infinite;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.nav-links a:hover {
    color: var(--toxic-green);
    text-shadow: 0 0 8px var(--toxic-green);
}

/* Glossy Energy Button */
.btn-energy {
    background: var(--chaotic-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 15px rgba(127, 0, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-energy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gloss-highlight);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-energy::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-energy:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 30px var(--toxic-green), 0 0 50px var(--acid-purple);
}

.btn-energy:hover::after {
    opacity: 1;
    left: 100%;
}

.btn-energy:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

/* Warning Banner */
.legal-warning {
    background: rgba(255, 60, 56, 0.1);
    border: 1px solid var(--lava-red);
    color: var(--lava-red);
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 100px;
    box-shadow: 0 0 20px rgba(255, 60, 56, 0.2);
    border-radius: 15px 5px 15px 5px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 50px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.hero-text {
    flex: 1;
    transform: perspective(1000px) rotateY(5deg);
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-egg {
    width: 100%;
    max-width: 600px;
    border-radius: 40px 20px 60px 30px;
    box-shadow: 0 0 80px rgba(0, 255, 159, 0.4), 0 0 120px rgba(127, 0, 255, 0.3);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
    filter: contrast(1.2) saturate(1.3);
}

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

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

.section-header h2 {
    font-size: 3rem;
}

/* Dragon Core Frame */
.dragon-core-frame {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 45px 20px 50px 25px; /* Organic shape */
    background: rgba(18, 18, 28, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 255, 159, 0.2), inset 0 0 30px rgba(127, 0, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.05);
    animation: pulseCore 4s infinite alternate, float 8s infinite ease-in-out;
}

.dragon-core-frame::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: var(--chaotic-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
    animation: shineText 5s linear infinite;
}

.dragon-core-frame iframe {
    width: 100%;
    height: 700px;
    border-radius: 35px 15px 40px 20px;
    border: none;
    background-color: var(--void-dark);
    display: block;
    box-shadow: inset 0 0 50px #000;
}

/* Card System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gloss-highlight);
    border-radius: 24px 12px 30px 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--chaotic-gradient);
    opacity: 0.8;
}

.glass-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 255, 159, 0.2);
    background: rgba(255,255,255,0.08);
}

.glass-card h3 {
    margin-bottom: 15px;
    color: var(--electric-blue);
}

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

/* Legal Footer */
.site-footer {
    background: rgba(10, 10, 18, 0.9);
    border-top: 1px solid var(--gloss-highlight);
    padding: 60px 0 20px;
    margin-top: 100px;
    position: relative;
}

.legal-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--gloss-highlight);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.badge.age {
    border-color: var(--lava-red);
    color: var(--lava-red);
    text-shadow: 0 0 5px rgba(255, 60, 56, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--toxic-green);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.6;
}

/* Inner Pages Structure */
.inner-page-header {
    padding: 150px 0 50px;
    text-align: center;
}

.inner-page-content {
    max-width: 900px;
    margin: 0 auto 100px;
}

.content-box {
    background: var(--glass);
    border: 1px solid var(--gloss-highlight);
    border-radius: 20px 40px 15px 30px;
    padding: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.content-box h2 {
    margin: 30px 0 15px;
    color: var(--toxic-green);
}

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

.content-box ul {
    padding-left: 20px;
}

.content-box li {
    margin-bottom: 10px;
}

/* Contact Form */
.wild-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--gloss-highlight);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--acid-purple);
    box-shadow: 0 0 15px rgba(127, 0, 255, 0.3);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px var(--lava-red); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px var(--acid-purple); }
    100% { transform: scale(1); box-shadow: 0 0 15px var(--lava-red); }
}

@keyframes pulseCore {
    0% { box-shadow: 0 0 40px rgba(0, 255, 159, 0.2), inset 0 0 30px rgba(127, 0, 255, 0.3); }
    100% { box-shadow: 0 0 80px rgba(0, 255, 159, 0.5), inset 0 0 60px rgba(127, 0, 255, 0.6); }
}

@keyframes shineText {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.3; }
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: 50px;
    }
    .hero-text {
        transform: none;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text p {
        margin: 0 auto 30px;
    }
    .nav-links {
        display: none; /* simple mobile hide for minimal nav */
    }
    .dragon-core-frame iframe {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .dragon-core-frame {
        padding: 10px;
        border-radius: 25px 15px 30px 20px;
    }
    .dragon-core-frame iframe {
        height: 400px;
        border-radius: 20px 10px 25px 15px;
    }
    .content-box {
        padding: 30px 20px;
    }
}