/* =============================================================
   Tiranga Games — site.css
   Design language: "Trading-floor scoreboard meets betting slip."
   Deep navy command-center, brand-blue glow accents, geometric
   chamfered ticket silhouettes, hairline grid overlays, marquee
   ribbons, oversized italic numerals, monospace metadata.
   ============================================================= */

:root {
  /* ---------- Palette (locked to brand spec) ---------- */
  --brand:         #046BD2;
  --brand-dark:    #045CB4;
  --brand-light:   #3B8CE0;
  --brand-glow:    rgba(4, 107, 210, 0.55);

  --slate-900:     #1E293B;
  --slate-700:     #334155;
  --slate-500:     #64748B;
  --slate-400:     #94A3B8;
  --slate-300:     #CBD5E1;
  --slate-200:     #D1D5DB;
  --cool-100:      #F0F5FA;
  --white:         #FFFFFF;
  --black:         #111111;

  /* ---------- Backgrounds (DARK base) ---------- */
  --bg:            #0B1220;          /* deep navy page */
  --bg-card:       #131E2F;          /* elevated card */
  --bg-elevated:   #182539;          /* nested elevation */
  --bg-panel:      #070D17;          /* header / footer chrome */
  --bg-deep:       #050913;
  --bg-overlay:    rgba(11, 18, 32, 0.85);

  /* ---------- Text ---------- */
  --text:          #F0F5FA;
  --text-strong:   #FFFFFF;
  --text-muted:    #94A3B8;
  --text-dim:      #64748B;
  --text-mono:     'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---------- Borders / hairlines ---------- */
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --border-soft:   rgba(255,255,255,0.04);
  --border-blue:   rgba(4,107,210,0.45);

  /* ---------- Typography ---------- */
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* ---------- Radius ---------- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-soft:        0 2px 12px -4px rgba(0,0,0,0.5);
  --shadow-card:        0 24px 60px -28px rgba(0,0,0,0.65), 0 2px 8px -2px rgba(0,0,0,0.4);
  --shadow-card-hover:  0 28px 80px -28px rgba(4,107,210,0.55), 0 4px 14px -4px rgba(0,0,0,0.5);
  --shadow-cta:         0 14px 30px -8px rgba(4,107,210,0.55), 0 2px 6px -2px rgba(0,0,0,0.5);
  --glow-blue:          0 0 0 1px rgba(4,107,210,0.6), 0 0 24px -2px rgba(4,107,210,0.55);

  /* ---------- Layout ---------- */
  --container:      1200px;
  --container-wide: 1320px;
  --header-h:       4.6rem;

  /* ---------- Signature ticket-notch (corner-clip) ---------- */
  --notch:          14px;

  /* ---------- Hairline grid overlay ---------- */
  --grid-line:      rgba(255,255,255,0.03);
}

* { box-sizing: border-box; }
*::selection { background: var(--brand); color: var(--white); }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  counter-reset: img-div;
  overflow-x: hidden;
}

/* Atmospheric: hairline-grid + low-opacity radial glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 60rem 40rem at 85% -10%, rgba(4,107,210,0.18), transparent 60%),
    radial-gradient(ellipse 50rem 35rem at -10% 30%, rgba(4,107,210,0.08), transparent 60%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--white); }

/* ============================================================= */
/*  TYPOGRAPHY                                                    */
/* ============================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.10;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

/* Mono — used for metadata/labels (signature visual move) */
.mono {
  font-family: var(--text-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--text-mono);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--brand-light);
  padding: 0;
  background: none;
  border: 0;
  margin-bottom: 1.2rem;
}
.kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 12px 2px var(--brand-glow);
  animation: pulse-blue 2.4s infinite;
}
@keyframes pulse-blue {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.highlight {
  font-style: italic;
  font-family: var(--font-heading);
  position: relative;
  white-space: nowrap;
  color: var(--brand-light);
  padding: 0 0.06em;
}
.highlight::before {
  /* Geometric callout box outline (signature) */
  content: '';
  position: absolute;
  inset: -0.10em -0.18em;
  border: 1px solid var(--brand);
  border-radius: 4px;
  z-index: -1;
}
.highlight::after {
  content: '';
  position: absolute;
  left: -0.18em; top: -0.10em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--bg);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

/* ============================================================= */
/*  CONTAINERS                                                    */
/* ============================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ============================================================= */
/*  BUTTONS                                                       */
/* ============================================================= */

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  padding: .82em 1.5em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
  position: relative;
  /* Signature: chamfered top-right corner */
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  color: var(--white);
  box-shadow: 0 18px 40px -10px rgba(4,107,210,0.7);
}
.btn-primary::after {
  content: '→';
  font-size: 1.08em;
  transition: transform .25s ease;
}
.btn-primary:hover::after { transform: translateX(4px); }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
  clip-path: none;
  border-radius: var(--r-pill);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.btn-cta-pill {
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  padding: .7em 1.4em;
  font-size: 0.92rem;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  transition: all .25s ease;
  border: 1px solid var(--brand-dark);
  box-shadow: var(--shadow-cta);
}
.btn-cta-pill:hover {
  transform: translateY(-2px);
  color: var(--white);
  background: var(--brand-dark);
}

