.team-games-section {
  position: relative;
  isolation: isolate;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0 clamp(1.4rem, 3vw, 2rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.team-games-section::before {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: calc(100vw - 248px);
  background: var(--team-paper);
  box-shadow: 0 14px 22px -20px rgba(15, 23, 42, .3);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.sidebar-collapsed .team-games-section::before {
  width: calc(100vw - 68px);
}

.team-games-section > .team-panel__header {
  align-items: baseline;
  flex-direction: row;
  gap: .75rem;
}

.team-games-section .team-panel__counter {
  padding: 0;
  border-radius: 0;
  color: var(--team-muted);
  background: transparent;
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
}

.team-game-row__date strong {
  font-size: 1.45rem;
}

.team-game-row__result strong {
  font-size: 1.4rem;
}

.team-game-row--gold,
.team-game-row--silver,
.team-game-row--bronze {
  --team-game-podium-accent: #d09100;
  --team-game-podium-deep: #765000;
  --team-game-podium-surface: #fff3bf;
  --team-game-podium-shadow: rgba(190, 132, 0, .16);
  min-height: 134px;
  border-width: 2px;
  border-color: rgba(208, 145, 0, .42);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 205, 69, .3), transparent 10rem),
    linear-gradient(112deg, #fff8da, #fff 58%, #fff2ba);
  box-shadow: 0 14px 32px var(--team-game-podium-shadow);
}

.team-game-row--gold:nth-child(even),
.team-game-row--silver:nth-child(even),
.team-game-row--bronze:nth-child(even) {
  width: 100%;
  margin-left: 0;
}

.team-game-row--silver {
  --team-game-podium-accent: #718099;
  --team-game-podium-deep: #48566c;
  --team-game-podium-surface: #e8edf5;
  --team-game-podium-shadow: rgba(78, 96, 124, .14);
  border-color: rgba(113, 128, 153, .4);
  background:
    radial-gradient(circle at 92% 12%, rgba(168, 184, 209, .26), transparent 10rem),
    linear-gradient(112deg, #f0f4f9, #fff 58%, #e9eef5);
}

.team-game-row--bronze {
  --team-game-podium-accent: #ac6740;
  --team-game-podium-deep: #754124;
  --team-game-podium-surface: #f5d9c8;
  --team-game-podium-shadow: rgba(137, 76, 42, .15);
  border-color: rgba(172, 103, 64, .4);
  background:
    radial-gradient(circle at 92% 12%, rgba(210, 133, 87, .24), transparent 10rem),
    linear-gradient(112deg, #fbe8dd, #fff 58%, #f4d7c6);
}

.team-game-row--gold::before,
.team-game-row--silver::before,
.team-game-row--bronze::before {
  background: var(--team-game-podium-accent);
}

.team-game-row--gold::after,
.team-game-row--silver::after,
.team-game-row--bronze::after {
  position: absolute;
  right: 8%;
  bottom: -88px;
  width: 180px;
  height: 180px;
  border: 24px solid var(--team-game-podium-accent);
  border-radius: 50%;
  content: "";
  opacity: .07;
  pointer-events: none;
}

.team-game-row--gold > *,
.team-game-row--silver > *,
.team-game-row--bronze > * {
  position: relative;
  z-index: 1;
}

.team-game-row--gold:hover,
.team-game-row--silver:hover,
.team-game-row--bronze:hover {
  border-color: var(--team-game-podium-accent);
  color: var(--team-ink);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--team-game-podium-accent) 22%, transparent), transparent 10rem),
    linear-gradient(112deg, color-mix(in srgb, var(--team-game-podium-surface) 70%, white), #fff 58%, var(--team-game-podium-surface));
  box-shadow: 0 19px 40px var(--team-game-podium-shadow);
}

.team-game-row__status--podium {
  color: #fff;
  border-color: var(--team-game-podium-deep);
  background: var(--team-game-podium-deep);
  letter-spacing: .055em;
  text-transform: uppercase;
  box-shadow: 0 5px 12px var(--team-game-podium-shadow);
}

.team-game-row--gold .team-game-row__result strong,
.team-game-row--silver .team-game-row__result strong,
.team-game-row--bronze .team-game-row__result strong {
  color: var(--team-game-podium-deep);
}

@media (max-width: 991.98px) {
  .team-games-section::before {
    width: 100vw;
  }
}

@media (max-width: 767.98px) {
  .team-games-section {
    margin-inline: calc(-1 * clamp(.75rem, 2vw, 2rem));
    padding-inline: clamp(.75rem, 2vw, 2rem);
  }
}

@media (max-width: 419.98px) {
  .team-game-row__date strong {
    font-size: 1.3rem;
  }
}
