/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --color-bg-dark: #0f0b07;
    --color-bg-card: rgba(30, 22, 14, 0.7);
    --color-bg-card-hover: rgba(45, 33, 22, 0.85);
    --color-gold-bright: #f1c40f;
    --color-gold-muted: #d4af37;
    --color-gold-dark: #8a6d1c;
    --color-text-light: #f7f1eb;
    --color-text-muted: #c7b8aa;
    --color-accent-glow: rgba(241, 196, 15, 0.3);
    
    --font-heading: 'Cinzel', serif;
    --font-heading-decor: 'Cinzel Decorative', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

p {
    line-height: 1.7;
    color: var(--color-text-muted);
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
    outline: none;
}

.gold-text {
    color: var(--color-gold-muted);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(15, 11, 7, 0.9) 0%, rgba(15, 11, 7, 0) 100%);
    backdrop-filter: blur(2px);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 1rem 5%;
    background: rgba(15, 11, 7, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
}

.logo-accent {
    color: var(--color-gold-muted);
    font-family: var(--font-heading-decor);
}

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

.nav-item {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 0.3rem 0;
    transition: var(--transition-fast);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold-muted);
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-item.active {
    color: var(--color-gold-muted);
}

.nav-item.active::after {
    width: 100%;
}

.btn-menu {
    color: var(--color-text-light);
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.btn-menu:hover {
    color: var(--color-gold-muted);
}

/* ==========================================================================
   AMBIENT AUDIO CONTROL
   ========================================================================== */
.audio-control-fixed {
    position: fixed;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(30, 22, 14, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.audio-control-fixed:hover {
    border-color: var(--color-gold-muted);
    box-shadow: 0 4px 25px var(--color-accent-glow);
}

.audio-control-fixed button {
    color: var(--color-text-light);
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.audio-control-fixed.playing button {
    color: var(--color-gold-bright);
}

.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    width: 25px;
}

.audio-wave .stroke {
    display: block;
    width: 3px;
    height: 100%;
    background-color: var(--color-gold-muted);
    border-radius: 50px;
    transition: var(--transition-smooth);
    animation: bounce 0.8s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.audio-control-fixed.playing .audio-wave .stroke {
    animation-play-state: running;
}

.audio-wave .stroke:nth-child(1) { animation-delay: 0.1s; height: 30%; }
.audio-wave .stroke:nth-child(2) { animation-delay: 0.3s; height: 60%; }
.audio-wave .stroke:nth-child(3) { animation-delay: 0.6s; height: 100%; }
.audio-wave .stroke:nth-child(4) { animation-delay: 0.2s; height: 75%; }
.audio-wave .stroke:nth-child(5) { animation-delay: 0.4s; height: 40%; }

@keyframes bounce {
    0% { height: 15%; }
    100% { height: 100%; }
}

.audio-tooltip {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* ==========================================================================
   SIDE PROGRESS NAVIGATION
   ========================================================================== */
.progress-nav {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.progress-line {
    position: absolute;
    width: 2px;
    height: calc(100% - 20px);
    background: rgba(255, 255, 255, 0.1);
    top: 10px;
    z-index: -1;
}

.progress-line-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--color-gold-muted), var(--color-gold-bright));
    transition: height 0.1s ease-out;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2b1f13;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-dot:hover, .nav-dot.active {
    background: var(--color-gold-muted);
    border-color: var(--color-gold-bright);
    box-shadow: 0 0 12px var(--color-gold-muted);
    transform: scale(1.3);
}

.dot-label {
    position: absolute;
    right: 2.2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    color: var(--color-text-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-transform: uppercase;
    background: rgba(15, 11, 7, 0.85);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-fast);
}

.nav-dot:hover .dot-label {
    opacity: 1;
    right: 1.8rem;
}

/* ==========================================================================
   FLOATING HELP WIDGET
   ========================================================================== */
.interaction-helper {
    position: fixed;
    top: 7rem;
    right: 3rem;
    z-index: 99;
    background: rgba(30, 22, 14, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.interaction-helper.collapsed {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.helper-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gold-muted);
}

.helper-toggle i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.interaction-helper.collapsed .helper-toggle span {
    display: none;
}

.helper-content {
    padding: 0 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 1rem;
}

.helper-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.helper-item i {
    color: var(--color-gold-bright);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.helper-item h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.helper-item p {
    font-size: 0.72rem;
    line-height: 1.4;
}

/* ==========================================================================
   MAIN SCROLL CONTAINER & VIEWPORTS
   ========================================================================== */
.scroll-container-wrapper {
    position: relative;
    width: 100%;
    /* Keep parent normal, the inner viewport will be pinned */
}

.main-viewport {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.scenery-aspect-container {
    position: absolute;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio (100 * 9 / 16) */
    left: 0;
    top: calc(50vh - 28.125vw); /* Center vertically without transform */
    transform: none; /* No transform to prevent creating a local stacking context! */
    /* This allows children (.hotspots-overlay z-index 5, .background-viewport z-index 1) */
    /* to participate in global z-indexing and float correctly relative to the card overlays. */
}

.background-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.viewport-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sits in front of background but behind hotspots/content */
    pointer-events: none;
    background: none;
    will-change: opacity;
}

/* Cinematic Foreground Foliage Layers */
.foliage-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Sits in front of vignette but behind content */
    pointer-events: none;
    overflow: hidden;
}

.foliage-layer {
    position: absolute;
    bottom: 0;
    width: 45vw;
    height: 92vh;
    background-size: contain;
    background-repeat: no-repeat;
    will-change: transform, opacity;
    z-index: 1;
}

.foliage-left {
    left: 1%;
    background-position: left bottom;
    transform-origin: left bottom;
}

.foliage-right {
    right: 1%;
    background-position: right bottom;
    transform-origin: right bottom;
}

.foreground-grass {
    position: absolute;
    bottom: -4vw;
    left: 0;
    width: 100%;
    height: 30vw;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 2;
    will-change: transform, opacity;
}



.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform, opacity;
}

.bg-far-sky {
    z-index: -1;
}



.bg-far-house {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%; /* Sized exactly to the 16:9 container */
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 3;
}

.bg-front-container {
    z-index: 4;
    opacity: 0;
    transform: scale(1.0);
}

.bg-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   HOTSPOTS STYLING
   ========================================================================== */
.hotspots-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: scale(1.0);
}

.hotspot-pin {
    position: absolute;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-top: -23px;
    cursor: pointer;
    display: grid;
    place-items: center;
    pointer-events: auto; /* Re-enable for the pins themselves */
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

.hotspot-pin.active {
    opacity: 1;
}

.hotspot-pin:hover {
    transform: scale(1.15);
}

.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(241, 196, 15, 0.4);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
    animation: pulse 2s infinite ease-out;
    z-index: 1;
    pointer-events: none;
}

.hotspot-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, #f39c12 0%, #d35400 100%);
    border: 2px solid var(--color-gold-bright);
    color: var(--color-text-light);
    font-size: 0.9rem;
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: var(--transition-fast);
    pointer-events: none;
}

.hotspot-pin:hover .hotspot-icon {
    background: radial-gradient(circle, #f1c40f 0%, #f39c12 100%);
    box-shadow: 0 0 15px var(--color-gold-bright);
}

.hotspot-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 11, 7, 0.9);
    border: 1px solid var(--color-gold-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.hotspot-pin:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   IMMERSIVE FULL SCREEN DETAIL VIEW
   ========================================================================== */
.full-screen-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 150;
    opacity: 1;
    display: none;
    pointer-events: none;
    overflow: hidden;
    clip-path: circle(0px at 50% 50%);
}

.full-detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transform: scale(0.7);
    will-change: transform;
}

.full-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to right, rgba(15, 11, 7, 0.85) 0%, rgba(15, 11, 7, 0.50) 60%, rgba(15, 11, 7, 0) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.full-detail-content {
    position: absolute;
    top: 5vh;
    left: 5vw;
    width: 35vw;
    height: 90vh;
    max-width: 500px;
    min-width: 360px;
    display: flex;
    flex-direction: column;
    background: rgba(15, 11, 7, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(229, 216, 203, 0.15);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    padding: 2.5rem;
    z-index: 2;
    opacity: 0;
    transform: translateX(-50px);
    will-change: opacity, transform;
}

.full-detail-header {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(229, 216, 203, 0.1);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
}

.full-detail-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.8rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 216, 203, 0.3) transparent;
}

