@font-face {
    font-family: 'Pricedown';
    src: url('Pricedown.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

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

body {
    font-family: 'Pricedown', sans-serif !important;
    background: #000;
    overflow: hidden;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* 🛡️ SECURITY: Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Vault Loader Styles */
.vault-loader {
    color: #fff;
    font-family: 'Pricedown', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

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

body::before {
    content: '';
    position: fixed;
    inset: 0;
    /* Ultra-fine scanlines */
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 2px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    /* Authentic CRT Vignette */
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.4) 120%);
}

#video-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    filter: saturate(0.9) contrast(1.1) brightness(1.0);
}

#intro-video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    /* ✂️ Crop the bottom to hide captions */
    transform: scale(1.1); 
    transform-origin: top;
}

#overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
    transition: background 1s ease;
}

#overlay.active {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 30%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
}

#vintage-overlay {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
    mix-blend-mode: soft-light;
    opacity: 0.3;
    animation: screenFlicker 0.15s infinite;
}

@keyframes screenFlicker {
    0% { opacity: 0.25; }
    50% { opacity: 0.3; }
    100% { opacity: 0.28; }
}

.game-title {
    position: fixed;
    top: 35px;
    left: 100px;
    font-size: 150px;
    font-family: 'Pricedown', sans-serif !important;
    color: #ffffff;
    text-shadow: 6px 6px 0px #000, -2px -2px 0px #000;
    letter-spacing: 10px;
    z-index: 10;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1;
}

.game-title.visible { opacity: 1; transform: translateX(0); }

.menu-container {
    position: fixed;
    left: 70px;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
    width: 650px;
}

.menu-item {
    font-size: 58px;
    font-family: 'Pricedown', sans-serif !important;
    color: #fff;
    padding: 15px 35px;
    margin: 20px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-shadow: 4px 4px 0px #000;
}

.menu-item.visible { opacity: 1; transform: translateX(0); }
.menu-item:hover, .menu-item.selected { transform: translateX(15px); color: #ffd700; }

.footer-text {
    position: fixed;
    bottom: 40px;
    right: 50px;
    font-size: 28px;
    font-family: 'Pricedown', sans-serif !important;
    color: #ffffff;
    letter-spacing: 2px;
    z-index: 10;
    opacity: 0;
    text-shadow: 3px 3px 0px #000;
    transition: opacity 1s ease 1.2s;
}

.footer-text.visible { opacity: 0.8; }

.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(100px) rotate(360deg); opacity: 0; }
}

.ns-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    z-index: 10000;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .game-title { 
        font-size: 58px; 
        left: 20px; 
        top: 20px; 
        letter-spacing: 2px;
        width: calc(100% - 40px);
        text-align: left;
        line-height: 0.9;
    }
    
    .menu-container { 
        left: 20px !important; 
        width: calc(100% - 40px) !important;
        top: 250px !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .menu-item { 
        font-size: 34px !important; 
        padding: 8px 0 !important; 
        margin: 0 !important; 
        width: 100% !important;
        display: block !important;
        letter-spacing: 1px !important;
        text-align: left !important;
    }
    
    .footer-text { 
        font-size: 16px; 
        right: 20px; 
        bottom: 20px; 
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 68px;
        top: 15px;
        letter-spacing: 1px;
    }
    
    .menu-container {
        top: 180px !important;
        gap: 6px !important;
    }
    
    .menu-item {
        font-size: 36px !important;
        padding: 4px 0 !important;
    }
}

