/* ══════════════════════════════════════════════════════════════════════════
   FunCards — The Royal Card Room
   A premium online card-gaming platform. Midnight + emerald felt, lit by gold.
   Vanilla CSS, RTL-first, shared across home / tutorial / privacy.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Base — midnight felt ───────────────────────────────── */
  --bg-0: #060a09;          /* deepest void */
  --bg-1: #0a0f0e;          /* page base */
  --bg-2: #0f1614;          /* elevated panel */
  --bg-3: #141d1a;          /* card surface */
  --felt-0: #0a2018;        /* deep emerald felt */
  --felt-1: #0f3326;        /* emerald felt */

  /* ── Gold — the primary voice ───────────────────────────── */
  --gold-1: #fbe7ac;        /* highlight */
  --gold-2: #e7b94f;        /* core gold */
  --gold-3: #c9962f;        /* deep gold */
  --gold-4: #8a6a1d;        /* shadowed gold */

  /* ── Emerald — secondary (felt / live / go) ─────────────── */
  --emerald-1: #4fe0a0;
  --emerald-2: #1f9d6a;
  --emerald-3: #0f5132;

  /* ── Suits ──────────────────────────────────────────────── */
  --suit-red: #e0455a;
  --suit-black: #10171a;

  /* ── Text — warm cream (echoes the playing cards) ───────── */
  --text: #f3ecda;
  --text-soft: #c7bfa8;
  --text-mute: #8b8675;

  /* ── Borders — gold-tinted hairlines ────────────────────── */
  --border: rgba(231, 185, 79, 0.10);
  --border-strong: rgba(231, 185, 79, 0.24);
  --border-cream: rgba(243, 236, 218, 0.10);

  /* ── Gradients ──────────────────────────────────────────── */
  --grad-gold: linear-gradient(135deg, #fbe7ac 0%, #e7b94f 44%, #c9962f 100%);
  --grad-gold-bright: linear-gradient(135deg, #fff3cf 0%, #f3cf6a 50%, #d8a63a 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(231, 185, 79, 0.18), rgba(201, 150, 47, 0.05));
  --grad-felt: radial-gradient(120% 140% at 50% 0%, #15402f 0%, #0c241b 48%, #070d0b 100%);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.014) 100%);
  --grad-heading: linear-gradient(180deg, #fbf4e2 0%, #cdc3a6 100%);

  /* ── Glows / shadows ────────────────────────────────────── */
  --glow-gold: 0 12px 40px rgba(201, 150, 47, 0.35), 0 0 70px rgba(231, 185, 79, 0.18);
  --glow-soft: 0 14px 40px rgba(0, 0, 0, 0.5);
  --glow-emerald: 0 10px 36px rgba(31, 157, 106, 0.28);
  --shadow-card: 0 26px 50px -12px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.4);

  /* ── Radii ──────────────────────────────────────────────── */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* ── Motion ─────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;

  /* ── Legacy aliases — tutorial.html / privacy.html depend on these ── */
  --neon-gold: var(--gold-2);
  --neon-cyan: var(--emerald-1);
  --accent: var(--gold-2);
  --accent-2: var(--emerald-1);
  --grad-primary: var(--grad-gold);
  --grad-primary-soft: var(--grad-gold-soft);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: rgba(231, 185, 79, 0.28); color: #fff; }

.container {
  width: min(var(--container), 90%);
  margin-inline: auto;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Persian-geometric hairline divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-3);
  opacity: 0.7;
}
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  width: clamp(40px, 12vw, 130px);
  background: linear-gradient(90deg, transparent, var(--gold-4), transparent);
}
.ornament span { font-size: 13px; transform: rotate(45deg); }

/* ══════════════════════════════════════════════════════════
   Ambient background — the felt table at midnight
   ══════════════════════════════════════════════════════════ */
.bg-grid {            /* repurposed: emerald felt base */
  position: fixed;
  inset: 0;
  z-index: -4;
  background: var(--grad-felt);
}
.bg-glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.5;
  pointer-events: none;
  animation: floatGlow 22s ease-in-out infinite alternate;
}
.bg-glow-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(231, 185, 79, 0.42), transparent 70%);
  top: -160px; inset-inline-end: -120px;
}
.bg-glow-2 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(31, 157, 106, 0.36), transparent 70%);
  bottom: -240px; inset-inline-start: -200px;
  animation-delay: -8s;
}
.bg-glow-3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(201, 150, 47, 0.30), transparent 70%);
  top: 42%; inset-inline-start: 42%;
  animation-delay: -15s;
}
@keyframes floatGlow {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(36px, -34px) scale(1.12); }
}

