.compact-topbar.game-topbar {
  height: 48px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.compact-home {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #55d5ff;
  opacity: 0.75;
}
.compact-topbar .resource-chip {
  display: none;
}
.compact-topbar + .game-shell .game-stage {
  padding-top: 8px;
}
.play-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px !important;
  border: 1px solid #406581;
  border-radius: 9px;
  padding: 5px 12px 5px 7px;
  background: linear-gradient(#244b68, #142c45);
  box-shadow: 0 3px #020b17;
  color: #b6edff;
  font-size: 11px;
  min-height: 34px;
}
.play-back > span {
  display: grid;
  place-items: center;
  background: #10354c;
  border-radius: 6px;
  width: 22px;
  height: 23px;
  font-size: 26px;
  line-height: 1;
}
.match-league-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.match-league-symbol img,
.match-league-symbol svg {
  width: 28px;
  height: 22px;
  object-fit: contain;
}
.team-fixture-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.score-league {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 12px;
}
.personal-avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: radial-gradient(at 30% 20%, #3c749d, #152e50);
  border: 2px solid #8edbff;
  border-radius: 50%;
  box-shadow:
    0 4px #03101f,
    inset 0 2px #c2e7ff44;
}
.personal-avatar svg {
  width: 38px;
  height: 38px;
  color: #caefff;
}
.identity-title + .button .team-logo,
.identity-title + .button > svg {
  width: 27px;
  height: 27px;
  object-fit: contain;
}
.compact-squad-card > .team-logo,
.compact-squad-card > svg,
.compact-squad-card > .badge {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
}
.compact-squad-card {
  min-height: 162px !important;
}
.league-focus .heading.league-banner-heading {
  position: relative;
  isolation: isolate;
  padding: 12px;
  margin: 0 0 10px;
  min-height: 0;
  overflow: hidden;
  border-radius: 13px;
}
.league-banner-heading.has-banner {
  min-height: 148px !important;
  align-items: flex-end;
  border: 1px solid #42617b;
  background: #0c2135;
}
.league-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.league-banner-heading.has-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #07172af5, transparent 95%);
  z-index: -1;
}
.league-focus .rsl-title {
  gap: 12px;
}
.league-focus .rsl-title h1 {
  font-size: 21px;
  line-height: 1.15;
}
.league-social-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.league-social-actions .button {
  font-size: 11px;
  min-height: 36px;
}
.registration-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #ffd18b;
}
.league-notice {
  flex-basis: 100%;
  font-size: 12px;
  margin: 0;
  padding: 10px;
  background: #203d56;
  border-radius: 8px;
}
.league-focus .league-mini-stats {
  margin: 10px 0;
  padding: 0;
  border: 0;
}
.presentation-settings {
  margin-top: 20px;
}
.presentation-settings > h3 {
  margin-bottom: 12px;
}
.presentation-settings > p {
  font-size: 12px;
}
.presentation-settings .settings-switch {
  margin: 8px 0;
}
.presentation-settings .button {
  margin-right: 8px;
}
.match-hub {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hub-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hub-heading h1 {
  font-size: 30px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 5px 0 0;
}
.hub-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.hub-tabs {
  display: flex;
  background: #071a2e;
  border: 1px solid #294c68;
  border-radius: 9px;
  padding: 3px;
  gap: 4px;
}
.hub-tabs button {
  flex: 1;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #a8bed4;
  font-weight: 700;
  font-size: 12px;
}
.hub-tabs button[aria-pressed="true"] {
  background: #285676;
  color: #d8f5ff;
  box-shadow: inset 0 1px #5a91ad;
}
.hub-match {
  border: 1px solid #487191;
  background: linear-gradient(145deg, #1d4563, #0c213a);
  border-radius: 15px;
  overflow: hidden;
  padding: 0 14px 14px;
  box-shadow: 0 4px #020c1b;
}
.hub-league {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 11px;
}
.hub-league b {
  min-width: 0;
  flex: 1;
}
.hub-league small {
  font-size: 9px;
  color: #90d8f3;
}
.hub-art {
  height: clamp(36px, 12dvh, 100px);
  background: url("assets/rsl-arena-banner.png") center 38% / cover;
  border-radius: 8px;
  opacity: 0.85;
}
.hub-rivals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px 0 0;
}
.hub-rivals > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hub-rivals > a > .team-logo,
.hub-rivals > a > svg,
.hub-rivals > a > .badge {
  width: 58px;
  height: 58px;
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}
.hub-rivals > strong {
  color: #ffd18d;
  font-size: 22px;
  font-style: italic;
  text-align: center;
}
.hub-time {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin: 14px 0 !important;
  color: #c5e6f8;
}
.hub-match > .button {
  width: 100%;
  min-height: 42px;
}
.hub-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.hub-pagination .button {
  min-width: 44px;
  min-height: 38px;
  font-size: 24px;
  padding: 0 10px;
}
.hub-pagination > span {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}
.hub-pagination small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #aac1d6;
  margin-top: 2px;
}
.hub-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hub-shortcuts .button {
  font-size: 11px;
}
.hub-stage {
  padding-top: 6px !important;
}
.hub-page .game-shell {
  padding-bottom: 100px;
}
.hub-page .game-stage {
  animation: none;
}
.button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
@media (max-width: 600px) {
  .compact-topbar.game-topbar {
    height: 44px;
    padding-inline: 16px;
  }
  .compact-topbar .game-icon-button {
    width: 34px;
    height: 34px;
  }
  .game-stage.league-focus {
    padding-top: 0;
  }
  .league-focus .rsl-title h1 {
    font-size: 19px;
  }
  .league-focus .rsl-title > img {
    width: 42px;
    height: 42px;
  }
  .match-hub {
    gap: 10px;
  }
  .hub-page .game-stage {
    padding-inline: 16px;
    padding-bottom: 8px;
  }
  .hub-page .game-shell {
    padding-bottom: 86px;
  }
  .hub-heading h1 {
    font-size: 26px;
  }
  .hub-league {
    font-size: 10px;
  }
  .hub-rivals > a {
    font-size: 12px;
  }
  .hub-art {
    height: clamp(26px, 10dvh, 80px);
  }
  .league-focus .heading.has-banner {
    min-height: 124px !important;
  }
}
@media (max-height: 720px) {
  .hub-art {
    height: 28px;
  }
  .match-hub {
    gap: 8px;
  }
  .hub-rivals > a > .team-logo,
  .hub-rivals > a > svg,
  .hub-rivals > a > .badge {
    width: 46px;
    height: 46px;
  }
  .hub-rivals {
    padding-top: 9px;
  }
  .hub-rivals > a {
    gap: 5px;
  }
  .hub-time {
    margin: 9px 0 !important;
  }
  .hub-match {
    padding-bottom: 10px;
  }
  .hub-shortcuts .button {
    min-height: 36px;
  }
  .hub-heading h1 {
    font-size: 24px;
  }
}
@media (max-height: 570px) {
  .hub-art {
    display: none;
  }
  .hub-shortcuts {
    display: none;
  }
  .hub-heading .eyebrow {
    display: none;
  }
  .hub-heading h1 {
    font-size: 21px;
  }
  .hub-league {
    padding: 6px 0;
  }
  .hub-rivals > a > .team-logo,
  .hub-rivals > a > svg {
    width: 38px;
    height: 38px;
  }
  .hub-rivals {
    padding-top: 4px;
  }
  .hub-match > .button {
    min-height: 36px;
  }
  .hub-tabs button {
    min-height: 28px;
  }
  .match-hub {
    gap: 6px;
  }
}
.hub-match-list {
  display: grid;
  gap: 16px;
  padding: 3px 0 12px;
}
.match-list-card.hub-match {
  display: block;
  position: relative;
  isolation: isolate;
  min-height: 235px;
  padding: 12px 18px 16px;
  color: #f0f7ff;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.match-list-card .match-card-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.65;
  animation: match-banner-in 0.65s ease-out both;
}
.match-list-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #07172ada 0%,
    #10233960 40%,
    #07172aee 100%
  );
}
.match-list-card:hover,
.match-list-card:focus-visible {
  border-color: #77dfff;
  box-shadow:
    0 0 0 2px #77dfff44,
    0 6px 22px var(--nexus-color-0008);
  outline: none;
}
.match-list-card .hub-rivals {
  padding: 18px 0;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
}
.hub-match-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.match-card-wrap {
  position: relative;
}
.match-stream-icon {
  display: grid;
  place-items: center;
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  width: 30px;
  height: 30px;
  pointer-events: none;
  color: #c4a5ff;
}
.match-stream-icon svg {
  width: 28px;
  height: 28px;
}
.match-state-badge {
  padding: 5px 12px;
  border: 1px solid #70cfff66;
  border-radius: 20px;
  background: #102e46;
  color: #bde9ff;
  font-size: 12px;
  font-weight: 800;
}
.match-list-card.is-played {
  border-color: #79dcb0;
}
.is-played .match-state-badge {
  border-color: #79dcb0;
  background: #164638;
  color: #c5ffe3;
}
.match-list-card .hub-score {
  font-style: normal;
}
.match-list-card .hub-score.has-result {
  padding: 10px 4px;
  color: #fff0ce;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px #000;
}
.hub-score .score-digits {
  white-space: nowrap;
}
.hub-score small {
  display: block;
  margin-top: 8px;
  color: #bdebd3;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.match-list-card .hub-rivals > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 14px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.match-list-card .hub-rivals > div > .team-logo,
.match-list-card .hub-rivals > div > svg,
.match-list-card .hub-rivals > div > .badge {
  width: 62px;
  height: 62px;
  max-width: 62px;
  max-height: 62px;
  object-fit: contain;
}
.match-list-card .hub-time {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #ffda98;
  background: #071527c9;
  border: 1px solid #e9b86166;
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0 0 !important;
}
.match-list-card .hub-time svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.match-list-card .hub-time span {
  flex: 1;
  text-align: left;
}
@keyframes match-banner-in {
  from {
    opacity: 0;
    transform: scale(1.035);
  }
  to {
    opacity: 0.65;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .match-list-card .match-card-banner {
    animation: none;
  }
  .match-list-card {
    transition: none;
  }
}
@media (max-width: 420px) {
  .match-list-card .hub-rivals {
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  }
  .match-list-card .hub-score.has-result {
    font-size: 36px;
  }
  .match-list-card.hub-match {
    padding: 9px 12px 12px;
  }
  .match-list-card .hub-league {
    flex-wrap: wrap;
  }
  .match-list-card .hub-time {
    font-size: 14px;
  }
}

/* Compact match header and personal action notice. */
.match-list-card .hub-league {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
}
.match-list-card .match-card-date {
  text-align: center;
  font-size: clamp(12px, 2.8vw, 16px);
  font-weight: 800;
  color: #f0f7ff;
}
.match-list-card .hub-rivals > div > .team-logo,
.match-list-card .hub-rivals > div > svg,
.match-list-card .hub-rivals > div > .badge {
  width: clamp(80px, 22vw, 104px);
  height: clamp(80px, 22vw, 104px);
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
}
.match-list-card .match-action-notice {
  display: table;
  width: auto;
  min-width: 150px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 8px auto 6px;
  padding: 10px 24px;
  border: 2px solid #e1baff;
  border-bottom-color: #8c40d0;
  border-radius: 10px;
  background: linear-gradient(180deg, #c77bff 0%, #ab4cef 48%, #9134d6 49%, #a442e6 100%);
  box-shadow: inset 0 2px 0 #f2d7ff99, 0 5px 0 #54217d, 0 7px 0 #190c2c, 0 8px 12px #0006;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 2px 0 #59247d;
  text-align: center;
  transition: transform .12s, filter .12s;
}
.match-list-card:hover .match-action-notice,
.match-list-card:focus-visible .match-action-notice { filter: brightness(1.12); }
.match-list-card:active .match-action-notice { transform: translateY(3px); }

/* Reduce vertical space while retaining the larger team logos. */
.match-list-card.hub-match { min-height: 0; padding-top: 6px; padding-bottom: 10px; }
.match-list-card .hub-league { padding: 5px 0; }
.match-list-card .hub-match-status { margin-top: 3px; }
.match-list-card .hub-rivals { padding: 8px 0 2px; }
.match-list-card .hub-rivals > div { gap: 5px; }

.shared-match-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 600px; margin-inline: auto; width: 100%; box-sizing: border-box; }
.shared-match-list .match-card-wrap[hidden], .shared-match-list .calm-empty[hidden] { display: none !important; }
.shared-match-list .hub-tabs { margin: 0; }
.shared-match-list .match-card-wrap { min-width: 0; }
.shared-match-list .hub-match { margin: 0; }

/* Shared blue card frames: a thicker edge with a slow travelling highlight. */
:is(.match-list-card.hub-match, .league-game-card, .squad-card, .versus-card, .placement-card) {
  position: relative;
  border-width: 2px;
  border-color: #5487aa;
}
:is(.match-list-card.hub-match, .league-game-card, .squad-card, .versus-card, .placement-card)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(115deg, #5487aa 25%, #78b9d9 43%, #e0f7ff 50%, #78b9d9 57%, #5487aa 75%);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: nexus-frame-shine 7s ease-in-out infinite;
}
@keyframes nexus-frame-shine {
  0%, 15% { background-position: 100% 0; }
  70%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.match-list-card.hub-match, .league-game-card, .squad-card, .versus-card, .placement-card)::after {
    animation: none;
    background-position: 100% 0;
  }
}

/* League signature outside the card, matching the shared glass edge. */
.match-card-wrap:has(> .fixture-league-edge) { padding-left: 28px; }
.fixture-league-edge {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 34px;
  border: 2px solid #5487aa;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(110deg, #173a55cc, #0b2238dd);
  box-shadow: inset 1px 0 #d6f4ff70;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.fixture-league-signature {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 190px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  color: #f0f7ff;
  z-index: 4;
}
.fixture-league-signature .match-league-symbol {
  flex: 0 0 29px;
  width: 29px;
  height: 25px;
  display: grid;
  place-items: center;
}
.fixture-league-signature .match-league-symbol :is(img, svg) {
  width: 29px;
  height: 25px;
  object-fit: contain;
}
.fixture-league-signature > span:not(.match-league-symbol) { display: grid; gap: 1px; min-width: 0; }
.fixture-league-signature b { font-size: 12px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fixture-league-signature small { font-size: 10px; line-height: 1.1; color: #b6d8eb; white-space: nowrap; }
@media (max-width: 500px) {
  .match-card-wrap:has(> .fixture-league-edge) { padding-left: 25px; }
  .fixture-league-edge { width: 30px; }
  .fixture-league-signature { max-width: 150px; gap: 5px; }
  .fixture-league-signature b { font-size: 10px; }
  .fixture-league-signature small { font-size: 8px; }
  .fixture-league-signature .match-league-symbol { flex-basis: 24px; }
  .fixture-league-signature .match-league-symbol :is(img, svg) { width: 24px; }
}

/* Widened glass rim stays inside the clipped, rounded card. */
.match-list-card.hub-match:has(> .fixture-league-edge) {
  border: 2px solid #5487aa;
  padding-left: 48px;
}
.match-list-card.hub-match:has(> .fixture-league-edge)::after {
  left: 0;
  padding-left: 34px;
  opacity: .55;
}
.match-list-card > .fixture-league-edge {
  left: 0;
  top: 0;
  bottom: 0;
  width: 34px;
  border: 0;
  border-right: 1px solid #daf5ff65;
  border-radius: 0;
  background: linear-gradient(90deg, #e0f8ff42 0%, #a5ddff18 18%, #10334b38 52%, #c2edff38 86%, #f0fbff55 100%);
  backdrop-filter: blur(8px) saturate(1.35);
  -webkit-backdrop-filter: blur(8px) saturate(1.35);
  box-shadow: inset 2px 0 3px #e9faff60, inset -2px 0 4px #05152765;
  z-index: 3;
}
.fixture-league-signature { z-index: 4; text-shadow: 0 1px 3px #061423; }
@media (max-width: 500px) {
  .match-list-card.hub-match:has(> .fixture-league-edge) { padding-left: 40px; }
  .match-list-card.hub-match:has(> .fixture-league-edge)::after { padding-left: 30px; }
  .match-list-card > .fixture-league-edge { width: 30px; }
}

/* More legible vertical league branding. */
.match-list-card.hub-match:has(> .fixture-league-edge) { padding-left: 56px; }
.match-list-card > .fixture-league-edge { width: 42px; }
.match-list-card.hub-match:has(> .fixture-league-edge)::after { padding-left: 42px; }
.fixture-league-signature { max-width: 210px; gap: 9px; }
.fixture-league-signature .match-league-symbol { flex-basis: 40px; width: 40px; height: 32px; }
.fixture-league-signature .match-league-symbol :is(img, svg) { width: 40px; height: 32px; }
.fixture-league-signature b { font-size: 14px; font-weight: 800; color: #fff; }
.fixture-league-signature small { font-size: 11px; font-weight: 600; color: #e4f5ff; }
@media (max-width: 500px) {
  .match-list-card.hub-match:has(> .fixture-league-edge) { padding-left: 48px; }
  .match-list-card > .fixture-league-edge { width: 38px; }
  .match-list-card.hub-match:has(> .fixture-league-edge)::after { padding-left: 38px; }
  .fixture-league-signature { max-width: 180px; gap: 7px; }
  .fixture-league-signature .match-league-symbol { flex-basis: 34px; width: 34px; height: 28px; }
  .fixture-league-signature .match-league-symbol :is(img, svg) { width: 34px; height: 28px; }
  .fixture-league-signature b { font-size: 12px; }
  .fixture-league-signature small { font-size: 10px; }
}

/* Anchor the rotated logo and league text to the bottom of the glass rim. */
.fixture-league-signature {
  top: auto;
  bottom: 12px;
  left: 50%;
  transform-origin: 0 50%;
  transform: translateY(50%) rotate(-90deg);
}

/* Center season independently while keeping the emblem at the bottom. */
.fixture-league-signature {
  inset: 0;
  width: 100%;
  max-width: none;
  transform: none;
  display: block;
}
.fixture-league-signature .match-league-symbol {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) rotate(-90deg);
}
.fixture-league-signature > span:not(.match-league-symbol) {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.fixture-league-signature .match-league-symbol {
  top: auto;
  bottom: 12px;
}

/* Subdued glass at rest, original brightness on hover and keyboard focus. */
.match-list-card.hub-match:has(> .fixture-league-edge) { border-color: #385f7c; }
.match-list-card.hub-match:has(> .fixture-league-edge)::after {
  opacity: .28;
  transition: opacity .2s ease;
}
.match-list-card > .fixture-league-edge {
  background: linear-gradient(90deg, #b9e4ff24 0%, #85badd0d 18%, #071e364d 52%, #91badf20 86%, #c6eaff32 100%);
  box-shadow: inset 2px 0 3px #c4e6ff32, inset -2px 0 4px #05152785;
  border-right-color: #a0c7df38;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.match-list-card.hub-match:has(> .fixture-league-edge):is(:hover, :focus-visible) { border-color: #77dfff; }
.match-list-card.hub-match:has(> .fixture-league-edge):is(:hover, :focus-visible)::after { opacity: .55; }
.match-list-card:is(:hover, :focus-visible) > .fixture-league-edge {
  background: linear-gradient(90deg, #e0f8ff42 0%, #a5ddff18 18%, #10334b38 52%, #c2edff38 86%, #f0fbff55 100%);
  box-shadow: inset 2px 0 3px #e9faff60, inset -2px 0 4px #05152765;
  border-right-color: #daf5ff65;
}

/* Result colours belong to the glass, viewed from the player's team. */
.match-list-card.frame-open { --frame-rgb: 175 100 235; }
.match-list-card.frame-won { --frame-rgb: 60 203 133; }
.match-list-card.frame-lost { --frame-rgb: 233 83 105; }
.match-list-card.frame-draw, .match-list-card.frame-neutral { --frame-rgb: 84 135 170; }
.match-list-card.hub-match:has(> .fixture-league-edge) { border-color: rgb(var(--frame-rgb) / .6); }
.match-list-card.hub-match:has(> .fixture-league-edge)::after {
  background-image: linear-gradient(115deg, rgb(var(--frame-rgb)) 25%, rgb(var(--frame-rgb) / .8) 43%, #effaff 50%, rgb(var(--frame-rgb) / .8) 57%, rgb(var(--frame-rgb)) 75%);
}
.match-list-card > .fixture-league-edge {
  background: linear-gradient(90deg, rgb(var(--frame-rgb) / .3), rgb(var(--frame-rgb) / .1) 20%, #071e364d 52%, rgb(var(--frame-rgb) / .22) 86%, rgb(var(--frame-rgb) / .4));
  border-right-color: rgb(var(--frame-rgb) / .4);
}
.match-list-card.hub-match:has(> .fixture-league-edge):is(:hover, :focus-visible) {
  border-color: rgb(var(--frame-rgb));
  box-shadow: 0 0 0 2px rgb(var(--frame-rgb) / .25), 0 6px 22px #0008;
}
.match-list-card:is(:hover, :focus-visible) > .fixture-league-edge {
  background: linear-gradient(90deg, rgb(var(--frame-rgb) / .5), rgb(var(--frame-rgb) / .2) 20%, #10334b38 52%, rgb(var(--frame-rgb) / .4) 86%, #f0fbff55);
  border-right-color: rgb(var(--frame-rgb) / .7);
}

/* Oversized league watermark fades into the arena behind the match. */
.match-league-watermark {
  position: absolute;
  left: 35px;
  top: -20px;
  width: 72%;
  height: 110%;
  pointer-events: none;
  z-index: -1;
  opacity: .11;
  -webkit-mask-image: linear-gradient(110deg, #000 5%, #0009 45%, transparent 90%);
  mask-image: linear-gradient(110deg, #000 5%, #0009 45%, transparent 90%);
}
.match-league-watermark .match-league-symbol {
  display: flex;
  width: 100%;
  height: 100%;
}
.match-league-watermark .match-league-symbol :is(img, svg) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  transform: rotate(-12deg) scale(1.15);
}

/* A soft red tint ties the watermark to a lost match's glass rim. */
.match-list-card.frame-lost .match-league-watermark .match-league-symbol :is(img, svg) {
  filter: grayscale(1) sepia(1) saturate(2.8) hue-rotate(310deg);
}

/* Subtle result wash over the arena, below all match content. */
.match-list-card:is(.frame-won, .frame-lost)::before {
  background: linear-gradient(rgb(var(--frame-rgb) / .12), rgb(var(--frame-rgb) / .12)),
    linear-gradient(180deg, #07172ada 0%, #10233960 40%, #07172aee 100%);
}
.match-list-card.frame-won .match-league-watermark .match-league-symbol :is(img, svg) {
  filter: grayscale(1) sepia(1) saturate(2.8) hue-rotate(85deg);
}

/* Match actions share the translucent glass and moving reflection. */
.match-list-card .match-action-notice {
  position: relative;
  overflow: hidden;
  border: 2px solid rgb(var(--frame-rgb) / .75);
  background: linear-gradient(180deg, #effaff26, rgb(var(--frame-rgb) / .28) 48%, #08172a65 51%, rgb(var(--frame-rgb) / .2));
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 2px #f0faff70, inset 0 -1px 2px #020b2080, 0 3px 8px #0006;
  text-shadow: 0 1px 3px #080e28;
}
.match-action-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, #eefaff35 49%, #fff7 50%, #eefaff35 51%, transparent 60%);
  background-size: 300% 100%;
  animation: nexus-frame-shine 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .match-action-notice::before { animation: none; background-position: 100% 0; }
}

/* Independent phases and speeds avoid synchronized reflections. */
:is(.match-list-card.hub-match, .league-game-card, .squad-card, .versus-card, .placement-card)::after {
  animation-delay: var(--shine-delay, -1.7s);
  animation-duration: var(--shine-duration, 7.4s);
}
:is(.league-game-card, .squad-card, .versus-card, .placement-card):nth-child(3n+2) { --shine-delay: -4.3s; --shine-duration: 8.7s; }
:is(.league-game-card, .squad-card, .versus-card, .placement-card):nth-child(3n) { --shine-delay: -6.1s; --shine-duration: 6.8s; }
.match-action-notice::before {
  animation-delay: var(--action-shine-delay, -3.9s);
  animation-duration: var(--action-shine-duration, 8.3s);
}

/* Keep match cards equally tall; scheduling actions replace VS in the center. */
.hub-match-list { grid-auto-rows: auto; }
.match-card-wrap > .match-list-card { height: 100%; box-sizing: border-box; }
.match-list-card .hub-score .match-vote-center {
  display: block;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 9px 4px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .match-list-card .hub-score .match-vote-center { font-size: 12px; padding: 9px 2px; }
}

/* Upcoming fixture dates belong between the teams, after agreement. */
.match-list-card .hub-league:not(:has(.match-card-date)) { display: none; }
.match-list-card .hub-score .match-date-center {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #f0f7ff;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}
@media (max-width: 420px) {
  .match-list-card .hub-score .match-date-center { font-size: 13px; }
}

/* Compact fixtures: completed dates sit quietly beside the status. */
.match-list-card.hub-match {
  padding-top: 5px;
  padding-bottom: 7px;
}
.match-list-card .hub-match-status {
  min-height: 26px;
  margin-top: 0;
  gap: 7px;
}
.match-list-card .match-state-badge { padding: 3px 9px; font-size: 11px; }
.match-list-card .match-played-date {
  color: #b9cbd9;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
}
.match-list-card .hub-rivals { padding: 5px 0 0; }
.match-list-card .hub-rivals > div { gap: 4px; font-size: 13px; }
.match-list-card .hub-rivals > div > :is(.team-logo, svg, .badge) {
  width: clamp(64px, 18vw, 84px);
  height: clamp(64px, 18vw, 84px);
  max-height: 84px;
}
.match-list-card .hub-score.has-result { padding: 4px 2px; font-size: 38px; }
.match-list-card .hub-score small { margin-top: 4px; font-size: 9px; }
@media (max-width: 420px) {
  .match-list-card .match-played-date { font-size: 10px; }
  .match-list-card .hub-rivals > div { font-size: 12px; }
  .match-list-card .hub-score.has-result { font-size: 32px; }
}

/* Completed dates sit vertically at the lower right, outside the centered status. */
.match-list-card .match-played-date {
  position: absolute;
  right: 5px;
  bottom: 7px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
}
.match-list-card.is-played .hub-rivals { padding-right: 12px; }
@media (max-width: 420px) {
  .match-list-card .match-played-date { right: 4px; font-size: 9px; }
}

/* Free the right edge for the centered vertical date. */
.match-card-wrap > .match-stream-icon {
  left: 60px;
  right: auto;
}
.match-list-card .match-played-date {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
@media (max-width: 420px) {
  .match-card-wrap > .match-stream-icon { left: 51px; }
}

/* Reserve separate space for the season label and the league emblem. */
.fixture-league-signature > span:not(.match-league-symbol) {
  top: calc(50% - 17px);
}
.fixture-league-signature b {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  overflow: visible;
  color: #fff;
  text-shadow: 0 1px 3px #000, 0 0 5px #000;
}
.fixture-league-signature .match-league-symbol {
  bottom: 11px;
  width: 28px;
  height: 22px;
}
.fixture-league-signature .match-league-symbol :is(img, svg) {
  width: 28px;
  height: 22px;
}
@media (max-width: 500px) {
  .fixture-league-signature b { font-size: 13px; }
  .fixture-league-signature .match-league-symbol,
  .fixture-league-signature .match-league-symbol :is(img, svg) {
    width: 26px;
    height: 21px;
  }
}

/* Numeric completed-fixture dates remain readable on the vertical edge. */
.match-list-card .match-played-date { font-size: 12px; font-weight: 600; color: #e1edf5; }
@media (max-width: 420px) {
  .match-list-card .match-played-date { font-size: 11px; }
}

/* Smaller division subtitle beneath the season in the rotated league strip. */
.fixture-league-signature > span:not(.match-league-symbol) { text-align: left; justify-items: start; gap: 3px; }
.fixture-league-signature .fixture-division {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  color: #e4f5ff;
}
.match-list-card .match-played-date { opacity: .7; }
@media (max-width: 500px) {
  .fixture-league-signature .fixture-division { font-size: 9px; }
}

/* Clip the composited glass strip to the card's inner left corners on mobile. */
.match-list-card > .fixture-league-edge {
  border-radius: 13px 0 0 13px;
  overflow: hidden;
  clip-path: inset(0 round 13px 0 0 13px);
}
.match-list-card::before,
.match-list-card > .match-card-banner { border-radius: inherit; }

/* Pending vote count shares the purple task badge styling. */
.match-list-card .hub-score { position: relative; }
.match-vote-count {
  position: absolute;
  top: -9px;
  right: -8px;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  box-sizing: border-box;
  border: 1px solid #42235f;
  border-radius: 50%;
  background: #a54cda;
  color: white;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 1px 4px #0006;
}
.match-card-wrap > .match-stream-icon {
  display: flex;
  gap: 4px;
  width: auto;
  max-width: calc(50% - 110px);
  height: 24px;
  top: 5px;
}
.match-stream-icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.match-stream-icon .match-stream-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1.2;
}
@media (max-width: 500px) {
  .match-card-wrap > .match-stream-icon { max-width: calc(50% - 90px); gap: 3px; }
  .match-stream-icon .match-stream-name { padding: 3px 5px; font-size: 9px; }
  .match-stream-icon svg { width: 18px; height: 18px; }
}

.match-stream-icon .match-stream-name { background: #38204f; border-color: #b77ae8; color: #eed9ff; }
/* Spieltag and the clan schedule share the clan navigation's 720px column. */
#app .game-shell #game-stage.hub-stage{width:calc(100% - 24px);max-width:720px;box-sizing:border-box;margin-inline:auto;padding-inline:0!important}
#game-stage.hub-stage>.match-hub{width:100%;max-width:none;box-sizing:border-box;margin-inline:0}
#game-stage.hub-stage .hub-match-list,#game-stage.hub-stage .hub-tabs{width:100%;max-width:none;box-sizing:border-box}
#game-stage.clan-compact-header #clan-pane-schedule .shared-match-list{width:100%;max-width:none;box-sizing:border-box}
#app:has(#game-stage.hub-stage)>.game-topbar.dashboard-tools{width:calc(100% - 24px);max-width:720px;margin-inline:auto;padding-inline:0!important;box-sizing:border-box}

/* Dashboard filters are controlled by the central dock item. */
#game-stage.hub-stage>.match-hub>.hub-tabs{display:none}
