@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --bg-chip: #222;
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #9a9a9a;
  --accent: #e10600;
  --accent-hover: #ff1a14;
  --radius: 12px;
  --header-h: 56px;
  --tabbar-h: 58px;
  --announce-h: 40px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font: "Onest", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.announce {
  min-height: var(--announce-h);
  background: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
}
.announce img { width: 22px; height: 22px; flex: 0 0 auto; }
.announce span { flex: 1; }
.announce__close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  opacity: 0.9;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__logo img { height: 36px; width: auto; }
.header__auth { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s ease;
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}
.btn--ghost:hover { border-color: #fff; }
.btn--red {
  background: var(--accent);
  color: #fff;
}
.btn--red:hover { background: var(--accent-hover); }
.btn--lg { min-height: 42px; padding: 0 18px; border-radius: 999px; }

.app {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 12px calc(var(--tabbar-h) + 24px);
}

.hero {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.hero__slide {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 180px;
  background: #111 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}
.hero__copy {
  position: relative;
  z-index: 1;
  padding: 18px;
  max-width: 420px;
}
.hero__copy h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__copy p {
  margin: 0 0 14px;
  color: #e8e8e8;
  font-size: 14px;
}

.payouts {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}
.payouts__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.payouts__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.payouts__sum {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.payouts__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.pay-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line);
}
.pay-card__mult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pay-card__mult.is-green { background: #166534; }
.pay-card__id { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.pay-card__win { font-weight: 700; font-size: 15px; }
.pay-card__dep { color: var(--muted); font-size: 12px; margin-top: 2px; }

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
.cat:hover, .cat.is-active {
  border-color: rgba(225, 6, 0, 0.55);
  background: #231014;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head a {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.game {
  display: block;
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.game:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}
.game__art {
  aspect-ratio: 1;
  background: #0d0d0d;
}
.game__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game__meta { padding: 10px 10px 12px; }
.game__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}
.game__prov { color: var(--muted); font-size: 12px; }

.seo-h1 {
  margin: 8px 0 12px;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.seo-text {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 8px;
  margin-bottom: 24px;
  color: #d7d7d7;
}
.seo-text h2, .seo-text h3 {
  color: #fff;
  letter-spacing: -0.02em;
}
.seo-text p, .seo-text li { margin: 0 0 12px; }
.seo-text a { color: #ff7a73; text-decoration: underline; }

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.footer__title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
}
.footer a:hover { color: #fff; }
.footer__copy { margin: 0; font-size: 12px; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #8f8f8f;
}
.tabbar a.is-active { color: var(--accent); }
.tabbar svg { width: 20px; height: 20px; }

.chat {
  position: fixed;
  right: 14px;
  bottom: calc(var(--tabbar-h) + 14px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 45;
}
.chat svg { width: 22px; height: 22px; }

@media (min-width: 768px) {
  .app { padding: 18px 18px 40px; }
  .hero {
    grid-template-columns: 1.4fr 1fr;
  }
  .hero__slide { min-height: 240px; }
  .games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar { display: none; }
  .app { padding-bottom: 40px; }
  .chat { bottom: 24px; }
}

@media (max-width: 560px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero__slide:nth-child(n + 2) { display: none; }
}
