@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b5cf6;
    --secondary-color: #6366f1;
    --bg-dark: #0f0f23;
    --bg-darker: #06060f;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #fbbf24;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.page-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(139, 92, 246, 0.3);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.logo-container {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.logo-svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.site-name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    background: rgba(139, 92, 246, 0.2);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    color: white;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem;
}

header {
    margin-bottom: 3rem;
}

.header-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Notice Boxes */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.notice-box {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.notice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.notice-box h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.notice-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Content Sections */
.content-section {
    background: rgba(15, 15, 35, 0.5);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-section ul, .content-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Game Container */
.game-container {
    background: rgba(6, 6, 15, 0.8);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid rgba(139, 92, 246, 0.4);
    text-align: center;
}

.game-container iframe {
    width: 100%;
    max-width: 900px;
    height: 600px;
    border: none;
    border-radius: 8px;
}

/* Footer */
footer {
    background: rgba(6, 6, 15, 0.9);
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.footer-links a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.age-modal.show {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.5);
}

.age-modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.age-modal h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.age-modal p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.age-btn-yes {
    background: var(--primary-color);
    color: white;
}

.age-btn-yes:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.age-btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.age-btn-no:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ef4444;
}

/* Responsive Design */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 5rem 1.5rem 2rem;
    }

    .header-title {
        font-size: 2rem;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .game-container iframe {
        height: 400px;
    }

    .age-modal-content {
        margin: 1rem;
        padding: 2rem;
    }

    .age-buttons {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
