/* 2HC design system (FIX_PLAN §4.1 / Appendix B).
   Injected as a BASE layer before the page's own CSS so every site looks
   intentional by default. Brand colors are overridden per project by the
   pipeline (the :root block below is replaced with the brand palette). */
:root{
  /* Brand colors — overridden per project */
  --color-primary:   #00ff66;
  --color-accent:    #00d15e;
  --color-bg:        #1f2528;
  --color-bg-2:      #101619;
  --color-text:      #ffffff;
  --color-muted:     #9fb0ab;
  --color-cta:       #00d15e;
  --color-cta-hover: #00c24f;

  /* Spacing scale (8px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(0,255,102,.25), 0 8px 30px rgba(0,255,102,.25);

  /* Layout + type */
  --container: 1180px;
  --section-y: clamp(3rem, 7vw, 6rem);
  --fs-h1: clamp(2.2rem, 5vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 3.5vw, 2.3rem);
  --fs-body: 1.0625rem;
  --lh-body: 1.65;
}*,*::before,*::after{ box-sizing: border-box; }body,h1,h2,h3,p,ul,ol,figure,blockquote{ margin: 0; padding: 0; }body{
  background: radial-gradient(1200px 600px at 50% -10%, #243033 0%, var(--color-bg) 40%, var(--color-bg-2) 100%);
  color: var(--color-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}.x960a-container{ width: min(100% - 2rem, var(--container)); margin-inline: auto; }section{ padding-block: var(--section-y); }section + section{ padding-block-start: 0; }h1{ font-size: var(--fs-h1); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }h2{ font-size: var(--fs-h2); line-height: 1.15; font-weight: 700; margin-bottom: var(--s-6); }p{ color: var(--color-text); max-width: 68ch; }/* CTA button with glow */
.x960a-btn{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
  background: linear-gradient(180deg, var(--color-primary), var(--color-cta));
  color: #06210f; box-shadow: var(--shadow-glow);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}.x960a-btn:hover{ transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 0 0 1px rgba(0,255,102,.4), 0 12px 38px rgba(0,255,102,.35); }.x960a-btn:focus-visible{ outline: 3px solid var(--color-primary); outline-offset: 3px; }/* Game card — real image,gradient ONLY as overlay{
  position: relative; aspect-ratio: 3/4; border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-2);
}/* Tables (bonus terms,payments,limits) */
table{ width: 100%; max-width: 100%; border-collapse: collapse; border-radius: var(--r-md); overflow: hidden; }caption{ text-align: left; font-weight: 700; margin-bottom: var(--s-3); }th,td{ padding: .85rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); overflow-wrap: anywhere; }thead th{ background: rgba(255,255,255,.05); }@media (prefers-reduced-motion: reduce){*,*::before,*::after{ animation: none !important; transition: none !important; }}@media (prefers-reduced-motion: no-preference){html{ scroll-behavior: smooth; }}

/* ── Content panels over image-backed sections ──────────────────────────────
   The CWV step injects a fal.ai background-image onto #bonus/#hero. fal casino
   images often bake the word "BONUS" into the picture, so a data panel sitting
   directly on that section lets the art bleed through behind the terms table and
   obscure values (vision-gate HOLD, Basswin 2026-06-16). Give content panels an
   OPAQUE surface so the table is always readable. */
.bonus-card,.x960a-steps,.step{
  background: var(--color-bg-2, #101619);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md, 14px);
  padding: clamp(1.1rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,.45));
  position: relative; z-index: 1;
}
.bonus-card table{ background: transparent; }

/* ── FAQ accordion ───────────────────────────────────────────────────────────
   Bare <details> render as broken/empty with dead whitespace (vision). Give
   items a surface, padding and a +/- affordance so even a collapsed FAQ reads
   as an intentional accordion. */
