:root {
  --bg-primary: #0d0f1c;
  --bg-secondary: #131626;
  --bg-card: #1a1f36;
  --bg-card-hover: #1e2440;
  --gold: #FFD700;
  --gold-dark: #e6a800;
  --gold-light: #fff0a0;
  --accent: #ff6b35;
  --text-primary: #f0f0f0;
  --text-secondary: #9a9ec8;
  --text-muted: #6b7194;
  --border: #2a2f50;
  --border-gold: rgba(255,215,0,0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 20px rgba(255,215,0,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

/* ========== CONTAINER ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-fluid { max-width: 1600px; margin: 0 auto; padding: 0 24px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px; border-radius: 50px; font-weight: 700;
  font-size: 14px; letter-spacing: 0.5px; cursor: pointer;
  border: 2px solid transparent; transition: all .25s; white-space: nowrap;
  text-decoration: none; outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #f0a800 100%);
  color: #1a1a2e; border-color: var(--gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0d0f1c; transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-secondary {
  background: linear-gradient(135deg, #2a2f50 0%, #1e2440 100%);
  color: var(--text-primary); border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover); border-color: var(--gold);
  color: var(--gold); transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold); color: #1a1a2e;
}
.btn-glow { box-shadow: 0 0 15px rgba(255,215,0,0.4); }
.btn-glow:hover { box-shadow: 0 0 30px rgba(255,215,0,0.7); }
.btn-xl { padding: 16px 40px; font-size: 16px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-top { padding: 12px 0; }
.header-inner {
  display: flex; align-items: center; gap: 24px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon { font-size: 28px; }
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 22px; color: #fff; letter-spacing: -0.5px;
}
.logo-de { color: var(--gold); }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
  color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 14px; transition: all .2s;
}
.main-nav a:hover { color: var(--text-primary); background: var(--bg-card); }

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px; transition: all .3s;
}

.header-categories {
  background: var(--bg-primary); border-top: 1px solid var(--border);
  padding: 0;
}
.category-nav {
  display: flex; gap: 2px; list-style: none; overflow-x: auto;
  scrollbar-width: none; padding: 8px 0;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  display: block; padding: 6px 16px; border-radius: 50px;
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  white-space: nowrap; transition: all .2s;
}
.category-nav a:hover { color: var(--gold); background: var(--bg-card); }

/* ========== HERO ========== */
.hero-section {
  position: relative; min-height: 480px;
  background: linear-gradient(135deg, #0d0f1c 0%, #131626 40%, #1a1030 100%);
  overflow: hidden; display: flex; align-items: center;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,215,0,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(107,99,246,0.08) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 700px; padding: 60px 0;
}
.hero-badge {
  display: inline-block; background: rgba(255,215,0,0.15);
  border: 1px solid var(--border-gold); color: var(--gold);
  padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 900;
  line-height: 1.15; margin-bottom: 20px; color: #fff;
}
.text-gold { color: var(--gold); }
.hero-subtitle {
  color: var(--text-secondary); font-size: 17px;
  max-width: 580px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-size: 24px; font-weight: 900; color: var(--gold);
  font-family: 'Montserrat', sans-serif;
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 800; color: #fff;
}
.text-center { text-align: center; }

/* ========== GAMES SECTION ========== */
.games-section { padding: 40px 0; }

.games-tabs {
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 20px; border-radius: 50px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--gold); color: #1a1a2e;
  border-color: var(--gold);
}

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

/* ========== GAME CARD ========== */
.game-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}
.game-thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 230/160; }
.game-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.game-card:hover .game-thumb { transform: scale(1.05); }
.game-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.game-card:hover .game-overlay { opacity: 1; }
.btn-play-demo {
  background: var(--gold); color: #1a1a2e;
  padding: 10px 24px; border-radius: 50px; font-weight: 700;
  font-size: 14px; transition: all .2s;
}
.btn-play-demo:hover { background: var(--gold-light); transform: scale(1.05); }
.game-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700;
}
.game-info {
  padding: 10px 12px 4px;
}
.game-title {
  font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-title a { color: inherit; }
.game-title a:hover { color: var(--gold); }
.game-provider { font-size: 11px; color: var(--text-muted); }
.game-rtp { font-size: 11px; color: var(--gold); font-weight: 600; margin-left: 8px; }
.game-cta-seo { padding: 8px 12px 12px; display: flex; gap: 6px; }
.game-cta-seo .btn { flex: 1; font-size: 11px; padding: 7px 10px; }

/* ========== LOAD MORE ========== */
.load-more-wrap { text-align: center; padding: 24px 0; }

/* ========== BONUS SECTION ========== */
.bonus-section { padding: 60px 0; background: var(--bg-secondary); }
.bonus-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; margin-top: 32px;
}
.bonus-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; position: relative;
  transition: border-color .2s;
}
.bonus-card:hover { border-color: var(--border-gold); }
.bonus-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255,215,0,0.15);
}
.bonus-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1a1a2e;
  padding: 4px 20px; border-radius: 50px; font-size: 12px; font-weight: 800;
  white-space: nowrap;
}
.casino-logo { font-size: 18px; font-weight: 800; color: #fff; }
.bonus-amount { font-size: 28px; font-weight: 900; color: var(--gold); font-family: 'Montserrat', sans-serif; }
.bonus-desc { color: var(--text-secondary); font-size: 14px; }
.bonus-features { list-style: none; color: var(--text-secondary); font-size: 13px; }
.bonus-features li { padding: 3px 0; }
.bonus-terms { font-size: 11px; color: var(--text-muted); text-align: center; }

/* ========== PROVIDERS ========== */
.providers-section { padding: 60px 0; }
.providers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-top: 32px;
}
.provider-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  text-align: center; transition: all .2s; display: block;
}
.provider-card:hover {
  border-color: var(--border-gold); background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.provider-logo { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.provider-desc { font-size: 11px; color: var(--text-muted); }

/* ========== SEO CONTENT ========== */
.seo-content { padding: 60px 0; }
.seo-inner {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 40px;
  max-width: 900px;
}
.seo-inner h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.seo-inner h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; color: var(--gold); }
.seo-inner p { color: var(--text-secondary); margin-bottom: 12px; }
.seo-inner ul { list-style: none; color: var(--text-secondary); }
.seo-inner ul li { padding: 4px 0 4px 20px; position: relative; }
.seo-inner ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }

