/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a18;
  --bg-card:     #13132b;
  --bg-nav:      #0d0d22;
  --gold:        #FFD679;
  --gold-dark:   #c9952a;
  --purple:      #7b2fc9;
  --purple-light:#a855f7;
  --text:        #dcdcf0;
  --text-muted:  #6b6b90;
  --border:      rgba(255,255,255,0.07);
  --radius:      12px;
  --radius-sm:   8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-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%; }

/* ─── Header ─── */
.site-header {
  position: relative;
  background: url('header-bg.webp') center center / cover no-repeat;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,24,0.55) 0%, rgba(10,10,24,0.92) 100%);
  pointer-events: none;
}

/* ─── Top Bar ─── */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo img { height: 38px; width: auto; }

.topbar-logo .site-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--text);
}

.btn-gold {
  background: var(--gold);
  color: #1a0a00;
}

/* ─── Navigation ─── */
.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 28px 0;
  border-bottom: 1px solid var(--border);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-link.active {
  color: var(--gold);
  background: rgba(255, 214, 121, 0.08);
  border-bottom: 2px solid var(--gold);
}

.nav-link svg, .nav-link img { width: 18px; height: 18px; object-fit: contain; }

/* ─── Hero Inside Header ─── */
.header-hero {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px 28px;
  gap: 16px;
}

.header-hero h1 {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.header-hero h1 span { color: var(--gold); }

.header-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
}

.header-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Features Strip ─── */
.features-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255, 214, 121, 0.06);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.features-strip::-webkit-scrollbar { display: none; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.feature-item:last-child { border-right: none; }

.feature-icon {
  font-size: 24px;
}

.feature-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.feature-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Main Content ─── */
main { max-width: 1280px; margin: 0 auto; padding: 32px 24px 48px; }

/* ─── Section ─── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── Games Grid ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  aspect-ratio: 3/4;
}

.game-card:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(255,214,121,0.3); }

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.game-card:hover img { opacity: 0.85; }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-overlay .play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a0a00;
  font-weight: 700;
  font-size: 13px;
  border-radius: 50px;
  padding: 8px 20px;
  align-self: center;
  margin-bottom: 6px;
}

.game-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
}

/* ─── Wins Ticker ─── */
.wins-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid rgba(255,214,121,0.2);
  border-radius: var(--radius);
  z-index: 999;
  overflow: hidden;
}

.wins-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 214, 121, 0.08);
  border-bottom: 1px solid var(--border);
}

.wins-widget-header span {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wins-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.wins-list {
  padding: 6px 0;
  max-height: 220px;
  overflow: hidden;
}

.win-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.4s ease;
  transition: background 0.3s;
}

.win-item:last-child { border-bottom: none; }
.win-item.new { background: rgba(255,214,121,0.06); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.win-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.win-info { flex: 1; min-width: 0; }

.win-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-game {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-amount {
  font-size: 13px;
  font-weight: 700;
  color: #22c55e;
  white-space: nowrap;
}

/* ─── Info Section ─── */
.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.info-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.info-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--gold);
}

.info-section p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }

.info-section ol {
  padding-left: 20px;
  color: var(--text-muted);
}

.info-section ol li { margin-bottom: 6px; }

/* ─── Bonus Cards ─── */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.bonus-card:hover { border-color: rgba(255,214,121,0.3); }

.bonus-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 214, 121, 0.12);
  color: var(--gold);
  width: fit-content;
}

.bonus-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.bonus-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.bonus-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(255,214,121,0.2); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); fill: var(--gold); }
.faq-item.open .faq-question { color: var(--gold); }

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ─── Live Games ─── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(239,68,68,0.15);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1s ease-in-out infinite;
}

.live-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.live-card:hover { transform: translateY(-3px); border-color: rgba(239,68,68,0.3); }

.live-card-img {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a0a2e, #0a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.live-card-img .live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.live-card-body { padding: 12px 14px; }

.live-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.live-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-players {
  color: #22c55e;
  font-weight: 600;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
  padding: 40px 28px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 28px; }

/* ─── Page Banner ─── */
.page-banner {
  background: url('header-bg.webp') center top / cover no-repeat;
  position: relative;
  padding: 60px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,24,0.6) 0%, rgba(10,10,24,0.95) 100%);
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.page-banner h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .topbar { padding: 12px 16px; }
  .topbar-logo .site-name { display: none; }
  .site-nav { padding: 10px 12px 0; gap: 2px; overflow-x: auto; }
  .nav-link { padding: 8px 12px; font-size: 13px; }
  main { padding: 24px 16px 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .wins-widget { width: 260px; left: 12px; bottom: 12px; }
  .header-hero { padding: 16px; }
  .features-strip .feature-item { padding: 12px 18px; }
}

@media (max-width: 480px) {
  .topbar-actions .btn-outline { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
}
