: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 {
      --color-bg: #fddefa;
      --color-surface: #fef5fe;
      --color-surface-alt: #f3d5f0;
      --color-primary: #b4711a;
      --color-primary-text: #1a1a1a;
      --color-accent: #13c080;
      --color-text: #2d2d2d;
      --color-text-muted: #666666;
      --color-border: #a18b35;
      --color-brand: #702439;
      --color-brand-dark: #4e1928;
    }

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

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

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--color-bg);
      color: var(--color-text);
      font-size: 16px;
      font-weight: 400;
      letter-spacing: 0.3px;
      line-height: 1.6;
    }

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

    ::caret-color {
      color: var(--color-primary);
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: 'Sora', sans-serif;
      color: var(--color-brand);
      line-height: 1.35;
      letter-spacing: -0.5px;
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      margin-bottom: clamp(12px, 2vw, 20px);
    }

    h2 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: clamp(20px, 2vw, 28px);
      margin-top: clamp(28px, 3.5vw, 44px);
    }

    h3 {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 12px;
    }

    h4 {
      font-size: 1.125rem;
      font-weight: 600;
      margin-bottom: 10px;
    }

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

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

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

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

    .btn {
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      font-weight: 600;
      padding: 12px 24px;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s ease-out;
      text-decoration: none;
      letter-spacing: 0.2px;
    }

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

    .btn-primary {
      background-color: var(--color-primary);
      color: white;
      border-radius: 10px 10px 2px 2px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    }

    .btn-primary:hover {
      background-color: #9d5d14;
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
      transform: translateY(-1px);
    }

    .btn-primary:active {
      background-color: #8b4f10;
      box-shadow: none;
      transform: translateY(0);
    }

    .btn-secondary {
      background-color: var(--color-surface);
      color: var(--color-brand);
      border: 2px solid var(--color-brand);
      border-radius: 8px;
    }

    .btn-secondary:hover {
      background-color: var(--color-surface-alt);
      box-shadow: 0 4px 8px rgba(112, 36, 57, 0.12);
    }

    .btn-secondary:active {
      background-color: var(--color-surface);
      border-color: var(--color-primary);
      color: var(--color-primary);
    }

    .navbar {
      background-color: var(--color-surface);
      padding: 16px 40px;
      box-shadow: 0 2px 4px rgba(112, 36, 57, 0.04);
      border-bottom: 1px solid rgba(112, 36, 57, 0.06);
    }

    .navbar-brand {
      font-family: 'Sora', sans-serif;
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--color-brand) !important;
      letter-spacing: -0.5px;
      margin-right: 40px;
    }

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

    .nav-link {
      font-size: 1rem;
      font-weight: 600;
      color: var(--color-text) !important;
      letter-spacing: 0.2px;
      margin-left: 24px;
      position: relative;
      transition: color 0.2s ease-out;
    }

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

    .nav-link.active {
      color: var(--color-brand) !important;
    }

    .nav-link.active::after {
      content: '';
      position: absolute;
      bottom: -16px;
      left: 0;
      right: 0;
      height: 3px;
      background-color: var(--color-brand);
      border-radius: 2px;
    }

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

    .navbar-toggler:focus {
      box-shadow: 0 0 0 0.25rem rgba(112, 36, 57, 0.25);
    }

    main {
      background-color: var(--color-bg);
    }

    .section {
      padding: clamp(28px, 3.5vw, 44px) 0;
      border-top: 2px dashed var(--color-border);
    }

    .section:first-of-type {
      border-top: none;
    }

    .section-dark {
      background-color: var(--color-brand-dark);
      color: var(--color-surface);
      border-top: 1px solid var(--color-border);
      border-bottom: 1px solid var(--color-border);
    }

    .section-dark h2,
    .section-dark h3,
    .section-dark h4 {
      color: var(--color-surface);
    }

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

    .section-dark a:hover {
      color: #d4a35a;
    }

    .card {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 10px 10px 2px 2px;
      box-shadow: 0 4px 12px rgba(112, 36, 57, 0.08);
      transition: all 0.2s ease-out;
      position: relative;
      overflow: hidden;
    }

    .card::before {
      content: '';
      position: absolute;
      left: -2px;
      top: 0;
      bottom: 0;
      width: 16px;
      background-image: radial-gradient(circle, var(--color-bg) 4px, transparent 4px);
      background-size: 16px 16px;
      background-position: 0 0;
    }

    .card:hover {
      background-color: var(--color-surface-alt);
      box-shadow: 0 8px 20px rgba(112, 36, 57, 0.12);
      transform: translateY(-2px);
    }

    .card-body {
      padding: 20px;
      padding-left: 24px;
    }

    footer {
      background-color: var(--color-brand-dark);
      color: var(--color-surface);
      padding: 40px;
      border-top: 2px dashed var(--color-border);
      margin-top: clamp(28px, 3.5vw, 44px);
    }

    footer h4 {
      color: var(--color-surface);
      font-size: 1rem;
      margin-bottom: 16px;
    }

    footer a {
      color: var(--color-primary);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.2s ease-out;
    }

    footer a:hover {
      color: #d4a35s;
    }

    footer a:focus-visible {
      outline: 2px solid var(--color-primary);
      outline-offset: 2px;
      border-radius: 3px;
    }

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

    .footer-copyright {
      font-size: 0.75rem;
      color: var(--color-border);
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid rgba(161, 139, 53, 0.2);
      text-align: center;
    }

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

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

      .nav-link {
        margin-left: 16px;
        font-size: 0.95rem;
      }

      h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
      }

      h2 {
        font-size: 1.5rem;
      }

      h3 {
        font-size: 1.25rem;
      }

      footer {
        padding: 24px;
      }
    }

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

    .texture-paper {
      background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(112, 36, 57, 0.03) 2px,
        rgba(112, 36, 57, 0.03) 4px
      );
    }

    .container-xl {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .divider-dashed {
      border-top: 2px dashed var(--color-border);
      margin: 40px 0;
    }

    .text-center {
      text-align: center;
    }

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

    table {
      width: 100%;
      border-collapse: collapse;
      background-color: var(--color-surface);
      font-size: 0.95rem;
    }

    th {
      background-color: var(--color-surface-alt);
      color: var(--color-brand);
      font-weight: 600;
      padding: 12px 16px;
      text-align: left;
      border-bottom: 2px solid var(--color-border);
    }

    td {
      padding: 12px 16px;
      border-bottom: 1px solid rgba(161, 139, 53, 0.2);
    }

    tr:last-child td {
      border-bottom: none;
    }

    details {
      background-color: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 12px;
      cursor: pointer;
    }

    details[open] {
      background-color: var(--color-surface-alt);
    }

    summary {
      font-weight: 600;
      color: var(--color-brand);
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
    }

    summary::marker {
      color: var(--color-brand);
    }

    details[open] summary {
      margin-bottom: 12px;
    }

    details > div {
      color: var(--color-text);
      font-size: 0.95rem;
      line-height: 1.6;
    }

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