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

body {
    background: #0a0505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#canvas {
    display: block;
    border: 4px solid #FFD700;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.5);
}

#mobile-controls {
    display: none;
    width: 100%;
    max-width: 500px;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 20px;
}

#joystick-area {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#joystick-base {
    width: 100px;
    height: 100px;
    background: rgba(255, 215, 0, 0.2);
    border: 3px solid #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#joystick-stick {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #FFD700, #B8860B);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.05s ease-out;
}

#action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    background: rgba(220, 20, 60, 0.8);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s, background 0.1s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.action-btn:active {
    transform: scale(0.9);
    background: rgba(255, 107, 0, 0.9);
}

.action-btn.heavy {
    background: rgba(139, 69, 19, 0.9);
}

.action-btn.haymaker {
    background: rgba(255, 107, 0, 0.9);
}

.action-btn.ult {
    background: linear-gradient(145deg, #FFD700, #B8860B);
}

#footer {
    margin-top: 15px;
    color: #666;
    font-size: 12px;
}

#footer a {
    color: #DC143C;
    text-decoration: none;
}

#footer a:hover {
    color: #FFD700;
}

@media (max-width: 600px) {
    #canvas {
        border-width: 2px;
    }
    
    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    #joystick-base {
        width: 90px;
        height: 90px;
    }
    
    #joystick-stick {
        width: 35px;
        height: 35px;
    }
}