* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7B2CBF;
    --primary-dark: #5A189A;
    --primary-light: #9D4EDD;
    --accent-color: #E6D5F5;
    --text-dark: #1A1A2E;
    --text-light: #F8F9FA;
    --bg-light: #FAF7FE;
    --bg-white: #FFFFFF;
    --border-color: #E0D4F0;
    --shadow: 0 4px 6px rgba(123, 44, 191, 0.1);
    --shadow-lg: 0 10px 30px rgba(123, 44, 191, 0.15);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 2rem 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sidebar-nav {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
}

.sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.sidebar-footer {
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-notice {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 1rem;
    z-index: 1001;
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--shadow);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Game Section */
.game-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.game-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.game-container {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}

.game-notice {
    background-color: #FFF3CD;
    border: 2px solid #FFC107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

/* Notices Section */
.notices-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.notices-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.notice-card {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid;
}

.notice-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.highlight-red {
    background-color: #FFE5E5;
    border-color: #FF6B6B;
}

.highlight-red h3 {
    color: #DC143C;
}

.highlight-blue {
    background-color: #E5F2FF;
    border-color: #4A90E2;
}

.highlight-blue h3 {
    color: #2E5C8A;
}

.highlight-green {
    background-color: #E5FFE5;
    border-color: #51CF66;
}

.highlight-green h3 {
    color: #2B8A3E;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 2rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    align-items: center;
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Play Page */
.play-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.play-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.play-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.play-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.game-info-box {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.game-info-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-highlight {
    color: var(--primary-dark);
    margin-top: 1rem;
}

.game-container-full {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.game-frame-full {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 8px;
}

.game-reminder {
    display: flex;
    gap: 1rem;
    background-color: #FFF3CD;
    border: 2px solid #FFC107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    align-items: center;
}

.reminder-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.reminder-content h4 {
    margin-bottom: 0.5rem;
}

/* Legal Pages */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-date {
    font-size: 0.95rem;
    opacity: 0.9;
}

.legal-content {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-section h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-notice-box {
    background-color: var(--accent-color);
    border: 3px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.legal-notice-box h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.legal-warning-box {
    background: linear-gradient(135deg, #FF6B6B 0%, #DC143C 100%);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-warning-box h2 {
    color: var(--text-light);
    border: none;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #3C096C 100%);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-info h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links a,
.footer-info a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-info a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.age-popup.hidden {
    display: none;
}

.age-popup-content {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.age-popup-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.age-popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.age-popup-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.age-notice {
    font-size: 0.95rem;
    color: #666;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.age-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-yes {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.age-yes:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.age-no {
    background-color: #E0E0E0;
    color: var(--text-dark);
}

.age-no:hover {
    background-color: #BDBDBD;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .close-sidebar {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .header {
        padding-left: 4rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .info-grid,
    .notice-grid {
        grid-template-columns: 1fr;
    }

    .game-frame {
        height: 400px;
    }

    .game-frame-full {
        height: 500px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .age-popup-content {
        padding: 2rem 1.5rem;
    }

    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .game-section,
    .info-section,
    .notices-section,
    .features-section,
    .play-section,
    .legal-content {
        padding: 2rem 0;
    }

    .game-frame {
        height: 300px;
    }

    .game-frame-full {
        height: 400px;
    }
}
