.battle-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.battle-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-weight: 600;
}

.battle-arena {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 300px;
}

.battle-side {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.battle-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.battle-unit.active {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.battle-unit.dead {
    opacity: 0.4;
    filter: grayscale(0.8);
}

.battle-unit-portrait {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.battle-unit-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.hp-bar {
    width: 80px;
    height: 6px;
    background: rgba(0,0,0,0.4);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.3s;
}

.hp-text {
    font-size: 10px;
    color: var(--text-muted);
}

.status-badges {
    display: flex;
    gap: 2px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.status-debuff {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--danger);
    color: white;
}

.battle-controls {
    text-align: center;
}

.skill-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-skill {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    position: relative;
}

.btn-skill:hover:not(:disabled) {
    border-color: var(--accent);
}

.btn-skill.selected {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.btn-skill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cooldown {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 8px;
}

.battle-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.battle-log {
    max-height: 200px;
    overflow-y: auto;
}

.log-line {
    font-size: 13px;
    padding: 4px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.log-line:last-child {
    border-bottom: none;
}

.stage-card {
    transition: transform 0.2s;
}

.stage-card:hover {
    transform: translateY(-4px);
}
