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

:root {
    --primary-color: #4a148c;
    --secondary-color: #7b1fa2;
    --accent-color: #ce93d8;
    --dark-bg: #1a0033;
    --light-text: #f3e5f5;
    --card-bg: rgba(74, 20, 140, 0.3);
    --hover-color: #9c27b0;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 100%);
    color: var(--light-text);
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(74, 20, 140, 0.9) 0%, rgba(42, 10, 80, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    box-shadow: 4px 0 20px rgba(156, 39, 176, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo-container {
    padding: 0 2rem 2rem;
    border-bottom: 2px solid var(--accent-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: 0.3s;
}

.nav-links {
    list-style: none;
    padding: 2rem 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-links a:hover {
    background: rgba(206, 147, 216, 0.2);
    border-left-color: var(--accent-color);
    padding-left: 2.5rem;
}

.nav-links a.active {
    background: rgba(206, 147, 216, 0.3);
    border-left-color: var(--accent-color);
    font-weight: 700;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.4) 0%, transparent 70%);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(206, 147, 216, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    font-style: italic;
}

.intro-section, .notice-section, .game-section, .features-section, .responsibility-section {
    margin-bottom: 3rem;
}

.intro-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(206, 147, 216, 0.3);
}

.intro-card h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.intro-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.notice-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid;
    transition: transform 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
}

.notice-primary {
    border-color: #f44336;
}

.notice-secondary {
    border-color: #2196f3;
}

.notice-tertiary {
    border-color: #ff9800;
}

.notice-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.notice-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.game-section {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(206, 147, 216, 0.3);
}

.game-section h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.game-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 75%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.5);
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(206, 147, 216, 0.2);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.features-section h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(206, 147, 216, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.responsibility-section {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
}

.responsibility-card h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.responsibility-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.responsibility-highlight {
    background: rgba(206, 147, 216, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    margin-top: 1.5rem;
}

.footer {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: rgba(26, 0, 51, 0.8);
    border-top: 2px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-links h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 0, 51, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-gate.hidden {
    display: none;
}

.age-gate-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(156, 39, 176, 0.6);
    border: 2px solid var(--accent-color);
}

.age-gate-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--accent-color);
}

.age-gate-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.age-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.age-yes {
    background: #4caf50;
    color: white;
}

.age-yes:hover {
    background: #45a049;
    transform: scale(1.05);
}

.age-no {
    background: #f44336;
    color: white;
}

.age-no:hover {
    background: #da190b;
    transform: scale(1.05);
}

.page-header {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(206, 147, 216, 0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

.play-content, .legal-content {
    max-width: 1200px;
    margin: 0 auto;
}

.play-intro {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 1px solid rgba(206, 147, 216, 0.3);
}

.play-intro h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.game-container-full {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.5);
    margin-bottom: 3rem;
}

.game-frame-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play-guide, .compatibility-notice, .reminder-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(206, 147, 216, 0.3);
}

.play-guide h3, .compatibility-notice h3, .reminder-box h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.guide-item {
    background: rgba(206, 147, 216, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.guide-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.reminder-box ul {
    list-style: none;
    padding-left: 0;
}

.reminder-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.reminder-box li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.legal-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(206, 147, 216, 0.3);
}

.legal-section h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.legal-section h3 {
    color: var(--accent-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.disclaimer-highlight {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 2px solid var(--accent-color);
}

.disclaimer-highlight h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .notice-grid, .features-grid, .guide-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .age-gate-content {
        margin: 1rem;
        padding: 2rem;
    }

    .age-gate-buttons {
        flex-direction: column;
    }

    .game-container, .game-container-full {
        padding-bottom: 120%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .intro-card, .play-intro, .legal-section, .play-guide, .compatibility-notice, .reminder-box {
        padding: 1.5rem;
    }
}
