@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #060818;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(245, 166, 35, 0.35);
  --gold1: #f5a623;
  --gold2: #e07b00;
  --gold-glow: rgba(245, 166, 35, 0.22);
  --text: #eef2ff;
  --muted: #7c89b8;
  --green: #22c55e;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg) url('background.webp') center / cover fixed no-repeat;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── PAGE OVERLAY ─── */
.page {
  min-height: 100vh;
  background: linear-gradient(170deg, rgba(6, 8, 24, 0.88) 0%, rgba(6, 8, 24, 0.96) 100%);
}

/* ─── LAYOUT ─── */
.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 8, 24, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-right: auto;
  flex-shrink: 0;
}

.nav__logo img {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  object-fit: contain;
}

.nav__logo span {
  background: linear-gradient(120deg, var(--gold1) 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.nav__links a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav__links a.is-active {
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold1);
}

/* ─── BUTTONS ─── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--gold1), var(--gold2));
  color: #17090a;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.35);
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  cursor: pointer;
}

.cta-outline:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 44px;
  align-items: center;
  padding: 72px 0 56px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold1);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #b0bcdd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── HERO PANEL ─── */
.hero__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.hero__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.4), transparent);
}

.hero__panel h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.hero__panel > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ─── STATS ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.stat span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat strong {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--gold1), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── WINS TICKER ─── */
.wins {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  padding: 13px 20px;
  margin-bottom: 44px;
}

.wins__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.wins__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  white-space: nowrap;
}

.wins__ticker {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wins__ticker.fade {
  opacity: 0;
  transform: translateY(5px);
}

/* ─── SECTION ─── */
.section {
  margin-bottom: 52px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section__link {
  font-size: 13px;
  color: var(--gold1);
  font-weight: 500;
}

/* ─── FEATURE CARDS ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: block;
  color: inherit;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.card__icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── GAMES GRID ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}

.game {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  aspect-ratio: 3 / 4;
  background: #0d1030;
}

.game:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(245, 166, 35, 0.4);
}

.game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game:hover img {
  transform: scale(1.08);
}

.game__info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13px;
}

.game__info span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.game__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  transition: opacity 0.22s;
}

.game:hover .game__play {
  opacity: 1;
}

.game__play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--gold1), var(--gold2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #17090a;
  box-shadow: 0 0 24px var(--gold-glow);
}

/* ─── CONTENT BLOCK ─── */
.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.content-block ol,
.content-block ul {
  padding-left: 20px;
}

/* ─── FAQ ─── */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: background 0.2s, border-color 0.2s;
}

.faq-item:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.11);
}

.faq-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p,
.faq-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 8px 0 44px;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 36px;
  margin-top: 64px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.footer__logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.footer__note {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px 0 36px;
  }

  .hero__panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }

  .nav__links {
    flex-wrap: wrap;
  }

  .nav > .cta {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