/* faint floating suit glyphs (also used by tutorial/privacy) */
.bg-suits { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-suit {
  position: absolute;
  font-size: 190px;
  color: rgba(231, 185, 79, 0.025);
  font-weight: 900;
  user-select: none;
  animation: suitFloat 26s ease-in-out infinite alternate;
}
.bg-suit:nth-child(1) { top: 9%;  inset-inline-start: 5%;  animation-delay: 0s; }
.bg-suit:nth-child(2) { top: 22%; inset-inline-end: 7%;    animation-delay: -4s; font-size: 230px; }
.bg-suit:nth-child(3) { top: 56%; inset-inline-start: 11%; animation-delay: -9s; font-size: 150px; }
.bg-suit:nth-child(4) { top: 70%; inset-inline-end: 13%;   animation-delay: -13s; font-size: 210px; }
.bg-suit:nth-child(5) { top: 88%; inset-inline-start: 42%; animation-delay: -18s; }
.bg-suit:nth-child(6) { top: 13%; inset-inline-start: 47%; animation-delay: -22s; font-size: 165px; }
@keyframes suitFloat {
  0%   { transform: translateY(0) rotate(-7deg); }
  100% { transform: translateY(-34px) rotate(7deg); }
}

/* grain + vignette overlay for depth */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ══════════════════════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(8, 13, 11, 0.5);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(8, 13, 11, 0.82);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-mark {                   /* the real app crest icon */
  position: relative;
  width: 40px; height: 40px;
  flex: none;
  background: url("/assets/icon.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 11px rgba(0, 0, 0, 0.45));
}
.brand-suit { display: none; }  /* superseded by the crest image */
.brand-name {
  background: linear-gradient(180deg, #fff, #e7d8ac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tld { color: var(--gold-3); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -7px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.28s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; gap: 14px; }
.lang-toggle {
  font-size: 12px;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  transition: all 0.2s ease;
}
.lang-toggle:hover {
  color: #fff;
  border-color: var(--gold-2);
  box-shadow: 0 0 16px rgba(231, 185, 79, 0.3);
}
.nav-play { padding: 10px 20px; font-size: 14px; }

.nav-burger { display: none; }

/* ══════════════════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  user-select: none;
  border: 0;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, filter 0.2s ease;
  white-space: nowrap;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  color: #2a1c05;
  background: var(--grad-gold);
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-gold);
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary:hover::before { opacity: 0.85; }
.btn-primary:active { transform: translateY(0); }

.btn-primary.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 100% 0;
  animation: sheen 3.6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes sheen {
  0% { background-position: 100% 0; }
  55% { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

.btn-ghost {
  background: rgba(243, 236, 218, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(243, 236, 218, 0.08);
  border-color: rgba(231, 185, 79, 0.55);
  transform: translateY(-2px);
}

.btn-xl { padding: 18px 38px; font-size: 17px; border-radius: 16px; }

/* ══════════════════════════════════════════════════════════
   Hero
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  padding: 26px 0 70px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero-content > * { animation: heroRise 0.9s var(--ease-out) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.14s; }
.hero-content > *:nth-child(3) { animation-delay: 0.23s; }
.hero-content > *:nth-child(4) { animation-delay: 0.32s; }
.hero-content > *:nth-child(5) { animation-delay: 0.41s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-1);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}
.hero-eyebrow .crest-mini { width: 18px; height: 18px; object-fit: contain; }

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.hero-title-line {
  display: block;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-line .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub {
  max-width: 540px;
  font-size: 17.5px;
  color: var(--text-soft);
  margin: 0 0 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-num { font-weight: 800; font-size: 18px; color: #fff; }
.meta-label { font-size: 12.5px; color: var(--text-mute); }
.meta-sep { width: 1px; height: 30px; background: var(--border-strong); }

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(31, 157, 106, 0.08);
  border: 1px solid rgba(79, 224, 160, 0.24);
  font-size: 13.5px;
  color: var(--text-soft);
}
.hero-live-badge strong { color: var(--emerald-1); font-weight: 700; margin-inline: 2px; }

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #34e08a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 224, 138, 0.6);
  animation: livePulse 1.9s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 224, 138, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 224, 138, 0); }
}

/* ── Hero deck of cards on the felt ─────────────────────── */
.deck-stage {
  position: relative;
  height: 500px;
  perspective: 1500px;
  transform-style: preserve-3d;
}
.deck-crest {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 230px; height: 230px;
  object-fit: contain;
  transform: translate(-50%, -54%);
  opacity: 0.95;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
  animation: crestGlow 5s ease-in-out infinite alternate;
}
html[dir="rtl"] .deck-crest { transform: translate(50%, -54%); }
@keyframes crestGlow {
  from { filter: drop-shadow(0 14px 26px rgba(201, 150, 47, 0.25)); }
  to   { filter: drop-shadow(0 20px 44px rgba(231, 185, 79, 0.5)); }
}
.deck-glow {
  position: absolute;
  inset: 12% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 185, 79, 0.35), transparent 65%);
  filter: blur(46px);
  z-index: 0;
}

.card {
  --w: 168px;
  --h: 240px;
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: 50%;
  inset-inline-start: 50%;
  margin-top: calc(var(--h) / -2);
  margin-inline-start: calc(var(--w) / -2);
  border-radius: 16px;
  z-index: 2;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.6));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.55s var(--ease-out);
}
.card-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, #fdfbf4 0%, #ece6d6 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.6), inset 0 0 0 7px rgba(201, 150, 47, 0.25);
  overflow: hidden;
}
.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #14181f;
  font-weight: 800;
}
.card-back {
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(201, 150, 47, 0.5) 0 7px, rgba(15, 51, 38, 0.6) 7px 14px),
    var(--grad-felt);
  border: 2px solid rgba(231, 185, 79, 0.7);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pip-tl, .pip-br {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  line-height: 1;
  gap: 2px;
  font-weight: 800;
}
.pip-tl { top: 11px; inset-inline-end: 12px; }
.pip-br { bottom: 11px; inset-inline-start: 12px; transform: rotate(180deg); }
.pip-suit-big { font-size: 86px; line-height: 1; }
.suit-red { color: var(--suit-red); }
.suit-black { color: #1a1f2b; }

/* deal-in fan (LTR base) */
.card-1 { animation: deal-1 1.1s var(--ease-out) 0.15s both; }
.card-2 { animation: deal-2 1.1s var(--ease-out) 0.28s both; }
.card-3 { animation: deal-3 1.1s var(--ease-out) 0.41s both; }
.card-4 { animation: deal-4 1.1s var(--ease-out) 0.54s both; }
@keyframes deal-1 { 0% { opacity: 0; transform: translate(0, -300px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-150px, 34px) rotate(-22deg); } }
@keyframes deal-2 { 0% { opacity: 0; transform: translate(0, -300px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-52px, -10px) rotate(-7deg); } }
@keyframes deal-3 { 0% { opacity: 0; transform: translate(0, -300px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(52px, -10px) rotate(7deg); } }
@keyframes deal-4 { 0% { opacity: 0; transform: translate(0, -300px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(150px, 34px) rotate(22deg); } }

html[dir="rtl"] .card-1 { animation-name: deal-1-rtl; }
html[dir="rtl"] .card-2 { animation-name: deal-2-rtl; }
html[dir="rtl"] .card-3 { animation-name: deal-3-rtl; }
html[dir="rtl"] .card-4 { animation-name: deal-4-rtl; }
@keyframes deal-1-rtl { 0% { opacity: 0; transform: translate(0, -300px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(150px, 34px) rotate(22deg); } }
@keyframes deal-2-rtl { 0% { opacity: 0; transform: translate(0, -300px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(52px, -10px) rotate(7deg); } }
@keyframes deal-3-rtl { 0% { opacity: 0; transform: translate(0, -300px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-52px, -10px) rotate(-7deg); } }
@keyframes deal-4-rtl { 0% { opacity: 0; transform: translate(0, -300px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-150px, 34px) rotate(-22deg); } }

/* resting fan */
.card-1 { transform: translate(-150px, 34px) rotate(-22deg); }
.card-2 { transform: translate(-52px, -10px) rotate(-7deg); }
.card-3 { transform: translate(52px, -10px) rotate(7deg); }
.card-4 { transform: translate(150px, 34px) rotate(22deg); }
html[dir="rtl"] .card-1 { transform: translate(150px, 34px) rotate(22deg); }
html[dir="rtl"] .card-2 { transform: translate(52px, -10px) rotate(7deg); }
html[dir="rtl"] .card-3 { transform: translate(-52px, -10px) rotate(-7deg); }
html[dir="rtl"] .card-4 { transform: translate(-150px, 34px) rotate(-22deg); }

/* spread on hover */
.deck-stage:hover .card-1 { transform: translate(-196px, 20px) rotate(-29deg); }
.deck-stage:hover .card-2 { transform: translate(-66px, -24px) rotate(-10deg); }
.deck-stage:hover .card-3 { transform: translate(66px, -24px) rotate(10deg); }
.deck-stage:hover .card-4 { transform: translate(196px, 20px) rotate(29deg); }
html[dir="rtl"] .deck-stage:hover .card-1 { transform: translate(196px, 20px) rotate(29deg); }
html[dir="rtl"] .deck-stage:hover .card-2 { transform: translate(66px, -24px) rotate(10deg); }
html[dir="rtl"] .deck-stage:hover .card-3 { transform: translate(-66px, -24px) rotate(-10deg); }
html[dir="rtl"] .deck-stage:hover .card-4 { transform: translate(-196px, 20px) rotate(-29deg); }

.hero-scroll {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 12px;
}
html[dir="rtl"] .hero-scroll { transform: translateX(50%); }
.hero-scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(231, 185, 79, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

/* ══════════════════════════════════════════════════════════
   Live activity strip
   ══════════════════════════════════════════════════════════ */
.live { padding: 16px 0 44px; }
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(243, 236, 218, 0.045), rgba(243, 236, 218, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.live-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(231, 185, 79, 0.07), transparent 50%, rgba(31, 157, 106, 0.06));
  pointer-events: none;
}
.live-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(243, 236, 218, 0.025);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease;
}
.live-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 185, 79, 0.34);
  background: rgba(231, 185, 79, 0.06);
}
.live-card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold-1);
}
.live-num { font-weight: 800; font-size: 23px; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.live-label { font-size: 13px; color: var(--text-mute); }

/* ══════════════════════════════════════════════════════════
   Sections / headers / reveal
   ══════════════════════════════════════════════════════════ */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--gold-1);
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0 0 14px;
  font-size: clamp(29px, 4.2vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { color: var(--text-soft); font-size: 16.5px; margin: 0; }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }

/* ══════════════════════════════════════════════════════════
   Featured game — Hokm showcase
   ══════════════════════════════════════════════════════════ */
.showcase-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 56px;
}
.showcase-copy .section-eyebrow { margin-bottom: 16px; }
.showcase-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin: 0 0 16px;
  background: var(--grad-heading);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.showcase-lead { color: var(--text-soft); font-size: 16.5px; margin: 0 0 26px; max-width: 520px; }
.showcase-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.showcase-point { display: flex; gap: 13px; align-items: flex-start; }
.showcase-point .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold-1);
  font-size: 14px;
  margin-top: 2px;
}
.showcase-point b { color: var(--text); font-weight: 700; }
.showcase-point span { color: var(--text-soft); font-size: 14.5px; }

.showcase-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 30px; }
.showcase-stat .n { font-size: 28px; font-weight: 900; color: #fff; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.showcase-stat .l { font-size: 13px; color: var(--text-mute); }

/* device frame */
.device-stage { position: relative; display: grid; place-items: center; }
.device-stage::before {
  content: '';
  position: absolute;
  width: 86%; height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 185, 79, 0.28), transparent 68%);
  filter: blur(50px);
}
.phone {
  position: relative;
  width: min(300px, 78%);
  aspect-ratio: 300 / 620;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(155deg, #2a2620, #0c0f0d 60%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(231, 185, 79, 0.22), 0 0 0 2px rgba(0, 0, 0, 0.6);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}
html[dir="rtl"] .phone { transform: rotateY(14deg) rotateX(6deg) rotateZ(-1deg); }
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #0a0f0e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; position: absolute; inset: 0; }
.phone-screen img.is-active { opacity: 1; }
.phone-notch {
  position: absolute;
  top: 16px; inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #05080a;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
html[dir="rtl"] .phone-notch { transform: translateX(50%); }
.phone-float {
  position: absolute;
  z-index: 4;
  padding: 11px 15px;
  border-radius: 14px;
  background: rgba(14, 22, 20, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  animation: floatChip 4.5s ease-in-out infinite;
}
.phone-float .chip-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad-gold); color: #2a1c05; font-weight: 900; font-size: 15px;
}
.phone-float small { display: block; color: var(--text-mute); font-size: 11px; }
.phone-float.f1 { top: 16%; inset-inline-start: -8%; }
.phone-float.f2 { bottom: 18%; inset-inline-end: -10%; animation-delay: -2.2s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.shot-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.shot-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.shot-dot.is-active { background: var(--grad-gold); border-color: transparent; width: 26px; border-radius: 999px; }

/* ══════════════════════════════════════════════════════════
   Advantages (why FunCards)
   ══════════════════════════════════════════════════════════ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}
.feature::after {           /* mouse-tracking glow */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(231, 185, 79, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature::before {          /* gradient border on hover */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(231, 185, 79, 0.45) 65%, rgba(31, 157, 106, 0.35) 95%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-5px); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); }
.feature:hover::before, .feature:hover::after { opacity: 1; }
.feature-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-strong);
  font-size: 25px;
  position: relative;
}
.feature-icon-wrap.red { color: var(--suit-red); box-shadow: inset 0 0 22px rgba(224, 69, 90, 0.15); }
.feature-icon-wrap.gold { color: var(--gold-1); box-shadow: inset 0 0 22px rgba(231, 185, 79, 0.2); }
.feature-icon-wrap.green { color: var(--emerald-1); box-shadow: inset 0 0 22px rgba(31, 157, 106, 0.2); }
.feature-title { margin: 0 0 8px; font-size: 18.5px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.feature-desc { margin: 0; color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════
   How it works
   ══════════════════════════════════════════════════════════ */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.how::before {
  content: '';
  position: absolute;
  top: 58px;
  inset-inline: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 185, 79, 0.4), rgba(31, 157, 106, 0.35), transparent);
}
.how-step {
  position: relative;
  padding: 30px 26px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.how-step:hover { transform: translateY(-5px); border-color: rgba(231, 185, 79, 0.32); }
.how-num {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  font-weight: 900; font-size: 22px;
  color: #2a1c05;
  background: var(--grad-gold);
  box-shadow: 0 8px 24px rgba(201, 150, 47, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative; z-index: 1;
}
.how-title { margin: 0 0 6px; font-size: 18.5px; color: #fff; font-weight: 800; }
.how-desc { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* ══════════════════════════════════════════════════════════
   The FunCards ecosystem — game library
   ══════════════════════════════════════════════════════════ */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}
.game-card-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 130px;
  overflow: hidden;
}
.game-card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 10, 9, 0.55) 62%, rgba(6, 10, 9, 0.96) 100%);
  z-index: 1;
}
.game-card-suit { position: relative; z-index: 0; opacity: 0.9; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)); transition: transform 0.5s var(--ease-out); }
.game-card-body { position: relative; z-index: 2; padding: 22px; }
.game-status {
  position: absolute;
  top: 16px; inset-inline-start: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.game-status.live { color: #07120d; background: var(--emerald-1); box-shadow: 0 0 18px rgba(79, 224, 160, 0.45); }
.game-status.soon { color: var(--gold-1); background: rgba(231, 185, 79, 0.12); border: 1px solid var(--border-strong); }
.game-name { font-size: 21px; font-weight: 900; color: #fff; margin: 0 0 5px; letter-spacing: -0.01em; }
.game-desc { font-size: 13.5px; color: var(--text-soft); margin: 0 0 14px; }
.game-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--gold-1); }
.game-link svg { width: 15px; height: 15px; transition: transform 0.25s ease; }

.game-card.is-live { background: linear-gradient(160deg, rgba(15, 51, 38, 0.7), var(--bg-2)); }
.game-card.is-live .game-card-art { font-size: 150px; }
.game-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--glow-soft); }
.game-card:hover .game-card-suit { transform: scale(1.08) rotate(-4deg); }
.game-card.is-live:hover { border-color: rgba(79, 224, 160, 0.4); box-shadow: var(--glow-emerald); }
.game-card:hover .game-link svg { transform: translateX(-4px); }
html[dir="ltr"] .game-card:hover .game-link svg { transform: translateX(4px); }
.game-card.soon-card { opacity: 0.92; }
.game-card.soon-card .game-card-suit { opacity: 0.4; }

