/* === hotfix-12 · 赛末 FULL TIME 面板改 modal overlay === */
body.tactical-v77.match-started #gameover {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(42, 36, 24, .95), rgba(8, 10, 14, .99) 58%),
    #080a0e;
  backdrop-filter: none;
  overflow: hidden;
}

body.tactical-v77.match-started #gameover[style*="display: block"],
body.tactical-v77.match-started #gameover[style*="display:block"] {
  display: flex !important;
}

body.tactical-v77.match-started #gameover .gameover-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  max-height: min(92vh, calc(100dvh - 48px));
  margin: auto;
  padding: 54px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1c22, #14161b);
  border: 1px solid rgba(212, 160, 74, .35);
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .55);
}

body.tactical-v77.match-started #gameover .gameover-modal-scroll {
  display: grid;
  flex: 1 1 auto;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 36px 24px;
  scrollbar-color: var(--gold-primary, #f0d99b) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}

body.tactical-v77.match-started #gameover .gameover-modal-footer {
  flex: 0 0 auto;
  padding: 14px 36px 18px;
  border-top: 1px solid rgba(240, 217, 155, .18);
  background: #14161b;
  box-shadow: 3px 3px 0 rgba(20, 22, 27, .94);
}

body.tactical-v77.match-started #gameover .gameover-modal-footer .again {
  width: 100%;
}

body.tactical-v77.match-started #gameover .gameover-shell::before {
  content: '本场已结束 · 终场报告';
  position: absolute;
  top: 20px;
  left: 36px;
  right: 36px;
  color: rgba(240, 217, 155, .92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.match-story {
  margin: 18px 0;
  padding: 14px 16px;
  color: #d5d9e2;
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid #f0d99b;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.85;
  text-align: left;
}

.penalty-shootout {
  border-left-color: #f0a94f;
  background: rgba(240, 169, 79, .07);
}

.penalty-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 6px;
}

.penalty-head span {
  color: rgba(226, 232, 240, .72);
  font-size: 12px;
  font-weight: 800;
}

.penalty-head b {
  color: #f0d99b;
  font-size: 16px;
}

.penalty-result {
  margin-bottom: 10px;
  color: #f6e7bd;
  font-weight: 800;
}

.penalty-rounds {
  display: grid;
  gap: 6px;
}

.penalty-round {
  display: grid;
  grid-template-columns: minmax(78px, .7fr) minmax(110px, 1fr) minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: rgba(0, 0, 0, .16);
  font-size: 12px;
  line-height: 1.35;
}

.penalty-round-label {
  color: rgba(226, 232, 240, .64);
  font-weight: 800;
}

.penalty-round b {
  color: #fff5d6;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
