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

body {
    background: #0a0a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    padding: 10px;
    overflow-x: hidden;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#canvas {
    border: 4px solid #FFD700;
    border-radius: 4px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 60px rgba(0,0,0,0.3);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.ctrl-row {
    display: flex;
    gap: 5px;
}

.ctrl-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border: 3px solid #FFD700;
    border-radius: 8px;
    color: #FFD700;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.1s;
}

.ctrl-btn:active {
    background: linear-gradient(145deg, #3a3a5a, #2a2a4a);
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#instructions {
    color: #888;
    font-size: 10px;
    margin-top: 15px;
    text-align: center;
}

#remix-link {
    color: #32CD32;
    text-decoration: none;
    font-size: 10px;
    margin-top: 20px;
    padding: 8px 16px;
    border: 2px solid #32CD32;
    border-radius: 4px;
    transition: all 0.2s;
}

#remix-link:hover {
    background: #32CD32;
    color: #000;
}

@media (max-width: 600px) {
    #mobile-controls {
        display: flex;
    }
    
    #instructions {
        display: none;
    }
    
    .ctrl-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .ctrl-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}