body {
  font-family: "Instrument Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.gateway-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  background-color: #f8f8f8;
}

.gateway-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 440px;
  background: linear-gradient(
    90deg,
    #f5faff 0%,
    #f5faff 17.79%,
    #f5faff 48.08%,
    #f5faff 82.69%,
    #f5faff 100%
  );

  filter: saturate(110%);
  opacity: 0.85;
}

.card.gateway-card,
.footer-container {
  max-width: 1064px;
}
.card.gateway-card .title,
.card.gateway-card .subtitle {
  text-align: center;
}

@media screen and (max-width: 425px) {
  .card.gateway-card {
    background-color: transparent;
  }
}
.gateway-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 12px;
  font-family: inherit;
  .card-item {
    max-width: 274px;
    min-height: 256px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 16px 16px;
    gap: 32px;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0px 0px 20px 0px #0000001a;

    .card-header {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: space-between;
      gap: 16px;
      font-size: 1.75rem;
      font-weight: 600;
      color: #101010;
    }
  }
  .card-header div {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  button {
    background-color: #dff0ff;
    color: #1976d2;
    padding: 20px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.125rem;
  }
  a {
    width: 100%;
  }
  img {
    align-self: center;
    width: 100%;
    max-width: 210px;
    max-height: 210px;
    height: 100%;
    object-fit: contain;
  }
}

@media screen and (max-width: 425px) {
  .gateway-list {
    grid-template-columns: 1fr;
    .card-item {
      max-width: 100%;
    }
  }
}

.back-link {
  color: #101010;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

body:has(#player-auth-dialog[open]) {
  overflow: hidden;
}

#player-auth-dialog {
  width: min(1120px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    overlay 220ms allow-discrete,
    display 220ms allow-discrete;
}

#player-auth-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  #player-auth-dialog[open] {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
}

#player-auth-dialog::backdrop {
  background: rgba(5, 7, 18, 0);
  backdrop-filter: blur(0);
  transition:
    background 220ms ease,
    backdrop-filter 220ms ease,
    overlay 220ms allow-discrete,
    display 220ms allow-discrete;
}

#player-auth-dialog[open]::backdrop {
  background: rgba(5, 7, 18, 0.82);
  backdrop-filter: blur(8px);
}

@starting-style {
  #player-auth-dialog[open]::backdrop {
    background: rgba(5, 7, 18, 0);
    backdrop-filter: blur(0);
  }
}

.auth-modal__dialog {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.auth-modal__header {
  min-height: 64px;
  padding: 14px 18px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  background: #111426;
}

.auth-modal__header-content {
  min-width: 0;
}

.auth-modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.auth-modal__status {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

#close-player-auth-dialog {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

#close-player-auth-dialog:hover {
  background: rgba(255, 255, 255, 0.2);
}

#close-player-auth-dialog:active {
  transform: scale(0.94);
}

#player-auth-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 0;
  background: #ffffff;
}

@media (max-width: 640px) {
  #player-auth-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .auth-modal__dialog {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #player-auth-dialog,
  #player-auth-dialog::backdrop,
  #close-player-auth-dialog {
    transition: none;
  }
}
