/* ============================================================
   SiteButcher v2.4 — generated stylesheet (block system)
   Style preset: Deep Ocean
   Brand: 888 Casino
   ============================================================ */


/* === _base/styles/_variables.css.j2 === */

/* ============================================================
   CSS variables — generated from palette + style preset
   ============================================================ */
:root {
  /* Colors from palette */
  --primary:       #2dd4ff;
  --accent:        #ff7a9c;
  --bg:            #04081a;
  --bg-elev:       #101426;
  --text:          #f4f1e8;
  --text-muted:    #8aa3b8;
  --border:        #3e4952;
  --primary-rgb:   45, 212, 255;
  --accent-rgb:    255, 122, 156;
  --bg-rgb:        4, 8, 26;

  /* Typography */
  --font-heading:  'DM Serif Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.25);
  --shadow-lg:   0 24px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 32px rgba(var(--accent-rgb), 0.35);

  /* Transitions */
  --tr-fast:  0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-base:  0.3s  cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow:  0.6s  cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-8:  3rem;
  --sp-10: 4rem;
  --sp-12: 6rem;

  /* Section vertical rhythm — legacy used 60-120px; clamped 48-80px gives 96-160px gaps */
  --section-pad-y: clamp(3rem, 7vw, 5rem);
}

/* === _base/styles/_reset.css.j2 === */

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video, picture { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
input, select, textarea { font: inherit; color: inherit; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  font-family: var(--font-body);
  /* Subtle dotted-grid texture overlay — adds tactile depth so bg isn't dead-flat.
     Two layers: small dots at 28px grid + var(--bg) base. Opacity 0.025 = nearly invisible
     but materially changes how "dead" the bg reads. */
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.022) 1px, transparent 1.2px) 0 0 / 28px 28px,
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: var(--text);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* RTL refinements */
[dir="rtl"] {
  letter-spacing: 0;
}

/* === _base/styles/_typography.css.j2 === */

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  letter-spacing: -0.01em;
  /* Universal safety: heading content can include monospace fonts
     (matrix_terminal, vhs_distorted), long unbreakable tokens
     (initialize_888.exe, > sudo grant_vip), or compound words that
     exceed container width. Force them to wrap rather than overflow. */
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 100%;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }

p, li {
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1em;
}
p:last-child, li:last-child { margin-bottom: 0; }

strong, b {
  color: var(--text);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(var(--primary-rgb), 0.5);
}
em, i { font-style: italic; }

small { font-size: 0.85em; color: var(--text-muted); }

a {
  color: var(--primary);
  transition: color var(--tr-fast);
}
a:hover { color: var(--text); }

/* Inline prose lists */
.prose ul, .prose ol {
  margin: 0 0 1em;
  padding-inline-start: 1.5em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul li, .prose ol li { display: list-item; }
.prose blockquote {
  margin: 1em 0;
  padding-inline-start: 1.5em;
  border-inline-start: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-muted);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.prose code {
  background: var(--bg-elev);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9em;
}

/* ============================================================
   DESIGN DNA — applies universally to all 30+ styles via vars
   ============================================================ */

/* Section title eyebrow: gradient bar (60×4px) above every H2.
   This is the small "—" line that makes every section feel intentional. */
.section-title,
.fcta-headline {
  position: relative;
  text-align: center;
}
.section-title::before,
.fcta-headline::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto var(--sp-4);
  border-radius: 2px;
}

/* Left-aligned heading variants (text_image, hero, faq) — bar left-aligned */
.ti-heading,
.fcta-headline,
.hero-headline {
  position: relative;
}
.ti-heading::before,
.hero-headline::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: var(--sp-4);
  border-radius: 2px;
}
[dir="rtl"] .ti-heading::before,
[dir="rtl"] .hero-headline::before {
  margin-inline: 0 auto 0 0; /* keep on the right */
}

/* Hero headline — gradient text + colored drop-shadow glow.
   Only applies on hero_split where bg is solid (works visually).
   On hero_fullbleed text sits on image — text-shadow is used instead. */
.block-hero_split .hero-headline {
  background: linear-gradient(135deg, var(--text) 35%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(var(--primary-rgb), 0.35));
  /* The ::before bar still uses solid color because pseudo-elements don't
     inherit background-clip:text. It stays visible. */
}

/* Bigger, more cinematic h1 + h2 — premium feel */
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem,  4.5vw, 3.2rem); letter-spacing: -0.015em; }

/* === _base/styles/_container.css.j2 === */

