/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #f5c518;
  --gold-dark: #c9a200;
  --bg: #0d0e13;
  --bg2: #14151e;
  --bg3: #1c1d2a;
  --card: #1a1b27;
  --border: #2a2b3d;
  --text: #e8e9f0;
  --muted: #7a7b99;
  --green: #2ecc71;
  --radius: 12px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,14,19,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
}

.header-logo img { height: 40px; }

.header-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active { color: var(--text); background: var(--bg3); }

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #e6a800 100%);
  color: #0d0e13;
}
.btn-ghost {
  background: var(--bg3);
  color: var(--text);
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  gap: 0;
  animation: ticker-scroll 60s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tick-item {
  padding: 0 32px;
  font-size: 13px;
  color: var(--muted);
}
.tick-item strong { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('background.webp');
  background-size: cover;
  background-position: center top;
  filter: brightness(.45);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,14,19,.9) 40%, transparent 100%),
              linear-gradient(to top, rgba(13,14,19,1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.3);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-title .gold { color: var(--gold); }

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-bonus-box {
  display: inline-flex;
  gap: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.bonus-chunk { text-align: center; }
.bonus-chunk .value {
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.bonus-chunk .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.bonus-divider {
  font-size: 36px;
  font-weight: 300;
  color: var(--border);
  align-self: center;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .s-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}
.stat-item .s-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== SECTION ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
}
.section-title span { color: var(--gold); }

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  padding: 4px;
  border-radius: 10px;
  overflow-x: auto;
}
.tab-btn {
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--card);
  color: var(--text);
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(245,197,24,.15);
}

.game-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,14,19,.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity .25s;
}
.game-card:hover .game-card-overlay { opacity: 1; }

.game-card-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.game-card-play {
  display: block;
  width: 100%;
  padding: 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold) 0%, #e6a800 100%);
  color: #0d0e13;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  border: none;
  cursor: pointer;
}
.game-card-name-static {
  padding: 10px 12px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
}

/* ===== WINS FEED ===== */
.wins-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 20px;
}
.wins-inner {
  max-width: 1200px;
  margin: 0 auto;
}
#wins-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.win-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.win-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e6a800);
  color: #0d0e13;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.win-info { flex: 1; line-height: 1.5; }
.win-amount { color: var(--gold); }
.win-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ===== PROMO BANNER ===== */
.promo-banner {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1b27 0%, #23243a 100%);
  border: 1px solid var(--border);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,.12) 0%, transparent 70%);
}
.promo-text .p-label {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}
.promo-text .p-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.promo-text .p-desc {
  font-size: 14px;
  color: var(--muted);
}
.promo-nums {
  display: flex;
  gap: 16px;
}
.promo-num { text-align: center; }
.promo-num .pn-val {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.promo-num .pn-lbl { font-size: 11px; color: var(--muted); }
.promo-sep { color: var(--border); font-size: 28px; align-self: center; }

/* ===== SUPPORT BOX ===== */
.support-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.support-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(46,204,113,.12);
  border: 1px solid rgba(46,204,113,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.support-text .st-title { font-weight: 700; margin-bottom: 4px; }
.support-text .st-sub { font-size: 13px; color: var(--muted); }
.support-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.support-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; } 50% { opacity:.4; }
}

/* ===== INFO SECTIONS ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card .ic-icon { font-size: 28px; margin-bottom: 12px; }
.info-card .ic-title { font-weight: 700; margin-bottom: 8px; }
.info-card .ic-text { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 260px; line-height: 1.6; }

.footer-links h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; color: var(--muted); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-links li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.age-badge {
  background: var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ===== TOAST ===== */
#win-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: var(--card);
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  max-width: 300px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s;
}
.toast-show { transform: translateY(0); opacity: 1; }
.toast-hide { transform: translateY(20px); opacity: 0; pointer-events: none; }
.toast-icon { font-size: 26px; }
.toast-body { font-size: 13px; line-height: 1.5; }
.toast-amount { color: var(--gold); font-weight: 700; font-size: 15px; }

/* ===== BONUS CARD ===== */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.bonus-card {
  background: linear-gradient(135deg, var(--card) 0%, #22233a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(245,197,24,.1); }
.bonus-card-head {
  background: linear-gradient(135deg, #252639, #1a1b2e);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.bc-icon { font-size: 32px; }
.bc-title { font-size: 17px; font-weight: 700; }
.bc-tag {
  margin-top: 4px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245,197,24,.12);
  color: var(--gold);
}
.bonus-card-body { padding: 20px 24px; }
.bonus-card-body .bc-val {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}
.bonus-card-body .bc-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }

/* ===== 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 {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
  user-select: none;
}
.faq-question:hover { background: var(--bg3); }
.faq-arrow { transition: transform .3s; color: var(--muted); font-size: 18px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: var(--muted); }

/* ===== SEO ARTICLE ===== */
.seo-article { border-top: 1px solid var(--border); }
.seo-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 820px;
  margin-top: 12px;
}
.seo-lead strong { color: var(--text); }

.seo-faq { border-top: 1px solid var(--border); padding-top: 36px; }

.seo-internal-links {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.seo-links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 4px;
}
.seo-links-list li a {
  font-size: 14px;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.seo-links-list li a:hover { text-decoration-color: var(--gold); }

/* ===== MOBILE ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .header-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    z-index: 99;
  }
  .header-nav.open { display: flex; }
  .header-nav a { font-size: 15px; }

  .btn-outline { display: none; }

  .hero-bonus-box { flex-direction: column; gap: 12px; }
  .bonus-divider { display: none; }

  .promo-banner { flex-direction: column; }
  .promo-nums { justify-content: center; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
}
