:root {
  --entry-accent: #f59b08;
  --entry-text: #ffffff;
  --entry-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.public-entry-body {
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--entry-text);
  background: #0d2234;
  opacity: 0;
  transition: opacity 260ms ease;
}

body.lobby-entry-body {
  overflow: hidden;
}

body.lobby-entry-body.is-lobby-loaded {
  overflow-y: auto;
  overflow-x: hidden;
}

body.public-entry-body.is-ready {
  opacity: 1;
}

.lobby-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7, 15, 24, 0.5), rgba(7, 15, 24, 0.72));
  transition: opacity 240ms ease, visibility 240ms ease;
}

.lobby-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lobby-loader__spinner {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(245, 155, 8, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  animation: lobby-spin 900ms linear infinite;
}

.entry-screen {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.entry-video-shell,
.entry-video,
.entry-video-overlay {
  position: absolute;
  inset: 0;
}

.entry-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-video--placeholder,
.entry-screen--lobby {
  background:
    linear-gradient(180deg, rgba(8, 18, 29, 0.2), rgba(8, 18, 29, 0.72)),
    radial-gradient(circle at top, rgba(120, 153, 183, 0.3), transparent 35%),
    #0d2234;
}

.entry-video-overlay {
  background: linear-gradient(180deg, rgba(10, 22, 34, 0.1), rgba(10, 22, 34, 0.52) 40%, rgba(10, 22, 34, 0.72));
}

.entry-video-overlay--lobby {
  background:
    linear-gradient(180deg, rgba(7, 15, 24, 0.28), rgba(7, 15, 24, 0.52) 34%, rgba(7, 15, 24, 0.74) 100%),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.06), transparent 30%);
}

.entry-centerpiece,
.lobby-header,
.lobby-cards-stage {
  position: relative;
  z-index: 1;
}

.entry-centerpiece {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 20px;
  text-align: center;
}

.entry-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.entry-brand-logo {
  max-width: min(480px, 68vw);
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.24));
}

.entry-brand-logo--lobby {
  max-width: min(432px, 53vw);
}

.entry-brand-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
}

.entry-language-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.entry-kicker {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.34);
}

.entry-language-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.entry-language-button,
.lobby-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--entry-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(245, 155, 8, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.entry-language-button:hover,
.lobby-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(245, 155, 8, 0.34);
  color: #fff;
  text-decoration: none;
}

.lobby-entry-body .entry-screen--lobby {
  --lobby-top-space: clamp(34px, 6vh, 64px);
  --lobby-logo-to-cards: clamp(10px, 1.8vh, 18px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  min-height: 100dvh;
  height: 100dvh;
  padding: var(--lobby-top-space) 20px 14px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.entry-video-shell--lobby {
  position: absolute;
  inset: 0;
}

.entry-video--lobby {
  filter: saturate(0.95) brightness(0.88);
}

.lobby-header {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: start;
  margin: 0 auto var(--lobby-logo-to-cards);
  pointer-events: none;
}

.lobby-cards-stage {
  width: min(1220px, 100%);
  min-height: 0;
  height: 100%;
  margin: 0 auto;
  display: grid;
  place-content: start center;
  gap: 16px;
  padding: 0 8px;
}

.lobby-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

.lobby-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  min-height: clamp(360px, 42vh, 448px);
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.74), rgba(8, 12, 16, 0.88));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  overflow: hidden;
  transition: none;
}

.lobby-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(240, 147, 0, 0.12), rgba(240, 147, 0, 0));
  pointer-events: none;
}

.lobby-card--left,
.lobby-card--center,
.lobby-card--right {
  transform: none;
}

.lobby-card-copy,
.lobby-card-actions {
  position: relative;
  z-index: 1;
}

.lobby-card-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  width: 100%;
}

.lobby-card-copy h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.55vw, 1.8rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.lobby-card-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.4;
}

.lobby-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1.38 / 1;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 30, 42, 0.98), rgba(10, 14, 20, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.lobby-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 82%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lobby-card-media.is-loading::after {
  opacity: 1;
  animation: lobby-shimmer 1.1s linear infinite;
}

.lobby-card-media img,
.lobby-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.lobby-card-media.is-loading video {
  opacity: 0;
}

.lobby-card-media.is-placeholder span {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.52);
}

.lobby-card-actions {
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
}

.lobby-card-button {
  justify-self: center;
  min-width: 120px;
  padding: 12px 24px;
  font-size: 0.92rem;
}

.lobby-surface {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(7, 15, 24, 0.72), rgba(7, 15, 24, 0.88)),
    radial-gradient(circle at top right, rgba(245, 155, 8, 0.14), transparent 30%);
  backdrop-filter: blur(8px);
}

.lobby-surface.is-hidden {
  display: none;
}

