.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(36, 32, 22, .92), rgba(7, 9, 13, .98) 58%),
    #07090d;
  backdrop-filter: blur(6px);
}

.modal-overlay.hidden {
  display: none;
}

.modal-overlay.is-opening {
  animation: modal-overlay-in 200ms ease-out both;
}

.modal-overlay.is-closing {
  pointer-events: none;
  animation: modal-overlay-out 180ms ease-in both;
}

.modal-overlay.is-opening .modal-content {
  animation: modal-content-in 220ms cubic-bezier(.16, 1, .3, 1) both;
}

.modal-overlay.is-closing .modal-content {
  animation: modal-content-out 180ms cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes modal-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-overlay-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-content-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-content-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(.99);
  }
}

.modal-content {
  position: relative;
  width: min(780px, 86vw);
  max-height: calc(100vh - 48px);
  max-height: min(92vh, calc(100dvh - 48px));
  overflow-y: auto;
  padding: 42px 28px 24px;
  background: #1a1a1c;
  border: 2px solid #f0d99b;
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .8);
}

.modal-content #reward-box {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.modal-content:has(#reward-box.season-team-fullscreen) {
  width: calc(100vw - 48px);
  height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.modal-content:has(#reward-box.season-team-fullscreen) #reward-box {
  display: block !important;
  width: 100%;
  height: 100%;
}

.modal-content:has(#reward-box .season-modal-layout) {
  display: flex;
  flex-direction: column;
  height: min(92vh, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  max-height: min(92vh, calc(100dvh - 48px));
  overflow: hidden;
  padding: 38px 0 0;
}

.modal-content:has(#reward-box .season-modal-layout) #reward-box {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.modal-content:has(#reward-box .season-start-overview-shell),
.modal-content:has(#reward-box .season-prematch-shell) {
  width: calc(100vw - 48px);
  height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.season-start-modal .season-modal-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: none;
}

.season-start-modal .season-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 20px;
  scroll-padding-bottom: 20px;
  scrollbar-color: var(--border, #2a2f3a) transparent;
  scrollbar-width: thin;
}

.season-start-modal:has(.season-start-overview-shell) .season-modal-scroll,
.season-start-modal:has(.season-prematch-shell) .season-modal-scroll {
  padding: 34px 44px 20px;
}

.season-start-modal .season-modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.season-start-modal .season-modal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 0;
}

.season-start-modal .season-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(212, 166, 74, .78);
  border-radius: 0;
}

.season-start-modal.is-page-leaving {
  pointer-events: none;
  animation: season-page-leave .22s cubic-bezier(.4, 0, .2, 1) forwards;
}

.season-start-modal.is-page-entering {
  pointer-events: none;
  animation: season-page-enter .32s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes season-page-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

@keyframes season-page-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .season-start-modal.is-page-leaving,
  .season-start-modal.is-page-entering,
  .modal-overlay.is-opening,
  .modal-overlay.is-closing,
  .modal-overlay.is-opening .modal-content,
  .modal-overlay.is-closing .modal-content {
    animation: none;
  }
}

.post-match-card:hover,
.post-match-card:focus-visible {
  border-color: var(--gold-primary, #f0d99b);
  box-shadow:
    0 0 0 1px rgba(212, 166, 74, .35),
    5px 5px 0 rgba(0, 0, 0, .42),
    0 0 0 rgba(212, 166, 74, .18);
  outline: none;
  transform: translateY(-6px) scale(1.03);
}

.post-match-card.is-mounted {
  animation: none;
}

#reward-options.post-match-options:has(.post-match-remove:nth-child(n+7)) {
  max-height: min(460px, calc(100vh - 300px));
  padding-right: 8px;
  overflow-y: scroll;
  scrollbar-color: var(--gold-primary, #f0d99b) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}

#reward-options.post-match-options:has(.post-match-remove:nth-child(n+7))::-webkit-scrollbar {
  width: 8px;
}

#reward-options.post-match-options:has(.post-match-remove:nth-child(n+7))::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 0;
}

#reward-options.post-match-options:has(.post-match-remove:nth-child(n+7))::-webkit-scrollbar-thumb {
  background: rgba(212, 166, 74, .8);
  border-radius: 0;
}

#reward-options.post-match-options:has(.post-match-remove:nth-child(n+7))::after {
  content: '';
  position: sticky;
  bottom: 0;
  z-index: 2;
  grid-column: 1 / -1;
  height: 42px;
  margin-top: -42px;
  background: linear-gradient(180deg, rgba(26, 26, 28, 0), rgba(26, 26, 28, .92));
  pointer-events: none;
}

body.post-match-modal-open {
  overflow: hidden;
}

body.tactical-v77:not(.match-started) {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: none;
  padding: 0 32px;
  box-sizing: border-box;
}

body.tactical-v77:not(.match-started) .col-main {
  width: min(900px, calc(100vw - 64px));
  max-width: 900px;
  margin: 0 auto;
}

body.tactical-v77:not(.match-started) .col-side-top,
body.tactical-v77:not(.match-started) .col-side-bottom {
  display: none;
}

body.tactical-v77:not(.match-started) #cards {
  width: 100%;
}

.run-end-modal .gameover-shell {
  margin: 0;
}

.modal-content:has(#reward-box.run-end-modal .gameover-shell) {
  display: flex;
  flex-direction: column;
  width: calc(100vw - 48px);
  height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.modal-content:has(#reward-box.run-end-modal .gameover-shell) #reward-box {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.run-end-modal .gameover-shell {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #101820;
}

.run-end-modal .gameover-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 34px 44px 20px;
  scrollbar-color: var(--gold-primary, #f0d99b) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}

.run-end-modal .gameover-modal-footer {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 44px 16px;
  border-top: 1px solid rgba(240, 217, 155, .18);
  background: rgba(18, 20, 26, .82);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.run-end-modal .gameover-modal-footer .again {
  width: 100%;
}

.season-preview-modal .season-preview-shell,
.season-start-modal .season-start-shell,
.run-end-modal .gameover-modal-scroll {
  display: grid;
  gap: 16px;
}

.run-end-modal .gameover-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(8, 15, 22, .66) 0%, rgba(8, 15, 22, .4) 28%, rgba(8, 15, 22, .05) 58%, rgba(8, 15, 22, 0) 100%),
    linear-gradient(180deg, rgba(8, 15, 22, .1) 0%, rgba(8, 15, 22, 0) 42%, rgba(8, 15, 22, .16) 100%),
    url("../../assets/season-end-stadium-elimination-v3.png");
  background-position: center, center, center;
  background-size: auto, auto, cover;
  background-repeat: repeat, repeat, no-repeat;
}

.run-end-modal .gameover-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 28%, rgba(255, 226, 164, .2) 0, rgba(255, 226, 164, 0) 32%),
    linear-gradient(90deg, rgba(8, 15, 22, .24) 0%, rgba(8, 15, 22, .03) 44%, rgba(8, 15, 22, 0) 72%),
    linear-gradient(180deg, rgba(8, 15, 22, 0) 0%, rgba(8, 15, 22, 0) 62%, rgba(8, 15, 22, .1) 100%);
}

.run-end-modal .gameover-modal-scroll {
  display: block;
  padding: 34px 44px 20px;
}

.run-end-modal .season-end-layout {
  display: grid;
  grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: calc(100dvh - 150px);
}

.run-end-modal .season-end-sidebar {
  display: grid;
  align-content: start;
  min-width: 0;
}

.run-end-modal .season-end-hero {
  display: grid;
  gap: 42px;
  align-content: start;
  justify-items: start;
  min-width: 0;
  min-height: 520px;
  padding: clamp(76px, 10vh, 122px) clamp(32px, 6vw, 88px) 0;
}

.run-end-modal .match-verdict-row {
  display: grid;
  gap: 18px;
  align-content: start;
  width: min(520px, 100%);
  padding: 0;
}

.run-end-modal .match-kicker {
  margin-bottom: 18px;
  color: rgba(229, 232, 240, .72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

#reward-box.run-end-modal .match-verdict-row .verdict {
  color: #f0d99b;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  text-transform: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .64);
}

.run-end-modal .match-verdict-row .final {
  width: max-content;
  min-width: 180px;
  padding: 12px 18px;
  color: #f7f2df;
  background: rgba(7, 9, 13, .52);
  border: 1px solid rgba(240, 217, 155, .28);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .22);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.run-end-modal .season-end-restart {
  width: min(420px, 100%);
  min-height: 54px;
  margin: 0;
}

.run-end-modal .season-end-restart-status {
  min-height: 22px;
  color: rgba(247, 242, 223, .74);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.run-end-modal .season-end-restart-status.is-error {
  color: #f1b2a8;
}

.run-end-modal .season-end-sidebar > .season-review-block {
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  padding: 16px;
  background: rgba(26, 28, 34, .82);
  border-color: rgba(240, 217, 155, .2);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .24);
  backdrop-filter: blur(4px);
}

.run-end-modal .season-end-sidebar .group-standing-row {
  grid-template-columns: 42px minmax(62px, 1fr) repeat(6, 19px) 23px 26px;
  gap: 5px;
}

.run-end-modal .season-end-sidebar .group-standing-head span,
.run-end-modal .season-end-sidebar .group-standing-head b,
.run-end-modal .season-end-sidebar .group-standing-head i,
.run-end-modal .season-end-sidebar .group-standing-head em {
  font-size: 10px;
}

.run-end-modal .season-end-sidebar .group-standing-row span,
.run-end-modal .season-end-sidebar .group-standing-row b,
.run-end-modal .season-end-sidebar .group-standing-row i,
.run-end-modal .season-end-sidebar .group-standing-row em {
  font-size: 11px;
}

.run-end-modal .season-end-sidebar .group-standing-row.is-player {
  margin: 0;
}

.run-end-modal .gameover-modal-scroll > .match-report-grid,
.run-end-modal .gameover-modal-scroll > .reward-next {
  grid-column: 1;
  margin-left: clamp(18px, 4vw, 54px);
}

.run-end-modal .gameover-modal-scroll > .reward-next {
  grid-column: 1 / -1;
  margin-right: 0;
}

.run-end-modal .match-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: rgba(18, 20, 26, .72);
  border: 1px solid rgba(240, 217, 155, .16);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .2);
  backdrop-filter: blur(3px);
}