.full-detail-body::-webkit-scrollbar {
    width: 5px;
}

.full-detail-body::-webkit-scrollbar-track {
    background: transparent;
}

.full-detail-body::-webkit-scrollbar-thumb {
    background: rgba(229, 216, 203, 0.25);
    border-radius: 10px;
    transition: background 0.3s;
}

.full-detail-body::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 216, 203, 0.5);
}

.full-detail-footer {
    flex-shrink: 0;
}

.full-detail-footer .btn-primary {
    margin-top: 0 !important;
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .full-detail-content {
        width: 90vw;
        height: auto;
        max-height: 75vh;
        top: auto;
        bottom: 5vh;
        left: 5vw;
        padding: 1.5rem;
        min-width: unset;
    }
    
    .full-detail-header {
        padding-bottom: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .full-detail-body {
        margin-bottom: 1rem;
    }
}

.full-screen-detail .decorative-title {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: var(--color-gold-bright) !important;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95) !important;
    margin-bottom: 0.8rem;
}

.full-screen-detail .popup-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--color-gold-muted);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
    margin-bottom: 0.6rem;
}

.full-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fcfbf9;
    margin-top: -0.2rem;
    margin-bottom: 0.8rem;
    font-style: italic;
    font-family: var(--font-body);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

@keyframes pulse {
    0% {
        transform: scale(0.65);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==========================================================================
   SCENE SECTIONS & CONTENT OVERLAYS
   ========================================================================== */
.content-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.scene-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8% 0 12%;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.scene-section.active {
    pointer-events: none;
}

.scene-inner {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    pointer-events: inherit; /* CRITICAL: inherit from parent so invisible scenes don't steal clicks */
    text-shadow: 0 2px 10px rgba(15, 11, 7, 0.95), 0 1px 3px rgba(15, 11, 7, 0.95);
}

.decorative-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #f7f1eb 0%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(15, 11, 7, 0.6);
}

.scene-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-text-light);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 12px rgba(15, 11, 7, 0.95), 0 1px 3px rgba(15, 11, 7, 0.95);
}