/* ============================================================
   Container + responsive helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container-sm { max-width: 720px; }
.container-md { max-width: 960px; }
.container-lg { max-width: 1440px; }

/* Block wrapper — every block uses this for consistent vertical rhythm */
.block-section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.block-section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.block-section--loose { padding-block: clamp(4rem, 10vw, 8rem); }

/* ============================================================
   SECTION RHYTHM — alternating backgrounds + top accent
   Goal: every section visually distinct, not just every other one.
   ============================================================ */

/* Even sections — subtle tinted lift (more visible than before) */
.block-section:nth-of-type(even) {
  background:
    linear-gradient(180deg,
      rgba(var(--primary-rgb), 0.04) 0%,
      rgba(var(--primary-rgb), 0.10) 50%,
      rgba(var(--primary-rgb), 0.04) 100%
    );
}

/* Odd sections — subtle accent-tinted lift (different from even, slightly less bright) */
.block-section:nth-of-type(odd):not(:first-of-type) {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(var(--accent-rgb), 0.04) 50%,
      transparent 100%
    );
}

/* Section dividers — gradient line between adjacent sections */
.block-section + .block-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 36vw, 420px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(var(--accent-rgb), 0.30) 30%,
    rgba(var(--primary-rgb), 0.50) 50%,
    rgba(var(--accent-rgb), 0.30) 70%,
    transparent
  );
  pointer-events: none;
  opacity: 0.85;
}

/* ============================================================
   POST-HERO TIGHTENING — avoid "dead zone" between hero fade-out
   and the first content section. Hero already fades into var(--bg),
   so the section right after it doesn't need full --section-pad-y top.
   ============================================================ */
.block-hero_fullbleed + .block-section,
.block-hero_split + .block-section,
.block-hero_minimal + .block-section {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* final_cta typically has heavy bottom padding; footer follows.
   Trim final_cta bottom padding so footer hugs it close. */
.block-final_cta {
  padding-bottom: clamp(2.5rem, 6vw, 4rem) !important;
}
.block-final_cta + .block-footer {
  margin-top: 0 !important;
}

/* Section heading helper — used by most blocks */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-3);
  font-weight: 600;
}

.section-title {
  text-align: center;
  margin-bottom: var(--sp-3);
}
.section-intro {
  max-width: 720px;
  margin: 0 auto var(--sp-8);
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Responsive helpers */
.hide-mobile { display: initial; }
.hide-desktop { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .hide-desktop { display: initial; }
}

/* === _base/styles/_structural.css.j2 === */

/* ============================================================
   Structural rules that apply to blocks by their SEMANTIC role,
   not by a specific block-id class — so new block variants pick
   them up automatically without per-variant CSS.
   ============================================================ */

/* Sticky footer: make .site-main a full-height column so a short page
   (e.g. a legal/about sub-page with little content) still pushes its footer
   to the bottom of the viewport instead of leaving a gap below it. On long
   pages this is a no-op (content already exceeds the viewport). */
.site-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main > footer,
.site-main > footer[class*="block-footer"] {
  margin-top: auto;
}

/* T21.4: every header block uses the <header> tag. Make ALL of them sticky to
   the top on scroll (the original header_classic behavior), so any NEW header
   variant added in the future is sticky automatically — no per-variant CSS
   needed. A solid dark backing keeps content from showing through while pinned.
   Individual header variants may still override background/blur as needed. */
.site-main > header,
.site-main header.block-header,
.site-main header[class*="block-header"] {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* === _base/styles/_cta.css.j2 === */

/* ============================================================
   CTA buttons — shared across all blocks
   Legacy design DNA: triple-layered shadow + inset highlight + colored glow
   ============================================================ */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.85));
  color: var(--bg);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: transform var(--tr-fast), box-shadow var(--tr-base);
  /* THREE shadows layered: depth + glass-highlight + colored halo */
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 32px rgba(var(--primary-rgb), 0.40);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 0 56px rgba(var(--primary-rgb), 0.65);
  color: var(--bg);
}

.cta:active {
  transform: translateY(0);
}

/* Size variants */
.cta-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.cta-md {
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
}

.cta-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.cta-xl {
  padding: 1.3rem 3rem;
  font-size: 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
}

/* Color variants */
.cta-primary {
  background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.85));
}

/* Accent variant — for secondary heroes or feature CTAs */
.cta-accent {
  background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.85));
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 32px rgba(var(--accent-rgb), 0.40);
}
.cta-accent:hover {
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 0 56px rgba(var(--accent-rgb), 0.65);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: none;
}
.cta-secondary:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cta-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  padding-inline: 0;
}
.cta-ghost:hover {
  color: var(--text);
  transform: none;
  box-shadow: none;
}

