: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; }

.navbar:has(> div:empty):has(> :is([class*="container"], [class*="inner"])) { flex-direction: column; align-items: stretch; }
.navbar .navbar-brand { flex-shrink: 0; }
@media (min-width: 576px) {  
  .navbar :is(a, button)[class*="btn"] { flex-shrink: 0; }
  .navbar :is(.nav-link, a[class*="btn"], button[class*="btn"]) { white-space: nowrap; }
}

:is(.navbar, .navbar > *, .navbar :has(> .navbar-collapse)):has(.navbar-collapse:is(.show, .collapsing)) { height: auto !important; max-height: none !important; }

@media (min-width: 992px) {
  main .row > [class*="col"]:has(> img[data-role="section"]:only-child) { align-self: stretch; }
  main .row > [class*="col"] > img[data-role="section"]:only-child { height: 100% !important; object-fit: cover; }
}

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 > :not(:has([class*="container"])) { padding-inline: max(16px, calc((100% - 1320px) / 2)) !important; }  

:where(main > :first-child > :not([class*="container"], :has([class*="container"]), img, picture, video, [style*="absolute"])) {
  padding-inline: max(16px, calc((100% - 1320px) / 2)); }
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: #f5f9fc;
      --surface: #fcfdfe;
      --surface-alt: #ebeff2;
      --primary: #c78103;
      --primary-text: #0f2d2b;
      --accent: #bf3128;
      --text: #1a1a1a;
      --text-muted: #666666;
      --border: #b09938;
      --brand: #157e78;
      --brand-dark: #0f5854;
      --radius-pill: 999px;
      --radius-soft: 24px;
      --shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
      --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.3);
      --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

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

    html {
      scroll-behavior: smooth;
      scrollbar-color: var(--brand) var(--bg);
    }

    body {
      font-family: "Noto Sans Bengali", sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      font-size: 16px;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: "Baloo Da 2", sans-serif;
      font-weight: 800;
      line-height: 1.35;
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      color: var(--text);
      margin-bottom: 0.5em;
    }

    h2 {
      font-size: clamp(1.75rem, 4vw, 2.5rem);
      color: var(--text);
      margin-bottom: 1.2em;
      margin-top: 1.5em;
    }

    h3 {
      font-size: clamp(1.25rem, 3vw, 1.75rem);
      color: var(--text);
      margin-bottom: 0.8em;
    }

    p {
      margin-bottom: 1em;
      max-width: 75ch;
    }

    a {
      color: var(--brand);
      text-decoration: underline;
      text-underline-offset: 4px;
      transition: color 0.2s ease-out;
    }

    a:hover {
      color: var(--primary);
    }

    a:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
    }

    ::selection {
      background-color: var(--brand);
      color: white;
    }

    .btn {
      border-radius: var(--radius-pill);
      font-family: "Noto Sans Bengali", sans-serif;
      font-weight: 600;
      padding: 12px 28px;
      font-size: 16px;
      transition: all 0.2s ease-out;
      text-decoration: none;
      display: inline-block;
      cursor: pointer;
      border: none;
      min-height: 44px;
      min-width: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn:focus-visible {
      outline: 2px solid var(--text);
      outline-offset: 2px;
    }

    .btn-primary {
      background-color: var(--primary);
      color: white;
      box-shadow: var(--shadow-light);
    }

    .btn-primary:hover {
      background-color: #b37103;
      box-shadow: var(--shadow);
    }

    .btn-primary:disabled {
      background-color: #999999;
      cursor: not-allowed;
      pointer-events: none;
    }

    .btn-outline {
      border: 2px solid var(--brand);
      color: var(--brand);
      background-color: transparent;
    }

    .btn-outline:hover {
      background-color: var(--brand);
      color: white;
    }

    .btn-outline:disabled {
      border-color: #999999;
      color: #999999;
      cursor: not-allowed;
      pointer-events: none;
    }

    header {
      background-color: var(--brand);
      height: 64px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      position: relative;
      z-index: 1000;
    }

    .navbar {
      background-color: var(--brand) !important;
      height: 64px;
      padding: 0 24px;
    }

    .navbar-brand {
      height: 48px;
      display: flex;
      align-items: center;
    }

    .navbar-brand img {
      height: 36px;
      width: auto;
    }

    .nav-link {
      color: white !important;
      font-weight: 600;
      font-size: 16px;
      border-bottom: 2px solid transparent;
      padding-bottom: 8px !important;
      transition: border-color 0.2s ease-out;
    }

    .nav-link:hover,
    .nav-link.active {
      border-bottom: 2px solid var(--primary);
    }

    .nav-link:focus-visible {
      outline: 2px solid white;
      outline-offset: 2px;
    }

    .navbar-toggler {
      border-color: white;
    }

    .navbar-toggler:focus {
      outline: 2px solid white;
      outline-offset: 2px;
    }

    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    footer {
      background-color: var(--brand-dark);
      color: white;
      padding: clamp(28px, 3.5vw, 44px) 24px;
    }

    .container, .container-xl {
      max-width: 1200px;
    }

    main {
      flex: 1;
    }

    main > * {
      padding: clamp(28px, 3.5vw, 44px) 0;
    }

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

    @media (prefers-reduced-motion: reduce) {
      * {
        animation: none !important;
        transition: none !important;
      }
    }

    .game-card {
      display: block;
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-soft);
      overflow: hidden;
      text-decoration: none;
      transition: all 0.2s ease-out;
      box-shadow: var(--shadow-light);
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .game-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
    }

    .game-card:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
    }

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

    .game-card-content {
      padding: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .game-tag {
      display: inline-block;
      background-color: var(--border);
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 8px;
      width: fit-content;
    }

    .game-card h3 {
      font-size: 18px;
      margin-bottom: 8px;
      color: var(--text);
    }

    .game-card p {
      font-size: 14px;
      color: var(--text-muted);
      margin: 0;
      flex-grow: 1;
    }

    [data-component="trust"] {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 12px;
      list-style: none;
    }

    [data-component="trust"] li {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      background-color: var(--surface);
      padding: 12px;
      border-radius: var(--radius-soft);
    }

    [data-component="trust"] i {
      font-size: 20px;
      color: var(--brand);
    }

    [data-component="stats"] {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 24px;
      margin: 32px 0;
    }

    [data-component="stats"] > div {
      text-align: center;
    }

    [data-component="stats"] dt {
      font-size: 14px;
      color: var(--text-muted);
      font-weight: 600;
      margin-bottom: 8px;
    }

    [data-component="stats"] dd {
      font-size: 32px;
      font-weight: 800;
      color: var(--primary);
      margin: 0;
    }

    [data-component="game-grid"] {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 20px;
      margin: 32px 0;
    }

    @media (max-width: 768px) {
      [data-component="game-grid"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }
    }

    @media (max-width: 480px) {
      [data-component="game-grid"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }
    }

    [data-component="payments"] {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    [data-component="payments"] > div {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-soft);
      padding: 24px;
    }

    [data-component="payments"] li {
      list-style: none;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px dashed var(--border);
    }

    [data-component="payments"] li:last-child {
      border-bottom: none;
    }

    [data-component="bonus"] {
      background-color: var(--surface-alt);
      border-radius: var(--radius-soft);
      padding: 32px 24px;
      border: 1px dashed var(--border);
      position: relative;
    }

    [data-component="bonus"]::before {
      content: "চল খেলি";
      position: absolute;
      top: -12px;
      right: 24px;
      background-color: var(--primary);
      color: white;
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 800;
      transform: rotate(-5deg);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    [data-component="bonus"] h3 {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 24px;
    }

    [data-component="bonus"] .bonus-percent {
      font-size: 56px;
      font-weight: 800;
      color: var(--primary);
      line-height: 1;
    }

    [data-component="bonus"] table {
      width: 100%;
      margin-top: 20px;
      border-collapse: collapse;
    }

    [data-component="bonus"] th,
    [data-component="bonus"] td {
      text-align: left;
      padding: 12px 8px;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
    }

    [data-component="bonus"] th {
      background-color: rgba(21, 126, 120, 0.05);
      font-weight: 600;
      color: var(--brand);
    }

    [data-component="vip"] {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin: 32px 0;
    }

    [data-component="vip"] > div {
      background-color: var(--surface);
      border: 2px solid var(--border);
      border-radius: var(--radius-soft);
      padding: 20px;
      text-align: center;
    }

    [data-component="vip"] h4 {
      font-size: 18px;
      margin-bottom: 16px;
      color: var(--brand);
    }

    [data-component="vip"] ul {
      list-style: none;
      text-align: left;
    }

    [data-component="vip"] li {
      font-size: 14px;
      padding: 8px 0;
      border-bottom: 1px solid var(--surface-alt);
    }

    [data-component="vip"] li:last-child {
      border-bottom: none;
    }

    [data-component="steps"] {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 24px;
      margin: 32px 0;
      position: relative;
    }

    [data-component="steps"] ol {
      list-style: none;
      display: contents;
    }

    [data-component="steps"] li {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-soft);
      padding: 20px;
      position: relative;
    }

    [data-component="steps"] li::before {
      content: attr(data-step);
      position: absolute;
      top: -16px;
      left: 16px;
      background-color: var(--brand);
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 18px;
    }

    [data-component="steps"] h4 {
      margin-top: 16px;
      margin-bottom: 8px;
      font-size: 16px;
    }

    [data-component="steps"] p {
      font-size: 14px;
      color: var(--text-muted);
      margin: 0;
    }

    [data-component="faq"] {
      max-width: 800px;
      margin: 0 auto;
    }

    [data-component="faq"] details {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-soft);
      padding: 16px;
      margin-bottom: 12px;
    }

    [data-component="faq"] details[open] {
      background-color: var(--surface-alt);
    }

    [data-component="faq"] summary {
      cursor: pointer;
      font-weight: 600;
      color: var(--text);
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px;
      margin: -8px;
    }

    [data-component="faq"] summary:hover {
      color: var(--brand);
    }

    [data-component="faq"] summary:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
    }

    [data-component="faq"] summary::marker {
      display: none;
    }

    [data-component="faq"] summary::after {
      content: "▼";
      font-size: 12px;
      transition: transform 0.2s ease-out;
    }

    [data-component="faq"] details[open] summary::after {
      transform: rotate(180deg);
    }

    [data-component="faq"] div {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px dashed var(--border);
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    .section-block {
      background-color: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-soft);
      padding: 24px;
      margin-bottom: 20px;
    }

    .section-block h4 {
      font-size: 16px;
      margin-bottom: 12px;
      color: var(--text);
    }

    .section-block p {
      font-size: 14px;
      color: var(--text-muted);
      margin: 0;
    }

    .section-divider {
      border-top: 1px dashed var(--border);
      margin: 32px 0;
    }
