* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #D2691E;
    --primary-orange: #FFA500;
    --dark-brown: #8B4513;
    --light-cream: #FFF8DC;
    --forest-green: #228B22;
    --text-dark: #2C1810;
    --text-light: #FFFFFF;
    --bg-light: #FEF5E7;
    --shadow-sm: 0 2px 8px rgba(210, 105, 30, 0.15);
    --shadow-lg: 0 8px 24px rgba(210, 105, 30, 0.25);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
}

/* Age Modal */
.age-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.age-modal.hidden {
    display: none;
}

.age-modal-box {
    background: linear-gradient(135deg, var(--light-cream) 0%, #FFFFFF 100%);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid var(--primary-orange);
}

.age-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.age-modal-box h2 {
    color: var(--primary-brown);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.age-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.age-disclaimer {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.age-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-age-yes,
.btn-age-no {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-age-yes {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-brown) 100%);
    color: var(--text-light);
}

.btn-age-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 105, 30, 0.4);
}

.btn-age-no {
    background-color: #E0E0E0;
    color: var(--text-dark);
}

.btn-age-no:hover {
    background-color: #BDBDBD;
}

/* Navigation */
.navbar {
    background: linear-gradient(90deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background-color: var(--primary-orange);
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--dark-brown) 50%, var(--primary-brown) 100%);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 139, 34, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.5rem;
    color: var(--light-cream);
    margin-bottom: 2rem;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.05rem;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-brown) 100%);
    color: var(--text-light);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Content Sections */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.section-intro,
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Welcome Section */
.welcome-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.welcome-box {
    background: linear-gradient(135deg, var(--light-cream) 0%, #FFFFFF 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 3px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.welcome-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.box-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.welcome-box h3 {
    color: var(--primary-brown);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Game Showcase */
.game-showcase {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.game-embed-container {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
}

.game-notice-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #FFF3CD;
    border: 3px solid #FFA500;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* Notices Section */
.notices-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
}

.notices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.notice-box {
    padding: 2rem;
    border-radius: 16px;
    border: 3px solid;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.notice-emoji {
    font-size: 2.5rem;
}

.notice-box h3 {
    font-size: 1.5rem;
    margin: 0;
}

.red-notice {
    background-color: #FFE5E5;
    border-color: #FF4444;
}

.red-notice h3 {
    color: #CC0000;
}

.orange-notice {
    background-color: #FFF3E0;
    border-color: #FF9800;
}

.orange-notice h3 {
    color: #E65100;
}

.green-notice {
    background-color: #E8F5E9;
    border-color: #4CAF50;
}

.green-notice h3 {
    color: #2E7D32;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-brown);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    text-align: center;
    color: var(--text-light);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-cta {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--text-dark);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #FFB733;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Play Page */
.play-header {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.95;
}

.instructions-section {
    padding: 3rem 0;
    background-color: #FFFFFF;
}

.instructions-box {
    background: linear-gradient(135deg, var(--light-cream) 0%, #FFFFFF 100%);
    padding: 2rem;
    border-radius: 16px;
    border-left: 6px solid var(--primary-orange);
}

.instructions-box h2 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.instructions-content p {
    margin-bottom: 1rem;
}

.play-game-section {
    padding: 3rem 0 5rem;
    background-color: var(--bg-light);
}

.game-play-container {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.game-fullscreen {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 12px;
}

.play-reminder {
    margin-top: 2rem;
}

.reminder-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: #FFF3CD;
    border: 3px solid #FFA500;
    padding: 2rem;
    border-radius: 12px;
}

.reminder-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.reminder-text h3 {
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
}

/* Legal Pages */
.legal-header {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-light);
}

.legal-updated {
    font-size: 1rem;
    opacity: 0.9;
}

.legal-section {
    padding: 4rem 0;
    background-color: #FFFFFF;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-article {
    margin-bottom: 3rem;
}

.legal-article h2 {
    color: var(--primary-brown);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-orange);
}

.legal-article h3 {
    color: var(--dark-brown);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-article ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.legal-article li {
    margin-bottom: 0.75rem;
}

.legal-article a {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
}

.legal-article a:hover {
    text-decoration: underline;
}

.legal-summary-box {
    background: linear-gradient(135deg, var(--light-cream) 0%, #FFFFFF 100%);
    border: 3px solid var(--primary-orange);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.legal-summary-box h3 {
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.warning-banner {
    background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    color: var(--text-light);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    text-align: center;
}

.warning-banner h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.warning-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--dark-brown) 0%, #5A3825 100%);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.footer-slogan {
    opacity: 0.85;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.footer-column a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.75rem;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.footer-notice {
    font-weight: 600;
    color: var(--primary-orange);
}

/* Responsive */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--dark-brown);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        border-radius: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .game-iframe {
        height: 400px;
    }

    .game-fullscreen {
        height: 500px;
    }

    .welcome-grid,
    .notices-container,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .content-wrapper {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .game-iframe {
        height: 300px;
    }

    .game-fullscreen {
        height: 400px;
    }

    .age-modal-box {
        padding: 2rem 1.5rem;
    }

    .age-actions {
        flex-direction: column;
    }
}
