:root {
  --bg: #0d0e14;
  --bg2: #13141d;
  --bg3: #1a1c28;
  --card: #1e2030;
  --border: #2a2d40;
  --gold: #f5c842;
  --gold2: #e8a800;
  --green: #00d26a;
  --red: #ff4d4d;
  --text: #e8eaf0;
  --text2: #9ca3b0;
  --accent: #7c3aed;
  --accent2: #a855f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ─── HEADER ─── */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.logo img { height: 40px; display: block; }

nav { display: flex; gap: 4px; flex: 1; }

nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: all .2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  background: var(--bg3);
  color: var(--gold);
}

.header-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,200,66,.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ─── TICKER ─── */
.wins-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  overflow: hidden;
}

.wins-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.wins-bar:hover .wins-track { animation-play-state: paused; }

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.win-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.win-item .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.win-item .username { color: var(--text2); }
.win-item .game { color: var(--text); font-weight: 600; }
.win-item .amount { color: var(--green); font-weight: 700; }

/* ─── HERO BANNER ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,200,66,.12);
  border: 1px solid rgba(245,200,66,.3);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-img {
  flex: 0 0 380px;
  max-width: 380px;
}

.hero-img img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* ─── BONUS STRIP ─── */
.bonus-strip {
  background: var(--bg2);
  padding: 20px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.bonus-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 20s linear infinite;
}

.bonus-strip:hover .bonus-track { animation-play-state: paused; }

.bonus-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.bonus-chip .icon { font-size: 22px; }
.bonus-chip strong { color: var(--gold); }

/* ─── SECTION ─── */
.section { max-width: 1280px; margin: 0 auto; padding: 40px 16px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--gold), var(--gold2));
  border-radius: 4px;
}

.see-all {
  font-size: 13px;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all .2s;
}

.see-all:hover { color: var(--gold); border-color: var(--gold); }

/* ─── GAMES GRID ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  aspect-ratio: 3/4;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .2s;
}

.game-card:hover .game-overlay { opacity: 1; }

.game-play-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  border-radius: 8px;
}

.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.game-badge.hot { background: #ff6b00; color: #fff; }
.game-badge.new { background: var(--accent2); color: #fff; }

/* ─── LIVE WINS PANEL ─── */
.live-wins-panel {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.wins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.win-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color .3s;
  animation: fadeSlide .4s ease both;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.win-row.highlight { border-color: var(--gold); }

.win-row .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.win-row .info { flex: 1; }
.win-row .info .user { font-size: 13px; font-weight: 700; }
.win-row .info .meta { font-size: 12px; color: var(--text2); margin-top: 1px; }

.win-row .sum {
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
}

.win-row .sum.big { color: var(--gold); font-size: 22px; }

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.feature-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ─── SEO TEXT ─── */
.seo-block {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.seo-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.seo-inner h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--gold);
}

.seo-inner h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}

.seo-inner p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.seo-inner ol, .seo-inner ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.seo-inner li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ─── APP BANNER ─── */
.app-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #4f1d96 100%);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 16px 40px;
  max-width: calc(1280px - 32px);
  margin-left: auto;
  margin-right: auto;
}

.app-banner-text { flex: 1; }
.app-banner-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.app-banner-text p { font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 16px; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 16px;
  text-align: center;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 36px; }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text2);
  transition: color .2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--text2);
  opacity: .6;
  line-height: 1.6;
}

.footer-18 {
  display: inline-block;
  border: 2px solid var(--text2);
  color: var(--text2);
  font-size: 11px;
  font-weight: 800;
  width: 26px; height: 26px;
  border-radius: 50%;
  line-height: 22px;
  margin-bottom: 12px;
  opacity: .5;
}

/* ─── PAGE INNER PAGES ─── */
.page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 40px 16px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
}

.page-hero h1 span {
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 16px;
  color: var(--text2);
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── BONUS CARDS ─── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.bonus-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }

.bonus-card-head {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg3), var(--card));
}

.bonus-card-icon { font-size: 44px; margin-bottom: 8px; }
.bonus-card-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.bonus-card-value { font-size: 28px; font-weight: 900; color: var(--gold); }

.bonus-card-body { padding: 20px 24px; }

.bonus-card-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.bonus-card-body li {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bonus-card-body li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── 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: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color .2s;
}

.faq-q:hover { color: var(--gold); }

.faq-q .arrow {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--text2);
}

.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 18px;
}

/* ─── LIVE TABLE ─── */
.live-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ─── SEO ARTICLE ─── */
.seo-h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.seo-h2:first-child { margin-top: 0; }

.seo-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(245,200,66,.4);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.seo-link:hover {
  color: #fff;
  text-decoration-color: var(--gold);
}

.seo-faq { margin-top: 8px; }

.seo-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.seo-faq-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.seo-faq-a {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0;
}

.seo-links { margin-top: 8px; }

.seo-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-links-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.seo-links-list li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-img { max-width: 100%; }
  nav a { padding: 7px 10px; font-size: 13px; }
  .app-banner { flex-direction: column; text-align: center; }
  .header-cta .btn-secondary { display: none; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  nav { gap: 2px; }
  nav a { padding: 6px 8px; font-size: 12px; }
}

/* ─── LIVE DOT ─── */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,210,106,.6);
  animation: pulse-dot 1.5s ease-in-out infinite;
  margin-right: 4px;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(0,210,106,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(0,210,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,210,106,0); }
}

/* ─── COUNTER ─── */
.stats-bar {
  display: flex;
  gap: 32px;
  padding: 24px 16px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 120px;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}
