/* Hwange Experience Styles */
:root {
    --hw-gold: #C5A059;
    --hw-dark: #0A0A08;
    --hw-accent: #E8D5B0;
    --hw-grass: #4A442D;
}

body {
    background-color: var(--hw-dark);
    margin: 0;
    overflow: hidden;
    color: white;
    font-family: var(--font-sans);
}

.hwange-system {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Environment Layers */
.env-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.env-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 3s ease, transform 10s linear;
    filter: sepia(0.3) brightness(0.7);
}

.env-grass {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(to top, rgba(10,10,8,1) 0%, rgba(74, 68, 45, 0.4) 100%);
    z-index: 5;
    mask-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); /* Textured grass edge feel */
}

/* Moving Grass Animation */
@keyframes grassSway {
    0% { transform: skewX(-1deg) translateY(0); }
    100% { transform: skewX(2deg) translateY(2px); }
}

.env-grass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    animation: grassSway 4s ease-in-out infinite alternate;
}

.dust-drift {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/dust.png');
    opacity: 0.15;
    z-index: 4;
    animation: drift 100s linear infinite;
    mix-blend-mode: screen;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 2000px 1000px; }
}

/* Intro Interface */
.hwange-intro {
    position: relative;
    z-index: 20;
    text-align: center;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1), transform 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hwange-intro.fade-out {
    opacity: 0;
    transform: scale(1.05) translateY(-20px);
    pointer-events: none;
}

.hwange-intro h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 12vw, 5rem);
    letter-spacing: clamp(0.3em, 4vw, 1em);
    margin: 0;
    color: var(--hw-gold);
    line-height: 1;
    padding: 0 5vw;
    text-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.hwange-intro p {
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.4;
    margin-top: 2rem;
    letter-spacing: 0.2em;
}

/* Interaction System */
.encounter-ui {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), transform 2s ease;
}

.encounter-ui.visible {
    opacity: 1;
    pointer-events: auto;
}

.clue-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: var(--hw-accent);
    margin-bottom: 2.5rem;
    display: block;
    text-shadow: 0 2px 20px rgba(0,0,0,0.9);
    padding: 0 10vw;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--hw-gold);
    padding: 1rem 3rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.6em;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.action-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: var(--hw-gold);
    transition: width 0.8s ease;
}

.action-btn:hover {
    letter-spacing: 0.8em;
    opacity: 0.8;
}

.action-btn:hover::after {
    width: 100%;
}

/* Animal Reveal Layer */
.reveal-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(0,0,0,0.2);
}

.animal-reveal {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(120%) brightness(0.4) saturate(0.8);
}

.animal-reveal.visible {
    opacity: 0.9;
}

/* Eyes overlay for predators */
.eyes-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    transition: opacity 3s ease 2s;
}

.animal-reveal.visible + .eyes-overlay {
    opacity: 1;
}

.eye {
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 15px #FFD700, 0 0 30px rgba(255, 215, 0, 0.5);
    margin: 0 40px;
    margin-top: -10%;
}

.micro-story {
    position: fixed;
    bottom: 20%;
    left: 8%;
    right: 8%;
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    font-style: italic;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 60;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}

.micro-story.visible {
    opacity: 0.9;
    transform: translateY(0);
}

/* Suspense Vibe */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.85) 150%);
    pointer-events: none;
}

/* Subtle Film Grain */
.hwange-system::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 95;
    pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/p6.png');
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.tension-pulse {
    position: fixed;
    inset: 0;
    background: var(--hw-gold);
    opacity: 0;
    z-index: 99;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes pulse {
    0% { opacity: 0; }
    50% { opacity: 0.05; }
    100% { opacity: 0; }
}

.active-pulse {
    animation: pulse 4s ease-in-out infinite;
}
