/* ═══════════════════════════════════════════
   BATTLE PAGE
═══════════════════════════════════════════ */
.battle-layout {
  flex: 1; display: grid;
  grid-template-columns: 190px 1fr 190px;
  min-height: 0;
}
.battle-sidebar {
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; background: var(--surface);
}
.battle-sidebar.right { border-right: none; border-left: 1px solid var(--border); }

.fighter-name { font-size: 16px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }

.hp-label-row {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px;
}
.hp-label-text { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.hp-val { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--text); }
.hp-bar-bg {
  height: 8px; background: var(--bg);
  overflow: hidden; border-radius: 99px;
  border: 1px solid var(--border);
}
.hp-bar-fill { height: 100%; transition: width 0.25s, background 0.3s; border-radius: 99px; }
.hp-pct { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-top: 3px; text-align: right; }

.sidebar-divider { height: 1px; background: var(--border); flex-shrink: 0; }

.skills-list-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 7px; font-weight: 700;
}
.skill-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.skill-cd-ring {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; position: relative; overflow: hidden;
  background: var(--bg);
}
.skill-cd-ring.ready { border-color: var(--accent); background: #5b5ef412; }
.skill-cd-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(242,243,247,0.75); transition: height 0.1s linear;
}
.skill-info { flex: 1; min-width: 0; }
.skill-row-name {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text);
}
.skill-row-cd { font-family: var(--mono); font-size: 10px; color: var(--text-dim); }

/* battle canvas area */
.battle-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px; background: var(--bg);
}
#battle-canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-md);
}

/* battle log */
.battle-log { width: 100%; max-width: 500px; margin-top: 10px; height: 64px; overflow: hidden; }
.log-line {
  font-family: var(--mono); font-size: 11px; color: var(--text-mid);
  line-height: 1.85; animation: fadeLog 0.25s ease;
}
@keyframes fadeLog {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.battle-footer {
  padding: 14px 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-shrink: 0; background: var(--surface);
}
