/* === 战斗阶段 HTML HUD === */

#battle-hud {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 15;
    pointer-events: none;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
#battle-hud.active { display: block; }

/* 顶栏 */
.bh-top {
    background: rgba(0,0,0,0.6);
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
}
.bh-top-center {
    text-align: center;
}
.bh-title {
    font-size: 15px;
    font-weight: bold;
    color: #e74c3c;
}
.bh-round {
    font-size: 11px;
    color: #aaa;
}
.bh-player {
    font-size: 13px;
    font-weight: bold;
}
.bh-player-left { text-align: left; }
.bh-player-right { text-align: right; }
.bh-hp { margin-bottom: 2px; }
.bh-res {
    font-size: 11px;
}
.bh-gold { color: #ffd700; }
.bh-crystal { color: #00bfff; }

/* 飞龙按钮 — 跟随canvas底部 */
#battle-hud-bottom {
    position: absolute;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    max-width: 1200px;
}
.bh-dragon-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s;
    background: rgba(0,0,0,0.6);
}
.bh-dragon-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}
.bh-dragon-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.bh-dragon-p0 {
    color: #e8c84a;
    border-color: #e8c84a;
}
.bh-dragon-p1 {
    color: #7ec8e3;
    border-color: #7ec8e3;
}
.bh-dragon-spacer {
    flex: 1;
}

/* FPS计数器 */
#fps-counter {
    position: fixed;
    top: 40px;
    right: 8px;
    font-size: 12px;
    color: #0f0;
    font-family: monospace;
    z-index: 30;
    pointer-events: none;
    text-shadow: 0 0 3px #000;
}