/* Arrow icon */
.cta-arrow {
  display: inline-block;
  transition: transform var(--tr-fast);
  font-size: 1.1em;
}
.cta:hover .cta-arrow {
  transform: translateX(4px);
}
[dir="rtl"] .cta:hover .cta-arrow {
  transform: translateX(-4px);
}

/* === blocks/_decor_bg.css.j2 === */

/* ============================================================
   T21.5 — Decorative background (global layer, variant б)
   The decor sits BEHIND all content (fixed, full-viewport, low z-index).
   Content sections get a semi-opaque --bg backing so text stays readable
   over the decor. Animation runs only in the upper "hero zone"; behind the
   long-form content the decor is dimmed and static for legibility.
   Honors prefers-reduced-motion (auto-static).
   ============================================================ */

/* The fixed background layer (sits below content, above the body base). */
/* The fixed background layer (sits below content, above the body base).
   width:100vw + centering ensures it spans the full viewport even though
   body has overflow-x:hidden (which otherwise clips the right edge). */
.decor-bg {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.decor-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--decor-opacity, 0.42);   /* dimmed a touch for text legibility */
}
/* Readability: give text that sits directly over the decor a subtle shadow so
   it stays crisp without putting an opaque veil behind each block (which would
   create the unwanted "carded" look). Only affects text in transparent blocks;
   blocks with their own bg are unaffected visually. */
.site-main { text-shadow: 0 1px 3px rgba(var(--bg-rgb), 0.55); }
.site-main .block-hero_fullbleed,
.site-main [class*="block-"] :where(h1,h2,h3) { text-shadow: 0 2px 6px rgba(var(--bg-rgb), 0.6); }
.decor-init {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 50px; font-weight: 700;
  fill: rgba(var(--primary-rgb), 0.55);
}
.decor-init--mono { font-family: var(--font-mono, monospace); font-size: 46px; }
.decor-init--sm { font-size: 28px; fill: rgba(var(--primary-rgb), 0.4); }

/* T21.5 — decor is a layer BELOW the content. Blocks sit on top and cover it
   with their OWN existing backgrounds (faq/feature/stats have var(--bg-elev);
   hero_fullbleed has its image+overlay). Blocks with NO background (a hero with
   no image, empty halves) are transparent, so the decor shows through there —
   exactly where the "hole" would otherwise be. We do NOT force any per-section
   veils; each block decides via its native background. */
.site-main { position: relative; z-index: 1; }

/* The body keeps its native dotted-grid background. The fixed .decor-bg is a
   child of body painted ABOVE that base but BELOW .site-main content, so the
   decor shows through any block that has no opaque background of its own. */
.decor-bg { background: transparent; }

/* ---------------- Animations (live only) ----------------
   By default .is-static => no animation. .is-live => animate, but
   prefers-reduced-motion still forces static. */
@media (prefers-reduced-motion: no-preference) {
  .decor-bg.is-live .d-spin     { animation: decor-spin 60s linear infinite; }
  .decor-bg.is-live .d-spinslow { animation: decor-spin 120s linear infinite; }
  .decor-bg.is-live .d-breathe  { animation: decor-breathe 8s ease-in-out infinite; }
  .decor-bg.is-live .d-drift    { animation: decor-drift 7s ease-in-out infinite; }
  .decor-bg.is-live .d-drift2   { animation: decor-drift2 8s ease-in-out infinite; }
  .decor-bg.is-live .d-twinkle  { animation: decor-twinkle 4s ease-in-out infinite; }
  .decor-bg.is-live .d-wave1    { animation: decor-wave 9s ease-in-out infinite; }
  .decor-bg.is-live .d-wave2    { animation: decor-wave 11s ease-in-out infinite reverse; }
  .decor-bg.is-live .d-hzline   { animation: decor-travel 4s linear infinite; }
  .decor-bg.is-live .d-hexcell  { animation: decor-hexglow 4s ease-in-out infinite; }
  .decor-bg.is-live .d-trace    { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: decor-draw 5s ease-in-out infinite; }
  .decor-bg.is-live .d-node     { opacity: 0; animation: decor-nodeon 5s ease-in-out infinite; }
  /* dice: 6 stages over an 18s loop */
  .decor-bg.is-live .d-stage { opacity: 0; }
  .decor-bg.is-live .d-dtrail { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .decor-bg.is-live .d-dp { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .decor-bg.is-live .d-st1 { animation: decor-dstage1 18s linear infinite; }
  .decor-bg.is-live .d-st2 { animation: decor-dstage2 18s linear infinite; }
  .decor-bg.is-live .d-st3 { animation: decor-dstage3 18s linear infinite; }
  .decor-bg.is-live .d-st4 { animation: decor-dstage4 18s linear infinite; }
  .decor-bg.is-live .d-st5 { animation: decor-dstage5 18s linear infinite; }
  .decor-bg.is-live .d-st6 { animation: decor-dstage6 18s linear infinite; }
  .decor-bg.is-live .d-st1 .d-dtrail, .decor-bg.is-live .d-st1 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 0s; }
  .decor-bg.is-live .d-st2 .d-dtrail, .decor-bg.is-live .d-st2 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 3s; }
  .decor-bg.is-live .d-st3 .d-dtrail, .decor-bg.is-live .d-st3 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 6s; }
  .decor-bg.is-live .d-st4 .d-dtrail, .decor-bg.is-live .d-st4 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 9s; }
  .decor-bg.is-live .d-st5 .d-dtrail, .decor-bg.is-live .d-st5 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 12s; }
  .decor-bg.is-live .d-st6 .d-dtrail, .decor-bg.is-live .d-st6 .d-dp { animation: decor-dtrail 18s linear infinite, decor-dpip 18s linear infinite; animation-delay: 15s; }
}