/* ============================================================= */
/*  TICKER LINE — runs under header, repeats in footer            */
/* ============================================================= */

.ticker-line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, var(--brand-light) 50%, var(--brand) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: ticker-drift 18s linear infinite;
  opacity: 0.7;
}
@keyframes ticker-drift {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================= */
/*  HEADER — single-row console                                   */
/* ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,13,23,0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled {
  background: rgba(7,13,23,0.95);
  border-bottom-color: var(--border-strong);
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: relative;
}
.header-bar .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

/* Brand — bracketed wordmark */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  position: relative;
  padding: .25rem 0;
}
.brand-link img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
/* fallback if logo isn't single-color suitable for invert: still readable */

/* Live indicator — signature scoreboard element */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--text-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .35rem .8rem .35rem .65rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}
.live-indicator::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22D386;
  box-shadow: 0 0 10px #22D386;
  animation: pulse-green 2s infinite;
}
.live-indicator strong { color: var(--text-strong); font-weight: 700; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,134,0.6); }
  50%      { box-shadow: 0 0 12px 2px rgba(34,211,134,0.4); }
}

/* Primary nav — pill rail with sliding indicator */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}
.primary-nav ul {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0; padding: 0.3rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.primary-nav a {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  transition: color .2s ease;
  z-index: 1;
}
.primary-nav a:hover { color: var(--text-strong); }
.primary-nav a.active { color: var(--white); background: var(--brand); }
.nav-indicator {
  position: absolute;
  top: 0.3rem; bottom: 0.3rem;
  background: rgba(4,107,210,0.18);
  border: 1px solid var(--border-blue);
  border-radius: var(--r-pill);
  transition: all .35s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

/* Header right side — utility links + CTA */
.header-right {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.header-utility-links {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.header-utility-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color .2s ease;
}
.header-utility-links a:hover { color: var(--text-strong); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, top .3s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .primary-nav { display: none; }
  .live-indicator { display: none; }
  .header-utility-links { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; }
  .header-bar .container { justify-content: space-between; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5,9,19,0.96);
  backdrop-filter: blur(18px);
  z-index: 99;
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  display: none;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-strong);
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-nav a:hover { color: var(--brand-light); padding-left: .4rem; }
.mobile-nav .mobile-cta {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 2rem;
}
body.nav-open { overflow: hidden; }

/* ============================================================= */
/*  HERO — betting-slip + grid + ribbon                           */
/* ============================================================= */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(7rem, 12vw, 9rem);
  overflow: hidden;
  isolation: isolate;
}
/* Grid overlay — only behind right side */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero::after {
  /* Soft glow ball behind betting slips */
  content: '';
  position: absolute;
  top: 30%; right: 5%;
  width: 32rem; height: 32rem;
  background: radial-gradient(circle, rgba(4,107,210,0.30), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.10;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem 1.1rem .55rem .55rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-proof .stack {
  position: relative;
  display: inline-flex;
  width: 70px;
  height: 32px;
}
.hero-proof .stack .chip {
  position: absolute;
  top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--brand);
}
.hero-proof .stack .chip:nth-child(1) { left: 0; background: var(--brand); }
.hero-proof .stack .chip:nth-child(2) { left: 18px; background: var(--brand-light); }
.hero-proof .stack .chip:nth-child(3) { left: 36px; background: var(--brand-dark); }
.hero-proof .text strong { color: var(--text-strong); font-weight: 700; }

/* Hero ART — betting slip stack (signature visual move) */
.hero-art {
  position: relative;
  height: clamp(380px, 46vw, 540px);
}
.hero-slip {
  position: absolute;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  /* Ticket silhouette: chamfer top-left + bottom-right */
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  padding: 1rem 1.1rem 1.2rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-card);
  transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.hero-slip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--text-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: .6rem;
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: .6rem;
}
.hero-slip-head .game { color: var(--brand-light); }
.hero-slip-body {
  display: flex;
  align-items: baseline;
  gap: .25em;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--text-strong);
}
.hero-slip-body .num {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-slip-body .x { color: var(--brand-light); font-size: 1.1rem; }
.hero-slip-foot {
  margin-top: .9rem;
  font-family: var(--text-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-slip-foot::before {
  content: '▰▱▰▱▰';
  color: var(--brand);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}
.hero-slip-1 { top: 8%; right: 38%; transform: rotate(-7deg); z-index: 1; }
.hero-slip-2 { top: 28%; right: 12%; transform: rotate(4deg); z-index: 3; }
.hero-slip-3 { top: 52%; right: 28%; transform: rotate(-3deg); z-index: 2; }
.hero-slip:hover { transform: rotate(0deg) translateY(-6px); z-index: 5; }

/* Hero pip cluster — abstract die-face-5 ornament */
.hero-pips {
  position: absolute;
  top: 6%;
  right: 8%;
  width: 70px;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  z-index: 4;
}
.hero-pips span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 12px 2px var(--brand-glow);
  align-self: center;
  justify-self: center;
}
.hero-pips span:nth-child(1) { grid-column: 1; grid-row: 1; }
.hero-pips span:nth-child(2) { grid-column: 3; grid-row: 1; }
.hero-pips span:nth-child(3) { grid-column: 2; grid-row: 2; }
.hero-pips span:nth-child(4) { grid-column: 1; grid-row: 3; }
.hero-pips span:nth-child(5) { grid-column: 3; grid-row: 3; }

/* Big italic "100%" floating chip behind */
.hero-bonus-chip {
  position: absolute;
  bottom: 4%;
  left: 6%;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 6rem;
  font-weight: 500;
  color: rgba(4,107,210,0.15);
  letter-spacing: -0.04em;
  line-height: 0.85;
  z-index: 0;
  pointer-events: none;
}
.hero-bonus-chip small {
  display: block;
  font-family: var(--text-mono);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--brand-light);
  margin-top: .3rem;
}

@media (max-width: 900px) {
  .hero::before { width: 100%; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 380px; max-width: 480px; margin: 0 auto; }
  .hero-slip { width: 200px; }
}
@media (max-width: 560px) {
  .hero-art { height: 320px; }
  .hero-slip { width: 170px; padding: .8rem .9rem 1rem; }
  .hero-slip-body .num { font-size: 1.8rem; }
}

/* Marquee ribbon — under hero CTAs */
.marquee {
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
  background: rgba(4,107,210,0.04);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--text-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
}
.marquee-track span::after {
  content: '◆';
  margin-left: 2rem;
  color: var(--brand);
  font-size: 0.6rem;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .ticker-line { animation: none; background: var(--brand); }
}

/* ============================================================= */
/*  HERO STATS BRIDGE                                             */
/* ============================================================= */

.hero-bridge {
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
}
.hero-stats-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* Chamfered ticket silhouette */
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow: var(--shadow-card);
  padding: 1.6rem clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
}
.hero-stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.stat-tile {
  text-align: left;
  padding: .25rem 1rem .25rem 1.2rem;
  border-left: 1px solid var(--border);
  position: relative;
}
.stat-tile:first-child { border-left: none; padding-left: 0; }
.stat-tile::before {
  content: counter(stat) ' /04';
  counter-increment: stat;
  display: block;
  font-family: var(--text-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: .35rem;
}
.hero-stats-strip { counter-reset: stat; }
.stat-tile .num {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1;
  margin-bottom: .2rem;
  letter-spacing: -0.025em;
}
.stat-tile .lbl {
  display: block;
  font-family: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .hero-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .stat-tile { border-left: none; padding-left: 0; }
}

/* ============================================================= */
/*  GAME FLOOR — triple-reel scoreboard ticker                    */
/* ============================================================= */

.game-floor {
  position: relative;
  margin-top: -3.5rem;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.game-floor-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.game-floor-head::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 80px; height: 1px;
  background: var(--brand-light);
  box-shadow: 0 0 12px var(--brand-glow);
}
.game-floor-head h2 { margin: 0; }
.game-floor-meta {
  color: var(--text-muted);
  font-size: 0.74rem;
}
@media (max-width: 700px) {
  .game-floor-head { grid-template-columns: 1fr; align-items: start; }
}

/* Reel container — edge-fade gradient mask reveals scrolling tiles */
.reel {
  position: relative;
  margin: 0;
  padding: 1.2rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}
.reel-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  /* duplicated content inside, animate translateX from 0 to -50% */
  animation: reel-left 60s linear infinite;
  will-change: transform;
}
.reel--right .reel-track { animation-name: reel-right; }
.reel--featured .reel-track { animation-duration: 80s; }   /* slower for big tiles */
.reel:hover .reel-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .reel { -webkit-mask-image: none; mask-image: none; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .reel-track { animation: none; }
}
@keyframes reel-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes reel-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Tile — chamfered ticket card */
.reel-tile {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* Ticket silhouette: chamfer top-right + bottom-left */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  text-decoration: none;
  color: var(--text);
  transition: transform .35s cubic-bezier(.7,0,.2,1), background .25s ease, border-color .25s ease;
  overflow: hidden;
  display: block;
}
.reel-tile:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
  border-color: var(--border-blue);
  z-index: 2;
}
.reel-tile-art {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a2740, #0f1a2e);
  overflow: hidden;
}
.reel-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, filter .35s ease;
  filter: brightness(0.92) saturate(1.05);
}
.reel-tile:hover .reel-tile-art img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.15);
}
.reel-tile-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7,13,23,0.78));
  pointer-events: none;
}

