/* Match results: make the outcome legible first, then the pilot's own gains. */
body[data-app-state="RESULTS"] #overlay.match-summary-overlay {
 --result-accent:#ffbf55;
 --result-glow:#ffad3d55;
 z-index:120;
}
body[data-app-state="RESULTS"] #nav-shell {display:none}
body[data-app-state="RESULTS"] #overlay.match-summary-overlay[data-result-state="defeat"] {
 --result-accent:#ff6688;
 --result-glow:#ff3f8a55;
}
body[data-app-state="RESULTS"] #overlay.match-summary-overlay[data-result-state="draw"] {
 --result-accent:#62eaff;
 --result-glow:#3ff3ff55;
}
body[data-app-state="RESULTS"] .match-summary-screen {gap:12px}
body[data-app-state="RESULTS"] .match-summary-header {
 min-height:148px;
 border:1px solid color-mix(in srgb,var(--result-accent) 45%,transparent);
 border-radius:var(--nd-radius-md);
 background-color:#06121de8;
 background-image:linear-gradient(90deg,#06121df2,#06121dba 56%,#06121df2),url("../unit_asset/ui/neon/results-victory.webp");
 background-size:cover;
 background-position:center 42%;
 box-shadow:inset 0 0 40px var(--result-glow),0 10px 32px #0008;
}
body[data-app-state="RESULTS"] #overlay[data-result-state="defeat"] .match-summary-header {background-image:linear-gradient(90deg,#110b15f5,#110b15b8 56%,#110b15f5),url("../unit_asset/ui/neon/results-defeat.webp")}
body[data-app-state="RESULTS"] #overlay[data-result-state="draw"] .match-summary-header {background-image:linear-gradient(90deg,#07151bf5,#07151bb8 56%,#07151bf5),url("../unit_asset/ui/neon/results-draw.webp")}
body[data-app-state="RESULTS"] .match-summary-header h1 {color:var(--result-accent);text-shadow:0 0 22px var(--result-glow),0 2px #061018}
body[data-app-state="RESULTS"] .match-summary-header #matchmessage {letter-spacing:.09em;text-transform:none}
body[data-app-state="RESULTS"] #personal-match-highlight:not([hidden]),
body[data-app-state="RESULTS"] #result-rewards:not([hidden]),
body[data-app-state="RESULTS"] #match-overview,
body[data-app-state="RESULTS"] .match-result-panel {border-radius:var(--nd-radius-md);border-color:color-mix(in srgb,var(--result-accent) 32%,var(--nd-border));background:linear-gradient(145deg,#10232df2,#06121df5 76%);box-shadow:inset 0 1px #3ff3ff14,0 10px 24px #0006}
body[data-app-state="RESULTS"] #match-overview-disclosure {display:contents}
body[data-app-state="RESULTS"] #match-overview-toggle {display:none}
body[data-app-state="RESULTS"] #personal-match-highlight:not([hidden]) {border-left:3px solid var(--result-accent)}
body[data-app-state="RESULTS"] .match-summary-footer {border-color:var(--result-accent);border-radius:var(--nd-radius-md);background:linear-gradient(90deg,#07131bf5,#10232df2,#07131bf5)}
body[data-app-state="RESULTS"] .match-actions button:not([hidden]) {min-height:48px;border-radius:var(--nd-radius-sm);font-weight:800}
body[data-app-state="RESULTS"] .match-actions #result-lobby:not([hidden]),
body[data-app-state="RESULTS"] .match-actions #returnsetup:not([hidden]) {border-color:var(--nd-primary);background:linear-gradient(180deg,#50351a,#2a1d12);color:#ffe0a8;box-shadow:0 0 16px #ffb34744}
body[data-app-state="RESULTS"] .match-actions #result-rooms:not([hidden]),
body[data-app-state="RESULTS"] .match-actions #restart:not([hidden]) {border-color:var(--nd-border);background:var(--nd-surface-1);color:var(--nd-text-2);box-shadow:none}
@media (max-width:760px),(orientation:landscape) and (max-height:550px) and (min-width:761px) and (max-width:1200px) {
 body[data-app-state="RESULTS"] .match-summary-screen {gap:5px}
 body[data-app-state="RESULTS"] .match-summary-header {min-height:52px;background-position:center 43%;box-shadow:inset 0 0 22px var(--result-glow),0 4px 12px #0008}
 body[data-app-state="RESULTS"] .match-summary-banner {width:24px;height:34px}
 body[data-app-state="RESULTS"] .match-summary-title {min-width:0;padding:2px}
 body[data-app-state="RESULTS"] .match-summary-kicker {font-size:7px;letter-spacing:.1em}
 body[data-app-state="RESULTS"] .match-summary-header h1 {font-size:clamp(24px,5vw,34px);letter-spacing:.08em}
 body[data-app-state="RESULTS"] .match-summary-header #matchmessage {margin:2px 0 0;font-size:9px;line-height:1.15}
 body[data-app-state="RESULTS"] #personal-match-highlight:not([hidden]) {display:none}
 body[data-app-state="RESULTS"] #match-final-score-mobile:not([hidden]) {padding:2px 6px}
 body[data-app-state="RESULTS"] #match-final-score-mobile .match-section-heading {margin:0;font-size:8px}
 body[data-app-state="RESULTS"] #match-final-score-mobile .match-team-score {grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);padding:0 2px}
 body[data-app-state="RESULTS"] #match-final-score-mobile .match-team-mark {font-size:15px}
 body[data-app-state="RESULTS"] #match-final-score-mobile .match-team-copy b {font-size:16px}
 body[data-app-state="RESULTS"] #result-rewards:not([hidden]) {padding:4px}
 body[data-app-state="RESULTS"] .match-reward-summary>.match-reward-heading {margin-bottom:2px}
 body[data-app-state="RESULTS"] .match-reward-list {gap:3px}
 body[data-app-state="RESULTS"] .match-reward-item {min-height:26px;padding:2px}
 body[data-app-state="RESULTS"] #match-overview-disclosure {display:contents}
 body[data-app-state="RESULTS"] #match-overview-toggle {box-sizing:border-box;display:flex;min-height:44px;align-items:center;padding:5px 10px;border:1px solid var(--result-border);border-radius:var(--nd-radius-sm);background:#071722;color:var(--nd-text-1);font-family:inherit;font-size:10px;font-weight:700;line-height:1.2;letter-spacing:.08em;cursor:pointer;list-style:none}
 body[data-app-state="RESULTS"] #match-overview-toggle::-webkit-details-marker {display:none}
 body[data-app-state="RESULTS"] #match-overview-toggle::before {content:'+';margin-inline-end:8px;color:var(--result-accent);font-size:16px}
 body[data-app-state="RESULTS"] #match-overview-disclosure[open] #match-overview-toggle::before {content:'−'}
 body[data-app-state="RESULTS"] #match-overview {margin-top:4px;padding:5px}
 body[data-app-state="RESULTS"] #match-overview>.match-section-heading {display:none}
 body[data-app-state="RESULTS"] #match-overview .match-team-score {display:grid}
 body[data-app-state="RESULTS"] .match-overview-grid {grid-template-columns:repeat(2,minmax(0,1fr));min-height:0}
 body[data-app-state="RESULTS"] .match-team-score {grid-column:1/-1;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);padding:2px 4px 5px}
 body[data-app-state="RESULTS"] .match-team-mark {font-size:18px}
 body[data-app-state="RESULTS"] .match-team-copy b {font-size:20px}
 body[data-app-state="RESULTS"] .match-overview-stat {min-height:44px;padding:3px}
 body[data-app-state="RESULTS"] .match-team-comparison {grid-column:1/-1;grid-template-columns:minmax(0,1fr);gap:4px;padding:5px 2px 0}
 body[data-app-state="RESULTS"] .match-result-panel {gap:4px;border-radius:var(--nd-radius-md)}
 body[data-app-state="RESULTS"] .match-player-cards {gap:5px}
 body[data-app-state="RESULTS"] .match-summary-footer {border-radius:var(--nd-radius-md) var(--nd-radius-md) 0 0}
 body[data-app-state="RESULTS"] .match-actions button:not([hidden]) {min-height:44px;font-size:10px}
}
@media (min-width:761px) and (max-width:1200px) and (orientation:landscape) and (max-height:550px) {
 body[data-app-state="RESULTS"] .match-reward-list {grid-template-columns:repeat(5,minmax(0,1fr))}
}
