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

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 > :first-child > :not([class*="container"], :has([class*="container"]), img, picture, video, [style*="absolute"]),
main > :not(:has([class*="container"])) { padding-inline: max(16px, calc((100% - 1320px) / 2)) !important; }  
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:          #041323;
  --surface:     #132130;
  --surface-alt: #0e1c2c;
  --primary:     #d93609;
  --primary-h:   #f04010;
  --brand:       #3068b3;
  --brand-dark:  #22497d;
  --accent:      #adf741;
  --text:        #e8edf2;
  --text-muted:  #7a90a8;
  --border:      #c0a949;
  --border-dim:  #c0a94960;
  --border-dimmer: #c0a94930;

  --clip-card:   polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  --clip-btn:    polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
  --clip-badge:  polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);

  --shadow-card: 0 0 0 1px #c0a94940, 0 4px 24px rgba(0,0,0,0.55);
  --shadow-btn:  0 0 12px 2px #d9360966, 0 2px 8px rgba(0,0,0,0.6);
  --shadow-brand:0 0 10px 1px #3068b355;
  --shadow-accent:0 0 10px 2px #adf74144;
  --shadow-focus:0 0 0 2px #c0a949, 0 0 16px #c0a94966;

  --ff-head: 'Righteous', sans-serif;
  --ff-body: 'Poppins', sans-serif;
}

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

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

body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 16 L16 0 L32 16 L16 32 Z' fill='none' stroke='%23c0a949' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--accent); }
a:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 0; }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 { font-family: var(--ff-head); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.2px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { overflow-wrap: anywhere; }

main > section {
  padding-top:   clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--border-dim);
  position: relative;
}
main > section.alt-bg {
  background-color: var(--surface-alt);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, #c0a9490d 32px);
}
main > section.surface-bg {
  background-color: var(--surface);
}

.clip-card  { clip-path: var(--clip-card);  border-radius: 0; }
.clip-btn   { clip-path: var(--clip-btn);   border-radius: 0; }
.clip-badge { clip-path: var(--clip-badge); border-radius: 0; }

