body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #141214;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.logo {
    width: 200px;
    height: 200px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    margin-bottom: 40px;
    transition: 0.2s;
}

.logo:hover {
    scale: 1.05;
}

.logo:active {
    scale: 0.95;
}


.mode-icon {
    opacity: 1;
    cursor: pointer;
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
    z-index: 1000;
    cursor: default;
}

.mode-icon:hover {
    transform: translateX(-50%) scale(1.1) rotate(45deg);
}

.mode-icon:active {
    transform: translateX(-50%) scale(0.9);
}

.text {
    opacity: 0;
    color: #fff;
    text-decoration: none;
    font-weight: 200;
    font-size: 1.6rem;
    text-align: center;
    margin: -10px;
    cursor: default;
    transition: 0.3s;
    animation: fadeInUp 0.5s ease forwards;
}

.text:hover {
    font-weight: 300;
    letter-spacing: 0.05em;
}

.text:active {
    scale: 0.90;
}

.text:nth-child(2) { animation-delay: 0.2s; }
.text:nth-child(3) { animation-delay: 0.4s; }
.text:nth-child(4) { animation-delay: 0.6s; }
.text:nth-child(5) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.transition .container {
    animation: fadeOutDown 0.3s forwards;
}

body.transition.slide-in .container {
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30px);
    }
}

#intro-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60%;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    #intro-video {
        width: 200%;
    }
    
    .mode-icon {
        width: 40px;
        height: 40px;
        bottom: 10px;
    }
    body {
        overflow: hidden;
    }
}

body.intro-playing .mode-icon {
    display: none;
}

body.intro-playing {
    background-color: #141214;
}

body.intro-playing .container,
body.intro-playing .mode-icon {
    display: none;
}
