* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9333ea;
    --primary-dark: #7e22ce;
    --secondary: #1e1b4b;
    --dark: #0f0a1e;
    --darker: #0a0614;
    --light: #f3f4f6;
    --gray: #9ca3af;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, var(--secondary) 100%);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--dark);
    border-bottom: 2px solid var(--primary);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--light);
    text-decoration: none;
    padding: 1rem 20px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    transition: background 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(147, 51, 234, 0.2);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Notices Section */
.notices {
    padding: 4rem 0;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.notice-card {
    background: rgba(147, 51, 234, 0.1);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notice-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Game Section */
.game-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.4);
    border: 3px solid var(--primary);
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.game-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: rgba(30, 27, 75, 0.3);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: rgba(147, 51, 234, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    border: 3px solid var(--primary);
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.6);
}

.age-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-modal-content h2 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.age-modal-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.age-modal-notice {
    color: var(--gray);
    font-size: 0.95rem !important;
}

.age-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.age-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-yes {
    background: var(--primary);
    color: white;
}

.age-yes:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.age-no {
    background: #ef4444;
    color: white;
}

.age-no:hover {
    background: #dc2626;
}

/* Play Page Styles */
.play-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.page-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.play-info-box {
    background: rgba(147, 51, 234, 0.1);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.play-info-box h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.info-list li:last-child {
    border-bottom: none;
}

.game-container-play {
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.4);
    border: 3px solid var(--primary);
}

.game-frame-play {
    width: 100%;
    height: 100%;
    border: none;
}

.play-notice {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Pages */
.content-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.content-box {
    background: rgba(30, 27, 75, 0.3);
    border-radius: 15px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-box h2 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 2px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

.responsible-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.responsible-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.responsible-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    color: var(--gray);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .age-modal-content {
        margin: 20px;
        padding: 2rem;
    }

    .age-modal-buttons {
        flex-direction: column;
    }

    .content-box {
        padding: 2rem 1.5rem;
    }

    .game-container,
    .game-container-play {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}