.run-end-modal .match-report-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.run-end-modal .match-report-grid span,
.run-end-modal .reward-next span {
  color: #b8bec9;
  font-size: 11px;
  font-weight: 900;
}

.run-end-modal .match-report-grid b,
.run-end-modal .reward-next b {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.run-end-modal .match-report-grid b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-end-modal .reward-next {
  padding: 14px 16px;
  background: rgba(18, 20, 26, .78);
  border: 1px solid rgba(240, 217, 155, .16);
  border-left: 3px solid rgba(240, 217, 155, .76);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .2);
  backdrop-filter: blur(3px);
}

.season-team-fullscreen .season-start-shell {
  grid-template-rows: auto 1fr;
  height: 100%;
  padding: 34px 44px 28px;
  box-sizing: border-box;
}

.season-start-modal .season-start-shell {
  position: relative;
  padding-bottom: 0;
  scroll-padding-bottom: 0;
}

.season-start-modal.season-team-fullscreen .season-start-shell {
  padding: 34px 44px 28px;
}

.season-start-modal .season-modal-footer.match-recap-actions {
  flex: 0 0 auto;
  z-index: 1;
  margin: 0;
  padding: 14px 28px 16px;
  border-top-color: rgba(240, 217, 155, .24);
  background: #12141a;
  box-shadow: 3px 3px 0 rgba(18, 20, 26, .96);
  backdrop-filter: none;
}

.season-start-modal:has(.season-start-overview-shell) .season-modal-footer.match-recap-actions,
.season-start-modal:has(.season-prematch-shell) .season-modal-footer.match-recap-actions {
  padding: 14px 44px 16px;
  border-top-color: rgba(240, 217, 155, .18);
  background: rgba(18, 20, 26, .92);
  box-shadow: none;
}

.season-start-modal .season-modal-footer.match-recap-actions .again {
  width: 100%;
  color: #161616;
  background: var(--gold-primary, #f0d99b);
  border: 1px solid rgba(240, 217, 155, .72);
}

.season-preview-head {
  align-items: flex-start;
}

.season-start-overview-head {
  align-items: center;
}

.season-start-overview-shell > .season-start-overview-head {
  width: fit-content;
  transform: translate(30px, 18px);
}

.season-start-overview-shell > .season-start-overview-head .reward-kicker {
  margin-bottom: 7px;
  color: rgba(229, 232, 240, .62);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

#reward-box .season-start-overview-shell > .season-start-overview-head .verdict.gold {
  color: #f0d99b;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0;
  text-transform: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}

.season-start-shell:has(.season-start-view-switch) .season-preview-head {
  min-height: 42px;
  padding-right: 126px;
}

.season-start-view-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(240, 217, 155, .44);
  background: rgba(8, 9, 11, .72);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .34);
}

.season-start-view-switch button {
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  color: rgba(229, 232, 240, .76);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(240, 217, 155, .18);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.season-start-view-switch button:last-child {
  border-right: 0;
}

.season-start-view-switch button.is-active {
  color: #161616;
  background: #f0d99b;
}

.season-start-view-switch button:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .9);
  outline-offset: 3px;
}

.season-start-overview-shell {
  min-height: min(760px, calc(100dvh - 132px));
  overflow: hidden;
  isolation: isolate;
}

.season-start-overview-shell::before {
  content: "";
  position: absolute;
  inset: -34px -44px -20px -44px;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(4, 6, 10, .92) 0%, rgba(4, 6, 10, .78) 26%, rgba(4, 6, 10, .2) 58%, rgba(4, 6, 10, .04) 82%, rgba(4, 6, 10, .24) 100%),
    linear-gradient(180deg, rgba(4, 6, 10, .7) 0%, rgba(4, 6, 10, .12) 18%, rgba(4, 6, 10, 0) 72%, rgba(4, 6, 10, .86) 100%),
    url("../../assets/season-prematch-stadium-trophy-v2.png");
  background-position: center, center, right top;
  background-size: auto, auto, contain;
  background-repeat: repeat, repeat, no-repeat;
}

.season-start-overview-shell::after {
  content: "";
  position: absolute;
  inset: -34px -44px -20px -44px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 77% 24%, rgba(240, 217, 155, .12) 0, rgba(240, 217, 155, 0) 28%),
    linear-gradient(90deg, rgba(4, 6, 10, .84) 0%, rgba(4, 6, 10, .32) 38%, rgba(4, 6, 10, 0) 78%),
    linear-gradient(180deg, rgba(4, 6, 10, .1) 0%, rgba(4, 6, 10, 0) 58%, rgba(4, 6, 10, .5) 100%);
}

