

body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#gameArea {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #f0f8ff;
    overflow: hidden;
}
.obstacle {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: red;
}

.obstacle.frozen {
    background-color: #00a8ff;
    opacity: 0.8;
    border: 2px solid #0080cc;
}
#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    color: #333;
}
#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
}
#gameOver h1 {
    font-size: 36px;
    color: #333;
}
#gameOver button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

.web {
    position: absolute;
    width: 4px;
    background: #555;
}

#mouse {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('../img/araña.png') no-repeat center center;
    background-size: cover;
    bottom: 120px;
    left: calc(50% - 25px);
    pointer-events: none;
}

/* =========================
   CONTROLES MOBILE
========================= */
#mobileControls {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: row;
    gap: 15px;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

#mobileControls button {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 50%;
    border: 2px solid #333;
    background: rgba(0,0,0,0.7);
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

#mobileControls button:active {
    background: rgba(0,0,0,0.9);
    transform: scale(0.95);
}

/* mostrar en pantallas chicas */
@media (max-width: 768px) {
    #mouse {
        bottom: 140px;
    }
    
    #mobileControls {
        display: flex;
        bottom: 15px;
    }
}

/* araña bot */
#aranabot {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('../img/bot.png') no-repeat center center;
    background-size: cover;
    z-index: 100;
}