@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-dark: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-gray);
    transition: all 0.3s;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--text-white);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 3px;
}

.overlay-nav {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
}

.overlay-nav.visible {
    display: flex;
}

.overlay-nav a {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero */
.hero-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 60px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.3) 0%, transparent 40%),
        var(--bg-dark);
}

.hero-box {
    text-align: center;
    max-width: 800px;
}

.hero-box h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-box p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-2);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
    transition: all 0.3s;
}

.gradient-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.5);
}

/* Notice Cards */
.notices {
    padding: 4rem 2rem;
}

.notices-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.notice-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s;
}

.notice-item:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 147, 251, 0.5);
}

.notice-item .emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notice-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.notice-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Game Display */
.game-display {
    padding: 4rem 2rem;
    background: 
        radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.15) 0%, transparent 50%);
}

.game-display h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.game-wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 16px;
    display: block;
}

/* Benefits */
.benefits {
    padding: 5rem 2rem;
}

.benefits h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.benefit-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
}

.benefit-card .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Page Content */
.page-section {
    padding: 100px 2rem 4rem;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 10% 90%, rgba(102, 126, 234, 0.2) 0%, transparent 30%),
        var(--bg-dark);
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.content-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-box h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-white);
}

.content-box p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.content-box ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-gray);
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-header {
    text-align: center;
    padding: 0 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.play-header h1 {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-hint {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.game-hint p {
    margin: 0;
    color: var(--text-white);
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-links {
    margin-bottom: 1.5rem;
}

.help-links p {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.help-links a {
    color: var(--text-white);
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.help-links a:hover {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-copy {
    color: var(--text-gray);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Age Popup */
.age-popup {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-popup.gone {
    display: none;
}

.age-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 450px;
    margin: 1rem;
    backdrop-filter: blur(20px);
}

.age-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.age-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-btns button {
    padding: 0.9rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-yes {
    background: var(--gradient-2);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.05);
}

.btn-no {
    background: transparent;
    border: 2px solid var(--glass-border) !important;
    color: var(--text-white);
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .top-bar {
        padding: 1rem;
    }
    
    .site-logo {
        font-size: 1.4rem;
    }
    
    .hero-area {
        padding: 80px 1rem 40px;
    }
    
    .game-wrapper iframe {
        height: 400px;
    }
    
    .content-box {
        padding: 2rem 1.5rem;
    }
    
    .age-content {
        padding: 2rem;
    }
    
    .age-btns {
        flex-direction: column;
    }
    
    .help-links a {
        display: block;
        margin: 0.5rem 0;
    }
}
