/* ========================================
   战斗场景样式 - 怪物区在上 + 角色卡牌区在下
   ======================================== */

.battle-scene {
    background: #0d1117;
    width: 100%;
    overflow: auto;
}

/* 战斗场景容器 */
.battle-scene-container {
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: auto;
    overflow-x: visible;
    position: relative;
}

/* ===== 顶部控制栏 ===== */
/* 已移除 */

.battle-btn {
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 13px;
}

.battle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.battle-btn.primary {
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-weight: bold;
}

.battle-btn.primary:hover {
    opacity: 0.9;
}

.battle-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 怪物区域（顶部）===== */
.battle-monster-area {
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 2px dashed var(--color-border);
    background: rgba(139, 0, 0, 0.05);
}

.battle-monster-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.monster-title {
    color: #8B0000;
    margin: 0;
    font-size: 14px;
}

.monster-hint {
    font-size: 11px;
    color: var(--color-text-dim);
}

.battle-monster-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 200px;
}

/* ===== 角色卡牌区域（底部）===== */
.battle-card-area {
    flex: 1;
    position: relative;
    min-height: 300px;
    padding: 8px;
    overflow: visible;
}

.battle-card-area .card-list {
    min-width: 0;
    min-height: 100%;
    height: 100%;
}

/* ===== 战斗日志 ===== */
.battle-log {
    display: none;
    flex-shrink: 0;
    height: 80px;
    overflow-y: auto;
    padding: 6px 12px;
    font-size: 11px;
    color: var(--color-text-dim);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    font-family: var(--font-main);
    line-height: 1.6;
}

.battle-log div {
    padding: 1px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ===== 悬浮开始战斗按钮 ===== */
.battle-float-btn {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 14px 48px;
    font-size: 22px;
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== HP条 ===== */
.battle-hp-container {
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
}

.battle-hp-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.battle-hp-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    font-size: 10px;
    color: #fff;
    text-shadow: 0 0 2px #000;
}

/* ===== 死亡盖章动画 ===== */
@keyframes death-stamp-in {
    0% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(2.5);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(0.9);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
        opacity: 1;
    }
}

.death-stamp-overlay {
    animation: death-overlay-in 0.35s ease-out forwards;
}

@keyframes death-overlay-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ===== Toast 提示 ===== */
.battle-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: bold;
    z-index: 9999;
    pointer-events: none;
    background: rgba(200, 30, 30, 0.92);
    color: #fff;
    border: 1px solid #ff4444;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
    animation: battleToastIn 0.3s ease, battleToastOut 0.3s ease 1.5s forwards;
}

@keyframes battleToastIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes battleToastOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}
