:root {
  --bg: #05070d;
  --bg-elevated: #0c0f18;
  --surface: #12151f;
  --surface-2: #181c28;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --accent: #e7ff3d;
  --accent-ink: #11140a;
  --danger: #ff4d6d;
  --radius: 18px;
  --header-h: 72px;
  --bottom-h: 68px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}

.icon-btn:hover,
.nav-link:hover {
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost {
  background: #1a2030;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-wide {
  width: 100%;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 96px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  padding: 48px 40px;
  background:
    radial-gradient(circle at 80% 30%, rgba(168, 62, 255, 0.35), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 60, 130, 0.2), transparent 30%),
    linear-gradient(120deg, #15101f 0%, #2a1438 42%, #0b0d16 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% 40%;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 80, 160, 0.18), transparent 60%);
  pointer-events: none;
}

.hero > *:not(.hero-mascot) {
  position: relative;
  z-index: 1;
}

.hero-mascot {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(58%, 640px);
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero p {
  margin: 0 0 28px;
  color: #d3d8e8;
  max-width: 420px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero {
  min-width: 180px;
  min-height: 52px;
  border-radius: 14px;
}

.category-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(90deg, #151924, #10131c);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.cat-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cat-card span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 8px;
}

.tile-art {
  width: 132px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: #12141c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.link-all {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.bonus-scroller,
.provider-scroller,
.game-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.game-scroller.slot-rail {
  grid-auto-columns: 158px;
}

.provider-scroller {
  grid-auto-columns: 168px;
}

.slots-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.slots-toolbar input {
  flex: 1;
  min-width: 180px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.bonus-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.bonus-card .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.gift {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3ff63, #b8c31a);
  display: grid;
  place-items: center;
  color: #1a1a08;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bonus-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.bonus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.details {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.bonus-card .btn {
  margin-top: 14px;
}

.provider {
  height: 72px;
  border-radius: 16px;
  background: #1b2030;
  display: grid;
  place-items: center;
  padding: 0 16px;
}

.provider img {
  width: 124px;
  height: 36px;
  object-fit: contain;
}

.app-banner {
  margin-top: 22px;
  border-radius: 22px;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.55), rgba(8, 10, 16, 0.15)),
    radial-gradient(circle at 70% 40%, #3b2a08, #120e08 55%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.app-banner h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.app-banner p {
  margin: 0 0 18px;
  color: #d7dbe8;
}

.app-art {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #1a120c;
  border: 1px solid rgba(255, 215, 80, 0.25);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.feature {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center 20%;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.9));
}

.feature.lottery { background-image: url("../img/lottery.png"); background-position: center 8%; }
.feature.tournament { background-image: url("../img/tournament.png"); background-position: center 18%; }
.feature.missions { background-image: url("../img/missions.png"); background-position: center 32%; }
.feature.achievements { background-image: url("../img/achievements.png"); background-position: center 6%; }

.feature h3,
.feature .btn {
  position: relative;
  z-index: 1;
}

.feature h3 {
  margin: 0 0 10px;
}

.game-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-weight: 700;
  background: #161a24;
  border: 0;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.game-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-name {
  position: relative;
  z-index: 1;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.game-card .play-chip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 13, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
}

.game-card:hover .play-chip,
.game-card:focus-visible .play-chip {
  opacity: 1;
}

.game-card:has(img) .game-card-name,
.game-card:has(img)::after {
  display: none;
}

.play-chip span {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
}

.game-card small {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff3b6b;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 10px;
  z-index: 2;
}

.play-preview {
  text-align: center;
}

.play-preview img {
  width: min(220px, 70%);
  margin: 0 auto 16px;
  border-radius: 16px;
}

.article {
  margin-top: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.article h2 {
  margin-top: 0;
}

.article.prose h2 {
  margin-top: 36px;
}

.article.prose > h2:first-child {
  margin-top: 0;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.breadcrumbs {
  margin: 0 0 10px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "-";
  color: var(--muted);
  font-weight: 650;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: #d7deee;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.page-hero .hero-actions {
  margin-top: 18px;
}

.page-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 20px;
  background: #1a120c;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 22px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article th,
.article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article th {
  color: var(--muted);
  font-weight: 650;
}

.article h3 {
  margin-top: 28px;
}

.article p,
.article li {
  color: #c5ccdc;
  line-height: 1.65;
}

.article p a {
  color: var(--accent);
  font-weight: 650;
}

.toc {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 18px;
}

.toc a {
  color: #dce3f4;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 110px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.site-footer a {
  color: #c9d2e6;
  text-decoration: none;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.pay-row img {
  height: 28px;
  width: auto;
  max-width: 78px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

.pay-row img.coin,
.pay-row img.on-dark {
  background: #1b2030;
}

.pay-row img.coin {
  width: 32px;
  height: 32px;
  max-width: none;
  padding: 0;
  border-radius: 50%;
}

.age-note {
  margin-top: 18px;
  font-size: 0.85rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0a0d14;
  border-top: 1px solid var(--line);
  z-index: 35;
}

.bottom-nav button,
.bottom-nav a {
  border: 0;
  background: transparent;
  color: #c5ccdc;
  display: grid;
  place-items: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.drawer.open,
.modal.open {
  display: block;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #10131b;
  padding: 20px;
  overflow: auto;
}

.drawer-panel a,
.drawer-panel button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 12px 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.modal-card {
  position: relative;
  width: min(420px, calc(100% - 32px));
  margin: 12vh auto 0;
  background: #141824;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.modal-card h2 {
  margin-top: 0;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1018;
  color: white;
  padding: 0 12px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottom-h) + 16px);
  background: #1c2434;
  border: 1px solid var(--line);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
  z-index: 60;
}

.toast.show {
  display: block;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 40px;
  }

  .page {
    padding-bottom: 40px;
  }
}

@media (max-width: 900px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .category-row,
  .app-banner,
  .feature-grid,
  .footer-grid,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero img {
    height: 220px;
    object-fit: contain;
    object-position: center;
  }

  .hero {
    padding: 28px 20px 34px;
  }

  .hero-mascot {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;
    margin-top: 18px;
    mask-image: none;
    object-fit: contain;
    object-position: center;
  }

  .game-scroller,
  .game-scroller.slot-rail {
    grid-auto-columns: 140px;
  }
}
