:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #151515;
  --gold: #f7c94b;
  --gold-2: #b97917;
  --text: #fff8df;
  --muted: #b9b9b9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background:
    radial-gradient(circle at 15% 0, rgba(247, 201, 75, 0.16), transparent 18rem),
    radial-gradient(circle at 85% 15%, rgba(160, 30, 40, 0.18), transparent 20rem),
    #050505;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.image-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

button:active,
[role="button"]:active,
.game-card:active {
  transform: scale(0.985);
  filter: brightness(1.08);
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  padding-bottom: 154px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(247, 201, 75, 0.12), transparent 9rem),
    linear-gradient(180deg, #151515 0%, #070707 46%, #12100a 100%);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  height: 78px;
  padding: 12px 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(247, 201, 75, 0.18), transparent 9rem),
    #050505;
  border-bottom: 1px solid rgba(247, 201, 75, 0.16);
}

.menu-toggle {
  display: grid;
  align-content: center;
  gap: 4px;
  width: 46px;
  height: 52px;
  border-radius: 7px;
  background: #1c1c1c;
  padding: 8px;
  border: 1px solid rgba(247, 201, 75, 0.18);
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.brand {
  display: grid;
  place-items: center;
  height: 54px;
  border-radius: 7px;
  background: linear-gradient(180deg, #241604, #070707);
  border: 1px solid rgba(247, 201, 75, 0.22);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 112px;
  height: 46px;
  object-fit: contain;
}

.auth-btn {
  min-height: 54px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffd86a, #b87714);
  color: #1d1202;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.hero {
  position: relative;
  height: 148px;
  margin: 9px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #080808;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  height: 100%;
  transform: translateX(calc(var(--slide, 0) * -100%));
  transition: transform 0.35s ease;
}

.hero-slide {
  position: relative;
  min-width: 0;
  padding: 0;
  color: white;
  background:
    radial-gradient(circle at 82% 38%, rgba(247, 201, 75, 0.42), transparent 4.8rem),
    linear-gradient(135deg, #4b2400, #111 72%);
}

.hero-slide::after {
  content: none;
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080808;
  transform: none;
  filter: none;
}

.hero-copy {
  display: none;
}

.hero-slide:nth-child(2) { background: linear-gradient(135deg, #6f1520, #111 72%); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #745206, #111 72%); }
.hero-slide:nth-child(4) { background: linear-gradient(135deg, #4b1a8b, #111 72%); }

.hero-copy h1 {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
}

.hero-copy strong {
  display: block;
  margin-top: 9px;
  max-width: 260px;
  font-size: 25px;
  line-height: 1;
}

.hero-copy p {
  margin: 5px 0 0;
  color: #f2e1ad;
  font-size: 12px;
  font-weight: 900;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}

.dots button.active {
  width: 18px;
  background: var(--gold);
}

.mini-promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px 12px;
}

.mini {
  min-height: 58px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.exclusive {
  padding: 0 12px 12px;
  color: var(--text);
}

.exclusive h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 17px;
}

.reward-row {
  display: grid;
  gap: 8px;
}

.reward-row article {
  display: grid;
  grid-template-columns: 30px 1fr auto 48px;
  gap: 7px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 96% 0, rgba(247, 201, 75, 0.16), transparent 4rem),
    #151515;
  border: 1px solid rgba(247, 201, 75, 0.16);
  cursor: pointer;
}

.reward-row i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffe9a1;
  color: #231500;
  font-style: normal;
  font-weight: 900;
}

.reward-row small {
  color: #f5f0df;
  font-size: 12px;
  font-weight: 800;
}

.reward-row b {
  color: #b87714;
  font-size: 14px;
}

.reward-row button,
.load-more {
  min-height: 30px;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffd86a, #b87714);
  color: #1d1202;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 10px;
  scrollbar-width: none;
}

.categories button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 74px;
  min-height: 54px;
  border-radius: 7px;
  background: #1a1a1a;
  color: #cfcfcf;
  font-size: 11px;
  font-weight: 900;
}

.categories button.active {
  background: linear-gradient(180deg, #ffe17a, #b97917);
  color: #1d1202;
  box-shadow: 0 8px 18px rgba(185, 121, 23, 0.25);
}

.categories i {
  font-style: normal;
  font-size: 11px;
}

.games-section {
  padding: 0 12px 14px;
  color: var(--text);
}

.page-view {
  display: none;
  margin: 0 12px 14px;
  padding: 16px;
  border-radius: 8px;
  background: #151515;
  border: 1px solid rgba(247, 201, 75, 0.14);
}

.page-view.active {
  display: block;
}

.page-view h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 18px;
}

.page-view p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-modal {
  position: fixed;
  inset: auto 0 0;
  left: 50%;
  z-index: 47;
  width: min(100%, 430px);
  max-height: 74vh;
  padding: 18px;
  border-radius: 18px 18px 0 0;
  background: #111;
  border-top: 1px solid rgba(247, 201, 75, 0.22);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, 110%);
  transition: transform 0.22s ease;
}

.page-modal.open {
  transform: translate(-50%, 0);
}

.page-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.page-modal h2 {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
}

.page-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-modal button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #242424;
  color: white;
  font-weight: 900;
}

.section-title {
  display: block;
  margin-bottom: 9px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #151515;
  border: 1px solid rgba(247, 201, 75, 0.12);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(247, 201, 75, 0.42);
  outline: 0;
}

.game-card .art {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 4px;
  background:
    radial-gradient(circle at 50% 34%, rgba(247, 201, 75, 0.18), transparent 3.8rem),
    #080808;
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-card strong,
.game-card span {
  display: block;
  padding: 0 6px;
}

.game-card strong {
  padding-top: 6px;
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card span {
  padding-bottom: 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.load-more {
  width: 100%;
  margin-top: 12px;
}

.site-footer {
  padding: 12px 14px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}

.compliance-logo {
  display: block;
  width: min(100%, 385px);
  height: auto;
  margin: 0 auto 10px;
}

.footer-pages,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.footer-pages button,
.legal-links button {
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.support {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: 150px;
  z-index: 25;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.support img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 24;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 5px;
  align-items: center;
  padding: 7px 10px;
  background: rgba(5, 5, 5, 0.96);
  border-top: 1px solid rgba(247, 201, 75, 0.14);
}

.download.hidden {
  display: none;
}

.download-link {
  min-height: 48px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.download-link img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.download-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 24;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 430px);
  height: 76px;
  transform: translateX(-50%);
  padding: 0 14px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    #070707;
  border-top: 1px solid rgba(247, 201, 75, 0.16);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bottom-nav button {
  background: transparent;
  color: #e7e7e7;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 0 #000;
}

.bottom-nav button.active {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(247, 201, 75, 0.85), 0 2px 12px rgba(247, 201, 75, 0.35);
}

.auth-modal,
.responsible-modal {
  width: min(94vw, 410px);
  max-height: 92vh;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: #111;
  color: var(--text);
}

.auth-modal::backdrop,
.responsible-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.auth-modal {
  padding: 24px 20px 18px;
  text-align: center;
}

.modal-logo {
  display: block;
  width: 128px;
  height: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #222;
  color: white;
}

.continue-action,
.responsible-actions button:last-child {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffd86a, #b87714);
  color: #1d1202;
  font-weight: 900;
}

.safety-note {
  display: block;
  margin-top: 10px;
  color: #666;
}

.responsible-content {
  max-height: 92vh;
  overflow: auto;
  padding: 24px 20px 18px;
}

.responsible-content h2,
.responsible-content h3 {
  margin: 0 0 10px;
  text-align: center;
}

.responsible-content h2 {
  color: var(--gold);
  font-size: 21px;
}

.responsible-content h3 {
  color: #fff;
  font-size: 14px;
}

.responsible-content p,
.responsible-content li {
  color: #ddd;
  font-size: 12px;
  line-height: 1.42;
}

.responsible-content ul {
  padding-left: 18px;
}

.forfeiture {
  display: flex;
  gap: 8px;
}

.forfeiture strong {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffd86a;
}

.responsible-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 12px auto;
}

.responsible-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.responsible-actions button {
  min-height: 40px;
  border-radius: 6px;
  background: #222;
  color: white;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 132px;
  z-index: 50;
  max-width: min(88vw, 360px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(247, 201, 75, 0.98);
  color: #1b1103;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.page-menu {
  position: fixed;
  top: 0;
  right: max(0px, calc((100vw - 430px) / 2));
  z-index: 46;
  width: min(82vw, 320px);
  height: 100vh;
  padding: 16px 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(247, 201, 75, 0.14), transparent 10rem),
    #0d0d0d;
  color: var(--text);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.42);
  transform: translateX(110%);
  transition: transform 0.24s ease;
}

.page-menu.open {
  transform: translateX(0);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-bottom: 12px;
}

.menu-head img {
  display: block;
  width: 118px;
  height: 42px;
  object-fit: contain;
}

.menu-head button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #202020;
  color: white;
  font-weight: 900;
  font-size: 18px;
}

.page-menu > button {
  width: 100%;
  min-height: 42px;
  margin-bottom: 6px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: #f2f2f2;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-menu > button:hover,
.page-menu > button:focus-visible {
  background: rgba(247, 201, 75, 0.08);
  color: var(--gold);
  outline: 0;
}

.page-menu .register-menu {
  margin-top: 12px;
  min-height: 48px;
  background: linear-gradient(180deg, #ffd86a, #b87714);
  color: #1d1202;
  text-align: left;
  border: 0;
  font-size: 13px;
  font-weight: 900;
}

@media (min-width: 760px) {
  body { padding: 24px 0; }

  .app-shell {
    min-height: 860px;
    border-radius: 20px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
  }

  .bottom-nav,
  .download,
  .support,
  .toast,
  .menu-backdrop,
  .page-menu,
  .page-modal {
    position: absolute;
  }

  .page-menu {
    right: 0;
    height: 100%;
  }

  .support {
    right: 14px;
  }
}

@media (max-width: 380px) {
  .topbar {
    grid-template-columns: 96px minmax(0, 1fr) 42px;
    gap: 8px;
    padding-inline: 10px;
  }

  .brand {
    height: 48px;
  }

  .brand-logo {
    max-width: 90px;
    height: 40px;
  }

  .auth-btn,
  .menu-toggle {
    min-height: 48px;
    height: 48px;
  }

  .auth-btn {
    font-size: 12px;
  }
}
