/* Match log (Vault board 1622, play-test defect 5): the whole match, scrollable. */
.hud-log-button {
  margin-left: 6px; min-height: 22px; padding: 1px 8px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  background: transparent; color: #fff; font: 800 .62rem/1 inherit; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.hud-log-button:hover, .hud-log-button:focus-visible { background: #f3ff20; color: #11132f; outline: none; }
.match-log-overlay {
  position: fixed; inset: 0; z-index: 640; display: grid; place-items: center; padding: 14px;
  background: rgba(2,4,18,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.match-log-overlay[hidden] { display: none !important; }
.match-log-panel {
  box-sizing: border-box; width: min(520px, 100%); max-height: min(720px, calc(100dvh - 28px)); display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.15); border-radius: 20px; color: #fff;
  background: linear-gradient(180deg, rgba(20,23,55,.99), rgba(8,11,31,.99)); box-shadow: 0 30px 90px rgba(0,0,0,.52);
}
.match-log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.match-log-head h2 { margin: 0; font-size: 1.05rem; font-weight: 950; letter-spacing: .03em; }
.match-log-count { margin: 2px 0 0; color: rgba(255,255,255,.55); font-size: .72rem; }
.match-log-close { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
.match-log-tools { padding: 0 16px 8px; font-size: .78rem; color: rgba(255,255,255,.8); }
.match-log-filter { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.match-log-empty { margin: 0; padding: 8px 16px; color: rgba(255,255,255,.7); font-size: .8rem; }
.match-log-empty[hidden] { display: none; }
.match-log-list {
  flex: 1 1 auto; min-height: 120px; margin: 0; padding: 4px 12px 14px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent;
}
.match-log-turn { position: sticky; top: 0; margin: 8px 0 2px; padding: 3px 4px; background: rgba(12,15,40,.96); color: #f3ff20; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.match-log-row { padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .86rem; line-height: 1.35; overflow-wrap: anywhere; }
.match-log-row[data-kind="capture"] { background: rgba(255,93,115,.12); border-radius: 8px; }
.match-log-row[data-kind="birth"], .match-log-row[data-kind="home"], .match-log-row[data-kind="won"] { background: rgba(243,255,32,.08); border-radius: 8px; }
.match-log-row[data-kind="roll"] { color: rgba(255,255,255,.72); }
@media (max-width: 720px) { .hud-log-button { min-height: 26px; } }
