.bt-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 0.6rem 0.85rem; margin-bottom: 0.5rem; border-radius: 12px; cursor: pointer;
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.14));
  transition: background 0.12s ease, border-color 0.12s ease;
}
.bt-row:hover { background: rgba(244, 207, 139, 0.08); border-color: var(--lab-edge, rgba(244,207,139,0.42)); }
.bt-row.win { border-left: 3px solid var(--lab-good, #79d39b); }
.bt-row.loss { border-left: 3px solid var(--lab-bad, #e57373); }
.bt-row.draw { border-left: 3px solid var(--lab-warn, #ecbc5b); }
.bt-row-main { flex: 1 1 auto; min-width: 0; }
.bt-vs { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.86rem; flex-wrap: wrap; }
.bt-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-x { color: var(--lab-gold-dim, #9c8a63); font-weight: 400; font-size: 0.76rem; }
.bt-meta { font-size: 0.72rem; color: var(--lab-gold-dim, #9c8a63); margin-top: 2px; }
.bt-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.bt-cas { font-size: 0.68rem; color: var(--lab-gold-dim, #9c8a63); }
.bt-ch { width: 15px; height: 15px; flex: 0 0 auto; color: var(--lab-gold-deep, #c79a4f); }

.bt-back { margin-bottom: 0.7rem; }

.bt-detail-head {
  border: 1px solid var(--lab-edge, rgba(244,207,139,0.42)); border-radius: 14px;
  padding: 0.9rem 1.05rem; margin-bottom: 0.9rem; background: rgba(244, 207, 139, 0.05);
}
.bt-detail-head.win { border-color: rgba(120, 220, 150, 0.5); background: rgba(58, 138, 88, 0.12); }
.bt-detail-head.loss { border-color: rgba(214, 110, 98, 0.5); background: rgba(150, 60, 55, 0.12); }
.bt-detail-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bt-detail-ttl { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 1.02rem; color: #f4e3a8; }
.bt-detail-meta { font-size: 0.76rem; color: var(--lab-gold-dim, #9c8a63); margin-top: 0.35rem; }
.bt-detail-sum { font-size: 0.85rem; color: #e7d9ac; margin-top: 0.5rem; line-height: 1.5; font-style: italic; }

.bt-cas-row { display: flex; gap: 10px; margin-bottom: 0.4rem; }
.bt-cas-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0.7rem 0.5rem; border-radius: 12px; background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.14));
}
.bt-cas-nm { font-weight: 700; font-size: 0.82rem; }
.bt-cas-v { font-size: 1.3rem; font-weight: 700; color: #f4cf8b; }
.bt-cas-u { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--lab-gold-dim, #9c8a63); text-transform: uppercase; }
.bt-cas-lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lab-gold-dim, #9c8a63); }
.bt-cas-head { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.bt-cas-role { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.bt-cas-role.atk { color: #e2b062; border: 1px solid rgba(226, 176, 98, 0.5); background: rgba(226, 176, 98, 0.1); }
.bt-cas-role.def { color: #8fb6dd; border: 1px solid rgba(143, 182, 221, 0.5); background: rgba(143, 182, 221, 0.1); }
.bt-cas-outcome { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.bt-cas-outcome.win { color: #8fd39a; border: 1px solid rgba(143, 211, 154, 0.55); background: rgba(90, 170, 100, 0.14); }
.bt-cas-outcome.loss { color: #d98a80; border: 1px solid rgba(214, 110, 98, 0.5); background: rgba(150, 60, 55, 0.14); }
.bt-cas-card.is-victor { border-color: rgba(143, 211, 154, 0.45); background: rgba(60, 120, 70, 0.1); }
.bt-cas-card.is-defeated { border-color: rgba(214, 110, 98, 0.4); background: rgba(120, 50, 45, 0.1); }
.bt-role-tag { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.54rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.bt-role-tag.atk { color: #e2b062; border: 1px solid rgba(226, 176, 98, 0.5); }
.bt-role-tag.def { color: #8fb6dd; border: 1px solid rgba(143, 182, 221, 0.5); }
.bt-vs-word { color: var(--lab-gold-dim, #9c8a63); font-weight: 600; }

.bt-roster { display: flex; flex-direction: column; border: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.14)); border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.18); margin-bottom: 0.4rem; }
.bt-unit { display: flex; align-items: center; gap: 10px; padding: 0.45rem 0.8rem; border-bottom: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.1)); }
.bt-unit:last-child { border-bottom: none; }
.bt-unit-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.bt-unit-nm { font-weight: 700; font-size: 0.8rem; color: #f4e3a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-unit-sub { font-size: 0.66rem; color: var(--lab-gold-dim, #9c8a63); }
.bt-unit-nums { display: flex; gap: 10px; flex: 0 0 auto; font-size: 0.72rem; color: #cdbb88; }

.bt-log { display: flex; flex-direction: column; border: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.14)); border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.18); }
.bt-log-round { display: flex; align-items: center; gap: 10px; padding: 0.35rem 0.8rem; border-bottom: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.08)); font-size: 0.75rem; }
.bt-log-round:last-child { border-bottom: none; }
.bt-log-n { flex: 0 0 auto; font-weight: 700; color: #f4e3a8; min-width: 66px; }
.bt-log-ph { flex: 0 0 auto; color: var(--lab-gold-deep, #c79a4f); }
.bt-log-mor { flex: 1 1 auto; color: var(--lab-gold-dim, #9c8a63); }
.bt-log-ev { flex: 0 0 auto; color: #cdbb88; }

/* ── Battle Conditions: why this fight tilted ── */
.bt-conds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.65rem; }
.bt-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 5px 11px 5px 8px; border-radius: 999px; cursor: help;
  background: linear-gradient(180deg, rgba(244, 207, 139, 0.1), rgba(244, 207, 139, 0.04));
  border: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.2));
  font-size: 0.73rem; color: #e7d9ac;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.bt-chip:hover { border-color: var(--lab-edge, rgba(244,207,139,0.5)); background: rgba(244, 207, 139, 0.12); }
.bt-chip.atk { border-left: 3px solid rgba(214, 110, 98, 0.75); }
.bt-chip.def { border-left: 3px solid rgba(120, 170, 220, 0.75); }
.bt-chip-g { flex: 0 0 auto; font-size: 0.82rem; line-height: 1; filter: grayscale(0.25); }
.bt-chip-l { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-chip-who { font-weight: 400; color: var(--lab-gold-dim, #9c8a63); margin-left: 6px; font-size: 0.66rem; }

/* ── Loss bars on the force cards ── */
.bt-cas-card { position: relative; }
.bt-bar {
  width: 82%; height: 5px; margin-top: 7px; border-radius: 3px; overflow: hidden;
  background: rgba(244, 207, 139, 0.1); border: 1px solid rgba(244, 207, 139, 0.12);
}
.bt-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8fbf7f, #c9c26a); transition: width 0.3s ease; }
.bt-bar-fill.mid { background: linear-gradient(90deg, #c9a35a, #d68a4f); }
.bt-bar-fill.hi { background: linear-gradient(90deg, #c76a52, #a83a34); }
.bt-bar-pct { font-size: 0.62rem; color: var(--lab-gold-dim, #9c8a63); margin-top: 3px; }

/* ── Battle Chronicle: the notable-events timeline ── */
.bt-chron {
  position: relative; display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.14)); border-radius: 12px;
  background: rgba(0, 0, 0, 0.18); overflow: hidden; margin-bottom: 0.5rem;
}
.bt-ch-round { position: relative; padding: 0.5rem 0.9rem 0.55rem 1.6rem; border-bottom: 1px solid var(--lab-edge-soft, rgba(244,207,139,0.08)); }
.bt-ch-round:last-child { border-bottom: none; }
.bt-ch-round::before {
  content: ''; position: absolute; left: 0.72rem; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(244, 207, 139, 0.28), transparent);
}
.bt-ch-round::after {
  content: ''; position: absolute; left: calc(0.72rem - 3px); top: 0.78rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lab-gold-deep, #c79a4f); box-shadow: 0 0 6px rgba(244, 207, 139, 0.45);
}
.bt-ch-round.aftermath { background: rgba(244, 207, 139, 0.045); }
.bt-ch-round.aftermath::after { background: #e0b25e; }
.bt-ch-head { display: flex; align-items: baseline; gap: 10px; font-size: 0.74rem; margin-bottom: 2px; }
.bt-ch-n { font-weight: 700; color: #f4e3a8; font-family: 'Cinzel', Georgia, serif; letter-spacing: 0.02em; }
.bt-ch-ph { color: var(--lab-gold-deep, #c79a4f); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; }
.bt-ch-mor { margin-left: auto; color: var(--lab-gold-dim, #9c8a63); font-size: 0.66rem; }
.bt-ev { display: flex; align-items: baseline; gap: 8px; font-size: 0.77rem; color: #d9cba0; padding: 2px 0; line-height: 1.45; }
.bt-ev-g { flex: 0 0 16px; text-align: center; font-size: 0.72rem; opacity: 0.9; }
.bt-ev.ev-destroyed { color: #e08a80; }
.bt-ev.ev-destroyed .bt-ev-g { color: #d65f52; }
.bt-ev.ev-rout, .bt-ev.ev-terror { color: #e3bd76; }
.bt-ev.ev-crumble { color: #bfa3d8; }
.bt-ev.ev-fury { color: #e0956a; }
.bt-ev.ev-pack { color: #a9c98a; }
.bt-ev.ev-kite { color: #97bfd4; }
.bt-ev.ev-ammo { color: var(--lab-gold-dim, #9c8a63); }
.bt-ev.ev-captured { color: #e0b25e; }
.bt-ev.ev-held { color: #cfc08e; }
