/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:    #0a0814;
  --bg-card:    #120f24;
  --bg-card2:   #1a1535;
  --border:     #2a2250;
  --accent-pink:#e040a0;
  --accent-gold:#f5c842;
  --accent-purple:#7c3aed;
  --text-main:  #f0eaf8;
  --text-muted: #8a7faa;
  --green:      #22c55e;
  --radius:     12px;
  --shadow:     0 4px 32px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 8, 20, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}
.logo-link img { height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .18s, color .18s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-card2);
  color: var(--text-main);
}
.main-nav a.active { color: var(--accent-gold); }

.header-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  transition: filter .18s, transform .1s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #e040a0 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 2px 16px rgba(224,64,160,.35);
}
.btn-outline {
  border: 1.5px solid var(--accent-pink);
  color: var(--accent-pink);
  background: transparent;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: url('header-bg.webp') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,20,.92) 45%, rgba(10,8,20,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent-gold); }
.hero p {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
  font-size: 15.5px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-big { padding: 13px 32px; font-size: 15px; border-radius: 10px; }

/* ===== FEATURES ROW ===== */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 13.5px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent-pink); transform: translateY(-2px); }
.feature-card .f-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.fi-1 { background: rgba(224,64,160,.18); }
.fi-2 { background: rgba(245,200,66,.15); }
.fi-3 { background: rgba(34,197,94,.15); }
.fi-4 { background: rgba(124,58,237,.2); }
.feature-card span { color: var(--text-muted); font-size: 12px; font-weight: 400; display: block; }

/* ===== SECTION ===== */
.section {
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head a {
  font-size: 13px;
  color: var(--accent-pink);
  font-weight: 600;
}
.section-head a:hover { text-decoration: underline; }

/* ===== GAME GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-pink);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.game-card:hover img { transform: scale(1.07); }
.game-card .game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,8,20,.95) 100%);
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px;
  gap: 8px;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-overlay .play-btn {
  background: linear-gradient(135deg, #e040a0, #7c3aed);
  color: #fff;
  padding: 8px 20px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  width: 100%;
  text-align: center;
  transition: filter .18s;
}
.play-btn:hover { filter: brightness(1.15); }
.game-overlay .game-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

/* ===== WINS TICKER ===== */
.wins-section {
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.wins-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.wins-header h2 { font-size: 18px; font-weight: 800; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .6; }
}
.wins-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 320px;
}
.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  animation: slideIn .4s ease;
  transition: background .2s;
}
.win-item:last-child { border-bottom: none; }
.win-item:hover { background: var(--bg-card2); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.win-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.win-info { flex: 1; }
.win-player { font-size: 13px; font-weight: 700; }
.win-game { font-size: 11.5px; color: var(--text-muted); }
.win-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold);
  flex-shrink: 0;
}
.win-amount.big { color: #ff6b6b; }

/* ===== CATEGORIES NAV (inside pages) ===== */
.cat-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cat-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--accent-pink);
  color: var(--text-main);
  background: var(--bg-card2);
}

/* ===== SEO TEXT ===== */
.seo-block {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.seo-block h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--accent-gold);
}
.seo-block h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text-main);
}
.seo-block p { color: var(--text-muted); margin-bottom: 10px; }
.seo-block ol, .seo-block ul {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 12px;
}
.seo-block li { margin-bottom: 4px; }

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.bonus-card:hover { transform: translateY(-4px); border-color: var(--accent-pink); }
.bonus-card-top {
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-purple) 0%, #1a0a3c 100%);
  text-align: center;
}
.bonus-icon { font-size: 48px; margin-bottom: 8px; }
.bonus-title { font-size: 18px; font-weight: 800; }
.bonus-amount {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-gold);
  margin: 6px 0 4px;
}
.bonus-card-body { padding: 20px; }
.bonus-desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 16px; }
.bonus-features { list-style: none; margin-bottom: 20px; }
.bonus-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bonus-features li:last-child { border-bottom: none; }
.bonus-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.bonus-cta { display: block; text-align: center; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--accent-pink); }
.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-question .faq-arrow {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s, background .2s;
  font-size: 14px;
}
.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  background: var(--accent-pink);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 20px;
}
.faq-answer.open {
  max-height: 400px;
  padding: 0 20px 18px;
}
.faq-answer p { color: var(--text-muted); font-size: 14px; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; max-width: 260px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 3px 0;
  transition: color .18s;
}
.footer-col a:hover { color: var(--text-main); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-muted); font-size: 12px; }
.age-badge {
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ===== LIVE PAGE ===== */
.live-banner {
  background: linear-gradient(135deg, #1a0a3c 0%, #3a0a20 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.live-banner-icon { font-size: 48px; }
.live-banner h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.live-banner p { color: var(--text-muted); font-size: 14px; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-hero h1 span { color: var(--accent-gold); }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== SEO ARTICLE ===== */
.seo-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.seo-article > h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--text-main);
}
.seo-article > h2:first-child {
  margin-top: 0;
  font-size: 22px;
  color: var(--accent-gold);
}
.seo-article p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.seo-article a { color: var(--accent-pink); text-decoration: underline; }
.seo-article a:hover { color: var(--text-main); }
.seo-article ol,
.seo-article ul {
  color: var(--text-muted);
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.seo-article li { margin-bottom: 4px; }

.seo-faq { margin-top: 28px; }
.seo-faq > h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main) !important;
}

.seo-links { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.seo-links h2 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted) !important;
  margin-bottom: 12px;
  font-size: 13px !important;
}
.seo-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links ul li a {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent-pink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s, color .18s;
  text-decoration: none;
}
.seo-links ul li a:hover { border-color: var(--accent-pink); color: var(--text-main); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .header-cta .btn-outline { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-content { padding: 40px 16px; }
}