@keyframes decor-spin { to { transform: rotate(360deg); } }
@keyframes decor-breathe { 0%,100% { opacity:.7; transform:scale(1);} 50% { opacity:1; transform:scale(1.02);} }
@keyframes decor-drift { 0%,100% { transform:translateY(0);} 50% { transform:translateY(-14px);} }
@keyframes decor-drift2 { 0%,100% { transform:translateY(0);} 50% { transform:translateY(12px);} }
@keyframes decor-twinkle { 0%,100% { opacity:.7;} 50% { opacity:1;} }
@keyframes decor-wave { 0%,100% { transform:translateX(0);} 50% { transform:translateX(-18px);} }
@keyframes decor-travel { 0% { transform:translateY(182px); opacity:0;} 10% { opacity:.6;} 100% { transform:translateY(440px); opacity:.15;} }
@keyframes decor-hexglow { 0%,100% { fill:rgba(var(--primary-rgb),0);} 50% { fill:rgba(var(--primary-rgb),0.12);} }
@keyframes decor-draw { 0% { stroke-dashoffset:var(--len);} 45%,65% { stroke-dashoffset:0;} 100% { stroke-dashoffset:var(--len);} }
@keyframes decor-nodeon { 0%,35% { opacity:0;} 50%,80% { opacity:1;} 100% { opacity:0;} }
@keyframes decor-dtrail { 0% { stroke-dashoffset:var(--len); opacity:.85;} 3% { opacity:.85;} 7% { stroke-dashoffset:0; opacity:.85;} 11% { opacity:0;} 100% { opacity:0;} }
@keyframes decor-dpip { 0% { opacity:0; transform:scale(0.3);} 7% { opacity:0; transform:scale(0.3);} 11% { opacity:1; transform:scale(1);} 100% { opacity:1;} }
/* dice stage visibility windows (6 stages over 18s = 16.66% each) */
@keyframes decor-dstage1 { 0%{opacity:0} 0.5%{opacity:1} 14.6%{opacity:1} 16.6%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage2 { 0%,16.6%{opacity:0} 17.1%{opacity:1} 31.3%{opacity:1} 33.3%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage3 { 0%,33.3%{opacity:0} 33.8%{opacity:1} 47.9%{opacity:1} 50%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage4 { 0%,50%{opacity:0} 50.5%{opacity:1} 64.6%{opacity:1} 66.6%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage5 { 0%,66.6%{opacity:0} 67.1%{opacity:1} 81.3%{opacity:1} 83.3%{opacity:0} 100%{opacity:0} }
@keyframes decor-dstage6 { 0%,83.3%{opacity:0} 83.8%{opacity:1} 97.9%{opacity:1} 100%{opacity:0} }

/* Static fallback: show dice face 3 so the die never looks empty */
.decor-bg.is-static .d-st3, .decor-bg.is-static .d-st3 .d-dp { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .decor-bg .d-st3, .decor-bg .d-st3 .d-dp { opacity: 1; }
}

@media (max-width: 700px) {
  /* on small screens dim further & disable heavy animation for perf */
  .decor-bg svg { opacity: 0.4; }
}

/* === blocks/_text_veil.css.j2 === */

/* ============================================================
   T21.6 — Text veil: readable backing under text on the 4
   background-less blocks (text_centered, text_image_left/right,
   quote_callout) when decor would otherwise bleed through.
   Activated ONLY when body[data-text-veil="1"] (smart default by decor
   composition, user-overridable). Look varies by data-style-category.
   Applied to the TEXT part only — images/decor around stay visible, so the
   page is NOT "carded", only the text gets a calm surface.
   ============================================================ */

/* Base veil (default look) — applied to the text containers of the 4 blocks. */
body[data-text-veil="1"] .block-text_centered .tc-content,
body[data-text-veil="1"] .block-quote_callout .quote-card,
body[data-text-veil="1"] .block-text_image_left .ti-text,
body[data-text-veil="1"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.86);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  padding: clamp(24px, 4vw, 40px);
}
/* text_centered: keep the veil hugging the content, not the full 960px column */
body[data-text-veil="1"] .block-text_centered .tc-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* text_image: don't over-pad the text column; keep it tidy next to the image */
body[data-text-veil="1"] .block-text_image_left .ti-text,
body[data-text-veil="1"] .block-text_image_right .ti-text {
  padding: clamp(20px, 3vw, 32px);
}

/* ---- Per-category theming ---- */

/* luxury: near-square corners, thin gold rule, restrained shadow */
body[data-text-veil="1"][data-style-category="luxury"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="luxury"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="luxury"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="luxury"] .block-text_image_right .ti-text {
  background: linear-gradient(160deg, rgba(var(--bg-rgb), 0.92), rgba(var(--bg-rgb), 0.82));
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* neon / cyber: rounder, glowing border */
body[data-text-veil="1"][data-style-category="neon"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="neon"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="neon"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="neon"] .block-text_image_right .ti-text,
body[data-text-veil="1"][data-style-category="cyber"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="cyber"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="cyber"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="cyber"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.86);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.15);
}

/* cultural / dramatic: medium radius, soft accent border */
body[data-text-veil="1"][data-style-category="cultural"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="cultural"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="cultural"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="cultural"] .block-text_image_right .ti-text,
body[data-text-veil="1"][data-style-category="dramatic"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="dramatic"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="dramatic"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="dramatic"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.88);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* minimalist: flat, almost no border, no shadow */
body[data-text-veil="1"][data-style-category="minimalist"] .block-text_centered .tc-content,
body[data-text-veil="1"][data-style-category="minimalist"] .block-quote_callout .quote-card,
body[data-text-veil="1"][data-style-category="minimalist"] .block-text_image_left .ti-text,
body[data-text-veil="1"][data-style-category="minimalist"] .block-text_image_right .ti-text {
  background: rgba(var(--bg-rgb), 0.9);
  border: none;
  border-radius: 6px;
  box-shadow: none;
}

/* retro / surreal / experimental: keep the default look (already defined). */

/* === block: header_split_nav === */

/* Block: header_split_nav — nav on both sides of centered logo */
.block-header-split {
  background: linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.62) 100%);
  backdrop-filter: blur(8px);
  padding-block: var(--sp-3);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}
