/* ===== БАЗОВЫЕ СТИЛИ И RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    overflow: hidden;
    height: 100vh;
    cursor: none;
    
    /* Отключение выделения и контекстного меню */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== ФОНОВЫЙ КОНТЕЙНЕР ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1000;
    overflow: hidden;
}

/* ===== ФОНОВОЕ ИЗОБРАЖЕНИЕ ===== */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/media/frame.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1002;
}

/* ===== ФОНОВОЕ ВИДЕО ===== */
#bgVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    z-index: -1001;
    filter: none;
    transition: opacity 2s ease-in-out;
}

#bgVideo.loaded {
    opacity: 1;
}

#bgVideo.error {
    display: none;
}

/* Мобильная версия - сдвиг влево */
@media (max-width: 768px) {
    #bgVideo {
        object-position: 30% center; /* Сдвигаем на 30% влево */
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    #bgVideo {
        object-position: 20% center; /* Еще больше влево */
    }
}

/* ===== ПОДЛОЖКИ И ОВЕРЛЕИ ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.5) 50%, 
        rgba(0,0,0,0.8) 100%);
    z-index: -999;
}

/* ===== КОНТЕЙНЕР КОНТЕНТА ===== */
.text-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 700px;
    max-width: 700px;
    text-align: left;
    z-index: 100;
}

.title-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
}

/* ===== СКРЫТИЕ СКРОЛЛБАРОВ ===== */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* ===== КУРСОР МЫШИ ===== */
body {
    cursor: none;
}

body.show-cursor {
    cursor: default;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }
}