/* Live multiplier badge — only on featured tiles */
.reel-tile-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--text-mono);
  font-size: 0.74rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--brand);
  padding: .25rem .55rem;
  border-radius: 4px;
  border: 1px solid var(--brand-dark);
  box-shadow: 0 0 0 2px rgba(4,107,210,0.25), 0 4px 10px -2px rgba(0,0,0,0.5);
  z-index: 2;
}

.reel-tile-cap {
  padding: .7rem .85rem .75rem;
  border-top: 1px dashed var(--border-strong);
  background: var(--bg-card);
}
.reel-tile:hover .reel-tile-cap { background: var(--bg-elevated); }
.reel-tile-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--text-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
  font-weight: 500;
}
.reel-tile-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22D386;
  box-shadow: 0 0 8px rgba(34,211,134,0.7);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

/* Featured tile — bigger */
.reel-tile--featured {
  width: 240px;
}
.reel-tile--featured .reel-tile-meta { font-size: 0.74rem; }
@media (max-width: 700px) {
  .reel-tile { width: 160px; }
  .reel-tile--featured { width: 180px; }
}

/* Decorative divider between rows */
.reel-divider {
  padding: .4rem 0;
}
.reel-divider span {
  display: block;
  width: 100%;
  height: 1px;
  background:
    repeating-linear-gradient(90deg,
      var(--brand) 0 8px,
      transparent 8px 14px,
      var(--brand) 14px 18px,
      transparent 18px 30px);
  opacity: 0.25;
}

