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

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #030508;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 2.5s ease;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-blackout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transition: opacity 2s ease;
    z-index: 10;
}

.intro-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 45% 40% at 75% 85%,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 1) 100%
    );
    transition: opacity 2s ease;
}

.intro-tent-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 35% 30% at 75% 85%,
        rgba(255, 180, 80, 0.12) 0%,
        rgba(255, 140, 50, 0.06) 30%,
        transparent 60%
    );
    transition: opacity 2s ease;
}

.intro-title-group {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%) translateX(30px);
    text-align: right;
    opacity: 0;
    transition: opacity 2s ease, transform 2s ease;
}

.intro-title-group.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.intro-title-group.fade-out {
    opacity: 0 !important;
    transform: translateY(-50%) translateX(-20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.intro-title-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 1.3vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 220, 180, 0.4);
    margin-bottom: 10px;
}

.intro-title-main {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    font-style: italic;
    color: rgba(255, 240, 220, 0.95);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 180, 100, 0.15);
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin: 0;
}

.intro-title-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to left, rgba(255, 220, 180, 0.4), transparent);
    margin: 14px 0 0 auto;
}

.intro-welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 700;
    font-style: italic;
    color: rgba(255, 235, 190, 1);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 180, 80, 0.3), 0 0 120px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 2s ease;
    padding: 20px 40px;
    white-space: nowrap;
}

.intro-welcome-quote {
    position: absolute;
    top: 53%;
    left: 61%;
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.5rem, 0.9vw, 0.85rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 220, 150, 0.6);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 180, 80, 0.2);
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 2s ease;
    padding: 0 20px;
    white-space: nowrap;
}

.intro-welcome-quote p {
    margin: 0;
    padding: 0;
}

.intro-welcome.visible {
    opacity: 0.8;
}

.intro-welcome-quote.visible {
    opacity: 0.8;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Campfire Glow - positioned at campfire location (left of tent) */
.campfire-glow {
    position: fixed;
    bottom: -5%;
    left: 57%;
    width: 20%;
    height: 30%;
    background: radial-gradient(
        ellipse 80% 60% at 50% 70%,
        rgba(255, 120, 40, 0.07) 0%,
        rgba(255, 80, 20, 0.035) 40%,
        transparent 70%
    );
    z-index: 2;
    pointer-events: none;
    animation: campfire-pulse 3s ease-in-out infinite;
}

.campfire-flicker {
    position: fixed;
    bottom: -3%;
    left: 59%;
    width: 12%;
    height: 18%;
    background: radial-gradient(
        ellipse 70% 60% at 50% 70%,
        rgba(255, 160, 60, 0.05) 0%,
        rgba(255, 100, 30, 0.025) 50%,
        transparent 75%
    );
    z-index: 3;
    pointer-events: none;
    animation: campfire-flicker 0.8s ease-in-out infinite alternate;
}

@keyframes campfire-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes campfire-flicker {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.03); }
    100% { opacity: 0.6; transform: scale(0.97); }
}

/* Tent Glow */
.tent-glow {
    position: fixed;
    bottom: 0%;
    right: 18%;
    width: 22%;
    height: 28%;
    background: radial-gradient(
        ellipse 70% 60% at 50% 85%,
        rgba(255, 200, 120, 0.1) 0%,
        rgba(255, 160, 80, 0.05) 45%,
        transparent 75%
    );
    z-index: 2;
    pointer-events: none;
    animation: tent-glow 4s ease-in-out infinite;
}

@keyframes tent-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Foreground darkener (darkens everything below treeline - fades in when fire dies) */
.foreground-darkener {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(
        to top,
        rgba(3, 5, 10, 0.9) 0%,
        rgba(3, 5, 10, 0.85) 40%,
        rgba(3, 5, 10, 0.6) 70%,
        transparent 100%
    );
    z-index: 6;
    pointer-events: none;
    opacity: 0;
}

/* Fire Darkener (fades in when fire dies) */
.fire-darkener {
    position: fixed;
    bottom: 0;
    right: 10%;
    width: 35%;
    height: 40%;
    background: radial-gradient(
        ellipse 80% 70% at 50% 90%,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 70%
    );
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

/* Fire Particles */
.fire-particles {
    position: fixed;
    bottom: 5%;
    left: 61%;
    width: 8%;
    height: 12%;
    z-index: 4;
    pointer-events: none;
}

.fire-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Fireflies */
.fireflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
    pointer-events: none;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ffffcc, #ffff66 40%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 4px #ffff66, 0 0 8px rgba(255, 255, 100, 0.4);
}

/* Shooting Stars */
.shooting-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
    transform-origin: right center;
    opacity: 0;
}
