@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(180deg, #000011 0%, #000033 50%, #000011 100%);
    color: #e6f7ff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 150, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 200, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(150, 100, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Animated stars background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #000022 0%, #000044 50%, #000022 100%);
    border-bottom: 3px solid #6495ff;
    box-shadow: 0 4px 30px rgba(100, 149, 255, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 3.2rem;
    color: #6495ff;
    text-shadow: 0 0 30px rgba(100, 149, 255, 0.7);
    text-decoration: none;
    transition: all 0.5s ease;
    position: relative;
}

.logo::after {
    content: '🚀';
    position: absolute;
    right: -40px;
    top: -10px;
    font-size: 1.8rem;
    animation: rocket 3s ease-in-out infinite;
}

@keyframes rocket {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.logo:hover {
    text-shadow: 0 0 40px rgba(100, 149, 255, 1);
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 30px;
    height: 3px;
    background: #6495ff;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(100, 149, 255, 0.6);
}

.hamburger.active:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 8px);
}

.hamburger.active:nth-child(2) {
    opacity: 0;
}

.hamburger.active:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -8px);
}

.nav {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav a {
    color: #e6f7ff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.5s ease;
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #6495ff, #ffa500);
    border-radius: 10px;
    transition: width 0.5s ease;
    z-index: -1;
}

.nav a:hover::before {
    width: 100%;
}

.nav a:hover {
    color: #000011;
    text-shadow: 0 0 20px rgba(100, 149, 255, 0.9);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(100, 149, 255, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-radius: 30px;
    margin-bottom: 4rem;
    border: 3px solid rgba(100, 149, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 149, 255, 0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    color: #6495ff;
    text-shadow: 0 0 50px rgba(100, 149, 255, 0.9);
    margin-bottom: 2rem;
    animation: pulse 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { 
        text-shadow: 0 0 50px rgba(100, 149, 255, 0.9);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 70px rgba(100, 149, 255, 1), 0 0 90px rgba(100, 149, 255, 0.7);
        transform: scale(1.03);
    }
}

.hero p {
    font-size: 1.4rem;
    color: #b3d9ff;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Game Container */
.game-container {
    background: linear-gradient(135deg, #000022 0%, #000044 100%);
    border-radius: 25px;
    padding: 3rem;
    margin: 3rem 0;
    border: 4px solid #6495ff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #6495ff, #ffa500, #6495ff);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.game-container h2 {
    color: #6495ff;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    text-shadow: 0 0 25px rgba(100, 149, 255, 0.7);
}

.game-frame {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Notices */
.notices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 5rem 0;
}

.notice {
    background: linear-gradient(135deg, #000022 0%, #000044 100%);
    padding: 3rem;
    border-radius: 25px;
    border-left: 8px solid #6495ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 149, 255, 0.08) 0%, rgba(255, 165, 0, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.notice:hover::before {
    opacity: 1;
}

.notice:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 149, 255, 0.3);
}

.notice h3 {
    color: #6495ff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.notice p {
    color: #d9ecff;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #000011 0%, #000022 100%);
    border-top: 4px solid #6495ff;
    padding: 4rem 0;
    margin-top: 6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #6495ff 50%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #b3d9ff;
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
}

.footer-links a:hover {
    color: #6495ff;
    background: rgba(100, 149, 255, 0.15);
    text-shadow: 0 0 15px rgba(100, 149, 255, 0.7);
}

.footer p {
    color: #8099b3;
    font-size: 1rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 17, 0.95);
    backdrop-filter: blur(20px);
}

.age-modal-content {
    background: linear-gradient(135deg, #000022 0%, #000044 100%);
    margin: 15% auto;
    padding: 5rem;
    border: 4px solid #6495ff;
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 149, 255, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.age-modal h2 {
    color: #6495ff;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    text-shadow: 0 0 30px rgba(100, 149, 255, 0.7);
    position: relative;
    z-index: 1;
}

.age-modal p {
    color: #e6f7ff;
    margin-bottom: 3rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.age-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.age-btn {
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 15px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.age-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.age-btn:hover::before {
    left: 100%;
}

.age-btn.yes {
    background: linear-gradient(135deg, #6495ff, #ffa500);
    color: #000011;
    box-shadow: 0 8px 25px rgba(100, 149, 255, 0.5);
}

.age-btn.yes:hover {
    background: linear-gradient(135deg, #ffa500, #6495ff);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(100, 149, 255, 0.7);
}

.age-btn.no {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.age-btn.no:hover {
    background: linear-gradient(135deg, #888, #666);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #000022 0%, #000044 100%);
        flex-direction: column;
        padding: 2rem;
        border-top: 4px solid #6495ff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav li {
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .game-frame {
        height: 500px;
    }
    
    .notices {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .age-modal-content {
        margin: 20% auto;
        padding: 3rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.8rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .game-frame {
        height: 400px;
    }
}