.modes {
  --modes-gap: 15px;
  --u: calc((100cqw - var(--modes-gap)) / 354);
  --card-radius: calc(39.854 * var(--u));
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--modes-gap);
  width: 100%;
  margin: 0 auto;
  font-family: var(--font-sf);
}

.GameCard {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: var(--card-radius);
  overflow: hidden;
  clip-path: inset(0 round var(--card-radius));
  isolation: isolate;
  will-change: transform;
  background: #1f1f1f;
  cursor: pointer;
  color: #fff;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.GameCard::before,
.GameCard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
}

.GameCard::before {
  box-shadow: var(--glass-dodge);
  mix-blend-mode: plus-lighter;
}

.GameCard::after {
  box-shadow: var(--glass-overlay);
  mix-blend-mode: overlay;
}

.GameCard--tall {
  grid-column: 2;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
  background: linear-gradient(180deg, #1f1a0f, #171717);
}

.GameCard:active {
  transform: scale(0.98);
}

.GameCard__art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.GameCard__layer,
.GameCard__glow {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
}

.GameCard__layer img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.GameCard__glow {
  border-radius: 50%;
  filter: blur(calc(var(--bl) * var(--u)));
}

.GameCard__text {
  position: absolute;
  left: calc(18.754 * var(--u));
  top: calc(var(--ty, 19) * var(--u));
  width: calc(139.49 * var(--u));
  display: flex;
  flex-direction: column;
  letter-spacing: -0.0938px;
  pointer-events: none;
}

.GameCard__title,
.GameCard__sub {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.GameCard__title {
  font-size: calc(16.411 * var(--u));
  font-weight: 590;
  line-height: calc(20 * var(--u));
  color: #fff;
}

.GameCard__sub {
  font-size: calc(14 * var(--u));
  font-weight: 510;
  line-height: calc(21.099 * var(--u));
  color: rgba(255, 255, 255, 0.33);
}

.GameCard--tall .GameCard__sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(41 * var(--u));
  white-space: pre-line;
  line-height: calc(15 * var(--u));
}

.GameCard__badge {
  position: absolute;
  left: calc(105 * var(--u));
  top: calc(140 * var(--u));
  width: calc(55 * var(--u));
  height: calc(26 * var(--u));
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}

.GameCard__badge::before,
.GameCard__badge-glass,
.GameCard__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.GameCard__badge::before {
  background: rgba(0, 0, 0, 0.45);
  mix-blend-mode: luminosity;
}

.GameCard__badge-glass {
  background: linear-gradient(119.61deg, #141414 39.413%, #6f6f6f 108.37%);
  box-shadow: var(--glass-dodge);
  mix-blend-mode: plus-lighter;
}

.GameCard__badge::after {
  box-shadow: var(--glass-overlay);
  mix-blend-mode: overlay;
}

.GameCard__badge-text {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  font-size: calc(14 * var(--u));
  font-weight: 590;
  letter-spacing: -0.0938px;
  color: #fff;
}
