@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --color-forest: #2c5f4f;
    --color-forest-dark: #1a3d2f;
    --color-forest-light: #3d7a65;
    --color-maple: #d4504c;
    --color-maple-dark: #b13d39;
    --color-maple-light: #e67370;
    --color-snow: #f8f9fa;
    --color-ice: #e8f4f8;
    --color-stone: #5a6c7d;
    --color-stone-light: #8b9bb0;
    --color-birch: #f4ebe1;
    --color-aurora: #4db8a8;
    --color-aurora-light: #7dd4c7;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-forest-dark);
    background-color: var(--color-snow);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-maple), var(--color-maple-dark));
    color: white;
}

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

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

.btn-secondary:hover {
    background: var(--color-forest-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s ease;
}

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

.age-verification {
    text-align: center;
}

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

.age-verification h2 {
    color: var(--color-forest-dark);
    margin-bottom: 16px;
}

.age-verification p {
    color: var(--color-stone);
    margin-bottom: 32px;
}

.checkbox-wrapper {
    margin-bottom: 24px;
}

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

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

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-stone-light);
    border-radius: 4px;
    transition: var(--transition-fast);
    flex-shrink: 0;
    position: relative;
}

.checkbox-container:hover .checkmark {
    border-color: var(--color-maple);
}

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

.checkbox-container input:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    color: var(--color-forest-dark);
    text-align: left;
    font-size: 14px;
}

#age-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#age-confirm-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-forest-dark);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}

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

@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: 24px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 14px;
}

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

.cookie-link {
    color: var(--color-aurora-light);
    text-decoration: underline;
    font-size: 14px;
}

.header {
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-forest);
}

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

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--color-forest-dark);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-maple);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.contact-nav {
    background: var(--color-maple);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
}

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

.contact-nav:hover {
    background: var(--color-maple-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--color-forest);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-aurora) 50%, var(--color-ice) 100%);
    opacity: 0.1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, var(--color-maple) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--color-aurora) 0%, transparent 50%);
    opacity: 0.15;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

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

.hero-title {
    font-size: 56px;
    color: var(--color-forest-dark);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-stone);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: fadeInUp 1.2s ease;
}

.hero-disclaimer {
    animation: fadeInUp 1.4s ease;
}

.hero-disclaimer p {
    color: var(--color-stone);
    font-size: 14px;
    font-weight: 500;
}

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

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

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

.section-header h2 {
    font-size: 42px;
    color: var(--color-forest-dark);
    margin-bottom: 16px;
}

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

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

.game-card,
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
}

.game-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.game-icon,
.feature-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.game-card h3,
.feature-card h3 {
    font-size: 24px;
    color: var(--color-forest-dark);
    margin-bottom: 16px;
}

.game-card p,
.feature-card p {
    color: var(--color-stone);
    margin-bottom: 24px;
    line-height: 1.8;
}

.features-section {
    background: var(--color-birch);
}

.footer {
    background: var(--color-forest-dark);
    color: white;
    padding: 64px 0 24px;
}

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

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

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.footer-disclaimer {
    margin-bottom: 32px;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    border-left: 4px solid var(--color-maple);
}

.disclaimer-box h4 {
    color: var(--color-maple-light);
    margin-bottom: 16px;
    font-size: 18px;
}

.disclaimer-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.8;
}

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

.help-links a {
    color: var(--color-aurora-light);
    text-decoration: underline;
    font-weight: 500;
}

.help-links a:hover {
    color: white;
}

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

.content-page {
    padding: 100px 0;
}

.content-header {
    text-align: center;
    margin-bottom: 64px;
}

.content-header h1 {
    font-size: 48px;
    color: var(--color-forest-dark);
    margin-bottom: 16px;
}

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

.content-section {
    background: white;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    font-size: 32px;
    color: var(--color-forest-dark);
    margin-bottom: 24px;
}

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

.content-section p {
    color: var(--color-stone);
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--color-stone);
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.highlight-box {
    background: var(--color-ice);
    border-left: 4px solid var(--color-aurora);
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.highlight-box h3 {
    color: var(--color-forest-dark);
    margin-top: 0;
}

.game-container {
    min-height: 100vh;
    padding: 40px 0;
    background: var(--color-birch);
}

.game-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.game-header h1 {
    font-size: 42px;
    color: var(--color-forest-dark);
    margin-bottom: 16px;
}

.game-board {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 32px;
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--color-ice);
    border-radius: 8px;
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--color-stone);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-forest-dark);
}

.game-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 24px;
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: var(--transition-normal);
        gap: 16px;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .modal-content {
        padding: 32px;
    }

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

    .game-board {
        padding: 24px;
    }

    .content-section {
        padding: 32px 24px;
    }
}