/* Game-floor actions */
.game-floor-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================= */
/*  GAME LIBRARY (static grid, used on /slot-game/)               */
/* ============================================================= */

.game-library {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.library-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.library-head::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 80px; height: 1px;
  background: var(--brand-light);
  box-shadow: 0 0 12px var(--brand-glow);
}
.library-head h2 { margin: 0; }
.library-meta { color: var(--text-muted); font-size: 0.74rem; }
@media (max-width: 700px) { .library-head { grid-template-columns: 1fr; align-items: start; } }

.library-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.6rem 0 1rem;
}
.library-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
}
.library-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
@media (max-width: 1100px) {
  .library-grid           { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .library-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .library-grid           { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .library-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 480px) {
  .library-grid           { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
}

.library-tile {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* Ticket silhouette: chamfer top-right + bottom-left */
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.7,0,.2,1), background .25s ease, border-color .25s ease;
}
.library-tile:hover {
  transform: translateY(-3px);
  background: var(--bg-elevated);
  border-color: var(--border-blue);
  z-index: 2;
}
.library-tile-art {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a2740, #0f1a2e);
  overflow: hidden;
}
.library-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, filter .35s ease;
  filter: brightness(0.92) saturate(1.05);
}
.library-tile:hover .library-tile-art img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.15);
}
.library-tile-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7,13,23,0.78));
  pointer-events: none;
}

.library-tile-cap {
  padding: .6rem .75rem .7rem;
  border-top: 1px dashed var(--border-strong);
  background: var(--bg-card);
}
.library-tile:hover .library-tile-cap { background: var(--bg-elevated); }
.library-tile-meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--text-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-strong);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.library-tile-meta .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22D386;
  box-shadow: 0 0 7px rgba(34,211,134,0.7);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

/* Featured tile — slightly larger caption text */
.library-tile--featured .library-tile-meta { font-size: 0.74rem; }
.library-tile--featured .library-tile-cap { padding: .8rem 1rem; }

/* ============================================================= */
/*  PROMOTION GALLERY                                             */
/* ============================================================= */

.promo-gallery {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.promo-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.promo-head::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 80px; height: 1px;
  background: var(--brand-light);
  box-shadow: 0 0 12px var(--brand-glow);
}
.promo-head h2 { margin: 0; }
.promo-meta { color: var(--text-muted); font-size: 0.74rem; }
@media (max-width: 700px) { .promo-head { grid-template-columns: 1fr; align-items: start; } }

.promo-tile {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* Ticket silhouette: chamfer top-right + bottom-left (matches site language) */
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.7,0,.2,1), background .25s ease, border-color .25s ease;
}
.promo-tile:hover {
  transform: translateY(-4px);
  background: var(--bg-elevated);
  border-color: var(--border-blue);
  z-index: 2;
}
.promo-tile-art {
  position: relative;
  aspect-ratio: 768 / 300;
  background: linear-gradient(160deg, #1a2740, #0f1a2e);
  overflow: hidden;
}
.promo-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, filter .35s ease;
  filter: brightness(0.95) saturate(1.05);
}
.promo-tile:hover .promo-tile-art img {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.15);
}
.promo-tile-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7,13,23,0.72));
  pointer-events: none;
}

