#dlgSeasonResult {
  position:fixed; margin:auto; padding:36px 3px 25px; box-sizing:border-box;
  width:min(794px,96vw)!important; max-width:96vw!important; height:auto;
  max-height:98vh!important; max-height:98dvh!important;
  overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;
  color:#f3f4ff; background:transparent!important; border:none!important;
  border-radius:0!important; box-shadow:none!important; font:500 17px/1.3 system-ui,sans-serif;
  --sr-gold:linear-gradient(112deg,#9b5316,#ffe4a7 13%,#b4661a 24%,#ffe7aa 47%,#b36923 72%,#ffedb4 86%,#d98124);
}
#dlgSeasonResult::backdrop{background:rgba(6,4,20,.66);backdrop-filter:blur(2px)}
#dlgSeasonResult *{box-sizing:border-box}
.seasonFrame{
  position:relative; isolation:isolate; border-radius:35px;
  background:#090921 url('space.webp') center/100% 100% no-repeat;
  box-shadow:0 0 15px #5c2ca545,0 8px 18px #02011c99,inset 0 0 28px #16104b;
}
.seasonFrame::before{content:'';position:absolute;z-index:3;inset:0;pointer-events:none;border:0 solid transparent;border-image:url('frame.webp') 48 76 46 / 41px 67px 40px / 0 stretch}
.seasonFrame::after{content:'';position:absolute;z-index:4;width:80px;height:60px;bottom:-24px;left:50%;transform:translateX(-50%);background:url('star.webp') center/contain no-repeat;pointer-events:none}
.seasonSaturn{position:absolute;z-index:4;top:-31px;left:50%;transform:translateX(-50%);width:210px;height:56px;pointer-events:none}
.seasonSaturn::before{content:'';position:absolute;inset:1px 0 10px;border-radius:50% 50% 0 0 / 110% 110% 0 0;border:2px solid #8fddfe;border-bottom:0;filter:drop-shadow(0 0 3px #257bc8);clip-path:inset(0 0 10px)}
.seasonSaturn::after{content:'';position:absolute;inset:-5px 0 0;background:url('saturn.webp') center/contain no-repeat;filter:drop-shadow(0 0 5px #ed983580)}
.seasonInterior{padding:22px clamp(20px,4.6vw,44px) 18px}
.seasonHeading{display:flex;justify-content:space-between;align-items:flex-start;position:relative;gap:12px;z-index:2}
#seasonResultTitle{display:flex;align-items:center;gap:9px;color:#fff0b4;margin:0;font:700 clamp(23px,3.5vw,33px)/1.14 Georgia,serif;text-shadow:0 1px 1px #75320c,0 0 8px #ef9a3b8a}
#seasonResultTitle img{width:42px;height:49px;object-fit:contain}
#seasonResultTitle span{position:relative;padding-bottom:5px}
#seasonResultTitle span::after{position:absolute;content:'';inset:auto -4px -2px;height:2px;background:linear-gradient(90deg,#a84b18,#ffe194 25%,#da8138 70%,#fcdb8b);box-shadow:0 0 7px #ff8f28}
#dlgSeasonResult button{appearance:none;cursor:pointer;min-height:44px;color:#fff7df;font:750 18px/1.15 system-ui,sans-serif;text-shadow:0 2px 3px #18080a;white-space:normal}
#dlgSeasonResult .seasonClose{padding:8px 19px;border:2px solid transparent;border-radius:23px;background:linear-gradient(#344576,#051336 55%,#24194a 87%,#746ab5) padding-box,var(--sr-gold) border-box;box-shadow:inset 0 0 3px #96c6ff,0 0 0 3px #2e183f,0 0 0 4px #da9442,0 0 12px #c57437}
.seasonContent{text-align:center;position:relative}
.seasonAward{width:274px;height:178px;margin:-20px auto 0;position:relative;isolation:isolate;background:url('laureate.webp') center/contain no-repeat}
.seasonAward::before{content:'';z-index:-1;position:absolute;inset:-29% -28% -6%;background:repeating-conic-gradient(from 4deg at 50% 58%,transparent 0 6deg,#96a6ff60 9deg,transparent 14deg),radial-gradient(ellipse at 50% 55%,#ffce6d88,transparent 59%);mask-image:radial-gradient(ellipse at 50% 56%,transparent 22%,#0009 38%,transparent 70%);pointer-events:none}
.seasonOtherLeague{position:absolute;left:28.4%;top:14%;width:44.8%;height:72%;padding:1%;object-fit:contain;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:#070a28}
.seasonOtherLeague[hidden]{display:none}
#seasonVerdict{margin:0 auto 12px;max-width:92%;font:750 clamp(21px,3.1vw,29px)/1.21 system-ui,sans-serif;color:#ffdfa2;text-shadow:0 1px 1px #ab4a13,0 2px 4px #070514}
.seasonLine{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.32em;margin:5px auto;color:#f5f6ff;font:520 clamp(17px,2.55vw,24px)/1.3 system-ui,sans-serif;text-shadow:0 2px 4px #090627;font-variant-numeric:tabular-nums}
.seasonLine::before,.seasonLine::after{content:'';width:clamp(16px,5vw,48px);height:2px;flex:none;background:linear-gradient(90deg,transparent,#1179c8 65%,#a5eaff);box-shadow:0 0 5px #0f7be54d}
.seasonLine::after{transform:scaleX(-1)}
#seasonPrize{min-height:1.4em}
#seasonPrize strong{display:inline-flex;gap:5px;align-items:center;color:#ffda56;font-weight:800;white-space:nowrap}
#seasonPrize img{width:1.17em;height:1.17em;object-fit:contain;filter:drop-shadow(0 0 3px #fba23955)}
.seasonActions{display:flex;position:relative;z-index:2;margin-top:1px}
#dlgSeasonResult .seasonOkay{position:relative;min-width:168px;padding:10px 25px;border:2px solid transparent;border-radius:23px;color:white;font-size:24px;background:linear-gradient(#fff2aa,#f7ac39 9%,#a84d0c 31%,#672407 62%,#b95c0e 86%,#ffc858) padding-box,var(--sr-gold) border-box;box-shadow:inset 0 1px 4px #fff4b9,0 0 2px 1px #f98e23,0 0 13px #ff9100bd}
#dlgSeasonResult button:hover{filter:brightness(1.13)}
#dlgSeasonResult button:focus-visible,#dlgSL [data-slresult]:focus-visible{outline:2px solid #aaf5ff;outline-offset:5px}
#dlgSL .seasonReplay{display:block;margin:10px auto 2px}
@media(max-width:620px){
  #dlgSeasonResult{padding-top:31px;width:97vw!important;max-width:97vw!important}
  .seasonFrame{border-radius:27px}
  .seasonFrame::before{border-image-width:30px 39px}
  .seasonInterior{padding:18px clamp(14px,4vw,26px) 21px}
  #seasonResultTitle{gap:5px;font-size:clamp(19px,4.9vw,26px)}
  #seasonResultTitle img{width:28px;height:36px}
  #dlgSeasonResult .seasonClose{min-height:44px;padding:4px 11px;font-size:14px;border-radius:17px}
  .seasonSaturn{width:122px;height:43px;top:-25px}
  .seasonAward{width:min(238px,64vw);height:auto;aspect-ratio:276 / 180;margin:0 auto 4px}
  #seasonVerdict{max-width:100%;margin-bottom:11px}
  .seasonLine{gap:.24em}
  .seasonLine::before,.seasonLine::after{display:none}
  .seasonActions{justify-content:center;margin-top:16px}
  #dlgSeasonResult .seasonOkay{min-width:146px;font-size:20px}
}
@media(max-height:490px) and (min-width:621px){
  #dlgSeasonResult{padding:22px 3px 14px}
  .seasonInterior{padding:13px 30px 14px}
  .seasonSaturn{top:-18px;height:39px;width:140px}
  .seasonAward{width:185px;height:120px;margin:-23px auto 0}
  #seasonVerdict{font-size:23px;margin-bottom:4px}
  .seasonLine{font-size:19px;margin:2px auto}
  .seasonFrame::after{height:39px;bottom:-14px}
  #dlgSeasonResult .seasonOkay{font-size:18px}
}
/* Native modal sizing must win over full-height game overlays and the cosmos theme. */
html body dialog#dlgSeasonResult{inset:0;height:fit-content!important;background:transparent!important;border:0!important;box-shadow:none!important}
@layer diskilayControls {
  html body dialog#dlgSeasonResult{background:transparent!important;border:0!important;box-shadow:none!important}
  #dlgSeasonResult button.seasonOkay{color:#fff7e2!important;background:linear-gradient(177deg,#fff5b5 0,#ffba52 8%,#b55b13 28%,#622407 63%,#bc660e 86%,#ffcb55) padding-box,var(--sr-gold) border-box!important;box-shadow:inset 0 1px 4px #fff4b9,0 0 3px 1px #ffab25,0 0 15px #ff8d0bdd!important;border:2px solid transparent!important}
  #dlgSeasonResult button.seasonClose{background:linear-gradient(#526aa3,#101e46 38%,#0b1031 68%,#473865) padding-box,var(--sr-gold) border-box!important;box-shadow:inset 0 0 4px #96c6ff,0 0 0 2px #261b3a,0 0 0 3px #d39449,0 0 10px #ba793b!important;border:2px solid transparent!important}
}
@media(max-width:620px) {
  .seasonAward::before{inset:-18% -8% -6%}
}
