: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: #e0defc;
  --surface: #f6f5fe;
  --surface-alt: #d7d5f2;
  --primary: #b11711;
  --primary-text: #ffffff;
  --accent: #15b868;
  --text: #1a1a2e;
  --text-muted: #4a4a68;
  --border: #9e8642;
  --brand: #21316c;
  --brand-dark: #17224c;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  overflow-x: hidden;
  caret-color: var(--primary);
}

h1, h2, h3 {
  font-family: 'Bungee', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-top: 0;
}

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

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
}

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

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

a:focus-visible {
  outline: 3px solid rgba(177, 23, 17, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 4px 12px rgba(177, 23, 17, 0.4);
  transition: all 0.3s ease-out;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(177, 23, 17, 0.6), 0 0 32px rgba(177, 23, 17, 0.5);
  transform: translateY(-2px);
  color: var(--primary-text);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: all 0.3s ease-out;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

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

.btn-secondary:focus-visible {
  outline: 3px solid rgba(177, 23, 17, 0.5);
  outline-offset: 2px;
}

header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(33, 49, 108, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 0;
  min-height: 72px;
}

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

.navbar-nav {
  gap: 8px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand);
  padding: 8px 16px;
  transition: all 0.2s ease-out;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

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

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

footer {
  background: var(--brand-dark);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(158, 134, 66, 0.1) 39px, rgba(158, 134, 66, 0.1) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(158, 134, 66, 0.1) 39px, rgba(158, 134, 66, 0.1) 40px);
  color: var(--surface-alt);
  padding: 48px 0 24px;
}

footer h4 {
  color: var(--border);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

footer a {
  color: var(--surface-alt);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

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

footer .footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(158, 134, 66, 0.2);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
}

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

@media (max-width: 1199.98px) {
  .navbar-collapse {
    background: #ffffff;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(33, 49, 108, 0.12);
  }
}

.breadcrumb {
  background: transparent;
  padding: 12px 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--text-muted);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}
