* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
    overflow: hidden;
    background: #000;
}

.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #000000, #1A237E);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.intro-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

#introCanvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.speech-bubble {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px 30px;
    border-radius: 20px;
    border: 3px solid #000;
    opacity: 0;
    animation: fadeInBounce 0.5s ease-out forwards;
    animation-delay: 2s;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bubble-content p {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.loading-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.loading-bowl {
    width: 300px;
    height: 60px;
    background: linear-gradient(to bottom, #FF7043, #D84315);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 3px solid #BF360C;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.loading-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #FFF59D, #FFD54F, #FFC107);
    border-radius: 30px;
    transition: width 0.3s ease-out;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.loading-text {
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.start-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.start-message.show {
    animation: popIn 0.5s ease-out forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.start-message h1 {
    font-size: 64px;
    color: white;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6);
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.8);
    }
}

.main-content {
    display: none;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px;
    color: white;
}

.main-content.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.main-content p {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.demo-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.demo-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.demo-box p {
    font-size: 18px;
}