body {
    margin: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    user-select: none;
    background-color: #111;
    touch-action: none; /* Evita zoom en celular */
}

#start-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #4a0000);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 999;
}

#btn-start {
    padding: 15px 40px;
    font-size: 24px;
    background: #ff9900;
    border: none;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

#crosshair {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    pointer-events: none;
}

#top-bar {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    color: #ffd700;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 2px 2px 0 #000;
}

#health-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 15px;
    background: #333;
    border: 2px solid white;
}

#health-bar {
    width: 100%;
    height: 100%;
    background: #00ff00;
    transition: width 0.2s;
}

/* Controles Táctiles */
#joystick-area {
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

#joystick-knob {
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#actions-area {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 20px;
}

.action-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid rgba(255,255,255,0.5);
    font-size: 30px;
    color: white;
    touch-action: manipulation;
}

#game-over-msg {
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    color: red;
    text-shadow: 2px 2px 0 black;
    display: none;
}