.promo-tile-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--text-mono);
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(7,13,23,0.65);
  border: 1px solid var(--border-strong);
  padding: .3rem .65rem;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.promo-tile-cap {
  padding: .85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border-top: 1px dashed var(--border-strong);
  background: var(--bg-card);
}
.promo-tile:hover .promo-tile-cap { background: var(--bg-elevated); }
.promo-tile-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.promo-tile-meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--text-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.promo-tile-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22D386;
  box-shadow: 0 0 8px rgba(34,211,134,0.7);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

/* Hero banner — full-width, larger */
.promo-tile--hero {
  margin-bottom: 1.4rem;
}
.promo-tile--hero .promo-tile-art {
  aspect-ratio: 1600 / 625;
}
.promo-tile--hero .promo-tile-tag {
  font-size: 0.74rem;
  padding: .35rem .8rem;
}
.promo-tile--hero .promo-tile-name { font-size: 1.4rem; }

/* Grid of remaining tiles */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
@media (max-width: 720px) {
  .promo-grid { grid-template-columns: 1fr; }
}

/* ============================================================= */
/*  PAGE-HERO (inner pages) — document header                     */
/* ============================================================= */

.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(4,107,210,0.06) 0%, transparent 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 100% 32px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 800px) { .page-hero .container { grid-template-columns: 1fr; gap: 1.5rem; } }

.page-hero .breadcrumb {
  font-family: var(--text-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.page-hero .breadcrumb a { color: var(--text-muted); border-bottom: 1px dashed transparent; }
.page-hero .breadcrumb a:hover { color: var(--brand-light); border-bottom-color: currentColor; }
.page-hero .breadcrumb-sep { margin: 0 .6em; color: var(--text-dim); }

.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 1.2rem;
}
.page-hero .lead {
  max-width: 60ch;
}

.page-meta {
  font-family: var(--text-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.2rem;
}
.page-meta-author { color: var(--text-muted); font-weight: 500; }

/* Spec card — right side of page-hero */
.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* Chamfered top-right corner — ticket silhouette */
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: 1.5rem 1.6rem;
  font-family: var(--text-mono);
  font-size: 0.8rem;
  align-self: end;
}
.spec-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem 1.5rem;
}
.spec-card dt {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}
.spec-card dd {
  margin: 0;
  color: var(--text-strong);
  font-weight: 500;
}
.spec-card .spec-tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .25rem .55rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.spec-card .spec-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-light);
}

/* ============================================================= */
/*  SECTIONS                                                      */
/* ============================================================= */

section { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; }

.section-head {
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .kicker { margin-bottom: 1rem; justify-content: center; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.section-head--left .kicker { justify-content: flex-start; }

/* ============================================================= */
/*  CARDS — universal "ticket" silhouette                         */
/* ============================================================= */

.card-base,
.floor-tile,
.plain-card,
.bento-tile,
.security-tile,
.reward-tile,
.support-card,
.intro-block,
.feature-check-list--plain,
.split-layout {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* Signature: chamfer top-right corner = ticket silhouette */
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.7,0,.2,1), box-shadow .35s ease, background .35s ease;
  overflow: hidden;
}
.card-base:hover,
.floor-tile:hover,
.plain-card:hover,
.bento-tile:hover,
.security-tile:hover,
.reward-tile:hover,
.split-layout:hover {
  transform: translateY(-3px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card-hover);
}

/* Numbered badge — replaces italic watermark (signature) */
.floor-tile,
.plain-card,
.bento-tile,
.security-tile,
.reward-tile,
.support-card,
.intro-block {
  counter-increment: card;
}
section { counter-reset: card; }

/* Decorative chip-stripes anchor (bottom-left) */
.floor-tile::before,
.plain-card::before,
.bento-tile::before,
.reward-tile::before,
.support-card::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  width: 28px; height: 4px;
  background:
    linear-gradient(90deg,
      var(--brand) 0 6px, transparent 6px 10px,
      var(--brand) 10px 16px, transparent 16px 20px,
      var(--brand) 20px 28px);
  pointer-events: none;
  opacity: 0.7;
}

/* Numbered badge in top-right (signature) */
.floor-tile::after,
.plain-card::after,
.bento-tile::after,
.reward-tile::after {
  content: '№ ' counter(card, decimal-leading-zero);
  position: absolute;
  top: .8rem;
  right: 1.4rem;
  font-family: var(--text-mono);
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  pointer-events: none;
  transition: color .25s ease;
}
.floor-tile:hover::after,
.plain-card:hover::after,
.bento-tile:hover::after,
.reward-tile:hover::after {
  color: var(--brand-light);
}

