* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #000;
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -100px;
    color: #fff;
    font-size: 1em;
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite, sway ease-in-out infinite;
}

.snowflake.red {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.snowflake.white {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

@keyframes sway {
    0%, 100% {
        margin-left: 0;
    }
    50% {
        margin-left: 50px;
    }
}

.mobile-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.mobile-block.active {
    display: flex;
}

.mobile-block-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    max-width: 90%;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.mobile-block-content i {
    font-size: 80px;
    color: #ff0000;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.mobile-block-content h1 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.mobile-block-content p {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.5;
}

.mobile-block-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.loading-screen.active {
    opacity: 1;
    pointer-events: all;
}

.start-button {
    padding: 20px 50px;
    font-size: 36px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: lowercase;
    background: linear-gradient(
        to right,
        #ff0000 20%,
        #ffffff 30%,
        #ffffff 70%,
        #ff0000 80%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 5s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
    position: relative;
}

.start-button:hover {
    transform: scale(1.1);
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.start-button {
    animation-duration: 3s;
}

.background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.background-video.dimmed {
    filter: brightness(0.4);
    transition: filter 1s ease;
}

.content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.content.visible {
    opacity: 1;
}

.content.hidden {
    opacity: 0;
    pointer-events: none;
}

.username-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.username-container span {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 72px;
    display: block;
    color: #ffffff;
    animation: letterDrop 0.8s ease-out forwards, colorShine 3s ease-in-out infinite alternate;
    transform: translateY(-100vh) scaleX(.7);
    opacity: 0;
}

@keyframes letterDrop {
    0% {
        transform: translateY(-100vh) scaleX(.7);
        opacity: 0;
    }
    60% {
        transform: translateY(5px) scaleY(.9);
        opacity: 1;
    }
    80% {
        transform: translateY(-3px) scaleY(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes colorShine {
    0%, 100% {
        color: #ff0000;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 1s ease;
}

.social-buttons.visible {
    opacity: 1;
}

.social-btn {
    font-size: 24px;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-btn:hover {
    color: #ff0000;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.social-btn i {
    font-size: 28px;
}

.volume-control {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.volume-control.visible {
    opacity: 1;
}

.volume-control.hidden {
    opacity: 0;
    pointer-events: none;
}

.volume-icon {
    font-size: 24px;
    color: #ffffff;
}

.volume-slider {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.volume-percent {
    font-size: 16px;
    font-weight: bold;
    min-width: 45px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .username-container span {
        font-size: 48px;
    }
    
    .start-button {
        font-size: 24px;
        padding: 15px 40px;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .social-btn {
        font-size: 20px;
    }
    
    .social-btn i {
        font-size: 24px;
    }
    
    .volume-control {
        top: 20px;
        left: 20px;
        padding: 12px 20px;
        gap: 10px;
    }
    
    .volume-slider {
        width: 100px;
    }
    
    .volume-icon {
        font-size: 20px;
    }
    
    .volume-percent {
        font-size: 14px;
    }
}