.scene-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e5d8cb; /* Warmer cream text */
    text-shadow: 0 2px 10px rgba(15, 11, 7, 0.95), 0 1px 3px rgba(15, 11, 7, 0.95);
}

.scene-desc.text-highlight {
    font-size: 1.22rem;
    color: #eae0c8;
    font-style: italic;
    line-height: 1.9;
}

.scene-desc-wrapper {
    width: 100%;
    position: relative;
    max-height: none;
    overflow: visible;
}

.btn-read-more {
    display: none;
}

.max-w-600 {
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    align-self: flex-start;
    background: linear-gradient(135deg, #d4af37 0%, #8a6d1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.9rem 1.8rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(138, 109, 28, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f1c40f 0%, #d4af37 100%);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
    transform: translateY(-2px);
}

/* Scroll Hint */
.scroll-down-hint {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse-icon {
    width: 22px;
    height: 34px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-gold-bright);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 18px; }
}

/* Scene Explore adjustments */
.scene-explore {
    align-items: center !important;
    padding: 0 8% 0 6% !important;
    justify-content: flex-start !important;
    background: linear-gradient(to right, rgba(15, 11, 7, 0.75) 0%, rgba(15, 11, 7, 0.4) 50%, rgba(15, 11, 7, 0) 100%) !important;
}
.scene-explore .scene-inner {
    max-width: 520px;
    align-items: flex-start;
    text-align: left;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.scene-explore .scene-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    margin-bottom: 0.8rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.scene-explore .scene-desc {
    color: #fcfbf9;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98), 
                 0 4px 12px rgba(0, 0, 0, 0.95), 
                 0 0 1px rgba(0, 0, 0, 0.98);
}

/* Layout Alternation: Scene 2 Right Alignment */
.scene-detail {
    padding: 0 12% 0 8% !important;
    justify-content: flex-end !important;
    background: linear-gradient(to left, rgba(15, 11, 7, 0.75) 0%, rgba(15, 11, 7, 0.4) 50%, rgba(15, 11, 7, 0) 100%) !important;
}
.scene-detail .scene-inner {
    max-width: 520px;
    align-items: flex-end;
    text-align: right;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.scene-detail .scene-title {
    align-self: flex-end;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    margin-bottom: 0.8rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}
.scene-detail .scene-desc {
    color: #fcfbf9;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98), 
                 0 4px 12px rgba(0, 0, 0, 0.95), 
                 0 0 1px rgba(0, 0, 0, 0.98);
}

/* ==========================================================================
   MINI GAME STYLING (Scene 4)
   ========================================================================== */
.scene-game {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.scene-game .game-inner {
    max-width: 1100px;
    width: 100%;
}

.game-container {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    width: 100%;
    overflow: hidden;
}

.game-score {
    text-align: right;
    font-family: var(--font-heading);
    color: var(--color-gold-bright);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.game-board {
    display: grid;
    grid-template-columns: 280px 1fr 400px;
    align-items: center;
    gap: 2rem;
    position: relative;
    min-height: 380px;
}

.game-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 10;
}

.ornaments-list {
    grid-column: 1;
}

.meanings-list {
    grid-column: 3;
}

.game-card {
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.85) 0%, rgba(15, 11, 7, 0.95) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05), 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s, background 0.3s, box-shadow 0.3s;
    user-select: none;
    position: relative;
}

.ornaments-list .game-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
}

