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

:root {
    --primary-green: #2D5F3F;
    --secondary-green: #3A7D5C;
    --light-green: #4A9D6F;
    --accent-teal: #2C8B8B;
    --light-teal: #4DB8B8;
    --sand: #E8D5B7;
    --light-sand: #F5EFE6;
    --dark-text: #1A3A2E;
    --light-text: #F5F5F5;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

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

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

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a:hover:not(.btn) {
    color: var(--primary-green);
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--accent-teal);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--light-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 10c-5 0-10 3-10 10 0 5 2 10 5 15 2 3 3 5 5 5s3-2 5-5c3-5 5-10 5-15 0-7-5-10-10-10z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 160px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: linear-gradient(135deg, var(--sand) 0%, var(--light-sand) 100%);
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 40%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-teal) 100%);
    animation: float 3s ease-in-out infinite 0.5s;
}

.card-3 {
    top: 60%;
    left: 70%;
    transform: translate(-50%, -50%) rotate(-5deg);
    background: linear-gradient(135deg, var(--light-green) 0%, var(--secondary-green) 100%);
    animation: float 3s ease-in-out infinite 1s;
}

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

.games-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-text);
    opacity: 0.8;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--light-sand);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.game-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-sand) 0%, var(--sand) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-teal) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--light-sand);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.disclaimer-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.disclaimer-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.disclaimer-box p {
    margin-bottom: 1rem;
}

.support-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-links a {
    color: var(--light-sand);
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--light-sand);
    border-radius: 8px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-container label {
    cursor: pointer;
    user-select: none;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.age-buttons .btn {
    flex: 1;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px var(--shadow);
    z-index: 9999;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.cookie-content p {
    margin: 0;
}

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

.hidden {
    display: none;
}

.page-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 2rem;
    color: var(--secondary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--accent-teal);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.game-container {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-sand);
    border-radius: 12px;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.8;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 4px 10px var(--shadow);
        transition: left 0.3s ease;
        align-items: flex-start;
    }

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

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

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        display: none;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .age-buttons {
        flex-direction: column;
    }

    .support-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}