.season-start-overview-grid {
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(430px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.season-start-overview-grid:not(.season-prematch-grid) {
  grid-template-columns: 400px minmax(0, 1fr);
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-prematch-hero {
  position: relative;
  width: min(520px, 44%);
  min-width: 390px;
  min-height: 360px;
  padding: 26px;
  align-content: start;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-prematch-hero::before {
  content: none;
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-prematch-hero::after {
  content: none;
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-prematch-hero > * {
  position: relative;
  z-index: 1;
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left {
  justify-items: start;
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-start-versus {
  grid-template-columns: 1fr;
  width: min(390px, 46%);
  min-height: 0;
  gap: 10px;
  margin-top: 22px;
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-start-versus > div {
  min-height: 96px;
  align-content: center;
  padding: 18px;
  border-color: rgba(240, 217, 155, .22);
  border-left: 3px solid rgba(240, 217, 155, .86);
  background: rgba(7, 9, 13, .56);
  backdrop-filter: blur(2px);
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-start-versus strong {
  width: 58px;
  height: 36px;
  justify-self: start;
  font-size: 14px;
}

.season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-start-poster-hero {
  --season-poster-offset: clamp(40px, calc(24vw - 270px), 220px);
  width: min(760px, calc(100% - var(--season-poster-offset)));
  min-width: min(620px, calc(100% - var(--season-poster-offset)));
  min-height: 410px;
  margin-left: var(--season-poster-offset);
  padding: 26px 0 0;
  overflow: visible;
}

.season-poster-versus {
  display: grid;
  grid-template-columns: 180px 86px 180px;
  gap: 48px;
  align-items: center;
  margin-top: 58px;
}

.season-poster-team {
  display: grid;
  justify-items: center;
  gap: 18px;
  min-width: 0;
}

.season-poster-crest {
  display: grid;
  place-items: center;
  width: 176px;
  height: 126px;
}

.season-poster-crest .season-flag,
.season-poster-crest .season-flag-img {
  width: 112px;
  height: 76px;
  font-size: 72px;
  transform: none;
}

.season-poster-team b {
  max-width: 100%;
  color: #f7f2df;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

.season-poster-versus > strong {
  display: grid;
  place-items: center;
  align-self: start;
  height: 126px;
  color: #f7f2df;
  font-size: 32px;
  font-weight: 950;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .8);
}

button.again.season-poster-start {
  width: min(560px, 100%);
  height: 54px;
  margin-top: 44px;
  color: #161616;
  background: var(--gold-primary, #f0d99b);
  border: 2px solid rgba(240, 217, 155, .84);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .36);
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease, filter .14s ease, transform .14s ease;
}

button.again.season-poster-start:hover {
  background: linear-gradient(90deg, #ffeeb6 0%, #d29a2d 100%);
  border-color: rgba(255, 233, 170, .95);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .42), 0 0 18px rgba(240, 217, 155, .22);
  filter: saturate(1.08) brightness(1.04);
  transform: translate(-1px, -1px);
}

button.again.season-poster-start:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .9);
  outline-offset: 3px;
}

@media (max-width: 1500px) {
  .season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-start-poster-hero {
    min-width: min(560px, calc(100% - var(--season-poster-offset)));
  }

  .season-poster-versus {
    grid-template-columns: 145px 70px 145px;
    gap: 28px;
  }

  .season-poster-crest {
    width: 140px;
    height: 104px;
  }

  .season-poster-crest .season-flag,
  .season-poster-crest .season-flag-img {
    width: 96px;
    height: 64px;
    font-size: 60px;
  }

  .season-poster-versus > strong {
    height: 104px;
    font-size: 26px;
  }

  .season-poster-team b {
    font-size: 21px;
  }

  button.again.season-poster-start {
    width: min(480px, 100%);
  }
}

/* 「下一场比赛」左栏内容比原来的积分表/赛程少：先撑满父 grid 的 align-items:start
   分到的高度（默认贴顶不拉伸），再让内容在这个高度里居中，避免头重脚轻。 */
.season-prematch-versus-shell .season-start-right {
  align-self: stretch;
  align-content: center;
}

/* 「下一场比赛」左栏对阵情报：无框、靠留白 + 字号层级，别做成卡片方框。 */
.season-prematch-compare {
  display: grid;
  gap: 14px;
  padding: 0 12px;
}

.season-prematch-compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.season-prematch-compare-side {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.season-prematch-compare-crest {
  display: grid;
  place-items: center;
  width: 64px;
  height: 46px;
}

.season-prematch-compare-crest .season-flag,
.season-prematch-compare-crest .season-flag-img {
  width: 42px;
  height: 30px;
  font-size: 28px;
  transform: none;
}

.season-prematch-compare-side b {
  max-width: 100%;
  color: #f7f2df;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.season-prematch-compare-side em {
  color: #f0d99b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.season-prematch-compare-vs {
  color: rgba(240, 217, 155, .7);
  font-size: 14px;
  font-weight: 900;
}

.season-prematch-compare-read {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(240, 217, 155, .22);
  color: #d8dce3;
  font-size: 13px;
  line-height: 1.6;
}

.season-start-left,
.season-start-right {
  display: grid;
  gap: 14px;
}

.season-start-team-card,
.season-start-match-card,
.season-start-plan-card,
.season-start-rules {
  border: 2px solid rgba(240, 217, 155, .18);
  background: rgba(38, 38, 38, .86);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .26);
}

.season-start-team-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
}

.season-start-team-card span,
.season-start-versus span,
.season-start-card-kicker,
.season-start-section-title {
  color: #b8bec9;
  font-size: 11px;
  font-weight: 900;
}

.season-start-team-card b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f0d99b;
  font-size: 18px;
  font-weight: 950;
}

.season-start-team-card em {
  color: #d9dee8;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.season-start-match-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: rgba(125, 211, 252, .34);
  background: rgba(125, 211, 252, .07);
}

.season-start-card-kicker {
  color: #7dd3fc;
}

.season-start-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.season-start-versus > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .18);
}

.season-start-versus b {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-start-versus strong {
  display: grid;
  place-items: center;
  height: 52px;
  color: #161616;
  background: #f0d99b;
  border: 1px solid rgba(0, 0, 0, .18);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .36);
  font-size: 17px;
  font-weight: 950;
}

.season-start-match-card p {
  margin: 0;
  color: #cbd2de;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.season-start-plan-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.season-start-section-title {
  color: #f0d99b;
  font-size: 13px;
}

.season-start-plan-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.season-start-plan-row:first-of-type {
  border-top: 0;
}

.season-start-plan-row span {
  color: #9aa3b2;
  font-size: 11px;
  font-weight: 850;
}

.season-start-plan-row b {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.season-start-plan-row em {
  color: #b8bec9;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.season-start-plan-row.is-current {
  margin: 0 -8px;
  padding: 10px 8px;
  border: 2px solid rgba(240, 217, 155, .92);
  background: rgba(240, 217, 155, .08);
  box-shadow:
    inset -4px 0 0 rgba(240, 217, 155, .9),
    3px 3px 0 rgba(0, 0, 0, .22);
}

.season-start-rules {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 3px solid rgba(240, 217, 155, .86);
}

.season-start-rules b {
  color: #f0d99b;
  font-size: 14px;
  font-weight: 950;
}

.season-start-rules span {
  color: #cbd2de;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.season-start-standings {
  min-width: 0;
}

.season-start-standings .group-standings-list {
  overflow: hidden;
}

.season-start-standings .group-standing-row {
  grid-template-columns: 42px minmax(68px, 1fr) repeat(6, 20px) 24px 28px;
  gap: 6px;
}

.season-start-standings .season-review-row span,
.season-start-standings .season-review-row em {
  font-size: 10px;
}

.season-start-standings .group-standing-row em {
  color: #f0d99b;
  font-size: 14px;
  font-weight: 950;
}

.season-start-standings .group-standing-head em {
  color: #8b94a3;
  font-size: 12px;
}

.season-start-standings .season-review-row b {
  font-size: 12px;
}

/* ── 赛事更新（.season-update-shell）：视觉分量向「杯赛开始/下一场比赛」的大字号靠拢 ──
   全部 scope 在 .season-update-shell 下，不改 season-review-row / group-standing-row /
   group-qualification-note 的基础定义或 .season-start-standings 的 compact 覆盖，
   避免连带影响杯赛结束回顾侧栏（414-443 行）和杯赛开始/下一场比赛的积分侧栏（上面这段）。
   2026-07-09 第二轮：去掉三处卡片边框（hero / panel / qualification-note），改靠留白 +
   字号层级 + 标题下细线 + 文字投影撑分组，参照 seasonPosterHeroHtml() 的无框大字打法。 */
.season-update-shell .season-start-overview-grid:not(.season-prematch-grid) {
  grid-template-columns: minmax(540px, 640px) minmax(220px, 1fr);
}

.season-update-shell .season-start-right {
  gap: 32px;
}

.season-update-panel {
  display: grid;
  gap: 10px;
  /* 左右留 12px：不是卡片内边距，是给 .group-standing-row.is-player 的 -8px 负 margin
     bleed 让出安全空间，避免撞上 .season-start-overview-shell 的 overflow:hidden 被裁切。 */
  padding: 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.season-update-hero {
  gap: 18px;
  /* 左右 12px 只为对齐下面 .season-update-panel 的留白，不是卡片内边距。 */
  padding: 0 12px;
  border: 0;
  box-shadow: none;
}

.season-update-result-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.season-update-result-team {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}

.season-update-result-crest {
  display: grid;
  place-items: center;
  width: 72px;
  height: 52px;
}

.season-update-result-crest .season-flag,
.season-update-result-crest .season-flag-img {
  width: 46px;
  height: 32px;
  font-size: 30px;
  transform: none;
}

.season-update-result-team b {
  max-width: 100%;
  color: #f7f2df;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.season-update-result-score {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 128px;
}

.season-update-result-verdict {
  padding: 3px 14px;
  color: #161616;
  background: linear-gradient(135deg, #f0c574 0%, #b07a1a 100%);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
}

.season-update-result-score strong {
  color: #f7f2df;
  font-size: 40px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.season-update-result-penalty {
  color: #b8bec9;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.season-update-shell .season-review-title {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 217, 155, .3);
  font-size: 15px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.season-update-shell .season-review-row:not(.group-standing-row) {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 11px 0;
}

.season-update-shell .season-review-row:not(.group-standing-row) span {
  font-size: 13px;
}

.season-update-shell .season-review-row:not(.group-standing-row) b {
  font-size: 16px;
  font-weight: 850;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

.season-update-shell .season-review-row:not(.group-standing-row) em {
  font-size: 14px;
}

.season-update-shell .group-standing-row {
  grid-template-columns: 64px minmax(130px, 1fr) repeat(6, 34px) 40px 46px;
  gap: 12px;
  padding: 9px 0;
}

.season-update-shell .group-standing-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(240, 217, 155, .22);
}

.season-update-shell .group-standing-head span,
.season-update-shell .group-standing-head b,
.season-update-shell .group-standing-head i,
.season-update-shell .group-standing-head em {
  font-size: 12px;
}

.season-update-shell .group-standing-row:not(.group-standing-head) span,
.season-update-shell .group-standing-row:not(.group-standing-head) i {
  font-size: 14px;
}

.season-update-shell .group-standing-row:not(.group-standing-head) b {
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.season-update-shell .group-standing-row:not(.group-standing-head) em {
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.season-update-shell .group-qualification-note {
  /* 左右 12px 对齐上面 .season-update-panel / .season-update-hero 的留白。 */
  padding: 0 12px;
  border: 0;
  background: transparent;
}

.season-update-shell .group-qualification-note b {
  font-size: 26px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.season-update-shell .group-qualification-note span {
  font-size: 14px;
}

.season-prematch-shell {
  gap: 14px;
}

.season-prematch-poster-only-shell {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  align-content: center;
}

#post-match-modal:has(.season-prematch-poster-only-shell) {
  padding: 0;
  backdrop-filter: none;
}

#post-match-modal:has(.season-prematch-poster-only-shell) .modal-content {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  padding: 0;
  animation: none;
  transform: none;
}

#post-match-modal:has(.season-prematch-poster-only-shell) #reward-box,
#post-match-modal:has(.season-prematch-poster-only-shell) .season-modal-layout,
#post-match-modal:has(.season-prematch-poster-only-shell) .season-modal-scroll {
  width: 100%;
  height: 100%;
}

.season-start-modal:has(.season-prematch-poster-only-shell) .season-modal-scroll {
  padding: 0;
  overflow: hidden;
}

.season-prematch-poster-only-shell::before,
.season-prematch-poster-only-shell::after {
  inset: 0;
}

.season-prematch-poster-only-shell::before {
  background-position: center, center, center;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
}

.season-start-overview-grid.season-prematch-poster-only-grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
  align-items: center;
}

.season-start-overview-grid.season-prematch-poster-only-grid > .season-start-left {
  align-content: center;
  justify-items: center;
}

.season-start-overview-grid.season-prematch-poster-only-grid:not(.season-prematch-grid) > .season-start-left .season-start-poster-hero {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  margin-left: 0;
  padding: 0;
  place-content: center;
  justify-items: center;
  overflow: visible;
}

.season-start-overview-grid.season-prematch-poster-only-grid:not(.season-prematch-grid) > .season-start-left .season-start-poster-hero > .season-poster-versus {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.season-prematch-poster-only-grid .season-poster-team {
  display: contents;
}

.season-prematch-poster-only-grid .season-poster-crest,
.season-prematch-poster-only-grid .season-poster-team > b,
.season-prematch-poster-only-grid .season-prematch-countdown {
  position: absolute;
  z-index: 1;
  margin: 0;
  transform: translate(-50%, -50%) scale(var(--season-prematch-item-scale, 1));
  transform-origin: center;
}

.season-prematch-poster-only-grid .season-poster-crest {
  width: 16.25%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.season-prematch-poster-only-grid .season-poster-crest .season-flag,
.season-prematch-poster-only-grid .season-poster-crest .season-flag-img {
  width: 100%;
  height: 100%;
  font-size: clamp(60px, 10.5vw, 180px);
  animation: season-prematch-flag-glow 3.2s ease-in-out infinite;
  animation-delay: -1.25s;
}

.season-prematch-poster-only-grid .season-poster-team > b {
  font-size: clamp(13px, 1.65vw, 28px);
  white-space: nowrap;
}

.season-prematch-poster-only-grid .season-poster-team:first-child .season-poster-crest {
  --season-prematch-item-scale: 1.5;
  left: 29.59443091231177%;
  top: 36.875652002755636%;
}

.season-prematch-poster-only-grid .season-poster-team:first-child > b {
  --season-prematch-item-scale: 1.2;
  left: 17.40693091231177%;
  top: 59.64102450546205%;
  transform: translateY(-50%) scale(var(--season-prematch-item-scale, 1));
  transform-origin: left center;
  text-align: left;
}

.season-prematch-poster-only-grid .season-poster-team:last-child .season-poster-crest {
  --season-prematch-item-scale: 1.5;
  left: 50.658951505757344%;
  top: 60.378506052553874%;
}

.season-prematch-poster-only-grid .season-poster-team:last-child > b {
  --season-prematch-item-scale: 1.2;
  right: 37.153548494242656%;
  left: auto;
  top: 39.31022537151856%;
  transform: translateY(-50%) scale(var(--season-prematch-item-scale, 1));
  transform-origin: right center;
  text-align: right;
}

.season-poster-versus > strong.season-prematch-countdown {
  --season-prematch-item-scale: 1;
  left: 4.6553227413640546%;
  top: 12%;
  width: clamp(42px, 3.5vw, 68px);
  height: auto;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.season-prematch-countdown-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, .52));
  shape-rendering: crispEdges;
  animation: season-prematch-countdown-pop 260ms steps(3, end) both;
}

.season-prematch-countdown-svg .card-art-pixel-main { fill: var(--gold-light); }
.season-prematch-countdown-svg .card-art-pixel-hot { fill: #fff1ad; }
.season-prematch-countdown-svg .card-art-pixel-shadow { fill: #805d1c; }

.season-prematch-poster-only-shell.is-entering .season-prematch-countdown {
  opacity: 0;
}

.season-prematch-poster-only-shell.is-entering .season-poster-team:first-child .season-poster-crest {
  animation: season-prematch-left-flag-enter 560ms cubic-bezier(.08, .92, .14, 1) both;
}

.season-prematch-poster-only-shell.is-entering .season-poster-team:last-child .season-poster-crest {
  animation: season-prematch-right-flag-enter 560ms cubic-bezier(.08, .92, .14, 1) both;
}

.season-prematch-poster-only-shell.is-entering .season-poster-team > b {
  animation: season-prematch-name-reveal 300ms 560ms steps(4, end) both;
}

@keyframes season-prematch-left-flag-enter {
  0% { opacity: .2; filter: brightness(1.18) drop-shadow(0 0 10px rgba(240, 217, 155, .28)); transform: translate(calc(-50% - 72vw), -50%) scale(1.5) rotate(-2deg); }
  72% { opacity: 1; filter: brightness(1.32) drop-shadow(0 0 19px rgba(240, 217, 155, .62)); transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 1; filter: none; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes season-prematch-right-flag-enter {
  0% { opacity: .2; filter: brightness(1.18) drop-shadow(0 0 10px rgba(240, 217, 155, .28)); transform: translate(calc(-50% + 72vw), -50%) scale(1.5) rotate(2deg); }
  72% { opacity: 1; filter: brightness(1.32) drop-shadow(0 0 19px rgba(240, 217, 155, .62)); transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 1; filter: none; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes season-prematch-flag-glow {
  0%, 100% { filter: brightness(1) saturate(1) drop-shadow(0 0 0 rgba(240, 217, 155, 0)); }
  50% { filter: brightness(1.12) saturate(1.08) drop-shadow(0 0 17px rgba(240, 217, 155, .46)); }
}

@keyframes season-prematch-name-reveal {
  0% { opacity: 0; filter: blur(5px) brightness(1.8); }
  100% { opacity: 1; filter: none; }
}

@keyframes season-prematch-countdown-pop {
  0% { opacity: 0; transform: scale(1.38); filter: brightness(1.8) drop-shadow(8px 8px 0 rgba(0, 0, 0, .56)); }
  65% { opacity: 1; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, .52)); }
}

.season-prematch-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 2px solid rgba(240, 217, 155, .72);
  background: rgba(38, 38, 38, .82);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .32);
}

.season-prematch-status {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(240, 217, 155, .3);
  border-left: 3px solid rgba(240, 217, 155, .86);
  background: rgba(240, 217, 155, .075);
}

.season-prematch-status b {
  color: #f0d99b;
  font-size: 14px;
  font-weight: 950;
  cursor: help;
}

.season-prematch-status span {
  color: #cbd2de;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.season-prematch-versus b {
  font-size: 22px;
}

.season-prematch-versus em {
  color: #b8bec9;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.season-prematch-versus [data-ui-tooltip],
.season-start-rules[data-ui-tooltip],
.season-start-rules [data-ui-tooltip] {
  cursor: help;
}

.season-prematch-hero p {
  margin: 0;
  color: #d9dee8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.season-prematch-grid {
  grid-template-columns: minmax(470px, 1.08fr) minmax(300px, .92fr);
}

.season-prematch-standings .group-standings-list {
  gap: 8px;
}

.season-start-standings .group-qualification-note span,
.season-prematch-standings .group-qualification-note span {
  display: none;
}

.season-prematch-support:empty {
  display: none;
}

.season-prematch-danger {
  border-left-color: rgba(239, 111, 79, .9);
  border-color: rgba(239, 111, 79, .38);
  background: rgba(70, 34, 29, .58);
}

.season-roadmap,
.season-review-list {
  display: grid;
  gap: 10px;
}

.season-roadmap-staged {
  gap: 12px;
}

.season-roadmap-trophy {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid rgba(240, 217, 155, .22);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(240, 217, 155, .20), transparent 36%),
    linear-gradient(180deg, rgba(240, 217, 155, .075), rgba(255, 255, 255, .018));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .035),
    3px 3px 0 rgba(0, 0, 0, .22);
}

.season-roadmap-trophy::before,
.season-roadmap-trophy::after {
  content: "";
  position: absolute;
  inset: 18px auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(240, 217, 155, .42), transparent);
  transform: rotate(24deg);
}

.season-roadmap-trophy::before { left: 38%; }
.season-roadmap-trophy::after { right: 38%; transform: rotate(-24deg); }

.season-roadmap-trophy-glow {
  position: absolute;
  width: 168px;
  height: 58px;
  border-radius: 50%;
  background: rgba(240, 217, 155, .18);
  filter: blur(20px);
}

.season-roadmap-trophy-cup {
  position: relative;
  font-size: 58px;
  line-height: 1;
  filter:
    drop-shadow(0 0 10px rgba(240, 217, 155, .42))
    drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
  transform: translateY(1px);
}

.season-stage {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(240, 217, 155, .14);
  border-radius: 0;
  background: rgba(255, 255, 255, .032);
}

.season-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: #b8bec9;
}

.season-stage-head b {
  color: #f0d99b;
  font-size: 13px;
  font-weight: 950;
}

.season-stage-head span {
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.season-stage-cards {
  display: grid;
  gap: 8px;
}

.season-stage-knockout {
  border-color: rgba(184, 190, 201, .14);
  background: rgba(255, 255, 255, .022);
}

.season-stage-knockout .season-stage-head b {
  color: rgba(240, 217, 155, .78);
}

.season-stage-knockout .season-opponent-card:nth-child(2) { margin-left: 8px; }
.season-stage-knockout .season-opponent-card:nth-child(3) { margin-left: 16px; }
.season-stage-knockout .season-opponent-card:nth-child(4) { margin-left: 24px; }
.season-stage-knockout .season-opponent-card:nth-child(5) { margin-left: 32px; }

.season-pick-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.season-team-picker-layout {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(320px, 1.25fr);
  gap: 14px;
  align-items: start;
}

.season-team-fullscreen .season-team-picker-layout {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  min-height: 0;
  gap: 24px;
  align-items: stretch;
}

.season-team-picker-shell .season-pick-row {
  grid-template-columns: 1fr;
}

.season-team-fullscreen .season-pick-row {
  align-content: start;
  min-height: 0;
}

.season-start-modal .pick-coach {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  padding: 12px 13px;
  text-align: left;
}

.season-team-picker-shell .pick-team::before {
  display: none;
}

.season-start-modal .pick-coach.is-selected {
  border-color: rgba(240, 217, 155, .96);
  background: rgba(240, 217, 155, .085);
  box-shadow:
    inset -4px 0 0 rgba(240, 217, 155, .95),
    3px 3px 0 rgba(240, 217, 155, .12);
}

.season-start-modal .pick-coach:focus-visible {
  outline: 2px solid rgba(240, 217, 155, .9);
  outline-offset: 3px;
}

.season-start-modal .pick-coach .pc-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.2;
}

.season-start-modal .pick-team .season-flag {
  font-size: 1.55em;
  transform: translateY(1px);
}

.season-start-modal .pick-coach .pc-style {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.season-start-modal .pick-coach .pc-desc {
  font-size: 11px;
}

.season-team-picker-shell .pick-coach .pc-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.season-start-modal .pick-coach .pc-deck-preview {
  display: grid;
  gap: 4px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(229, 229, 229, .74);
  font-size: 11px;
  line-height: 1.45;
}

.season-start-modal .pick-coach .pc-deck-preview span {
  color: rgba(240, 217, 155, .9);
  font-weight: 800;
}

.season-start-modal .pick-coach .pc-deck-preview em {
  color: rgba(229, 229, 229, .86);
  font-style: normal;
}

.season-start-modal .pick-coach .pc-deck-preview b {
  display: none;
}

.season-team-detail {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  background: transparent;
  border: 0;
}

.season-team-fullscreen .season-team-detail {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-self: start;
  height: calc(100dvh - 144px);
  max-height: calc(100dvh - 144px);
  min-height: 0;
  margin-top: -34px;
  padding: 0 8px 0 10px;
  overflow: hidden;
}

.season-team-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.season-team-detail-name {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #f0d99b;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.season-team-detail-name .season-flag-img {
  width: 1.7em;
  height: 1.12em;
}

.season-team-detail-style {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  padding: 7px 11px;
  color: #f7f2df;
  background: rgba(240, 217, 155, .08);
  border: 1px solid rgba(240, 217, 155, .28);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .28);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.season-team-detail-style:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .9);
  outline-offset: 3px;
}

.season-team-style-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #161616;
  background: #f0d99b;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.season-team-detail-style.is-tiki_taka {
  border-color: rgba(125, 211, 252, .46);
  background: rgba(125, 211, 252, .08);
}

.season-team-detail-style.is-tiki_taka .season-team-style-icon {
  background: #7dd3fc;
}

.season-team-detail-style.is-direct_play .season-team-style-icon,
.season-team-detail-style.is-wing_play .season-team-style-icon {
  background: #f0d99b;
}

.season-team-detail-style.is-high_press .season-team-style-icon {
  background: #ef6f4f;
}

.season-team-detail-style.is-low_block .season-team-style-icon {
  background: #6bcf7f;
}

.season-team-detail-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  line-height: 1.55;
}

.season-team-detail-row span {
  color: rgba(240, 217, 155, .92);
  font-weight: 900;
}

.season-team-detail-row b {
  color: rgba(245, 248, 252, .9);
}

.season-team-deck-row {
  grid-template-columns: 68px auto 48px;
  align-items: center;
}

.season-view-deck-btn {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  height: 34px;
  padding: 0;
  color: #f0d99b;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: inherit;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, transform .1s ease;
}

.season-view-deck-btn:hover {
  color: #fff0c2;
  background: rgba(240, 217, 155, .06);
  transform: translateY(-1px);
}

.season-view-deck-btn:active {
  transform: translateY(1px) scale(.96);
}

.season-view-deck-btn:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .9);
  outline-offset: 3px;
}

.season-view-deck-icon {
  display: block;
  width: 38px;
  height: 28px;
  overflow: visible;
}

.season-view-deck-card {
  fill: rgba(24, 24, 26, .88);
  stroke: currentColor;
  stroke-width: 2;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .42));
  transition: fill .14s ease, opacity .14s ease, transform .14s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.season-view-deck-card.is-left {
  transform: rotate(-12deg) translate(-1px, 2px);
  opacity: .7;
}

.season-view-deck-card.is-mid {
  fill: rgba(42, 42, 44, .92);
}

.season-view-deck-card.is-right {
  transform: rotate(12deg) translate(1px, 2px);
  opacity: .82;
}

.season-view-deck-btn:hover .season-view-deck-card {
  fill: rgba(45, 42, 36, .94);
  opacity: 1;
}

.season-view-deck-btn:hover .season-view-deck-card.is-left {
  transform: rotate(-17deg) translate(-4px, 2px);
}

.season-view-deck-btn:hover .season-view-deck-card.is-mid {
  transform: translateY(-2px);
}

.season-view-deck-btn:hover .season-view-deck-card.is-right {
  transform: rotate(17deg) translate(4px, 2px);
}

.season-team-deck-title {
  color: rgba(240, 217, 155, .92);
  font-size: 12px;
  font-weight: 900;
}

.season-team-fullscreen .season-team-deck-title {
  margin-bottom: 0;
}

.season-team-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(154px, 1fr));
  gap: 10px;
  align-content: start;
  align-items: start;
  max-height: min(330px, 40vh);
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-color: var(--gold-primary, #f0d99b) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}

.season-team-fullscreen .season-team-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 22px 24px;
  grid-auto-rows: 252px;
  margin-top: 12px;
  max-height: 100%;
  min-height: 0;
  padding-bottom: 8px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.season-team-card-grid::-webkit-scrollbar {
  width: 6px;
}

.season-team-card-grid::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 0;
}

