/* =========================================================
   01. GLOBAL RESET
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 0 !important;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   02. THEME VARIABLES - DARK MODE DEFAULT
========================================================= */

:root {
  --bg: #090d18;
  --bg-alt: #11182a;
  --card: #151f35;
  --card-soft: #18243b;
  --text: #f6f8ff;
  --muted: #b7c1d6;
  --line: rgba(255, 255, 255, 0.12);

  --brand: #f5b942;
  --brand-light: #ffdf75;
  --brand-dark: #d89717;
  --accent: #41d6a4;
  --danger: #ff6b6b;

  --header-bg: rgba(9, 13, 24, 0.96);
  --footer-bg: #060912;

  --panel-bg: linear-gradient(180deg, #151f33 0%, #0f1728 100%);
  --panel-card-bg: rgba(255, 255, 255, 0.045);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   03. THEME VARIABLES - LIGHT MODE
   Activated by body.light-mode
========================================================= */

body.light-mode {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-soft: #f1f5fb;
  --text: #101827;
  --muted: #5b6678;
  --line: rgba(16, 24, 39, 0.12);

  --brand: #d89717;
  --brand-light: #f5b942;
  --brand-dark: #b77a0d;
  --accent: #159052;
  --danger: #e42f47;

  --header-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #101827;

  --panel-bg: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  --panel-card-bg: #ffffff;

  --shadow: 0 14px 34px rgba(16, 24, 39, 0.12);
}

/* =========================================================
   04. HEADER / NAVIGATION
   Header stays outside scroll area
========================================================= */

.site-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  flex: 0 0 74px !important;
  z-index: 999999 !important;
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible !important;
}

.nav-wrap {
  height: 74px !important;
  min-height: 74px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  overflow: visible !important;
}

.logo {
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
  line-height: 1 !important;
}

.logo-img {
  height: 34px !important;
  max-height: 34px !important;
  width: auto !important;
  max-width: 140px !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--brand);
}

.theme-toggle {
  flex-shrink: 0 !important;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-shrink: 0 !important;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================================
   05. PAGE SCROLL AREA
   Only main + footer scroll
========================================================= */

.page-scroll {
  flex: 1 1 auto;
  height: calc(100dvh - 74px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

@supports not (height: 100dvh) {
  .page-scroll {
    height: calc(100vh - 74px);
  }
}

main {
  padding-top: 0 !important;
}

/* =========================================================
   06. TYPOGRAPHY
========================================================= */

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 13px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  max-width: 820px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: 22px;
}

p {
  color: var(--muted);
  margin: 0 0 18px;
}

/* =========================================================
   07. COMMON BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.btn-primary {
  color: #1c1405;
  background: linear-gradient(135deg, var(--brand), #fff0aa);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

body.light-mode .btn-secondary {
  background: #ffffff;
}

/* =========================================================
   08. GENERAL SECTION / CARD STYLE
========================================================= */

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.hero-card,
.info-box,
.feature-card,
.simple-card,
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================================================
   09. APP DOWNLOAD SECTION
========================================================= */

.app-download-section {
  padding: 46px 0;
}

.app-download-box {
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.22);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.app-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.app-title-icon {
  width: 66px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #08111f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 18px rgba(245, 185, 66, 0.22);
}

.app-title-text h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.app-title-text p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.app-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.app-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background: var(--panel-card-bg);
  border: 1px solid var(--line);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(245, 185, 66, 0.16),
    transparent 42%
  );
  pointer-events: none;
}

.android-card {
  box-shadow: inset 0 0 0 1px rgba(65, 214, 164, 0.16);
}

.ios-card {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.16);
}

.windows-card {
  box-shadow: inset 0 0 0 1px rgba(80, 150, 255, 0.16);
}

/* OS title + download icon row */
.app-card-head {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  margin-bottom: 16px;
}

.app-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.title-download-icon {
  margin-left: auto;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(245, 185, 66, 0.6);
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand);
  font-size: 16px;
  line-height: 1;
  box-sizing: border-box;
  pointer-events: none;
  cursor: default;
}

.title-download-icon i {
  line-height: 1;
}

/* Main download button */
.download-main-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  background: linear-gradient(180deg, #ffd96a 0%, #f5c84c 100%);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 22px rgba(245, 185, 66, 0.18);
  transition: all 0.2s ease;
}

.download-main-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(245, 185, 66, 0.26);
}

