:root{--qa-guard:start}

:where(main :is([class*="grid"], [style*="grid"], [class*="layout"], .row, [class*="cols"], [class*="split"], [class*="columns"],
               [data-component], ol, ul, dl) > *) { min-width: 0; }
:where(main img, main video, main iframe) { max-width: 100%; }
:where(main img) { height: auto; }
:where(main pre) { overflow-x: auto; }
:where(main table) { max-width: 100%; }
:where(h1, h2, h3, h4, h5, h6) { line-height: 1.3; }
:where(footer a:not([class*="btn"]), .breadcrumb a, nav li a) { display: inline-block; padding-block: 4px; }
img[data-role="hero"] { object-position: 75% 30% !important; } 
.navbar-brand:has(> img.site-logo) { background: none !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
.navbar-brand > img.site-logo { height: 40px; width: auto; display: block; }

main > :is(section, div):not(:first-child):not(:empty, [class*="divider"], [class*="separator"], [aria-hidden="true"]) { padding-block: clamp(28px, 3.5vw, 44px) !important; margin-block: 0 !important; }
main > :first-child, main > :first-child > :is(section, div) { min-height: 0 !important; }
main > :first-child { padding-block: clamp(24px, 4vw, 56px) !important; }
main :is(h1, h2, h3) { line-height: 1.35 !important; }
main :is(p, li, td, dd) { line-height: 1.55 !important; }
main > :is(section, div) :is(h2):first-of-type { margin-bottom: 12px; }
@media (max-width: 575.98px) {
  main [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) { grid-template-columns: 1fr !important; }
  
  :is([data-component="game-grid"], [data-component="game-grid"] *):has(> .game-card) {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .game-card .game-tag { position: static !important; display: inline-block; margin-top: 6px; }
  
  main :is(div, p, nav):has(> :is(a, button)[class*="btn"]):not([class*="scroll"], [class*="strip"], [class*="tab"], [class*="chip"]) {
    flex-wrap: wrap !important; flex-shrink: 1 !important; max-width: 100%; }
  main div:has(> :is(div, p) > :is(a, button)[class*="btn"]):not([class*="scroll"], [class*="strip"], [class*="tab"], [class*="chip"]) {
    flex-wrap: wrap !important; }  
  
  main :is(ol, ul, [data-component="steps"], [data-component="steps"] div):not([class*="scroll"], [class*="strip"], [class*="tab"], [class*="chip"]) {
    flex-wrap: wrap !important; }
  main :is(a, button)[class*="btn"] { white-space: normal !important; }
  
  main table:not(:is([class*="responsive"], [class*="scroll"], [style*="overflow"]) table) {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .game-card :is(.game-card-body, div:has(> h3)) { padding: 10px 12px 12px !important; }
}
.toc-auto { margin: 0 auto 24px; max-width: 1100px; padding: 12px 16px; border: 1px solid var(--border, rgba(255,255,255,.15)); border-radius: 12px; }
.toc-auto summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.toc-auto ol { margin: 8px 0 0; padding-left: 1.4em; }
[data-component="toc"] a { display: inline-block; padding-block: 4px; }
html { scroll-padding-top: 88px; }

:is(header, footer, main > :not(:first-child)) :is(.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl) {
  max-width: 1320px !important; margin-inline: auto !important; }
main > :first-child > :not([class*="container"], :has([class*="container"]), img, picture, video, [style*="absolute"]),
main > :not(:has([class*="container"])) { padding-inline: max(16px, calc((100% - 1320px) / 2)) !important; }  
main > :first-child :is(.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl):not(:has(> img[data-role="hero"])) {
  max-width: 1320px !important; margin-inline: auto !important; }
:where(main [style*="overflow-x"][style*="flex"]:not([style*="wrap"])) > * { min-width: auto; }

:where(main > :not(:first-child), body > footer) { content-visibility: auto; contain-intrinsic-size: auto 600px; }
@media (max-width: 767.98px) { :where(main > :not(:first-child), body > footer) { contain-intrinsic-size: auto 900px; } }  
:root{--qa-guard:end}

:root {
  --bg: #f7f3f2;
  --surface: #ffffff;
  --surface-alt: #efe6e3;
  --primary: #b3261e;
  --primary-dark: #7f1d1d;
  --action: #f56908;
  --action-dark: #d45500;
  --accent: #ffb300;
  --border: #c9961e;
  --text: #1a0a00;
  --text-muted: #6b3a2a;
  --radius-card: 24px;
  --radius-btn: 999px;
  --radius-hero: 32px;
  --shadow-card: 0 4px 16px rgba(179,38,30,0.08), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 12px 32px rgba(179,38,30,0.18), 0 2px 8px rgba(0,0,0,0.10);
  --shadow-btn: 0 8px 24px rgba(245,105,8,0.35);
  --shadow-btn-hover: 0 12px 32px rgba(245,105,8,0.50);
  --shadow-panel: 0 16px 48px rgba(0,0,0,0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--border) var(--surface-alt);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif Bengali', serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: var(--primary);
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: var(--action);
  text-decoration-color: var(--action);
}

h1, h2, h3, h4, h5 {
  font-family: 'Atma', cursive;
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { font-family: 'Noto Serif Bengali', serif; overflow-wrap: anywhere; }

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--action);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 36px;
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary-action:hover {
  background: var(--action-dark);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
  color: #ffffff;
}
.btn-primary-action:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(245,105,8,0.30); }

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-family: 'Atma', cursive;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline-brand:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 36px;
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(255,179,0,0.35);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-accent:hover {
  background: #e6a000;
  transform: translateY(-2px);
  color: var(--text);
}

.site-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.2s;
}
.site-navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.site-navbar .navbar-brand {
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 28px;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-navbar .brand-daji { color: var(--text); }
.site-navbar .brand-200 { color: var(--primary); }
.site-navbar .nav-link {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text) !important;
  position: relative;
  padding: 8px 12px !important;
  transition: color 0.2s;
}
.site-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.site-navbar .nav-link:hover { color: var(--primary) !important; }
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after { transform: scaleX(1); }
.site-navbar .nav-link.active { color: var(--primary) !important; }

.navbar-login-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 999px;
  padding: 8px 24px;
  font-family: 'Atma', cursive;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.navbar-login-btn:hover { background: var(--primary); color: #ffffff; }

.navbar-register-btn {
  background: var(--action);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 28px;
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.navbar-register-btn:hover { background: var(--action-dark); color: #ffffff; box-shadow: var(--shadow-btn-hover); }

.section-pad {
  padding: clamp(28px, 3.5vw, 44px) 0;
}
.section-title {
  font-family: 'Atma', cursive;
  font-weight: 700;
  color: var(--text);
}
.section-title-accent {
  color: var(--primary);
}
.section-divider-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
}

.bg-surface-alt {
  background-color: var(--surface-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='1' height='1' x='10' y='0' fill='%23b3261e' opacity='0.04'/%3E%3Crect width='1' height='1' x='0' y='10' fill='%23b3261e' opacity='0.04'/%3E%3C/svg%3E");
}

.game-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--text);
}
.game-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  color: var(--text);
}
.game-card:hover .game-thumb img {
  transform: scale(1.03);
}
.game-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 1/1;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  display: block;
}
.rtp-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #ffffff;
  border-radius: 0 16px 0 12px;
  font-size: 11px;
  font-family: 'Noto Serif Bengali', serif;
  padding: 3px 8px;
  z-index: 2;
}
.game-tag-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(127,29,29,0.85);
  color: #ffffff;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 10px;
}
.game-info {
  padding: 12px 16px;
}
.game-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.4;
}
.game-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