.btn-primary-77,
.btn-secondary-77 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  clip-path: var(--clip-btn);
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn-primary-77 {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary-77:hover {
  background: var(--primary-h);
  color: #fff;
  box-shadow: 0 0 20px 4px #d9360999, 0 2px 8px rgba(0,0,0,0.6);
}
.btn-primary-77:focus-visible { box-shadow: var(--shadow-focus); color: #fff; }
.btn-primary-77:active { transform: scale(0.97); }

.btn-secondary-77 {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--brand);
}
.btn-secondary-77:hover {
  background: #3068b322;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn-secondary-77:focus-visible { box-shadow: var(--shadow-focus); }
.btn-secondary-77:active { transform: scale(0.97); }

.site-nav {
  background-color: var(--surface-alt);
  border-bottom: 1px solid #c0a94980;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-nav .navbar-brand {
  font-family: var(--ff-head);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
.site-nav .navbar-brand .brand-77 { color: var(--text); }
.site-nav .navbar-brand .brand-kk { color: var(--brand); }

.site-nav .nav-link {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  padding: 6px 2px !important;
  margin: 0 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.site-nav .nav-link:hover {
  color: var(--text) !important;
  border-bottom-color: var(--brand);
}
.site-nav .nav-link.active {
  color: var(--text) !important;
  border-bottom-color: var(--brand);
  text-shadow: 0 0 8px #3068b366;
}

.nav-btn-login {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--text);
  padding: 8px 20px;
  clip-path: var(--clip-btn);
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-btn-login:hover { background: var(--brand); color: #fff; }

.nav-btn-signup {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 8px 22px;
  clip-path: var(--clip-btn);
  border-radius: 0;
  border: none;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, box-shadow 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-btn-signup:hover {
  background: var(--primary-h);
  color: #fff;
  box-shadow: 0 0 20px 4px #d9360999;
}

.navbar-toggler {
  border: 1px solid var(--border-dim);
  border-radius: 0;
  padding: 8px 10px;
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
}
.navbar-toggler:focus { box-shadow: var(--shadow-focus); }
.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='%23e8edf2' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
  padding: 48px 0 0;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .footer-col-title {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--border);
  margin-bottom: 14px;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
}
.site-footer .footer-links li { line-height: 2; }
.site-footer .footer-links a {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer .footer-links a:hover { color: var(--text); }

.site-footer .footer-brand-name {
  font-family: var(--ff-head);
  font-size: 26px;
  line-height: 1;
}
.site-footer .footer-brand-name .b77 { color: var(--text); }
.site-footer .footer-brand-name .bkk { color: var(--brand); }
.site-footer .footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 16px;
}
.site-footer .social-row { display: flex; gap: 10px; margin-top: 4px; }
.site-footer .social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  clip-path: var(--clip-badge);
  border: 1px solid var(--border);
  color: var(--border);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  min-width: 44px; min-height: 44px;
  width: 44px; height: 44px;
}
.site-footer .social-icon:hover { background: var(--border); color: var(--bg); }

.site-footer .footer-bottom {
  border-top: 1px solid var(--border-dimmer);
  padding: 16px 0 20px;
  margin-top: 32px;
}
.site-footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer .badge-18 {
  clip-path: var(--clip-badge);
  border: 1px solid var(--border);
  color: var(--border);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  font-family: var(--ff-body);
}

.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--border);
  clip-path: var(--clip-badge);
  border: 1px solid var(--border);
  padding: 4px 10px;
  margin-bottom: 12px;
}
.section-heading { margin-bottom: 8px; }
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
}

.rtp-badge {
  clip-path: var(--clip-badge);
  background: #c0a94920;
  border: 1px solid var(--border);
  color: var(--border);
  font-family: var(--ff-head);
  font-size: 12px;
  padding: 2px 8px;
  display: inline-block;
}

.tag-badge {
  clip-path: var(--clip-badge);
  background: var(--brand-dark);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  font-family: var(--ff-body);
  display: inline-block;
}

.game-card-wrap {
  position: relative;
}
.game-card {
  display: block;
  background: var(--surface);
  clip-path: var(--clip-card);
  border: 1px solid #c0a94940;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.game-card:hover { border-color: var(--border); box-shadow: 0 0 0 1.5px var(--border), 0 8px 32px rgba(0,0,0,0.7); }
.game-card:hover::before { opacity: 1; }
.game-card:hover .game-card-img img { transform: scale(1.04); }

.game-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}
.game-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}
.game-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--surface) 0%, transparent 100%);
}
.game-card-body {
  padding: 10px 12px 12px;
  background: radial-gradient(ellipse at 30% 20%, #3068b312 0%, transparent 60%);
}
.game-card-body h3 {
  font-family: var(--ff-head);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.game-card-provider { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.table-77 {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--text);
}
.table-77 th {
  background: var(--surface-alt);
  color: var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-dim);
  text-align: left;
}
.table-77 td {
  padding: 11px 14px;
  border-bottom: 1px solid #c0a94920;
  vertical-align: middle;
}
.table-77 tr:last-child td { border-bottom: none; }
.table-77 tbody tr:nth-child(even) td { background: #0e1c2c55; }
.table-77 tbody tr:hover td { background: #3068b310; }

.faq-item {
  border-bottom: 1px solid var(--border-dim);
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  color: var(--brand);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 16px;
  line-height: 1.7;
}

.steps-list { list-style: none; padding: 0; }
.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-dimmer);
  position: relative;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  font-family: var(--ff-head);
  font-size: 64px;
  color: var(--brand);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  user-select: none;
}
.step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.step-content p { font-size: 14px; color: var(--text-muted); }

ul[data-component="trust"] {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
ul[data-component="trust"] li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  clip-path: var(--clip-badge);
  border: 1px solid var(--border-dim);
  padding: 6px 12px;
  background: var(--surface);
  min-height: 36px;
}
ul[data-component="trust"] li i { color: var(--border); font-size: 14px; }

dl[data-component="stats"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border-dim);
  clip-path: var(--clip-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
dl[data-component="stats"] > div {
  flex: 1 1 150px;
  padding: 18px 20px;
  border-right: 1px solid var(--border-dim);
  background: radial-gradient(ellipse at 30% 20%, #3068b312 0%, transparent 60%);
}
dl[data-component="stats"] > div:last-child { border-right: none; }
dl[data-component="stats"] dt {
  font-size: 12px;
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
dl[data-component="stats"] dd {
  font-family: var(--ff-head);
  font-size: 20px;
  color: var(--accent);
  line-height: 1.2;
}

ul[data-component="payments"] { list-style: none; padding: 0; }

@media (max-width: 991px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-nav .nav-link { margin: 0 4px; }
}
@media (max-width: 767px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  dl[data-component="stats"] > div { border-right: none; border-bottom: 1px solid var(--border-dim); }
  dl[data-component="stats"] > div:last-child { border-bottom: none; }
}

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