:root {
  --bg: #04252a;
  --side: #062c32;
  --head: #052a30;
  --panel: #0b343b;
  --panel-2: #0f3d45;
  --panel-3: #154952;
  --line: rgba(255, 255, 255, .08);
  --cyan: #16c8f4;
  --cyan-2: #0fb1d9;
  --lime: #b9f227;
  --gold: #f2c23a;
  --red: #ef4444;
  --text: #ffffff;
  --muted: #8fb2b8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 16px 36px rgba(0, 0, 0, .5);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --side-w: 268px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font); font-size: 14px; line-height: 1.45;
  color: var(--text); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }

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

.ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 15px; font-style: normal; font-weight: 400; line-height: 1;
  user-select: none;
}
.ico--glyph { font-family: var(--font); font-weight: 800; font-size: 15px; }
.ico--mono { filter: grayscale(1) brightness(2.2); }

@media (min-width: 1100px) { .mobile-only { display: none !important; } }
@media (max-width: 1099px) { .desktop-only { display: none !important; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 6px;
  font-size: 14px; font-weight: 800; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--cyan { background: var(--cyan); color: #04252a; }
.btn--cyan:hover { background: #4fd8fa; }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cyan); color: var(--cyan); }
.btn--lime { background: var(--lime); color: #0b2a06; }
.btn--lime:hover { background: #cdf75c; }
.btn--lg { height: 46px; padding: 0 26px; font-size: 15px; }

.header { position: sticky; top: 0; z-index: 50; background: var(--head); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 20px; }
.burger { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px; background: var(--panel); font-size: 18px; }
.logo { display: flex; flex: none; align-items: center; }
.logo img { height: 28px; width: auto; }
.tabs { display: flex; align-items: stretch; height: 100%; }
.tabs a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 14.5px; font-weight: 700; color: #cfe3e6; transition: color .2s; }
.tabs a:hover { color: #fff; }
.tabs a.is-active { color: #fff; }
.tabs a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--cyan); }
.tabs .ico { filter: grayscale(1) brightness(2); }
.header__auth { display: flex; gap: 10px; margin-left: auto; }

.side {
  position: fixed; top: 61px; bottom: 0; left: 0; z-index: 40; width: var(--side-w);
  display: flex; flex-direction: column;
  background: var(--side); border-right: 1px solid var(--line); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent;
}
.side > * { flex-shrink: 0; }
.side__top { display: none; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.side__top img { height: 24px; }
.side__close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: var(--panel); font-size: 15px; }
.bonus { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 20px 18px; height: 48px; border-radius: 4px; background: var(--cyan); color: #04252a; font-size: 14.5px; font-weight: 700; box-shadow: 0 6px 18px rgba(22, 200, 244, .25); transition: background .2s; }
.bonus:hover { background: #4fd8fa; }
.group { border-top: 1px solid var(--line); }
.group__head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 22px 30px 12px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; text-align: left; }
.group__chev { font-size: 15px; transition: transform .25s; }
.group.is-closed .group__chev { transform: rotate(180deg); }
.group.is-closed .group__list { display: none; }
.group__list { list-style: none; margin: 0; padding: 0 0 14px; }
.group__list a { display: flex; align-items: center; gap: 12px; padding: 9px 30px; font-size: 14.5px; color: #dbe9eb; transition: background .2s, color .2s; }
.group__list a:hover { background: var(--panel); color: var(--cyan); }
.group__list a.is-active { color: var(--cyan); }
.group__list .ico { filter: grayscale(1) brightness(1.6); }

.shell { margin-left: var(--side-w); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 16px 30px; }

.hero { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.hero__track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.hero__slide { flex: 0 0 100%; display: block; }
.hero__slide img { width: 100%; aspect-ratio: 724 / 265; object-fit: cover; }
.hero__arrow { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-top: -18px; color: #fff; font-size: 28px; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__dots { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: flex; gap: 8px; transform: translateX(-50%); }
.hero__dot { width: 28px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.hero__dot.is-active { background: #fff; }
.hero.is-single .hero__arrow, .hero.is-single .hero__dots { display: none; }

.search { position: relative; display: block; margin-top: 24px; }
.search .ico { position: absolute; left: 16px; top: 50%; margin-top: -9px; filter: grayscale(1) brightness(1.8); }
.search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 0; border-radius: 4px; background: var(--panel); color: #fff; font-size: 14px; outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.search input::placeholder { color: var(--muted); }
.search input:focus { box-shadow: inset 0 0 0 1.5px var(--cyan); }

.cats { display: flex; gap: 12px; margin-top: 30px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; font-size: 14px; font-weight: 600; line-height: 1.1; text-align: center; transition: color .2s; }
.cat small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.cat__ico { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--panel-2); font-size: 22px; transition: background .2s, box-shadow .2s; }
.cat__ico .ico { width: 26px; height: 26px; font-size: 22px; filter: grayscale(1) sepia(1) hue-rotate(150deg) saturate(5) brightness(1.2); }
.cat:hover .cat__ico, .cat.is-active .cat__ico { background: var(--panel-3); box-shadow: 0 0 0 2px var(--cyan); }
.cat.is-active { color: var(--cyan); }

.wins { display: grid; grid-template-columns: 186px minmax(0, 1fr); gap: 12px; margin-top: 30px; }
.wins__title { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, #1d4a2a, #0b343b); font-size: 15px; font-weight: 900; line-height: 1.25; text-transform: uppercase; }
.wins__title .ico { width: 54px; height: 54px; font-size: 46px; }
.wins__track { display: grid; grid-auto-flow: column; grid-auto-columns: 266px; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.wins__track::-webkit-scrollbar { display: none; }
.win { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--panel); }
.win img { flex: none; width: 66px; height: 66px; border-radius: 6px; object-fit: cover; }
.win__name { display: block; font-size: 15px; font-weight: 800; }
.win__game { display: block; font-size: 12.5px; color: var(--muted); }
.win__amount { display: block; font-size: 15px; font-weight: 800; color: var(--gold); }

.row { margin-top: 34px; }
.row[hidden] { display: none; }
.row__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.row__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; }
.row__all { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--cyan); }
.row__all:hover { text-decoration: underline; }
.row__nav { display: flex; gap: 6px; }
.row__nav button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: var(--panel-2); font-size: 18px; transition: background .2s; }
.row__nav button:hover { background: var(--cyan); color: #04252a; }
.row__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 12px) / 7); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.row__track::-webkit-scrollbar { display: none; }
.game { scroll-snap-align: start; min-width: 0; }
.game[hidden] { display: none; }
.game__thumb { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--panel); }
.game__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s; }
.game__tag { position: absolute; top: 6px; left: 6px; z-index: 2; padding: 1px 7px; border-radius: 4px; background: var(--lime); color: #0b2a06; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.game__tag--hot { background: #ff6a3d; color: #fff; }
.game__over { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(2, 24, 28, .72); opacity: 0; transition: opacity .25s; }
.game__play { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cyan); color: #04252a; font-size: 17px; box-shadow: 0 0 0 6px rgba(22, 200, 244, .25); }
.game__demo { font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.game__thumb:hover img, .game__thumb:focus-visible img { transform: scale(1.06); }
.game__thumb:hover .game__over, .game__thumb:focus-visible .game__over { opacity: 1; }
.game__name { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.game__prov { display: block; font-size: 11.5px; color: var(--muted); }
.empty { display: none; margin-top: 26px; padding: 30px 10px; border-radius: var(--radius); background: var(--panel); text-align: center; color: var(--muted); }
.empty.is-visible { display: block; }

.content {
  min-width: 0;
  margin-top: 40px; padding: 34px 36px;
  border-radius: var(--radius-lg); background: var(--panel);
  font-size: 15.5px; line-height: 1.75; color: #d6e6e9;
  overflow-wrap: break-word;
}
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { color: #fff; font-weight: 800; line-height: 1.3; }
.content h1 { font-size: 30px; margin: 0 0 18px; }
.content h2 { font-size: 23px; margin: 36px 0 14px; padding-left: 12px; border-left: 4px solid var(--cyan); }
.content h3 { font-size: 19px; margin: 28px 0 12px; color: var(--cyan); }
.content h4 { font-size: 17px; margin: 22px 0 10px; }
.content h5, .content h6 { font-size: 15px; margin: 18px 0 8px; }
.content p { margin: 0 0 16px; }
.content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #74e2fb; }
.content strong, .content b { color: #fff; font-weight: 800; }
.content mark { padding: 0 4px; border-radius: 3px; background: var(--lime); color: #0b2a06; }
.content small { font-size: 13px; color: var(--muted); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content li > ul, .content li > ol { margin: 8px 0 0; }
.content ul li::marker { color: var(--cyan); }
.content ol li::marker { color: var(--cyan); font-weight: 800; }
.content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: var(--radius-lg); }
.content figure { margin: 24px 0; }
.content figure img { margin: 0 auto; }
.content figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--muted); }
.content table {
  width: 100%; margin: 24px 0;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--panel-3); border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); font-size: 14.5px; line-height: 1.5;
}
.content caption { padding: 0 0 10px; font-size: 13px; color: var(--muted); text-align: left; }
.content th { padding: 12px 14px; text-align: left; font-weight: 800; background: var(--cyan); color: #04252a; }
.content td { padding: 11px 14px; border-top: 1px solid var(--panel-3); vertical-align: top; }
.content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.content tbody tr:hover { background: rgba(22, 200, 244, .08); }
.content blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--lime); border-radius: 0 var(--radius) var(--radius) 0; background: var(--panel-2); font-style: italic; }
.content blockquote p:last-child { margin-bottom: 0; }
.content hr { height: 1px; margin: 32px 0; border: 0; background: var(--panel-3); }
.content code { padding: 2px 6px; border-radius: 4px; background: var(--panel-3); font-size: .9em; }
.content pre { margin: 24px 0; padding: 16px; overflow-x: auto; border-radius: var(--radius); background: var(--bg); }
.content pre code { padding: 0; background: none; }
.content iframe, .content video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 24px 0; border: 0; border-radius: var(--radius-lg); }
.content dl { margin: 0 0 18px; }
.content dt { font-weight: 800; color: #fff; }
.content dd { margin: 0 0 10px 18px; color: var(--muted); }
.content details { margin: 0 0 8px; padding: 14px 18px; border-radius: var(--radius); background: var(--panel-2); }
.content summary { cursor: pointer; font-weight: 800; color: #fff; }
.content details[open] summary { margin-bottom: 10px; color: var(--cyan); }

.footer { margin-top: auto; padding: 36px 24px 22px; background: var(--side); color: var(--muted); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.4fr; gap: 26px; max-width: 1280px; margin: 0 auto; }
.footer__about { margin: 12px 0; font-size: 13px; }
.footer__title { margin: 0 0 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 8px; }
.footer__list a { font-size: 13.5px; transition: color .2s; }
.footer__list a:hover { color: var(--cyan); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; background: var(--panel); font-size: 12.5px; font-weight: 700; color: #fff; }
.orgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge-18 { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 2px solid var(--cyan); border-radius: 50%; font-size: 13px; font-weight: 900; color: #fff; }
.org { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 6px; background: var(--panel); font-size: 12.5px; font-weight: 800; color: #fff; transition: background .2s, color .2s; }
.org:hover { background: var(--cyan); color: #04252a; }
.footer__note { margin: 12px 0 0; font-size: 12.5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; max-width: 1280px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: #fff; }

.overlay { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cyan); color: #04252a; box-shadow: var(--shadow); font-size: 18px; font-weight: 800;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s;
}
.to-top:hover { background: #4fd8fa; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 60px 16px; text-align: center; }
.error-page__code { display: flex; align-items: center; gap: .05em; font-size: clamp(100px, 18vw, 180px); font-weight: 900; line-height: 1; }
.error-drop { width: .6em; height: .78em; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 60%, #8ee9ff, var(--cyan) 50%, #0a7fa0); clip-path: polygon(50% 0, 100% 55%, 100% 100%, 0 100%, 0 55%); border-radius: 0 0 50% 50%; animation: drip 2.6s ease-in-out infinite; }
@keyframes drip { 50% { transform: translateY(.06em); } }
.error-page h1 { margin: 24px 0 10px; font-size: clamp(24px, 4vw, 32px); }
.error-page p { max-width: 520px; margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.error-page__links a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--panel); font-size: 13px; font-weight: 700; }
.error-page__links a:hover { color: var(--cyan); }

.main--single { max-width: 1100px; }
.main--single .content { margin-top: 0; }

@media (max-width: 1440px) {
  .row__track { grid-auto-columns: calc((100% - 5 * 12px) / 6); }
}

@media (max-width: 1280px) {
  .row__track { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1099px) {
  .header__inner { gap: 10px; padding: 0 12px; height: 56px; }
  .logo img { height: 24px; }
  .side { top: 0; z-index: 70; width: min(84vw, 300px); transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: var(--shadow); }
  .side__top { display: flex; }
  .bonus { margin: 16px; }
  .group__head { padding: 18px 20px 10px; }
  .group__list a { padding: 9px 20px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .side { transform: none; visibility: visible; }
  body.menu-open .overlay { opacity: 1; visibility: visible; }
  .shell { margin-left: 0; }
  .main { padding: 14px 12px 30px; }
  .row__track { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
}

@media (max-width: 768px) {
  .content { padding: 22px 16px; font-size: 15px; line-height: 1.7; }
  .content h1 { font-size: 25px; }
  .content h2 { font-size: 20px; margin-top: 28px; }
  .content h3 { font-size: 17.5px; }
  .content h4 { font-size: 16px; }
  .content table {
    display: block; width: 100%; max-width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; font-size: 14px;
  }
  .content th, .content td { padding: 10px 12px; }
  .wins { grid-template-columns: minmax(0, 1fr); }
  .wins__title { padding: 10px 14px; font-size: 14px; }
  .wins__title .ico { width: 36px; height: 36px; font-size: 30px; }
  .footer { padding: 30px 14px 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .row__track { grid-auto-columns: 40%; gap: 10px; }
  .row__nav { display: none; }
  .cats { gap: 6px; margin-top: 22px; }
  .cat { width: 68px; font-size: 12.5px; }
  .cat__ico { width: 50px; height: 50px; }
  .wins__track { grid-auto-columns: 240px; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 400px) {
  .logo img { height: 21px; }
  .header__auth { gap: 6px; }
  .header__auth .btn { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .burger { width: 34px; height: 34px; }
}

@media (max-width: 340px) {
  .header__auth .btn--ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
