/* 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;
}.x52de-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 */
.x52de-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;
}.x52de-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); }.x52de-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,.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; }
.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;
}
.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);
}
.faq-item>summary::-webkit-details-marker{ display: none; }
.faq-item>summary::after{ content: "+"; font-size: 1.3em; line-height: 1; opacity: .7; }
.faq-item[open]>summary::after{ content: "\2013"; }
.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.x52de-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: #f5b301;
  --color-accent: #f5b301;
  --color-bg: #262855;
  --color-bg-2: #1c1e4b;
  --color-text: #ffffff;
  --color-secondary: #ffffff;
  --color-cta: #f5b301;
  --color-cta-hover: #e6a400;
  --font-main: 'Lato', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
h1, h2, h3 { font-weight: 700; line-height: 1.15; }
.x52de-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #1c1e4b;
  padding: 8px 16px;
  z-index: 999;
}
.x52de-skip:focus { left: 8px; top: 8px; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
header.x52de-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 30, 75, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(245, 179, 1, 0.25);
}
.x52de-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.x52de-brand-mark img { display: block; height: 40px; width: auto; }
nav.x52de-main-nav ul {
  list-style: none;
  display: none;
  gap: 24px;
}
nav.x52de-main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
}
nav.x52de-main-nav a:hover { color: var(--color-primary); }
.x52de-hamburger-toggle { display: none; }
.x52de-hamburger-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.x52de-hamburger-label span {
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  display: block;
  border-radius: 2px;
}
.x52de-header-cta { display: none; }
.x52de-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 24px;
}
.x52de-hamburger-toggle:checked ~ .x52de-mobile-menu { display: flex; }
.x52de-mobile-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
}
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-2) 100%);
  overflow: hidden;
}
.x52de-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.x52de-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.x52de-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,40,85,0.55) 0%, rgba(28,30,75,0.92) 100%);
}
.x52de-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.x52de-hero-inner h1 {
  font-size: clamp(2.4rem, 6vw, var(--fs-h1, 3.4rem));
  color: var(--color-text);
  margin-bottom: 12px;
}
.x52de-hero-sub {
  font-size: 1.15rem;
  color: #e6e7ff;
  margin-bottom: 20px;
}
.x52de-bonus-badge {
  display: inline-block;
  background: rgba(245, 179, 1, 0.14);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-pill, 999px);
  margin-bottom: 24px;
  font-size: 0.98rem;
}
.x52de-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.x52de-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  border-radius: var(--r-pill, 999px);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.x52de-btn-outline:hover { background: var(--color-text); color: var(--color-bg-2); }
.x52de-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  color: #cfd1f5;
  font-size: 0.92rem;
}
.x52de-trust-bar li { display: flex; align-items: center; gap: 6px; }
section { padding: var(--section-y, 72px) 0; }
section h2 {
  font-size: var(--fs-h2, 2.1rem);
  margin-bottom: 12px;
  color: var(--color-primary);
}
.x52de-section-lead {
  max-width: 640px;
  color: #d7d8f7;
  margin-bottom: 32px;
}
#bonus { background: var(--color-bg-2); }
.x52de-bonus-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.x52de-bonus-step {
  text-align: center;
}
.x52de-bonus-step .x52de-step-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.x52de-bonus-step h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--color-text); }
.x52de-bonus-step p { color: #c9cbf0; font-size: 0.95rem; }
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
th { color: var(--color-primary); font-weight: 700; }
caption { text-align: left; caption-side: top; color: #c9cbf0; font-size: 0.9rem; padding-bottom: 8px; }
.x52de-fine-print { color: #b3b5e0; font-size: 0.85rem; margin-bottom: 24px; }
.x52de-grid-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.x52de-game {
  position: relative;
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-1, 0 4px 14px rgba(0,0,0,0.3));
}
.x52de-game img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x52de-game .x52de-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(28,30,75,0.92), transparent);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
}
.x52de-provider-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.x52de-provider-bar span {
  color: #d7d8f7;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.85;
}
#payments { background: var(--color-bg-2); }
.x52de-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.x52de-pay-icon {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm, 8px);
  text-align: center;
  padding: 14px 8px;
}
.x52de-pay-icon img { width: 100%; height: 32px; object-fit: contain; margin-bottom: 6px; }
.x52de-pay-icon span { display: block; font-size: 0.82rem; color: #d7d8f7; }
#faq details {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md, 12px);
  padding: 16px 18px;
  margin-bottom: 14px;
}
#faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-left: 12px;
}
#faq details[open] summary::after { content: "−"; }
#faq p { margin-top: 10px; color: #d7d8f7; font-size: 0.95rem; }
.x52de-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-bg-2);
  border-top: 1px solid rgba(245,179,1,0.3);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
}
footer {
  background: #14153a;
  padding: 48px 0 24px;
  border-top: 1px solid rgba(245,179,1,0.2);
}
.x52de-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.x52de-footer-brand img { height: 36px; margin-bottom: 10px; }
.x52de-footer-brand p { color: #b3b5e0; font-size: 0.9rem; max-width: 320px; }
.x52de-footer-col h3 { font-size: 0.95rem; color: var(--color-primary); margin-bottom: 10px; }
.x52de-footer-col ul { list-style: none; }
.x52de-footer-col li { color: #b3b5e0; font-size: 0.88rem; margin-bottom: 8px; }
.x52de-footer-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.x52de-footer-pay img { height: 22px; width: auto; opacity: 0.8; }
.x52de-age-gate {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.x52de-cookie-strip {
  background: rgba(245,179,1,0.08);
  border: 1px solid rgba(245,179,1,0.25);
  border-radius: var(--r-sm, 8px);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #d7d8f7;
  margin-bottom: 16px;
}
.x52de-copyright { color: #8688b8; font-size: 0.8rem; }
@media (min-width: 768px) {
  nav.x52de-main-nav ul { display: flex; }
  .x52de-hamburger-label, .x52de-mobile-menu { display: none !important; }
  .x52de-header-cta { display: inline-flex; }
  .x52de-bonus-steps { grid-template-columns: repeat(3, 1fr); }
  .x52de-grid-games { grid-template-columns: repeat(4, 1fr); }
  .x52de-pay-grid { grid-template-columns: repeat(5, 1fr); }
  .x52de-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .x52de-sticky-cta { display: none; }
}
@media (min-width: 1200px) {
  .x52de-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.bonus-banner { width: 100% !important; height: auto !important; max-height: 60vh !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; display: block !important; }
