.match-end {
  --result-glow: #b9cce3;
  box-sizing: border-box; width: min(830px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid #ffffff24; border-radius: 24px; overflow: auto;
  background: radial-gradient(ellipse at 16% 50%, color-mix(in srgb, var(--result-glow) 13%, transparent), transparent 63%), #101113;
  color: #f5f5f5; box-shadow: 0 32px 110px #000b; font-family: var(--ui-font);
}
.match-end[open] { display: grid; grid-template-columns: 40% 60%; animation: match-end-arrive 650ms ease both; }
.match-end::backdrop { background: #060708bc; backdrop-filter: blur(12px); }
.match-end-art { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 520px; }
.match-end-art > img { position: relative; width: 78%; height: 390px; object-fit: contain; filter: drop-shadow(0 18px 30px #0009); animation: match-king-arrive 900ms cubic-bezier(.2,.7,.2,1) both; }
.match-end-orbit { position: absolute; width: 290px; height: 290px; border: 1px solid color-mix(in srgb, var(--result-glow) 30%, transparent); border-radius: 50%; box-shadow: 0 0 80px color-mix(in srgb, var(--result-glow) 12%, transparent), inset 0 0 80px color-mix(in srgb, var(--result-glow) 8%, transparent); }
.match-end-orbit::after { content: ''; position: absolute; inset: 18px; border: 1px solid #ffffff09; border-radius: inherit; }
.match-end-content { position: relative; padding: 64px 44px 44px 16px; align-self: center; }
.match-end-eyebrow { color: #a5a8af; font-size: 10px; letter-spacing: .24em; margin: 0 0 20px; }
.match-end h1 { font-weight: 500; font-size: clamp(34px,5vw,64px); line-height: 1.05; letter-spacing: -.055em; margin: 0 0 16px; }
#match-end-description { color: #b7b9be; font-size: 14px; line-height: 1.7; max-width: 32ch; margin: 0 0 28px; }
.match-end-player { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.match-end-avatar { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid #ffffff36; border-radius: 50%; overflow: hidden; background: #ffffff0b; font-size: 19px; }
.match-end-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-end-player strong { display: block; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
#match-end-element { display: block; color: var(--result-glow); margin-top: 5px; font-size: 12px; }
.match-end-stats { display: flex; gap: 38px; border-top: 1px solid #ffffff18; padding-top: 22px; margin: 0 0 28px; }
.match-end-stats dt { color: #91959e; font-size: 11px; margin-bottom: 8px; }
.match-end-stats dd { font-size: 15px; margin: 0; }
.match-end-actions { display: grid; gap: 10px; }
#match-end .match-end-actions button { font: 13px var(--ui-font); padding: 13px 16px; border-radius: 99px; color: #b7b9be; background: transparent; border: 1px solid transparent; box-shadow: none; }
#match-end .match-end-actions .match-end-primary { color: #151618; background: #eeeeee; border-color: #eee; display: flex; justify-content: space-between; align-items: center; }
#match-end .match-end-actions button:not(:disabled):hover { color: #fff; background: #ffffff0c; border-color: #ffffff26; box-shadow: none; }
#match-end .match-end-actions .match-end-primary:not(:disabled):hover { color: #111; background: #fff; border-color: #fff; }
.match-end-actions button:focus-visible, #show-match-end:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.match-result { background: #18191be8; border-color: #ffffff28; color: #eee; }
#show-match-end { margin-left: 16px; border: 1px solid #ffffff38; border-radius: 99px; color: #eee; background: #ffffff0b; padding: 5px 12px; font: inherit; }
@keyframes match-end-arrive { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes match-king-arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media(max-width:600px) {
  .match-end[open] { grid-template-columns: 1fr; }
  .match-end-art { min-height: 210px; }
  .match-end-art > img { height: 185px; width: 160px; margin-top: 20px; }
  .match-end-orbit { width: 180px; height: 180px; }
  .match-end-content { padding: 12px 28px 28px; }
  .match-end-eyebrow { margin-bottom: 12px; }
  #match-end-description { max-width: none; margin-bottom: 18px; }
  .match-end-player, .match-end-stats { margin-bottom: 18px; }
  .match-end h1 { font-size: 42px; }
}
@media(prefers-reduced-motion:reduce) { .match-end[open], .match-end-art > img { animation: none; } }
