: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: #f1fbf9;
  --color-surface: #fbfefd;
  --color-surface-alt: #e7f1ef;
  --color-primary: #fb0905;
  --color-primary-text: #1a1a1a;
  --color-accent: #d5a511;
  --color-text: #2d3436;
  --color-text-muted: #636e72;
  --color-border: #bb9a30;
  --color-brand: #097e1f;
  --color-brand-dark: #065816;
}

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

html, body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--color-brand) var(--color-bg);
}

body {
  line-height: 1.6;
}

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

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

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

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

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

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

header.navbar {
  background-color: var(--color-brand);
  padding: 0 2.5rem;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-surface) !important;
  margin-right: 3rem;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.navbar-nav .nav-link {
  color: rgba(251, 254, 253, 0.9) !important;
  font-size: 16px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  border-bottom-color: var(--color-accent);
}

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

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

.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='%23fbfefd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 9h24M6 15h24M6 21h24'/%3e%3c/svg%3e");
}

.btn-login, .btn-signup {
  font-size: 14px;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  height: 40px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  border: 2px solid var(--color-border);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-login {
  background-color: var(--color-surface);
  color: var(--color-brand);
  width: 100px;
  margin-left: 0.5rem;
}

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

.btn-signup {
  background-color: var(--color-primary);
  color: var(--color-surface);
  width: 120px;
  margin-left: 0.5rem;
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(251, 9, 5, 0.5);
}

.btn-signup:hover {
  background-color: #d40804;
  box-shadow: 0 0 16px rgba(251, 9, 5, 0.7);
}

.btn-login:focus-visible, .btn-signup:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.btn-primary, .btn-cta {
  background-color: var(--color-primary);
  color: var(--color-surface);
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  border: 2px solid var(--color-border);
  box-shadow: 0 0 12px rgba(251, 9, 5, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover, .btn-cta:hover {
  background-color: #d40804;
  box-shadow: 0 0 16px rgba(251, 9, 5, 0.7);
  transform: translateY(-2px);
}

.btn-primary:active, .btn-cta:active {
  transform: scale(0.98);
}

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

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-brand);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(187, 154, 48, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: var(--color-surface-alt);
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(9, 126, 31, 0.15);
}

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

main {
  margin: 0 auto;
}

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

.container, .container-lg, .container-xl {
  max-width: 1320px;
  padding-left: 2rem;
  padding-right: 2rem;
}

h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--color-primary-text);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0px rgba(9, 126, 31, 0.1);
}

h2 {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-primary-text);
  margin: 0.5rem 0 1.5rem;
  text-shadow: 2px 2px 0px rgba(9, 126, 31, 0.1);
}

h3 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary-text);
  margin: 0.5rem 0 1rem;
}

h4 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary-text);
  margin: 0.5rem 0 0.75rem;
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  max-width: 75ch;
}

small, .small-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

strong, .text-strong {
  color: var(--color-accent);
  font-weight: 600;
}

.divider-ornament {
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(9, 126, 31, 0.05));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  overflow: visible;
}

.divider-ornament svg {
  width: 100%;
  height: 100%;
  max-height: 80px;
}

.card {
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(187, 154, 48, 0.2);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(9, 126, 31, 0.3);
  transform: translateY(-4px);
}

.game-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(187, 154, 48, 0.2);
}

.game-card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(9, 126, 31, 0.3);
  transform: translateY(-4px);
}

.game-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.game-card-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-card h3 {
  font-size: 18px;
  margin: 0 0 0.5rem;
  color: var(--color-primary-text);
}

.game-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  flex-grow: 1;
}

.game-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(213, 165, 17, 0.95);
  color: var(--color-surface);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  border-radius: 0;
  text-transform: uppercase;
}

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

thead {
  background-color: var(--color-brand);
  color: var(--color-surface);
}

thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border: none;
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
}

tbody tr:nth-child(even) {
  background-color: var(--color-surface-alt);
}

tbody td {
  padding: 1rem;
  font-size: 15px;
  color: var(--color-text);
}

footer {
  background-color: var(--color-brand-dark);
  color: var(--color-surface);
  padding: 3rem 2.5rem 1.5rem;
  margin-top: 3rem;
}

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

footer p {
  font-size: 14px;
  color: rgba(251, 254, 253, 0.85);
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(251, 254, 253, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-divider {
  border-top: 1px solid rgba(213, 165, 17, 0.3);
  margin: 2rem 0;
}

.footer-bottom {
  font-size: 12px;
  color: rgba(251, 254, 253, 0.7);
  text-align: center;
  padding-top: 1rem;
}

nav[aria-label="breadcrumb"] {
  background-color: var(--color-surface);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  color: var(--color-text-muted);
  font-size: 14px;
}

.breadcrumb-item a {
  color: var(--color-brand);
}

.breadcrumb-item.active {
  color: var(--color-text);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--color-border);
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  header.navbar {
    padding: 0 1rem;
  }

  .navbar-brand {
    margin-right: 1rem;
  }

  h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .container, .container-lg, .container-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

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