.card-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ornament-card span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.meaning-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

/* Card Interactive Node (Thread Anchor) */
.card-node {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #f39c12 0%, #d35400 100%);
    border: 2px solid var(--color-gold-bright);
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    z-index: 12;
}

.game-card.selected .card-node {
    animation: nodePulse 1s infinite alternate ease-in-out;
}

@keyframes nodePulse {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 0 8px var(--color-gold-bright); }
    100% { transform: translateY(-50%) scale(1.35); box-shadow: 0 0 18px var(--color-gold-bright), 0 0 24px rgba(241, 196, 15, 0.4); }
}

.ornament-card .card-node {
    right: -7px;
}

.meaning-card .card-node {
    left: -7px;
}

/* Card States */
.game-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, rgba(40, 28, 15, 0.9) 0%, rgba(20, 15, 10, 0.98) 100%);
    transform: translateY(-4px);
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.1), 0 14px 28px rgba(0, 0, 0, 0.6);
}

.game-card:hover .card-img {
    transform: scale(1.05);
}

.game-card:hover .card-node {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 12px var(--color-gold-bright);
}

.game-card.selected {
    border-color: var(--color-gold-bright);
    background: rgba(241, 196, 15, 0.12);
    box-shadow: inset 0 0 10px rgba(241, 196, 15, 0.1), 0 0 20px rgba(241, 196, 15, 0.25);
    transform: scale(1.03);
}

.game-card.selected span, .game-card.selected p {
    color: var(--color-gold-bright);
}

.game-card.matched {
    animation: matchPulse 0.5s ease-in-out forwards;
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.08);
    cursor: default;
}

.game-card.matched span, .game-card.matched p {
    color: #2ee57e;
}

