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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #0b0b1a;
    color: #ffffff;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.03),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.03)
    );
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 10;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255,255,255,0)
    );
    background-size: 100% 12px;
    pointer-events: none;
    z-index: 11;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a103c 0%, #05021a 100%);
    overflow: hidden;
    z-index: 1;
}

.bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(to right, rgba(255, 105, 180, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(147, 112, 219, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-fall 4s linear infinite;
    transform: perspective(500px) rotateX(45deg);
}

@keyframes grid-fall {
    0% { transform: perspective(500px) rotateX(45deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(45deg) translateY(50px); }
}

.content-container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    text-align: center;
}

.character-wrapper {
    max-width: 380px;
    width: 70vw;
    margin-bottom: 20px;
    animation: floating-fall 3s ease-in-out infinite alternate;
}

.falling-character {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

@keyframes floating-fall {
    0% {
        transform: translateY(-10px) rotate(-3deg);
    }
    100% {
        transform: translateY(15px) rotate(3deg);
    }
}

.message-box {
    background: rgba(15, 12, 35, 0.75);
    border: 1px solid rgba(255, 105, 180, 0.4);
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.3), inset 0 0 15px rgba(255, 105, 180, 0.2);
    padding: 25px 40px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    max-width: 600px;
    width: 90%;
}

.glitch-text {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ff79c6;
    text-shadow: 2px 2px 0px #bd93f9, -2px -2px 0px #ff5555;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.sub-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: #50fa7b;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(80, 250, 123, 0.3);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #50fa7b;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #50fa7b;
    animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@media (max-width: 600px) {
    .glitch-text {
        font-size: 1.5rem;
    }
    .sub-text {
        font-size: 0.9rem;
    }
    .message-box {
        padding: 20px;
    }
    .character-wrapper {
        max-width: 260px;
    }
}