:root {
  --red-900: #1a0505;
  --red-800: #2d0a14;
  --red-700: #7f1d1d;
  --red-600: #b91c1c;
  --red-500: #dc2626;
  --pink-500: #ec4899;
  --pink-400: #f472b6;
  --pink-300: #f9a8d4;
  --gold-500: #d4af37;
  --gold-400: #fbbf24;
  --gold-300: #fcd34d;
  --text: #fce7f3;
  --text-muted: #f9a8d4;
  --surface: rgba(45, 10, 20, 0.92);
  --border: rgba(212, 175, 55, 0.35);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --cta: #be185d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Sarabun', Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(ellipse at top, #3d0f1f 0%, var(--red-900) 55%, #0a0204 100%);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-400); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink-400); }
h1, h2, h3, .btn, .nav-link, .section-title, .jackpot-label {
  font-family: 'Kanit', sans-serif;
}
.container { width: min(1200px, 100% - 32px); margin: 0 auto; }

.topbar {
  background: linear-gradient(90deg, var(--red-900), var(--red-800) 50%, var(--red-900));
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar-links { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar-links a {
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
}
.topbar-links a.live-chat {
  background: linear-gradient(135deg, var(--red-600), var(--cta));
}
.topbar-links a.live-chat:hover { background: linear-gradient(135deg, var(--pink-500), var(--pink-400)); color: #fff; }
.auth-group { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-login {
  background: linear-gradient(180deg, var(--red-500), var(--cta));
  color: #fff;
  box-shadow: 0 4px 14px rgba(190, 24, 93, .4);
}
.btn-login:hover { color: #fff; box-shadow: 0 6px 20px rgba(236, 72, 153, .5); }
.btn-register {
  background: linear-gradient(180deg, var(--red-600), var(--gold-500));
  color: #fff;
  box-shadow: 0 4px 14px rgba(212, 175, 55, .35);
}
.btn-register:hover { color: var(--red-900); }

.site-header {
  background: var(--red-800);
  border-bottom: 4px solid var(--gold-500);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.logo img { width: 200px; max-height: 56px; object-fit: contain; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  color: var(--pink-300);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-300);
  background: radial-gradient(circle at top, rgba(236,72,153,.2), transparent 70%);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold-400);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Kanit', sans-serif;
  cursor: pointer;
}

.topbar-links a i,
.jackpot-label i,
.footer-badges span i {
  margin-right: 4px;
  vertical-align: -2px;
}

.jackpot-bar {
  background: linear-gradient(90deg, var(--red-700), var(--gold-500) 48%, var(--red-700));
  padding: 16px 0;
  text-align: center;
}
.jackpot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.jackpot-label {
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.jackpot-amount {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 700;
  color: var(--gold-300);
  text-shadow: 0 0 12px rgba(236,72,153,.5), 0 0 20px rgba(212,175,55,.4);
  font-variant-numeric: tabular-nums;
}

.section { padding: 40px 0; }
.section-title {
  font-size: 22px;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '◆';
  color: var(--pink-500);
  font-size: 14px;
}

.provider-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.provider-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Kanit', sans-serif;
  font-size: 13px;
  cursor: pointer;
}
.provider-tab.active, .provider-tab:hover {
  background: linear-gradient(135deg, var(--red-500), var(--cta) 55%, var(--gold-500));
  border-color: transparent;
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(190,24,93,.35);
}
.game-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.game-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,5,5,.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .2s;
}
.game-card:hover .overlay { opacity: 1; }
.game-card .name {
  padding: 10px;
  font-size: 12px;
  text-align: center;
  color: var(--gold-300);
  font-family: 'Kanit', sans-serif;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
}
.btn-demo {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid var(--border);
}
.btn-play {
  background: linear-gradient(135deg, var(--red-500), var(--gold-500));
  color: #fff;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.feature-card h3 {
  margin: 0 0 8px;
  color: var(--gold-400);
  font-size: 16px;
}
.feature-card p { margin: 0; font-size: 14px; color: var(--text-muted); }

.winners-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}
.winner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.winner-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.winner-info { flex: 1; font-size: 13px; }
.winner-amount { color: var(--gold-300); font-weight: 700; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}

.seo-block {
  background: linear-gradient(180deg, rgba(45,10,20,.95), rgba(26,5,5,.98));
  border-top: 2px solid var(--gold-500);
  padding: 40px 0 32px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--gold-400); }
.seo-block h1 {
  font-size: clamp(20px, 4vw, 28px);
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 1px 6px rgba(212,175,55,.3);
  line-height: 1.35;
}
.seo-block p {
  margin: 0 0 14px;
  text-align: justify;
  color: var(--text);
  font-size: 14px;
}
.seo-block h2 {
  font-size: 18px;
  color: var(--gold-400);
  margin: 24px 0 12px;
}

.site-footer {
  background: var(--red-900);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  opacity: .85;
}
.footer-badges span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--gold-400);
}

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--red-800);
  border-top: 2px solid var(--gold-500);
  padding: 10px 16px;
  gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 12px; }

.content-page .page-hero {
  padding: 32px 0 24px;
  text-align: center;
}
.content-page .page-hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  color: #fff;
  margin: 0 0 12px;
}
.content-page .page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.content-card h2 {
  font-size: 18px;
  color: var(--gold-400);
  margin: 0 0 12px;
  font-family: 'Kanit', sans-serif;
}
.content-card h2 i,
.feature-card h3 i,
.section-title i {
  margin-right: 6px;
  vertical-align: -2px;
}
.content-card ul { margin: 0; padding-left: 20px; }
.content-card li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-800);
    padding: 16px;
    border-bottom: 4px solid var(--gold-500);
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .two-col { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
  .auth-group .btn { padding: 8px 14px; font-size: 13px; }
}