:root {
    --bg-primary: #16241A;
    --bg-secondary: #1E2F22;
    --bg-section: #25382A;
    --bg-card: rgba(44, 67, 49, 0.65);
    --bg-card-hover: rgba(53, 80, 58, 0.85);
    
    --accent-forest: #4CAF50;
    --accent-deep: #3E8E41;
    --accent-emerald: #5DBB63;
    --accent-moss: #7BAE7F;
    --accent-gold: #C8A35B;
    
    --text-primary: #F5F5F0;
    --text-secondary: #C5C9BF;
    --text-muted: #9BA091;

    --font-heading: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --max-width: 1400px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: #0d1a12;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Global Forest Wallpaper System */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/giant-forest-trees-pathway.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

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

a {
    color: var(--accent-emerald);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-moss);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Spacer Utilities */
.section-pad {
    padding: 100px 0;
}
@media (max-width: 1024px) {
    .section-pad { padding: 70px 0; }
}
@media (max-width: 768px) {
    .section-pad { padding: 50px 0; }
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent-forest), var(--accent-deep));
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-forest));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 187, 99, 0.4);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
}

/* Header */
.header {
    background: rgba(22, 36, 26, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(44, 67, 49, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

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

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-links a:hover {
    color: var(--accent-emerald);
}

/* Notice Bar (Global legal warning) */
.legal-notice-bar {
    background: rgba(37, 56, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(62, 142, 65, 0.5);
    margin-top: 80px; /* Offset for sticky header */
}

.legal-notice-bar span {
    margin: 0 10px;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px;
    background: rgba(30, 47, 34, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-primary);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 163, 91, 0.3);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.hero-tag {
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--accent-deep);
}

/* Game Section */
.game-section {
    background: rgba(22, 36, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.game-wrapper {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(62, 142, 65, 0.5);
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
}

.game-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: rgba(22, 36, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 120px 0;
    text-align: center;
}

.cta-section::before {
    display: none;
}

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

.cta-content h2 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Content Pages (About, Contact, Legal) */
.page-header {
    background: rgba(22, 36, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 160px 0 80px;
    text-align: center;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--accent-emerald);
}

.content-section {
    background: rgba(22, 36, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.content-box {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 900px;
    margin: 0 auto;
}

.content-box h2 {
    color: var(--accent-gold);
    margin-top: 2rem;
    border-bottom: 1px solid rgba(53, 80, 58, 0.8);
    padding-bottom: 10px;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box p, .content-box ul {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-box ul {
    padding-left: 20px;
}

.content-box li {
    margin-bottom: 10px;
    position: relative;
    list-style-type: disc;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: rgba(30, 47, 34, 0.6);
    border: 1px solid var(--bg-card-hover);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 2px rgba(93, 187, 99, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: rgba(22, 36, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 2px solid var(--accent-deep);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    font-size: 1.05rem;
}

.footer-links h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-emerald);
    padding-left: 5px;
}

.footer-legal-notice {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--bg-card-hover);
}

.footer-legal-notice h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.footer-legal-notice p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(44, 67, 49, 0.5);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .game-wrapper {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .legal-notice-bar {
        margin-top: 120px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .game-wrapper {
        width: 100%;
        padding: 10px;
    }
}