/* ============================================
   HALCYON WOODS - Page-Specific Styles
   ============================================ */

.page-halcyon-woods {
    --halcyon-accent: #d97c61;
    --halcyon-olive: #8a9660;
    --halcyon-shell: rgba(24, 18, 14, 0.68);
    background: #171311;
    color: #f4eee5;
    isolation: isolate;
}

.page-halcyon-woods .nav {
    background: rgba(24, 17, 12, 0.94);
}

.page-halcyon-woods #site-header {
    position: relative;
    z-index: 3;
}

.page-halcyon-woods #main-content,
.page-halcyon-woods #site-footer {
    position: relative;
    z-index: 1;
}

.page-halcyon-woods::before {
    content: '';
    position: fixed;
    inset: -18px;
    background:
        linear-gradient(rgba(19, 13, 9, 0.42), rgba(19, 13, 9, 0.56)),
        url('../../halcyon-woods/img/screen-1.webp') center / cover no-repeat;
    filter: blur(10px);
    transform: scale(1.05);
    pointer-events: none;
    z-index: -2;
}

.page-halcyon-woods::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(18, 12, 8, 0.2);
    pointer-events: none;
    z-index: -1;
}

.halcyon-canopy {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.halcyon-leaf {
    position: absolute;
    top: -10%;
    left: var(--x, 50%);
    width: var(--size, 18px);
    height: calc(var(--size, 18px) * 0.78);
    background: linear-gradient(135deg, rgba(241, 183, 82, 0.92), rgba(195, 96, 66, 0.72));
    clip-path: polygon(50% 0, 100% 32%, 78% 100%, 24% 100%, 0 34%);
    opacity: 0.85;
    transform: rotate(var(--rot, 0deg));
    animation: halcyonLeafFall var(--dur, 16s) linear infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes halcyonLeafFall {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(var(--rot, 0deg));
        opacity: 0;
    }

    12% {
        opacity: 0.88;
    }

    100% {
        transform: translate3d(var(--drift, 18px), 110vh, 0) rotate(calc(var(--rot, 0deg) + 180deg));
        opacity: 0;
    }
}

.halcyon-page-logo {
    display: inline-flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    text-transform: uppercase;
}

.halcyon-page-logo span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.7rem, 5vw, 2.7rem);
    line-height: 0.92;
    letter-spacing: 0.22em;
    color: #f0e1bc;
}

.halcyon-page-logo span:last-child {
    color: #d97c61;
}

.page-halcyon-woods .section-header h2,
.page-halcyon-woods .info-card h3 {
    color: #f0e1bc;
}

.page-halcyon-woods .badge-jam {
    color: #f0e1bc;
    border-color: #f0e1bc;
}

.page-halcyon-woods .info-card {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
}

.page-halcyon-woods .info-card + .info-card {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(240, 225, 188, 0.14);
}

.page-halcyon-woods .feature-item i {
    color: var(--halcyon-olive);
}

.page-halcyon-woods .spec-row {
    border-bottom-color: rgba(240, 225, 188, 0.14);
}

.page-halcyon-woods .main-screenshot,
.page-halcyon-woods .gallery-thumb {
    border-color: rgba(240, 225, 188, 0.16);
}

.page-halcyon-woods .main-screenshot {
    background: rgba(30, 20, 14, 0.34);
}

.page-halcyon-woods .gallery-thumb:hover,
.page-halcyon-woods .gallery-thumb--active {
    border-color: var(--halcyon-accent);
}

.page-halcyon-woods .game-about {
    border-top-color: rgba(240, 225, 188, 0.14);
}

.page-halcyon-woods .about-text p,
.page-halcyon-woods .credits-list {
    color: rgba(244, 238, 229, 0.82);
}

.halcyon-inline-note {
    margin-bottom: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 225, 188, 0.72);
}

@media (max-width: 500px) {
    .halcyon-page-logo span {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .halcyon-leaf {
        animation: none !important;
        opacity: 0.42;
    }
}
