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

:root {
  --bg: #060E09;
  --bg2: #0A1610;
  --bg3: #0F1E14;
  --card: #0D1A11;
  --card-hover: #142418;
  --border: rgba(52,160,80,.2);
  --purple: #1E8A3A;
  --purple-light: #2DBF55;
  --pink: #C9A02A;
  --pink-light: #E4BB45;
  --gold: #FFD679;
  --gold-dim: #C9A430;
  --text: #E2F0E6;
  --text-dim: #7EA88A;
  --radius: 12px;
  --radius-lg: 18px;
  --transition: .22s ease;
  --glow-purple: 0 0 24px rgba(30,138,58,.45);
  --glow-pink: 0 0 24px rgba(201,160,42,.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #C9870A 100%);
  color: #1A0A00;
  box-shadow: 0 0 22px rgba(255,214,121,.45);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold-dim);
  color: var(--gold);
}
.btn-outline:hover { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,214,121,.35); color: #1A0A00; background: var(--gold); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #E4900A 100%);
  color: #1A0A00;
  box-shadow: 0 0 24px rgba(255,214,121,.55);
}
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

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

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active { background: rgba(30,138,58,.2); color: var(--text); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-links { display: flex; align-items: center; gap: 14px; margin-right: 8px; }
.header-links a {
  font-size: .8rem;
  color: var(--text-dim);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.header-links a:hover { color: var(--text); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 14px; border-radius: 8px; font-weight: 600; color: var(--text-dim); }
.mobile-nav a:hover { background: rgba(30,138,58,.2); color: var(--text); }
.mobile-nav .btn { margin-top: 8px; width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg2);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('header-bg.webp');
  background-size: cover;
  background-position: center top;
  opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,14,9,.88) 40%, rgba(30,138,58,.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
  max-width: 640px;
  margin-left: 60px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,214,121,.1);
  border: 1px solid rgba(255,214,121,.35);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.12; margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.05rem; color: var(--text-dim); max-width: 480px; line-height: 1.65; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== FEATURES STRIP ===== */
.features-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.features-inner::-webkit-scrollbar { display: none; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
  cursor: default;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(30,138,58,.1); }
.feature-icon { font-size: 1.6rem; }
.feature-label { font-size: .8rem; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.feature-value { font-size: .95rem; font-weight: 800; color: var(--text); }

/* ===== WINS TICKER ===== */
.wins-section {
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.wins-ticker {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.ticker-scroll {
  display: flex;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.ticker-list {
  display: flex;
  gap: 0;
  animation: ticker-move 40s linear infinite;
  width: max-content;
}
.ticker-list:hover { animation-play-state: paused; }
@keyframes ticker-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.win-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 280px;
}
.win-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--gold-dim) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.win-info { flex: 1; min-width: 0; }
.win-player { font-size: .82rem; color: var(--text-dim); }
.win-game { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-amount { font-size: .98rem; font-weight: 900; color: var(--gold); flex-shrink: 0; }

/* ===== SECTION COMMON ===== */
.section {
  max-width: 1280px;
  margin: 44px auto;
  padding: 0 20px;
}
.section-label {
  display: inline-block;
  background: rgba(201,160,42,.13);
  border: 1px solid rgba(201,160,42,.35);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 24px;
}

/* ===== GAMES GRID ===== */
.games-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, #C9870A 100%);
  border-color: var(--gold);
  color: #1A0A00;
  box-shadow: var(--glow-pink);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  position: relative;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(201,160,42,.3);
  border-color: var(--gold-dim);
}
.game-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition);
}
.game-card:hover img { transform: scale(1.05); }
.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,14,9,.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}
.game-card:hover .game-overlay { opacity: 1; }
.game-name { font-size: .82rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.game-play-btn {
  display: block;
  background: linear-gradient(135deg, var(--gold) 0%, #C9870A 100%);
  color: #1A0A00;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
}
.game-card-title {
  padding: 10px 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.badge-hot, .badge-new {
  position: absolute;
  top: 8px; left: 8px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 50px;
  z-index: 2;
}
.badge-hot { background: var(--pink); color: #fff; }
.badge-new { background: var(--gold); color: #1A0A00; }

/* ===== BONUSES CARDS ===== */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.bonus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--purple-light) 100%);
}
.bonus-icon { font-size: 2.6rem; margin-bottom: 14px; }
.bonus-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.bonus-amount { font-size: 1.5rem; font-weight: 900; color: var(--gold); margin-bottom: 10px; }
.bonus-card p { font-size: .88rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }
.bonus-tag {
  display: inline-block;
  background: rgba(30,138,58,.2);
  border: 1px solid rgba(30,138,58,.4);
  color: var(--purple-light);
  font-size: .76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 18px;
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 18px 22px;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(30,138,58,.1); }
.faq-icon { font-size: 1.1rem; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 22px;
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 22px 20px; }

/* ===== SEO TEXT ===== */
.seo-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 44px auto;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.seo-block h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 16px; }
.seo-block h3 { font-size: 1.05rem; font-weight: 800; margin: 20px 0 8px; color: var(--gold); }
.seo-block p { font-size: .9rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 10px; }
.seo-block ol { padding-left: 20px; color: var(--text-dim); font-size: .9rem; line-height: 1.75; }
.seo-expand-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 9px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: .85rem;
  margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--transition);
}
.seo-expand-btn:hover { border-color: var(--gold); color: var(--gold); }
.seo-collapse { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.seo-block.expanded .seo-collapse { max-height: 2000px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, #081a0d 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ===== LIVE STATS ===== */
.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value { font-size: 1.5rem; font-weight: 900; color: var(--gold); }
.stat-label { font-size: .8rem; color: var(--text-dim); margin-top: 4px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 20px 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { font-size: .88rem; font-weight: 800; color: var(--text); margin-bottom: 14px; letter-spacing: .06em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .86rem; color: var(--text-dim); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--pink); }
.footer-brand { grid-column: span 1; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: .83rem; color: var(--text-dim); line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }
.footer-badges { display: flex; align-items: center; gap: 10px; }
.footer-badge {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* ===== WINS POPUP ===== */
.win-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.win-toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 320px;
  animation: toast-in .35s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
@keyframes toast-in {
  from { transform: translateX(-110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast-fadeout { animation: toast-out .4s ease forwards; }
@keyframes toast-out {
  to { transform: translateX(-110%); opacity: 0; }
}
.toast-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--gold-dim) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.toast-info { flex: 1; min-width: 0; }
.toast-player { font-size: .78rem; color: var(--text-dim); }
.toast-game { font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-amount { font-size: 1rem; font-weight: 900; color: var(--gold); flex-shrink: 0; }

/* ===== TOAST CONTAINER ===== */
#win-popup-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav, .header-links { display: none; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-content { margin-left: 20px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .feature-item { padding: 14px 16px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .bonus-cards { grid-template-columns: 1fr; }
  .seo-block { padding: 22px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--text-dim); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--purple-light); }
.breadcrumb span { color: var(--text-dim); }

/* ===== SEO LINKS BLOCK ===== */
.seo-links { margin-top: 28px; }
.seo-links h2 { font-size: 1.05rem; margin-bottom: 12px; }
.seo-links-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.seo-links-list li a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .84rem;
  color: var(--text-dim);
  transition: border-color var(--transition), color var(--transition);
}
.seo-links-list li a:hover { border-color: var(--gold); color: var(--gold); }

/* ===== UTILITY ===== */
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-pink { color: var(--pink); }
.gradient-text {
  background: linear-gradient(90deg, var(--gold) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