.game-card.matched .card-node {
    background: radial-gradient(circle, #2ecc71 0%, #27ae60 100%);
    border-color: #2ee57e;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.game-card.incorrect {
    animation: shake 0.4s ease-in-out;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
}

.game-card.incorrect span, .game-card.incorrect p {
    color: #ff6b6b;
}

.game-card.incorrect .card-node {
    background: radial-gradient(circle, #e74c3c 0%, #c0392b 100%);
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

@keyframes matchPulse {
    0% { transform: scale(1); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(46, 204, 113, 0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
}

/* Connecting Lines */
.game-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.game-line-path {
    fill: none;
    stroke: rgba(212, 175, 55, 0.35);
    stroke-width: 3;
    stroke-dasharray: 6 5;
    animation: lineDash 15s linear infinite;
    transition: stroke 0.3s, stroke-width 0.3s, filter 0.3s, opacity 0.5s ease;
}

.game-line-path.active {
    stroke: var(--color-gold-bright);
    stroke-width: 3.5;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 6px rgba(241, 196, 15, 0.8));
}

.game-line-path.matched {
    stroke: #2ecc71;
    stroke-width: 4;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.9));
}

.game-line-path.incorrect {
    stroke: #e74c3c;
    stroke-width: 4;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.9));
}

@keyframes lineDash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Confetti Canvas Victory Overlay */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Game Success Overlay */
.game-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 11, 7, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.game-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    text-align: center;
    max-width: 480px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.success-content .btn-primary {
    align-self: center;
    cursor: pointer;
}

.success-icon {
    font-size: 4rem;
    color: #2ecc71;
    filter: drop-shadow(0 0 15px rgba(46, 204, 113, 0.4));
}

.success-content h3 {
    font-size: 2rem;
    color: var(--color-text-light);
}

.success-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   CLOSING SECTION (Scene 5)
   ========================================================================== */
.scene-closing {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.scene-closing .scene-inner {
    max-width: 700px;
    align-items: center;
    gap: 2rem;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

.footer-decor {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
}

.decor-line {
    flex-grow: 1;
    max-width: 150px;
    height: 1px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0));
}

.footer-decor i {
    color: var(--color-gold-muted);
    font-size: 1.4rem;
}