/* ══════════════════════════════════════════════════════════
   Social proof
   ══════════════════════════════════════════════════════════ */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.proof-stat {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--r-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
}
.proof-stat .n {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.proof-stat .l { margin-top: 10px; font-size: 14px; color: var(--text-soft); }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.testimonial {
  width: 340px;
  flex: none;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
}
.testimonial-stars { color: var(--gold-2); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-text { color: var(--text); font-size: 15px; line-height: 1.8; margin: 0 0 18px; }
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.testimonial-ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #2a1c05;
  background: var(--grad-gold);
  font-size: 16px;
}
.testimonial-name { font-weight: 700; font-size: 14px; color: #fff; }
.testimonial-city { font-size: 12.5px; color: var(--text-mute); }

/* ══════════════════════════════════════════════════════════
   Download — available everywhere
   ══════════════════════════════════════════════════════════ */
.download .section-header { margin-bottom: 42px; }

/* horizontal screenshot gallery */
.shot-gallery {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 24px;
  margin-bottom: 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.shot-gallery::-webkit-scrollbar { height: 6px; }
.shot-gallery::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.shot-gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-inline: max(5vw, calc((100% - var(--container)) / 2));
}
.gphone {
  scroll-snap-align: center;
  flex: none;
  width: 210px;
  margin: 0;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(155deg, #2a2620, #0c0f0d 60%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(231, 185, 79, 0.2);
  transition: transform 0.4s var(--ease-out);
}
.gphone:hover { transform: translateY(-10px) scale(1.015); }
.gphone img {
  width: 100%;
  aspect-ratio: 479 / 1040;
  object-fit: cover;
  border-radius: 23px;
  display: block;
}

/* store cards */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 14px;
}
.store-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.store-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.store-card.primary { border-color: rgba(231, 185, 79, 0.4); background: var(--grad-gold-soft); }
.store-ico {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(243, 236, 218, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--gold-1);
}
.store-card.primary .store-ico { background: var(--grad-gold); color: #2a1c05; border-color: transparent; box-shadow: 0 6px 18px rgba(201, 150, 47, 0.35); }
.store-ico svg { width: 25px; height: 25px; }
.store-meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.store-meta small { font-size: 11.5px; color: var(--text-mute); }
.store-meta b { font-size: 15.5px; font-weight: 800; color: #fff; white-space: nowrap; }
.store-badge {
  margin-inline-start: auto;
  align-self: flex-start;
  font-size: 10px;
  color: var(--gold-1);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   Compliance notice (entertainment, not gambling) — REQUIRED
   ══════════════════════════════════════════════════════════ */
.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(231, 185, 79, 0.13), rgba(31, 157, 106, 0.06) 60%, rgba(231, 185, 79, 0.13));
  border: 1px solid rgba(231, 185, 79, 0.34);
  color: var(--gold-1);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  box-shadow: 0 8px 30px rgba(201, 150, 47, 0.08);
}
.notice strong { color: #ffe9b5; font-weight: 800; }
.notice-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-gold);
  color: #1a1208;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(201, 150, 47, 0.35);
}
.notice-top-wrap { position: relative; z-index: 5; padding-top: 16px; }
.notice-top { font-size: 14px; }
.notice-top .notice-text strong { display: inline; margin-inline-end: 4px; }

/* ══════════════════════════════════════════════════════════
   Final CTA
   ══════════════════════════════════════════════════════════ */
.final-section { padding-bottom: 120px; }
.final {
  position: relative;
  text-align: center;
  padding: 76px 30px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(820px 420px at 50% 0%, rgba(231, 185, 79, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(15, 51, 38, 0.5), rgba(243, 236, 218, 0.012));
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.final::before {           /* engraved gold frame */
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: calc(var(--r-xl) - 12px);
  border: 1px solid rgba(231, 185, 79, 0.16);
  pointer-events: none;
}
.final-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 50%, rgba(231, 185, 79, 0.3), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.final .section-eyebrow { margin-bottom: 18px; }
.final-title {
  margin: 0 0 12px;
  font-size: clamp(33px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-heading);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.final-sub { color: var(--text-soft); font-size: 17px; margin: 0 0 30px; position: relative; }
.final .btn { position: relative; }
.final-meta { margin-top: 22px; font-size: 13px; color: var(--text-mute); display: inline-flex; align-items: center; gap: 8px; }
.final-meta strong { color: var(--emerald-1); }
.final-alt { margin-top: 14px; font-size: 13.5px; color: var(--text-mute); }
.final-alt a { color: var(--text-soft); border-bottom: 1px dashed var(--border-strong); padding-bottom: 1px; transition: color 0.2s ease, border-color 0.2s ease; }
.final-alt a:hover { color: #fff; border-bottom-color: var(--gold-2); }

/* ══════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════ */
.footer {
  padding: 64px 0 44px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  color: var(--text-mute);
  font-size: 13.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tagline { color: var(--text-soft); font-size: 14px; max-width: 280px; margin: 0 0 18px; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  transition: all 0.2s ease;
}
.footer-social a:hover { color: #2a1c05; background: var(--grad-gold); border-color: transparent; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 800; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-soft); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-1); }
.footer-col .soon-tag { font-size: 10px; color: var(--gold-3); border: 1px solid var(--border-strong); border-radius: 999px; padding: 1px 7px; margin-inline-start: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 26px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold-1); }
.footer-disclaimer { font-size: 12px; color: #6f6a5b; margin: 14px 0 0; line-height: 1.8; max-width: 820px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .deck-stage { height: 380px; order: -1; }
  .deck-crest { width: 180px; height: 180px; }
  .card { --w: 128px; --h: 184px; }
  .card-1 { transform: translate(-116px, 26px) rotate(-22deg); }
  .card-2 { transform: translate(-40px, -8px) rotate(-7deg); }
  .card-3 { transform: translate(40px, -8px) rotate(7deg); }
  .card-4 { transform: translate(116px, 26px) rotate(22deg); }
  html[dir="rtl"] .card-1 { transform: translate(116px, 26px) rotate(22deg); }
  html[dir="rtl"] .card-2 { transform: translate(40px, -8px) rotate(7deg); }
  html[dir="rtl"] .card-3 { transform: translate(-40px, -8px) rotate(-7deg); }
  html[dir="rtl"] .card-4 { transform: translate(-116px, 26px) rotate(-22deg); }
  @keyframes deal-1 { 0% { opacity: 0; transform: translate(0, -230px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-116px, 26px) rotate(-22deg); } }
  @keyframes deal-2 { 0% { opacity: 0; transform: translate(0, -230px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-40px, -8px) rotate(-7deg); } }
  @keyframes deal-3 { 0% { opacity: 0; transform: translate(0, -230px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(40px, -8px) rotate(7deg); } }
  @keyframes deal-4 { 0% { opacity: 0; transform: translate(0, -230px) rotate(10deg) scale(0.94); } 100% { opacity: 1; transform: translate(116px, 26px) rotate(22deg); } }
  @keyframes deal-1-rtl { 0% { opacity: 0; transform: translate(0, -230px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(116px, 26px) rotate(22deg); } }
  @keyframes deal-2-rtl { 0% { opacity: 0; transform: translate(0, -230px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(40px, -8px) rotate(7deg); } }
  @keyframes deal-3-rtl { 0% { opacity: 0; transform: translate(0, -230px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-40px, -8px) rotate(-7deg); } }
  @keyframes deal-4-rtl { 0% { opacity: 0; transform: translate(0, -230px) rotate(-10deg) scale(0.94); } 100% { opacity: 1; transform: translate(-116px, 26px) rotate(-22deg); } }

  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .device-stage { order: -1; }
  .phone { transform: none; }
  html[dir="rtl"] .phone { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .how::before { display: none; }
  .nav-links { display: none; }
  .nav-burger { display: inline-grid; }
  .pip-suit-big { font-size: 64px; }
}

@media (max-width: 560px) {
  .hero { padding: 20px 0 56px; }
  .hero-meta { gap: 14px; }
  .meta-sep { display: none; }
  .features { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
  .proof-stats { grid-template-columns: 1fr 1fr; }
  .live-grid { grid-template-columns: 1fr; padding: 12px; }
  .section { padding: 72px 0; }
  .final { padding: 52px 22px; }
  .btn { padding: 13px 20px; font-size: 14.5px; }
  .btn-xl { padding: 16px 28px; font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .testimonial { width: 280px; }
  .gphone { width: 174px; border-radius: 26px; }
  .gphone img { border-radius: 20px; }
}

/* mobile slide-down nav menu */
.nav-burger {
  width: 42px; height: 42px;
  border-radius: 11px;
  place-items: center;
  background: rgba(243, 236, 218, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
}
.nav-burger svg { width: 20px; height: 20px; }
.mobile-menu {
  position: fixed;
  inset: 64px 0 auto 0;
  z-index: 95;
  background: rgba(8, 13, 11, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 22px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