/* ========== WINNERS TICKER ========== */
.winners-ticker {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 10px 0; overflow: hidden;
}
.winners-ticker .container { display: flex; align-items: center; gap: 20px; }
.ticker-label {
  font-size: 12px; font-weight: 700; color: var(--gold);
  flex-shrink: 0; white-space: nowrap;
}
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-items {
  display: flex; gap: 40px; animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-item { font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.ticker-item strong { color: var(--gold); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== FOOTER ========== */
.site-footer { background: var(--bg-secondary); padding: 60px 0 40px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-desc { color: var(--text-muted); font-size: 13px; max-width: 280px; margin-bottom: 16px; }
.responsible-gaming { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700;
  color: var(--text-secondary);
}
.footer-nav-group h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-nav-group ul { list-style: none; }
.footer-nav-group ul li { margin-bottom: 8px; }
.footer-nav-group ul a { color: var(--text-muted); font-size: 13px; transition: color .2s; }
.footer-nav-group ul a:hover { color: var(--gold); }
.footer-bottom { text-align: center; }
.copyright { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.disclaimer {
  color: var(--text-muted); font-size: 11px;
  max-width: 700px; margin: 0 auto; line-height: 1.5;
}

/* ========== GAME STUB MODAL ========== */
.game-stub-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
}
.game-stub-modal.active { display: flex; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
}
.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-secondary); border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  max-width: 820px; width: calc(100% - 32px);
  box-shadow: 0 0 60px rgba(255,215,0,0.2);
  overflow: hidden; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,0.5); border: 1px solid var(--border);
  color: var(--text-primary); width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); }

