: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: #000717;
      --surface: #0f1625;
      --surface-alt: #0a1120;
      --primary: #f9b80a;
      --primary-text: #0b1220;
      --accent: #ed3236;
      --text: #e8e8e8;
      --text-muted: #a0a0a0;
      --border: #d7ab4a;
      --brand: #335dbb;
      --brand-dark: #244183;
    }

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

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

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

    h1, h2, h3, h4, h5, h6 {
      font-family: "Tiro Bangla", serif;
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: 0.5px;
      color: var(--primary-text);
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      letter-spacing: 0.5px;
    }

    h2 {
      font-size: 2.5rem;
      letter-spacing: 0.3px;
      margin-bottom: 1.5rem;
    }

    h3 {
      font-size: 1.75rem;
      letter-spacing: 0.2px;
    }

    p {
      margin-bottom: 1rem;
    }

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

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

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

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

    .btn-primary {
      background-color: var(--primary);
      color: #000717;
      font-weight: 600;
      border-radius: 10px;
      padding: 12px 32px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: background-color 0.2s ease-out;
      font-size: 16px;
      font-family: "Noto Sans Bengali", sans-serif;
    }

    .btn-primary:hover {
      background-color: #e6a30a;
    }

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

    .btn-secondary {
      background-color: transparent;
      color: var(--border);
      border: 2px solid var(--border);
      font-weight: 600;
      border-radius: 10px;
      padding: 10px 28px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s ease-out;
      font-size: 16px;
      font-family: "Noto Sans Bengali", sans-serif;
    }

    .btn-secondary:hover {
      background-color: rgba(215, 171, 74, 0.1);
      border-color: var(--primary);
      color: var(--primary);
    }

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

    header {
      background-color: var(--bg);
      border-bottom: 1px solid var(--brand-dark);
      position: sticky;
      top: 0;
      z-index: 1000;
      min-height: 64px;
      display: flex;
      align-items: center;
    }

    .navbar {
      background-color: var(--bg) !important;
      width: 100%;
      padding: 0 !important;
      height: 64px;
      display: flex;
      align-items: center;
    }

    .navbar-brand {
      font-size: 28px;
      font-weight: 700;
      color: var(--primary) !important;
      font-family: "Tiro Bangla", serif;
      margin-right: 2rem;
    }

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

    .nav-link {
      color: var(--text) !important;
      font-size: 14px;
      font-weight: 400;
      padding: 0.5rem 1rem !important;
      transition: color 0.2s ease-out;
      position: relative;
    }

    .nav-link:hover {
      color: var(--primary) !important;
    }

    .nav-link.active {
      color: var(--brand) !important;
      border-bottom: 2px solid var(--brand);
    }

    .navbar-toggler {
      border: 1px solid var(--border) !important;
    }

    .navbar-toggler:focus {
      box-shadow: none;
      outline: 2px solid var(--border);
    }

    .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='%23d7ab4a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    footer {
      background-color: var(--bg);
      border-top: 1px solid var(--brand-dark);
      margin-top: 4rem;
      padding-top: 3rem;
      padding-bottom: 2rem;
      color: var(--text-muted);
    }

    footer a {
      color: var(--text);
      font-size: 14px;
    }

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

    main {
      min-height: 60vh;
    }

    .section {
      padding: clamp(28px, 3.5vw, 44px) 0;
    }

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

    .card {
      background-color: var(--surface);
      border: 1px solid var(--brand-dark);
      border-radius: 10px 10px 2px 2px;
      padding: 20px;
      transition: all 0.2s ease-out;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .card:hover {
      border-color: var(--brand);
      box-shadow: 0 8px 20px rgba(51, 93, 187, 0.2);
    }

    .game-card {
      display: block;
      text-decoration: none;
      color: var(--text);
      border-radius: 10px 10px 2px 2px;
      overflow: hidden;
      background-color: var(--surface);
      border: 1px solid var(--brand-dark);
      transition: all 0.2s ease-out;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .game-card:hover {
      border-color: var(--brand);
      box-shadow: 0 8px 20px rgba(51, 93, 187, 0.2);
    }

    .game-card img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
      border-radius: 8px 8px 0 0;
    }

    .game-card h3 {
      font-size: 1.1rem;
      margin: 12px;
      margin-bottom: 4px;
    }

    .game-card p {
      font-size: 13px;
      color: var(--text-muted);
      margin: 0 12px 12px 12px;
      padding-bottom: 8px;
      border-bottom: 1px dashed var(--brand-dark);
    }

    .game-tag {
      position: absolute;
      top: 12px;
      right: 12px;
      background-color: var(--surface-alt);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
      margin-top: 1rem;
    }

    th, td {
      padding: 12px;
      text-align: left;
      border-bottom: 1px solid var(--brand-dark);
    }

    th {
      background-color: var(--surface-alt);
      color: var(--primary);
      font-weight: 600;
      font-family: "Tiro Bangla", serif;
    }

    tr:hover {
      background-color: rgba(51, 93, 187, 0.1);
    }

    .badge {
      display: inline-block;
      background-color: var(--brand-dark);
      color: var(--text);
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
    }

    .icon-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 12px;
    }

    .icon-box i {
      font-size: 32px;
      color: var(--border);
    }

    details {
      border: 1px solid var(--brand-dark);
      border-radius: 8px;
      margin-bottom: 12px;
      background-color: var(--surface);
      overflow: hidden;
    }

    summary {
      padding: 16px;
      cursor: pointer;
      font-weight: 600;
      color: var(--text);
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
      transition: background-color 0.2s ease-out;
    }

    summary:hover {
      background-color: var(--surface-alt);
    }

    summary::after {
      content: "+";
      font-size: 20px;
      color: var(--border);
      transition: transform 0.2s ease-out;
    }

    details[open] summary::after {
      transform: rotate(45deg);
    }

    details[open] summary {
      background-color: var(--surface-alt);
      border-bottom: 1px solid var(--brand-dark);
    }

    details > div {
      padding: 16px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    .breadcrumb {
      background-color: transparent;
      padding: 1rem 0;
      margin-bottom: 2rem;
      font-size: 14px;
    }

    .breadcrumb-item {
      color: var(--text-muted);
    }

    .breadcrumb-item a {
      color: var(--brand);
    }

    .breadcrumb-item.active {
      color: var(--text);
    }

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

    @media (max-width: 768px) {
      h1 {
        font-size: 1.75rem;
      }

      h2 {
        font-size: 1.5rem;
      }

      .navbar-brand {
        font-size: 20px;
        margin-right: 1rem;
      }

      .card, .game-card {
        border-radius: 10px;
      }
    }
