: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: #eeeeee;
  --surface: #fafafa;
  --surface-alt: #e4e4e4;
  --primary: #b0501c;
  --primary-dark: #8e3f15;
  --accent: #c80f5d;
  --brand: #514043;
  --brand-dark: #392d2f;
  --text: #2a2a2a;
  --text-light: #1a1a1a;
  --text-muted: #666666;
  --border: #ab9741;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

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

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  line-height: 1.3;
  letter-spacing: 0.8px;
  margin-bottom: 0.8em;
  margin-top: 1.2em;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.35;
  margin-bottom: 0.6em;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1em;
  color: var(--text);
}

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

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

button, a.btn, .btn {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px 10px 2px 2px;
  transition: all 0.2s ease-out;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(176, 80, 28, 0.3);
  text-decoration: none;
  outline: none;
}

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

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

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--surface);
  text-decoration: none;
  outline: none;
}

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

.btn:disabled, button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

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

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

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

header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
}

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

.navbar-brand {
  font-family: "Oswald", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  margin: 0;
  padding: 0;
  height: auto;
}

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

.navbar-brand:hover, .navbar-brand:focus {
  color: var(--primary);
  text-decoration: none;
}

.nav-link {
  color: var(--text) !important;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.2s ease-out;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--brand) !important;
  outline: none;
}

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

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

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

.navbar .navbar-nav {
  margin-left: auto;
}

.navbar .navbar-nav .nav-item:last-child {
  margin-left: 1.5rem;
}

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

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

.container, .container-xl {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: white;
  padding: clamp(28px, 3.5vw, 44px) 0;
  margin-top: auto;
}

footer h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer a {
  color: white;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease-out;
}

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

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

footer li {
  margin-bottom: 0.5rem;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

footer .badge-18 {
  background-color: var(--brand);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

footer .social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

footer .social-icons a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-out;
}

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

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.d-flex { display: flex; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

@media (max-width: 768px) {
  .navbar { height: auto; }
  .nav-link { padding: 0.75rem 1rem !important; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
