@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --cosmic-purple: #6a0dad;
    --deep-space: #0d0221;
    --nebula-blue: #240046;
    --star-cyan: #00d9ff;
    --plasma-pink: #ff006e;
    --galaxy-violet: #8338ec;
    --cosmic-gray: #1a1a2e;
    --light-text: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--nebula-blue) 100%);
    color: var(--light-text);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    animation: stars 100s linear infinite;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Navigation */
.navbar {
    background: rgba(13, 2, 33, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--cosmic-purple);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(106, 13, 173, 0.5);
}

.nav-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--star-cyan);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
    transition: all 0.3s ease;
}

.logo-link:hover {
    color: var(--plasma-pink);
    text-shadow: 0 0 30px rgba(255, 0, 110, 0.8);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    border-color: var(--star-cyan);
    color: var(--star-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-hamburger span {
    width: 30px;
    height: 3px;
    background: var(--star-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(13, 2, 33, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 2px solid var(--cosmic-purple);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Main Container */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Hero */
.hero-cosmic {
    text-align: center;
    padding: 5rem 2rem;
    margin: 3rem 0;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.4), rgba(131, 56, 236, 0.4));
    border: 2px solid var(--cosmic-purple);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(106, 13, 173, 0.6), inset 0 0 40px rgba(131, 56, 236, 0.2);
}

.hero-cosmic h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--star-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(0, 217, 255, 1);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 217, 255, 0.8); }
    to { text-shadow: 0 0 40px rgba(0, 217, 255, 1), 0 0 60px rgba(0, 217, 255, 0.6); }
}

.hero-cosmic p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
}

/* Content Blocks */
.content-block {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(36, 0, 70, 0.6));
    border: 2px solid var(--galaxy-violet);
    border-radius: 8px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 8px 30px rgba(131, 56, 236, 0.4);
    backdrop-filter: blur(10px);
}

.content-block h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--star-cyan);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

.content-block h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--plasma-pink);
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    letter-spacing: 2px;
}

.content-block p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.content-block ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-block li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Alert Blocks */
.alert-block {
    padding: 2rem;
    margin: 3rem 0;
    border-left: 5px solid var(--cosmic-purple);
    background: linear-gradient(90deg, rgba(106, 13, 173, 0.3), rgba(106, 13, 173, 0.1));
    backdrop-filter: blur(10px);
    border-radius: 4px;
}

.alert-block h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--star-cyan);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.alert-block.warning {
    border-left-color: var(--plasma-pink);
    background: linear-gradient(90deg, rgba(255, 0, 110, 0.3), rgba(255, 0, 110, 0.1));
}

.alert-block.warning h3 {
    color: var(--plasma-pink);
}

/* Game Zone */
.game-zone {
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.9), rgba(36, 0, 70, 0.8));
    border: 3px solid var(--star-cyan);
    border-radius: 12px;
    padding: 3rem;
    margin: 4rem 0;
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.4);
}

.game-zone h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    color: var(--star-cyan);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 25px rgba(0, 217, 255, 0.8);
}

.game-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    min-height: 650px;
}

.game-frame iframe {
    border: none;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
}

/* Footer */
.footer-cosmic {
    background: linear-gradient(180deg, rgba(13, 2, 33, 0.95), rgba(36, 0, 70, 0.95));
    border-top: 2px solid var(--cosmic-purple);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    box-shadow: 0 -5px 30px rgba(106, 13, 173, 0.4);
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--star-cyan);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-section p {
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: var(--light-text);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--star-cyan);
    padding-left: 5px;
}

.footer-end {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(106, 13, 173, 0.5);
    color: #999;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 5000;
}

.age-modal.visible {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: linear-gradient(135deg, var(--nebula-blue), var(--deep-space));
    border: 3px solid var(--star-cyan);
    padding: 3.5rem;
    max-width: 600px;
    margin: 1rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.6);
}

.modal-box h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--star-cyan);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

.modal-box p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.modal-box .emphasis {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--plasma-pink);
    font-size: 1.4rem;
    margin: 2rem 0;
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
}

.modal-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.modal-btn {
    flex: 1;
    padding: 1.3rem 2rem;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.modal-btn.confirm {
    background: var(--star-cyan);
    color: var(--deep-space);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.modal-btn.confirm:hover {
    background: var(--plasma-pink);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.7);
}

.modal-btn.deny {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.modal-btn.deny:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-cosmic h1 {
        font-size: 2.8rem;
    }

    .hero-cosmic {
        padding: 3rem 1.5rem;
    }

    .content-block {
        padding: 2rem;
    }

    .game-frame {
        min-height: 450px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-cosmic h1 {
        font-size: 2rem;
    }

    .modal-box {
        padding: 2rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}
