

:root {
  --lobby-side-l: max(12px, var(--safe-left));
  --lobby-side-r: max(12px, var(--safe-right));
}

html.landscape #lobby {
  --sign-w: 140px;
  --lobby-gap-y: 6px;
  max-width: none;
  grid-template-columns: var(--sign-w) minmax(0, 1fr) auto auto;
  grid-template-rows: 44px minmax(0, 1fr) auto;
  gap: var(--lobby-gap-y) 8px;
  padding: var(--safe-top) var(--lobby-side-r) calc(var(--safe-bottom) + 2px) var(--lobby-side-l);
}

html.landscape #lobby:not([hidden]) { display: grid; }

html.landscape #lobby > .lobby-topbar { grid-area: 1 / 1 / 2 / -1; }
html.landscape #lobby > .lobby-sign { grid-area: 2 / 1 / 3 / 2; }
html.landscape #lobby > .lobby-floor { grid-area: 2 / 2 / 3 / -1; }
html.landscape #lobby > .lobby-dock { grid-area: 3 / 4 / 4 / 5; }


html.landscape .lobby .topbar.lobby-topbar {
  align-self: stretch;
  margin: 0;
  gap: 6px;
}

html.landscape .lobby-topbar::before {
  left: calc(-1 * var(--lobby-side-l));
  right: calc(-1 * var(--lobby-side-r));
  top: calc(-1 * var(--safe-top));
  bottom: -3px;
}

html.landscape .lobby-avatar {
  width: 44px;
  height: 44px;
}

html.landscape .lobby-level-badge { bottom: -4px; }

html.landscape .lobby-topbar-main {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

html.landscape .lobby-topbar .credits {
  flex: 0 1 260px;
  min-width: 200px;
  height: 34px;
  margin: 0 auto;
}

html.landscape .lobby-buy {
  height: 44px;
  margin: -6.5px -1.5px;
}

html.landscape .lobby-buy::before,
html.landscape .lobby-buy.broke::after { inset: 7px 3px; }


html.landscape #lobby > .feature-sign {
  container: lobby-sign / size;
  --specials-foot: 88px;
  --specials-countdown: 14px;
  --specials-key: 44px;
  height: auto;
  min-height: 0;
  margin: 6px 0;
  padding: 0;
  border-radius: 46% 46% 12px 12px / 22px 22px 12px 12px;
  background: var(--lobby-sign-fill);
}

.lobby-sign-rules { display: none; }

html.landscape .feature-sign > .lobby-sign-rules {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--hairline) 20% 80%, transparent) center bottom calc(var(--specials-foot) + var(--specials-key) + 3px) / calc(100% - 12px) 1px no-repeat,
    linear-gradient(90deg, transparent, var(--hairline) 20% 80%, transparent) center bottom calc(var(--specials-foot) - var(--specials-countdown) - 3px) / calc(100% - 12px) 1px no-repeat;
}

html.landscape .feature-sign .lobby-feature {
  --feature-art-height: clamp(18px, calc(100cqh - 218px), 48px);
  top: 6px;
  bottom: calc(var(--specials-foot) + var(--specials-key) + 4px);
  left: 6px;
  right: 6px;
  height: auto;
  max-height: 122px;
}

html.landscape .feature-sign .lobby-sign-title {
  left: 0;
  right: 0;
  top: 2px;
  color: var(--muted);
  background-image: none;
  filter: none;
  font-size: 11px;
  letter-spacing: .035em;
  text-align: center;
  isolation: isolate;
}

html.landscape .feature-sign .lobby-sign-title::before {
  content: "";
  position: absolute;
  inset: -2px 6px;
  z-index: -1;
  border-radius: 8px;
  background: var(--lobby-sign-cap);
  box-shadow: inset 0 2px 3px #000000b3, inset 0 -1px 0 var(--hairline), 0 1px 0 var(--hairline);
}

html.landscape .lobby-feature-content { inset: 17px 0 0; }

html.landscape .lobby-feature-art,
html.landscape .lobby-feature[data-phase="event"] .lobby-feature-art {
  left: calc(50% - 30px);
  top: 0;
  width: 60px;
  height: var(--feature-art-height);
}

html.landscape .lobby-feature-copy {
  align-items: center;
  margin: calc(var(--feature-art-height) + 2px) 0 0;
  text-align: center;
}

