#gameover.game-result {
    position: fixed; inset: 0; margin: auto; box-sizing: border-box;
    width: min(38rem, calc(100% - 24px)); height: fit-content; max-height: calc(100dvh - 24px);
    padding: 0; border: 1px solid #505050; border-radius: 12px; overflow: auto;
    background: #191919; color: #eee; box-shadow: 0 20px 80px #000b;
    font: 15px/1.4 "Segoe UI", Arial, sans-serif; text-align: left;
    scrollbar-width: thin; scrollbar-color: #666 #191919; overscroll-behavior: contain;
}
.game-result::backdrop { background: rgb(0 0 0 / 48%); }
.game-result .result-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: clamp(16px, 4vw, 28px);
    background: linear-gradient(#171717f5, #202020ba 52%, #25252545), url("https://mobile.planets.nu/img/story/brokenplanet.jpg") center 42% / cover, #343434;
}
.result-sector { color: #ddd; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; overflow-wrap: anywhere; }
#gameover .result-hero h1 { margin: .25em 0; padding: 0; color: white; font: 600 clamp(24px, 4vw, 36px)/1.1 "Segoe UI", Arial, sans-serif; }
.result-hero p { margin: 0; padding: 0; color: #eee; }
.result-trophy { width: clamp(56px, 14vw, 96px); height: auto; flex: none; filter: drop-shadow(0 3px 6px #0009); }
.result-standings { padding: 0 clamp(10px, 3vw, 22px); background: linear-gradient(#262626, #171717); }
.result-standings table { width: 100%; border-collapse: collapse; color: inherit; font: inherit; font-variant-numeric: tabular-nums; }
.result-standings caption { caption-side: top; text-align: left; color: #fff; font-size: 17px; font-weight: 600; padding: 14px 5px 7px; }
#gameover .result-standings :is(th, td) { padding: 7px clamp(4px, 1vw, 10px); text-align: right; vertical-align: middle; }
.result-standings thead th { color: #bbb; font-size: 12px; font-weight: 500; }
#gameover .result-standings tr > :nth-child(2) { text-align: left; }
.result-standings tbody tr { border-top: 1px solid #ffffff15; }
.result-standings .result-player { background: linear-gradient(#ffffff1e, #ffffff0c); }
.result-identity { display: flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.result-identity img { width: 27px; height: 27px; object-fit: contain; flex: none; }
.result-identity strong, .result-identity small { display: block; line-height: 1.25; }
.result-identity strong { font-weight: 600; }
.result-identity small, .result-footer small { color: #bbb; font-weight: 400; }
.result-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(12px, 3vw, 24px); background: linear-gradient(#282828, #1a1a1a); }
.result-footer button { margin-left: auto; padding: 8px 22px; border: 1px solid #555; border-radius: 6px; background: linear-gradient(#484848, #303030); color: white; font: inherit; font-weight: 600; cursor: pointer; }
.result-footer button:hover { background: #494949; }
.result-footer button + button { margin-left: 6px; }
.result-footer button:focus-visible { outline: 2px solid #ddd; outline-offset: 2px; }
@media (max-width: 420px) {
    .game-result .result-standings { font-size: 13px; }
    .result-identity { gap: 5px; }
    .result-identity img { width: 20px; height: 20px; }
}
