.battle-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.choice-box {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border: 3px dashed rgba(255,255,255,0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.choice-box.ready {
    border-style: solid;
    border-color: #2ecc71;
    color: #2ecc71;
}

.choice-box.revealed {
    border-style: solid;
    border-color: #f1c40f;
    color: #fff;
    background: #f1c40f;
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.choice-btn {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 0 #ddd;
    transition: transform 0.1s;
}

.choice-btn i { font-size: 1.8rem; color: #1a2a6c; }
.choice-btn span { font-weight: bold; color: #333; font-size: 0.8rem; }

.choice-btn:active { transform: translateY(4px); box-shadow: none; }
.choice-btn.disabled { opacity: 0.5; pointer-events: none; }

#timer-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

#timer-bar {
    height: 100%;
    background: #e74c3c;
    width: 100%;
    transition: width 1s linear;
}

@keyframes pop { 0% { transform: scale(0.5); } 100% { transform: scale(1); } }

/* Estilos para el historial de rondas */
.round-history-container {
    margin-top: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 10px;
    max-height: 150px; /* Limita la altura para permitir scroll */
    overflow-y: auto;
    display: flex;
    flex-direction: column; /* Mostrar las rondas más recientes al final */
    gap: 5px;
}

.round-history-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.round-history-item:last-child {
    border-bottom: none;
}

.round-number {
    font-weight: bold;
    color: #f1c40f; /* Color amarillo para el número de ronda */
}

.my-choice, .opponent-choice {
    font-size: 1.2rem;
    color: #fff;
}

/* Colores para el resultado de la ronda */
.round-result.win {
    background: #2ecc71; /* Verde para victoria */
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 480px) {
    .round-history-container {
        margin-top: 10px;
        padding: 8px;
        max-height: 120px; /* Reducimos un poco la altura máxima */
    }
    .round-history-item {
        gap: 6px;
        padding: 4px 0;
        font-size: 0.8rem; /* Fuente más pequeña */
    }
    .my-choice, .opponent-choice {
        font-size: 1rem; /* Iconos de manos más compactos */
    }
    .round-result {
        padding: 1px 5px; /* Etiquetas de resultado más ceñidas */
    }
}

.round-result.lose {
    background: #e74c3c; /* Rojo para derrota */
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
}

.round-result.tie {
    background: #3498db; /* Azul para empate */
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
}