[data-component="trust"] {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
[data-component="trust"] li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: 'Noto Serif Bengali', serif;
  color: rgba(255,255,255,0.88);
}
[data-component="trust"] li i {
  color: var(--accent);
  font-size: 15px;
}

[data-component="stats"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}
[data-component="stats"] > div {
  display: flex;
  flex-direction: column;
  gap: 0;
}
[data-component="stats"] dt {
  font-size: 11px;
  font-family: 'Noto Serif Bengali', serif;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  letter-spacing: 0.3px;
}
[data-component="stats"] dd {
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0;
  line-height: 1.2;
}

[data-component="payments"] {
  list-style: none;
  padding: 0;
  margin: 0;
}
[data-component="payments"] li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}
[data-component="payments"] li:last-child { margin-bottom: 0; }
.pay-name { font-weight: 600; color: var(--text); }
.pay-min { color: var(--text-muted); }
.pay-dep { color: #1a8040; font-weight: 600; }
.pay-with { color: var(--primary); font-weight: 600; }

[data-component="steps"] {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
[data-component="steps"]::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border) 0px, var(--border) 6px, transparent 6px, transparent 12px);
  border-radius: 999px;
}
[data-component="steps"] li {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
}
[data-component="steps"] li:last-child { margin-bottom: 0; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  z-index: 1;
}
.step-body h4 {
  font-family: 'Atma', cursive;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.4;
}
.step-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

[data-component="bonus"] {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

[data-component="vip"] {
  overflow-x: auto;
}
.vip-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.vip-table th {
  background: var(--primary);
  color: #ffffff;
  font-family: 'Atma', cursive;
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
}
.vip-table th:first-child { border-radius: 16px 0 0 0; }
.vip-table th:last-child { border-radius: 0 16px 0 0; }
.vip-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--surface-alt);
  background: var(--surface);
  color: var(--text);
}
.vip-table tr:last-child td:first-child { border-radius: 0 0 0 16px; }
.vip-table tr:last-child td:last-child { border-radius: 0 0 16px 0; }
.vip-table .vip-gold td { background: #fffbf0; font-weight: 600; }
.vip-tier-name { font-family: 'Atma', cursive; font-weight: 700; }

details.faq-item {
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
details.faq-item summary {
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.faq-item[open] summary::after {
  transform: rotate(180deg);
}
details.faq-item .faq-body {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  height: 100%;
}
.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--accent);
}

.site-footer {
  background: var(--primary-dark);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.03) 3px, rgba(255,255,255,0.03) 4px);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.site-footer .footer-brand {
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 28px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
}
.site-footer .footer-brand span { color: var(--accent); }
.site-footer .footer-col-title {
  font-family: 'Atma', cursive;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 12px;
  display: block;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s;
  font-size: 13px;
}
.site-footer a:hover { color: #ffffff; }
.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 16px;
}
.social-icon-btn:hover { background: var(--action); }
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.responsible-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.data-table th {
  background: var(--primary);
  color: #ffffff;
  font-family: 'Atma', cursive;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
}
.data-table th:first-child { border-radius: 16px 0 0 0; }
.data-table th:last-child { border-radius: 0 16px 0 0; }
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--surface-alt);
  background: var(--surface);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td:first-child { border-radius: 0 0 0 16px; }
.data-table tr:last-child td:last-child { border-radius: 0 0 16px 0; }
.data-table tr:hover td { background: #fdf8f6; }

@media (max-width: 767px) {
  [data-component="payments"] li {
    grid-template-columns: 1fr 1fr;
  }
  .vip-table { font-size: 11px; }
  .vip-table th, .vip-table td { padding: 8px 10px; }
}
@media (max-width: 575px) {
  [data-component="stats"] { gap: 6px 16px; }
  [data-component="stats"] dd { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