.block-header-split .hsplit-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-3);
}
.block-header-split .hsplit-nav {
  display: inline-flex; align-items: center; gap: var(--sp-4);
}
.block-header-split .hsplit-nav-left { justify-content: flex-end; }
.block-header-split .hsplit-nav-right { justify-content: flex-start; }
.block-header-split .hsplit-link {
  font-size: 0.88rem; color: var(--text-muted);
  text-decoration: none; transition: color var(--tr-fast);
  white-space: nowrap;
}
.block-header-split .hsplit-link:hover { color: var(--primary); }
.block-header-split .hsplit-brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  text-decoration: none; color: var(--text); justify-self: center;
}
.block-header-split .hsplit-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg); border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.2);
}
.block-header-split .hsplit-logo-img {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  object-fit: cover; box-shadow: var(--shadow-sm);
}
.block-header-split .hsplit-name {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  color: var(--text);
}
.block-header-split .hsplit-actions {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-inline-start: var(--sp-3);
}
@media (max-width: 820px) {
  .block-header-split .hsplit-row { grid-template-columns: auto 1fr; }
  .block-header-split .hsplit-nav-left { display: none; }
  .block-header-split .hsplit-brand { grid-column: 1; justify-self: start; }
  .block-header-split .hsplit-nav-right { grid-column: 2; justify-content: flex-end; flex-wrap: wrap; }
}

