* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-dark: #4a148c;
    --purple-main: #7b1fa2;
    --purple-light: #9c27b0;
    --gold: #ffd700;
    --gold-dark: #ffb300;
    --cream: #fff8e1;
    --dark-bg: #1a1a2e;
    --text-dark: #333;
    --text-light: #f5f5f5;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
}

/* Age Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.age-modal.hidden {
    display: none;
}

.age-modal-inner {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-main));
    padding: 50px 45px;
    border-radius: 25px;
    text-align: center;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 3px solid var(--gold);
    margin: 20px;
}

.age-modal-dragon {
    font-size: 90px;
    margin-bottom: 25px;
    animation: dragonFloat 3s ease-in-out infinite;
}

@keyframes dragonFloat {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.age-modal-inner h2 {
    font-family: 'Merriweather', serif;
    color: var(--gold);
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.age-modal-inner p {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 15px;
}

.age-modal-small {
    font-size: 14px !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.age-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.age-btn {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.age-yes {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--purple-dark);
}

.age-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.age-no {
    background: #616161;
    color: white;
}

.age-no:hover {
    background: #424242;
}

/* Layout */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--purple-dark), var(--dark-bg));
    color: var(--text-light);
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}

.sidebar-header {
    padding: 0 25px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--gold);
}

.logo-dragon {
    font-size: 42px;
    animation: dragonPulse 4s ease-in-out infinite;
}

@keyframes dragonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.logo-title {
    font-family: 'Merriweather', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 215, 0, 0.15);
    border-left: 5px solid var(--gold);
    color: var(--gold);
}

.nav-icon {
    font-size: 24px;
}

.sidebar-footer {
    padding: 0 25px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.sidebar-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--purple-main);
    border-radius: 2px;
    transition: 0.3s;
}

.top-bar-logo {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--purple-main);
    display: none;
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-section::before {
    content: '🐉';
    position: absolute;
    font-size: 500px;
    opacity: 0.08;
    top: -100px;
    right: -100px;
    animation: dragonRotate 30s linear infinite;
}

@keyframes dragonRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 20, 140, 0.4);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 30px;
    max-width: 900px;
}

.banner-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 58px;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.banner-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 35px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-cta {
    display: inline-block;
    padding: 18px 50px;
    background: var(--gold);
    color: var(--purple-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

/* Content Sections */
.content-section,
.game-showcase,
.features-showcase,
.story-section,
.play-section {
    padding: 70px 0;
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.content-section h2,
.game-showcase h2,
.features-showcase h2,
.story-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 42px;
    color: var(--purple-dark);
    margin-bottom: 30px;
    text-align: center;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-box {
    padding: 40px 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-8px);
}

.box-purple {
    background: linear-gradient(135deg, #e1bee7, #ce93d8);
    border-bottom: 5px solid var(--purple-main);
}

.box-gold {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    border-bottom: 5px solid var(--gold-dark);
}

.box-red {
    background: linear-gradient(135deg, #ffccbc, #ffab91);
    border-bottom: 5px solid #e64a19;
}

.info-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.info-box h3 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    color: var(--purple-dark);
    margin-bottom: 15px;
}

.info-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Game Showcase */
.game-showcase {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-light));
    color: white;
}

.game-showcase h2 {
    color: var(--gold);
}

.section-desc {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--cream);
}

.game-display {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.game-iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 12px;
    background: white;
}

.game-notice {
    text-align: center;
    margin-top: 35px;
    font-size: 16px;
}

.game-notice p {
    margin: 12px 0;
    color: var(--cream);
}

/* Features Showcase */
.features-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.feature-box {
    padding: 35px 28px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--purple-main);
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.feature-emoji {
    font-size: 50px;
    display: block;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    color: var(--purple-dark);
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* Story Section */
.story-section {
    background: linear-gradient(135deg, var(--cream), #ffeaa7);
}

.story-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 25px;
}

/* Play Page */
.page-header {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    padding: 60px 0;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-subtitle {
    font-size: 19px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.play-section {
    background: white;
}

.play-instructions h2 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: var(--purple-dark);
    text-align: center;
    margin: 60px 0 40px;
}

.instruction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.inst-card {
    display: flex;
    gap: 20px;
    padding: 35px;
    background: linear-gradient(135deg, var(--cream), white);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--gold);
}

.inst-number {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    flex-shrink: 0;
}

.inst-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: var(--purple-dark);
    margin-bottom: 12px;
}

.inst-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.play-reminder {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid #ff9800;
}

.play-reminder h3 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    color: var(--purple-dark);
    margin-bottom: 20px;
}

.play-reminder ul {
    list-style-position: inside;
    font-size: 16px;
    color: #555;
    line-height: 2;
}

/* Legal Pages */
.legal-header {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    padding: 60px 0;
    color: white;
    text-align: center;
}

.legal-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    margin-bottom: 15px;
}

.legal-date {
    font-size: 17px;
    opacity: 0.9;
}

.legal-body {
    padding: 70px 0;
    background: white;
}

.legal-article {
    margin-bottom: 50px;
}

.legal-article h2 {
    font-family: 'Merriweather', serif;
    font-size: 30px;
    color: var(--purple-dark);
    margin-bottom: 20px;
}

.legal-article h3 {
    font-size: 22px;
    color: var(--purple-main);
    margin: 25px 0 15px;
}

.legal-article p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.legal-article ul {
    margin: 20px 0 20px 35px;
}

.legal-article li {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.highlight-box {
    background: linear-gradient(135deg, #e1bee7, #ce93d8);
    padding: 35px;
    border-radius: 15px;
    border-left: 6px solid var(--purple-dark);
}

.final-notice {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-main));
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
}

.final-notice p {
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--dark-bg), #0f0f1e);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Merriweather', serif;
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 14px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .sidebar {
        left: -280px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .top-bar-logo {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -6px);
    }

    .banner-content h1 {
        font-size: 42px;
    }

    .banner-text {
        font-size: 17px;
    }

    .content-section h2,
    .game-showcase h2,
    .features-showcase h2,
    .story-section h2 {
        font-size: 32px;
    }

    .game-iframe {
        height: 450px;
    }

    .age-modal-inner {
        padding: 40px 30px;
    }

    .age-modal-dragon {
        font-size: 70px;
    }

    .age-modal-inner h2 {
        font-size: 26px;
    }

    .page-header h1,
    .legal-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 32px;
    }

    .info-boxes,
    .features-layout,
    .instruction-cards {
        grid-template-columns: 1fr;
    }

    .game-iframe {
        height: 350px;
    }
}
