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

body {
    overflow: hidden;
    background: #000;
}

#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

/* Mobile Splash Screen */
#mobileSplash {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #0a0a2e 0%, #1a1a4e 50%, #2d4a2d 100%);
    z-index: 9999;
    overflow: hidden;
}

#mobileSplash.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

/* UFO and Tractor Beam */
.ufo-container {
    position: relative;
    margin-bottom: -30px;
    animation: ufoHover 3s ease-in-out infinite;
}

.ufo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
}

.tractor-beam {
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translateX(-50%);
    width: 20px;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 200, 0.8) 0%,
        rgba(0, 255, 200, 0.4) 30%,
        rgba(0, 255, 200, 0.1) 100%
    );
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    animation: beamPulse 1.5s ease-in-out infinite;
}

@keyframes ufoHover {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.7; width: 20px; }
    50% { opacity: 1; width: 30px; }
}

/* Message Container */
.message-container {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px 25px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

/* Floating Abductees */
.abductees {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: -60px;
}

.abductee {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.6));
}

.abductee.cow {
    animation: float 2s ease-in-out infinite;
}

.abductee.cat {
    animation: float 2s ease-in-out infinite 0.3s;
}

.abductee.dog {
    animation: float 2s ease-in-out infinite 0.6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Typography */
#mobileSplash h1.rainbow-wave {
    font-family: 'Arial Black', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 8px;
    display: flex;
    justify-content: center;
}

#mobileSplash h1.rainbow-wave span {
    display: inline-block;
    animation: rainbowWave 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes rainbowWave {
    0%, 100% {
        color: hsl(0, 100%, 60%);
        text-shadow: 0 0 10px hsl(0, 100%, 50%), 0 0 20px hsl(0, 100%, 50%);
        transform: translateY(0);
    }
    16% {
        color: hsl(60, 100%, 60%);
        text-shadow: 0 0 10px hsl(60, 100%, 50%), 0 0 20px hsl(60, 100%, 50%);
    }
    33% {
        color: hsl(120, 100%, 60%);
        text-shadow: 0 0 10px hsl(120, 100%, 50%), 0 0 20px hsl(120, 100%, 50%);
    }
    50% {
        color: hsl(180, 100%, 60%);
        text-shadow: 0 0 10px hsl(180, 100%, 50%), 0 0 20px hsl(180, 100%, 50%);
        transform: translateY(-12px);
    }
    66% {
        color: hsl(240, 100%, 60%);
        text-shadow: 0 0 10px hsl(240, 100%, 50%), 0 0 20px hsl(240, 100%, 50%);
    }
    83% {
        color: hsl(300, 100%, 60%);
        text-shadow: 0 0 10px hsl(300, 100%, 50%), 0 0 20px hsl(300, 100%, 50%);
    }
}

.main-message {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sub-message {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 20px;
}

.url-hint {
    font-family: monospace;
    font-size: 0.75rem;
    color: #0f0;
    background: rgba(0, 255, 0, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Stars Background */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
