:root {
    --pine-green: #2d5a3d;
    --forest-green: #4a8f5e;
    --sage-green: #7cb89d;
    --mint-cream: #e8f5e9;
    --breeze-blue: #b3d9e6;
    --sky-blue: #87ceeb;
    --earth-brown: #8b7355;
    --sand-beige: #f5e6d3;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: rgba(45, 90, 61, 0.1);
    --shadow-hover: rgba(45, 90, 61, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

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

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

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

.modal-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.modal-disclaimer {
    font-size: 14px;
    font-style: italic;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    text-align: left;
}

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

.checkbox-container label {
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pine-green);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-banner.active {
    display: block;
}

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

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

.cookie-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-link {
    color: var(--mint-cream);
    text-decoration: underline;
}

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

.navbar {
    padding: 15px 0;
}

.navbar .container {
    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: bold;
    color: var(--pine-green);
    transition: transform 0.3s ease;
}

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

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--pine-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--forest-green);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mint-cream) 0%, var(--breeze-blue) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(74, 143, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(179, 217, 230, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 0;
}

.hero-title {
    font-size: 56px;
    color: var(--pine-green);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

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

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pine-green), var(--forest-green));
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--pine-green);
    border: 2px solid var(--pine-green);
}

.btn-secondary:hover {
    background: var(--pine-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.games-section,
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--pine-green);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

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

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

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

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

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

.game-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.features-section {
    background: var(--mint-cream);
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--shadow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--pine-green);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--pine-green), var(--forest-green));
    color: var(--white);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

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

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

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

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

.footer-column a:hover {
    color: var(--sage-green);
    opacity: 1;
}

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

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

.disclaimer-box p {
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.8;
}

.resource-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.resource-links a {
    color: var(--breeze-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-links a:hover {
    color: var(--sky-blue);
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

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

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .resource-links {
        flex-direction: column;
        gap: 10px;
    }
}

.page-header {
    background: linear-gradient(135deg, var(--mint-cream) 0%, var(--breeze-blue) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    color: var(--pine-green);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    padding: 60px 0;
}

.content-section h2 {
    color: var(--pine-green);
    margin-bottom: 20px;
    font-size: 32px;
}

.content-section h3 {
    color: var(--forest-green);
    margin: 30px 0 15px;
    font-size: 24px;
}

.content-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    margin-left: 30px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.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(--pine-green);
    margin-bottom: 15px;
}

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

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

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

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--pine-green);
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--pine-green);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-hover);
    animation: slideInRight 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.error {
    background: #d32f2f;
}

.notification.success {
    background: var(--forest-green);
}