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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    /* Hide native scrollbar but allow native scrolling */
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
    /* Required for raycaster ripple effect */
}

.scroll-spacer {
    /* Set an incredibly long height to allow "infinite zoom" scrolling */
    height: 600vh;
    position: relative;
    z-index: 0;
}

.ui-layer {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 10;
    text-align: left;
    pointer-events: none;
    transition: opacity 1s ease-out;
}

.title {
    font-size: 3vw;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.1;
    margin-bottom: 5px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.4) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* FPS Crosshair */
#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 0.8;
        transform: translateY(2px);
    }
}

/* Instructions Overlay */
#instructions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 200;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

#instructions .content {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 40px 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Central Preview Overlay Styles */
#poster-preview-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: auto;
    max-width: 80vw;
    height: 70vh;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#poster-preview-container.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#poster-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}