footer p {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   GLASSMORPHIC POP-UP DETAIL
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: rgba(15, 11, 7, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-card {
    background: rgba(35, 26, 17, 0.8);
    border: 1px solid rgba(241, 196, 15, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(241, 196, 15, 0.1);
    border-radius: 16px;
    width: 85%;
    max-width: 850px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
}

.popup-overlay.active .popup-card {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 11, 7, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.popup-close:hover {
    color: var(--color-gold-bright);
    border-color: var(--color-gold-bright);
    background: rgba(15, 11, 7, 0.8);
    transform: rotate(90deg);
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 400px;
}

.popup-image-container {
    position: relative;
    background-color: #1e160e;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.popup-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-gold-muted);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.popup-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 0.3rem;
}

.popup-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #e5d8cb;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.popup-divider {
    width: 60px;
    height: 3px;
    background: var(--color-gold-muted);
    margin-bottom: 1.5rem;
}

.popup-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .game-board {
        grid-template-columns: 200px 1fr 280px;
        gap: 1.5rem;
    }
    .game-lines {
        display: block; /* Keep game lines visible on tablet */
    }
    .ornaments-list, .meanings-list {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .ornament-card, .meaning-card {
        width: 100%;
    }
    .main-header {
        padding: 1.2rem 4%;
    }
    .nav-links {
        display: none; /* Hide standard nav on tablet/mobile */
    }
    .progress-nav {
        right: 1.5rem;
    }
    .audio-control-fixed {
        bottom: 1.5rem;
        left: 1.5rem;
    }
    .interaction-helper {
        display: none; /* Hide helper on small devices */
    }
    .scene-section {
        padding: 0 8%;
    }
}

@media (max-width: 768px) {
    /* Scenery Aspect Container mobile override: align to bottom, center horizontally without transform */
    .scenery-aspect-container {
        width: 124.4vh !important; /* 70vh * 16 / 9 (keeps 16:9 ratio) */
        height: 70vh !important;  /* scaled down from 100vh so house looks proportional */
        left: calc(50vw - 62.2vh) !important; /* Center horizontally without transform */
        top: auto !important;
        bottom: 0 !important;
        transform: none !important; /* Remove transform to prevent local stacking context! */
    }

    .decorative-title {
        font-size: 1.8rem !important;
    }
    .scene-title {
        font-size: 1.6rem !important;
    }
    .popup-grid {
        grid-template-columns: 1fr;
    }
    .popup-image-container {
        height: 250px;
    }
    .popup-content {
        padding: 2rem 1.5rem;
    }
    
    /* Mobile Scene centering & glassmorphism (specific selectors to beat desktop specificity!) */
    .scene-section {
        padding: 1.5rem !important;
        justify-content: center !important;
        pointer-events: none !important; /* Allow clicks to pass through to hotspots behind! */
    }
    
    /* Top aligned sections (Scene 2 and Scene 3) to keep them at the top */
    .scene-detail,
    .scene-explore {
        align-items: flex-start !important;
        padding-top: 5.5rem !important; /* Sit neatly below the header */
        padding-bottom: 0 !important;
        background: none !important;
    }

    /* Game and Closing remain centered */
    .scene-game,
    .scene-closing {
        align-items: center !important;
        justify-content: center !important;
    }

    /* Highly specific overrides to match the popup detail card design */
    .scene-detail .scene-inner,
    .scene-explore .scene-inner,
    .scene-section.active-scene .scene-inner {
        max-width: 92% !important;
        width: 100% !important;
        background: rgba(15, 11, 7, 0.5) !important; /* Frosted dark background */
        backdrop-filter: blur(25px) !important; /* Deep frosted blur */
        -webkit-backdrop-filter: blur(25px) !important;
        border: 1px solid rgba(229, 216, 203, 0.15) !important; /* Warm light border */
        padding: 1.4rem 1.2rem !important;
        border-radius: 20px !important; /* Rounded corners matching popup */
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7) !important;
        text-align: center !important;
        align-items: center !important;
        z-index: 10;
    }
    
    /* ONLY the active scene's inner content gets pointer-events on mobile */
    .scene-section.active-scene .scene-inner {
        pointer-events: auto !important;
    }

    /* Mobile-only Read More toggle styles */
    .scene-desc-wrapper {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: none;
        position: relative;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        width: 100%;
    }
    
    /* Expanded State */
    .scene-inner.expanded .scene-desc-wrapper {
        display: block !important;
        max-height: 200px !important;
        overflow-y: auto !important;
        scrollbar-width: none;
    }
    
    .scene-inner.expanded .scene-desc-wrapper::-webkit-scrollbar {
        display: none;
    }

    
    .btn-read-more {
        display: inline-flex !important; /* Show on mobile */
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: rgba(212, 175, 55, 0.12) !important; /* Glassy gold background */
        border: 1px solid rgba(212, 175, 55, 0.4) !important; /* Gold border */
        color: var(--color-gold-bright) !important;
        font-family: var(--font-body);
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 0.8rem;
        padding: 0.7rem 1.5rem !important; /* Large 44px+ touch target height */
        border-radius: 30px !important; /* Gold pill design */
        cursor: pointer;
        transition: all 0.3s ease;
        outline: none;
        z-index: 50 !important;
        width: auto !important;
    }
    
    .btn-read-more:hover,
    .btn-read-more:active {
        background: rgba(212, 175, 55, 0.25) !important;
        color: #fff !important;
        border-color: rgba(212, 175, 55, 0.7) !important;
    }
    
    .btn-read-more i {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }
    
    .scene-inner.expanded .btn-read-more i {
        transform: rotate(180deg); /* Flip chevron up when expanded */
    }
    
    .scene-desc {
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
        text-align: center !important;
        color: #eae0c8 !important;
    }
    
    .scene-desc.text-highlight {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        font-style: italic !important;
    }

    /* Mobile Mini Game Layout */
    .game-container {
        padding: 1rem !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
    }
    .game-board {
        grid-template-columns: 1fr 35px 1.3fr !important;
        gap: 0.5rem !important;
        min-height: unset !important;
    }
    .game-card {
        padding: 0.6rem !important;
        border-radius: 8px !important;
        margin-bottom: 0 !important;
        transform: none !important; /* disable hover scaling on mobile touch */
    }
    .ornament-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        text-align: center;
    }
    .ornament-card span {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
    }
    .ornament-card .card-img {
        width: 100% !important;
        height: 55px !important;
        border-radius: 4px !important;
    }
    .meaning-card p {
        font-size: 0.62rem !important;
        line-height: 1.45 !important;
    }
    .game-score {
        margin-bottom: 0.8rem !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }
    .card-node {
        width: 10px !important;
        height: 10px !important;
    }
    .ornament-card .card-node {
        right: -5px !important;
    }
    .meaning-card .card-node {
        left: -5px !important;
    }
    .game-lines {
        display: block !important;
    }

    /* Audio and Nav controls */
    .audio-control-fixed {
        bottom: 1rem !important;
        left: 1rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    .audio-control-fixed button {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.95rem !important;
    }
    .audio-wave {
        width: 20px !important;
        height: 14px !important;
    }
    .audio-tooltip {
        font-size: 0.65rem !important;
    }
    .progress-nav {
        right: 0.8rem !important;
        gap: 1.2rem !important;
    }
    .nav-dot {
        width: 10px !important;
        height: 10px !important;
    }
    .progress-line {
        width: 1.5px !important;
    }

    /* Foliage sizing on mobile */
    .foliage-layer {
        width: 65vh !important;  /* decoupled from width, scaled with height to match original ratio */
        height: 75vh !important; /* tall and majestic framing */
    }
    .foliage-left {
        left: -32vh !important; /* Less shift so trees are visible on the sides */
    }
    .foliage-right {
        right: -32vh !important; /* Less shift */
    }
    .foreground-grass {
        height: 38vh !important; /* covers stilts perfectly */
        bottom: -3vh !important;
    }

    /* ==========================================================================
       MOBILE: Reposition hotspots & bird to match shifted scenery container
       ========================================================================== */
    .hotspot-pin#hs-naga-nabau {
        top: 63% !important;
        left: 60% !important;
    }
    .hotspot-pin#hs-sulur-tumbuhan {
        top: 41% !important;
        left: 51% !important;
    }
    .hotspot-pin#hs-burung-enggang {
        top: 29% !important;
        left: 57% !important;
    }
    .burung-enggang {
        left: 55% !important;
        top: 22% !important;
        width: 5% !important;
        height: 12% !important;
    }

    /* ==========================================================================
       MOBILE: Fix hotspot tooltips so they don't overflow the viewport
       ========================================================================== */
    .hotspot-tooltip {
        white-space: normal !important;
        max-width: 160px !important;
        width: max-content !important;
        font-size: 0.65rem !important;
        padding: 0.35rem 0.6rem !important;
        bottom: 130% !important;
    }
    /* Right-side hotspots: position tooltip to the LEFT of the pin */
    .hotspot-pin#hs-naga-nabau .hotspot-tooltip,
    .hotspot-pin#hs-burung-enggang .hotspot-tooltip {
        left: 0 !important;
        right: auto !important;
        transform: translateX(-105%) translateY(10px) !important;
    }
    .hotspot-pin#hs-naga-nabau:hover .hotspot-tooltip,
    .hotspot-pin#hs-burung-enggang:hover .hotspot-tooltip {
        transform: translateX(-105%) translateY(0) !important;
    }
    /* Center tooltip for the middle hotspot (sulur) */
    .hotspot-pin#hs-sulur-tumbuhan .hotspot-tooltip {
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
    }
    .hotspot-pin#hs-sulur-tumbuhan:hover .hotspot-tooltip {
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Hide side progress nav on mobile */
    .progress-nav {
        display: none !important;
    }

    /* Hide native browser scrollbar on mobile */
    ::-webkit-scrollbar {
        display: none !important;
    }
    * {
        scrollbar-width: none !important;
    }
    html {
        -ms-overflow-style: none !important;
    }
}

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

