/* Approved race reference: separate cup result and centered ranking medals. */
.dialog.results-dialog { --compact-dialog-width:1500px; padding:36px 30px 24px; }
.dialog.results-dialog .result-layout { grid-template-columns:minmax(0,40%) minmax(0,1fr); gap:22px; }
.dialog.results-dialog .result-plane { height:330px; }
.dialog.results-dialog .result-rays { background:repeating-conic-gradient(from 10deg at 50% 55%,#8ae4fa45 0deg 14deg,transparent 14deg 30deg); }
.dialog.results-dialog .result-aircraft h2 { font-size:38px; }
.dialog.results-dialog .result-aircraft .badge { font-size:21px; }
.result-trophy { width:210px; height:145px; margin:0 auto; }
.result-trophy img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 5px 3px #65391730); }
.dialog.results-dialog .result-aircraft h3 { font-size:25px; margin:0 0 8px; }
.dialog.results-dialog .result-payout { padding:12px 14px; gap:20px; justify-content:space-evenly; }
.dialog.results-dialog .result-payout > span { font-size:27px; white-space:nowrap; }
.dialog.results-dialog .result-payout > span + span { border-left:2px solid #b2d6eb; padding-left:20px; }
.dialog.results-dialog .result-payout .art-icon { width:47px; height:47px; object-fit:contain; }
.dialog.results-dialog .final-board { padding:13px 9px 12px; border-radius:25px; }
.dialog.results-dialog .final-board > h2 { font-size:36px; padding-bottom:15px; }
.dialog.results-dialog .final-row { min-height:118px; gap:10px; padding:8px; }
.dialog.results-dialog .small-medal { width:86px; height:90px; margin:0; }
.placement-medal > img { filter:none!important; }
.dialog.results-dialog .standing-aircraft { width:150px; height:98px; flex-shrink:0; }
.dialog.results-dialog .standing-name strong { font-size:28px; }
.dialog.results-dialog .standing-name > span { font-size:18px; }
.dialog.results-dialog .standing-stats { display:grid; gap:12px; }
.dialog.results-dialog .standing-stats > span { font-size:19px; }
.dialog.results-dialog .standing-stats .stat-icon { width:29px; height:29px; }
.dialog.results-dialog .modal-actions { margin-top:24px; }
.dialog.results-dialog .modal-actions .btn { flex:0 1 440px; min-height:76px; font-size:31px; }
.dialog.planes-popup.choose-dialog .selected-plane-image { height:270px; transform:translateX(calc(15px / var(--game-ui-scale,1))); }
.dialog.planes-popup.choose-dialog .mode-card .btn { width:66%; }
@media(max-width:1023px) {
 .dialog.results-dialog .result-layout { grid-template-columns:36% minmax(0,1fr); gap:15px; }
 .dialog.results-dialog .result-plane { height:245px; }
 .dialog.results-dialog .standing-aircraft { width:90px; height:70px; }
 .dialog.results-dialog .standing-stats { display:none; }
 .dialog.results-dialog .result-payout { flex-wrap:wrap; gap:9px; }
 .dialog.results-dialog .result-payout > span { font-size:22px; }
 .dialog.results-dialog .result-payout > span + span { border:0; padding-left:0; }
}
@media(max-width:760px) {
 .dialog.results-dialog { padding:28px 12px 18px; }
 .dialog.results-dialog .result-layout { grid-template-columns:1fr; }
 .dialog.results-dialog .result-aircraft { display:flex; flex-direction:column; gap:5px; }
 .dialog.results-dialog .result-rays { width:100%; }
 .dialog.results-dialog .result-plane { height:210px; }
 .dialog.results-dialog .result-aircraft h2 { font-size:29px; }
 .dialog.results-dialog .result-aircraft h3 { display:block; font-size:21px; }
 .result-trophy { width:155px; height:107px; }
 .dialog.results-dialog .result-payout { width:100%; padding:10px 6px; }
 .dialog.results-dialog .result-payout > span { font-size:19px; }
 .dialog.results-dialog .result-payout .art-icon { width:33px; height:33px; }
 .dialog.results-dialog .final-board > h2 { font-size:27px; }
 .dialog.results-dialog .final-row { min-height:87px; gap:5px; padding:7px 4px; }
 .dialog.results-dialog .small-medal { width:55px; height:61px; }
 .dialog.results-dialog .standing-aircraft { width:83px; height:62px; }
 .dialog.results-dialog .standing-name strong { font-size:21px; }
 .dialog.results-dialog .standing-name > span { font-size:12px; overflow-wrap:anywhere; }
 .dialog.results-dialog .modal-actions { gap:9px; }
 .dialog.results-dialog .modal-actions .btn { font-size:19px; min-height:59px; }
 .dialog.planes-popup.choose-dialog .selected-plane-image { height:194px; }
 .dialog.planes-popup.choose-dialog .mode-card .btn { width:78%; }
}

/* Second playtest: consistent star proportions, compact actions and safer text. */
body[data-page="planes"] .stat-column .xp-star { object-fit:contain; object-position:center; }
.dialog.results-dialog .modal-actions .btn {
 flex:0 1 265px; width:265px; min-height:57px; padding:10px 18px;
 font-size:25px; line-height:1.1; border-radius:17px;
}
.dialog.results-dialog .result-payout {
 display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
 gap:8px; padding:10px 9px; min-width:0; max-width:100%;
}
.dialog.results-dialog .result-payout > span {
 min-width:0; display:flex; justify-content:center; flex-wrap:wrap;
 gap:5px; font-size:clamp(16px,1.8vw,25px); line-height:1.2;
 white-space:normal; overflow-wrap:anywhere; text-align:center;
}
.dialog.results-dialog .result-payout > span + span { padding-left:8px; border-left:2px solid #b2d6eb; }
.dialog.results-dialog .result-payout .art-icon { width:35px; height:35px; flex-shrink:0; }
.dialog.results-dialog .final-row { gap:6px; }
.dialog.results-dialog .standing-aircraft { width:120px; height:92px; margin-left:-6px; }
.dialog.results-dialog .standing-name { min-width:0; }
.dialog.results-dialog .standing-name > span { overflow-wrap:anywhere; }
/* Popup title frames size to their title instead of stretching across the dialog. */
.dialog.hangar-popup > .hangar-frame {
 width:max-content; max-width:calc(100% - 100px); min-height:82px;
 padding:16px 95px; font-size:36px; top:-53px;
}
.dialog.hangar-popup > .hangar-frame > span { white-space:normal; overflow-wrap:anywhere; }
.dialog.planes-popup > .hangar-frame { font-size:36px; padding-left:95px; padding-right:95px; }
@media(max-width:1023px) {
 .dialog.results-dialog .standing-aircraft { width:78px; height:65px; }
 .dialog.hangar-popup > .hangar-frame { font-size:30px; padding-left:75px; padding-right:75px; }
}
@media(max-width:760px) {
 .dialog.results-dialog .modal-actions .btn { flex:0 1 170px; width:170px; min-height:47px; padding:9px 8px; font-size:18px; }
 .dialog.results-dialog .standing-aircraft { width:65px; height:57px; margin-left:-3px; }
 .dialog.results-dialog .result-payout > span { font-size:18px; }
 .dialog.results-dialog .result-payout .art-icon { width:30px; height:30px; }
 .dialog.hangar-popup > .hangar-frame { max-width:calc(100% - 36px); min-height:70px; padding:14px 49px; font-size:23px; top:-46px; }
}
