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

body {
    background: #0a0a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

#game-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    flex: 1;
}

#canvas {
    display: block;
    background: #0a0a1a;
    touch-action: none;
    image-rendering: pixelated;
    border-left: 4px solid #ff00ff;
    border-right: 4px solid #00ffff;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#footer {
    padding: 10px;
    text-align: center;
    font-size: 10px;
    color: #666;
    background: #0a0a1a;
    width: 100%;
}

#footer a {
    color: #ff6b9d;
    text-decoration: none;
    transition: color 0.3s;
}

#footer a:hover {
    color: #00ffff;
}

/* Touch zones visualization for mobile */
@media (max-width: 768px) {
    #canvas {
        cursor: pointer;
    }
}

/* Retro scanline effect */
#canvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* Pulsing glow animation for container */
@keyframes borderGlow {
    0%, 100% {
        box-shadow: 
            inset 0 0 20px rgba(255, 0, 255, 0.1),
            inset 0 0 40px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            inset 0 0 30px rgba(255, 0, 255, 0.2),
            inset 0 0 60px rgba(0, 255, 255, 0.2);
    }
}

#game-container {
    animation: borderGlow 3s ease-in-out infinite;
}