: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: #fdf7df;
      --surface: #fefdf5;
      --surface-alt: #f3edd6;
      --primary: #149cbb;
      --primary-text: #1a1a1a;
      --accent: #c3103f;
      --text: #3d2817;
      --text-muted: #8b7355;
      --border: #bb8f34;
      --brand-dark: #ab5533;
      --brand-darker: #783c24;
      --radius-sm: 8px;
      --radius-md: 20px;
      --radius-lg: 24px;
      --radius-pill: 999px;
      --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
      --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
      --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
      --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.16);
    }

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

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

    body {
      font-family: "Inter", sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      font-size: 16px;
      font-weight: 400;
      background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.1'%3E%3Cpath d='M10 50 Q 25 30 40 50 T 70 50'/%3E%3Ccircle cx='50' cy='30' r='8'/%3E%3Crect x='20' y='60' width='15' height='15'/%3E%3Cpath d='M70 60 L 85 75'/%3E%3C/g%3E%3C/svg%3E");
      background-size: 400px 400px;
      background-repeat: repeat;
    }

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

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

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

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

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

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
      margin-bottom: 1.2rem;
    }

    h2 {
      font-size: clamp(1.75rem, 4vw, 2.25rem);
      margin-bottom: 1rem;
      margin-top: 0;
    }

    h3 {
      font-size: 1.75rem;
      margin-bottom: 0.8rem;
    }

    h4 {
      font-size: 1.25rem;
      margin-bottom: 0.6rem;
    }

    p {
      margin-bottom: 1rem;
      line-height: 1.65;
    }

    a {
      color: var(--primary);
      text-decoration: none;
      transition: color 0.3s ease;
      text-underline-offset: 0.25em;
    }

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

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

    button, [type="button"], [type="submit"] {
      font-family: "Inter", sans-serif;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      border-radius: var(--radius-pill);
      padding: 0.875rem 2rem;
      font-size: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      min-height: 44px;
      min-width: 44px;
    }

    button:focus-visible, [type="button"]:focus-visible, [type="submit"]:focus-visible {
      outline: 2px solid var(--border);
      outline-offset: 2px;
    }

    .btn-primary {
      background-color: var(--primary);
      color: white;
      box-shadow: 0 4px 12px rgba(20, 156, 187, 0.25);
    }

    .btn-primary:hover {
      background-color: #1188a3;
      box-shadow: 0 8px 24px rgba(20, 156, 187, 0.35);
      transform: translateY(-2px);
    }

    .btn-secondary {
      background-color: transparent;
      color: var(--border);
      border: 2px solid var(--border);
    }

    .btn-secondary:hover {
      background-color: var(--border);
      color: white;
    }

    .btn-accent {
      background-color: var(--accent);
      color: white;
      box-shadow: 0 4px 12px rgba(195, 16, 63, 0.25);
    }

    .btn-accent:hover {
      background-color: #a00a33;
      box-shadow: 0 8px 24px rgba(195, 16, 63, 0.35);
      transform: translateY(-2px);
    }

    .btn-outline-accent {
      background-color: transparent;
      color: var(--accent);
      border: 2px solid var(--accent);
    }

    .btn-outline-accent:hover {
      background-color: var(--accent);
      color: white;
    }

    .btn-light {
      background-color: var(--surface);
      color: var(--text);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .btn-light:hover {
      background-color: var(--surface-alt);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

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

    main > * + * {
      margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
    }

    main > section {
      padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    }

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

    header {
      background-color: var(--brand-dark);
      height: 72px;
      display: flex;
      align-items: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      position: relative;
    }

    header::before {
      content: '';
      position: absolute;
      top: -25px;
      left: 0;
      right: 0;
      height: 30px;
      display: flex;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 15,30 30,0' fill='%23ab5533' opacity='0.8'/%3E%3Cpolygon points='40,0 55,30 70,0' fill='%23149cbb' opacity='0.8'/%3E%3Cpolygon points='80,0 95,30 110,0' fill='%23bb8f34' opacity='0.8'/%3E%3Cpolygon points='120,0 135,30 150,0' fill='%23ab5533' opacity='0.8'/%3E%3Cpolygon points='160,0 175,30 190,0' fill='%23149cbb' opacity='0.8'/%3E%3Cpolygon points='200,0 215,30 230,0' fill='%23bb8f34' opacity='0.8'/%3E%3Cpolygon points='240,0 255,30 270,0' fill='%23ab5533' opacity='0.8'/%3E%3Cpolygon points='280,0 295,30 310,0' fill='%23149cbb' opacity='0.8'/%3E%3Cpolygon points='320,0 335,30 350,0' fill='%23bb8f34' opacity='0.8'/%3E%3Cpolygon points='360,0 375,30 390,0' fill='%23ab5533' opacity='0.8'/%3E%3C/svg%3E");
      background-repeat: repeat-x;
      background-size: auto 100%;
      opacity: 0.8;
    }

    header::after {
      content: '';
      position: absolute;
      bottom: -25px;
      left: 0;
      right: 0;
      height: 30px;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,30 15,0 30,30' fill='%23ab5533' opacity='0.8'/%3E%3Cpolygon points='40,30 55,0 70,30' fill='%23149cbb' opacity='0.8'/%3E%3Cpolygon points='80,30 95,0 110,30' fill='%23bb8f34' opacity='0.8'/%3E%3Cpolygon points='120,30 135,0 150,30' fill='%23ab5533' opacity='0.8'/%3E%3Cpolygon points='160,30 175,0 190,30' fill='%23149cbb' opacity='0.8'/%3E%3Cpolygon points='200,30 215,0 230,30' fill='%23bb8f34' opacity='0.8'/%3E%3Cpolygon points='240,30 255,0 270,30' fill='%23ab5533' opacity='0.8'/%3E%3Cpolygon points='280,30 295,0 310,30' fill='%23149cbb' opacity='0.8'/%3E%3Cpolygon points='320,30 335,0 350,30' fill='%23bb8f34' opacity='0.8'/%3E%3Cpolygon points='360,30 375,0 390,30' fill='%23ab5533' opacity='0.8'/%3E%3C/svg%3E");
      background-repeat: repeat-x;
      background-size: auto 100%;
      opacity: 0.8;
    }

    .navbar {
      background-color: transparent;
      padding: 0;
      position: relative;
      z-index: 10;
    }

    .navbar-brand {
      font-weight: 700;
      font-size: 1.5rem;
      color: var(--surface) !important;
      margin-right: 2rem;
      display: flex;
      align-items: center;
      height: 36px;
    }

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

    .navbar-nav {
      gap: 1rem;
      flex: 1;
    }

    .nav-item {
      display: flex;
      align-items: center;
    }

    .nav-link {
      color: var(--surface) !important;
      font-size: 1rem;
      font-weight: 400;
      padding: 0.5rem 0.75rem !important;
      position: relative;
      transition: color 0.3s ease;
      border-bottom: 3px solid transparent;
    }

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

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

    .navbar-nav .btn {
      margin: 0;
    }

    .navbar-toggler {
      border: none;
      color: var(--surface);
      padding: 0.5rem;
    }

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

    footer {
      background-color: var(--brand-darker);
      color: var(--surface);
      margin-top: clamp(3.5rem, 7vw, 5.5rem);
      padding-top: 3rem;
      padding-bottom: 2rem;
      min-height: 280px;
    }

    footer h4 {
      color: var(--surface);
      font-size: 1.1rem;
      margin-bottom: 1.2rem;
    }

    footer a {
      color: var(--surface);
      text-decoration: none;
      transition: color 0.3s ease;
      font-size: 0.9rem;
      line-height: 1.8;
    }

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

    footer p, footer li {
      font-size: 0.9rem;
      line-height: 1.8;
      color: var(--surface);
    }

    .footer-section {
      margin-bottom: 2rem;
    }

    .footer-bottom {
      border-top: 1px solid rgba(187, 143, 52, 0.3);
      margin-top: 2rem;
      padding-top: 1.5rem;
      text-align: center;
      font-size: 0.85rem;
      color: var(--border);
    }

    .footer-bottom p {
      margin: 0;
      font-size: 0.85rem;
    }

    .section-divider {
      height: 60px;
      background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.12'%3E%3Cpath d='M10 20 Q 25 5 40 20 T 70 20'/%3E%3Ccircle cx='50' cy='10' r='6'/%3E%3Crect x='20' y='35' width='12' height='12'/%3E%3Cpath d='M70 35 L 82 50'/%3E%3C/g%3E%3C/svg%3E");
      background-repeat: repeat-x;
      background-position: center;
      background-size: auto 100%;
    }

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

    @media (max-width: 1399.98px) {
      .navbar-nav {
        gap: 0.5rem;
      }

      .nav-link {
        padding: 0.5rem 0.5rem !important;
      }

      header::before, header::after {
        display: none;
      }
    }

    @media (max-width: 576px) {
      h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
      }

      h2 {
        font-size: clamp(1.25rem, 3.5vw, 1.75rem);
      }

      button, [type="button"], [type="submit"] {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
      }
    }