/* T21.1: language dropdown (3+ languages) — shared across header variants */
.lang-dd { position: relative; display: inline-block; }
.lang-dd > .lang-dd-toggle {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 0.82rem; color: var(--text-muted);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.04);
  transition: color var(--tr-fast), border-color var(--tr-fast);
  user-select: none;
}
.lang-dd > .lang-dd-toggle::-webkit-details-marker { display: none; }
.lang-dd > .lang-dd-toggle:hover { color: var(--primary); border-color: rgba(var(--accent-rgb), 0.35); }
.lang-dd .lang-dd-globe { font-size: 0.9rem; line-height: 1; }
.lang-dd .lang-dd-current { font-weight: 600; letter-spacing: 0.04em; }
.lang-dd .lang-dd-caret { font-size: 0.6rem; opacity: 0.7; transition: transform var(--tr-fast); }
.lang-dd[open] .lang-dd-caret { transform: rotate(180deg); }
.lang-dd .lang-dd-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
  min-width: 160px; z-index: 50;
  display: flex; flex-direction: column;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md, 0 8px 28px rgba(0,0,0,0.35));
}
.lang-dd .lang-dd-item {
  display: block; padding: 7px 10px;
  font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.lang-dd .lang-dd-item:hover { background: rgba(var(--accent-rgb), 0.08); color: var(--primary); }
.lang-dd .lang-dd-item.is-current { color: var(--primary); font-weight: 600; }

/* === block: hero_fullbleed === */

/* Block: hero_fullbleed */
.block-hero_fullbleed {
  position: relative;
  min-height: clamp(620px, 86vh, 820px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.block-hero_fullbleed .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* PRIMARY layer: strong dark fade — dominates regardless of palette.
       Stronger at top (was 0.30) to ensure hero image is always readable
       and palette halos can't create a "wash" of a saturated primary color. */
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.65) 55%,
      var(--bg) 100%
    ),
    /* Subtle accent halo — reduced from 0.25 → 0.10 to prevent wash on
       high-saturation accents (e.g. vhs_distorted cyan, asian_neon hot pink). */
    radial-gradient(ellipse at top left,
      rgba(var(--accent-rgb), 0.10) 0%,
      transparent 55%
    ),
    /* Subtle primary halo — reduced from 0.20 → 0.08. With high-saturation
       primaries (e.g. vhs red #ff2d55), even modest opacity creates wash. */
    radial-gradient(ellipse 70% 50% at bottom right,
      rgba(var(--primary-rgb), 0.08) 0%,
      transparent 60%
    );
  z-index: 1;
}

.block-hero_fullbleed .hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-block: var(--sp-12);
  /* Defensive: ensure long monospace headlines (e.g. matrix_terminal style
     with `> initialize_888.exe — best mobile casino for UAE`) never overflow
     the content column. Without this, JetBrains Mono at 4.2rem can stretch
     past the right edge into the next column area. */
  min-width: 0;
}

.block-hero_fullbleed .hero-headline {
  /* Tightened upper bound from 4.2rem → 3.4rem. Long monospace headlines
     break out of any reasonable max-width at 4.2rem. 3.4rem still feels
     cinematic but stays inside the 760px column. */
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  /* CRITICAL: force long words / monospace strings to wrap. Without this,
     "initialize_888.exe" stays as one unbreakable token and overflows. */
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.block-hero_fullbleed .hero-subhead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-bottom: var(--sp-5);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.block-hero_fullbleed .hero-body {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: var(--sp-6);
  max-width: 600px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.block-hero_fullbleed .hero-body p {
  color: rgba(255, 255, 255, 0.92);
}

.block-hero_fullbleed .hero-cta {
  margin-top: var(--sp-3);
}

/* NOTE: There used to be a `[dir="rtl"] .hero-overlay` rule here that applied
   the old pink-wash overlay (0.85 primary). It was a leftover from before
   hotfix5 and was the cause of the AR red wash. Removed — the LTR overlay
   above works equally well for RTL because `at top left` is symmetric enough
   visually, and we don't need to mirror corner halos for the hero. */

@media (max-width: 768px) {
  .block-hero_fullbleed { min-height: 480px; }
  .block-hero_fullbleed .hero-content { padding-block: var(--sp-10); }
}

/* === block: games_carousel === */

/* Block: games_carousel */
.block-games_carousel .games-banner {
  position: relative;
  margin-bottom: var(--sp-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 360px;
}

.block-games_carousel .games-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

.block-games_carousel .games-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--primary-rgb), 0.5) 100%);
  pointer-events: none;
}

.block-games_carousel .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.block-games_carousel .game-card {
  position: relative;
  padding: var(--sp-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--tr-base), border-color var(--tr-base), box-shadow var(--tr-base);
  overflow: hidden;
}

.block-games_carousel .game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 32px rgba(var(--accent-rgb), 0.18);
}

.block-games_carousel .game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--tr-base);
}

.block-games_carousel .game-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.block-games_carousel .game-card:hover::before { opacity: 1; }

.block-games_carousel .game-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  border-radius: 12px;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.block-games_carousel .game-name {
  font-size: 1.1rem;
  margin: 0 0 var(--sp-2);
  color: var(--text);
  position: relative;
  z-index: 1;
}

