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

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    line-height: 1.6;
}

.page-layout {
    display: flex;
    min-height: 100vh;
}

.side-panel {
    width: 260px;
    background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.logo-area {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 3px solid #4caf50;
}

.logo-text {
    font-size: 32px;
    margin: 15px 0 5px;
    color: #4caf50;
    font-weight: 700;
}

.logo-tagline {
    font-size: 16px;
    opacity: 0.9;
}

.side-nav {
    padding: 20px 0;
}

.nav-btn {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-weight: 600;
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(76, 175, 80, 0.3);
    border-left-color: #4caf50;
}

.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: #2e7d32;
    border: 3px solid #4caf50;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #4caf50;
    margin: 5px 0;
    border-radius: 2px;
}

.main-area {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
}

.splash {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
}

.splash h1 {
    font-size: 44px;
    margin-bottom: 20px;
    font-weight: 700;
}

.splash-text {
    font-size: 19px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.warning-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.warn-box {
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.red {
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
}

.yellow {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
}

.blue {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
}

.warn-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.warn-icon {
    font-size: 55px;
    display: block;
    margin-bottom: 15px;
}

.warn-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1b5e20;
}

.warn-box p {
    color: #2e7d32;
    line-height: 1.6;
}

.story-section, .explainer {
    margin-bottom: 60px;
}

.story-section h2, .explainer h2 {
    font-size: 36px;
    color: #2e7d32;
    margin-bottom: 25px;
    text-align: center;
}

.story-content, .explainer-box {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #4caf50;
}

.story-content p, .explainer-box p {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #2e7d32;
}

.game-display {
    margin-bottom: 60px;
}

.game-display h2 {
    font-size: 38px;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 15px;
}

.game-intro {
    text-align: center;
    font-size: 18px;
    color: #1b5e20;
    max-width: 700px;
    margin: 0 auto 35px;
}

.game-frame-wrapper {
    background: white;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.2);
    border: 4px solid #4caf50;
}

.game-window {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 15px;
}

.game-note {
    margin-top: 25px;
    text-align: center;
    font-size: 17px;
    color: #2e7d32;
}

.benefits {
    margin-bottom: 60px;
}

.benefits h2 {
    font-size: 38px;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 45px;
}

.benefits-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.benefit-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-top: 4px solid #4caf50;
}

.benefit-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.benefit-emoji {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
}

.benefit-box h3 {
    font-size: 22px;
    color: #2e7d32;
    margin-bottom: 12px;
}

.benefit-box p {
    color: #1b5e20;
    line-height: 1.6;
}

.site-footer {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 50px 40px 25px;
    border-radius: 25px 25px 0 0;
    margin-top: 80px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #4caf50;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 0.7;
}

.footer-end {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
    font-size: 14px;
}

.age-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(76, 175, 80, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

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

.age-box {
    background: white;
    padding: 45px 40px;
    border-radius: 25px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 5px solid #4caf50;
}

.age-box h2 {
    font-size: 34px;
    color: #2e7d32;
    margin: 20px 0;
}

.age-box p {
    color: #1b5e20;
    line-height: 1.7;
    margin-bottom: 15px;
}

.age-info {
    font-weight: 600;
    font-size: 15px;
}

.age-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn-green, .btn-gray {
    padding: 15px 35px;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-green {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

.btn-green:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.btn-gray {
    background: #bdbdbd;
    color: #424242;
}

.btn-gray:hover {
    background: #9e9e9e;
    transform: scale(1.05);
}

.play-hero {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(102, 187, 106, 0.2));
    border-radius: 20px;
    margin-bottom: 50px;
}

.play-hero h1 {
    font-size: 42px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.play-hero p {
    font-size: 18px;
    color: #1b5e20;
}

.setup-guide {
    margin-bottom: 50px;
}

.setup-guide h3 {
    font-size: 28px;
    color: #2e7d32;
    margin-bottom: 25px;
    text-align: center;
}

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

.setup-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #4caf50;
}

.setup-card strong {
    color: #2e7d32;
    font-size: 17px;
}

.play-section {
    margin-bottom: 50px;
}

.play-alert {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #fdd835;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 42px;
    color: #2e7d32;
    margin-bottom: 10px;
    text-align: center;
}

.updated-date {
    text-align: center;
    color: #1b5e20;
    opacity: 0.7;
    margin-bottom: 50px;
    font-style: italic;
}

.terms-section {
    background: white;
    padding: 35px;
    margin-bottom: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4caf50;
}

.terms-section.critical {
    border-left-color: #ff5722;
    border-left-width: 7px;
    background: linear-gradient(to right, rgba(255, 87, 34, 0.1), white);
}

.terms-section h2 {
    font-size: 26px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.terms-section p, .terms-section ul {
    color: #1b5e20;
    line-height: 1.8;
    margin-bottom: 15px;
}

.terms-section ul {
    padding-left: 25px;
}

.terms-section li {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .side-panel {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .side-panel.active {
        transform: translateX(0);
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-area {
        margin-left: 0;
        padding: 100px 25px 30px;
    }
    
    .splash h1 {
        font-size: 32px;
    }
    
    .game-window {
        height: 450px;
    }
    
    .warning-boxes {
        grid-template-columns: 1fr;
    }
    
    .benefits-layout {
        grid-template-columns: 1fr;
    }
    
    .age-box {
        margin: 20px;
        padding: 35px 25px;
    }
    
    .age-btns {
        flex-direction: column;
    }
    
    .btn-green, .btn-gray {
        width: 100%;
    }
}