.season-team-card-grid::-webkit-scrollbar-thumb {
  background: var(--border, #2a2f3a);
  border-radius: 0;
}

.season-team-card-grid::-webkit-scrollbar-thumb:hover {
  background: var(--dim, #6b7280);
}

.season-card-scale {
  position: relative;
  width: 154px;
  height: 162px;
  justify-self: center;
}

.season-team-fullscreen .season-card-scale {
  width: 188px;
  height: 252px;
}

.season-card-scale .season-preview-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  box-sizing: border-box;
  pointer-events: none;
  transform: scale(.77);
  transform-origin: 0 0;
}

.season-card-scale .season-preview-card::before {
  display: none;
}

.season-team-fullscreen .season-card-scale .season-preview-card {
  width: 188px;
  min-width: 188px;
  max-width: 188px;
  height: 252px;
  min-height: 252px;
  max-height: 252px;
  transform: none;
}

.season-core-card-grid {
  align-self: start;
  overflow: visible;
}

.season-team-fullscreen .season-core-card-grid {
  grid-template-columns: repeat(auto-fit, 188px);
  grid-auto-rows: 264px;
  justify-content: start;
  gap: 22px 42px;
}

.season-team-fullscreen .season-core-card-grid .season-core-card-scale {
  width: 188px;
  height: 264px;
}

.season-team-fullscreen .season-core-preview-card {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  box-sizing: border-box;
  pointer-events: none;
  transform: scale(1.253333);
  transform-origin: 0 0;
}

.season-team-fullscreen .season-core-preview-card::before {
  display: none;
  content: none;
}

.season-deck-viewer .pile-viewer-backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(3px);
}

