[data-lobby] { --rail: 180px; }
[data-lobby] .site-head { position: sticky; top: 0; z-index: 6; }
[data-lobby] .head-inner { width: min(100% - 44px, 1736px); min-height: 64px; gap: 14px; }
[data-lobby] .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.44rem; }
[data-lobby] .brand::before { content: none; }
[data-lobby] .action { border-radius: 9px; padding-inline: 17px; font-size: .88rem; }
[data-lobby] .lobby-skip { position: absolute; z-index: 8; inset-block-start: 8px; padding: 8px 14px; background: var(--surface); transform: translateY(-160%); }
[data-lobby] .lobby-skip:focus { transform: none; }
[data-lobby] .lobby-header-actions { display: flex; gap: 8px; margin-left: auto; }
[data-lobby] .lobby-header-actions > .outline { background: transparent; }
[data-lobby] .lobby-shell { width: min(100%, 1780px); margin-inline: auto; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
[data-lobby] .lobby-shell > main { width: 100%; min-width: 0; padding: 0 24px; scroll-margin-top: 70px; }
[data-lobby] .crumbs { margin: 13px 0; }
[data-lobby] .crumbs li + li::before { color: #8e80a5; }
[data-lobby] .lead { scroll-margin-top: 85px; }
[data-lobby] [id] { scroll-margin-top: 86px; }

.lobby-mark {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  color: #f1dcff; background: #382453; border: 1px solid #67459a; border-radius: 9px;
  font-size: 1.02rem; font-weight: 900; letter-spacing: -.09em;
}
[data-lobby] .lobby-rail {
  margin: 0; position: sticky; top: 64px; align-self: start;
  display: grid; align-content: start; gap: 5px;
  padding: 20px 12px; min-height: calc(100svh - 64px);
  border-right: 1px solid var(--edge); background: #15111d;
}
[data-lobby] .lobby-rail a {
  display: flex; gap: 9px; align-items: center; padding: 0 9px;
  font-size: .83rem; font-weight: 690; border: 1px solid transparent; border-radius: 9px;
}
[data-lobby] .lobby-rail a[aria-current="page"] { border-color: #6844a0; background: #2d2043; color: #f1dfff; }
[data-lobby] .lobby-rail a:hover { background: #231a32; }
.lobby-nav-icon { width: 22px; flex: none; color: #c4a0ff; text-align: center; font-size: 1.15rem; }

.lobby-hero {
  position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden;
  min-height: clamp(240px, 22vw, 365px); padding: 26px clamp(22px, 4vw, 65px);
  border: 1px solid #4f396b; border-radius: 16px; background: #1b122a;
}
.lobby-art {
  position: absolute; inset: 0 0 0 auto; z-index: -2; width: 75%; height: 100%;
  object-fit: cover; object-position: center 51%;
}
.lobby-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #1b122a 5%, #1b122a 25%, rgba(27,18,42,.84) 39%, rgba(27,18,42,.19) 62%, transparent 81%);
}
.lobby-hero-copy { max-width: 460px; }
.lobby-hero h1 { font-size: clamp(3.1rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.065em; }
.lobby-offer { margin: 13px 0 19px; color: #e5d6f4; font-size: clamp(1.14rem, 2.2vw, 2rem); font-weight: 680; }
.lobby-offer strong { color: #ffdb9c; font-weight: 850; }
.lobby-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lobby-terms { display: inline-flex; align-items: center; min-height: 44px; color: #f4e9ff; font-size: .86rem; font-weight: 670; }

.lobby-catalog, .lobby-promos { margin: 24px 0 33px; }
.lobby-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.lobby-section-head h2 { font-size: clamp(1.27rem, 2.1vw, 1.85rem); letter-spacing: -.035em; }
.lobby-section-head .lobby-page-title { font-size: clamp(1.45rem, 2.6vw, 2.4rem); letter-spacing: -.04em; }
.lobby-all { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; flex: none; color: #d7baff; font-size: .87rem; font-weight: 700; text-decoration: none; }
.lobby-all:hover { text-decoration: underline; }
.lobby-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 246px); gap: 10px; align-items: center; margin-bottom: 12px; }
.lobby-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.lobby-filters button, .lobby-search {
  min-height: 44px; background: var(--surface); color: var(--text);
  border: 1px solid var(--edge); border-radius: 8px; font-size: .84rem;
}
.lobby-filters button { padding: 5px 13px; white-space: nowrap; font-weight: 700; }
.lobby-filters button[aria-pressed="true"] { background: #32204d; color: #f0dbff; border-color: #855abd; }
.lobby-filters button:hover { border-color: #a981e4; }
.lobby-search { min-width: 0; display: flex; align-items: center; padding-inline: 12px; gap: 11px; }
.lobby-search:focus-within { border-color: var(--accent); }
.lobby-search span { position: relative; width: 13px; height: 13px; flex: none; border: 1.5px solid #cfb4ff; border-radius: 50%; margin-right: 3px; }
.lobby-search span::after { content: ""; position: absolute; bottom: -4px; right: -3px; width: 6px; height: 1.5px; background: #cfb4ff; transform: rotate(45deg); }
.lobby-search input { min-width: 0; width: 100%; min-height: 42px; padding: 0 3px; border: 0; background: transparent; color: var(--text); }
.lobby-search input::placeholder { color: var(--muted); opacity: 1; }
.lobby-search input:focus-visible { outline-offset: -1px; border-radius: 5px; }
.lobby-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lobby-empty { padding: 18px 0; }
[data-lobby] .lobby-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.lobby-grid .game-card { border-radius: 10px; overflow: clip; background: #21192d; }
.lobby-grid .game-card img { aspect-ratio: 4/5; object-fit: cover; }
.lobby-grid .game-card span { padding: 8px 8px 9px; min-height: 57px; align-content: start; font-size: .81rem; }
.lobby-grid .game-card small { color: #c7b8d5; font-size: .69rem; }
.lobby-grid .game-card:hover span { color: #ead5ff; }
.lobby-promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lobby-promo-grid > a {
  display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 1px 10px; align-content: center;
  min-height: 74px; padding: 11px; background: #21192d; border: 1px solid var(--edge);
  border-radius: 10px; color: var(--text); text-decoration: none;
}
.lobby-promo-grid > a:hover { border-color: var(--accent); }
.lobby-promo-grid a > span:last-child { grid-column: 2; color: var(--muted); font-size: .77rem; }
.lobby-promo-mark {
  display: grid; place-items: center; grid-row: span 2; width: 43px; height: 43px;
  margin: auto; border-radius: 9px; background: #473162; color: #ffdd9f; font-size: 1.23rem; font-weight: 850;
}

@media (max-width: 1160px) {
  [data-lobby] { --rail: 153px; }
  [data-lobby] .lobby-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  [data-lobby] .lobby-shell { display: block; }
  [data-lobby] .lobby-shell > main { padding-inline: 16px; }
  [data-lobby] .head-inner { width: calc(100% - 32px); }
  [data-lobby] .menu-toggle {
    display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 9px;
    width: 44px; min-height: 44px; background: #181221; color: var(--text);
  }
  [data-lobby] .menu-toggle > span { width: 16px; height: 12px; border-block: 2px solid currentColor; position: relative; }
  [data-lobby] .menu-toggle > span::before { content: ""; position: absolute; inset: 3px 0 auto; border-top: 2px solid currentColor; }
  [data-lobby] .lobby-rail {
    display: none; position: fixed; z-index: 5; top: 64px; inset-inline: 0;
    min-height: auto; margin: 0; padding: 10px 16px; border: 1px solid var(--edge);
  }
  [data-lobby] .lobby-rail.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  [data-lobby] .head-inner { width: calc(100% - 20px); gap: 7px; min-height: 60px; }
  [data-lobby] .brand { gap: 5px; font-size: 1.18rem; }
  .lobby-mark { width: 26px; height: 26px; font-size: .85rem; }
  [data-lobby] .lobby-header-actions { gap: 5px; }
  [data-lobby] .lobby-header-actions > a { padding-inline: 8px; font-size: .75rem; }
  [data-lobby] .lobby-rail { top: 60px; }
  [data-lobby] .lobby-shell > main { padding-inline: 11px; }
  [data-lobby] .crumbs { margin: 10px 0; font-size: .73rem; }
  .lobby-hero { min-height: 205px; padding: 15px; border-radius: 13px; }
  .lobby-art { width: 86%; object-position: 65% 50%; }
  .lobby-hero::after { background: linear-gradient(90deg, #1b122a 5%, rgba(27,18,42,.9) 29%, rgba(27,18,42,.46) 69%, rgba(27,18,42,.2)); }
  .lobby-hero h1 { font-size: 2.6rem; }
  .lobby-offer { margin: 7px 0 11px; }
  .lobby-hero-actions { gap: 8px; }
  [data-lobby] .lobby-hero-actions .action { padding-inline: 10px; font-size: .8rem; }
  .lobby-terms { font-size: .77rem; }
  .lobby-catalog, .lobby-promos { margin: 16px 0 24px; }
  .lobby-controls { grid-template-columns: 1fr; gap: 6px; margin-bottom: 9px; }
  .lobby-section-head { margin-bottom: 1px; }
  .lobby-all { font-size: .76rem; }
  .lobby-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 5px; padding: 2px 2px 4px; }
  .lobby-filters button { padding-inline: 8px; font-size: .74rem; }
  .lobby-search { width: 100%; }
  [data-lobby] .lobby-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .lobby-grid .game-card { border-radius: 8px; }
  .lobby-grid .game-card span { padding: 5px; min-height: 55px; font-size: .69rem; }
  .lobby-grid .game-card small { font-size: .59rem; }
  .lobby-promo-grid { grid-template-columns: 1fr; gap: 8px; }
  .lobby-promo-grid > a { min-height: 65px; }
}

@media (max-width: 360px) {
  [data-lobby] .lobby-header-actions .outline { display: none; }
  [data-lobby] .lobby-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