/* Extra download links */
.download-link-grid {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.download-link-grid a {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(245, 185, 66, 0.28);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.download-link-grid a:hover {
  background: rgba(245, 185, 66, 0.13);
  border-color: rgba(245, 185, 66, 0.75);
  color: var(--brand);
}

/* Hide old file-row if old HTML still exists */
.download-file-row {
  display: none !important;
}

body.light-mode .download-link-grid a {
  background: #f6f8fc;
  color: #07152e;
  border: 1px solid rgba(16, 24, 39, 0.1);
}

body.light-mode .download-link-grid a:hover {
  background: #eef3fb;
  color: #07152e;
  border-color: rgba(216, 151, 23, 0.45);
}

/* =========================================================
   10. HERO SECTION
========================================================= */

.hero {
  padding: 88px 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(245, 185, 66, 0.16),
      transparent 30%
    ),
    radial-gradient(circle at 80% 0%, rgba(65, 214, 164, 0.1), transparent 32%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-grid,
.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.hero-text {
  max-width: 720px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card {
  padding: 28px;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

body.light-mode .hero {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(245, 185, 66, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(65, 214, 164, 0.12),
      transparent 32%
    ),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

/* =========================================================
   11. CASINO COMPARISON TABLE
========================================================= */

.casino-compare-table {
  width: 100%;
  display: grid;
  gap: 16px;
}

.casino-compare-head {
  display: grid;
  grid-template-columns: 70px 1.2fr 1.8fr 110px 1.4fr 260px;
  align-items: center;
  gap: 16px;
  padding: 0 28px 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.casino-compare-head div:nth-child(4) {
  text-align: center;
}

.casino-compare-head div:nth-child(6) {
  text-align: right;
}

.casino-compare-row {
  display: grid;
  grid-template-columns: 70px 1.2fr 1.8fr 110px 1.4fr 260px;
  align-items: center;
  gap: 16px;
  min-height: 124px;
  padding: 22px 28px;
  border-radius: 14px;
  background: var(--panel-bg);
  color: var(--text);
  border: 1px solid rgba(245, 185, 66, 0.22);
  box-shadow: var(--shadow);
}

.casino-rank {
  color: rgba(255, 255, 255, 0.55);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.casino-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.casino-brand-logo {
  height: 42px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.casino-brand strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.casino-highlight,
.casino-bonus {
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.casino-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.casino-stars {
  color: #ffb000;
  letter-spacing: 1px;
  line-height: 1;
}

.casino-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.casino-play-btn,
.casino-contact-btn,
.casino-overview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.casino-play-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #15100a;
}

.casino-play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245, 185, 66, 0.22);
}

.casino-contact-btn,
.casino-overview-btn {
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(245, 185, 66, 0.55);
}

.casino-contact-btn:hover,
.casino-overview-btn:hover {
  background: rgba(245, 185, 66, 0.12);
  color: var(--brand-light);
}

body.light-mode .casino-compare-head {
  color: #07152e;
}

body.light-mode .casino-compare-row {
  background: #ffffff;
  color: #07152e;
  border: 1px solid rgba(16, 24, 39, 0.08);
  box-shadow: 0 8px 22px rgba(16, 24, 39, 0.08);
}

body.light-mode .casino-rank {
  color: #9ca3af;
}

body.light-mode .casino-brand strong,
body.light-mode .casino-highlight,
body.light-mode .casino-rating,
body.light-mode .casino-bonus {
  color: #07152e;
}

body.light-mode .casino-play-btn {
  background: #0b347a;
  color: #ffffff;
}

body.light-mode .casino-play-btn:hover {
  background: #0e4096;
}

body.light-mode .casino-contact-btn,
body.light-mode .casino-overview-btn {
  background: #e8eef7;
  color: #07152e;
  border: none;
}

body.light-mode .casino-contact-btn:hover,
body.light-mode .casino-overview-btn:hover {
  background: #dbe5f2;
  color: #07152e;
}

/* =========================================================
   12. GAMES CAROUSEL SECTION
========================================================= */

#games.section.alt {
  background: var(--bg-alt);
}

.games-box {
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.22);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.games-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.games-title-text h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.games-title-text p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

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

.games-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 185, 66, 0.4);
  background: var(--card-soft);
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.games-nav-btn:hover {
  border-color: var(--brand);
  background: rgba(245, 185, 66, 0.12);
}

.games-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.games-carousel {
  overflow: hidden;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--card-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.game-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.games-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.games-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.games-dot.active {
  width: 24px;
  background: var(--brand);
}

body.light-mode .game-card {
  background: #ffffff;
  border: 1px solid rgba(16, 24, 39, 0.12);
  box-shadow: 0 10px 22px rgba(16, 24, 39, 0.12);
}

body.light-mode .games-nav-btn {
  background: #ffffff;
}

/* =========================================================
   13. GUIDE / FEATURE CARDS / CHECKLIST
========================================================= */

.info-box {
  padding: 28px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #15100a;
  background: var(--brand);
  border-radius: var(--radius-sm);
  font-weight: 900;
  margin-bottom: 18px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

body.light-mode .checklist div {
  background: #ffffff;
}

/* =========================================================
   14. TOP BANNER
========================================================= */

.top-banner {
  padding: 28px 0 0;
  background: var(--bg);
}

.top-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 185, 66, 0.18);
  box-shadow: var(--shadow);
}

/* =========================================================
   15. FAQ SECTION
========================================================= */

.faq details {
  padding: 20px 24px;
  margin-bottom: 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.faq p {
  margin-top: 14px;
}

/* =========================================================
   16. CONTACT SECTION
========================================================= */

.contact-section {
  padding: 78px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 185, 66, 0.08), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(65, 214, 164, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-panel-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    rgba(245, 185, 66, 0.12),
    rgba(255, 255, 255, 0.03)
  );
}

.contact-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-title-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #101827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(245, 185, 66, 0.2);
}

.contact-panel-title h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
}

.contact-panel-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-list {
  padding: 8px 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  flex-shrink: 0;
}

.livechat-icon {
  background: linear-gradient(135deg, #7f0000, #b30000);
}

.wechat-icon {
  background: linear-gradient(135deg, #2ac300, #56d400);
}

.telegram-icon {
  background: linear-gradient(135deg, #179cff, #4bb7ff);
}

.contact-item-content h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.contact-item-content p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.contact-item-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contact-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8e0000, #b50000);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(181, 0, 0, 0.22);
}

.contact-chat-btn:hover {
  transform: translateY(-1px);
}

.contact-qr {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  border: 1px solid var(--line);
}

/* =========================================================
   17. FOOTER
========================================================= */

.site-footer {
  padding: 58px 0 24px;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  color: #b7c1d6;
}

.site-footer a {
  display: block;
  color: #b7c1d6;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--brand);
}

.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7c1d6;
  font-size: 14px;
}

/* =========================================================
   18. PROMOTION POPUP
========================================================= */

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.promo-popup.show {
  display: flex;
}

.promo-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.promo-popup-box {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: linear-gradient(180deg, #12203f 0%, #0b1630 100%);
  border: 1px solid rgba(241, 186, 63, 0.35);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: promoPopupIn 0.25s ease-out;
}

.promo-popup-img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-popup-content {
  padding: 22px 24px 24px;
  color: #ffffff;
}

.promo-popup-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0b1630;
  background: #f3c44e;
  border-radius: 999px;
}

.promo-popup-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
}

.promo-popup-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.promo-popup-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.promo-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.promo-popup-btn-primary {
  background: #f3c44e;
  color: #111827;
}

.promo-popup-btn-primary:hover {
  background: #ffd76b;
  transform: translateY(-1px);
}

.promo-popup-btn-secondary {
  border: 1px solid rgba(243, 196, 78, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.promo-popup-btn-secondary:hover {
  background: rgba(243, 196, 78, 0.12);
}

.promo-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(243, 196, 78, 0.45);
  background: rgba(5, 10, 24, 0.72);
  color: #f3c44e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.promo-popup-close:hover {
  background: rgba(243, 196, 78, 0.14);
}

@keyframes promoPopupIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   19. BLOG LIST PAGE
========================================================= */

.blog-hero {
  padding: 90px 0 58px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 185, 66, 0.14), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(65, 214, 164, 0.08), transparent 32%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.blog-hero-content {
  max-width: 820px;
}

.blog-hero h1 {
  margin-bottom: 18px;
}

.blog-hero p {
  font-size: 18px;
}

.blog-section {
  background: var(--bg);
}

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

.blog-main {
  display: grid;
  gap: 22px;
}

.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card-img {
  display: block;
  min-height: 210px;
  background: var(--card-soft);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px 24px 24px 0;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.blog-card h2 a:hover {
  color: var(--brand);
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 900;
}

/* =========================================================
   20. BLOG DETAIL PAGE
========================================================= */

.article-breadcrumb {
  padding: 28px 0 10px;
  background: var(--bg);
}

.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-hero {
  padding: 12px 0 28px;
  background: var(--bg);
}

.article-hero-card {
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero-image {
  width: 100%;
  height: 420px;
  background: var(--card-soft);
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-hero-content {
  padding: 30px 34px 36px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.article-hero-content h1 {
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.15;
}

.article-intro {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-main {
  display: grid;
  gap: 22px;
}

.article-box {
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.14);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.article-box h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.article-box ul {
  margin: 0 0 18px 20px;
  padding: 0;
}

.article-box li {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.article-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.article-sidebar-card,
.sidebar-card {
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.18);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.article-sidebar-card h3,
.sidebar-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.article-sidebar-card > a,
.sidebar-card a {
  display: block;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.article-sidebar-card > a:last-child,
.sidebar-card a:last-child {
  border-bottom: none;
}

.article-sidebar-card > a:hover,
.sidebar-card a:hover {
  color: var(--brand);
}

.article-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.18);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--panel-bg);
  border: 1px solid rgba(245, 185, 66, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.related-card-image {
  display: block;
  height: 180px;
  background: var(--card-soft);
}

.related-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.related-card-content {
  padding: 18px;
}

/* =========================================================
   21. RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .casino-compare-head {
    display: none;
  }

  .casino-compare-row {
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: start;
    padding: 22px;
  }

  .casino-rank {
    grid-row: span 5;
    font-size: 28px;
    padding-top: 6px;
  }

  .casino-brand {
    flex-direction: row;
    align-items: center;
  }

  .casino-highlight,
  .casino-rating,
  .casino-bonus,
  .casino-actions {
    grid-column: 2;
  }

  .casino-rating {
    align-items: flex-start;
    text-align: left;
  }

  .casino-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 999998 !important;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  body.nav-open .main-nav {
    display: flex !important;
  }

  .hero-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-card-list {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-img {
    min-height: 240px;
  }

  .blog-card-content {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 68px !important;
    min-height: 68px !important;
    flex-basis: 68px !important;
  }

  .nav-wrap {
    height: 68px !important;
    min-height: 68px !important;
  }

  .page-scroll {
    height: calc(100dvh - 68px);
  }

  @supports not (height: 100dvh) {
    .page-scroll {
      height: calc(100vh - 68px);
    }
  }

  .logo-img {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 130px !important;
  }

  .theme-toggle {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .nav-toggle {
    padding: 6px 10px !important;
    font-size: 22px !important;
  }

  .app-download-section {
    padding: 32px 0;
  }

  .app-download-box,
  .games-box {
    padding: 18px;
    border-radius: 12px;
  }

  .app-section-title {
    gap: 10px;
    margin-bottom: 20px;
  }

  .app-title-icon {
    width: 54px;
    height: 42px;
    border-radius: 7px;
    font-size: 18px;
  }

  .app-title-text h2 {
    font-size: 22px;
  }

  .app-title-text p {
    font-size: 12px;
  }

  .app-card {
    min-height: 185px;
    padding: 18px;
    border-radius: 10px;
  }

  .app-card-head h3 {
    font-size: 16px;
  }

  .title-download-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    font-size: 14px;
  }

  .download-main-btn {
    min-height: 48px;
    border-radius: 7px;
    font-size: 14px;
  }

  .games-header {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .games-title-text h2 {
    font-size: 22px;
  }

  .games-title-text p {
    font-size: 12px;
  }

  .games-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .game-card {
    border-radius: 8px;
  }

  .contact-section {
    padding: 54px 0;
  }

  .contact-panel {
    border-radius: 12px;
  }

  .contact-panel-header {
    padding: 18px;
  }

  .contact-panel-title {
    align-items: flex-start;
    gap: 12px;
  }

  .contact-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 20px;
  }

  .contact-panel-title h2 {
    font-size: 24px;
  }

  .contact-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 18px;
  }

  .contact-item-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 68px;
    margin-top: 6px;
  }

  .contact-qr {
    width: 90px;
    height: 90px;
  }

  .article-hero-image {
    height: 240px;
  }

  .article-hero-content {
    padding: 22px;
  }

  .article-hero-content h1 {
    font-size: 32px;
  }

  .article-intro {
    font-size: 17px;
  }

  .article-box {
    padding: 22px;
  }

  .promo-popup-box {
    width: 100%;
    border-radius: 14px;
  }

  .promo-popup-content {
    padding: 18px;
  }

  .promo-popup-title {
    font-size: 24px;
  }

  .promo-popup-text {
    font-size: 15px;
  }

  .promo-popup-actions {
    flex-direction: column;
  }

  .promo-popup-btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .section,
  .hero {
    padding: 54px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .casino-compare-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .casino-rank {
    grid-row: auto;
    font-size: 24px;
  }

  .casino-brand,
  .casino-highlight,
  .casino-rating,
  .casino-bonus,
  .casino-actions {
    grid-column: auto;
  }

  .casino-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .casino-play-btn,
  .casino-contact-btn,
  .casino-overview-btn {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
    padding: 0 12px;
  }

  .blog-hero {
    padding: 64px 0 36px;
  }

  .blog-hero p {
    font-size: 15px;
  }

  .blog-card h2 {
    font-size: 22px;
  }

  .blog-card-img {
    min-height: 190px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-link-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .download-link-grid a {
    min-height: 36px;
    font-size: 12px;
  }

  .article-hero-content h1 {
    font-size: 28px;
  }

  .article-intro {
    font-size: 16px;
    line-height: 1.7;
  }

  .related-card-image {
    height: 150px;
  }
}

/* =========================================================
   22. ANCHOR OFFSET
========================================================= */

section {
  scroll-margin-top: 16px;
}

/* =========================================================
   FINAL MOBILE WIDTH FIX
   Fix horizontal overflow on Android mobile
========================================================= */

/* Prevent the whole page from moving left/right */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Only allow vertical scroll inside page-scroll */
.page-scroll {
  width: 100%;
  max-width: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Make all main layout blocks respect screen width */
main,
section,
.container,
.app-download-section,
.app-download-box,
.app-card-list,
.app-card,
.hero,
.hero-grid,
.content-grid,
.games-box,
.contact-panel,
.site-footer {
  max-width: 100%;
  min-width: 0;
}

/* Important: prevent grid/flex children from forcing overflow */
.app-title-text,
.app-card,
.app-card-head,
.hero-grid > *,
.content-grid > *,
.games-box,
.contact-panel,
.casino-compare-row,
.footer-grid > * {
  min-width: 0;
}

/* Mobile container safety */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  /* App download box should not exceed screen */
  .app-download-box {
    width: 100%;
    padding: 18px;
    overflow: hidden;
  }

  .app-card-list {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .app-card {
    width: 100%;
  }

  /* Button text should not push layout wider */
  .download-main-btn,
  .download-link-grid a {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  /* Header should not create overflow */
  .site-header,
  .nav-wrap {
    width: 100%;
    max-width: 100%;
  }

  .logo-img {
    max-width: 130px !important;
  }

  .theme-toggle {
    white-space: nowrap;
  }

  .nav-toggle {
    flex-shrink: 0;
  }
}

/* Extra small phone safety */
@media (max-width: 420px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-download-box {
    padding: 14px;
  }

  .app-card {
    padding: 16px;
  }

  .download-main-btn {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* =========================================================
   BLOG PAGE MOBILE MENU FIX
========================================================= */

@media (max-width: 960px) {
  .main-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 999998 !important;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  body.nav-open .main-nav {
    display: flex !important;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
  }

  .main-nav a:hover {
    background: rgba(245, 185, 66, 0.1);
  }
}

/* =========================================================
   GAMES PAGINATION FIX
   Prevent carousel dots from overflowing on mobile
========================================================= */

.games-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;           /* allow dots to wrap */
  gap: 6px;
  max-width: 100%;
  margin-top: 22px;
  padding: 0 12px;
  overflow: hidden;
}

.games-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.games-dot.active {
  width: 20px;
  min-width: 20px;
  background: var(--brand);
}

/* Mobile: smaller dots */
@media (max-width: 768px) {
  .games-pagination {
    gap: 5px;
    margin-top: 18px;
    padding: 0 8px;
  }

  .games-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
  }

  .games-dot.active {
    width: 18px;
    min-width: 18px;
  }
}

/* Extra small phone */
@media (max-width: 420px) {
  .games-pagination {
    gap: 4px;
  }

  .games-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
  }

  .games-dot.active {
    width: 16px;
    min-width: 16px;
  }
}