.season-deck-viewer .pile-viewer-panel {
  background: #181818;
  border-color: rgba(240, 217, 155, .26);
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, .58),
    0 0 0 1px rgba(0, 0, 0, .4);
}

.season-card-count-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  color: #161616;
  background: #f0d99b;
  border: 1px solid rgba(0, 0, 0, .22);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .42);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.season-confirm-team {
  align-self: end;
  justify-self: start;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  box-sizing: border-box;
  margin-top: 2px;
}

.season-opponent-card {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(240, 217, 155, .16);
  border-left: 3px solid rgba(240, 217, 155, .78);
  border-radius: 0;
}

.season-opponent-card.is-final {
  border-color: rgba(240, 217, 155, .42);
  background: rgba(240, 217, 155, .08);
}

.season-opponent-card.is-first {
  border-color: rgba(240, 217, 155, .9);
  box-shadow: 0 0 0 rgba(240, 197, 116, .24);
}

.season-opponent-card.is-current {
  border-color: rgba(125, 211, 252, .72);
  border-left-color: rgba(125, 211, 252, .9);
  background: rgba(125, 211, 252, .08);
}

.season-opponent-card.is-completed {
  border-left-color: rgba(107, 207, 127, .82);
  background: rgba(107, 207, 127, .055);
}

.season-opponent-card.is-undrawn {
  border-style: dashed;
  border-color: rgba(184, 190, 201, .26);
  border-left-color: rgba(184, 190, 201, .42);
  background: rgba(255, 255, 255, .028);
}

