/* 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;
}.x389f-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 */
.x389f-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;
}.x389f-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); }.x389f-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; }
.x389f-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;
}
.x389f-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);
}
.x389f-faq-item>summary::-webkit-details-marker{ display: none; }
.x389f-faq-item>summary::after{ content: "+"; font-size: 1.3em; line-height: 1; opacity: .7; }
.x389f-faq-item[open]>summary::after{ content: "\2013"; }
.x389f-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 .x389f-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.x389f-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); }
.x389f-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). */
.x389f-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; }
:root {
  --bg: #0f1a2b;
  --bg-alt: #16233a;
  --card: #1b2a44;
  --text: #eef2fb;
  --text-muted: #a9b6cd;
  --accent: #ffb238;
  --accent-2: #3fd0c9;
  --border: #2b3c5c;
  --radius: 12px;
  --maxw: 1180px;
  --font: 'Poppins', system-ui, sans-serif;
}
html, body { margin: 0; padding: 0; }
body, h1, h2, h3, p, ul, ol, figure, blockquote, table, th, td { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
#skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #17233a;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
#skip-to-content:focus {
  left: 0;
}
.x389f-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;
  height: 60px;
  padding: 0 20px;
  background: rgba(15, 26, 43, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.x389f-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}
.x389f-brand-icon {
  font-size: 1.3rem;
  line-height: 1;
}
nav.x389f-primary-nav {
  display: none;
}
nav.x389f-primary-nav ul {
  display: flex;
  gap: 22px;
}
nav.x389f-primary-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.x389f-primary-nav a:hover, nav.x389f-primary-nav a:focus-visible {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}
@media (min-width: 720px) {
  nav.x389f-primary-nav { display: block; }
}
main { display: block; }
.x389f-hero {
  padding: 44px 0 36px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  max-width: 20ch;
}
.x389f-hero-sub {
  margin-top: 14px;
  color: var(--text-muted);
  max-width: 68ch;
  font-size: 1.02rem;
}
.hero-jump {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.jump-link {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--card);
}
.jump-link:hover, .jump-link:focus-visible {
  border-color: var(--accent-2);
  color: var(--accent-2);
}
section { padding: 48px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.x389f-section-intro p, .x389f-methodology p {
  color: var(--text-muted);
  max-width: 74ch;
  margin-bottom: 14px;
}
.x389f-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--card);
}
caption {
  text-align: left;
  padding: 14px 18px 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  caption-side: top;
}
thead th {
  background: var(--bg-alt);
  color: var(--accent);
  text-align: left;
  padding: 14px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
.x389f-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 768px) {
  .x389f-cards-grid { grid-template-columns: 1fr 1fr; }
}
.x389f-op-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.x389f-op-card .x389f-op-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.x389f-op-fact {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.x389f-op-fact strong {
  color: var(--text);
  font-weight: 700;
}
.x389f-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #17233a;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}
.x389f-btn:hover, .x389f-btn:focus-visible {
  background: var(--accent-2);
  color: #0f1a2b;
}
main .x389f-btn {
  width: auto;
}
@media (max-width: 480px) {
  main .x389f-cta-block .x389f-btn {
    width: 100%;
  }
}
.x389f-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
}
.x389f-faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.x389f-faq-item summary::-webkit-details-marker { display: none; }
.x389f-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}
.x389f-faq-item[open] summary::after { content: "−"; }
.x389f-faq-item .x389f-faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.x389f-rg-note {
  margin-top: 8px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer {
  background: var(--bg-alt);
  padding: 44px 0 30px;
  border-top: 1px solid var(--border);
}
.x389f-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .x389f-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.x389f-footer-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}
.x389f-footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 40ch;
}
.x389f-footer-col h3 {
  font-size: 0.98rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.x389f-footer-col ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.x389f-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.x389f-payment-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.x389f-footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.x389f-age-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
#hero, section#hero, .x389f-hero, .x389f-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, .x389f-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.x389f-hero-image, img.x389f-bonus-banner { width: 100% !important; height: auto !important; max-height: 60vh !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; display: block !important; }