.floor-tile { padding: 2rem 1.8rem 2.4rem; }
.floor-tile h3 {
  margin: 0 0 .65rem;
  font-size: 1.25rem;
}
.floor-tile p:last-child { margin-bottom: 0; }
.floor-tile p { color: var(--text-muted); font-size: 0.97rem; }
.floor-tile ul, .floor-tile ol { margin-bottom: 0; padding-left: 1.1em; color: var(--text-muted); }
.floor-tile ul li, .floor-tile ol li { font-size: 0.96rem; }

/* ============================================================= */
/*  FLOOR-GRID                                                    */
/* ============================================================= */

.floor-grid {
  display: grid;
  gap: 1.4rem;
  width: 100%;
}
.floor-grid--cols-1 { grid-template-columns: 1fr; }
.floor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: 1fr; }
}

/* Rich tile layout (R4b) */
.floor-grid--rich {
  grid-template-columns: 1fr;
  width: 100%;
}
.floor-grid--rich .floor-tile {
  padding: 2.4rem 2rem 2.6rem;
}
.floor-grid--rich .floor-tile h3 {
  font-size: 1.55rem;
  margin-bottom: 1.1rem;
  color: var(--text-strong);
}
.floor-grid--rich .floor-tile h4 {
  font-family: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brand-light);
  border-top: 1px solid var(--border-strong);
  padding-top: 1rem;
  margin-top: 1.6rem;
  margin-bottom: .9rem;
}
.floor-grid--rich .floor-tile h4:first-of-type { margin-top: 1rem; }
.floor-grid--rich .floor-tile ul,
.floor-grid--rich .floor-tile ol {
  list-style: none;
  padding: 0;
  margin: .5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.floor-grid--rich .floor-tile li {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.5rem;
  font-size: 0.97rem;
  color: var(--text);
  margin: 0;
  overflow: hidden;
}
.floor-grid--rich .floor-tile li::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--brand);
}
.floor-grid--rich .floor-tile li strong { color: var(--text-strong); }

/* ============================================================= */
/*  SPLIT-LAYOUT                                                  */
/* ============================================================= */

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.split-layout--reverse { grid-template-columns: 1fr 1.1fr; }
.split-layout--reverse .split-text { order: 2; }
.split-layout--reverse .split-image { order: 1; }
.split-layout h3 { color: var(--text-strong); margin-bottom: 1rem; }
.split-layout h2 { color: var(--text-strong); }
.split-layout ul, .split-layout ol { padding-left: 1.1em; color: var(--text-muted); }
.split-layout li { padding: .25rem 0; }
.split-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border: 1px solid var(--border-strong);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.split-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(4,107,210,0.20));
  pointer-events: none;
}
@media (max-width: 800px) {
  .split-layout, .split-layout--reverse { grid-template-columns: 1fr; }
  .split-layout--reverse .split-text { order: 1; }
  .split-layout--reverse .split-image { order: 2; }
}

/* ============================================================= */
/*  FEATURE-CHECK-LIST                                            */
/* ============================================================= */

.feature-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
  width: 100%;
}
.feature-check-list li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.97rem;
}
.feature-check-list li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 0 2px rgba(4,107,210,0.25);
}
.feature-check-list li::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.feature-check-list--plain {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-left: none;
}
.feature-check-list--plain h2,
.feature-check-list--plain h3 {
  margin-top: 0;
  color: var(--text-strong);
}
.feature-check-list--plain p:first-of-type { color: var(--text-muted); margin-bottom: 1.4rem; }

/* ============================================================= */
/*  PLAIN-CARD                                                    */
/* ============================================================= */

.plain-card {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.plain-card h2,
.plain-card h3 { color: var(--text-strong); }
.plain-card p { color: var(--text); }
.plain-card p + p { margin-top: 1em; }
.plain-card > :last-child { margin-bottom: 0; }

.intro-block {
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem) 2rem;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text);
  border-left: 3px solid var(--brand);
}
.intro-block p:last-child { margin-bottom: 0; }

/* ============================================================= */
/*  IMAGE-DIVIDER (R5b — contained, two-column)                   */
/* ============================================================= */

.image-divider {
  counter-increment: img-div;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
}
.image-divider figure {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-strong);
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  position: relative;
  /* Ticket silhouette */
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.image-divider figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform .8s ease;
}
.image-divider:hover figure img { transform: scale(1.04); }
.image-divider figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(4,107,210,0.22));
  pointer-events: none;
}
.image-divider .aside { padding: 0; }
.image-divider .aside::before {
  content: counter(img-div, decimal-leading-zero) ' / 04';
  display: block;
  font-family: var(--text-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 1rem;
}
.image-divider .aside .kicker { margin-bottom: 1rem; }
.image-divider .aside h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--text-strong);
  margin: 0 0 .6rem;
}
.image-divider .aside p { color: var(--text-muted); margin: 0; max-width: 36ch; }
@media (max-width: 800px) {
  .image-divider { grid-template-columns: 1fr; }
}