.stub-cta-bar {
  background: linear-gradient(135deg, #1a1f36 0%, #131626 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.stub-cta-text {
  color: var(--text-primary); font-size: 14px;
}
.stub-cta-text strong { color: var(--gold); }

.game-screen {
  width: 100%; height: 420px;
  background: #0a0a1a;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.game-screen canvas { display: block; width: 100%; height: 100%; }

.stub-footer {
  padding: 16px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
}
.stub-footer p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

/* ========== INLINE GAME (single page) ========== */
.game-cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1e2440 100%);
  border: 1px solid var(--border-gold); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.game-cta-banner h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.game-cta-banner p { color: var(--text-secondary); font-size: 14px; }

.game-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 24px; align-items: start;
}

.game-stub-container {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: #0a0a1a; min-height: 400px;
  border: 1px solid var(--border);
}
.inline-game-screen { width: 100%; min-height: 400px; }
.game-stub-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,26,0.3) 0%, rgba(10,10,26,0.9) 100%);
  display: flex; align-items: center; justify-content: center;
}
.overlay-cta {
  text-align: center; padding: 24px;
  background: rgba(10,10,26,0.8); border-radius: var(--radius);
  border: 1px solid var(--border-gold);
}
.overlay-cta h3 { font-size: 22px; margin-bottom: 8px; }
.overlay-cta p { color: var(--text-secondary); margin-bottom: 20px; }

.below-game-cta { margin-top: 12px; text-align: center; }
.below-game-cta .btn { margin-bottom: 8px; }
.below-game-cta small { font-size: 11px; color: var(--text-muted); }

.game-info-panel {}
.game-page-title { font-size: 26px; font-weight: 900; margin-bottom: 20px; }
.game-stats-table {
  width: 100%; border-collapse: collapse; margin-bottom: 20px;
  background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden;
}
.game-stats-table th, .game-stats-table td {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.game-stats-table th { color: var(--text-muted); font-weight: 500; width: 40%; }
.game-stats-table td { color: var(--text-primary); font-weight: 600; }
.game-detail-thumb { width: 100%; border-radius: var(--radius-sm); margin-bottom: 16px; }
.game-description { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

/* ========== SINGLE GAME PAGE ========== */
.single-game-page { padding: 24px 0 60px; }
.breadcrumb-bar { margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }

/* ========== MAIN LAYOUT ========== */
.main-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 32px; max-width: 1280px; margin: 0 auto; padding: 32px 24px;
}

/* ========== SIDEBAR ========== */
.sidebar {}
.widget { margin-bottom: 24px; }
.widget-title {
  font-size: 14px; font-weight: 700; color: #fff;
  padding: 12px 16px; background: var(--bg-card);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  margin-bottom: 8px;
}
.category-list, .provider-list { list-style: none; }
.category-list a, .provider-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13px; transition: all .2s;
}
.category-list a:hover, .provider-list a:hover {
  background: var(--bg-card); color: var(--gold);
}
.count {
  background: var(--bg-card); color: var(--text-muted);
  padding: 2px 8px; border-radius: 50px; font-size: 11px;
}
.promo-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1e2440 100%);
  border: 1px solid var(--border-gold); border-radius: var(--radius);
  padding: 20px; text-align: center;
  box-shadow: 0 0 20px rgba(255,215,0,0.1);
}
.promo-title { color: var(--gold); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.promo-amount {
  font-size: 28px; font-weight: 900; color: #fff;
  font-family: 'Montserrat', sans-serif; margin-bottom: 4px;
}
.promo-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.promo-box small { font-size: 10px; color: var(--text-muted); display: block; margin-top: 8px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .bonus-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .game-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .main-layout { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; margin-left: auto; }
  .bonus-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .stub-cta-bar { flex-direction: column; align-items: flex-start; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-cta-seo { flex-direction: column; }
  .container { padding: 0 16px; }
}
