: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: #000e1b;
--surface: #0f1c29;
--surface-alt: #0a1824;
--primary: #f21371;
--primary-text: #0b1220;
--accent: #baee47;
--text: #e8f4f8;
--text-muted: #7a9db0;
--border: #d7aa5c;
--brand: #03e4f6;
--brand-deep: #02a0ac;
}

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

body {
background: var(--bg);
background-image: repeating-linear-gradient(45deg, #03e4f608 0, #03e4f608 1px, transparent 0, transparent 50%);
background-size: 32px 32px;
color: var(--text);
font-family: 'Nunito', sans-serif;
font-size: 1rem;
line-height: 1.65;
letter-spacing: 0.01em;
overflow-x: hidden;
}

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

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

a:hover {
color: var(--brand-deep);
}

h1, h2, h3, h4 {
font-family: 'Baloo 2', sans-serif;
line-height: 1.35;
margin-bottom: 0.75rem;
}

h1 {
font-size: clamp(2rem, 6vw, 6rem);
font-weight: 900;
letter-spacing: -0.02em;
line-height: 1.0;
text-transform: uppercase;
}

h2 {
font-size: 2rem;
font-weight: 700;
letter-spacing: 0.04em;
}

h3 {
font-size: 1.25rem;
font-weight: 700;
}

h4 {
font-size: 1rem;
font-weight: 700;
font-family: 'Nunito', sans-serif;
}

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

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

.btn-primary {
clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
border-radius: 0;
background: var(--primary);
color: var(--primary-text);
font-family: 'Baloo 2', sans-serif;
font-weight: 700;
font-size: 0.9375rem;
letter-spacing: 0.1em;
text-transform: uppercase;
height: 48px;
padding: 0 32px;
border: none;
box-shadow: 0 0 0 2px var(--primary), 0 0 16px 4px #f2137150;
transition: all 0.18s ease;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
}

.btn-primary:hover {
background: #d4005e;
box-shadow: 0 0 0 2px var(--primary), 0 0 28px 8px #f2137180;
transform: translateY(-1px);
color: var(--primary-text);
}

.btn-secondary {
clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
border-radius: 0;
background: transparent;
border: 1.5px solid var(--brand);
color: var(--brand);
font-family: 'Baloo 2', sans-serif;
font-weight: 700;
font-size: 0.9375rem;
letter-spacing: 0.1em;
text-transform: uppercase;
height: 48px;
padding: 0 32px;
transition: all 0.18s ease;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
}

.btn-secondary:hover {
background: #03e4f615;
box-shadow: 0 0 16px #03e4f660;
color: var(--brand);
}

.btn-accent {
clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
border-radius: 0;
background: var(--accent);
color: var(--bg);
font-family: 'Baloo 2', sans-serif;
font-weight: 800;
font-size: 0.9375rem;
letter-spacing: 0.1em;
text-transform: uppercase;
height: 48px;
padding: 0 32px;
border: none;
transition: all 0.18s ease;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
}

.btn-accent:hover {
background: #a0d436;
color: var(--bg);
}

.navbar {
background: var(--bg);
border-bottom: 1px solid #03e4f630;
height: 60px;
position: sticky;
top: 0;
z-index: 100;
}

.navbar-brand {
font-family: 'Baloo 2', sans-serif;
font-weight: 900;
color: var(--brand);
font-size: 1.5rem;
text-decoration: none;
}

.navbar-brand:hover {
color: var(--brand);
}

.nav-link {
font-family: 'Nunito', sans-serif;
font-weight: 700;
font-size: 0.875rem;
color: var(--text);
letter-spacing: 0.08em;
text-transform: uppercase;
text-decoration: none;
padding: 0.5rem 1rem;
transition: color 0.18s ease;
position: relative;
}

.nav-link:hover {
color: var(--brand);
}

.nav-link:hover::after {
content: '';
position: absolute;
bottom: 0;
left: 1rem;
right: 1rem;
height: 2px;
background: var(--brand);
}

.nav-link.active {
color: var(--brand);
text-shadow: 0 0 8px #03e4f680;
}

.nav-link.active::after {
content: '';
position: absolute;
bottom: 0;
left: 1rem;
right: 1rem;
height: 2px;
background: var(--brand);
}

footer {
background: var(--bg);
border-top: 1px solid #d7aa5c20;
padding: 48px 0 24px;
}

footer h4 {
font-family: 'Nunito', sans-serif;
font-weight: 700;
font-size: 0.8125rem;
color: var(--border);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 1rem;
}

footer a {
font-family: 'Nunito', sans-serif;
font-size: 0.875rem;
color: var(--text-muted);
text-decoration: none;
display: block;
margin-bottom: 0.5rem;
transition: color 0.18s ease;
}

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

footer .copyright {
border-top: 1px solid #03e4f615;
padding-top: 24px;
margin-top: 32px;
text-align: center;
font-size: 0.75rem;
color: var(--text-muted);
}

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

:root{--qa-nav:compact}
@media (min-width: 992px) {
  .navbar .nav-link { padding-left: 6px !important; padding-right: 6px !important; letter-spacing: 0 !important; white-space: normal !important; text-align: center; }
  .navbar .navbar-nav { gap: 0 !important; min-width: 0; flex-shrink: 1; }
  .navbar .navbar-collapse { min-width: 0; }
}