/* ============================================================= */
/*  HOMEPAGE BESPOKE SECTIONS                                     */
/* ============================================================= */

/* Bento — game floor */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 1.4rem;
  width: 100%;
  counter-reset: card;
}
.bento-floor .bento-tile {
  padding: 2rem 1.7rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Stacked backgrounds: dark veil over the per-tile image */
  background-color: var(--bg-card);
  background-image:
    linear-gradient(165deg, rgba(19,30,47,0.78) 0%, rgba(11,18,32,0.94) 100%),
    var(--bg-img, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.bento-floor .bento-tile:hover {
  background-image:
    linear-gradient(165deg, rgba(24,37,57,0.72) 0%, rgba(11,18,32,0.90) 100%),
    var(--bg-img, none);
}
.bento-floor .bento-tile > * { position: relative; z-index: 1; }
.bento-floor .bento-tile h3 { margin: 0 0 .35rem; font-size: 1.22rem; }
.bento-floor .bento-tile p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.bento-floor .bento-tile .icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: rgba(4,107,210,0.18);
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--brand-light);
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bento-floor .bento-tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  /* Brand-blue gradient at high alpha lets the image bleed through subtly */
  background-image:
    linear-gradient(155deg, rgba(4,107,210,0.85) 0%, rgba(4,92,180,0.95) 100%),
    var(--bg-img, none);
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}
.bento-floor .bento-tile--feature:hover {
  background-image:
    linear-gradient(155deg, rgba(4,107,210,0.78) 0%, rgba(4,92,180,0.90) 100%),
    var(--bg-img, none);
}
.bento-floor .bento-tile--feature::after {
  color: rgba(255,255,255,0.5);
}
.bento-floor .bento-tile--feature::before {
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.7) 0 6px, transparent 6px 10px,
      rgba(255,255,255,0.7) 10px 16px, transparent 16px 20px,
      rgba(255,255,255,0.7) 20px 28px);
  opacity: 0.9;
}
.bento-floor .bento-tile--feature h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  margin-bottom: .6rem;
  max-width: 14ch;
  letter-spacing: -0.02em;
}
.bento-floor .bento-tile--feature p { color: rgba(255,255,255,0.85); }
.bento-floor .bento-tile--feature .icon {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.bento-floor .bento-tile--wide { grid-column: span 2; }
@media (max-width: 900px) {
  .bento-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-floor .bento-tile--feature { grid-column: span 2; grid-row: span 1; }
  .bento-floor .bento-tile--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento-floor { grid-template-columns: 1fr; }
  .bento-floor .bento-tile--feature, .bento-floor .bento-tile--wide { grid-column: span 1; }
}

/* Security grid (4-up) */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  width: 100%;
  counter-reset: card;
}
.security-grid .security-tile {
  padding: 1.8rem 1.5rem 2.2rem;
  text-align: left;
  position: relative;
}
.security-grid .security-tile .glyph {
  width: 42px; height: 42px;
  margin: 0 0 1rem;
  border-radius: 8px;
  background: rgba(4,107,210,0.14);
  border: 1px solid var(--border-blue);
  color: var(--brand-light);
  display: grid;
  place-items: center;
  font-family: var(--text-mono);
  font-weight: 700;
  font-size: 0.78rem;
}
.security-grid .security-tile h3 {
  font-size: 1.05rem;
  margin: 0 0 .4rem;
  color: var(--text-strong);
}
.security-grid .security-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.security-grid .security-tile::after {
  content: '№ ' counter(card, decimal-leading-zero);
  counter-increment: card;
  position: absolute;
  top: .8rem;
  right: 1.2rem;
  font-family: var(--text-mono);
  font-size: 0.66rem;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.security-grid .security-tile::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  bottom: 1.1rem;
  width: 28px; height: 4px;
  background:
    linear-gradient(90deg,
      var(--brand) 0 6px, transparent 6px 10px,
      var(--brand) 10px 16px, transparent 16px 20px,
      var(--brand) 20px 28px);
  opacity: 0.7;
}
@media (max-width: 900px) { .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .security-grid { grid-template-columns: 1fr; } }

