.result-banner {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 24px;
  background: rgb(20 26 42 / 62%);
  pointer-events: none;
  animation: result-screen-flash 2s ease both;
}
.result-banner[hidden] { display: none; }
.result-banner-message {
  position: relative;
  display: block;
  max-width: 100%;
  color: #fffef9;
  font: 900 clamp(40px, 11vw, 170px)/1.1 Georgia, "Times New Roman", serif;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 6px 0 #704f91, 0 12px 38px rgb(0 0 0 / 55%);
  animation: result-banner-pop 2s cubic-bezier(.16, 1, .3, 1) both;
}
.result-banner-caption {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  font: 800 clamp(18px, 3vw, 36px)/1.1 Georgia, "Times New Roman", serif;
  transform: rotate(-12deg);
  text-shadow: 0 2px 0 #704f91, 0 4px 16px rgb(0 0 0 / 55%);
}
.result-banner-badge {
  --tier-color: #c69c78;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: clamp(110px, 24vw, 170px);
  aspect-ratio: 1;
  padding: 12px;
  border: 3px solid var(--tier-color);
  border-radius: 20px;
  background: #101b36;
  color: var(--tier-color);
  font: 900 clamp(18px, 4vw, 28px)/1.2 system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 0 28px rgb(0 0 0 / 40%);
}
.result-banner-badge[hidden] { display: none; }
.result-banner-badge[data-tier="godlike"] { --tier-color: #ffb4ef; }
.result-banner-badge[data-tier="diamond"] { --tier-color: #9de7f5; }
.result-banner-badge[data-tier="platinum"] { --tier-color: #d3ccff; }
.result-banner-badge[data-tier="gold"] { --tier-color: #ffda75; }
.result-banner-badge[data-tier="silver"] { --tier-color: #d9e2ed; }
.result-banner-badge[data-tier="bronze"] { --tier-color: #e9a374; }
@keyframes result-screen-flash {
  0%, 100% { opacity: 0; }
  6%, 90% { opacity: 1; }
}
@keyframes result-banner-pop {
  0% { opacity: 0; transform: scale(.2) rotate(-18deg); }
  8% { opacity: 1; transform: scale(1.08) rotate(5deg); }
  15%, 90% { opacity: 1; transform: scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: scale(.85) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .result-banner, .result-banner-message { animation: none; }
}
