* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    overflow: hidden;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: opacity 1.2s ease;
}

#loader.hide {
    opacity: 0;
    pointer-events: none;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Logo - static, no animation */
#logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    animation: logoFadeIn 0.6s ease-out 0.5s forwards;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
    }
}

#logo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(202, 188, 231, 0.25));
}

/* Progress bar container */
#progress-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: progressIn 0.6s ease-out 1s forwards;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #cabce7, #e5c0e9, #f2a2bb);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(202, 188, 231, 0.5);
}

@keyframes progressIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Loading text - only shows after 4 seconds */
#loading-text {
    position: absolute;
    bottom: calc(20% + 40px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 500;
    color: #888;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
}

#loading-text.show {
    animation: textFadeIn 0.5s ease-out forwards;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

#loading-text #percent {
    font-weight: 600;
    color: #666;
}

/* Content */
#content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #fafbff 0%, #fff5f7 100%);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1.3s ease 0.3s, transform 1.3s ease 0.3s;
}

#content.show {
    opacity: 1;
    transform: scale(1);
}

body.loaded {
    overflow: auto;
}

#content h1 {
    font-size: 52px;
    font-weight: 700;
    background: linear-gradient(135deg, #cabce7, #e5c0e9, #f2a2bb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

#content p {
    font-size: 20px;
    color: #666;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #logo img {
        width: 100px;
        height: 100px;
    }
    
    #progress-container {
        width: 220px;
        height: 5px;
    }
    
    #loading-text {
        font-size: 14px;
    }
    
    #content h1 {
        font-size: 36px;
    }
    
    #content p {
        font-size: 18px;
    }
}