@font-face {
    font-family: 'Khaenriah';
    src: url('fonts/Khaenriah.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Genshin';
    src: url('fonts/genshin.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Genshin', 'Microsoft YaHei', sans-serif;
    background-color: #000;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    opacity: 0;
    transition: opacity 1s ease;
}

#bg-video.loaded {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(77, 79, 83, 0.2);
    z-index: 2;
}

.content-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    pointer-events: none;
}

.title-text {
    font-family: 'Khaenriah', serif;
    font-size: 72px;
    color: #D3BC8E;
    letter-spacing: 8px;
    opacity: 0;
    text-shadow: 0 0 30px rgba(211, 188, 142, 0.5);
    animation: particleGather 3s ease forwards;
}

@keyframes particleGather {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
        filter: blur(20px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px) scale(0.8);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.enter-btn {
    font-family: 'Genshin', sans-serif;
    font-size: 20px;
    color: #D3BC8E;
    background-color: transparent;
    border: 2px solid #D3BC8E;
    padding: 15px 50px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    letter-spacing: 3px;
    pointer-events: auto;
    border-radius: 8px;
}

.enter-btn.visible {
    opacity: 1;
}

.enter-btn:hover {
    background-color: #D3BC8E;
    color: #4d4f53;
    box-shadow: 0 0 20px rgba(211, 188, 142, 0.6);
}

.enter-btn:active {
    transform: scale(0.95);
}
