/* 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;
}.xc4f8-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 */
.xc4f8-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;
}.xc4f8-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); }.xc4f8-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; }
.xc4f8-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;
}
.xc4f8-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);
}
.xc4f8-faq-item>summary::-webkit-details-marker{ display: none; }
.xc4f8-faq-item>summary::after{ content: "+"; font-size: 1.3em; line-height: 1; opacity: .7; }
.xc4f8-faq-item[open]>summary::after{ content: "\2013"; }
.xc4f8-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 .xc4f8-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.xc4f8-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); }
.xc4f8-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). */
.xc4f8-games-grid,.game-grid{ display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4, 1rem); }

/* ── page-specific CSS ── */
*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,p,ul,ol,figure,blockquote,table,th,td{margin:0;padding:0}
:root{
  --navy:#0f1b3d;
  --navy-light:#182a5c;
  --gold:#ffb020;
  --gold-dark:#e0951a;
  --text:#1c2333;
  --muted:#5b6376;
  --bg:#f6f7fb;
  --card-bg:#ffffff;
  --border:#e1e4ee;
  --radius:14px;
  --maxw:1140px;
}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important;transition:none !important;scroll-behavior:auto !important}
}
body{
  font-family:"Poppins",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
#skip-to-content{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--gold);
  color:var(--navy);
  padding:10px 16px;
  z-index:1000;
  font-weight:700;
  border-radius:0 0 8px 0;
}
#skip-to-content:focus{left:0}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid var(--gold-dark);
  outline-offset:2px;
}
.xc4f8-container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
header{
  position:sticky;top:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:var(--navy);
  color:#fff;
  padding:0 20px;
  height:60px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;color:#fff;
  font-weight:700;font-size:1.05rem;
  white-space:nowrap;
}
.brand-icon{
  width:30px;height:30px;border-radius:8px;
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));
  display:flex;align-items:center;justify-content:center;
  color:var(--navy);font-weight:700;font-size:.9rem;
  flex-shrink:0;
}
nav.xc4f8-primary-nav{display:none}
nav.xc4f8-primary-nav ul{list-style:none;display:flex;gap:22px}
nav.xc4f8-primary-nav a{text-decoration:none;color:#dbe1f5;font-size:.92rem;font-weight:700}
nav.xc4f8-primary-nav a:hover{color:var(--gold)}
@media (min-width:720px){
  nav.xc4f8-primary-nav{display:block}
}
main{display:block}
.xc4f8-hero{
  background:linear-gradient(160deg,var(--navy) 0%,var(--navy-light) 100%);
  color:#fff;
  padding:48px 0 56px;
}
.xc4f8-hero h1{
  font-size:clamp(1.8rem,5vw,2.6rem);
  font-weight:700;
  margin-bottom:14px;
  max-width:20ch;
}
.xc4f8-hero p{
  max-width:62ch;
  color:#cfd6ee;
  font-size:1.02rem;
  margin-bottom:22px;
}
.jump-nav{
  display:flex;flex-wrap:wrap;gap:10px;
}
.jump-nav a{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  text-decoration:none;
  padding:8px 16px;
  border-radius:999px;
  font-size:.88rem;
  font-weight:700;
}
.jump-nav a:hover{background:var(--gold);color:var(--navy);border-color:var(--gold)}
section{padding:52px 0}
section:nth-of-type(odd){background:var(--bg)}
section:nth-of-type(even){background:var(--card-bg)}
h2{
  font-size:clamp(1.4rem,3.4vw,1.9rem);
  margin-bottom:16px;
  color:var(--navy);
}
h3{
  font-size:1.15rem;
  color:var(--navy);
  margin-bottom:8px;
}
p{margin-bottom:14px;color:var(--text)}
.xc4f8-lead{font-size:1.05rem;color:var(--muted);max-width:72ch}
.xc4f8-table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--border)}
table{
  width:100%;
  border-collapse:collapse;
  background:var(--card-bg);
  min-width:560px;
}
caption{
  text-align:left;
  font-weight:700;
  padding:14px 16px;
  color:var(--navy);
  background:var(--card-bg);
  border-bottom:1px solid var(--border);
}
thead th{
  background:var(--navy);
  color:#fff;
  text-align:left;
  padding:14px 16px;
  font-size:.9rem;
  font-weight:700;
}
tbody td{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  font-size:.94rem;
  vertical-align:top;
}
tbody tr:last-child td{border-bottom:none}
tbody tr:nth-child(even){background:#fafbfe}
.xc4f8-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}
@media (min-width:768px){
  .xc4f8-cards{grid-template-columns:1fr 1fr}
}
.xc4f8-op-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:10px;
  box-shadow:0 6px 18px rgba(15,27,61,.06);
}
.xc4f8-op-card .xc4f8-badge{
  display:inline-block;
  background:var(--gold);
  color:var(--navy);
  font-size:.75rem;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  width:fit-content;
}
.xc4f8-op-card dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:.92rem;margin:8px 0}
.xc4f8-op-card dt{font-weight:700;color:var(--muted)}
.xc4f8-op-card dd{color:var(--text)}
.xc4f8-btn{
  display:inline-block;
  text-decoration:none;
  background:var(--gold);
  color:var(--navy);
  font-weight:700;
  padding:12px 22px;
  border-radius:10px;
  text-align:center;
  font-size:.98rem;
  margin-top:8px;
  border:2px solid var(--gold);
}
.xc4f8-btn:hover{background:var(--gold-dark);border-color:var(--gold-dark)}
.xc4f8-methodology-list{list-style:none;display:grid;gap:12px;margin-top:14px}
.xc4f8-methodology-list li{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-left:4px solid var(--gold);
  border-radius:10px;
  padding:14px 16px;
  font-size:.95rem;
}
.xc4f8-faq-item{
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:12px;
  background:var(--card-bg);
  overflow:hidden;
}
.xc4f8-faq-item summary{
  cursor:pointer;
  padding:16px 18px;
  font-weight:700;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:var(--navy);
}
.xc4f8-faq-item summary::-webkit-details-marker{display:none}
.xc4f8-faq-item summary::after{
  content:"+";
  font-size:1.3rem;
  color:var(--gold-dark);
  flex-shrink:0;
}
.xc4f8-faq-item[open] summary::after{content:"–"}
.xc4f8-faq-item p{
  padding:0 18px 16px;
  color:var(--muted);
}
.xc4f8-rg-note{
  background:#fff4e0;
  border:1px solid #f3d59a;
  border-radius:10px;
  padding:14px 18px;
  font-size:.9rem;
  color:#6b4d10;
  margin-top:18px;
}
footer{
  background:var(--navy);
  color:#cfd6ee;
  padding:44px 0 26px;
  font-size:.9rem;
}
.xc4f8-footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  margin-bottom:28px;
}
@media (min-width:768px){
  .xc4f8-footer-grid{grid-template-columns:1.3fr 1fr 1fr}
}
.xc4f8-footer-brand h2{color:#fff;font-size:1.2rem;margin-bottom:8px}
.xc4f8-footer-brand p{color:#aab3d1;font-size:.88rem}
footer h3{color:#fff;font-size:1rem;margin-bottom:12px}
footer ul{list-style:none;display:grid;gap:8px}
footer li{color:#aab3d1}
.xc4f8-payment-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.xc4f8-payment-chip{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.2);
  color:#dbe1f5;
  padding:6px 12px;
  border-radius:8px;
  font-size:.8rem;
}
.xc4f8-age-line{
  border-top:1px solid rgba(255,255,255,.15);
  padding-top:18px;
  margin-top:18px;
  font-size:.85rem;
  color:#aab3d1;
}
.xc4f8-copyright{margin-top:10px;font-size:.82rem;color:#8b94b8}
#hero, section#hero, .xc4f8-hero, .hero-section, [id*="hero"] { background-image: linear-gradient(180deg, rgba(10,12,24,.20) 0%, rgba(10,12,24,.45) 55%, rgba(10,12,24,.72) 100%), url('../images/hero.jpg') !important; background-size: cover !important; background-position: center center !important; background-repeat: no-repeat !important; }
#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; }
