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

body {
    background: #050a12;
    overflow: hidden;
    font-family: 'Press Start 2P', monospace;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

#canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 120%, #0a2535 0%, #050a12 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: #44ffcc;
    text-shadow: 0 0 20px rgba(68, 255, 204, 0.5), 0 0 40px rgba(0, 200, 170, 0.3);
    margin-bottom: 30px;
    animation: titlePulse 2s ease-in-out infinite;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background: #0a2030;
    border-radius: 2px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 1px solid #1a4050;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ccaa, #44ffcc, #00ccaa);
    border-radius: 2px;
    animation: loadProgress 1.5s ease-out forwards;
}

.loading-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: #446666;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

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

