: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: #0d1f1a;
      --surface: #1c2c28;
      --surface-alt: #172823;
      --primary: #eaad61;
      --primary-text: #0b1220;
      --accent: #f63aaf;
      --text: #d0d0d0;
      --text-muted: #8a8a8a;
      --border: #cdb24b;
      --brand: #14875f;
      --brand-dark: #0e5e42;
    }

    * {
      scrollbar-color: var(--brand) var(--surface);
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: "Work Sans", sans-serif;
      font-size: 16px;
      line-height: 1.6;
      letter-spacing: 0.01em;
    }

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

    ::-webkit-search-decoration,
    ::-webkit-outer-spin-button,
    ::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: "Bungee", sans-serif;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: 0.02em;
      color: var(--primary-text);
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      line-height: 1.1;
    }

    h2 {
      font-size: 2.5rem;
      line-height: 1.2;
      margin-bottom: 0.5em;
      color: var(--brand);
    }

    h3 {
      font-size: 1.75rem;
      color: var(--brand);
    }

    p {
      margin-bottom: 1.5em;
    }

    a {
      color: var(--border);
      text-decoration: none;
      text-underline-offset: 0.25em;
      caret-color: var(--border);
    }

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

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

    .container, .container-xl {
      max-width: 1320px;
      padding: 0 20px;
    }

    header {
      background: var(--brand-dark);
      position: sticky;
      top: 0;
      z-index: 1000;
      height: 72px;
      display: flex;
      align-items: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .navbar {
      background: transparent;
      padding: 0;
      width: 100%;
    }

    .navbar-brand {
      font-family: "Bungee", sans-serif;
      font-size: 20px;
      font-weight: 700;
      color: var(--brand);
      margin-right: 3rem;
    }

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

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

    .nav-link {
      font-family: "Work Sans", sans-serif;
      font-size: 15px;
      font-weight: 500;
      color: var(--text);
      position: relative;
      transition: color 0.2s ease-out;
    }

    .nav-link:hover {
      color: var(--border);
    }

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

    .navbar-nav {
      gap: 0.5rem;
    }

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

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

    .btn {
      font-family: "Work Sans", sans-serif;
      font-weight: 600;
      border-radius: 10px 10px 2px 2px;
      transition: all 0.2s ease-out;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      border: none;
      cursor: pointer;
      white-space: nowrap;
    }

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

    .btn-primary {
      background: var(--primary);
      color: #000;
      font-size: 16px;
      border-bottom: 3px solid #d4941a;
      padding: 10px 24px;
    }

    .btn-primary:hover {
      background: #f5bb7f;
      box-shadow: 0 0 20px rgba(246, 58, 175, 0.3), 0 8px 16px rgba(0, 0, 0, 0.8);
    }

    .btn-outline {
      background: transparent;
      border: 2px solid var(--brand);
      color: var(--brand);
      font-size: 15px;
      padding: 8px 20px;
    }

    .btn-outline:hover {
      background: rgba(20, 135, 95, 0.1);
      box-shadow: 0 0 20px rgba(246, 58, 175, 0.3), 0 8px 16px rgba(0, 0, 0, 0.8);
    }

    .btn-outline-sm {
      background: transparent;
      border: 1px solid var(--brand);
      color: var(--brand);
      font-size: 13px;
      padding: 6px 16px;
      height: 40px;
      border-radius: 4px;
    }

    .btn-outline-sm:hover {
      background: rgba(20, 135, 95, 0.1);
    }

    .btn-signup {
      background: var(--primary);
      color: #000;
      font-size: 16px;
      padding: 10px 28px;
      height: auto;
    }

    .btn-signup:hover {
      background: #f5bb7f;
    }

    footer {
      background: var(--brand-dark);
      color: var(--text);
      margin-top: 60px;
      padding: 40px 20px 20px;
    }

    footer .container-xl {
      max-width: 1320px;
    }

    .footer-section {
      margin-bottom: 30px;
    }

    .footer-section h4 {
      font-family: "Work Sans", sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--border);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 1.2em;
    }

    .footer-section ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-section li {
      margin-bottom: 0.8em;
    }

    .footer-section a {
      font-size: 14px;
      color: var(--text);
      transition: color 0.2s ease-out;
    }

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

    .footer-bottom {
      border-top: 1px solid #1c2c28;
      padding-top: 20px;
      margin-top: 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    .footer-bottom-left {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .footer-brand {
      font-family: "Bungee", sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--brand);
    }

    .footer-tagline {
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 0.05em;
    }

    .footer-country {
      font-size: 12px;
      color: var(--text-muted);
    }

    .footer-bottom-right {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12px;
    }

    .responsible-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(20, 135, 95, 0.15);
      padding: 8px 12px;
      border-radius: 4px;
      color: var(--text-muted);
    }

    .copyright {
      text-align: center;
      font-size: 12px;
      color: #555;
      margin-top: 20px;
    }

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

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

    main > section:nth-child(odd) {
      background: var(--bg);
    }

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

    @media (max-width: 768px) {
      .navbar-brand {
        margin-right: 1rem;
      }

      .nav-link {
        font-size: 14px;
      }

      h2 {
        font-size: 1.75rem;
      }

      h3 {
        font-size: 1.25rem;
      }
    }

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