/* Subtle dark vignette overlay behind intro text for better readability */
.intro-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center 40%, rgba(15, 11, 7, 0) 30%, rgba(15, 11, 7, 0.35) 80%, rgba(15, 11, 7, 0.5) 100%);
    opacity: 0;
    animation: introOverlayIn 2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    will-change: transform, opacity;
    animation: introContentScale 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    opacity: 0;
    transform: scale(0.92);
}

/* Small tag label above the main title */
.intro-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    padding-left: 0.45em;
    text-transform: uppercase;
    color: #5a3e1b;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.3);
}

.intro-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1209;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.2);
    line-height: 1.15;
    margin: 0;
}

/* Gold gradient accent for the second line */
.intro-title-accent {
    background: linear-gradient(135deg, #6b4f1d 0%, #3d2b0a 40%, #5a3e1b 60%, #2c1d06 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.15));
}

.intro-divider {
    position: relative;
    width: 280px;
    height: 1px;
    background: linear-gradient(to right, rgba(90, 62, 27, 0) 0%, rgba(90, 62, 27, 0.6) 50%, rgba(90, 62, 27, 0) 100%);
    margin: 0.6rem 0;
}

/* Central gold diamond motif */
.intro-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background-color: #5a3e1b;
    border: 1px solid #3d2b0a;
    box-shadow: 0 0 4px rgba(90, 62, 27, 0.4);
}

