/* Combat System */
.combat-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.combat-arena {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: rgba(0, 30, 0, 0.7);
    border: 2px solid #00ff00;
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    position: relative;
}

.combatant {
    text-align: center;
    transition: all 0.3s;
}

.combatant-sprite {
    width: 120px;
    height: 120px;
    background: #003300;
    border: 2px solid #00ff00;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
}

.combatant-sprite.damaged {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.health-bar-container {
    width: 150px;
    margin: 10px auto;
}

.health-bar {
    width: 100%;
    height: 20px;
    background: #001100;
    border: 1px solid #00ff00;
    position: relative;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff6600);
    transition: width 0.3s;
}

.enemy-health-fill {
    background: linear-gradient(90deg, #ff0000, #990000);
}

.combat-status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 50, 0, 0.9);
    border: 1px solid #00ff00;
    padding: 10px 20px;
    font-size: 18px;
    color: #ffff00;
}

.combat-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    max-width: 600px;
}

.combat-action {
    padding: 15px;
    background: rgba(0, 30, 0, 0.7);
    border: 1px solid #00ff00;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    text-align: center;
}

.combat-action:hover {
    background: rgba(0, 100, 0, 0.5);
    box-shadow: 0 0 10px #00ff00;
    transform: scale(1.05);
}

.combat-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.combat-action.disabled:hover {
    transform: none;
    box-shadow: none;
}

.environmental-object {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 50, 0, 0.7);
    border: 1px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.environmental-object:hover {
    background: rgba(0, 100, 0, 0.7);
    box-shadow: 0 0 15px #00ff00;
}

.environmental-object.used {
    opacity: 0.3;
    cursor: not-allowed;
}

.damage-number {
    position: absolute;
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    animation: floatUp 1s forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.combo-indicator {
    position: absolute;
    top: 50px;
    right: 20px;
    background: rgba(255, 255, 0, 0.2);
    border: 2px solid #ffff00;
    padding: 10px;
    font-size: 20px;
    color: #ffff00;
}

.turn-indicator {
    background: rgba(0, 50, 0, 0.9);
    border: 1px solid #00ff00;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-size: 20px;
}

.enemy-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(50, 0, 0, 0.7);
    border: 1px solid #ff0000;
    padding: 10px;
    font-size: 16px;
}