.game-switcher {
  --switch-accent: #ef3f35;
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  justify-self: center;
  color: #fff;
}

.game-switcher summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.game-switcher summary::-webkit-details-marker {
  display: none;
}

.game-switcher summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  opacity: 0.75;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.game-switcher[open] summary {
  border-color: color-mix(in srgb, var(--switch-accent) 75%, white);
  background: rgba(255, 255, 255, 0.13);
}

.game-switcher[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.game-switcher-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(286px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 19px;
  background: rgba(4, 18, 57, 0.97);
  box-shadow: 0 24px 64px rgba(0, 7, 31, 0.46);
  backdrop-filter: blur(20px) saturate(1.15);
  transform: translateX(-50%);
}

.game-switcher-menu a {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  min-height: 60px;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 13px;
  color: #fff;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.game-switcher-menu a:hover,
.game-switcher-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.game-switcher-menu a[aria-current="page"] {
  background: color-mix(in srgb, var(--switch-accent) 20%, transparent);
}

.game-switcher-thumb {
  display: grid;
  height: 42px;
  place-items: center;
}

.game-switcher-thumb img {
  width: 72px;
  max-height: 42px;
  object-fit: contain;
}

.game-switcher-name {
  display: grid;
  gap: 4px;
}

.game-switcher-name strong {
  font-size: 0.82rem;
  line-height: 1.08;
}

.game-switcher-name small {
  color: rgba(218, 232, 255, 0.66);
  font-size: 0.61rem;
  font-weight: 700;
}

.game-switcher-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  line-height: 20px;
  text-align: center;
}

.game-switcher-menu a[aria-current="page"] .game-switcher-check {
  color: #fff;
  background: var(--switch-accent);
}

.game-switcher--two { --switch-accent: #3682ff; }
.game-switcher--xmas { --switch-accent: #d7193f; }

@media (min-width: 821px) {
  .site-header .game-switcher {
    grid-column: 2;
    justify-self: end;
    margin-right: 12px;
  }
}

@media (max-width: 620px) {
  .site-header {
    column-gap: 12px;
  }

  .site-header .brand {
    width: min(108px, 100%);
    min-width: 0;
  }

  .game-switcher summary {
    min-height: 40px;
    gap: 7px;
    padding-inline: 11px;
    font-size: 0.68rem;
  }

  .game-switcher-menu {
    left: auto;
    right: -62px;
    transform: none;
  }

  .site-header .game-switcher {
    margin-right: 2px;
  }
}

@media (max-width: 430px) {
  .site-header {
    column-gap: 9px;
  }

  .game-switcher-current {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 370px) {
  .game-switcher-current {
    max-width: 58px;
  }
}