.faq{ display: flex; flex-direction: column; gap: .6rem; max-width: 820px; margin-inline: auto; }
.x960a-faq-item{
  background: color-mix(in srgb, var(--color-bg-2, #101619) 80%, transparent);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-sm, 8px);
  padding: .9rem 1.1rem;
}
.x960a-faq-item>summary{
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--color-text);
}
.x960a-faq-item>summary::-webkit-details-marker{ display: none; }
.x960a-faq-item>summary::after{ content: "+"; font-size: 1.3em; line-height: 1; opacity: .7; }
.x960a-faq-item[open]>summary::after{ content: "\2013"; }
.x960a-faq-item>*:not(summary){ margin-top: .7rem; }

/* ── Image-free build helpers (text logo / text payment pills / text game tiles)
   These give an intentional look when the project is generated with no pictures
   (logo as text, favicon only). Harmless when images ARE used — themes/layout
   CSS override the .game-card gradient. */
.brand-mark--text{ font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em;
  color: var(--color-text); text-decoration: none; display: inline-flex; align-items: center; }
.brand-mark--text.x960a-brand-mark--footer{ font-size: 1.05rem; }
.pay,.payment-pill{ display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: var(--r-sm, 8px); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); font-size: .8rem; font-weight: 600; color: var(--color-text); }
.game-card:not(:has(img)){ display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 90px; padding: .75rem; border-radius: var(--r-md, 14px);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary, #4f46e5) 30%, #0b0b14),
    color-mix(in srgb, var(--color-accent, #a855f7) 24%, #0b0b14));
  border: 1px solid rgba(255,255,255,.10); font-weight: 700; color: var(--color-text); }
.game-name{ display: flex; align-items: center; justify-content: center; text-align: center;
  padding: .5rem; font-weight: 600; color: var(--color-text); }
/* Games grid — responsive columns. design-system OWNS this so it applies in
   NO-IMAGES mode too: generate_images only injects the grid on the image path,
   so the phased writer's <div class="games-grid"> was otherwise unstyled →
   full-width stacked bars that read as "broken artwork" (vision-gate 2026-06). */
.games-grid,.game-grid{ display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4, 1rem); }

/* ── page-specific CSS ── */
:root {
  --color-primary: #0066cc;
  --color-accent: #f5b301;
  --color-bg: #151224;
  --color-bg-2: #0b081a;
  --color-text: #ffffff;
  --color-secondary: #ffffff;
  --color-cta: #f5b301;
  --color-cta-hover: #e6a400;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
.x960a-skip {
  position: absolute; left: -999px; top: 0;
  background: var(--color-accent); color: #151224;
  padding: var(--s-2,.5rem) var(--s-4,1rem); z-index: 999;
}
.x960a-skip:focus { left: 0; }
img { max-width: 100%; display: block; }

header.x960a-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,8,26,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245,179,1,0.15);
}
.x960a-nav-wrap {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.x960a-brand-mark { height: 36px; width: 120px; }
nav.x960a-main-nav ul {
  list-style: none;
  display: none;
  gap: 1.5rem;
}
nav.x960a-main-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.95rem;
}
nav.x960a-main-nav a:focus-visible, .x960a-btn:focus-visible, .x960a-btn-ghost:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.x960a-hamburger-toggle { display: none; }
.x960a-hamburger-label {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 0.4rem;
}
.x960a-hamburger-label span {
  width: 24px; height: 2px; background: var(--color-text); display: block;
}
.x960a-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.2rem 1.4rem;
  background: var(--color-bg-2);
}
.x960a-hamburger-toggle:checked ~ .x960a-mobile-panel { display: flex; }
.x960a-mobile-panel a {
  text-decoration: none; color: var(--color-text); font-weight: 700;
}
.x960a-header-cta { display: none; }

.x960a-btn, .x960a-btn-primary {
  display: inline-block;
  background: var(--color-cta);
  color: #151224;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill, 999px);
  text-decoration: none;
  box-shadow: var(--shadow-glow, 0 0 20px rgba(245,179,1,0.4));
  transition: transform 0.15s ease, background 0.15s ease;
}
.x960a-btn:hover, .x960a-btn-primary:hover { background: var(--color-cta-hover); transform: translateY(-2px); }
.x960a-btn-ghost {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--r-pill, 999px);
  text-decoration: none;
}
.x960a-btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

#hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.x960a-hero-grid {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 2rem 1.2rem;
  display: grid;
  gap: 1.6rem;
}
.x960a-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-lg, 20px);
  box-shadow: var(--shadow-2, 0 20px 40px rgba(0,0,0,0.5));
}
.x960a-hero-copy h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}
.x960a-hero-copy .x960a-sub {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  color: #d9d5ec;
}
.x960a-bonus-badge {
  display: inline-block;
  margin-top: 1.2rem;
  background: linear-gradient(90deg, var(--color-accent), #ffd35c);
  color: #151224;
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  border-radius: var(--r-md, 14px);
  font-size: 1.05rem;
}
.x960a-hero-ctas {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.x960a-trust-bar {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  list-style: none;
  color: #cfc9e8;
  font-size: 0.9rem;
}
.x960a-trust-bar li { display: flex; align-items: center; gap: 0.4rem; }

section { padding: var(--section-y, 4.5rem) 0; }
.x960a-container { max-width: var(--container, 1200px); margin: 0 auto; padding: 0 1.2rem; }
h2 {
  font-size: var(--fs-h2, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}
h2 span {
  color: var(--color-accent);
}
.x960a-section-lead { margin-top: 0.6rem; color: #cfc9e8; max-width: 60ch; }

#bonus { background: var(--color-bg-2); }
.x960a-bonus-banner {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-lg, 20px);
  margin-top: 1.6rem;
  box-shadow: var(--shadow-1, 0 10px 30px rgba(0,0,0,0.4));
}
.x960a-steps {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.8rem;
  grid-template-columns: 1fr;
}
.x960a-step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,179,1,0.2);
  border-radius: var(--r-md, 14px);
  padding: 1.4rem;
}
.x960a-step-card .x960a-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
}
table {
  width: 100%;
  margin-top: 1.8rem;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-md, 14px);
  overflow: hidden;
}
caption { text-align: left; font-weight: 700; padding-bottom: 0.6rem; color: var(--color-accent); }
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
th { background: rgba(245,179,1,0.12); }
.x960a-fine-print { margin-top: 1.2rem; font-size: 0.85rem; color: #a89fce; }
.x960a-bonus-cta { margin-top: 1.6rem; }

#games { background: var(--color-bg); }
.x960a-grid-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.x960a-game {
  position: relative;
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-1, 0 10px 25px rgba(0,0,0,0.4));
}
.x960a-game img { width: 100%; height: 100%; object-fit: cover; }
.x960a-game .x960a-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  padding: 0.6rem 0.7rem;
}
.x960a-providers {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  list-style: none;
  color: #cfc9e8;
  font-weight: 700;
  font-size: 0.9rem;
}
.x960a-providers li {
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(245,179,1,0.2);
}
.x960a-games-cta { margin-top: 2rem; }

#faq { background: var(--color-bg-2); }
.x960a-faq-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.x960a-faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,179,1,0.18);
  border-radius: var(--r-md, 14px);
  overflow: hidden;
}
.x960a-faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.x960a-faq-item summary::-webkit-details-marker { display: none; }
.x960a-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-accent);
}
.x960a-faq-item[open] summary::after { content: "–"; }
.x960a-faq-item p { padding: 0 1.3rem 1.2rem; color: #cfc9e8; }
.x960a-faq-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

footer.x960a-site-footer {
  background: var(--color-bg-2);
  padding: 3rem 0 1.4rem;
  border-top: 1px solid rgba(245,179,1,0.15);
}
.x960a-footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.x960a-footer-brand img { height: 40px; }
.x960a-footer-brand p { margin-top: 0.8rem; color: #cfc9e8; font-size: 0.9rem; max-width: 40ch; }
.x960a-footer-col h3 { font-size: 1rem; margin-bottom: 0.8rem; color: var(--color-accent); }
.x960a-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.x960a-footer-col li { color: #cfc9e8; font-size: 0.9rem; }
.x960a-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.x960a-pay-row img { height: 26px; width: auto; border-radius: 4px; background: #fff; padding: 3px; }
.x960a-age-gate {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #a89fce;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}
.x960a-cookie-strip {
  margin-top: 1.4rem;
  background: rgba(245,179,1,0.1);
  border: 1px solid rgba(245,179,1,0.25);
  border-radius: var(--r-md, 14px);
  padding: 0.9rem 1.1rem;
  font-size: 0.82rem;
  color: #e8e3fb;
}

@media (min-width: 768px) {
  nav.x960a-main-nav ul { display: flex; }
  .x960a-hamburger-label { display: none; }
  .x960a-header-cta { display: inline-block; }
  .x960a-mobile-panel { display: none !important; }
  .x960a-hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .x960a-steps { grid-template-columns: repeat(3, 1fr); }
  .x960a-grid-games { grid-template-columns: repeat(4, 1fr); }
  .x960a-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1200px) {
  .x960a-grid-games { grid-template-columns: repeat(6, 1fr); }
}
#bonus, section#bonus, .bonus-section, [id*="bonus"] { background-image: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url('../images/bonus_bg.jpg') !important; background-size: cover !important; background-position: center !important; }
img[src*="hero"], img[src*="bonus_bg"], img.hero-image, img.x960a-bonus-banner { width: 100% !important; height: auto !important; max-height: 60vh !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; display: block !important; }
