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

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

:root {
  --bg: #eeeded;
  --surface: #fafafa;
  --surface-alt: #e4e4e4;
  --primary: #f84504;
  --primary-text: #1a1a1a;
  --accent: #16dd83;
  --text: #2a2a2a;
  --text-muted: #666666;
  --border: #b18c36;
  --dark: #343332;
  --dark-alt: #242423;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  background-color: var(--surface);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

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

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

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

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

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

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

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

h2 {
  font-size: 2.5rem;
  margin: clamp(28px, 3.5vw, 44px) 0 1.5rem 0;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: all 0.3s ease-out;
}

a:hover {
  text-decoration: underline 3px;
}

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

button, .btn {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  border-radius: 4px;
  padding: 16px 32px;
  font-size: 1.1rem;
  border: 3px solid;
  transition: all 0.3s ease-out;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  min-width: 120px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--border);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
  transform: translate(2px, 2px);
}

.btn-secondary {
  background-color: white;
  color: var(--dark);
  border-color: var(--dark);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

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

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
  border-color: var(--dark);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.65);
}

.btn-accent:hover {
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.8);
}

header {
  background-color: var(--surface);
  border-bottom: 3px solid var(--dark);
  height: 70px;
  position: relative;
  z-index: 100;
}

.navbar {
  height: 70px;
  padding: 12px 40px;
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--dark);
  height: 48px;
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark) !important;
  position: relative;
  padding: 8px 12px !important;
  margin: 0 4px;
}

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

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

.navbar-toggler {
  border: 3px solid var(--dark);
  padding: 6px 10px;
}

.navbar-toggler:focus {
  outline: 3px solid var(--border);
  outline-offset: 3px;
}

main {
  flex: 1;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.1rem;
  color: var(--surface);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--border);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 16px;
  align-items: center;
}

.badge-responsible {
  background-color: var(--surface);
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

.container-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container-main {
    padding: 0 20px;
  }

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

  h2 {
    font-size: 1.75rem;
  }

  .navbar {
    padding: 12px 20px;
  }
}

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

.section-with-bg {
  background-color: var(--surface);
}

.section-alt {
  background-color: var(--bg);
}

.section-dark {
  background-color: var(--dark);
  color: var(--surface);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.trust-badge i {
  font-size: 1.3rem;
  color: var(--border);
}

.card-brutalist {
  border: 3px solid var(--dark);
  border-radius: 6px;
  padding: 12px;
  background-color: var(--surface);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.65);
  transition: all 0.3s ease-out;
}

.card-brutalist:hover {
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
  transform: translate(-2px, -2px);
}

.card-brutalist:focus-within {
  outline: 3px solid var(--border);
  outline-offset: 4px;
}

.stripe-texture {
  background: repeating-linear-gradient(
    90deg,
    #eeeded 0px,
    #eeeded 10px,
    #e4e4e4 10px,
    #e4e4e4 20px
  );
}

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