:root {
  --bg: #000000;
  --line: #a7741f;
  --gold: #ffc400;
  --gold-deep: #c88c16;
  --text: #ececec;
  --muted: #adadad;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

body {
  display: block;
}

.site-header {
  width: 100%;
  background:
    radial-gradient(circle at top center, rgba(255, 196, 0, 0.08), transparent 35%),
    linear-gradient(180deg, #040404 0%, #000000 100%);
  border-bottom: 1px solid var(--line);
}

.header-shell,
.games-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mobile-header {
  display: none;
}

.header-shell {
  padding-top: 10px;
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.login-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-button {
  height: 36px;
  min-width: 102px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(180deg, #171717 0%, #050505 100%);
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher {
  position: relative;
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.language-button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  min-width: 0;
  height: auto;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: -6px;
  width: 200px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(53, 53, 53, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  display: none;
  z-index: 30;
}

.language-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 30px;
  width: 14px;
  height: 14px;
  background: rgba(53, 53, 53, 0.97);
  transform: rotate(45deg);
}

.language-switcher::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  height: 14px;
}

.language-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 0 14px;
  color: #c8c8c8;
  font-size: 14px;
  line-height: 1;
  background: rgba(53, 53, 53, 0.97);
  text-decoration: none;
}

.language-option + .language-option {
  border-top: 1px solid rgba(201, 143, 30, 0.55);
}

.language-option.active {
  background: rgba(73, 73, 73, 0.97);
}

.language-option img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}

.language-switcher:hover .language-dropdown {
  display: block;
}

.flag-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9f9f9f;
}

.live-clock {
  color: #c5b8a4;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.header-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 0;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  min-height: 72px;
}

.brand img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.mobile-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
}

.mobile-profile-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.mobile-brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-brand img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.mobile-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mobile-download img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-bottom: 10px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

.hero-banner {
  width: 100%;
  border-bottom: 1px solid rgba(167, 116, 31, 0.45);
}

.hero-banner picture {
  display: block;
}

.hero-banner-image {
  display: block;
  width: min(1920px, 100%);
  height: auto;
  margin: 0 auto;
  object-fit: cover;
}

.page-main {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0 12%, transparent 12% 88%, rgba(255, 255, 255, 0.05) 88% 100%),
    linear-gradient(60deg, rgba(255, 255, 255, 0.03) 0 18%, transparent 18% 82%, rgba(255, 255, 255, 0.03) 82% 100%),
    linear-gradient(180deg, #151515 0%, #090909 48%, #040404 100%);
}

.cta-strip {
  padding: 28px 0;
}

.cta-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  opacity: 0.7;
  pointer-events: none;
}

.cta-button-secondary {
  border: 1px solid #d6a019;
  background: linear-gradient(180deg, #231b0f 0%, #0f0b05 100%);
  color: #ffd64a;
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 188, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.22);
}

.cta-button-secondary::before {
  background: linear-gradient(180deg, rgba(255, 214, 74, 0.12), transparent 60%);
}

.cta-button-primary {
  border: 1px solid #d99e00;
  background: linear-gradient(180deg, #fff4ae 0%, #ffd447 42%, #f4b400 70%, #d99600 100%);
  color: #16120a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(123, 74, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.22);
}

.cta-button-primary::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 55%);
}

.cta-button:hover {
  transform: translateY(-1px);
}

.cta-button-secondary:hover {
  border-color: #efbc37;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 171, 0.24),
    0 0 14px rgba(255, 196, 0, 0.18);
}

.cta-button-primary:hover {
  border-color: #efb11d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(123, 74, 0, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.cta-play-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.cta-play-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.games-section {
  padding: 28px 0;
}

.live-games-section {
  padding: 28px 0;
}

.content-section {
  padding: 28px 0 42px;
}

.content-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #b8b1aa;
}

.content-shell h1,
.content-shell h2,
.content-shell h3 {
  color: #f1d8a2;
  line-height: 1.2;
  margin: 0 0 14px;
}

.content-shell h1 {
  font-size: 32px;
}

.content-shell h2 {
  margin-top: 30px;
  font-size: 24px;
}

.content-shell h3 {
  margin-top: 24px;
  font-size: 18px;
}

.content-shell p,
.content-shell li {
  font-size: 14px;
  line-height: 1.8;
}

.content-shell p {
  margin: 0 0 14px;
}

.content-shell ul,
.content-shell ol {
  margin: 0 0 16px 22px;
  padding: 0;
}

.content-shell table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 12px;
  font-size: 14px;
}

.content-shell th,
.content-shell td {
  border: 1px solid rgba(201, 143, 30, 0.35);
  padding: 12px 14px;
  text-align: left;
}

.content-shell th {
  background: rgba(201, 143, 30, 0.14);
  color: #ffd978;
  font-weight: 700;
}

.content-shell td {
  background: rgba(255, 255, 255, 0.03);
}

.live-games-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.live-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 24px;
  align-items: start;
}

.live-game-card {
  position: relative;
  text-align: center;
}

.live-game-card img {
  display: block;
  width: 100%;
  max-width: 334px;
  height: auto;
  margin: 0 auto;
}