html.landscape .lobby-feature-title {
  max-width: 100%;
  height: auto;
  line-height: 16px;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

html.landscape .lobby-feature-badge { align-self: center; font-size: 12px; }
html.landscape .lobby-feature[data-phase="event"] .lobby-feature-badge { font-size: 11px; }

html.landscape .feature-sign .lobby-specials {
  top: auto;
  bottom: var(--specials-foot);
  left: calc(50% - 48px);
  right: auto;
  height: var(--specials-key);
}

html.landscape .feature-sign .lobby-sign-sub,
html.landscape .feature-sign .lobby-notice {
  left: 8px;
  right: 8px;
  bottom: 9px;
  padding: 0;
}

html.landscape .feature-sign .lobby-sign-sub { font-size: .75rem; letter-spacing: .045em; }
html.landscape .lobby-marquee-tagline { color: var(--muted); }
html.landscape .lobby-marquee-ticker { height: 5em; }

html.landscape .lobby-marquee-line {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  height: 100%;
  padding: 2px 0;
  line-height: 1.45em;
  white-space: normal;
}

html.landscape .lobby-marquee-label { flex: none; }
html.landscape .lobby-marquee-line:has(.lobby-marquee-amount:empty) .lobby-marquee-label {
  color: var(--muted);
  font-size: .96em;
  letter-spacing: .025em;
}
html.landscape .lobby-marquee-amount { flex: none; white-space: nowrap; }

html.landscape .feature-sign .lobby-notice {
  height: auto;
  min-height: 18px;
  line-height: 16px;
  font-size: 0.8rem;
  white-space: normal;
}

@container lobby-sign (max-height: 228px) {
  html.landscape .lobby-feature-art { display: none; }
  html.landscape .lobby-feature-content { top: 15px; }
  html.landscape .lobby-feature-copy { margin-top: 0; }
}

@container lobby-sign (max-height: 206px) {
  html.landscape .feature-sign > * { --specials-foot: 78px; }
  html.landscape .lobby-feature-title { line-height: 14px; }
  html.landscape .lobby-feature-badge,
  html.landscape .lobby-feature-status,
  html.landscape .feature-letter,
  html.landscape .feature-letter-track > span { height: 12px; line-height: 12px; }
  html.landscape .feature-sign .lobby-sign-sub { font-size: 11px; }
  html.landscape .lobby-marquee-ticker { height: 50px; }
  html.landscape .lobby-marquee-line { gap: 0; line-height: 1.39em; }
  html.landscape .lobby-marquee-line:has(.lobby-marquee-amount:empty) .lobby-marquee-label { font-size: 11px; }
}


html.landscape .lobby-floor {
  --league-open-w: 106px;
  --floor-out: max(0px, var(--lobby-side-r) - 48px);
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  margin: 0 calc(-1 * var(--floor-out)) 0 0;
}

html.landscape .lobby-floor .game-list {
  margin: 0;
  padding: 6px 2px 6px 4px;
  scroll-padding: 0 4px;
  gap: 10px;
}

html.landscape .game-card {
  width: max(114px, calc(min(100cqh, 420px) / 2.02));
  height: 100cqh;
  max-height: 420px;
  min-height: 0;
}

html.landscape .game-list > .game-card:first-child { margin-left: 0; }

html.landscape .game-card-jackpot-name { font-size: var(--type-label); }

html.landscape .lobby-start { left: 0; }

html.landscape .league-tab {
  right: 0;
  margin-right: var(--floor-out);
  flex: none;
  align-self: center;
  border-right: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 14px #b94df055;
}

html.landscape .league-tab.open {
  --tab-w: var(--league-open-w);
  position: relative;
  top: auto;
  min-height: calc(100% - 16px);
  padding: 8px 4px 4px 6px;
}

html.landscape .league-tab.open .league-tab-body {
  flex: 1 1 auto;
  justify-content: space-around;
  gap: 4px;
}

html.landscape .league-tab.open .league-tab-head {
  flex-direction: column;
  gap: 2px;
}

html.landscape .league-tab.open .league-tab-gem { width: 44px; height: 44px; }
html.landscape .league-tab.open .league-tab-place { text-align: center; }
html.landscape .league-tab.open .league-tab-row { min-height: 20px; }
