a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.k7-top h1,
.pc-top h1,
.nm-top h1,
.pd-top h1,
.rb-top h1,
.md-top h1,
.vv-top h1,
.ev-top h1,
.ax-top h1 {
  white-space: nowrap;
  overflow-wrap: normal;
  min-width: 0;
  flex: 0 1 auto;
}

.k7-toggle,
.pc-toggle,
.pd-toggle,
.nm-toggle,
.ev-toggle,
.ax-toggle,
.rb-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.slot-shelf-wrap {
  width: auto;
  margin: 0;
}

.slot-shelf-wrap h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
}

.slot-shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 12px;
  grid-template-columns: none;
}

.slot-shelf li {
  flex: 1 0 150px;
  scroll-snap-align: start;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  transition: transform .18s ease;
}
/* Когда игр в полке мало, плитки растягиваются и заполняют всю ширину —
   пустых мест справа не остаётся; когда игр много, полка переполняется и
   прокручивается по горизонтали (flex-grow перестаёт действовать). */

.slot-shelf li:hover {
  transform: translateY(-4px);
}

.slot-shelf img {
  border-radius: 14px 14px 0 0;
}

.lobby-story {
  margin: 28px 0 8px;
  color: inherit;
}

.lobby-story > p,
.lobby-story .lobby-block p {
  max-width: 78ch;
  color: rgba(255, 255, 255, .78);
}

.lobby-story ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.lobby-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .03);
}

.lobby-card h3,
.lobby-block h2,
.lobby-block h3 {
  margin: 0 0 6px;
}

.lobby-story footer {
  margin-top: 16px;
}

.lobby-story .aside-links a {
  margin-right: 12px;
}

.lobby-faq {
  margin: 22px 0 6px;
  display: grid;
  gap: 10px;
}

.lobby-faq > h2 {
  margin: 0 0 4px;
}

.lobby-faq-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
}

.lobby-faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.lobby-faq-item p {
  margin: 0;
  max-width: 78ch;
  color: rgba(255, 255, 255, .78);
}

.h1-tail {
  font-weight: 400;
  font-size: .72em;
  opacity: .82;
}

.lobby-burger {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2a2a2e;
  flex: 0 0 auto;
}

.lobby-burger span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lobby-burger::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 20px;
  height: 2px;
  background: #fff;
  box-shadow: 0 6px 0 #fff, 0 12px 0 #fff;
}

@media (max-width: 800px) {
  .lobby-story ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot-shelf li {
    transition: none;
  }
}
.brand-top-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-top-heading a { padding: 8px 12px; border-radius: 9px; background: rgba(255,255,255,.09); font-size: 12px; font-weight: 700; }
.brand-top-games .slot-shelf img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
/* Топ-полка: крупная первая плитка + сетка 2×N, где колонки тянутся на всю
   ширину (1fr). 1 featured + 8 обычных ровно заполняют 2 ряда × 4 колонки,
   пустых мест нет ни на какой ширине. */
.brand-top-games .slot-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: 1fr;
  gap: 12px;
  overflow-x: visible;
}
.brand-top-games .slot-shelf li { min-width: 0; overflow: hidden; flex: none; width: auto; }
.brand-top-games .slot-shelf li:first-child { grid-row: span 2; }
.brand-top-games .slot-shelf li:first-child img { aspect-ratio: auto; }
@media (max-width: 760px) {
  /* На телефоне колонки фиксируются и полка прокручивается по горизонтали —
     трек всегда шире экрана, поэтому пустоты не возникают. */
  .brand-top-games .slot-shelf {
    grid-template-columns: 60vw;
    grid-auto-columns: 42vw;
    grid-template-rows: repeat(2, 1fr);
    overflow-x: auto;
  }
}

/* Единый отклик при наведении на любую плитку слота (все бренды) */
[data-card] { transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; }
[data-card]:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,.5); position: relative; z-index: 1; }
[data-card] > img, [data-card] picture > img { transition: filter .2s ease; }
[data-card]:hover > img, [data-card]:hover picture > img { filter: brightness(1.09) saturate(1.06); }
@media (prefers-reduced-motion: reduce) { [data-card] { transition: none; } [data-card]:hover { transform: none; } }
