:root {
  --bg: #0b0e14;
  --bg-2: #0f141c;
  --bg-3: #161d2a;
  --surface: #121824;
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #00e5ff;
  --cyan-2: #00b4d8;
  --purple: #7928ca;
  --magenta: #c026d3;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --text: #ffffff;
  --muted: #94a3b8;
  --ok: #22c55e;
  --radius: 14px;
  --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.2);
  --header-h: 72px;
  --bottom-bar-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

ul {
  padding-left: 1.2rem;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(121, 40, 202, 0.35));
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  animation: pulse-glow 2.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-neon);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(192, 38, 211, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1200;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 440px;
  padding: 28px 0 18px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(121, 40, 202, 0.28), transparent 55%),
    radial-gradient(ellipse at 20% 20%, rgba(0, 229, 255, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.35), rgba(11, 14, 20, 0.92));
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-offer {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--text);
  animation: float-y 4.5s ease-in-out infinite;
}

.choice-card:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.choice-card:hover {
  box-shadow: var(--shadow-neon);
  color: var(--text);
}

.choice-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.choice-card .card-body {
  padding: 12px;
}

.choice-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.choice-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Mirror status */
.mirror-status {
  background: #0a0d12;
  border-block: 1px solid var(--border);
  padding: 10px 0;
}

.mirror-status-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Lobby nav */
.lobby-nav {
  padding: 14px 0 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.lobby-row {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: var(--text);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: var(--shadow-neon);
}

.providers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.provider-pill {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  background: rgba(18, 24, 36, 0.7);
}

.search-box {
  margin-left: auto;
  min-width: 180px;
  flex: 0 1 220px;
}

.search-box input {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-size: 0.9rem;
}

/* Games grid */
.section {
  padding: 28px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 3 / 4;
  color: var(--text);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.06);
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 14, 0.92) 78%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-card:hover .game-overlay,
.game-card:focus-within .game-overlay,
.game-card.is-open .game-overlay {
  opacity: 1;
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.game-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.game-actions {
  display: grid;
  gap: 6px;
}

.game-actions .btn {
  min-height: 38px;
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
}

/* Incentive widgets */
.incentive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 0.2s ease;
  color: var(--text);
}

.promo-card:hover {
  box-shadow: var(--shadow-neon);
  color: var(--text);
}

.promo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.promo-card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.promo-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.promo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

/* Payments strip */
.payments-strip {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(121, 40, 202, 0.12), rgba(251, 191, 36, 0.08));
  border-block: 1px solid var(--border);
  padding: 18px 0;
}

.pay-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: center;
}

.pay-badge {
  flex: 0 0 auto;
  min-width: 92px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.pay-badge.mir {
  color: #00a0e3;
}
.pay-badge.visa {
  color: #1a8fe8;
}
.pay-badge.mc {
  color: #ff5f00;
}
.pay-badge.sbp {
  color: #5b8def;
}
.pay-badge.piastrix {
  color: var(--gold);
}
.pay-badge.btc {
  color: #f7931a;
}
.pay-badge.eth {
  color: #8c9eff;
}
.pay-badge.usdt {
  color: #26a17b;
}

.pay-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* SEO content */
.seo-content {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.seo-content h2 {
  margin: 1.6rem 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.seo-content h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--cyan);
}

.seo-content p,
.seo-content li {
  color: #c7d2e0;
  font-size: 0.98rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.seo-content table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
}

.seo-content th,
.seo-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.seo-content th {
  background: rgba(0, 229, 255, 0.08);
  color: var(--text);
}

.seo-content td {
  color: var(--muted);
}

/* FAQ */
.faq details {
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 0.2rem 0.9rem;
  backdrop-filter: blur(8px);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--cyan);
}

.faq details p {
  margin: 0 0 0.95rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 36px 0 90px;
  background: #080a0f;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  margin-right: 8px;
}

/* Mobile bottom bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  height: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(8, 10, 15, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.mobile-bar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  min-height: 48px;
}

.mobile-bar a .ico {
  font-size: 1.05rem;
  line-height: 1;
}

.mobile-bar a.cta-login {
  color: var(--cyan);
}

.mobile-bar a.cta-reg {
  color: var(--gold);
}

/* Page hero variants */
.page-hero {
  padding: 36px 0 20px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 229, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(121, 40, 202, 0.18), transparent 45%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.page-hero p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 44rem;
}

.page-hero-media {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cards-2,
.cards-3,
.cards-4 {
  display: grid;
  gap: 14px;
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 14px 54px;
  position: relative;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(11, 14, 20, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 8px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .incentive-grid,
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.loyalty-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: stretch;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 16px;
}

.feature-split > * {
  min-width: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .burger {
    display: inline-grid;
    place-items: center;
  }
  .header-actions .btn {
    display: none;
  }
  .loyalty-banner,
  .feature-split {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 18px;
  }
  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .incentive-grid,
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }
  .mobile-bar {
    display: block;
  }
  .site-footer {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .search-box {
    min-width: 140px;
    flex-basis: 100%;
    margin-left: 0;
  }
  .lobby-nav {
    top: var(--header-h);
  }
  .mobile-menu {
    bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
  }
  .btn {
    white-space: normal;
  }
}

@media (hover: none) {
  .game-overlay {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark,
  .choice-card,
  .led {
    animation: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }
  .hero-cards {
    grid-template-columns: 1fr;
  }
  .choice-card:nth-child(2) {
    animation-delay: 0s;
  }
  .logo span:not(.logo-mark) {
    font-size: 0.95rem;
  }
}
