: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: #0c0a25;
  --surface: #1b1932;
  --surface-alt: #16142e;
  --primary: #fcf603;
  --primary-text: #0c0a25;
  --accent: #30f689;
  --brand: #ba0dee;
  --brand-dark: #8209a7;
  --text: #f0eeff;
  --text-muted: #a89fc2;
  --border: #c2a94a;
  --font-heading: 'Righteous', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--brand) var(--surface-alt);
  scrollbar-width: thin;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='white' stroke-width='0.8' opacity='0.6'/%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='white' stroke-width='0.6' opacity='0.6'/%3E%3Ccircle cx='40' cy='40' r='10' fill='none' stroke='white' stroke-width='0.5' opacity='0.6'/%3E%3Cpath d='M10 40 Q25 10 40 40 Q55 70 70 40' fill='none' stroke='white' stroke-width='0.6' opacity='0.6'/%3E%3Cpath d='M40 10 Q70 25 40 40 Q10 55 40 70' fill='none' stroke='white' stroke-width='0.6' opacity='0.6'/%3E%3Crect x='5' y='5' width='70' height='70' fill='none' stroke='white' stroke-width='0.4' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

a {
  color: var(--primary);
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: var(--primary); text-decoration-color: var(--primary); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.35; }
h1 { font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }

.pennant-strip {
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpolygon points='5,0 25,0 15,18' fill='%23ba0dee'/%3E%3Cpolygon points='30,0 50,0 40,18' fill='%23fcf603'/%3E%3Cpolygon points='55,0 75,0 65,18' fill='%2330f689'/%3E%3Cpolygon points='80,0 100,0 90,18' fill='%23ba0dee'/%3E%3Cpolygon points='105,0 125,0 115,18' fill='%23fcf603'/%3E%3Cline x1='0' y1='2' x2='120' y2='2' stroke='%23c2a94a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 24px;
  width: 100%;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom {
  background-color: var(--surface-alt);
  border-bottom: 3px solid var(--border);
  height: 64px;
  padding: 0 1rem;
}

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

.navbar-custom .nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text) !important;
  padding: 0.4rem 0.65rem;
  position: relative;
  white-space: nowrap;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.65rem;
  right: 0.65rem;
  height: 3px;
  background: transparent;
  transition: background 0.15s;
}

.navbar-custom .nav-link:hover { color: var(--primary) !important; }
.navbar-custom .nav-link:hover::after { background: var(--primary); }
.navbar-custom .nav-link.active { color: var(--brand) !important; }
.navbar-custom .nav-link.active::after { background: var(--brand); }

.btn-nav-login {
  border: 3px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 8px 20px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-nav-login:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.65);
}
.btn-nav-login:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.btn-nav-register {
  background: var(--primary);
  color: var(--primary-text);
  border: 3px solid var(--primary-text);
  padding: 8px 20px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.65);
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-nav-register:hover {
  background: #e6df00;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.65);
  transform: translate(2px, 2px);
  color: var(--primary-text);
}
.btn-nav-register:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.navbar-toggler {
  border: 2px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
}
.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='%23f0eeff' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.btn-primary-cta {
  background: var(--primary);
  color: var(--primary-text);
  border: 3px solid var(--primary-text);
  border-radius: 4px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.65);
  transition: all 0.15s ease-out;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn-primary-cta:hover {
  background: #e6df00;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.65);
  transform: translate(2px, 2px);
  color: var(--primary-text);
}
.btn-primary-cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.btn-secondary-cta {
  background: transparent;
  color: var(--text);
  border: 3px solid var(--text);
  border-radius: 4px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.65);
  transition: all 0.15s ease-out;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn-secondary-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.65);
}
.btn-secondary-cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.btn-brand-cta {
  background: var(--brand);
  color: #fff;
  border: 3px solid var(--brand-dark);
  border-radius: 4px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 6px 6px 0 var(--brand-dark);
  transition: all 0.15s ease-out;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn-brand-cta:hover {
  background: #9e0cc5;
  box-shadow: 3px 3px 0 var(--brand-dark);
  transform: translate(2px,2px);
  color: #fff;
}

.alpona-divider {
  width: 100%;
  height: 32px;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='32'%3E%3Cpath d='M0 16 Q10 4 20 16 Q30 28 40 16 Q50 4 60 16 Q70 28 80 16 Q90 4 100 16 Q110 28 120 16 Q130 4 140 16 Q150 28 160 16 Q170 4 180 16 Q190 28 200 16' fill='none' stroke='white' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='16' r='3' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='60' cy='16' r='3' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='100' cy='16' r='3' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='140' cy='16' r='3' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='180' cy='16' r='3' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 200px 32px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  padding-left: 16px;
  border-left: 4px solid var(--brand);
  margin-bottom: 2rem;
  line-height: 1.35;
}
.section-title span { color: var(--primary); }

[data-component="game-grid"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.game-card {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.65);
  transition: all 0.18s ease;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.game-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 11px 11px 0 rgba(0,0,0,0.65);
  border-color: var(--primary);
  color: var(--text);
}
.game-card:hover .game-card-img img { filter: brightness(1.1); }

.game-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.18s;
}
.game-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(12,10,37,0.92) 0%, transparent 100%);
}
.game-tag {
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}
.game-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.3;
}
.game-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