.intro-subtitle {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    padding-left: 0.35em;
    color: rgba(30, 20, 10, 0.7);
    margin: 0;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   INTRO ENTRANCE ANIMATIONS — Cinematic overhaul
   ========================================================================== */

/* Overlay fade-in */
@keyframes introOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Entire content gently scales up from slightly zoomed out */
@keyframes introContentScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tag label — fades up with a slight perspective tilt */
.intro-tag {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: introTagIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes introTagIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Main title — dramatic reveal with blur-to-sharp + slight upward float */
.intro-title {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(8px);
    animation: introTitleReveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
@keyframes introTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(35px);
        filter: blur(8px);
    }
    50% {
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Divider line — expands from center with a warm gold glow */
.intro-divider {
    opacity: 0;
    transform: scaleX(0);
    animation: introDividerExpand 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}
@keyframes introDividerExpand {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    40% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Central diamond motif — pops in with a gentle bounce after divider appears */
.intro-divider::after {
    opacity: 0;
    animation: introDiamondPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards;
}
@keyframes introDiamondPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
    }
    70% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

/* Subtitle — fades up gently after the title is revealed */
.intro-subtitle {
    opacity: 0;
    transform: translateY(14px);
    animation: introSubIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.7s forwards;
}
@keyframes introSubIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness for Intro */
@media (max-width: 768px) {
    .intro-title {
        font-size: 2.2rem;
        letter-spacing: 0.04em;
    }
    .intro-tag {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
        padding-left: 0.3em;
    }
    .intro-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.25em;
        padding-left: 0.25em;
    }
    .intro-divider {
        width: 180px;
    }
}

/* ==========================================================================
   BURUNG ENGGANG STYLING & POSITIONING
   ========================================================================== */
.burung-enggang {
    position: absolute;
    left: 70%;
    top: 20.27%; /* 11.4vw / 56.25vw */
    width: 4.5%;
    height: 11.91%; /* 6.7vw / 56.25vw */
    background-image: url('../assets/burung_enggang.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    transform-origin: bottom center;
    will-change: transform, opacity;
    pointer-events: none;
}
