:root {
  --bg: #08112c;
  --bg-alt: #131c38;
  --bg-deep: #131c38;
  --surface: #131c38;
  --border: #1d2640;
  --text: #fff;
  --muted: #a9acb8;
  --primary: #ec5a29;
  --primary-light: #ec5a29;
  --primary-border: #ec5a29;
  --on-primary: #fff;
  --on-primary-muted: #cfced1;
  --accent: #ec5a29;
  --on-accent: #fff;
  --warning: #ec5a29;
  --icon-dark: #1b1b34;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img {
  width: 100%;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1106px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 900px) {
  .only-mobile {
    display: none;
  }
}

@media (max-width: 899px) {
  .only-desktop {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  transition: filter 0.2s, transform 0.2s;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
}
.btn--sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}
.btn--lg {
  height: 44px;
  padding: 0 25px;
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.header {
  border-bottom: 1px solid var(--border);
}
.header__top {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-alt);
  padding: 5px 0;
}
.header__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__top .header__row {
  height: 62px;
  justify-content: space-between;
}
.header__nav .header__row {
  height: 56px;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__login {
  font-weight: 500;
  font-size: 13px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 80px;
}
.logo img {
  width: 100%;
}
.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(126.87deg, var(--logo-from) 0%, var(--logo-to) 71.43%);
}
.logo__text {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 219px;
  height: 38px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.search__icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  flex: none;
}
.search input {
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 12px;
}
.search input::-moz-placeholder {
  color: var(--muted);
}
.search input::placeholder {
  color: var(--muted);
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.lang__globe {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 32px;
  flex: 1;
}
.nav__link {
  position: relative;
  padding: 18px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.nav__link:hover, .nav__link.is-active {
  color: var(--text);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--primary);
}

.jackpot {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.jackpot__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.jackpot__label {
  color: var(--primary);
}
.jackpot__sep {
  color: var(--muted);
}

.round-btn,
.burger {
  display: none;
}

.burger {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  place-items: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.burger span {
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before {
  top: -5px;
}
.burger span::after {
  top: 5px;
}

@media (max-width: 899px) {
  .header__top .header__row {
    height: 56px;
    gap: 10px;
  }
  .header__nav .header__row {
    height: 48px;
    justify-content: space-between;
  }
  .header__actions {
    gap: 10px;
  }
  .header__login {
    font-size: 12px;
  }
  .header.is-open .nav {
    display: flex;
  }
  .header {
    border-bottom: 0;
    position: relative;
  }
  .logo {
    margin-right: auto;
    max-width: 70px;
  }
  .logo__text {
    font-size: 12px;
  }
  .logo__mark {
    width: 28px;
    height: 28px;
  }
  .search,
  .lang {
    display: none;
  }
  .burger {
    display: grid;
  }
  .btn--sm {
    height: 34px;
  }
  .header__nav {
    border-bottom: 0;
  }
  .jackpot {
    border: 0;
    background: none;
    padding: 0;
    font-size: 11px;
  }
  .round-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .round-btn span {
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--text);
    border-radius: 50%;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav__link {
    padding: 12px 0;
  }
  .nav__link.is-active::after {
    display: none;
  }
}
.main {
  padding-top: 40px;
  overflow-x: clip;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 357px;
  gap: 27px;
}
.hero__main {
  position: relative;
  overflow: hidden;
  min-height: 377px;
  padding: 30px 34px 26px;
  border: 1px solid var(--primary-border);
  border-radius: 22px;
  background: url("../img/hero-desktop.webp") center/cover no-repeat;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 390px;
}
.hero__title {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
.hero__prize {
  margin-top: 14px;
  font-size: 27px;
  font-weight: 600;
  color: var(--accent);
}
.hero__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.hero__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.hero__terms {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.hero__gift {
  position: absolute;
  z-index: 1;
  right: 4px;
  top: 10px;
  width: 270px;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--glow) 35%, transparent));
}
.hero__side {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.promo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.promo__icon {
  width: 64px;
  flex: none;
}
.promo__title {
  margin: 4px 0 6px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}
.promo__text {
  font-size: 12px;
  color: var(--muted);
}
.promo__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.promo__link-short {
  display: none;
}

@media (max-width: 899px) {
  .main {
    padding-top: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero__main {
    min-height: 492px;
    padding: 14px 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: flex-end;
    background: url("../img/hero-mobile.webp") top/cover no-repeat;
  }
  .hero__content {
    max-width: none;
    width: 100%;
  }
  .hero__title {
    font-size: 27px;
    margin-top: 12px;
    max-width: 200px;
  }
  .hero__prize {
    font-size: 16px;
    margin-top: 10px;
  }
  .hero__text, .hero__link {
    display: none;
  }
  .hero__actions {
    margin-top: 12px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__terms {
    margin-top: 10px;
    font-size: 9px;
  }
  .hero__gift {
    width: 170px;
    right: 12px;
    top: 0;
  }
  .hero__main::before, .hero__main::after {
    display: none;
  }
  .hero__side {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hero__side::-webkit-scrollbar {
    display: none;
  }
  .hero__side {
    flex-direction: row;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .promo {
    flex: none;
    width: 260px;
    padding: 14px;
  }
  .promo__icon {
    width: 52px;
  }
  .promo__title {
    font-size: 14px;
    margin: 2px 0 4px;
  }
  .promo__text {
    font-size: 11px;
  }
  .promo__link {
    margin-top: 6px;
  }
  .promo__link-full {
    display: none;
  }
  .promo__link-short {
    display: inline;
  }
}
.categories {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar {
  display: none;
}
.categories {
  gap: 14px;
  margin-top: 46px;
  padding-bottom: 2px;
}

.cat {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 130px;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  transition: border-color 0.2s;
}
.cat:hover {
  border-color: var(--primary);
}
.cat__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
}
.cat__icon::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--primary-light);
  transform: rotate(45deg);
}
.cat__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.cat__count {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.cat.is-active {
  background: var(--primary);
  border-color: var(--primary);
}
.cat.is-active .cat__icon {
  background: var(--surface);
}
.cat.is-active .cat__icon::after {
  background: var(--text);
}
.cat.is-active .cat__name {
  color: var(--surface);
}
.cat.is-active .cat__count {
  color: var(--surface);
}

.section {
  padding: 50px 0;
  overflow-x: clip;
}
.section--trending {
  margin-top: 30px;
}
.section--wins {
  background: var(--bg-alt);
  padding-bottom: 40px;
  margin-top: 30px;
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}
.section__title::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--primary);
}
.section__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.section__head .btn {
  margin-top: 2px;
}

.tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs {
  gap: 10px;
  margin-top: 20px;
}

.tab {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.game--gold {
  --c1: #c8501e;
  --c2: #6b220d;
}

.game--candy {
  --c1: #5a2bd6;
  --c2: #2c1470;
}

.game--zeus {
  --c1: #d98a8a;
  --c2: #4a2a5c;
}

.game--bass {
  --c1: #4a7aa8;
  --c2: #1c2a44;
}

.game--train {
  --c1: #a65a2a;
  --c2: #2a1a12;
}

.game--crazy {
  --c1: #c8781e;
  --c2: #3a1a5c;
}

.game--tiger {
  --c1: #e07a1e;
  --c2: #3a1a5c;
}

.game--dragon {
  --c1: #8a3ab0;
  --c2: #2a1440;
}

.games {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.games::-webkit-scrollbar {
  display: none;
}
.games {
  gap: 20px;
  margin: 32px -16px 0;
  padding: 16px;
}

.game {
  position: relative;
  flex: none;
  width: 189px;
  height: 234px;
  display: flex;
  align-items: flex-end;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--c1), var(--c2));
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.game:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 45%, transparent);
}
.game:hover .game__play {
  opacity: 1;
}
.game--mobile-only {
  display: none;
}
.game__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.game__art {
  position: absolute;
  inset: 0 0 46px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 10px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #ffd87a;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.game__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--on-primary);
}
.game__tag--hot {
  background: var(--warning);
}
.game__tag--new {
  background: var(--primary);
}
.game__tag--jackpot {
  background: var(--accent);
  color: var(--on-accent);
}
.game__play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  padding: 9px 22px;
  border-radius: 8px;
  background: var(--primary);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.game__info {
  position: relative;
  width: 100%;
  padding: 30px 12px 10px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-deep) 92%, transparent) 60%);
}
.game__info b {
  font-size: 12px;
  font-weight: 600;
}
.game__info small {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wins {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.win {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.win__thumb {
  overflow: hidden;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
}
.win__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.win__user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.win__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-from), var(--avatar-to));
}
.win__game {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.win__amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.win__time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.win__time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 899px) {
  .categories {
    margin: 16px -16px 0;
    padding: 0 16px;
    gap: 10px;
  }
  .cat {
    flex: none;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
  }
  .cat__icon {
    width: 22px;
    height: 22px;
  }
  .cat__count {
    display: none;
  }
  .cat__name {
    font-size: 12px;
  }
  .section {
    padding: 24px 0;
  }
  .section--trending {
    margin-top: 0;
    padding-bottom: 12px;
  }
  .section--wins {
    margin-top: 12px;
    padding-bottom: 24px;
  }
  .section__title {
    font-size: 17px;
  }
  .section__title::before {
    height: 16px;
  }
  .section__sub {
    font-size: 10px;
  }
  .btn--sm {
    height: 32px;
    font-size: 11px;
  }
  .tabs {
    margin: 14px -16px 0;
    padding: 0 16px;
    gap: 8px;
  }
  .tab {
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }
  .games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    overflow: visible;
  }
  .game {
    width: auto;
    height: auto;
    aspect-ratio: 1/1.22;
  }
  .game--mobile-only {
    display: flex;
  }
  .game__art {
    font-size: 15px;
  }
  .wins {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .wins::-webkit-scrollbar {
    display: none;
  }
  .wins {
    gap: 10px;
    margin: 16px -16px 0;
    padding: 0 16px;
  }
  .win {
    flex: none;
    width: 236px;
    height: auto;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px 10px;
  }
  .win__thumb {
    width: 40px;
    height: 40px;
  }
  .win__body {
    flex-direction: column;
    gap: 2px;
  }
  .win__meta {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.win__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}