#match-summary[data-phase='badge'] {
  --recap-shade-top: #080d12c9;
  --recap-shade-bottom: #0b1013eb;
}

#match-summary[data-phase='badge'] #ms-header,
#match-summary[data-phase='badge'] #ms-content,
#match-summary[data-phase='badge'] #ms-footer {
  display: none;
}

#ms-badge-intro {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vh, 28px);
  text-align: center;
}

#ms-badge-intro[hidden] { display: none; }

#ms-badge-image {
  display: block;
  flex-shrink: 1;
  min-height: 0;
  width: min(480px, 72vw, 58vh);
  height: min(480px, 72vw, 58vh);
  object-fit: contain;
  filter: drop-shadow(0 12px 24px #0009);
  animation: match-badge-enter 550ms cubic-bezier(.2, .75, .25, 1) both;
}

#ms-badge-label {
  flex: none;
  margin: 0;
  font-family: var(--ui-font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: 1px;
  color: #eee8d9;
  text-shadow: 0 3px 0 #0008, 0 8px 24px #000b;
  animation: match-badge-label-enter 450ms ease-out 120ms both;
}

#ms-badge-intro[data-emblem='vanguard'] #ms-badge-label { color: #a6cbff; }
#ms-badge-intro[data-emblem='solstice'] #ms-badge-label { color: #ffe293; }

@keyframes match-badge-enter {
  from { opacity: 0; transform: translateY(16px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes match-badge-label-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #ms-badge-image, #ms-badge-label { animation: none; }
}
