/* --- GLOBAL UNIFIED STYLING --- */
@font-face {
    font-family: 'MyCustomFont';
    src: url('myfont.otf') format('opentype');
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    font-family: 'MyCustomFont', sans-serif;
}

/* --- THE HORSE NAVIGATION ICON (ROOM 1, 2, 3) --- */
.back-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 200;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horse-back-icon {
    width: 50px;
    height: auto;
    /* No filters applied - renders exactly like your raw PNG asset */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.back-btn:hover .horse-back-icon {
    transform: scale(1.15);
    opacity: 0.7;
}

/* --- ENTRY GATE SPECIFICS (INDEX) --- */
#entry-gate {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-in-out;
}
#entry-gate.fade-out {
    opacity: 0;
    pointer-events: none;
}

#enter-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.horse-gate-icon {
    width: 120px;
    height: auto;
    /* No filters applied - renders exactly like your raw PNG asset */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

#enter-btn:hover .horse-gate-icon {
    transform: scale(1.1) rotate(-3deg);
    opacity: 0.8;
}

/* --- 3D CANVAS CONTAINER ENVIRONMENT --- */
#canvas-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
#canvas-container.visible {
    opacity: 1;
}