@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #08110C;
    --surface: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.08);
    --forest-green: #14532D;
    --emerald: #10B981;
    --moon-silver: #CBD5E1;
    --ancient-bronze: #A16207;
    --moss: #4D7C0F;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Animations */
@keyframes drift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fireflyFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) translateX(10px) scale(1.2); opacity: 0.8; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
}

@keyframes gentleLift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); }
}

/* Base Styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

ul {
    list-style-type: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--emerald), var(--forest-green));
    color: var(--bg-color);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--moon-silver);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Navigation - Forest Gate */
.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.top-warning-banner {
    background-color: #040906;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.75rem;
    padding: 8px 10px;
    font-family: var(--font-body);
}

.forest-gate {
    width: 100%;
    background: rgba(8, 17, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--emerald);
    letter-spacing: 0.1em;
    font-weight: 700;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Atmospheric Background Container */
.enchanted-atmosphere {
    position: relative;
    padding-top: 160px;
    background-image: url('images/enchanted-forest-clearing.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* Descriptive CSS image reference: enchanted-forest-clearing.jpg */

.enchanted-atmosphere::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(8, 17, 12, 0.7), rgba(8, 17, 12, 1));
    z-index: 0;
}

/* Game Clearing */
.game-clearing {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 20px;
    text-align: center;
}

.game-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--emerald);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.game-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--moon-silver);
}

.iframe-container {
    background-color: #3e2723; /* Dark walnut */
    border: 4px solid var(--ancient-bronze);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 16px;
    display: block;
}

.how-to-play-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Forest Trail */
.forest-trail-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 5;
    background: var(--bg-color);
}

.trail-header {
    text-align: center;
    margin-bottom: 5rem;
}

.trail-header h2 {
    font-size: 2.5rem;
    color: var(--ancient-bronze);
}

.trail-pathway {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Wooden walkway connector */
.trail-pathway::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg, 
        #5d4037, 
        #5d4037 15px, 
        #3e2723 15px, 
        #3e2723 30px
    );
    border-top: 1px solid var(--ancient-bronze);
    border-bottom: 1px solid rgba(0,0,0,0.5);
    z-index: 0;
    transform: translateY(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.trail-marker {
    background: var(--surface);
    border: 2px solid #2d3748; /* carved stone base */
    border-top-color: var(--moon-silver);
    border-radius: 8px 8px 0 0;
    padding: 2.5rem 2rem;
    width: 30%;
    position: relative;
    z-index: 1;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02), 0 10px 30px rgba(0,0,0,0.8);
    transition: transform 0.4s ease;
}

.trail-marker:hover {
    transform: translateY(-10px);
    border-top-color: var(--emerald);
}

/* Carved motif */
.trail-marker::after {
    content: '✧';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--emerald);
    background: var(--bg-color);
    padding: 0 10px;
    font-size: 1.2rem;
}

.trail-marker h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--moon-silver);
}

.trail-marker img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ancient-bronze);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.trail-marker:hover img {
    opacity: 1;
}

/* Forest Lookout */
.forest-lookout-section {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, var(--bg-color), #0a1711);
}

.lookout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 0.8fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.lookout-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass);
}

.lookout-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.lookout-image-container:hover img {
    transform: scale(1.05);
}

.lookout-article {
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    border-left: 2px solid var(--moss);
}

.lookout-article h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--emerald);
}

.lookout-specs {
    background: rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--ancient-bronze);
}

.lookout-specs h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--moon-silver);
    border-bottom: 1px solid var(--glass);
    padding-bottom: 0.5rem;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Support Lodge */
.support-lodge-section {
    padding: 8rem 5%;
    background-image: url('images/wooden-walkway-river.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    background-attachment: fixed;
}
/* Descriptive CSS image reference: wooden-walkway-river.jpg */

.support-lodge-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 17, 12, 0.85);
    z-index: 0;
}

.lodge-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 4rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 4rem;
}

.lodge-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--ancient-bronze);
}

.support-email-box {
    background: rgba(0,0,0,0.3);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--emerald);
}

.support-email-box p {
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0;
    word-break: break-all;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item h4 {
    color: var(--moon-silver);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.glass-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald);
    background: rgba(255,255,255,0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer-panoramic {
    position: relative;
    padding: 4rem 5% 2rem;
    background-image: url('images/panoramic-moonlit-landscape.jpg');
    background-size: cover;
    background-position: center;
}
/* Descriptive CSS image reference: panoramic-moonlit-landscape.jpg */

.footer-panoramic::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(8, 17, 12, 1), rgba(8, 17, 12, 0.7));
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--emerald);
    margin-bottom: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--moon-silver);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.legal-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.age-badge {
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass);
    padding-top: 2rem;
    width: 100%;
}

/* Internal Legal Pages Formatting */
.legal-page-container {
    max-width: 900px;
    margin: 190px auto 100px;
    padding: 3rem;
    background: var(--surface);
    border-radius: 12px;
    border-top: 3px solid var(--emerald);
}

.legal-page-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--ancient-bronze);
}

.legal-page-container .last-updated {
    color: var(--emerald);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    display: block;
}

.legal-page-container h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--moon-silver);
}

.legal-page-container p {
    margin-bottom: 1.5rem;
}

/* Fireflies Overlay */
.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--emerald);
    animation: fireflyFloat 4s infinite ease-in-out;
    pointer-events: none;
    z-index: 20;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lookout-grid {
        grid-template-columns: 1fr 1fr;
    }
    .lookout-specs {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .trail-pathway {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    .trail-pathway::before {
        display: none;
    }
    .trail-marker {
        width: 80%;
        transform: none !important;
    }
    
    .lodge-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .forest-gate {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .game-title {
        font-size: 2rem;
    }

    .lookout-grid {
        grid-template-columns: 1fr;
    }
    
    .lookout-specs {
        grid-column: span 1;
    }
    
    .how-to-play-actions {
        flex-direction: column;
    }
    
    .enchanted-atmosphere {
        padding-top: 220px;
    }
}