.block-games_carousel .game-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

.block-games_carousel .games-cta-row {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-3);
}

/* === block: text_image_right === */

/* Block: text_image_right */
.block-text_image_right .ti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
/* No image → text spans full width, no empty half. */
.block-text_image_right:not([data-has-media]) .ti-grid {
  grid-template-columns: 1fr;
}

.block-text_image_right .ti-text {
  order: 1;
}

.block-text_image_right .ti-image {
  order: 2;
}

[dir="rtl"] .block-text_image_right .ti-text { order: 2; }
[dir="rtl"] .block-text_image_right .ti-image { order: 1; }

.block-text_image_right .ti-heading {
  margin-bottom: var(--sp-4);
}

.block-text_image_right .ti-body {
  color: var(--text);
  margin-bottom: var(--sp-5);
}
.block-text_image_right .ti-body p {
  margin-bottom: 1em;
}

.block-text_image_right .ti-cta {
  margin-top: var(--sp-3);
}

.block-text_image_right .ti-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 880px) {
  .block-text_image_right .ti-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .block-text_image_right .ti-image { order: 1; }
  .block-text_image_right .ti-text { order: 2; }
  [dir="rtl"] .block-text_image_right .ti-image { order: 1; }
  [dir="rtl"] .block-text_image_right .ti-text { order: 2; }
}

/* === block: testimonials_row === */

/* Block: testimonials_row */
.block-testimonials_row .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.block-testimonials_row .testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background:
    linear-gradient(160deg,
      rgba(var(--accent-rgb), 0.03) 0%,
      transparent 100%
    ),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--tr-base), border-color var(--tr-base), box-shadow var(--tr-base);
  position: relative;
  overflow: hidden;
}

/* Decorative quote mark in upper-right corner */
.block-testimonials_row .testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  inset-inline-end: 18px;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.18);
  pointer-events: none;
  font-weight: 700;
}

.block-testimonials_row .testimonial-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 32px rgba(var(--accent-rgb), 0.15);
}

.block-testimonials_row .testimonial-rating {
  display: flex;
  gap: 2px;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.block-testimonials_row .star {
  display: inline-block;
}
.block-testimonials_row .star--empty {
  opacity: 0.25;
}

.block-testimonials_row .testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  font-style: italic;
  flex: 1;
  font-family: var(--font-heading);
  letter-spacing: -0.005em;
}

.block-testimonials_row .testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.block-testimonials_row .testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 0 2px rgba(var(--accent-rgb), 0.12),
    0 0 16px rgba(var(--accent-rgb), 0.25);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.block-testimonials_row .testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.block-testimonials_row .testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.block-testimonials_row .testimonial-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === block: feature_list === */

/* Block: feature_list */
.block-feature_list .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.block-feature_list .feature-card {
  padding: var(--sp-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
}

.block-feature_list .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr-base);
}

.block-feature_list .feature-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.block-feature_list .feature-card:hover::before {
  transform: scaleX(1);
}

.block-feature_list .feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  padding: var(--sp-2);
}
.block-feature_list .feature-icon svg {
  width: 100%;
  height: 100%;
}

.block-feature_list .feature-title {
  font-size: 1.15rem;
  margin-bottom: var(--sp-3);
  color: var(--text);
}

.block-feature_list .feature-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* === block: bonus_grid === */

/* Block: bonus_grid */
.block-bonus_grid .bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.block-bonus_grid .bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: linear-gradient(160deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--tr-base);
  overflow: hidden;
}

.block-bonus_grid .bonus-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  opacity: 0;
  transition: opacity var(--tr-base);
  z-index: -1;
  border-radius: var(--radius-lg);
}

.block-bonus_grid .bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.block-bonus_grid .bonus-tag {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--primary);
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

[dir="rtl"] .block-bonus_grid .bonus-tag {
  right: auto;
  left: var(--sp-4);
}

.block-bonus_grid .bonus-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.block-bonus_grid .bonus-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.block-bonus_grid .bonus-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 var(--sp-3);
  flex: 1;
}

.block-bonus_grid .bonus-cta {
  align-self: flex-start;
}

/* First bonus card — subtle accent emphasis to draw the eye */
.block-bonus_grid .bonus-card:first-child {
  background:
    linear-gradient(160deg,
      rgba(var(--accent-rgb), 0.08) 0%,
      rgba(var(--accent-rgb), 0.02) 60%,
      var(--bg) 100%
    );
  border-color: rgba(var(--accent-rgb), 0.30);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 24px rgba(var(--accent-rgb), 0.10);
}
.block-bonus_grid .bonus-card:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent),
    var(--primary),
    var(--accent),
    transparent
  );
}

