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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(to bottom, #1a1110 0%, #2d1810 50%, #3d2010 100%);
    color: #f5e6d3;
    line-height: 1.7;
    min-height: 100vh;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.age-modal.show {
    display: flex;
}

.age-modal-box {
    background: linear-gradient(135deg, #2d1810 0%, #3d2010 100%);
    padding: 60px 40px;
    border-radius: 25px;
    border: 3px solid #ff6b35;
    box-shadow: 0 0 60px rgba(255, 107, 53, 0.6);
    text-align: center;
    max-width: 550px;
    width: 100%;
}

.flame-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.age-modal-box h2 {
    font-family: 'Playfair Display', serif;
    color: #ff6b35;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.age-modal-box p {
    font-size: 1.15em;
    margin-bottom: 15px;
}

.age-action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 35px;
}

.age-btn-confirm, .age-btn-deny {
    padding: 18px 45px;
    font-size: 1.15em;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.age-btn-confirm {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9051 100%);
    color: white;
}

.age-btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.age-btn-deny {
    background: #444;
    color: white;
}

.age-btn-deny:hover {
    background: #666;
}

/* Site Layout */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(to bottom, #1a1110 0%, #2d1810 100%);
    border-right: 3px solid #ff6b35;
    padding: 40px 25px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.brand {
    text-align: center;
    margin-bottom: 50px;
}

.brand svg {
    margin-bottom: 15px;
}

.brand h1 {
    font-family: 'Playfair Display', serif;
    color: #ff6b35;
    font-size: 2.2em;
    font-weight: 900;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 60px;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #f5e6d3;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.05em;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: #ff6b35;
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 144, 81, 0.25) 100%);
    border-color: #ff6b35;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 107, 53, 0.3);
}

.sidebar-footer h4 {
    font-family: 'Playfair Display', serif;
    color: #ff9051;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.sidebar-footer a {
    display: block;
    color: #d4b89e;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.sidebar-footer a:hover {
    color: #ff6b35;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    background: #ff6b35;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 144, 81, 0.1) 100%);
    padding: 60px 40px;
    border-radius: 20px;
    border: 3px solid #ff6b35;
    text-align: center;
    margin-bottom: 50px;
}

.hero-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: #ff6b35;
    margin-bottom: 25px;
    font-weight: 900;
}

.hero-text {
    font-size: 1.3em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Info Section */
.info-section, .critical-info, .game-showcase, .about-emberith, .why-choose, .final-call {
    margin-bottom: 60px;
}

.info-section h3, .critical-info h3, .game-showcase h3, .about-emberith h3, .why-choose h3, .final-call h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3em;
    color: #ff6b35;
    margin-bottom: 25px;
    font-weight: 700;
}

.info-section p, .why-choose p, .final-call p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Highlight Boxes */
.highlight-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-box {
    background: rgba(255, 107, 53, 0.1);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-5px);
    border-color: #ff6b35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.box-emoji {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.highlight-box h4 {
    font-family: 'Playfair Display', serif;
    color: #ff9051;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Warning Blocks */
.warning-blocks {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.warning-block {
    padding: 35px;
    border-radius: 15px;
    border: 3px solid;
}

.warning-block.red {
    background: rgba(255, 50, 50, 0.1);
    border-color: #ff3232;
}

.warning-block.orange {
    background: rgba(255, 140, 0, 0.1);
    border-color: #ff8c00;
}

.warning-block.yellow {
    background: rgba(255, 200, 0, 0.1);
    border-color: #ffc800;
}

.warning-block h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ff6b35;
}

/* Game Showcase */
.game-description {
    font-size: 1.15em;
    margin-bottom: 35px;
    text-align: center;
}

.game-embed {
    max-width: 950px;
    margin: 0 auto 30px;
    border: 4px solid #ff6b35;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.4);
}

.game-iframe {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

.game-note {
    background: rgba(255, 107, 53, 0.15);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ff6b35;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.philosophy-item {
    background: rgba(255, 107, 53, 0.08);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.philosophy-item h4 {
    font-family: 'Playfair Display', serif;
    color: #ff9051;
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* Feature Stats */
.feature-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 107, 53, 0.12);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid #ff6b35;
    text-align: center;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    color: #ff6b35;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.15em;
    color: #d4b89e;
    font-weight: 600;
}

/* Page Header (for sub-pages) */
.page-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 144, 81, 0.1) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    border: 3px solid #ff6b35;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: #ff6b35;
    margin-bottom: 15px;
    font-weight: 900;
}

.page-header p {
    font-size: 1.2em;
    color: #d4b89e;
}

/* Play Instructions */
.play-instructions {
    margin-bottom: 50px;
}

.play-instructions h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #ff6b35;
    margin-bottom: 30px;
    text-align: center;
}

.instruction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.inst-card {
    background: rgba(255, 107, 53, 0.1);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.inst-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.inst-card h4 {
    font-family: 'Playfair Display', serif;
    color: #ff9051;
    font-size: 1.4em;
    margin-bottom: 12px;
}

/* Game Area */
.game-area {
    margin-bottom: 50px;
}

.game-wrapper {
    max-width: 950px;
    margin: 0 auto;
    border: 4px solid #ff6b35;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.4);
}

.game-player {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

/* Play Reminders Section */
.play-reminders-section {
    margin-bottom: 50px;
}

.play-reminders-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #ff6b35;
    margin-bottom: 25px;
    text-align: center;
}

.reminder-box {
    background: rgba(255, 107, 53, 0.15);
    padding: 35px;
    border-radius: 15px;
    border: 3px solid #ff6b35;
    max-width: 850px;
    margin: 0 auto;
}

.reminder-list {
    list-style-position: inside;
    font-size: 1.1em;
}

.reminder-list li {
    margin-bottom: 15px;
}

/* Enjoy Message */
.enjoy-message {
    text-align: center;
}

.enjoy-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: #ff6b35;
    margin-bottom: 20px;
}

.enjoy-message p {
    font-size: 1.15em;
    max-width: 700px;
    margin: 0 auto;
}

/* Legal Document */
.legal-document {
    max-width: 950px;
    margin: 0 auto;
}

.legal-section {
    background: rgba(255, 107, 53, 0.05);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    margin-bottom: 30px;
}

.legal-section h3 {
    font-family: 'Playfair Display', serif;
    color: #ff6b35;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.legal-section p {
    margin-bottom: 18px;
    font-size: 1.05em;
}

.legal-section ul {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-section li {
    margin-bottom: 12px;
    font-size: 1.05em;
}

/* Responsive Design */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 20px 40px;
    }
    
    .hero-banner h2, .page-header h2 {
        font-size: 2em;
    }
    
    .hero-text {
        font-size: 1.1em;
    }
    
    .game-iframe, .game-player {
        height: 450px;
    }
    
    .age-modal-box {
        padding: 40px 25px;
    }
    
    .age-action-buttons {
        flex-direction: column;
    }
    
    .highlight-boxes, .instruction-cards {
        grid-template-columns: 1fr;
    }
}