[data-component="faq"] details {
  border-bottom: 2px solid var(--surface);
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 2px solid var(--surface-alt);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.65);
  transition: all 0.18s;
}
[data-component="faq"] details[open] {
  border-color: var(--brand);
  box-shadow: 8px 8px 0 var(--brand-dark);
}
[data-component="faq"] summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
[data-component="faq"] summary::-webkit-details-marker { display: none; }
[data-component="faq"] summary::after {
  content: '\f282';
  font-family: 'bootstrap-icons';
  font-size: 1rem;
  color: var(--border);
  flex-shrink: 0;
  transition: transform 0.2s;
}
[data-component="faq"] details[open] summary::after {
  transform: rotate(180deg);
  color: var(--primary);
}
[data-component="faq"] details div {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.site-table th {
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid var(--border);
}
.site-table td {
  padding: 10px 14px;
  border: 2px solid var(--surface-alt);
  color: var(--text-muted);
}
.site-table tr:nth-child(odd) td { background: var(--surface); }
.site-table tr:nth-child(even) td { background: var(--surface-alt); }
.site-table tr:hover td { background: #201e40; color: var(--text); }

[data-component="steps"] {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
[data-component="steps"]::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--border);
  opacity: 0.4;
}
[data-component="steps"] li {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2rem;
}
[data-component="steps"] li:last-child { margin-bottom: 0; }
.step-dot {
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  background: var(--brand);
  border: 3px solid var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  z-index: 1;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

[data-component="trust"] {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
[data-component="trust"] li {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
[data-component="trust"] li i { color: var(--border); font-size: 0.95rem; }

[data-component="stats"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
[data-component="stats"] > div {
  flex: 1 1 160px;
  padding: 14px 20px;
  border-right: 2px solid var(--border);
  text-align: center;
}
[data-component="stats"] > div:last-child { border-right: none; }
[data-component="stats"] dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
[data-component="stats"] dd {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.site-footer {
  background: var(--surface-alt);
  border-top: 3px solid var(--border);
  padding: 48px 0 0;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-18 {
  display: inline-block;
  border: 2px solid var(--border);
  color: var(--border);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 0;
  margin-bottom: 10px;
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--border);
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 2px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 2;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 16px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 991px) {
  [data-component="game-grid"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1399.98px) {
  .navbar-collapse { background: var(--surface-alt); padding: 1rem; border-top: 2px solid var(--border); }
  .navbar-custom { height: auto; min-height: 64px; }
}
@media (max-width: 767px) {
  [data-component="game-grid"] { grid-template-columns: repeat(2, 1fr); }
  h2, .section-title { font-size: 1.6rem; }
  [data-component="stats"] > div { flex: 1 1 100px; padding: 10px 12px; }
  [data-component="stats"] dd { font-size: 1.2rem; }
}
@media (max-width: 575px) {
  .section-title { font-size: 1.4rem; }
  [data-component="trust"] li { font-size: 0.68rem; padding: 5px 9px; }
}

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