/* AIRSPACE STANDOFF: Mission Debrief and After Action Report with 3D Depth */

.game-over-dialog {
  background: var(--glass-bg-modal);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  border-bottom: 1px solid var(--liquid-glass-border-bottom);
  border-radius: var(--radius-modal);
  width: 95%;
  max-width: 840px;
  height: 92vh;
  height: 92dvh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), inset 0 0 20px rgba(56, 189, 248, 0.05), 0 20px 60px rgba(0, 0, 0, 0.85);
  font-family: var(--font-untitled-sans);
  overflow: hidden;
  box-sizing: border-box;
}

.after-action-header {
  padding: 12px 18px;
  background: var(--glass-3d-card-bg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.after-action-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  font-family: var(--font-aeonikpro);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.after-action-subtitle {
  font-size: 0.64rem;
  color: var(--color-moon-mist);
  font-weight: 600;
}

.after-action-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.after-action-footer {
  flex-shrink: 0;
  background: var(--glass-3d-card-bg);
  border-top: 1px solid var(--glass-border);
  padding: 10px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.ace-podium-section,
.aar-fleet-power-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--glass-3d-card-bg);
  border: 1px solid var(--glass-3d-card-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  border-bottom: 1px solid var(--liquid-glass-border-bottom);
  border-radius: var(--radius-card);
  padding: 8px 12px;
  box-shadow: var(--glass-3d-card-shadow);
}

.ace-podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.ace-card {
  background: var(--glass-3d-well-bg);
  border: 1px solid var(--glass-3d-well-border);
  border-radius: var(--radius-card);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--glass-3d-well-shadow);
  position: relative;
}

.ace-card.team-blue {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.14) 0%, rgba(4, 12, 28, 0.95) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 14px rgba(56, 189, 248, 0.20) !important;
}

.ace-card.team-blue.rank-1 {
  border: 1px solid rgba(251, 191, 36, 0.65) !important;
  border-top: 1px solid #fef08a !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.22) 0%, rgba(4, 12, 28, 0.95) 100%) !important;
}

.ace-card.team-blue.rank-2 {
  border: 1px solid #38bdf8 !important;
  border-top: 1px solid #ffffff !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.24) 0%, rgba(4, 12, 28, 0.95) 100%) !important;
}

.ace-card.team-blue.rank-3 {
  border: 1px solid rgba(148, 163, 184, 0.50) !important;
  border-top: 1px solid #ffffff !important;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16) 0%, rgba(4, 12, 28, 0.95) 100%) !important;
}

.ace-card.team-red {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.18) 0%, rgba(28, 4, 12, 0.95) 100%) !important;
  border: 1px solid rgba(244, 63, 94, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 140, 165, 0.25), 0 0 14px rgba(244, 63, 94, 0.25) !important;
}

.ace-card.team-red.rank-1 {
  border: 1px solid rgba(251, 191, 36, 0.65) !important;
  border-top: 1px solid #fef08a !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.22) 0%, rgba(28, 4, 12, 0.95) 100%) !important;
}

.ace-card.team-red.rank-2 {
  border: 1px solid #f43f5e !important;
  border-top: 1px solid #ffffff !important;
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.26) 0%, rgba(28, 4, 12, 0.95) 100%) !important;
}

.ace-card.team-red.rank-3 {
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  border-top: 1px solid #fecdd3 !important;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16) 0%, rgba(28, 4, 12, 0.95) 100%) !important;
}

.ace-team-badge {
  font-size: 0.54rem;
  font-family: var(--font-dotdigital);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-badge);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.4px;
}

.ace-team-badge.blue {
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.ace-team-badge.red {
  background: rgba(244, 63, 94, 0.26);
  border: 1px solid #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.4);
}

.ace-rank-title {
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ace-callsign {
  font-size: 0.88rem;
  font-weight: 700;
}

.ace-card.team-blue .ace-callsign {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.ace-card.team-red .ace-callsign {
  color: #f43f5e;
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.ace-sub {
  font-size: 0.62rem;
  color: var(--color-moon-mist);
}

.ace-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 4px;
  margin-top: 2px;
  font-family: var(--font-dotdigital);
}

.ace-card.team-red .ace-stats {
  border-top-color: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.ace-card.team-blue .ace-stats {
  border-top-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

@media (max-width: 1024px) {
  .game-over-dialog {
    width: 98vw;
    height: 96vh;
    height: 96dvh;
    max-height: 96dvh;
    border-radius: var(--radius-card);
  }
}