/* 7KS home games lobby: compact hero, category shortcuts, one row per game type.
   Mobile-first; tokens come from luminous.css. */

/* ---------- Compact hero ---------- */
.lobby-hero {
  display: grid; gap: 16px;
  padding: 20px 5vw 8px;
  background: var(--ivory);
}
.lobby-hero__copy { min-width: 0; }
.lobby-hero .eyebrow { margin-bottom: 8px; }
.lobby-hero h1 {
  margin: 0 0 8px; font: 400 clamp(28px, 8vw, 34px)/1.12 var(--serif);
  letter-spacing: -.03em; color: var(--ink);
}
html[lang^="zh"] .lobby-hero h1, html[lang="bn"] .lobby-hero h1, html[lang="th"] .lobby-hero h1 {
  font-family: var(--sans); font-weight: 650; letter-spacing: -.02em;
}
.lobby-hero__copy > p { margin: 0 0 12px; max-width: 42ch; color: rgba(10, 16, 39, .78); font-size: 15px; line-height: 1.45; }
/* Only verified facts: game count, bKash/Nagad deposit and withdrawal. */
.lobby-hero__facts { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.lobby-hero__facts li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font: 600 14px/1.4 var(--sans); }
.lobby-hero__check { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--ruby); }
.lobby-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.lobby-hero__actions .button {
  flex: 1 1 140px; min-height: 52px; padding: 0 20px;
  font-size: 13px; letter-spacing: .06em; text-align: center;
}
.lobby-hero__secondary { color: var(--ruby-deep); background: var(--pearl); border-color: var(--ruby-deep); }
.lobby-hero__secondary:hover { color: var(--pearl); background: var(--ruby-deep); }
.lobby-hero__status { max-width: 22ch; color: var(--ruby-deep); font-size: 12px; font-weight: 700; line-height: 1.35; }
.lobby-hero__art {
  display: block; width: 100%; height: auto; aspect-ratio: 21 / 8;
  object-fit: cover; object-position: center; border-radius: var(--radius-lg);
  background: var(--paper);
}

/* ---------- Lobby ---------- */
.lobby { padding: 20px 5vw 56px; background: var(--ivory); scroll-margin-top: 110px; }
.lobby__title {
  margin: 0 0 14px; font: 400 clamp(26px, 6vw, 40px)/1.1 var(--serif);
  letter-spacing: -.03em; color: var(--ink);
}
.lobby-shortcuts, .lobby-row__games { margin: 0; padding: 0; list-style: none; }

