.language-selector {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
}
.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #f5f8ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.language-trigger:hover,
.language-selector.is-open .language-trigger {
  border-color: #82a9f9;
  background: #edf3ff;
}
.language-trigger svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.language-trigger .language-chevron {
  width: 11px;
  height: 11px;
  transition: transform .18s ease;
}
.language-selector.is-open .language-chevron {
  transform: rotate(180deg);
}
.language-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 222px;
  max-width: calc(100vw - 24px);
  max-height: min(455px, calc(100dvh - 90px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #d4e2f6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 45px #0c275233;
  color: var(--navy);
}
.language-popover[hidden] {
  display: none;
}
.language-popover-title {
  margin: 3px 8px 7px;
  color: #6d7e9b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.language-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}
.language-option:hover:not(:disabled),
.language-option.is-current {
  background: #e8f0ff;
  color: #174de1;
}
.language-option.is-pending {
  color: #63728b;
  cursor: not-allowed;
}
.language-option-status {
  color: #8190aa;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.language-option.is-current .language-option-status {
  color: #225cf1;
  font-size: 13px;
}
.invite-page .language-trigger {
  min-height: 40px;
  border-color: #ffffff39;
  background: #ffffff10;
  color: #fff;
}
.invite-page .language-trigger:hover,
.invite-page .language-selector.is-open .language-trigger {
  border-color: #a8c7ff;
  background: #ffffff1e;
}
.invite-page .language-popover {
  border-color: #7899d155;
  background: #102044;
  box-shadow: 0 20px 45px #020c26a6;
  color: #f5f8ff;
}
.invite-page .language-popover-title,
.invite-page .language-option-status {
  color: #9db5da;
}
.invite-page .language-option:hover:not(:disabled),
.invite-page .language-option.is-current {
  background: #213a72;
  color: #fff;
}
.invite-page .language-option.is-pending {
  color: #b8c8e1;
}
.invite-page .language-option.is-current .language-option-status {
  color: #8fdcff;
}
@media (max-width: 680px) {
  .topbar .language-trigger {
    min-height: 32px;
    gap: 3px;
    padding: 5px 6px;
    font-size: 11px;
  }
  .topbar .language-globe {
    display: none;
  }
  .topbar .language-popover {
    right: -60px;
  }
  .invite-page .language-trigger {
    min-height: 36px;
    gap: 4px;
    padding: 6px 8px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-trigger .language-chevron {
    transition: none;
  }
}
/* Shared presentation components. */
.featured-games {
  margin: 18px 0 42px;
}
.featured-games__title {
  margin: 0 0 8px;
  color: var(--navy);
  font: 800 clamp(22px, 2.2vw, 30px) / 1.2 Montserrat, Inter, sans-serif;
  letter-spacing: -.035em;
}
.featured-games__track {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  align-items: start;
  gap: 20px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 2px 19px;
  scrollbar-width: thin;
  scrollbar-color: #9fb6d7 transparent;
}
.featured-games__track:focus-visible {
  outline-offset: -2px;
}
.featured-game {
  --game-depth: #752d9e;
  --game-fade: #7430aee6;
  position: relative;
  width: 100%;
  aspect-ratio: 163 / 227;
  margin: 0;
  color: #fff;
  isolation: isolate;
  filter: drop-shadow(0 6px 7px #050d2073);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.featured-game::before,
.featured-game__face {
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}
.featured-game::before {
  position: absolute;
  inset: 0;
  background: var(--game-depth);
  content: "";
}
.featured-game__face {
  margin: 0;
  position: absolute;
  inset: 0 0 8px;
  overflow: hidden;
  background: #223969;
}
.featured-game__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-game__kind {
  position: absolute;
  top: 9px;
  left: 7px;
  padding: 5px 7px;
  background: #b817d0;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.featured-game__caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  height: 58%;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(transparent, var(--game-fade) 82%);
  text-align: center;
  text-transform: uppercase;
}
.featured-game__line {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.045em;
  text-shadow: 0 1px 3px #0713278c;
}
.featured-game__line--first {
  font-size: clamp(15px, 1.35vw, 20px);
}
.featured-game__provider {
  padding: 6px 3px 9px;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.1;
  opacity: .86;
}
.featured-game__play {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.featured-game__button {
  display: grid;
  min-width: 76px;
  min-height: 52px;
  place-items: center;
  padding: 12px 18px;
  background: linear-gradient(155deg, #4dbdf9, #225cf1 68%, #1745c5);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: scale(.9);
  transition: opacity 200ms ease, transform 240ms ease;
}
.featured-game__play:focus-visible {
  outline: 2px solid #8bdfff;
  outline-offset: -3px;
}
.featured-game:focus-within {
  transform: translateY(-10px);
}
.featured-game:focus-within .featured-game__button {
  opacity: 1;
  transform: scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .featured-game:hover { transform: translateY(-10px); }
  .featured-game:hover .featured-game__button { opacity: 1; transform: scale(1); }
}
@media (hover: none) {
  .featured-game__button { opacity: 1; transform: none; }
}
@media (max-width: 680px) {
  .featured-games { margin-top: 30px; padding-inline: 12px; }
  .featured-games__track { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-socials a { transition: none; }
  .footer-socials a:hover { transform: none; }
  .featured-game,
  .featured-game__button { transition: none; }
  .featured-game:hover,
  .featured-game:focus-within { transform: none; }
}

