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; } }

/* ── Единый закреплённый снизу блок «Вход/Регистрация» (моб.) ───────────── */
.mauth { display: none; }
@media (max-width: 900px) {
  .mauth {
    display: grid;
    grid-template-columns: 2fr 3fr; /* Вход 2/5, Регистрация 3/5 — одинаково на всех страницах */
    gap: 10px;
    position: fixed;
    left: 0; right: 0;
    bottom: var(--mauth-offset, 0px);
    z-index: 55;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--mauth-bar-bg, linear-gradient(to top, rgba(8,8,10,.97) 58%, rgba(8,8,10,0)));
    pointer-events: auto;
  }
  .mauth a {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  /* «Вход» — спокойная, без анимации и свечения */
  .mauth .mauth-in {
    color: var(--mauth-in-fg, #fff);
    background: var(--mauth-in-bg, rgba(255,255,255,.07));
    border: 1.5px solid var(--mauth-in-bd, rgba(255,255,255,.4));
  }
  /* «Регистрация» — подарок + лёгкое свечение и мягкая пульсация */
  .mauth .mauth-reg {
    color: var(--mauth-reg-fg, #fff);
    background: var(--mauth-reg-bg, #3b82f6);
    border: 1.5px solid transparent;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    will-change: transform, box-shadow;
    animation: mauthReg 2.6s ease-in-out infinite;
  }
  .mauth .mauth-reg::before {
    content: "🎁";
    margin-right: 8px;
    font-size: 1.05em;
    line-height: 1;
  }
  /* Чтобы футер/последний блок не прятался под закреплённым доком. */
  .k7-app, .dm-app, .pc-app, .vv-app, .nm-app, .rb-app, .md-app, .ev-app, .ax-app, .pd-app {
    padding-bottom: calc(var(--mauth-offset, 0px) + 82px);
  }
}
/* Лёгкое свечение + едва заметная пульсация — только у «Регистрации» */
@keyframes mauthReg {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.012); box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 16px 2px var(--mauth-reg-glow, rgba(255,255,255,.3)); }
}
@media (prefers-reduced-motion: reduce) {
  .mauth .mauth-reg { animation: none; }
}

/* Плавающие кнопки чата поднимаем над закреплённым доком «Вход/Регистрация» */
@media (max-width: 900px) {
  .k7-chat, .nm-chat, .md-chat, .ev-chat, .ax-chat, .pd-chat {
    bottom: calc(var(--mauth-offset, 0px) + 80px) !important;
  }
}

/* ── Бургер слева от логотипа на всех брендах (моб.) ─────────────────────── */
@media (max-width: 900px) {
  .k7-burger, .pc-burger, .nm-burger, .pd-burger, .ax-burger,
  .dm-burger, .md-burger, .vv-burger {
    order: -1 !important;
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    overflow: visible !important;
  }
}

/* ── Общий выезжающий слева drawer-меню (для брендов без своего) ─────────── */
.lobby-drawer { display: none; }
@media (max-width: 900px) {
  .lobby-drawer {
    position: fixed; z-index: 60;
    top: 0; bottom: 0; left: 0;
    width: min(280px, 84vw);
    display: flex; flex-direction: column; gap: 7px;
    padding: 16px 14px calc(20px + env(safe-area-inset-bottom, 0px));
    overflow: auto;
    background: var(--drawer-bg, #14141a);
    border-right: 1px solid var(--drawer-bd, rgba(255,255,255,.08));
    transform: translateX(-110%);
    transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.5);
  }
  .lobby-drawer a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px;
    color: var(--drawer-fg, #d7d7de);
    background: var(--drawer-item, rgba(255,255,255,.05));
    font-weight: 700; text-decoration: none; font-size: 14px;
  }
  .lobby-drawer a.is-active { color: #fff; background: var(--drawer-active, rgba(255,255,255,.14)); }
  .mnav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mnav-toggle:checked ~ .lobby-drawer { transform: translateX(0); }
}

/* Переключатель скрыт всегда; новые бургеры видны только на мобильном */
.mnav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dm-burger, .md-burger, .vv-burger { display: none; }

/* ── Единая кнопка онлайн-чата (моб.) ───────────────────────────────────── */
.mchat { display: none; }
@media (max-width: 900px) {
  .mchat {
    position: fixed; z-index: 56;
    right: 14px; bottom: calc(var(--mauth-offset, 0px) + 84px);
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--mchat-bg, #2b8cff);
    box-shadow: 0 8px 22px rgba(0,0,0,.4);
    text-decoration: none;
  }
  .mchat span { font-size: 23px; line-height: 1; }
  /* вместо разнородных «родных» кнопок чата — единая */
  .k7-chat, .nm-chat, .md-chat, .ev-chat, .ax-chat, .pd-chat { display: none !important; }
}