.lobby-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lobby-shortcut {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: 4 / 3; width: 100%;
  /* No overflow:hidden: longer localized text grows the card instead of
     being cut off, and the focus outline stays visible. */
  border-radius: var(--radius-md);
  background: var(--midnight); color: var(--pearl); text-decoration: none;
  box-shadow: var(--shadow-card);
}
.lobby-shortcut__art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; border-radius: inherit;
}
.lobby-shortcut::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 16, 39, .12) 0%, rgba(10, 16, 39, .78) 45%, rgba(10, 16, 39, .95) 100%);
}
.lobby-shortcut__text { position: relative; z-index: 1; display: grid; gap: 2px; width: 100%; padding: 10px 12px; }
.lobby-shortcut__text strong { font: 700 16px/1.2 var(--sans); color: #fff; }
.lobby-shortcut__text span {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; line-height: 1.35; color: rgba(251, 249, 242, .92);
}
.lobby-shortcut__text small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.lobby-shortcut:hover { box-shadow: var(--shadow-lift); }

.lobby-row { margin-top: 36px; scroll-margin-top: 110px; }
.lobby-row__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.lobby-row__head > div { min-width: 0; flex: 1 1 220px; }
.lobby-row__head h2 { margin: 0 0 4px; font: 700 20px/1.2 var(--sans); color: var(--ink); }
.lobby-row__head p { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(10, 16, 39, .74); }
.lobby-row__all {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 700; color: var(--ruby-deep); text-decoration: underline; text-underline-offset: 3px;
}

/* Phone: one swipeable row, about three tiles visible. */
.lobby-row__games {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3.2);
  gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: -6px -5vw 0; padding: 6px 5vw 8px; scroll-padding: 0 5vw;
}
.lobby-row__games::-webkit-scrollbar { display: none; }
.lobby-row__games > li { min-width: 0; scroll-snap-align: start; }
.lobby-tile__form { margin: 0; }
.lobby-tile {
  display: grid; gap: 6px; width: 100%; min-height: 44px; padding: 0; margin: 0;
  border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.lobby-tile__cover {
  display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--paper), var(--gold-soft));
  box-shadow: 0 8px 20px rgba(30, 24, 12, .10);
}
.lobby-tile__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.lobby-tile__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.lobby-tile:hover .lobby-tile__cover img { transform: scale(1.05); }
/* A game that keeps failing to open: still listed, greyed out and not tappable. */
.lobby-tile--unavailable { cursor: not-allowed; }
.lobby-tile--unavailable .lobby-tile__cover { position: relative; }
.lobby-tile--unavailable .lobby-tile__cover img { filter: grayscale(1); opacity: .5; }
.lobby-tile--unavailable:hover .lobby-tile__cover img { transform: none; }
.lobby-tile--unavailable .lobby-tile__name { color: var(--ink-soft, #6b665c); }
.lobby-tile__status {
  position: absolute; top: 6px; left: 6px; right: 6px; padding: 3px 6px; border-radius: 999px;
  background: rgba(20, 20, 24, .78); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center;
}

.lobby-shortcut:focus-visible, .lobby-tile:focus-visible, .lobby-row__all:focus-visible,
.lobby-hero__actions .button:focus-visible, .signup-steps a:focus-visible {
  outline: 3px solid var(--ruby); outline-offset: 3px;
}
.lobby-tile:focus-visible { outline-offset: 2px; border-radius: var(--radius-md); }

/* ---------- Three steps to play (replaces the long text sections) ---------- */
.signup-steps {
  display: grid; gap: 18px;
  margin: 0 5vw 56px; padding: 22px 18px;
  border-radius: var(--radius-lg); background: var(--midnight); color: var(--pearl);
}
.signup-steps__title { margin: 0; font: 700 20px/1.25 var(--sans); color: var(--pearl); }
.signup-steps__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.signup-steps__item { position: relative; display: grid; align-content: start; justify-items: center; gap: 6px; text-align: center; }
/* Chevron between steps, drawn with borders so screen readers skip it. */
.signup-steps__item + .signup-steps__item::before {
  content: ""; position: absolute; top: 19px; left: -12px;
  width: 7px; height: 7px; border-top: 2px solid var(--gold-soft); border-right: 2px solid var(--gold-soft);
  transform: rotate(45deg);
}
.signup-steps__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(217, 194, 152, .45); border-radius: 50%; color: var(--gold-soft);
}
.signup-steps__icon svg { width: 22px; height: 22px; }
.signup-steps__num { font: 800 12px/1 var(--sans); color: var(--gold-soft); }
.signup-steps__label { font: 600 13px/1.35 var(--sans); color: var(--pearl); overflow-wrap: anywhere; }
.signup-steps__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.signup-steps__actions .button { flex: 1 1 200px; min-height: 52px; font-size: 13px; letter-spacing: .06em; }
.signup-steps__help { margin: 0; font-size: 14px; color: rgba(251, 249, 242, .82); }
.signup-steps__help a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px;
}
.signup-steps a:focus-visible { outline-color: var(--gold-soft); }

@media (min-width: 721px) {
  .lobby-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 4vw;
    padding: 36px 6vw 16px;
  }
  .lobby-hero h1 { font-size: clamp(34px, 4vw, 54px); }
  .lobby-hero__copy > p { font-size: 16px; }
  .lobby-hero__art { aspect-ratio: 16 / 9; max-height: 400px; }
  .lobby-hero__facts li { font-size: 15px; }
  .lobby-hero__actions .button { flex: 0 1 auto; min-width: 190px; }
  .signup-steps { margin: 0 6vw 80px; padding: 28px 32px; }
  .signup-steps__title { font-size: 24px; }
  .signup-steps__label { font-size: 14px; }
  .signup-steps__actions .button { flex: 0 1 auto; min-width: 220px; }
  .lobby { padding: 36px 6vw 80px; }
  .lobby-shortcuts { gap: 16px; }
  .lobby-shortcut__text { padding: 16px; }
  .lobby-shortcut__text strong { font-size: 18px; }
  .lobby-shortcut__text span { white-space: normal; }
  .lobby-row { margin-top: 48px; }
  .lobby-row__head h2 { font-size: 24px; }
  .lobby-row__games {
    grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-columns: auto;
    gap: 18px 16px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none;
  }
}

@media (min-width: 1024px) {
  .lobby-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .signup-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 32px; }
  .signup-steps__actions { flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lobby-tile__cover img { transition: none; }
  .lobby-tile:hover .lobby-tile__cover img { transform: none; }
}
