: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: #0a2119;
      --surface: #192e27;
      --surface-alt: #142a22;
      --primary: #34bdec;
      --primary-text: #0b1220;
      --accent: #f5bb55;
      --text: #e0e0e0;
      --text-muted: #a0a0a0;
      --border: #cc9f50;
      --brand: #218569;
      --brand-dark: #175d4a;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: "Roboto", sans-serif;
      font-size: 1rem;
      line-height: 1.6;
      letter-spacing: 0.3px;
      overflow-x: hidden;
    }

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

    ::-webkit-scrollbar {
      width: 10px;
    }

    ::-webkit-scrollbar-track {
      background: var(--surface-alt);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--brand);
      border-radius: 2px;
    }

    h1 {
      font-family: "Oswald", sans-serif;
      font-weight: 700;
      font-size: clamp(2rem, 5vw, 3.5rem);
      line-height: 1.35;
      letter-spacing: -0.02em;
      margin-bottom: 1.5rem;
    }

    h2 {
      font-family: "Oswald", sans-serif;
      font-weight: 700;
      font-size: clamp(1.75rem, 4vw, 2.5rem);
      line-height: 1.35;
      letter-spacing: -1px;
      margin-bottom: 1.5rem;
    }

    h3 {
      font-family: "Oswald", sans-serif;
      font-weight: 600;
      font-size: 1.5rem;
      line-height: 1.35;
      letter-spacing: 0.5px;
    }

    p {
      margin-bottom: 1rem;
    }

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

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

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

    .btn-primary {
      background-color: var(--primary);
      color: var(--bg);
      border: none;
      padding: 12px 28px;
      border-radius: 2px;
      font-family: "Roboto", sans-serif;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease-out;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .btn-primary:hover {
      background-color: #2aa8d8;
      box-shadow: 0 0 12px rgba(52, 189, 236, 0.3);
    }

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

    .btn-secondary {
      background-color: transparent;
      color: var(--text);
      border: 1px solid var(--border);
      padding: 11px 27px;
      border-radius: 2px;
      font-family: "Roboto", sans-serif;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease-out;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .btn-secondary:hover {
      background-color: rgba(204, 159, 80, 0.1);
      border-color: var(--accent);
    }

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

    header {
      background-color: var(--surface-alt);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
      height: 60px;
    }

    .navbar {
      height: 60px;
      padding: 0 clamp(20px, 3vw, 40px);
    }

    .navbar-brand {
      font-family: "Oswald", sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--brand) !important;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
    }

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

    .nav-link {
      color: var(--text) !important;
      font-family: "Roboto", sans-serif;
      font-size: 1rem;
      font-weight: 400;
      padding: 8px 16px !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(--primary);
    }

    .navbar-toggler {
      border-color: var(--border) !important;
    }

    .navbar-toggler:focus {
      box-shadow: 0 0 0 0.25rem rgba(52, 189, 236, 0.25);
    }

    .navbar-nav-end {
      display: flex;
      gap: 12px;
      margin-left: auto;
    }

    main {
      min-height: calc(100vh - 60px);
    }

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

    section:nth-child(even) {
      background-color: var(--surface-alt);
    }

    .container, .container-xl {
      max-width: 1200px;
      margin: 0 auto;
      padding-left: clamp(16px, 3vw, 40px);
      padding-right: clamp(16px, 3vw, 40px);
    }

    .divider {
      height: 1px;
      background-color: var(--border);
      margin: clamp(28px, 3.5vw, 44px) 0;
    }

    footer {
      background-color: var(--bg);
      border-top: 1px solid var(--border);
      padding: clamp(32px, 4vw, 48px) 0 clamp(24px, 3vw, 32px);
      margin-top: clamp(40px, 5vw, 60px);
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: clamp(24px, 3vw, 40px);
      margin-bottom: clamp(32px, 4vw, 48px);
    }

    .footer-section h4 {
      font-family: "Oswald", sans-serif;
      font-size: 1rem;
      font-weight: 700;
      color: var(--brand);
      margin-bottom: 16px;
    }

    .footer-section ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .footer-section a {
      color: var(--text);
      font-family: "Roboto", sans-serif;
      font-size: 0.875rem;
      font-weight: 400;
      transition: color 0.2s ease-out;
    }

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

    .footer-bottom {
      border-top: 1px solid var(--border);
      padding-top: clamp(24px, 3vw, 32px);
      text-align: center;
      font-family: "Roboto", sans-serif;
      font-size: 0.875rem;
      color: var(--text-muted);
    }

    .footer-bottom p {
      margin-bottom: 12px;
    }

    @media (max-width: 768px) {
      .navbar {
        padding: 0 16px;
      }

      h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
      }

      h2 {
        font-size: clamp(1.375rem, 4vw, 1.875rem);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

:root{--qa-nav:compact}
@media (min-width: 992px) {
  .navbar .nav-link { padding-left: 6px !important; padding-right: 6px !important; letter-spacing: 0 !important; white-space: normal !important; text-align: center; }
  .navbar .navbar-nav { gap: 0 !important; min-width: 0; flex-shrink: 1; }
  .navbar .navbar-collapse { min-width: 0; }
}