.lobby-surface__topbar {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.56);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.lobby-surface__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lobby-surface__button:hover,
.lobby-surface__button:focus-visible {
  border-color: rgba(240, 147, 0, 0.44);
  background: rgba(240, 147, 0, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.lobby-surface__button[aria-pressed="true"] {
  border-color: rgba(240, 147, 0, 0.44);
  background: rgba(240, 147, 0, 0.18);
}

.lobby-surface__button--icon {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.lobby-surface__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.lobby-surface__divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.lobby-surface__frame-wrap {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 12, 16, 0.82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.lobby-surface__frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
  background: rgba(0, 0, 0, 0.5);
}

.lobby-tour-picker {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at top left, rgba(240, 147, 0, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(8, 12, 16, 0.97), rgba(14, 20, 28, 0.96));
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lobby-tour-picker.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lobby-tour-picker__body {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.lobby-tour-picker__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 50svh;
  gap: 0;
  min-height: 100svh;
  align-content: stretch;
}

.lobby-tour-picker__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(240, 147, 0, 0.10), rgba(255, 255, 255, 0.04)),
    #121a22;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease;
}

.lobby-tour-picker__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.06) 0%, rgba(10, 14, 18, 0.16) 42%, rgba(8, 12, 16, 0.84) 100%);
  pointer-events: none;
}

.lobby-tour-picker__item:hover,
.lobby-tour-picker__item:focus-visible {
  outline: none;
}

.lobby-tour-picker__item:hover .lobby-tour-picker__item-media,
.lobby-tour-picker__item:focus-visible .lobby-tour-picker__item-media {
  transform: scale(1.03);
}

.lobby-tour-picker__item-media {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(240, 147, 0, 0.14), rgba(255, 255, 255, 0.04)),
    #121a22;
  background-size: cover;
  background-position: center;
  transition: transform 420ms ease;
}

.lobby-tour-picker__item-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 18px 22px 24px;
}

.lobby-tour-picker__item-body strong {
  display: block;
  font: inherit;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.is-lobby-surface-open .viewer-topbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.lobby-entry-body.is-lobby-surface-open {
  overflow: hidden;
}

body.lobby-entry-body.is-lobby-tour-picker-open {
  overflow: hidden;
}

.lobby-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-self: end;
  padding: 6px 16px 0;
  display: none;
}

.lobby-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

@media (max-width: 1200px) {
  .lobby-cards-stage {
    width: min(1020px, 100%);
    gap: 20px;
    padding-inline: 10px;
  }

  .lobby-card-grid {
    gap: 18px;
  }

  .lobby-card {
    min-height: 420px;
    padding: 14px 14px 16px;
  }
}

@keyframes lobby-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lobby-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-height: 920px) and (min-width: 961px) {
  .lobby-entry-body .entry-screen--lobby {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .lobby-header {
    margin-top: 5%;
  }

  .entry-brand-logo--lobby {
    max-width: min(396px, 49vw);
  }

  .lobby-card-grid {
    gap: 18px;
  }

  .lobby-card {
    min-height: 320px;
    padding: 14px 14px 16px;
  }

  .lobby-card-copy h2 {
    font-size: clamp(1.05rem, 1.3vw, 1.45rem);
  }

  .lobby-card-copy p {
    font-size: 0.8rem;
  }

  .lobby-footer {
    padding-bottom: 6px;
  }
}

@media (max-width: 960px) {
  body.lobby-entry-body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100dvh;
  }

  body.lobby-entry-body .entry-screen--lobby {
    min-height: 100dvh;
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
    grid-template-rows: auto auto auto;
  }

  .lobby-entry-body .entry-screen--lobby {
    padding-inline: 16px;
  }

  .lobby-cards-stage {
    width: min(460px, 100%);
    height: auto;
    padding-top: 12px;
  }

  .lobby-card-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
  }

  .lobby-card,
  .lobby-card--left,
  .lobby-card--center,
  .lobby-card--right,
  .lobby-card:hover,
  .lobby-card--left:hover,
  .lobby-card--center:hover,
  .lobby-card--right:hover {
    transform: none;
  }

  .lobby-card {
    min-height: 0;
    text-align: center;
  }

  .lobby-card-actions {
    justify-content: center;
  }

  .lobby-card-button {
    justify-self: center;
    width: 100%;
  }

  .lobby-surface {
    padding: 10px;
    gap: 8px;
  }

  .lobby-tour-picker__toolbar {
    top: 12px;
    right: 12px;
  }

  .lobby-tour-picker__list {
    grid-template-columns: 1fr;
    grid-auto-rows: 40svh;
  }

  .lobby-surface__topbar {
    justify-self: stretch;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    border-radius: 18px;
  }

  .lobby-surface__button:not(.lobby-surface__button--icon) {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .lobby-surface__button {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .lobby-surface__button--icon {
    width: 40px;
    min-width: 40px;
  }
}

@media (max-width: 640px) {
  .entry-centerpiece {
    gap: 34px;
    padding-inline: 16px;
  }

  .entry-brand-logo {
    max-width: min(340px, 82vw);
  }

  .entry-language-actions {
    width: 100%;
    gap: 12px;
  }

  .entry-language-button,
  .lobby-card-button {
    width: 100%;
  }

  .lobby-cards-stage {
    gap: 18px;
    padding: 12px 14px 36px;
  }

  .lobby-card {
    min-width: 0;
    padding: 24px 18px 22px;
    border-radius: 24px;
  }

  .lobby-footer p {
    text-align: center;
    font-size: 0.78rem;
  }
}