/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maple-red: #C8102E;
    --maple-orange: #D2691E;
    --autumn-gold: #DAA520;
    --forest-green: #2D5016;
    --deep-brown: #3E2723;
    --cream: #FFF8E7;
    --light-cream: #FFFBF0;
    --border-color: #E0D5C7;
    --shadow: rgba(62, 39, 35, 0.1);
    --shadow-lg: rgba(62, 39, 35, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--deep-brown);
    background: var(--light-cream);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

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

.age-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.age-modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--deep-brown);
}

.age-modal-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.age-confirmation {
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #f0f0f0;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e8e8e8;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--maple-red);
    border-color: var(--maple-red);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 15px;
    color: var(--deep-brown);
}

.age-confirm-btn {
    background: var(--maple-red);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.age-confirm-btn:hover:not(:disabled) {
    background: #A00D25;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

.age-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--deep-brown);
    color: white;
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-content a {
    color: var(--autumn-gold);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--maple-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background: #A00D25;
    transform: scale(1.05);
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--deep-brown);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--deep-brown);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.contact-btn):after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--maple-red);
    transition: width 0.3s ease;
}

.nav-links a:not(.contact-btn):hover:after {
    width: 100%;
}

.contact-btn {
    background: var(--maple-red);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #A00D25;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

.contact-btn:after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--deep-brown);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--maple-red) 0%, var(--maple-orange) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-primary,
.cta-secondary {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-primary {
    background: white;
    color: var(--maple-red);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: var(--maple-red);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.maple-leaf {
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.maple-leaf-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.maple-leaf-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.maple-leaf-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Games Section */
.games-section {
    padding: 80px 20px;
    background: var(--cream);
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--deep-brown);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.game-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.game-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--deep-brown);
}

.game-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

.game-btn {
    display: inline-block;
    background: var(--maple-red);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.game-btn:hover {
    background: #A00D25;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--deep-brown);
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--deep-brown);
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--autumn-gold);
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

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

.footer-column a:hover {
    color: var(--autumn-gold);
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.disclaimer-box h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--autumn-gold);
}

.disclaimer-box p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.help-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.help-links a {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.help-links a:hover {
    background: var(--maple-red);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--deep-brown) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--deep-brown);
}

.page-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--maple-red);
}

.page-content p {
    margin-bottom: 20px;
    color: #555;
}

.page-content ul,
.page-content ol {
    margin: 20px 0 20px 30px;
    color: #555;
}

.page-content li {
    margin-bottom: 10px;
}

/* Game Pages */
.game-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h1 {
    font-size: 42px;
    color: var(--deep-brown);
    margin-bottom: 10px;
}

.game-stats {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--maple-red);
    margin-top: 5px;
}

.game-board {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 5px 20px var(--shadow);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 32px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .game-board {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .age-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}