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

:root {
  --bg:        #0e0c1d;
  --bg2:       #15122a;
  --bg3:       #1c1836;
  --border:    #2a2550;
  --accent:    #c731e0;
  --accent2:   #ff4b9d;
  --gold:      #ffd679;
  --text:      #ffffff;
  --muted:     #9b92cc;
  --card-h:    220px;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(199, 49, 224, .25);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.35rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 75, 157, .45);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(255, 75, 157, .65); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, #f7c842, var(--gold));
  color: #1a1200;
  font-weight: 800;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo img { height: 34px; }
.logo-text { font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: .2rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
  white-space: nowrap;
  padding: .45rem .85rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: var(--bg3);
}
.nav-link.active { color: var(--gold); }

.header-actions { display: flex; gap: .6rem; align-items: center; flex-shrink: 0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../header-bg.webp') center/cover no-repeat;
  filter: brightness(.45) saturate(1.3);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,12,29,.85) 40%, rgba(199,49,224,.25) 100%);
}
.hero-content {
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,214,121,.12);
  border: 1px solid rgba(255,214,121,.35);
  color: var(--gold);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: .05em;
}

.hero h1 { margin-bottom: .8rem; line-height: 1.15; }
.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 1.8rem;
}

.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .35rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.feature-chip .icon { font-size: 1rem; }

/* ===== CATEGORY TABS ===== */
.cat-tabs {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  gap: .2rem;
}
.cat-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.cat-tab:hover { color: #fff; }
.cat-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.cat-tab .emoji { font-size: 1.1rem; }

/* ===== SECTION ===== */
.section { padding: 2.5rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.2rem; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.section-title .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.see-all {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 600;
  transition: opacity .2s;
}
.see-all:hover { opacity: .75; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  aspect-ratio: 3/4;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(199,49,224,.35);
  border-color: var(--accent);
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .2s;
}
.game-card:hover img { filter: brightness(1.1); }

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,12,29,.9) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .75rem;
}
.game-card:hover .game-overlay { opacity: 1; }

.game-name {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .5rem;
  color: #fff;
}
.game-play-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .35rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity .2s;
}
.game-play-btn:hover { opacity: .85; }

.game-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 50px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== LIVE WINS TICKER ===== */
.wins-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
  overflow: hidden;
  position: relative;
}
.wins-bar::before,
.wins-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.wins-bar::before { left: 0; background: linear-gradient(to right, var(--bg2), transparent); }
.wins-bar::after  { right: 0; background: linear-gradient(to left,  var(--bg2), transparent); }

.wins-label {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--bg2);
  padding-right: .6rem;
  white-space: nowrap;
}
.wins-label .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.wins-track {
  display: flex;
  gap: 1.2rem;
  padding-left: 200px;
  animation: scroll-wins 38s linear infinite;
  width: max-content;
}
.wins-track:hover { animation-play-state: paused; }

@keyframes scroll-wins {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.win-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50px;
  padding: .3rem .85rem;
  white-space: nowrap;
  font-size: .82rem;
  flex-shrink: 0;
  transition: border-color .3s;
}
.win-item.new-win {
  animation: flash-win .6s ease;
}
@keyframes flash-win {
  0%   { background: rgba(255,214,121,.25); border-color: var(--gold); }
  100% { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
}
.win-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}
.win-user { font-weight: 600; color: var(--muted); }
.win-amount { font-weight: 800; color: var(--gold); }
.win-game { font-size: .75rem; color: var(--muted); }
.win-sep { color: var(--border); }

/* ===== PROMO CARDS ===== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.promo-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.promo-img {
  height: 120px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.promo-body { padding: 1rem; }
.promo-tag {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.promo-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.promo-desc { font-size: .82rem; color: var(--muted); margin-bottom: .85rem; }

/* ===== SEO TEXT ===== */
.seo-block {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.seo-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
.seo-inner h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1.1rem; color: #fff; font-weight: 800; }
.seo-inner h2 { font-size: 1.15rem; margin: 1.8rem 0 .7rem; color: var(--gold); font-weight: 700; border-left: 3px solid var(--accent); padding-left: .7rem; }
.seo-inner h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; color: #fff; }
.seo-inner p  { font-size: .9rem; color: var(--muted); margin-bottom: .7rem; line-height: 1.75; }
.seo-inner strong { color: #fff; }
.seo-inner ul { padding-left: 0; margin: .9rem 0 1rem; display: flex; flex-direction: column; gap: .35rem; list-style: none; }
.seo-inner ul li { font-size: .88rem; color: var(--muted); padding-left: 1.4rem; position: relative; line-height: 1.5; }
.seo-inner ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.seo-inner ol { padding-left: 1.2rem; }
.seo-inner ol li { font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: .8rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--gold); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 1.2rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.2rem 1rem; }

/* ===== LIVE TABLE ===== */
.live-table { width: 100%; border-collapse: collapse; }
.live-table th {
  text-align: left;
  padding: .65rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.live-table td {
  padding: .6rem 1rem;
  font-size: .88rem;
  border-bottom: 1px solid rgba(42,37,80,.5);
}
.live-table tr:hover td { background: rgba(255,255,255,.03); }
.live-table tr.highlight td { animation: row-flash .8s ease; }
@keyframes row-flash {
  0%   { background: rgba(255,214,121,.12); }
  100% { background: transparent; }
}
.player-cell { display: flex; align-items: center; gap: .6rem; }
.player-ava {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}
.amount-positive { color: #22c55e; font-weight: 700; }
.amount-big      { color: var(--gold); font-weight: 800; }

/* ===== BONUS CARD ===== */
.bonus-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.bonus-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: border-color .2s, transform .2s;
}
.bonus-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.bonus-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.bonus-percent {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.bonus-name { font-size: 1rem; font-weight: 700; }
.bonus-desc { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.bonus-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.bonus-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 50px;
  background: rgba(199,49,224,.15);
  border: 1px solid rgba(199,49,224,.3);
  color: var(--accent);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.footer-brand p { font-size: .85rem; color: var(--muted); margin-top: .7rem; max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: .88rem; font-weight: 700; margin-bottom: .8rem; color: #fff; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { font-size: .85rem; color: var(--muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.footer-bottom {
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-bottom p { font-size: .78rem; color: var(--muted); }
.footer-18 {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  color: var(--muted);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, #1e1040 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-hero h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: .5rem; }
.page-hero p  { color: var(--muted); font-size: .95rem; }

/* ===== UTILITY ===== */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: .5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 640px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
  .hero { min-height: 340px; }
  .hero-content { padding: 2.5rem 1rem 2rem; }
  .header-inner { padding: 0 .8rem; gap: .7rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .wins-track { padding-left: 160px; }
}
