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

:root {
  --bg: #0d0a1f;
  --bg2: #130e2c;
  --card: #1a1535;
  --card2: #211948;
  --border: #2e2558;
  --gold: #ffd679;
  --gold2: #ffb800;
  --purple: #8b5cf6;
  --purple2: #6d28d9;
  --pink: #d946ef;
  --green: #22c55e;
  --red: #ef4444;
  --text: #ffffff;
  --muted: #9891b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --glow: 0 0 20px rgba(139,92,246,.3);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== TICKER (top) ===== */
.ticker-bar {
  background: linear-gradient(90deg, #1a0d3d, #0d1a3d 50%, #1a0d3d);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}
.ticker-inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.ticker-item .win-amount { color: var(--gold); font-weight: 700; }
.ticker-item .win-game { color: var(--purple); }
.ticker-item .win-player { color: var(--text); }
.ticker-item .trophy { font-size: 14px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13,10,31,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-link img { height: 34px; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.logo-text span { color: var(--gold); }

.header-nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.header-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  background: var(--card2);
  color: var(--text);
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.btn-tg {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #229ED9;
  font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.btn-tg:hover { background: #1a8bbf; }
.btn-login {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.btn-login:hover { border-color: var(--purple); color: var(--purple); }
.btn-register {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  font-size: 13px; font-weight: 700;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(139,92,246,.4);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139,92,246,.6); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 420px;
  background: url('../header-bg.webp') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,10,31,.3) 0%, rgba(13,10,31,.85) 100%);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 40px 20px;
  width: 100%;
}
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-title span { color: var(--gold); }
.hero-subtitle { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

.hero-features {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.feature-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(26,21,53,.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.feature-pill:hover { border-color: var(--gold); color: var(--gold); }
.feature-pill .icon { font-size: 18px; }

/* ===== QUICK NAV ===== */
.quick-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.quick-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-nav-inner::-webkit-scrollbar { display: none; }
.quick-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 20px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.quick-nav a:hover, .quick-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.quick-nav .nav-icon { font-size: 20px; }

/* ===== CATEGORIES NAV ===== */
.cats-nav {
  max-width: 1280px; margin: 0 auto; padding: 20px 20px 0;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.cats-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: var(--transition); flex-shrink: 0; white-space: nowrap;
}
.cat-btn:hover { border-color: var(--purple); color: var(--text); }
.cat-btn.active {
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 12px rgba(139,92,246,.35);
}
.cat-btn .cat-icon { font-size: 16px; }

/* ===== SECTION ===== */
.section { max-width: 1280px; margin: 0 auto; padding: 32px 20px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.section-title .icon { font-size: 22px; }
.section-link {
  font-size: 13px; font-weight: 600; color: var(--purple);
  transition: var(--transition);
}
.section-link:hover { color: var(--pink); }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.game-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  box-shadow: var(--glow);
}
.game-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.game-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.game-card:hover .game-img-wrap img { transform: scale(1.08); }
.game-overlay {
  position: absolute; inset: 0;
  background: rgba(13,10,31,.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.game-card:hover .game-overlay { opacity: 1; }
.play-btn {
  padding: 10px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,.5);
  transition: var(--transition);
}
.play-btn:hover { transform: scale(1.05); }
.game-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.badge-new { background: var(--green); color: #fff; }
.badge-hot { background: var(--red); color: #fff; }
.badge-top { background: var(--gold2); color: #000; }

.game-info { padding: 10px; }
.game-name { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.3; }

/* ===== WINS SECTION ===== */
.wins-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 16px;
}
.wins-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.wins-title {
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.wins-title .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: blink 1.2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.wins-feed {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 300px; overflow: hidden;
}
.win-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  animation: win-slide-in .4s ease;
}
@keyframes win-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.win-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.win-details { flex: 1; min-width: 0; }
.win-player-name { font-size: 13px; font-weight: 700; }
.win-game-name { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-sum {
  font-size: 16px; font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255,214,121,.4);
}
.win-time { font-size: 11px; color: var(--muted); }

/* ===== APK BANNER ===== */
.apk-banner {
  background: linear-gradient(135deg, #1a0d3d 0%, #0d1a3d 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 8px;
}
.apk-content { flex: 1; }
.apk-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.apk-sub { font-size: 13px; color: var(--muted); }
.apk-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-apk {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,.4);
  transition: var(--transition);
}
.btn-apk:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139,92,246,.6); }

/* ===== SEO TEXT ===== */
.seo-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.seo-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 20px;
}
.seo-inner h1 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.seo-inner h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--gold); }
.seo-inner p { color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.seo-inner ol, .seo-inner ul { color: var(--muted); padding-left: 20px; margin-bottom: 10px; }
.seo-inner li { margin-bottom: 4px; }
.seo-collapse { position: relative; max-height: 200px; overflow: hidden; }
.seo-collapse.expanded { max-height: none; }
.seo-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(0deg, var(--bg2) 0%, transparent 100%);
  display: flex; align-items: flex-end; padding-bottom: 8px; justify-content: center;
}
.seo-collapse.expanded .seo-fade { display: none; }
.btn-expand {
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: var(--transition);
  background: var(--bg2);
}
.btn-expand:hover { border-color: var(--purple); color: var(--purple); }
.expand-row { display: flex; justify-content: center; padding: 16px 0 0; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.footer-brand .logo-link { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-18 {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ===== PAGE HERO (subpages) ===== */
.page-hero {
  background: linear-gradient(135deg, #1a0d3d 0%, #0d1a3d 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,.2) 0%, transparent 70%);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: var(--muted); font-size: 15px; max-width: 500px; margin: 0 auto; }

/* ===== BONUS CARDS ===== */
.bonus-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.bonus-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #7c3aed, #d946ef);
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--purple); }
.bonus-icon { font-size: 44px; margin-bottom: 16px; }
.bonus-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.bonus-amount { font-size: 28px; font-weight: 800; color: var(--gold); margin-bottom: 12px; }
.bonus-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.bonus-conditions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.bonus-cond {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.bonus-cond .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.btn-bonus {
  width: 100%; padding: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  font-size: 14px; font-weight: 700; color: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(139,92,246,.35);
}
.btn-bonus:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139,92,246,.55); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--purple); }
.faq-item.open { border-color: var(--purple); }
.faq-q {
  width: 100%; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; font-size: 15px; font-weight: 700;
  transition: var(--transition);
}
.faq-q:hover { color: var(--gold); }
.faq-arrow {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s ease;
  font-size: 12px;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--purple); border-color: var(--purple); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 18px; }

/* ===== LIVE PAGE ===== */
.live-providers {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.provider-pill {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--card);
  transition: var(--transition); cursor: pointer;
}
.provider-pill:hover, .provider-pill.active {
  border-color: var(--purple); color: var(--text);
  background: var(--card2);
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--purple); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ===== SEO TEXT STRUCTURE ===== */
.seo-article-section { margin-bottom: 24px; }
.seo-article-section h2 { font-size: 17px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.seo-article-section p { color: var(--muted); line-height: 1.75; font-size: 14px; }
.seo-link { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition); }
.seo-link:hover { color: var(--pink); }

.seo-faq { margin-top: 28px; }
.seo-faq h2 { font-size: 17px; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.seo-faq-list { display: flex; flex-direction: column; gap: 14px; }
.seo-faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.seo-faq-q { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.seo-faq-a { font-size: 13px; color: var(--muted); line-height: 1.65; }

.seo-internal-links { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.seo-nav-title { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.seo-nav-list { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-nav-list a {
  padding: 6px 14px; border-radius: 50px;
  border: 1px solid var(--border); font-size: 12px; font-weight: 600;
  color: var(--muted); transition: var(--transition);
}
.seo-nav-list a:hover { border-color: var(--purple); color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bonus-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .header-nav { display: none; }
  .hero { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr; }
  .apk-banner { flex-direction: column; text-align: center; }
  .apk-actions { justify-content: center; }
  .bonus-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 0 12px; gap: 12px; }
  .btn-tg span { display: none; }
  .hero-features { gap: 8px; }
  .feature-pill { font-size: 12px; padding: 6px 12px; }
}
