.battle-log {
  background: #0d1117;
  border: 1px solid #0f3460;
  border-radius: 10px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.78em;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.battle-log:empty::before {
  content: 'バトルログがここに表示されます...';
  color: #555;
  font-style: italic;
}
.log-turn { color: #888; font-size: 0.9em; }
.log-attack { color: #e0e0e0; }
.log-crit { color: #f1c40f; font-weight: bold; }
.log-dodge { color: #2ecc71; font-style: italic; }
.log-win { color: #e94560; font-weight: bold; font-size: 1.1em; text-align: center; margin-top: 6px; }
.log-info { color: #3498db; }
.log-bonus { color: #e67e22; }
.log-p1 { color: #ff6b6b; }
.log-p1-crit { color: #ff6b6b; font-weight: bold; }
.log-p1-skill { color: #ff9f43; }
.log-p2 { color: #54a0ff; }
.log-p2-crit { color: #54a0ff; font-weight: bold; }
.log-p2-skill { color: #ff9f43; }
.log-spacer { height: 1.5em; }
.log-block { margin-bottom: 0.3em; }
/* ④ ターン区切り強化：中央テキスト＋両サイドに装飾ライン */
@keyframes sep-pulse {
  0%   { color: #e94560; text-shadow: 0 0 12px rgba(233,69,96,0.7); letter-spacing: 5px; }
  100% { color: #555;    text-shadow: none; letter-spacing: 2px; }
}
.log-sep {
  color: #555;
  text-align: center;
  letter-spacing: 2px;
  font-size: 0.85em;
  position: relative;
  margin: 5px 0 2px;
  padding: 0 30%;
}
.log-sep::before,
.log-sep::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
}
.log-sep::before {
  left: 0;
  background: linear-gradient(90deg, transparent, #1a3a6a);
}
.log-sep::after {
  right: 0;
  background: linear-gradient(270deg, transparent, #1a3a6a);
}
/* マッチ開幕行（--- A vs B ---）はパルスで強調 */
.log-sep:last-child {
  animation: log-slide-in 0.18s ease-out both, sep-pulse 1s ease-out both;
}
.log-draw { color: #f39c12; font-weight: bold; text-align: center; margin-top: 6px; }
.log-stun { color: #ff00ff; font-weight: bold; }

/* ⑤ ダメージ数値ポップアップ */
@keyframes dmg-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  65%  { transform: scale(1.35); }
  100% { transform: scale(1);   opacity: 1; }
}
.dmg-number {
  display: inline-block;
  font-weight: bold;
  color: #ffd700;
  font-variant-numeric: tabular-nums;
  animation: dmg-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.dmg-crit {
  color: #ff4444;
  font-size: 1.15em;
  text-shadow: 0 0 6px rgba(255,68,68,0.7);
}
.log-p2 .dmg-number { color: #88aaff; }
.log-p2-crit .dmg-number { color: #ff6b9d; }
.hp-number {
  display: inline-block;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* ① スライドイン + クリティカルフラッシュ */
@keyframes log-slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes log-crit-flash {
  0%   { text-shadow: 0 0 10px #f1c40f; }
  100% { text-shadow: none; }
}
.tournament-log > div,
.tournament-log > .log-block,
#battleLog > div,
#battleLog > .log-block {
  animation: log-slide-in 0.18s ease-out both;
}
.log-crit, .log-p1-crit, .log-p2-crit {
  animation: log-slide-in 0.18s ease-out both,
             log-crit-flash 0.5s ease-out 0.15s both;
}

/* ② アイコンプレフィックス（CSS::before のみ・JS変更なし） */
.log-p1-crit::before,
.log-p2-crit::before { content: '⚡ '; }
.log-stun::before     { content: '💫 '; }
.log-dodge::before    { content: '💨 '; }
.log-win::before      { content: '🏆 '; }
.log-draw::before     { content: '🤝 '; }
.log-p1-skill::before { content: '🔴 '; }
.log-p2-skill::before { content: '🔵 '; }

/* ③ 勝利行アニメーション */
@keyframes win-flash {
  0%   { opacity: 0; letter-spacing: 6px; }
  60%  { opacity: 1; letter-spacing: 3px; }
  100% { letter-spacing: 2px; }
}
.log-win {
  color: #e94560;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  margin-top: 8px;
  padding: 8px 4px;
  background: linear-gradient(90deg, transparent, rgba(233,69,96,0.12), transparent);
  border-top: 1px solid rgba(233,69,96,0.35);
  border-bottom: 1px solid rgba(233,69,96,0.35);
  animation: log-slide-in 0.18s ease-out both, win-flash 0.6s ease-out both;
}
.log-draw {
  animation: log-slide-in 0.18s ease-out both, win-flash 0.6s ease-out both;
}