/* === block: text_centered === */

/* Block: text_centered */
.block-text_centered .tc-content {
  text-align: center;
}

.block-text_centered .tc-heading {
  margin-bottom: var(--sp-5);
}

.block-text_centered .tc-body {
  text-align: start;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.block-text_centered .tc-body p {
  margin-bottom: 1.2em;
}
.block-text_centered .tc-body p:last-child { margin-bottom: 0; }

/* === block: faq_accordion === */

/* Block: faq_accordion */
.block-faq_accordion .faq-heading {
  margin-bottom: var(--sp-8);
}

.block-faq_accordion .faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.block-faq_accordion .faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.block-faq_accordion .faq-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}
.block-faq_accordion .faq-item[open] {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: var(--shadow-sm);
}

.block-faq_accordion .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: color var(--tr-fast);
}
.block-faq_accordion .faq-question::-webkit-details-marker { display: none; }
.block-faq_accordion .faq-question:hover { color: var(--primary); }

.block-faq_accordion .faq-q-text { flex: 1; }

.block-faq_accordion .faq-q-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--tr-base), background var(--tr-base);
  flex-shrink: 0;
  line-height: 1;
}

.block-faq_accordion .faq-item[open] .faq-q-icon {
  transform: rotate(45deg);
  background: rgba(var(--accent-rgb), 0.1);
}

.block-faq_accordion .faq-answer {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.block-faq_accordion .faq-answer p { margin: 0 0 0.8em; }
.block-faq_accordion .faq-answer p:last-child { margin-bottom: 0; }

/* === block: final_cta === */

/* Block: final_cta */
.block-final_cta {
  background:
    radial-gradient(circle at 30% 50%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(var(--primary-rgb), 0.20) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.block-final_cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.block-final_cta .fcta-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  position: relative;
  z-index: 1;
}

.block-final_cta .fcta-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 800px;
}

.block-final_cta .fcta-subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

.block-final_cta .fcta-button {
  margin-top: var(--sp-3);
  animation: fcta-pulse 3s ease-in-out infinite;
}

@keyframes fcta-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25);
  }
  50% {
    box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.45), var(--shadow-glow);
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .block-final_cta .fcta-button {
    animation: none;
  }
}

/* === block: footer_stacked === */

/* Block: footer_stacked — centered vertical */
.block-footer-stk {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at top, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%),
    var(--bg-elev);
  padding-block: var(--sp-6) var(--sp-4);
  overflow: hidden;
  text-align: center;
}
.block-footer-stk .footer-top-ornament {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.22) 50%, transparent);
  opacity: 0.6;
}
.block-footer-stk .fs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.block-footer-stk .fs-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--text);
}
.block-footer-stk .fs-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.20);
}
.block-footer-stk .fs-brand-img {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  object-fit: cover; box-shadow: var(--shadow-sm);
}
.block-footer-stk .fs-brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700; color: var(--text);
}
.block-footer-stk .fs-tagline {
  font-size: 0.88rem; color: var(--text-muted);
  font-style: italic; margin: 0; max-width: 44ch;
}
.block-footer-stk .fs-links {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-1);
}
.block-footer-stk .fs-link {
  font-size: 0.88rem; color: var(--text-muted);
  text-decoration: none; transition: color var(--tr-fast);
  position: relative; padding-bottom: 2px;
}
.block-footer-stk .fs-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--primary);
  transition: width var(--tr-fast);
}
.block-footer-stk .fs-link:hover { color: var(--primary); }
.block-footer-stk .fs-link:hover::after { width: 100%; }
.block-footer-stk .fs-legal {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-1) var(--sp-3);
}
.block-footer-stk .fs-legal-link {
  font-size: 0.76rem; color: var(--text-muted);
  text-decoration: none; opacity: 0.8;
  transition: color var(--tr-fast);
}
.block-footer-stk .fs-legal-link:hover { color: var(--primary); }
.block-footer-stk .fs-divider {
  width: min(420px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.18), transparent);
  margin: var(--sp-2) 0;
}
.block-footer-stk .fs-bottom {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: 0.8rem; color: var(--text-muted);
}
.block-footer-stk .fs-age {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #c62828, #8e0000);
  color: #fff; font-weight: 800; font-size: 0.68rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.20);
}
.block-footer-stk .fs-disclaimer {
  font-size: 0.74rem; color: var(--text-muted);
  opacity: 0.72; line-height: 1.45; margin: var(--sp-1) auto 0;
  max-width: 70ch;
}