.live-game-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 34px;
  margin-top: -12px;
  padding: 0 22px;
  border-radius: 3px;
  border: 1px solid #d59a08;
  background: linear-gradient(180deg, #fff3b2 0%, #ffd95a 36%, #ffbf11 68%, #df9800 100%);
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(132, 82, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.live-game-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 58%);
  pointer-events: none;
}

.live-game-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(132, 82, 0, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.3);
}

.site-footer {
  border-top: 1px solid rgba(201, 143, 30, 0.7);
  background:
    linear-gradient(180deg, #1a1719 0%, #0b0a0c 58%, #050506 100%);
  padding: 18px 0 22px;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: start;
}

.footer-brand p {
  margin: 0 0 8px;
  color: #8a7867;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.footer-description p {
  margin: 0;
  color: #8d867f;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  max-width: 740px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.games-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.game-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.more-menu {
  position: relative;
  display: inline-flex;
}

.game-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0px;
  cursor: default;
}

.game-tab.active {
  color: var(--gold);
}

.game-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

.game-tab.moon::before {
  content: none;
}

.category-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: -3px;
}

.game-tab.more::after {
  content: "\25BE";
  font-size: 9px;
  margin-left: 8px;
  color: #9d9d9d;
  vertical-align: 2px;
}

.more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 160px;
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(52, 52, 52, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 20;
}

.more-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 26px;
  width: 12px;
  height: 12px;
  background: rgba(52, 52, 52, 0.96);
  transform: rotate(45deg);
}

.more-dropdown span {
  display: block;
  color: #d8d8d8;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
}

.more-dropdown span + span {
  margin-top: 6px;
}

.more-menu:hover .more-dropdown {
  display: block;
}

.games-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.filter-pill,
.search-pill {
  height: 36px;
  border: 1px solid #4f4f4f;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.92);
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d0d0d0;
  font: inherit;
  padding: 0 14px;
  cursor: default;
}

.filter-label {
  color: #a7a7a7;
}

.filter-value {
  font-weight: 700;
  color: #ffffff;
}

.search-pill {
  display: flex;
  align-items: center;
  min-width: 240px;
  padding: 0 14px;
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
}

.search-pill input::placeholder {
  color: #767676;
}

.search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--gold);
  right: -6px;
  bottom: -2px;
  transform: rotate(45deg);
  border-radius: 999px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 26px;
}

.game-card h3 {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #8a8a8a;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.game-thumb {
  position: relative;
  height: 146px;
  border: 2px solid #cfb35b;
  border-radius: 7px;
  overflow: visible;
  background-color: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(255, 214, 120, 0.12) inset;
}

.game-thumb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.game-thumb-image-card {
  border-color: #e3c35b;
  box-shadow:
    0 0 0 1px rgba(255, 236, 171, 0.35) inset,
    0 0 14px rgba(227, 195, 91, 0.14);
}

.game-thumb-image-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 30%);
}

.game-thumb-image-card .game-art-title {
  display: none;
}

.game-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.game-art-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  text-align: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}

.bonus-badge {
  position: absolute;
  top: -14px;
  left: -15px;
  width: 68px;
  height: 68px;
  background: url("/assets/box-icon-en.png") center / contain no-repeat;
  transform: rotate(-10deg);
  z-index: 3;
}

.bonus-number-image {
  position: absolute;
  width: 35px;
  height: auto;
  left: 16px;
  top: 18px;
  transform: rotate(10deg);
}

.new-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: auto;
  z-index: 2;
}

.jackpot-bar {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -11px;
  height: 29px;
  display: block;
  padding: 0;
  background: url("/assets/bkg_jackpot.png") center / 100% 100% no-repeat;
  z-index: 4;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.42));
}

.coin-sprite {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  background: url("/assets/coin.png") 0 0 / 434.42px 28px no-repeat;
  animation: coin-flip 1s steps(15) infinite;
}

.jackpot-bar > span:not(.coin-sprite) {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

@keyframes coin-flip {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -434.42px 0;
  }
}

@media (max-width: 920px) {
  .header-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 18px 24px;
    padding-bottom: 0;
  }

  .games-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .games-actions {
    justify-content: space-between;
  }

  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    border-bottom: 0;
  }

  .site-header .header-shell {
    width: 100%;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 60px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #3a3937 0%, #111111 100%);
  }

  .header-shell {
    padding-top: 0;
  }

  .header-top,
  .header-bottom {
    display: none;
  }

  .mobile-language {
    padding-left: 8px;
    margin-left: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
  }

  .mobile-language .language-button {
    gap: 4px;
  }

  .mobile-language .flag-icon {
    width: 30px;
    height: 30px;
  }

  .mobile-language .language-dropdown {
    right: 0;
  }

  .hero-banner {
    overflow: hidden;
  }

  .hero-banner-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
  }

  .header-shell,
  .games-shell,
  .cta-shell,
  .live-games-shell,
  .footer-shell,
  .content-shell {
    width: min(100%, calc(100% - 20px));
  }

  .live-clock {
    text-align: right;
    line-height: 1.5;
  }

  .game-tabs {
    gap: 16px;
  }

  .games-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-shell {
    gap: 10px;
    flex-wrap: wrap;
  }

  .search-pill {
    min-width: 0;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .game-thumb {
    height: 138px;
  }

  .live-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .live-game-card img {
    max-width: 100%;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-brand img {
    width: 170px;
  }
}