/* Rewards bento */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 1.4rem;
  width: 100%;
  counter-reset: card;
}
.rewards-bento .reward-tile {
  padding: 1.8rem 1.7rem 2.2rem;
}
.rewards-bento .reward-tile h3 { margin: 0 0 .5rem; color: var(--text-strong); }
.rewards-bento .reward-tile p { color: var(--text-muted); margin-bottom: 0; }
.rewards-bento .reward-tile .reward-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: .8rem;
  display: block;
  letter-spacing: -0.04em;
}
.rewards-bento .reward-welcome {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: var(--brand-dark);
  color: #fff;
}
.rewards-bento .reward-welcome::before {
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.7) 0 6px, transparent 6px 10px,
      rgba(255,255,255,0.7) 10px 16px, transparent 16px 20px,
      rgba(255,255,255,0.7) 20px 28px);
}
.rewards-bento .reward-welcome::after { color: rgba(255,255,255,0.55); }
.rewards-bento .reward-welcome h3,
.rewards-bento .reward-welcome p,
.rewards-bento .reward-welcome .reward-num { color: #fff; }
.rewards-bento .reward-welcome p { color: rgba(255,255,255,0.92); }
.rewards-bento .reward-vip {
  grid-column: 1 / -1;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
}
.rewards-bento .reward-vip h3 { color: var(--brand-light); margin: 0; }
.rewards-bento .reward-vip p { color: var(--text-muted); margin: 0; max-width: 50ch; }
@media (max-width: 900px) {
  .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-bento .reward-welcome { grid-column: span 2; grid-row: auto; }
  .rewards-bento .reward-vip { grid-column: span 2; }
}
@media (max-width: 560px) {
  .rewards-bento { grid-template-columns: 1fr; }
  .rewards-bento .reward-welcome, .rewards-bento .reward-vip { grid-column: span 1; }
}

/* Support card (centered editorial) */
.support-card {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.support-card h2, .support-card h3 { color: var(--text-strong); }
.support-card .lead { margin: 0 auto 1.5rem; }
.support-card .support-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ============================================================= */
/*  FAQ                                                           */
/* ============================================================= */

.faq-list {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
.faq-item[open] {
  background: var(--bg-elevated);
  border-color: var(--border-blue);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-strong);
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-light); }
.faq-q { flex: 1; }
.faq-icon {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(4,107,210,0.15);
  border: 1px solid var(--border-blue);
  flex-shrink: 0;
  transition: transform .3s ease, background .3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brand-light);
  border-radius: 1px;
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: transform .3s ease; }
.faq-item[open] .faq-icon { background: var(--brand); border-color: var(--brand); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================= */
/*  FOOTER — scoreboard                                           */
/* ============================================================= */

.site-footer {
  position: relative;
  background: var(--bg-panel);
  color: var(--text);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 0;
  border-top: 1px solid var(--border);
}
.footer-cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  /* Chamfered ticket silhouette */
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  padding: clamp(2rem, 4vw, 2.6rem);
  margin-top: -3rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.footer-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.footer-cta-card::after {
  content: 'Tiranga';
  position: absolute;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 500;
  color: rgba(4,107,210,0.08);
  bottom: -3rem;
  right: -1.5rem;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.04em;
  z-index: 0;
}
.footer-cta-card > * { position: relative; z-index: 1; }
.footer-cta-card .kicker { margin-bottom: .8rem; }
.footer-cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-strong);
  margin: 0 0 .5rem;
}
.footer-cta-card p { margin: 0; color: var(--text-muted); }
.footer-cta-card .actions { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 700px) {
  .footer-cta-card { grid-template-columns: 1fr; text-align: center; }
  .footer-cta-card .actions { justify-content: center; }
  .footer-cta-card .kicker { justify-content: center; }
}

/* Footer scoreboard grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.footer-pedestal img {
  height: 36px;
  width: auto;
  margin-bottom: 1.2rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-pedestal p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 36ch;
  margin-bottom: 1.2rem;
}
.payment-pills {
  display: flex; gap: .4rem; flex-wrap: wrap;
}
.payment-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--text-mono);
  padding: .35rem .65rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.footer-col h4 {
  font-family: var(--text-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin: 0 0 1.2rem;
  position: relative;
  padding-left: 2.4rem;
}
.footer-col h4::before {
  content: counter(col, decimal-leading-zero);
  counter-increment: col;
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--text-mono);
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0;
  font-size: 0.7rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 1.4rem; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 1px;
  background: var(--text-dim);
}
.footer-grid { counter-reset: col 1; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
}
.footer-col a:hover { color: var(--text-strong); padding-left: .35rem; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-pedestal { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Footer ribbon — repeating mono text marquee */
.footer-ribbon {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
  margin: 1.5rem 0 0;
  background: rgba(4,107,210,0.04);
}
.footer-ribbon .marquee-track {
  font-size: 0.74rem;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--text-mono);
  padding: .4rem .8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trust-pill::before {
  content: '◆';
  color: var(--brand-light);
  font-size: 0.7em;
}

.footer-base {
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--text-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.footer-base em {
  font-family: var(--text-mono);
  font-style: italic;
  color: var(--text-muted);
}

/* ============================================================= */
/*  REVEAL                                                        */
/* ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.7,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================= */
/*  404                                                           */
/* ============================================================= */

.err-404 {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.err-404 .glyph {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(8rem, 22vw, 22rem);
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 50%, var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.err-404 h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.err-404 p { color: var(--text-muted); max-width: 50ch; margin: 0 auto 2rem; }
.err-404 .actions { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
