: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: #fef4f4;
      --surface: #fffcfc;
      --surface-alt: #f4eaea;
      --primary: #007962;
      --primary-text: #ffffff;
      --accent: #bb7327;
      --text: #2a2a2a;
      --text-muted: #666666;
      --border: #b89028;
      --brand: #d10610;
      --brand-dark: #92040b;
    }

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

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

    body {
      font-family: "Work Sans", sans-serif;
      background: linear-gradient(135deg, rgba(184, 144, 40, 0.03) 0%, rgba(0, 0, 0, 0.02) 100%), var(--bg);
      color: var(--text);
      line-height: 1.6;
      font-weight: 400;
      letter-spacing: 0.005em;
    }

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

    h1, h2, h3, h4, h5, h6 {
      font-family: "Bungee", sans-serif;
      font-weight: 700;
      letter-spacing: 0.02em;
      line-height: 1.35;
    }

    h1 {
      font-size: clamp(2rem, 5.5vw, 3.5rem);
    }

    h2 {
      font-size: 3.5rem;
    }

    h3 {
      font-size: 1.75rem;
    }

    p, li, dd {
      font-size: 1rem;
      line-height: 1.6;
      letter-spacing: 0.005em;
    }

    small, .small {
      font-size: 0.875rem;
      font-weight: 600;
      letter-spacing: 0.005em;
    }

    header {
      background: var(--bg);
      border-bottom: 1px solid rgba(184, 144, 40, 0.2);
      position: sticky;
      top: 0;
      z-index: 1030;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .navbar {
      padding: 0.75rem 0;
      height: 80px;
      display: flex;
      align-items: center;
    }

    .navbar-brand {
      font-family: "Bungee", sans-serif;
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--brand);
      letter-spacing: 0.02em;
      margin: 0;
      padding: 0;
      white-space: nowrap;
    }

    .navbar-brand img {
      height: 48px;
      width: auto;
      margin-right: 0.5rem;
    }

    .nav-link {
      font-family: "Work Sans", sans-serif;
      font-size: 1rem;
      font-weight: 400;
      color: var(--text);
      padding: 0.5rem 1.25rem;
      border-bottom: 3px solid transparent;
      transition: color 0.2s ease-out, border-color 0.2s ease-out;
    }

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

    .nav-link.active {
      color: var(--brand);
      border-bottom-color: var(--brand);
    }

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

    .navbar-toggler:focus {
      outline: 2px solid var(--brand);
      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='%23d10610' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

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

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

    .btn-primary {
      background: var(--primary);
      color: white;
      box-shadow: 0 8px 24px rgba(0, 121, 98, 0.3);
    }

    .btn-primary:hover {
      background: #005a49;
      box-shadow: 0 12px 32px rgba(0, 121, 98, 0.4);
    }

    .btn-secondary {
      background: var(--surface);
      border: 2px solid var(--border);
      color: var(--text);
      border-radius: 32px;
      padding: 0.75rem 2.25rem;
    }

    .btn-secondary:hover {
      background: var(--surface-alt);
      border-color: var(--brand);
    }

    .btn-sm {
      background: var(--surface);
      border: 1.5px solid var(--border);
      color: var(--text);
      border-radius: 24px;
      padding: 0.5rem 1.25rem;
      font-size: 0.875rem;
    }

    .btn-sm:hover {
      background: var(--surface-alt);
    }

    .btn-outline-light {
      background: white;
      border: 1.5px solid var(--brand);
      color: var(--brand);
      padding: 0.75rem 2rem;
      font-weight: 600;
    }

    .btn-outline-light:hover {
      background: var(--surface-alt);
    }

    footer {
      background: var(--brand-dark);
      color: rgba(255, 255, 255, 0.9);
      padding: clamp(28px, 3.5vw, 44px) 0;
      margin-top: clamp(40px, 5vw, 80px);
    }

    footer a {
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      transition: color 0.2s ease-out;
    }

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

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

    main {
      flex: 1;
    }

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

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

    .container, .container-lg, .container-xl {
      max-width: 1320px;
      padding-left: 1rem;
      padding-right: 1rem;
    }

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

    a:hover {
      color: #a00408;
    }

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

    .card {
      background: var(--surface);
      border: none;
      border-radius: 32px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
      padding: 24px;
      transition: all 0.2s ease-out;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    }

    .badge {
      background: var(--border);
      color: white;
      border-radius: 16px;
      padding: 4px 12px;
      font-size: 0.75rem;
      font-weight: 600;
      display: inline-block;
    }

    .breadcrumb {
      background: transparent;
      padding: 0;
      margin-bottom: 1.5rem;
      font-size: 0.875rem;
    }

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

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

    .breadcrumb-item + .breadcrumb-item::before {
      content: "/";
      padding: 0 0.5rem;
      color: var(--border);
    }

    @media (max-width: 768px) {
      h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
      h2 { font-size: 2.25rem; }
      h3 { font-size: 1.25rem; }
      .navbar { height: auto; padding: 0.5rem 0; }
      .navbar-brand { font-size: 1.75rem; }
    }

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