.season-opponent-card.is-conditional {
  opacity: .78;
  border-color: rgba(184, 190, 201, .18);
  border-left-color: rgba(184, 190, 201, .3);
  background:
    linear-gradient(90deg, rgba(184, 190, 201, .055), rgba(255, 255, 255, .018));
}

.season-opponent-card.is-undrawn .season-opponent-name {
  color: #b8bec9;
}

.season-match-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b8bec9;
  font-size: 11px;
  font-weight: 800;
}

.season-trophy {
  color: #f0d99b;
}

.season-card-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.your-coach-chip {
  display: inline-block;
  padding: 2px 8px;
  color: #fff;
  background: linear-gradient(135deg, #f0c574 0%, #b07a1a 100%);
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
}

.season-opponent-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.season-flag {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
}

.season-flag-img {
  width: 1.45em;
  height: 1em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(0, 0, 0, .28);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
  transform: translateY(.08em);
}

.season-opponent-style {
  color: #b8bec9;
  font-size: 12px;
  line-height: 1.55;
}

.season-opponent-score {
  color: #7ed79a;
  font-size: 12px;
  font-weight: 800;
}

.season-done-chip {
  background: linear-gradient(135deg, #7ed79a 0%, #2f7d49 100%);
}

.season-conditional-chip {
  color: rgba(229, 232, 240, .9);
  background: rgba(184, 190, 201, .16);
  border: 1px solid rgba(184, 190, 201, .22);
}

.season-group-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(240, 217, 155, .16);
  border-radius: 0;
  background: rgba(255, 255, 255, .035);
}

.season-draw-note b {
  line-height: 1.45;
}

.knockout-bracket-shell {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(240, 217, 155, .16);
  border-radius: 0;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.bracket-meta {
  color: #b8bec9;
  font-size: 12px;
  font-weight: 750;
}

.knockout-bracket {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.bracket-round {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 150px;
}

.bracket-round-title {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 0;
  color: #f0d99b;
  background: rgba(12, 14, 19, .9);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.bracket-round-matches {
  display: grid;
  gap: 7px;
}

.bracket-match {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(184, 190, 201, .16);
  border-left: 3px solid rgba(184, 190, 201, .28);
  border-radius: 0;
  background: rgba(12, 14, 19, .34);
}

.bracket-match.has-player {
  border-color: rgba(125, 211, 252, .62);
  border-left-color: rgba(125, 211, 252, .9);
  background: rgba(125, 211, 252, .08);
}

.bracket-match.is-resolved {
  background: rgba(255, 255, 255, .045);
}

.bracket-match-label {
  color: rgba(184, 190, 201, .75);
  font-size: 10px;
  font-weight: 850;
}

.bracket-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 6px;
  align-items: center;
  min-height: 22px;
  color: #d9dee8;
  font-size: 11px;
  font-weight: 750;
}

.bracket-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team b {
  color: #f0d99b;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bracket-team.is-winner span {
  color: #fff;
  font-weight: 950;
}

.bracket-team.is-player {
  color: #7dd3fc;
}

.bracket-team.is-pending {
  color: rgba(184, 190, 201, .54);
  font-style: italic;
}

.season-preview-note {
  margin: 0;
}

.intent-season-label {
  color: #f0d99b;
  font-weight: 900;
  white-space: nowrap;
}

.intent-card .intent-kicker {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.season-review-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(240, 217, 155, .18);
  border-radius: 0;
}

.season-review-title {
  color: #f0d99b;
  font-size: 13px;
  font-weight: 900;
}

.group-standings-title {
  width: max-content;
  max-width: 100%;
  cursor: help;
}

.group-qualification-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-left: 3px solid rgba(125, 211, 252, .78);
  background: rgba(125, 211, 252, .08);
  cursor: help;
}

.group-qualification-note b {
  color: #dff6ff;
  font-size: 13px;
  font-weight: 950;
}

.group-qualification-note span {
  color: #b8bec9;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.season-review-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.season-review-row:first-child {
  border-top: 0;
}

.season-review-row span {
  color: #b8bec9;
  font-size: 11px;
  font-weight: 800;
}

.season-review-row b {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-review-row em {
  color: #f0d99b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.group-standing-head {
  padding-top: 0;
  color: #8b94a3;
  border-top: 0;
}

.group-standing-row {
  grid-template-columns: 58px minmax(84px, 1fr) repeat(6, 28px) 34px 38px;
}

.group-standing-head span,
.group-standing-head b,
.group-standing-head i,
.group-standing-head em {
  color: #8b94a3;
  font-size: 11px;
  font-weight: 800;
}

.group-standing-row i {
  color: #d9dee8;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.group-standing-row.is-player {
  margin: 0 -8px;
  padding: 8px;
  border: 1px solid rgba(125, 211, 252, .42);
  border-radius: 0;
  background: rgba(125, 211, 252, .1);
  box-shadow: inset 3px 0 0 rgba(125, 211, 252, .82);
}

.group-standing-row.is-player span,
.group-standing-row.is-player b,
.group-standing-row.is-player i,
.group-standing-row.is-player em {
  color: #dff6ff;
  font-weight: 950;
}

.season-goal-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.season-goal-bars > div,
.run-rating,
.season-highlight {
  padding: 10px 12px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
}

.season-goal-bars span,
.run-rating span {
  display: block;
  margin-bottom: 4px;
  color: #9aa3b2;
  font-size: 11px;
}

.season-goal-bars b,
.run-rating b {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.season-goal-bars em {
  display: block;
  margin-top: 5px;
  min-height: 18px;
  color: #d9e8ff;
  font-style: normal;
  line-height: 1.4;
  word-break: break-word;
}

.season-highlight {
  color: #d9e8ff;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .season-team-picker-layout,
  .season-start-overview-grid,
  .season-start-overview-grid:not(.season-prematch-grid),
  .season-start-versus,
  .season-pick-row,
  .season-goal-bars,
  .run-end-modal .season-end-layout,
  .run-end-modal .match-report-grid,
  .season-review-row {
    grid-template-columns: 1fr;
  }

  .season-start-overview-head,
  .season-start-team-card,
  .season-start-plan-row {
    grid-template-columns: 1fr;
  }

  .season-start-versus strong {
    height: 38px;
  }

  .season-start-overview-shell::before,
  .season-start-overview-shell::after {
    inset: 0;
  }

  .run-end-modal .gameover-modal-scroll {
    padding: 26px 18px 18px;
  }

  .run-end-modal .match-verdict-row,
  .run-end-modal .gameover-modal-scroll > .match-report-grid,
  .run-end-modal .gameover-modal-scroll > .reward-next {
    margin-left: 0;
    padding-left: 0;
  }

  .run-end-modal .season-end-layout {
    min-height: 0;
  }

  .run-end-modal .season-end-hero {
    min-height: 260px;
    padding: 18px 0 4px;
  }

  .run-end-modal .season-end-sidebar > .season-review-block {
    max-height: none;
  }

  .run-end-modal .match-verdict-row {
    min-height: 210px;
  }

  .season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-start-versus {
    width: 100%;
  }

  .season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-prematch-hero {
    width: 100%;
    min-width: 0;
  }

  .season-start-overview-grid:not(.season-prematch-grid) > .season-start-left .season-start-poster-hero {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .season-poster-versus {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .season-start-overview-grid.season-prematch-poster-only-grid:not(.season-prematch-grid) > .season-start-left .season-start-poster-hero > .season-poster-versus {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    height: auto;
    margin-top: 0;
  }

  .season-prematch-poster-only-grid .season-poster-team {
    display: grid;
  }

  .season-prematch-poster-only-grid .season-poster-crest,
  .season-prematch-poster-only-grid .season-poster-team > b,
  .season-prematch-poster-only-grid .season-prematch-countdown {
    position: static;
    transform: none;
  }

  .season-prematch-poster-only-grid .season-poster-crest,
  .season-prematch-poster-only-grid .season-poster-crest .season-flag,
  .season-prematch-poster-only-grid .season-poster-crest .season-flag-img {
    width: 240px;
    height: 160px;
  }

  .season-prematch-poster-only-grid .season-poster-crest {
    aspect-ratio: auto;
  }

  .season-prematch-poster-only-grid .season-poster-crest .season-flag,
  .season-prematch-poster-only-grid .season-poster-crest .season-flag-img {
    font-size: 150px;
  }

  .season-prematch-poster-only-grid .season-poster-team > b {
    font-size: 21px;
  }

  .season-poster-versus > strong.season-prematch-countdown {
    width: 50px;
    height: auto;
    justify-self: center;
    line-height: normal;
  }

  .season-prematch-poster-only-shell.is-entering .season-poster-team:first-child .season-poster-crest {
    animation-name: season-prematch-mobile-left-flag-enter;
  }

  .season-prematch-poster-only-shell.is-entering .season-poster-team:last-child .season-poster-crest {
    animation-name: season-prematch-mobile-right-flag-enter;
  }

  @keyframes season-prematch-mobile-left-flag-enter {
    0% { opacity: .2; filter: brightness(1.18) drop-shadow(0 0 9px rgba(240, 217, 155, .26)); transform: translateX(-115vw) rotate(-2deg); }
    72% { opacity: 1; filter: brightness(1.32) drop-shadow(0 0 17px rgba(240, 217, 155, .58)); transform: none; }
    100% { opacity: 1; filter: none; transform: none; }
  }

  @keyframes season-prematch-mobile-right-flag-enter {
    0% { opacity: .2; filter: brightness(1.18) drop-shadow(0 0 9px rgba(240, 217, 155, .26)); transform: translateX(115vw) rotate(2deg); }
    72% { opacity: 1; filter: brightness(1.32) drop-shadow(0 0 17px rgba(240, 217, 155, .58)); transform: none; }
    100% { opacity: 1; filter: none; transform: none; }
  }

  .season-poster-crest {
    width: 150px;
    height: 106px;
  }

  .season-poster-start {
    width: 100%;
    margin-top: 24px;
  }

  .season-team-fullscreen .season-team-picker-layout {
    grid-template-columns: 1fr;
  }

  .season-team-detail-head {
    display: grid;
  }

  .season-team-fullscreen .season-team-detail {
    height: auto;
    max-height: none;
    margin-top: 0;
    overflow: visible;
  }

  .season-start-modal.season-team-fullscreen .season-start-shell {
    overflow-y: auto;
    padding: 22px 18px 18px;
  }

  .season-team-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  }

  .season-review-row em {
    white-space: normal;
  }
}

/* ============================================================
 * 2026-07-08 · 续局逃生门（server-restore-escape）
 * 服务器上有进行中的一局但页面没自动接回时，给玩家看得懂的出口。
 * 按 design/design-system.html 的 .btn-primary / .btn-ghost 视觉规范做，
 * 用 tokens.css 运行时变量上色。
 * ============================================================ */
.server-restore-escape .sre-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  padding: 8px 4px;
}

.server-restore-escape .sre-title {
  color: var(--gold-light, #f0d99b);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 0;
}

.server-restore-escape .sre-body {
  color: var(--text-main, #ccc);
  font-size: 13px;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto;
}

.server-restore-escape .sre-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.server-restore-escape .sre-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border: 2px solid;
  border-radius: 0;
  cursor: pointer;
  transition: filter 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.server-restore-escape .sre-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.server-restore-escape .sre-btn-primary {
  background: linear-gradient(135deg, var(--gold-primary, #f0d99b), var(--gold-dim, #c9953a));
  border-color: var(--gold-light, #f0d99b);
  color: #1a1a1a;
}

.server-restore-escape .sre-btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.server-restore-escape .sre-btn-ghost {
  background: transparent;
  border-color: var(--border-strong, #555);
  color: var(--text-main, #ccc);
}

.server-restore-escape .sre-btn-ghost:hover:not(:disabled) {
  border-color: var(--gold-dim, #c9953a);
  color: var(--gold-light, #f0d99b);
}

.server-restore-escape .sre-hint {
  min-height: 16px;
  margin: 0;
  color: var(--text-dim, #888);
  font-size: 12px;
}

/* ============================================================
 * 八场淘汰杯赛 · 杯赛之路
 * ============================================================ */
#post-match-modal:has(.cup-road-screen) {
  padding: 0;
  backdrop-filter: none;
}

#post-match-modal:has(.cup-road-screen) .modal-content {
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  padding: 0;
  border: 0;
  box-shadow: none;
  animation: none;
  transform: none;
}

#post-match-modal:has(.cup-road-screen) #reward-box,
#post-match-modal:has(.cup-road-screen) .season-modal-layout,
#post-match-modal:has(.cup-road-screen) .season-modal-scroll {
  width: 100%;
  height: 100%;
}

.season-start-modal.season-progress-modal:has(.cup-road-screen),
.season-start-modal:has(.cup-road-screen) {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: var(--bg-deepest);
}

.season-start-modal:has(.cup-road-screen) .season-modal-scroll {
  padding: 0;
  overflow: hidden;
}

.cup-road-screen {
  --cup-road-content-left: clamp(37px, 2.86vw, 59px);
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text-primary);
  overflow: hidden;
  background: url('../../assets/season-prematch-stadium-trophy-v2.png') center / cover no-repeat var(--bg-deepest);
}

.cup-road-hud,
.cup-road-route,
.cup-road-callout {
  position: relative;
  z-index: 1;
}

.cup-road-hud {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 42px 28px 0 var(--cup-road-content-left);
  border-bottom: 0;
  background: transparent;
}

.cup-road-hud > strong {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .72);
}

.cup-road-hud .season-flag,
.cup-road-hud .season-flag-img {
  width: 42px;
  height: 28px;
  margin: 0;
  font-size: 28px;
  transform: none;
}

.cup-road-route {
  align-self: center;
  justify-self: start;
  width: 72%;
  min-height: 500px;
  display: grid;
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  align-items: center;
  gap: 12px;
  padding: 48px 34px 130px;
  box-sizing: border-box;
}

.cup-road-path {
  position: absolute;
  inset: 48px 34px 130px;
  z-index: 0;
  width: calc(100% - 68px);
  height: calc(100% - 178px);
  overflow: visible;
  pointer-events: none;
}

.cup-road-path path {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: 5;
  stroke-dasharray: 14 12;
  stroke-linecap: square;
  opacity: .82;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .42));
  vector-effect: non-scaling-stroke;
}

.cup-road-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  transform: translateY(var(--road-offset, 0));
}

.cup-road-node[data-match-number="1"] { --road-offset: 90px; }
.cup-road-node[data-match-number="2"] { --road-offset: 20px; }
.cup-road-node[data-match-number="3"] { --road-offset: 75px; }
.cup-road-node[data-match-number="4"] { --road-offset: -10px; }
.cup-road-node[data-match-number="5"] { --road-offset: 40px; }
.cup-road-node[data-match-number="6"] { --road-offset: -70px; }
.cup-road-node[data-match-number="7"] { --road-offset: -25px; }
.cup-road-node[data-match-number="8"] { --road-offset: -105px; }

.cup-road-node:is([data-match-number="1"], [data-match-number="2"], [data-match-number="3"], [data-match-number="4"]) {
  --cup-road-tier-color: var(--blue);
  --cup-road-tier-shadow: rgba(109, 179, 255, .24);
}

.cup-road-node:is([data-match-number="5"], [data-match-number="6"], [data-match-number="7"]) {
  --cup-road-tier-color: var(--green);
  --cup-road-tier-shadow: rgba(126, 215, 154, .24);
}

.cup-road-node[data-match-number="8"] {
  --cup-road-tier-color: var(--gold-light);
}

.cup-road-card {
  position: relative;
  width: clamp(86px, 7vw, 116px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--border-strong);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.cup-road-card .season-flag-img,
.cup-road-next-crest .season-flag-img {
  width: 64%;
  height: 46%;
  margin: 0;
  background-size: cover;
  box-shadow: var(--shadow-card);
}

.cup-road-node > b {
  max-width: 130px;
  color: var(--text-primary);
  font-size: 14px;
}

.cup-road-node > span {
  min-height: 30px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.35;
}

.cup-road-node.is-defeated {
  filter: grayscale(1);
  opacity: 1;
}

.cup-road-node.is-defeated .cup-road-card > *,
.cup-road-node.is-defeated > b,
.cup-road-node.is-defeated > span {
  opacity: .72;
}

.cup-road-node.is-defeated .cup-road-card {
  border-color: var(--border-strong);
  background: #242629;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .34);
}

.cup-road-node:not(.is-defeated):not(.is-blocked):not([data-match-number="8"]) .cup-road-card {
  border-color: color-mix(in srgb, var(--cup-road-tier-color) 78%, var(--text-primary));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(22, 24, 27, .98) 64%),
    var(--bg-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    4px 4px 0 var(--cup-road-tier-shadow);
}

.cup-road-node:not(.is-defeated):not(.is-blocked) .cup-road-silhouette {
  color: color-mix(in srgb, var(--cup-road-tier-color) 82%, white);
}

.cup-road-node:not(.is-defeated):not(.is-blocked) > b {
  color: color-mix(in srgb, var(--cup-road-tier-color) 68%, white);
}

.cup-road-node.is-current:not(.is-defeated):not(.is-blocked) .cup-road-card {
  border-color: color-mix(in srgb, var(--cup-road-tier-color) 62%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 0 3px color-mix(in srgb, var(--cup-road-tier-color) 34%, transparent),
    0 0 22px color-mix(in srgb, var(--cup-road-tier-color) 28%, transparent),
    5px 5px 0 var(--cup-road-tier-shadow, var(--gold-glow-strong));
  animation:
    cup-road-reveal 520ms ease both,
    cup-road-current-glow 2.8s 520ms ease-in-out infinite;
}

.cup-road-node.is-current:not(.is-defeated):not(.is-blocked) > b,
.cup-road-node.is-current:not(.is-defeated):not(.is-blocked) > span {
  color: color-mix(in srgb, var(--cup-road-tier-color) 82%, var(--text-primary));
}

.cup-road-node.is-blocked .cup-road-card {
  border-color: var(--red);
  box-shadow: 5px 5px 0 rgba(196, 74, 74, .2);
}

.cup-road-node.is-hidden {
  opacity: 1;
}

.cup-road-node.is-hidden .cup-road-card > *,
.cup-road-node.is-hidden > b,
.cup-road-node.is-hidden > span {
  opacity: .86;
}

.cup-road-node[data-match-number="8"] {
  z-index: 2;
}

.cup-road-node[data-match-number="8"] .cup-road-card {
  width: clamp(118px, 9vw, 152px);
  border: 3px solid var(--gold-light);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(22, 24, 27, .98) 64%),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 0 4px rgba(240, 217, 155, .24),
    0 0 26px rgba(240, 217, 155, .2),
    8px 8px 0 rgba(0, 0, 0, .46);
}

.cup-road-node[data-match-number="8"] > b {
  max-width: 160px;
  color: var(--gold-light);
  font-size: 16px;
  letter-spacing: .04em;
}

.cup-road-node[data-match-number="8"] > span {
  color: var(--gold-dim);
  font-size: 12px;
  font-weight: 900;
}

.cup-road-node[data-match-number="8"].is-hidden {
  opacity: 1;
}

.cup-road-node[data-match-number="8"].is-hidden .cup-road-card > *,
.cup-road-node[data-match-number="8"].is-hidden > b,
.cup-road-node[data-match-number="8"].is-hidden > span {
  opacity: .9;
}

.cup-road-node[data-match-number="8"].is-blocked .cup-road-card {
  border-color: var(--red);
}

.cup-road-node[data-match-number="8"].is-defeated .cup-road-card {
  border-color: var(--border-strong);
  background: #242629;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .34);
}

.cup-road-silhouette {
  width: clamp(34px, 3vw, 48px);
  aspect-ratio: 13 / 19;
  display: grid;
  place-items: center;
}

.cup-road-question-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: crispEdges;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .42));
}

.cup-road-question-svg .card-art-pixel-main {
  fill: var(--cup-road-tier-color);
}

.cup-road-question-svg .card-art-pixel-hot {
  fill: color-mix(in srgb, var(--cup-road-tier-color) 42%, white);
}

.cup-road-question-svg .card-art-pixel-shadow {
  fill: color-mix(in srgb, var(--cup-road-tier-color) 42%, #111418);
}

.cup-road-callout {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  min-height: 116px;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-dim);
  background: rgba(30, 30, 30, .94);
  box-shadow: var(--shadow-card);
}

.cup-road-next-crest {
  width: 78px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  font-size: 42px;
}

.cup-road-callout > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.cup-road-callout span,
.cup-road-callout em {
  color: var(--text-dim);
  font-size: 12px;
  font-style: normal;
}

.cup-road-callout strong {
  color: var(--text-primary);
  font-size: 22px;
}

.cup-road-callout .again {
  min-width: 180px;
  min-height: 50px;
}

.cup-road-callout.is-action-only {
  left: 50%;
  right: auto;
  bottom: 20%;
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
}

.cup-road-callout.is-action-only .again {
  min-width: 226px;
  min-height: 58px;
  padding: 13px 30px;
  margin-top: 0;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    filter .16s ease,
    transform .16s ease;
}

.cup-road-callout.is-action-only .again:hover {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dim));
  box-shadow:
    7px 7px 0 rgba(0, 0, 0, .5),
    0 0 26px var(--gold-glow-strong);
  filter: brightness(1.12) saturate(1.08);
  transform: translate(-2px, -3px);
}

.cup-road-callout.is-action-only .again:active {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
  filter: brightness(.96);
  transform: translate(1px, 1px);
}

.cup-road-callout.is-action-only .again:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.cup-road-victory-stamp {
  display:inline-grid;
  min-width:112px;
  min-height:48px;
  place-items:center;
  border:1px solid var(--success, #79c992);
  color:var(--success, #79c992);
  background:color-mix(in srgb, var(--success, #79c992) 12%, transparent);
  font-weight:800;
  letter-spacing:.12em;
}

.cup-road-screen.is-terminal:not(.is-champion) .cup-road-callout {
  border-left-color: var(--red);
}

.cup-road-screen.is-restored .cup-road-node {
  animation: none !important;
}

.cup-road-screen.is-first-visit .cup-road-hud {
  opacity: 0;
  animation: cup-road-hud-enter 360ms 90ms ease-out both;
}

.cup-road-screen.is-first-visit .cup-road-path {
  clip-path: inset(0 100% 0 0);
  animation: cup-road-path-enter 1.34s 390ms linear both;
}

.cup-road-screen.is-first-visit .cup-road-node {
  opacity: 0;
  animation: cup-road-node-enter 300ms ease-out both;
}

.cup-road-screen.is-first-visit .cup-road-node[data-match-number="1"] { animation-delay: 460ms; }
.cup-road-screen.is-first-visit .cup-road-node[data-match-number="2"] { animation-delay: 620ms; }
.cup-road-screen.is-first-visit .cup-road-node[data-match-number="3"] { animation-delay: 780ms; }
.cup-road-screen.is-first-visit .cup-road-node[data-match-number="4"] { animation-delay: 940ms; }
.cup-road-screen.is-first-visit .cup-road-node[data-match-number="5"] { animation-delay: 1100ms; }
.cup-road-screen.is-first-visit .cup-road-node[data-match-number="6"] { animation-delay: 1260ms; }
.cup-road-screen.is-first-visit .cup-road-node[data-match-number="7"] { animation-delay: 1420ms; }
.cup-road-screen.is-first-visit .cup-road-node[data-match-number="8"] { animation-delay: 1580ms; }

.cup-road-screen.is-first-visit .cup-road-callout.is-action-only {
  opacity: 0;
  pointer-events: none;
  animation: cup-road-action-enter 360ms 1880ms ease-out both;
}

@keyframes cup-road-reveal {
  from { opacity: 0; transform: translateY(14px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cup-road-current-glow {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .12),
      0 0 0 3px color-mix(in srgb, var(--cup-road-tier-color) 28%, transparent),
      0 0 18px color-mix(in srgb, var(--cup-road-tier-color) 20%, transparent),
      5px 5px 0 var(--cup-road-tier-shadow, var(--gold-glow-strong));
  }
  50% {
    filter: brightness(1.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .18),
      0 0 0 4px color-mix(in srgb, var(--cup-road-tier-color) 46%, transparent),
      0 0 34px color-mix(in srgb, var(--cup-road-tier-color) 42%, transparent),
      6px 6px 0 var(--cup-road-tier-shadow, var(--gold-glow-strong));
  }
}

@keyframes cup-road-hud-enter {
  from { opacity: 0; transform: translateX(-24px); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0); filter: none; }
}

@keyframes cup-road-path-enter {
  from { clip-path: inset(0 100% 0 0); opacity: .28; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes cup-road-node-enter {
  from {
    opacity: 0;
    filter: blur(4px) brightness(1.5);
    transform: translateY(calc(var(--road-offset, 0px) + 14px)) scale(.9);
  }
  to {
    opacity: 1;
    filter: none;
    transform: translateY(var(--road-offset, 0px)) scale(1);
  }
}

@keyframes cup-road-action-enter {
  from { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 831px) {
  #post-match-modal:has(.cup-road-screen) .modal-content { width: 100vw; }
  .season-start-modal.season-progress-modal:has(.cup-road-screen),
  .season-start-modal:has(.cup-road-screen) { width: 100vw; }
  .cup-road-screen { min-height: 100dvh; }
  .cup-road-hud { align-items: flex-start; padding: 12px 14px; }
  .cup-road-hud > strong { gap: 9px; font-size: 17px; }
  .cup-road-hud .season-flag,
  .cup-road-hud .season-flag-img { width: 32px; height: 22px; font-size: 22px; }
  .cup-road-route {
    width: 100%;
    min-height: 560px;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 96px;
    align-content: start;
    gap: 4px 44px;
    padding: 14px 20px 150px;
  }
  .cup-road-path { display: none; }
  .cup-road-node { --road-offset: 0 !important; }
  .cup-road-node:nth-child(4n + 3) { grid-column: 2; }
  .cup-road-node:nth-child(4n + 4) { grid-column: 1; grid-row: auto; }
  .cup-road-card { width: 72px; }
  .cup-road-node[data-match-number="8"] .cup-road-card { width: 86px; }
  .cup-road-node[data-match-number="8"] > b { font-size: 13px; }
  .cup-road-node[data-match-number="8"] > span { font-size: 10px; }
  .cup-road-node > b { font-size: 12px; }
  .cup-road-node > span { font-size: 10px; }
  .cup-road-callout {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .cup-road-next-crest { width: 58px; height: 54px; font-size: 32px; }
  .cup-road-callout strong { font-size: 17px; }
  .cup-road-callout .again { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .cup-road-callout.is-action-only {
    left: 50%;
    right: auto;
    bottom: 12px;
    width: auto;
    display: block;
    padding: 0;
    transform: translateX(-50%);
  }
  .cup-road-callout.is-action-only .again { width: auto; min-width: 190px; min-height: 50px; padding: 11px 24px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .cup-road-node,
  .cup-road-node.is-current .cup-road-card,
  .cup-road-screen.is-first-visit .cup-road-hud,
  .cup-road-screen.is-first-visit .cup-road-path,
  .cup-road-screen.is-first-visit .cup-road-callout.is-action-only {
    opacity: 1;
    pointer-events: auto;
    clip-path: none;
    animation: none !important;
    filter: none;
  }
}
