html, body { overflow-x: hidden; }
body { background: #000; color: #f7f4f7; font-family: Manrope, "Segoe UI", sans-serif; }
.md-app { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; overflow-x: hidden; }.md-top { z-index: 2; display: flex; grid-column: 1 / -1; align-items: center; gap: 28px; min-height: 76px; padding: 0 16px; border-bottom: 1px solid #242126; background: #000; }.md-top .brand-logo { width: 200px; height: 54px; object-fit: contain; }.md-back { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #28282a; color: #fff; font-size: 20px; }.md-search { width: 310px; }.md-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; }.md-search input, .md-mini-search input { width: 100%; padding: 13px 18px; border: 1px solid #aaa; border-radius: 12px; outline: 0; background: #2b2b2b; color: #fff; font-weight: 700; }.md-search input::placeholder { color: #fff; opacity: 1; }.md-actions { display: flex; gap: 12px; margin-left: auto; }.md-in, .md-reg, .md-side-in, .md-side-reg, .md-get, .md-cash { display: inline-block; border-radius: 12px; font-weight: 800; text-align: center; }.md-in { min-width: 155px; padding: 13px 18px; border: 1px solid #ddd; }.md-reg { min-width: 200px; padding: 14px 20px; background: #ff0061; }.md-side { grid-column: 1; padding: 28px 16px; background: #191919; }.md-side-actions { display: grid; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid #383838; }.md-side-in { padding: 12px; border: 1px solid #fff; }.md-side-reg { padding: 13px; background: #ff0061; }.md-side-nav { display: grid; gap: 12px; padding-top: 24px; }.md-side-nav > a, .md-side-nav > div a { display: block; padding: 13px 16px; border-radius: 10px; background: #252525; color: #aaa; text-align: center; }.md-side-nav a.is-active { border: 1px solid #fa005d; background: linear-gradient(180deg, #5f112e, #2a111c); color: #fff; }.md-side-nav > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.md-side-nav em { color: #f06; font-style: normal; }.md-app-link { display: block; margin-top: 42px; padding: 16px; border-radius: 12px; background: #ff0061; color: #fff; font-weight: 800; text-align: center; }.md-app-link span { float: left; font-size: 28px; }.md-main { grid-column: 2; width: min(1144px, calc(100% - 64px)); margin: 34px auto 70px; }.md-hero { position: relative; height: 320px; overflow: hidden; border-radius: 20px; }.md-slides, .md-slide { height: 100%; }.md-slide { position: absolute; inset: 0; display: none; }.md-slide.is-active { display: block; }.md-slide > img { width: 100%; height: 100%; object-fit: cover; }.md-hero-copy { position: absolute; top: 50%; left: 26px; transform: translateY(-50%); }.md-hero-copy h2 { margin: 0 0 3px; font-size: clamp(32px, 3.5vw, 52px); line-height: 1; }.md-hero-copy p { margin: 0 0 18px; font-size: 18px; }.md-get { padding: 12px 22px; background: #ff0061; }.md-dots { position: absolute; right: 50%; bottom: 12px; display: flex; gap: 8px; transform: translateX(50%); }.md-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #666; }.md-dots button.is-active { background: #ff0061; }.md-chips { display: flex; align-items: center; gap: 20px; margin: 28px 0 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }.md-chips a { flex: 0 0 auto; font-weight: 800; }.md-mini-search { width: 170px; margin-left: auto; }.md-mini-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; }.md-mini-search input { padding: 11px 15px; border: 0; background: #fff; color: #222; }.md-providers { display: flex; gap: 7px; margin-bottom: 30px; overflow: hidden; }.md-providers span { min-width: 87px; padding: 9px 7px; border-radius: 6px; background: #4b4b4b; color: #eee; font-size: 10px; font-weight: 900; text-align: center; }.md-providers b { display: grid; min-width: 36px; place-items: center; border-radius: 6px; background: #ff0061; }.md-app .slot-shelf-wrap { margin: 0 0 36px; }.md-app .slot-shelf-wrap h2 { font-size: 22px; }.md-app .slot-shelf { gap: 12px; }.md-app .slot-shelf li { flex-basis: 184px; background: transparent; }.md-app .slot-shelf img { height: 244px; border-radius: 10px; object-fit: cover; }.md-app .slot-shelf h3 { margin: 8px 0 2px; font-size: 13px; }.md-app .slot-shelf p { margin: 0; font-size: 11px; color: #b6b1b6; }.md-wins { margin: -12px 0 36px; }.md-wins h2 { font-size: 20px; }.md-wins > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.md-wins article { display: flex; gap: 12px; min-width: 0; padding: 10px; border-radius: 12px; background: #2c2c2c; }.md-wins img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }.md-wins p { margin: 0; overflow: hidden; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }.md-wins strong { color: #ff0061; font-size: 18px; }.md-jackpots { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0; padding: 18px 22px; border-radius: 12px; background: linear-gradient(95deg, #2a0715, #18070f); }.md-jackpots p { margin: 0; font-weight: 800; }.md-jackpots a { padding: 10px 15px; border-radius: 9px; background: #ff0061; font-weight: 800; white-space: nowrap; }.md-cash { padding: 12px 18px; background: #ff0061; }.md-story { margin-top: 40px; }.md-tabs { display: none; }
.md-main { width: min(1144px, calc(100vw - 384px)); min-width: 0; margin: 34px auto 70px; }.md-app .slot-shelf-wrap { width: 100%; max-width: 100%; }
.md-mini-search { position: relative; }
.md-mini-search label { left: 0; top: 0; }
.md-original-shelf .brand-top-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.md-original-shelf .brand-top-heading h2 { margin: 0; }
.md-original-shelf .brand-top-heading a { padding: 9px 17px; border-radius: 10px; background: #ff0061; color: #fff; font-size: 12px; font-weight: 700; }
.md-original-shelf .slot-shelf li { position: relative; }
.md-original-shelf .md-new-label { position: absolute; top: 8px; left: 8px; padding: 5px 8px; border-radius: 5px; background: #ff0061; color: white; font-size: 12px; }
.md-providers span { display: grid; height: 34px; padding: 0 5px; place-items: center; }
.md-providers img { display: block; width: 78px; height: 30px; object-fit: contain; }
.md-footer-payments { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 22px; }
.md-footer-payments img { width: auto; max-width: 82px; height: 28px; object-fit: contain; }
.md-original-shelf .slot-shelf { scrollbar-width: none; }
.md-original-shelf .slot-shelf::-webkit-scrollbar { display: none; }
.md-app .md-original-shelf .slot-shelf img { height: auto; aspect-ratio: 2 / 3; }
@media (min-width: 901px) and (max-width: 1500px) {
  .md-app { grid-template-columns: 72px minmax(0, 1fr); }
  .md-main { width: min(1144px, calc(100vw - 136px)); }
  .md-side { padding: 28px 16px; }
  .md-side-actions, .md-app-link { display: none; }
  .md-side-nav { padding-top: 0; }
  .md-side-nav > a, .md-side-nav > div a { width: 40px; height: 40px; padding: 10px 0; overflow: hidden; font-size: 0; }
  .md-side-nav > a::first-letter, .md-side-nav > div a::first-letter { font-size: 18px; }
  .md-side-nav > div { display: contents; }
}
@media (max-width: 900px) { .md-app { display: block; }.md-top { gap: 10px; min-height: 70px; padding: 0 12px; }.md-back { display: none; }.md-top .brand-logo { width: 132px; height: 45px; }.md-search, .md-in { display: none; }.md-actions { gap: 0; }.md-reg { min-width: 0; padding: 10px 14px; font-size: 13px; }.md-side { display: none; }.md-main { width: calc(100% - 24px); margin: 12px auto 90px; }.md-hero { height: 194px; border-radius: 14px; }.md-hero-copy { left: 18px; }.md-hero-copy h2 { font-size: 29px; }.md-hero-copy p { font-size: 14px; }.md-get { padding: 10px 14px; font-size: 13px; }.md-chips { gap: 11px; margin: 16px 0; }.md-chips a { padding: 8px 10px; border-radius: 999px; background: #1e1e1e; font-size: 12px; }.md-mini-search, .md-providers { display: none; }.md-app .slot-shelf-wrap { margin-bottom: 22px; }.md-app .slot-shelf-wrap h2 { font-size: 18px; }.md-app .slot-shelf li { flex-basis: 140px; }.md-app .slot-shelf img { height: 188px; }.md-wins > div { display: flex; overflow-x: auto; }.md-wins article { flex: 0 0 230px; }.md-jackpots { align-items: flex-start; flex-direction: column; }.md-tabs { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 0; background: #292929; border-top: 1px solid #424242; text-align: center; }.md-tabs a { color: #d1d1d1; font-size: 10px; line-height: 1.5; }.md-tabs a:nth-child(3) { color: #ff0061; font-weight: 800; }.md-story { margin-top: 22px; } }
.md-footer { padding: 28px 0; border-top: 1px solid #292629; }
.md-footer .md-footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; }
.md-footer-columns section { display: grid; gap: 9px; }.md-footer-columns b { color: #fff; margin-bottom: 8px; }.md-footer-columns a { color: #aaa; }
.md-footer .md-footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid #292629; }
@media (max-width: 600px) { .md-footer .md-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   MAD — доводка под оригинал madmirror73.com:
   иконки бокового меню, блок приложения, серые чипы, поиск,
   заполнение полок, чат, мобильное нижнее меню, кнопка Вход.
   ============================================================ */

/* Боковое меню: иконки + стиль оригинала (тёмные плашки, розовый актив) */
.md-side { background: #121113; }
.md-side-nav > a, .md-side-nav > div a { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1e1d20; color: #cdc8ce; font-weight: 700; }
.md-side-nav > a:hover, .md-side-nav > div a:hover { background: #2a2930; }
.md-side-nav a.is-active { border: 1px solid #ff0061; background: linear-gradient(180deg, #5f112e, #27101b); color: #fff; }
.md-side-nav a::before {
  content: ""; display: inline-block; width: 18px; height: 18px; vertical-align: -3px;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 17px 17px; mask-size: 17px 17px;
}
.md-nav-lobby::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7'/%3E%3Cpath d='M6 10v9h12v-9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7'/%3E%3Cpath d='M6 10v9h12v-9'/%3E%3C/svg%3E"); }
.md-nav-bonus::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='4' rx='1'/%3E%3Cpath d='M5 13h14v8H5z'/%3E%3Cpath d='M12 9v12'/%3E%3Cpath d='M12 9C10 9 8 8 8 6.5A2.5 2.5 0 0 1 12 5a2.5 2.5 0 0 1 4 1.5C16 8 14 9 12 9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='4' rx='1'/%3E%3Cpath d='M5 13h14v8H5z'/%3E%3Cpath d='M12 9v12'/%3E%3Cpath d='M12 9C10 9 8 8 8 6.5A2.5 2.5 0 0 1 12 5a2.5 2.5 0 0 1 4 1.5C16 8 14 9 12 9z'/%3E%3C/svg%3E"); }
.md-nav-slots::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M6 7h12M8 10v5M12 10v5M16 10v5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M6 7h12M8 10v5M12 10v5M16 10v5'/%3E%3C/svg%3E"); }
.md-nav-live::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='11' height='15' rx='2'/%3E%3Cpath d='M8 6L5 7l3 11 1-.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='11' height='15' rx='2'/%3E%3Cpath d='M8 6L5 7l3 11 1-.3'/%3E%3C/svg%3E"); }
.md-nav-vip::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 8l4 4 5-7 5 7 4-4-1.5 11h-15z'/%3E%3Cpath d='M4.5 19h15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 8l4 4 5-7 5 7 4-4-1.5 11h-15z'/%3E%3Cpath d='M4.5 19h15'/%3E%3C/svg%3E"); }
.md-nav-tourn::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3'/%3E%3Cpath d='M12 14v3M8 20h8M10 20v-2.5M14 20v-2.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3'/%3E%3Cpath d='M12 14v3M8 20h8M10 20v-2.5M14 20v-2.5'/%3E%3C/svg%3E"); }
.md-nav-lottery::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='black'/%3E%3C/svg%3E"); }
.md-nav-jack::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='7' rx='6' ry='2.5'/%3E%3Cpath d='M6 7v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5V7M6 11v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5v-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='7' rx='6' ry='2.5'/%3E%3Cpath d='M6 7v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5V7M6 11v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5v-4'/%3E%3C/svg%3E"); }
.md-caret { margin-left: 2px; color: #ff0061; font-style: normal; }

/* Блок «Скачать приложение» */
.md-app-link { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 14px 12px 12px; border-radius: 14px; overflow: hidden; background: radial-gradient(90% 120% at 12% 50%, #ff2d7e 0, transparent 46%), linear-gradient(100deg, #ff1168, #a60a40); color: #fff; text-align: left; }
.md-app-link span.md-app-phone { display: block; width: 52px; height: 58px; flex: 0 0 auto; margin: -4px 0; background: url("/assets/lobby/mad/app-phone.svg") center/contain no-repeat; float: none; font-size: 0; }
.md-app-link b { flex: 1 1 auto; font-size: 14px; font-weight: 800; line-height: 1.05; }
.md-app-stores { display: flex; gap: 6px; }
.md-app-stores i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: rgba(255,255,255,.2); }
.md-ios::before { content: "🍎"; font-size: 13px; }
.md-android::before { content: "▶"; color: #fff; font-size: 11px; }

/* Поиск у логотипа: тёмный, розовая лупа */
.md-search { position: relative; }
.md-search::before { content: ""; position: absolute; left: 14px; top: 50%; z-index: 1; transform: translateY(-50%); width: 19px; height: 19px; color: #ff0061; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center/18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center/18px no-repeat; }
.md-search input { padding-left: 42px; border: 1px solid #2c2b2e; border-radius: 12px; background: #19181b; color: #fff; font-weight: 600; }
.md-search input::placeholder { color: #8d8890; opacity: 1; }
.md-back { background: #1e1d20; }

/* Чипы категорий: серые иконки, тёмный стиль */
.md-chips { gap: 16px; }
.md-chip { display: inline-flex; align-items: center; gap: 7px; color: #c7c2c8; font-weight: 800; font-size: 14px; }
.md-chip:hover { color: #fff; }
.md-chip::before {
  content: ""; display: inline-block; width: 17px; height: 17px; vertical-align: -3px; filter: none;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 16px 16px; mask-size: 16px 16px;
}
.md-ch-fav::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='black'/%3E%3C/svg%3E"); }
.md-ch-new::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpolygon points='13,2 4,13 11,13 9,22 20,10 13,10'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpolygon points='13,2 4,13 11,13 9,22 20,10 13,10'/%3E%3C/svg%3E"); }
.md-ch-pop::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpolygon points='12,2 14.6,8.6 21.5,9 16,13.4 17.8,20.5 12,16.5 6.2,20.5 8,13.4 2.5,9 9.4,8.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpolygon points='12,2 14.6,8.6 21.5,9 16,13.4 17.8,20.5 12,16.5 6.2,20.5 8,13.4 2.5,9 9.4,8.6'/%3E%3C/svg%3E"); }
.md-ch-tourn::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3'/%3E%3Cpath d='M12 14v3M8 20h8M10 20v-2.5M14 20v-2.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3'/%3E%3Cpath d='M12 14v3M8 20h8M10 20v-2.5M14 20v-2.5'/%3E%3C/svg%3E"); }
.md-ch-buy::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='4' rx='1'/%3E%3Cpath d='M5 13h14v8H5z'/%3E%3Cpath d='M12 9v12'/%3E%3Cpath d='M12 9C10 9 8 8 8 6.5A2.5 2.5 0 0 1 12 5a2.5 2.5 0 0 1 4 1.5C16 8 14 9 12 9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9' width='17' height='4' rx='1'/%3E%3Cpath d='M5 13h14v8H5z'/%3E%3Cpath d='M12 9v12'/%3E%3Cpath d='M12 9C10 9 8 8 8 6.5A2.5 2.5 0 0 1 12 5a2.5 2.5 0 0 1 4 1.5C16 8 14 9 12 9z'/%3E%3C/svg%3E"); }
.md-ch-fast::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c3 2 5 6 5 10l-3 3h-4l-3-3c0-4 2-8 5-10z'/%3E%3Cpath d='M9 15l-2.5 4 3.5-1.2M15 15l2.5 4-3.5-1.2'/%3E%3Ccircle cx='12' cy='9' r='1.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c3 2 5 6 5 10l-3 3h-4l-3-3c0-4 2-8 5-10z'/%3E%3Cpath d='M9 15l-2.5 4 3.5-1.2M15 15l2.5 4-3.5-1.2'/%3E%3Ccircle cx='12' cy='9' r='1.6'/%3E%3C/svg%3E"); }
.md-ch-live::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='11' height='15' rx='2'/%3E%3Cpath d='M8 6L5 7l3 11 1-.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='11' height='15' rx='2'/%3E%3Cpath d='M8 6L5 7l3 11 1-.3'/%3E%3C/svg%3E"); }
.md-ch-jack::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='7' rx='6' ry='2.5'/%3E%3Cpath d='M6 7v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5V7M6 11v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5v-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='7' rx='6' ry='2.5'/%3E%3Cpath d='M6 7v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5V7M6 11v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5v-4'/%3E%3C/svg%3E"); }
.md-ch-slots::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M6 7h12M8 10v5M12 10v5M16 10v5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M6 7h12M8 10v5M12 10v5M16 10v5'/%3E%3C/svg%3E"); }
.md-ch-hall::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20v-9a6 6 0 0 1 12 0v9l-2-1.5-2 1.5-2-1.5-2 1.5z'/%3E%3Ccircle cx='9.5' cy='10.5' r='1' fill='black'/%3E%3Ccircle cx='14.5' cy='10.5' r='1' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20v-9a6 6 0 0 1 12 0v9l-2-1.5-2 1.5-2-1.5-2 1.5z'/%3E%3Ccircle cx='9.5' cy='10.5' r='1' fill='black'/%3E%3Ccircle cx='14.5' cy='10.5' r='1' fill='black'/%3E%3C/svg%3E"); }

/* Полки заполняют ширину (нет пустых мест) */
.md-original-shelf .slot-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.md-app .md-original-shelf .slot-shelf img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
@media (min-width: 701px) and (max-width: 1250px) { .md-original-shelf .slot-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Плавающая кнопка чата */
.md-chat { position: fixed; z-index: 30; right: 26px; bottom: 26px; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ff2a74, #d50a49); box-shadow: 0 10px 26px rgba(213,10,73,.45); font-size: 24px; }

@media (max-width: 900px) {
  .md-chat { right: 16px; bottom: 76px; width: 50px; height: 50px; font-size: 21px; }
  /* Кнопка «Вход» на мобиле */
  .md-actions .md-in { display: inline-block; min-width: 0; padding: 10px 14px; font-size: 13px; }
  /* Полки: 3 колонки, без пустых мест */
  .md-original-shelf .slot-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .md-app .slot-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  /* Нижнее меню: иконки + центральная розовая кнопка */
  .md-tabs { grid-template-columns: repeat(5, 1fr); padding: 6px 0 4px; background: #161416; border-top: 1px solid #2a282b; }
  .md-tabs a { display: grid; gap: 3px; place-items: center; color: #c7c2c8; font-size: 10px; }
  .md-tabs a i { font-size: 20px; font-style: normal; line-height: 1; }
  .md-tabs a span { font-size: 10px; }
  .md-tab-reg { color: #fff; }
  .md-tab-reg .md-tab-logo { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -16px; border-radius: 14px; background: linear-gradient(135deg, #ff2a74, #d50a49); box-shadow: 0 6px 16px rgba(213,10,73,.45); }
  .md-tab-reg .md-tab-logo::before { content: "⚡"; font-size: 22px; }
}

.md-chips { justify-content: center; flex-wrap: wrap; }

/* Чипы категорий — серый оригинальный цвет, активный/первый — розовый */
.md-chips a { color: #8d8d91; }
.md-chips a:first-child, .md-chips a.is-active, .md-chips a:hover { color: #ff2d7e; }

/* Кнопка «Скачать приложение»: иконка телефона с играми + бейджи сторов */
.md-app-link span.md-app-phone { background: url("/assets/lobby/mad/app-phone.svg") center/contain no-repeat !important; }
.md-app-stores { display: flex; flex: 0 0 auto; gap: 7px; float: none; }
.md-app-stores i { display: block; width: 22px; height: 22px; background: #fff; }
.md-ios { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16.3 12.6c0-2 1.6-3 1.7-3-.9-1.4-2.4-1.5-2.9-1.6-1.2-.1-2.4.7-3 .7s-1.6-.7-2.6-.7c-1.3 0-2.6.8-3.2 2-1.4 2.4-.4 6 1 8 .6 1 1.4 2 2.4 2 .9 0 1.3-.6 2.4-.6s1.4.6 2.4.6 1.7-1 2.3-2c.7-1 1-2 1-2-.1 0-2-.8-2-3zM14.3 6.3c.5-.6.9-1.5.8-2.3-.8 0-1.7.5-2.2 1.1-.5.6-.9 1.4-.8 2.3.9.1 1.8-.5 2.2-1.1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16.3 12.6c0-2 1.6-3 1.7-3-.9-1.4-2.4-1.5-2.9-1.6-1.2-.1-2.4.7-3 .7s-1.6-.7-2.6-.7c-1.3 0-2.6.8-3.2 2-1.4 2.4-.4 6 1 8 .6 1 1.4 2 2.4 2 .9 0 1.3-.6 2.4-.6s1.4.6 2.4.6 1.7-1 2.3-2c.7-1 1-2 1-2-.1 0-2-.8-2-3zM14.3 6.3c.5-.6.9-1.5.8-2.3-.8 0-1.7.5-2.2 1.1-.5.6-.9 1.4-.8 2.3.9.1 1.8-.5 2.2-1.1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.md-android { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4l12 8-12 8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4l12 8-12 8z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* «Побеждают сейчас» — живая лента, прокрутка справа→налево */
.md-wins > div.md-wins-view { display: block; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); mask: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); }
.md-wins-track { display: flex; gap: 16px; width: max-content; animation: md-wins-marquee 44s linear infinite; }
.md-wins-view:hover .md-wins-track { animation-play-state: paused; }
@keyframes md-wins-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.md-win-card { flex: 0 0 236px; display: flex; gap: 12px; min-width: 0; padding: 10px; border-radius: 12px; background: #2c2c2c; }
.md-win-card img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }
.md-win-card p { margin: 0; overflow: hidden; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.md-win-card strong { color: #ff0061; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .md-wins-track { animation: none; } }
