: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: #0c1115;
      --surface: #1b1f23;
      --surface-alt: #161b1e;
      --primary: #f2fa0b;
      --primary-text: #0b1220;
      --accent: #f28f46;
      --text: #e8e8e8;
      --text-muted: #a0a0a0;
      --border: #dca545;
      --brand: #3f4be5;
      --brand-dark: #2c34a0;
    }

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

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

    body {
      background: var(--bg) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100"%3E%3Cdefs%3E%3Cpattern id="dots" x="0" y="0" width="8" height="100" patternUnits="userSpaceOnUse"%3E%3Cline x1="0" y1="0" x2="0" y2="100" stroke="rgba(220,165,69,0.03)" stroke-width="1"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100" height="100" fill="none"/%3E%3Crect width="100" height="100" fill="url(%23dots)"/%3E%3C/svg%3E');
      color: var(--text);
      font-family: 'Work Sans', sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.6;
      letter-spacing: 0;
    }

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

    h1, h2, h3, h4, h5, h6 {
      font-family: 'Bungee', sans-serif;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--primary-text);
      line-height: 1.35;
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.5rem);
    }

    h2 {
      font-size: clamp(1.75rem, 4.5vw, 2.5rem);
      margin-bottom: 1.5rem;
    }

    h3 {
      font-size: clamp(1.125rem, 3vw, 1.75rem);
    }

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

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

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

    button, .btn {
      font-family: 'Bungee', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      border-radius: 0;
      transition: all 0.2s ease-out;
    }

    .btn-primary {
      background: var(--primary);
      color: var(--bg);
      border: 2px solid var(--primary);
      padding: 0.75rem 2rem;
      clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
      box-shadow: 0 0 15px rgba(242, 250, 11, 0.4), inset 0 0 1px rgba(255, 255, 255, 0.2);
    }

    .btn-primary:hover {
      background: var(--primary);
      color: rgba(0, 0, 0, 0.8);
      border-color: var(--primary);
      box-shadow: 0 0 25px rgba(242, 250, 11, 0.6), inset 0 0 1px rgba(255, 255, 255, 0.3);
      transform: scale(0.98);
    }

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

    .btn-secondary {
      background: transparent;
      color: var(--text);
      border: 2px solid var(--border);
      padding: 0.75rem 1.75rem;
      clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    }

    .btn-secondary:hover {
      background: rgba(220, 165, 69, 0.1);
      color: var(--primary);
      border-color: var(--border);
    }

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

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

    header {
      background: var(--bg);
      border-bottom: 2px solid var(--border);
      padding: 0 1rem;
      position: relative;
      z-index: 100;
    }

    .navbar {
      height: 64px;
      padding: 0;
    }

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

    .nav-link {
      font-family: 'Work Sans', sans-serif;
      font-size: 1rem;
      font-weight: 400;
      color: var(--text) !important;
      letter-spacing: 0;
      transition: color 0.2s ease-out;
      border-bottom: 3px solid transparent;
      padding-bottom: 0.5rem !important;
    }

    .nav-link:hover {
      color: var(--primary) !important;
    }

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

    .navbar-toggler {
      border: 1px solid var(--border);
    }

    .navbar-toggler:focus {
      box-shadow: 0 0 0 0.25rem rgba(220, 165, 69, 0.25);
    }

    footer {
      background: var(--bg);
      border-top: 2px solid var(--border);
      margin-top: clamp(2rem, 5vw, 4rem);
      padding: 2.5rem 1rem;
      font-size: 0.875rem;
    }

    footer .container {
      max-width: 1320px;
    }

    footer .nav-link {
      display: inline;
      font-size: 0.875rem;
      padding: 0 0.5rem !important;
    }

    main {
      flex: 1;
    }

    section {
      padding: clamp(1.75rem, 3.5vw, 2.75rem) 1rem;
    }

    section > .container, section > .container-xl {
      max-width: 1320px;
    }

    .arcade-card {
      background: var(--surface);
      border: 1px solid var(--border);
      clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
      box-shadow: 0 0 20px rgba(63, 75, 229, 0.3), inset 0 0 1px rgba(220, 165, 69, 0.4);
      padding: 1.5rem;
      transition: all 0.2s ease-out;
    }

    .arcade-card:hover {
      background: var(--surface-alt);
      border-color: var(--accent);
      box-shadow: 0 0 30px rgba(242, 143, 70, 0.4), inset 0 0 1px rgba(220, 165, 69, 0.5);
    }

    .game-card {
      display: block;
      background: var(--surface);
      border: 1px solid var(--border);
      clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
      padding: 1rem;
      text-decoration: none;
      color: var(--text);
      transition: all 0.2s ease-out;
      box-shadow: 0 0 12px rgba(63, 75, 229, 0.2), inset 0 0 1px rgba(220, 165, 69, 0.3);
      position: relative;
      overflow: hidden;
    }

    .game-card:hover {
      background: var(--surface-alt);
      border-color: var(--accent);
      box-shadow: 0 0 20px rgba(242, 143, 70, 0.4), inset 0 0 1px rgba(220, 165, 69, 0.4);
      text-decoration: none;
      color: var(--text);
    }

    .game-card img {
      width: 100%;
      height: auto;
      display: block;
      margin-bottom: 0.75rem;
      transform: scale(1);
      transition: transform 0.2s ease-out;
    }

    .game-card:hover img {
      transform: scale(1.05);
    }

    .game-card h3 {
      font-size: 1.125rem;
      margin-bottom: 0.5rem;
    }

    .game-card p {
      font-size: 0.875rem;
      color: var(--text-muted);
      margin: 0;
    }

    .game-tag {
      display: inline-block;
      background: rgba(63, 75, 229, 0.2);
      color: var(--border);
      font-size: 0.75rem;
      font-weight: 500;
      padding: 0.3rem 0.6rem;
      margin-bottom: 0.75rem;
      border-radius: 2px;
    }

    .divider {
      border-top: 2px dashed var(--border);
      margin: clamp(2rem, 3.5vw, 3rem) 0;
    }

    .text-highlight {
      color: var(--primary);
    }

    .text-accent {
      color: var(--accent);
    }

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

    @media (max-width: 768px) {
      .navbar-brand img {
        height: 32px;
      }

      nav .nav-link {
        font-size: 0.95rem;
      }
    }

:root{--site-repair:start}
main > section:has(> [class*="container"]:only-child) { grid-template-columns: 1fr !important; }

.sr-email { overflow-wrap: anywhere; word-break: break-word; }

.navbar-nav .nav-link[href="/"] { white-space: nowrap !important; }

@media (min-width: 992px) { .navbar-expand-lg .navbar-toggler { display: none !important; } }
@media (min-width: 1200px) { .navbar-expand-xl .navbar-toggler { display: none !important; } }
@media (min-width: 1400px) { .navbar-expand-xxl .navbar-toggler { display: none !important; } }
:root{--site-repair:end}
