/* ==========================================================================
   S9 GAME — main.css
   Global reset, layout primitives, shared components, motion system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* the root scroller, not body — off-canvas fixed elements (the mobile
     nav drawer, translated out past the right edge) are positioned
     relative to the viewport and escape a clip set on body alone, so the
     page must be clipped here too or it becomes horizontally draggable
     even though nothing is visibly overflowing. */
  overflow-x: hidden;
  width: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

[hidden] { display: none !important; }

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: 600;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-xl); }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

strong { color: var(--color-text-primary); font-weight: 600; }

::selection {
  background: var(--color-accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2));
  border-radius: var(--r-pill);
  border: 2px solid var(--color-bg-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-bright); }

/* --------------------------------------------------------------------------
   3. SIGNATURE MOTIF — "Velvet Card Weave"
   -------------------------------------------------------------------------- */
.weave {
  position: fixed;
  inset: 0;
  z-index: var(--z-weave);
  pointer-events: none;
  overflow: hidden;
}

.weave__felt {
  position: absolute;
  inset: -10%;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(201, 162, 75, 0.028) 0px,
      rgba(201, 162, 75, 0.028) 1px,
      transparent 1px,
      transparent 9px),
    repeating-linear-gradient(-45deg,
      rgba(122, 17, 40, 0.055) 0px,
      rgba(122, 17, 40, 0.055) 1px,
      transparent 1px,
      transparent 9px);
  animation: weaveDrift 62s linear infinite;
}

.weave__vignette {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(45% 55% at 22% 18%, rgba(122, 17, 40, 0.30) 0%, transparent 62%),
    radial-gradient(38% 48% at 82% 72%, rgba(74, 14, 28, 0.34) 0%, transparent 60%);
  animation: spotlightSweep 34s var(--ease-in-out-soft) infinite alternate;
}

.weave__sheen {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg at 50% 45%,
    transparent 0deg,
    rgba(201, 162, 75, 0.045) 22deg,
    transparent 60deg,
    transparent 300deg,
    rgba(122, 17, 40, 0.07) 340deg,
    transparent 360deg);
  animation: sheenRotate 70s linear infinite;
}

.weave__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.weave::after {
  /* top + bottom fade so the motif never fights with content */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 5, 7, 0.86) 0%, transparent 22%, transparent 78%, rgba(11, 5, 7, 0.9) 100%);
}

@keyframes weaveDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-72px, 72px, 0); }
}
@keyframes spotlightSweep {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to   { transform: translate3d(5%, 4%, 0) scale(1.12); }
}
@keyframes sheenRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container-max), 100% - var(--container-gutter) * 2);
  margin-inline: auto;
  position: relative;
  z-index: var(--z-base);
}

.container--wide {
  width: min(var(--container-wide), 100% - var(--container-gutter) * 2);
}

.container--narrow {
  width: min(860px, 100% - var(--container-gutter) * 2);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
  z-index: var(--z-base);
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  position: relative;
  z-index: var(--z-base);
}

.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(18, 7, 9, 0.72) 12%, rgba(18, 7, 9, 0.72) 88%, transparent);
}

.section__divider {
  height: 1px;
  background: var(--grad-hairline);
  border: 0;
  margin: 0;
  opacity: 0.5;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  background: var(--color-accent);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out-soft);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   5. TYPE UTILITIES
   -------------------------------------------------------------------------- */
.u-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--color-gold);
  margin-bottom: var(--sp-4);
  position: relative;
  padding-left: 2.6rem;
}
.u-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}
html[dir='rtl'] .u-eyebrow { padding-left: 0; padding-right: 2.6rem; }
html[dir='rtl'] .u-eyebrow::before { left: auto; right: 0; background: linear-gradient(-90deg, transparent, var(--color-gold)); }

.u-eyebrow--center { padding-left: 0; }
.u-eyebrow--center::before { display: none; }

.u-gold { color: var(--color-gold); }
.u-accent { color: var(--color-accent-bright); }
.u-center { text-align: center; }
.u-mb-0 { margin-bottom: 0; }

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

.section__head {
  max-width: 760px;
  margin-bottom: var(--sp-8);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__lead {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  margin-top: var(--sp-4);
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Rich prose blocks used across content-heavy pages */
.prose h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h4 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--sp-4); }
.prose ul, .prose ol {
  margin: 0 0 var(--sp-5);
  padding-left: 1.35rem;
}
html[dir='rtl'] .prose ul, html[dir='rtl'] .prose ol { padding-left: 0; padding-right: 1.35rem; }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--color-gold); }
.prose a {
  color: var(--color-gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-border-hair-2);
  transition: color var(--dur-fast);
}
.prose a:hover { color: var(--color-gold); }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft),
              background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__icon { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  background: var(--grad-accent);
  color: #FFF2F3;
  border-color: rgba(201, 162, 75, 0.28);
  box-shadow: 0 6px 22px rgba(122, 17, 40, 0.42), var(--shadow-inset-hair);
}
.btn--primary:hover {
  background: var(--grad-accent-hover);
  box-shadow: 0 12px 34px rgba(184, 37, 63, 0.5), var(--shadow-glow-gold);
  border-color: var(--color-border-hair-2);
}

/* Slow restrained pulse for hero CTA */
.btn--pulse { animation: ctaPulse 3s var(--ease-in-out-soft) infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(122, 17, 40, 0.40), 0 0 0 0 rgba(184, 37, 63, 0.32); }
  50%      { box-shadow: 0 10px 30px rgba(122, 17, 40, 0.55), 0 0 0 14px rgba(184, 37, 63, 0); }
}

.btn--gold {
  background: var(--grad-gold);
  color: #23120A;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 22px rgba(201, 162, 75, 0.26);
}
.btn--gold:hover { box-shadow: 0 12px 32px rgba(201, 162, 75, 0.4); }

.btn--ghost {
  background: rgba(46, 21, 27, 0.4);
  color: var(--color-text-primary);
  border-color: var(--color-border-hair);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-soft);
  background: rgba(46, 21, 27, 0.7);
}

.btn--telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 22px rgba(42, 171, 238, 0.32);
}
.btn--telegram:hover {
  background: linear-gradient(135deg, #35BAFF 0%, #1E93CC 100%);
  box-shadow: 0 12px 32px rgba(42, 171, 238, 0.45);
}

.btn--sm { padding: 0.62rem 1.25rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: var(--fs-base); }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   7. HEADER / NAV
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 5, 7, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base);
}
.header.is-scrolled {
  background: rgba(11, 5, 7, 0.92);
  border-bottom-color: var(--color-border-hair);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 84px;
  padding-block: var(--sp-3);
}

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.logo:hover { transform: translateY(-1px); }

.logo__mark {
  width: auto;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(184, 37, 63, 0.45));
  transition: filter var(--dur-base);
}
.logo:hover .logo__mark { filter: drop-shadow(0 4px 20px rgba(201, 162, 75, 0.55)); }

.logo__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__tag {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: 4px;
}

/* --- Nav --- */
.nav { margin-inline-start: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.4rem);
}

.nav__link {
  display: block;
  position: relative;
  padding: 0.55rem 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  transition: color var(--dur-base);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 0;
  height: 1.5px;
  background: var(--grad-gold);
  transform: translateX(-50%);
  transition: width var(--dur-base) var(--ease-out-soft);
  border-radius: 2px;
}
.nav__link:hover,
.nav__link.is-active { color: var(--color-text-primary); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--color-gold-soft); }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}

/* --- Language toggle --- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-hair);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: rgba(26, 11, 15, 0.6);
}
.lang-toggle__btn {
  padding: 0.4rem 0.72rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.lang-toggle__btn.is-active {
  background: var(--grad-accent);
  color: #fff;
}
.lang-toggle__btn:hover { color: var(--color-text-primary); }

/* --- Telegram icon button --- */
.tg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.35);
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base);
}
.tg-icon-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.55);
}
.tg-icon-btn svg { width: 20px; height: 20px; }

/* --- Burger --- */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border-hair);
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--color-gold-soft);
  transition: transform var(--dur-base) var(--ease-out-soft), opacity var(--dur-fast);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. PAGE HERO (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-hair);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(122, 17, 40, 0.4), transparent 70%),
    linear-gradient(180deg, rgba(36, 16, 21, 0.6), transparent);
  z-index: 0;
}
.page-hero__inner { position: relative; z-index: 1; text-align: center; }
.page-hero__title { margin-bottom: var(--sp-4); }
.page-hero__lead {
  max-width: 720px;
  margin-inline: auto;
  font-size: var(--fs-md);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--color-text-muted); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb li { list-style: none; }
.breadcrumb li:not(:last-child)::after { content: '·'; margin-inline-start: 0.5rem; color: var(--color-gold); }
.breadcrumb ol, .breadcrumb ul { display: contents; }

/* --------------------------------------------------------------------------
   9. CARDS & PANELS
   -------------------------------------------------------------------------- */
.panel {
  background: var(--grad-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-hairline);
}

.card {
  position: relative;
  background: var(--grad-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-soft),
              border-color var(--dur-base), box-shadow var(--dur-base);
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hair-2);
  box-shadow: var(--shadow-card-lg), var(--shadow-glow-maroon);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(122, 17, 40, 0.55), rgba(36, 16, 21, 0.9));
  border: 1px solid var(--color-border-hair);
  color: var(--color-gold);
  margin-bottom: var(--sp-4);
  flex: none;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.card__text { font-size: var(--fs-sm); }

.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* A CSS Grid item's automatic minimum size defaults to its content's
   min-content width. Text usually wraps fine, but a few things never do
   (a <select>'s option text, a long unbroken URL, a wide table) — left
   unchecked, that single item can force its whole track, and the page,
   wider than the viewport. min-width: 0 removes that floor everywhere a
   grid is used for page layout, so overflow gets clipped/wrapped inside
   the column instead of blowing the column out sideways. */
.grid > *,
.games-grid > *,
.footer__top > *,
.stat-strip > *,
.contact-cards > *,
.dlhero__grid > *,
.install > *,
.versions > *,
.version > *,
.gamesbar__inner > *,
.catgrid > *,
.hero__grid > *,
.ogbanner__caption > *,
.ogbanner__points,
.altrow > *,
.vip__ladder > *,
.steps > *,
.dlband > *,
.rg__grid > *,
.seoblock__cols > *,
.legal > *,
.deflist__row,
.story > *,
.trust-grid > *,
.values > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   10. GAME CARD — slot-cabinet bezel with gold hairline trace on hover
   -------------------------------------------------------------------------- */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-hair);
  isolation: isolate;
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur-base) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft),
              border-color var(--dur-base);
}
.game-card::before {
  /* rotating conic gold hairline trace */
  content: '';
  position: absolute;
  inset: -60%;
  z-index: 0;
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 300deg,
    rgba(201, 162, 75, 0.9) 340deg,
    rgba(224, 197, 131, 1) 352deg,
    transparent 360deg);
  opacity: 0;
  transition: opacity var(--dur-base);
  animation: traceSpin 2.6s linear infinite;
  animation-play-state: paused;
}
.game-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--r-md) - 1px);
  background: var(--color-surface);
  z-index: 1;
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--color-border-hair-2);
  box-shadow: var(--shadow-card-lg), var(--shadow-glow-maroon);
}
.game-card:hover::before,
.game-card:focus-visible::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes traceSpin { to { transform: rotate(360deg); } }

.game-card__media {
  display: block;
  position: relative;
  z-index: 2;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: linear-gradient(160deg, #24101a, #12080c);
}
.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-soft), filter var(--dur-base);
}
.game-card:hover .game-card__img { transform: scale(1.07); filter: saturate(1.12) brightness(1.05); }

/* permanent bottom scrim so the image blends into the info bar, plus a thin
   gold seam that reads as a slot-cabinet bezel rather than a flat app-store tile */
.game-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 62%, rgba(11, 5, 7, 0.7) 100%);
  pointer-events: none;
}
.game-card__media::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.game-card:hover .game-card__media::before,
.game-card:focus-visible .game-card__media::before { opacity: 1; }

.game-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11, 5, 7, 0.1) 30%, rgba(11, 5, 7, 0.82) 100%);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.game-card:hover .game-card__overlay,
.game-card:focus-visible .game-card__overlay { opacity: 1; }

.game-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #23120A;
  box-shadow: 0 8px 22px rgba(201, 162, 75, 0.45), 0 0 0 4px rgba(11, 5, 7, 0.55);
  transform: scale(0.6);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out-soft), opacity var(--dur-base);
}
.game-card__play svg {
  width: 17px;
  height: 17px;
  margin-inline-start: 2px;
}
.game-card:hover .game-card__play,
.game-card:focus-visible .game-card__play { transform: scale(1); opacity: 1; }

.game-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 1;
  position: relative;
  z-index: 2;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  border-top: 1px solid var(--color-border-hair);
}
.game-card__text { min-width: 0; }
.game-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.32;
  margin-bottom: 0.28rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card__meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.64rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.game-card__chip {
  flex: none;
  margin-top: 0.1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--color-border-hair-2);
  color: var(--color-gold);
  transition: background var(--dur-base), transform var(--dur-base) var(--ease-out-soft);
}
.game-card__chip svg { width: 13px; height: 13px; }
.game-card:hover .game-card__chip {
  background: var(--grad-gold);
  color: #23120A;
  transform: rotate(90deg);
}

.game-card__badge {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: var(--r-pill);
  background: rgba(11, 5, 7, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.game-card__badge::before {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.game-card__badge--hot {
  border-color: rgba(255, 138, 76, 0.55);
  color: #FFD9BC;
}
.game-card__badge--hot::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF8A4C'%3E%3Cpath d='M12 2c1 3-2 4-2 7a3 3 0 0 0 6 0c1 1 2 3 2 5a6 6 0 0 1-12 0c0-4 3-6 3-9 1 1 2 2 3 -3z'/%3E%3C/svg%3E");
}
.game-card__badge--gold {
  background: var(--grad-gold);
  color: #23120A;
  border-color: rgba(255, 255, 255, 0.35);
}
.game-card__badge--gold::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2323120A'%3E%3Cpath d='M3 8l4 3 5-6 5 6 4-3-2 11H5L3 8zm4 13h10v2H7z'/%3E%3C/svg%3E");
}
.game-card__badge--new {
  border-color: rgba(94, 210, 220, 0.5);
  color: #C6F3F3;
}
.game-card__badge--new::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235ED2DC'%3E%3Cpath d='M12 2l1.8 6.2L20 10l-6.2 1.8L12 18l-1.8-6.2L4 10l6.2-1.8z'/%3E%3C/svg%3E");
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: clamp(0.85rem, 0.5rem + 1.1vw, 1.5rem);
}

/* --------------------------------------------------------------------------
   11. DEVICE MOCKUP (landscape phone)
   -------------------------------------------------------------------------- */
.device {
  position: relative;
  width: 100%;
  perspective: 1400px;
}

.device__frame {
  position: relative;
  aspect-ratio: 2800 / 1280;
  border-radius: clamp(18px, 2.2vw, 30px);
  padding: clamp(7px, 0.85vw, 12px);
  background:
    linear-gradient(145deg, #4A3320 0%, #1B1013 22%, #0D0709 50%, #1B1013 78%, #4A3320 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(201, 162, 75, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(12px, 1.5vw, 20px);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.9);
}
.device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* screen glare sweep */
.device__screen::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: rotate(14deg);
  animation: screenGlare 7.5s var(--ease-in-out-soft) infinite;
  pointer-events: none;
}
@keyframes screenGlare {
  0%, 62%  { left: -70%; }
  92%, 100% { left: 130%; }
}

/* notch on the short edge (landscape = left side) */
.device__notch {
  position: absolute;
  left: clamp(3px, 0.35vw, 5px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(4px, 0.5vw, 7px);
  height: 24%;
  border-radius: var(--r-pill);
  background: #060405;
  z-index: 3;
}
.device__indicator {
  position: absolute;
  right: clamp(4px, 0.5vw, 7px);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 26%;
  border-radius: var(--r-pill);
  background: rgba(242, 233, 231, 0.35);
  z-index: 3;
}

/* Ambient glow behind device */
.device__glow {
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(122, 17, 40, 0.55) 0%, transparent 70%),
    radial-gradient(35% 35% at 70% 30%, rgba(201, 162, 75, 0.25) 0%, transparent 70%);
  filter: blur(24px);
  animation: glowBreathe 6s var(--ease-in-out-soft) infinite alternate;
}
@keyframes glowBreathe {
  from { opacity: 0.7; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1.06); }
}

/* Floating animation + 3D tilt */
.device--float .device__frame {
  transform: rotateX(6deg) rotateY(-9deg) rotateZ(0.6deg);
  animation: deviceFloat 7s var(--ease-in-out-soft) infinite alternate;
  transition: transform var(--dur-slow) var(--ease-out-soft);
}
.device--float:hover .device__frame {
  transform: rotateX(2deg) rotateY(-3deg) scale(1.02);
  animation-play-state: paused;
}
@keyframes deviceFloat {
  0%   { transform: rotateX(6deg) rotateY(-9deg) translateY(0) rotateZ(0.6deg); }
  100% { transform: rotateX(3deg) rotateY(-5deg) translateY(-16px) rotateZ(-0.4deg); }
}

/* Secondary stacked device */
.device-stack { position: relative; }
.device-stack__back {
  position: absolute;
  width: 62%;
  top: -14%;
  inset-inline-end: -6%;
  z-index: 0;
  opacity: 0.55;
  filter: blur(0.4px);
  animation: deviceFloatBack 9s var(--ease-in-out-soft) infinite alternate;
}
.device-stack__back .device__frame {
  transform: rotateX(10deg) rotateY(-14deg) rotateZ(3deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 162, 75, 0.18);
}
.device-stack__front { position: relative; z-index: 2; }
@keyframes deviceFloatBack {
  from { transform: translateY(0); }
  to   { transform: translateY(-22px); }
}

/* Floating spec chips around the mockup */
.device-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(18, 7, 9, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-hair-2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  white-space: nowrap;
}
.device-chip strong { color: var(--color-gold); }
.device-chip svg { width: 15px; height: 15px; color: var(--color-gold); flex: none; }
.device-chip--a {
  top: 4%;
  inset-inline-start: -6%;
  animation: chipFloatA 5.5s var(--ease-in-out-soft) infinite alternate;
}
.device-chip--b {
  bottom: 8%;
  inset-inline-end: -4%;
  animation: chipFloatB 6.5s var(--ease-in-out-soft) infinite alternate;
}
@keyframes chipFloatA { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes chipFloatB { from { transform: translateY(0); } to { transform: translateY(12px); } }

/* Below the two-column breakpoint the landscape frame goes full width and the
   chips would sit on top of the screen content — park them outside instead. */
@media (max-width: 1023px) {
  .device-chip {
    font-size: 0.66rem;
    padding: 0.45rem 0.8rem;
  }
  .device-chip--a { top: -30px; inset-inline-start: 0; }
  .device-chip--b { bottom: -30px; inset-inline-end: 0; }
  @keyframes chipFloatA { from { transform: translateY(0); } to { transform: translateY(-6px); } }
  @keyframes chipFloatB { from { transform: translateY(0); } to { transform: translateY(6px); } }
  .device-stack__back { width: 55%; top: -10%; inset-inline-end: -2%; }
}

/* --------------------------------------------------------------------------
   12. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-5);
  border-block: 1px solid var(--color-border-hair);
  background: linear-gradient(180deg, rgba(26, 11, 15, 0.6), rgba(11, 5, 7, 0.8));
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 12vw, 200px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--color-bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--color-bg), transparent); }

.marquee__track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  animation: marqueeScroll 52s linear infinite;
}
.marquee:hover .marquee__track,
.marquee__track:focus-within { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee__item {
  flex: none;
  width: clamp(96px, 11vw, 132px);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out-soft), border-color var(--dur-base), box-shadow var(--dur-base);
}
.marquee__item:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-glow-gold);
}
.marquee__item img {
  width: 100%;
  aspect-ratio: 211 / 260;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   13. ACCORDION
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  text-align: start;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--dur-base);
  line-height: 1.45;
}
.accordion__trigger:hover { color: var(--color-gold-soft); }
.accordion__sign {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--color-border-hair-2);
  position: relative;
  transition: background var(--dur-base), transform var(--dur-base) var(--ease-out-soft);
}
.accordion__sign::before,
.accordion__sign::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--color-gold);
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.accordion__sign::before { width: 11px; height: 1.5px; }
.accordion__sign::after  { width: 1.5px; height: 11px; }
.accordion__item.is-open .accordion__sign { background: rgba(122, 17, 40, 0.5); transform: rotate(180deg); }
.accordion__item.is-open .accordion__sign::after { opacity: 0; }

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out-soft);
}
.accordion__inner {
  padding: 0 0 1.5rem;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  max-width: 76ch;
}
.accordion__inner p { margin-bottom: var(--sp-3); }
.accordion__inner ul { padding-left: 1.2rem; margin-bottom: var(--sp-3); }
html[dir='rtl'] .accordion__inner ul { padding-left: 0; padding-right: 1.2rem; }
.accordion__inner li { margin-bottom: 0.35rem; }
.accordion__inner li::marker { color: var(--color-gold); }

/* --------------------------------------------------------------------------
   14. TABLES
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--grad-surface);
  box-shadow: var(--shadow-card);
}
.table {
  min-width: 520px;
  font-size: var(--fs-sm);
}
.table th, .table td {
  padding: 0.95rem 1.15rem;
  text-align: start;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.table thead th {
  background: rgba(122, 17, 40, 0.22);
  color: var(--color-gold-soft);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur-fast); }
.table tbody tr:hover { background: rgba(46, 21, 27, 0.45); }
.table td strong { color: var(--color-text-primary); }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: var(--z-base);
  margin-top: var(--sp-8);
  background: linear-gradient(180deg, rgba(18, 7, 9, 0.9), #080406);
  border-top: 1px solid var(--color-border-hair);
}
.footer__top {
  display: grid;
  gap: var(--sp-7);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  grid-template-columns: 1fr;
}
.footer__brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--sp-4);
  filter: drop-shadow(0 4px 16px rgba(184, 37, 63, 0.4));
}
.footer__about { font-size: var(--fs-sm); max-width: 46ch; }
.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-4);
}
.footer__links li { margin-bottom: 0.6rem; }
.footer__links a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color var(--dur-fast), padding-inline-start var(--dur-fast);
  display: inline-block;
}
.footer__links a:hover {
  color: var(--color-gold-soft);
  padding-inline-start: 5px;
}

.footer__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }

.footer__disclaimer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.85;
}
.footer__disclaimer p { margin-bottom: var(--sp-3); }
.footer__disclaimer strong { color: var(--color-text-secondary); }

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-5);
}
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--color-border-hair);
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: rgba(26, 11, 15, 0.6);
}
.footer__badge--18 { color: var(--color-error); border-color: rgba(224, 71, 92, 0.35); }

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__legal-links a { transition: color var(--dur-fast); }
.footer__legal-links a:hover { color: var(--color-gold); }

/* --------------------------------------------------------------------------
   16. COOKIE BANNER
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 160%);
  width: min(920px, calc(100% - 2rem));
  z-index: var(--z-toast);
  background: rgba(18, 7, 9, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-border-hair-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-lg);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  transition: transform var(--dur-slow) var(--ease-out-soft), opacity var(--dur-slow);
  opacity: 0;
  visibility: hidden;
}
.cookie.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookie__text { font-size: var(--fs-xs); max-width: 60ch; }
.cookie__text a { color: var(--color-gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   17. FLOATING TELEGRAM + BACK TO TOP
   -------------------------------------------------------------------------- */
.float-stack {
  position: fixed;
  inset-inline-end: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--z-sticky);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.float-tg {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  box-shadow: 0 8px 26px rgba(42, 171, 238, 0.45);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.float-tg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(42, 171, 238, 0.6);
  animation: tgRipple 2.6s var(--ease-out-soft) infinite;
}
.float-tg:hover { transform: scale(1.08); }
.float-tg svg { width: 26px; height: 26px; }
@keyframes tgRipple {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 11, 15, 0.9);
  border: 1px solid var(--color-border-hair-2);
  color: var(--color-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur-base) var(--ease-out-soft);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--color-accent); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   18. SCROLL REVEAL SYSTEM
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) perspective(900px) rotateX(7deg);
  transform-origin: center top;
  transition:
    opacity 700ms var(--ease-out-soft),
    transform 800ms var(--ease-out-soft);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) perspective(900px) rotateX(0deg);
}
[data-reveal='left']  { transform: translateX(-36px); }
[data-reveal='right'] { transform: translateX(36px); }
[data-reveal='left'].is-revealed,
[data-reveal='right'].is-revealed { transform: translateX(0); }
[data-reveal='scale'] { transform: scale(0.94); }
[data-reveal='scale'].is-revealed { transform: scale(1); }

/* --------------------------------------------------------------------------
   19. MISC COMPONENTS
   -------------------------------------------------------------------------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border-hair);
  background: rgba(26, 11, 15, 0.55);
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  transition: all var(--dur-fast);
}
.pill svg { width: 14px; height: 14px; color: var(--color-gold); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat {
  background: var(--grad-surface);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.7rem) 1rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  display: block;
}
.stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  display: block;
}

.note {
  border-inline-start: 3px solid var(--color-gold);
  background: rgba(122, 17, 40, 0.14);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  margin-block: var(--sp-5);
}
.note--warn {
  border-color: var(--color-error);
  background: rgba(224, 71, 92, 0.1);
}
.note__title {
  display: block;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.tg-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out-soft), border-color var(--dur-base), box-shadow var(--dur-base);
  height: 100%;
}
.tg-card:hover {
  transform: translateY(-5px);
  border-color: rgba(42, 171, 238, 0.45);
  box-shadow: var(--shadow-card-lg), 0 0 26px rgba(42, 171, 238, 0.18);
}
.tg-card__icon {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.4);
}
.tg-card__icon svg { width: 26px; height: 26px; }
.tg-card__title { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.tg-card__handle {
  font-size: var(--fs-xs);
  color: #5FC4F5;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  display: block;
}
.tg-card__text { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }

/* Keyword / semantic tag cloud */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tagcloud__item {
  font-size: var(--fs-xs);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-xs);
  background: rgba(46, 21, 27, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--dur-fast);
}
.tagcloud__item:hover {
  color: var(--color-gold-soft);
  border-color: var(--color-border-hair-2);
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE — 768px
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .header__cta { display: none; }
}

@media (max-width: 560px) {
  .logo__mark { height: 42px; }
  .logo__name { font-size: 1.02rem; letter-spacing: 0.1em; }
  .logo__tag { font-size: 0.54rem; letter-spacing: 0.24em; }
  .header__inner { min-height: 70px; gap: var(--sp-3); }
  .lang-toggle__btn { padding: 0.35rem 0.55rem; font-size: 0.64rem; }
  .tg-icon-btn { width: 36px; height: 36px; }
  .tg-icon-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .logo__type { display: none; }
}

@media (max-width: 1023px) {
  .burger { display: block; }

  /* backdrop-filter would make the header a containing block for the
     position:fixed drawer, trapping it inside the header box — so drop it
     here and use a solid surface instead. */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(11, 5, 7, 0.94);
  }
  .header.is-scrolled { background: rgba(11, 5, 7, 0.97); }

  /* keep the burger (which becomes the close button) above the open drawer */
  .burger {
    position: relative;
    z-index: calc(var(--z-drawer) + 1);
  }
  .burger.is-open { border-color: var(--color-border-hair-2); }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: linear-gradient(180deg, #150A0D, #0B0507);
    border-inline-start: 1px solid var(--color-border-hair);
    padding: 6rem 1.75rem 2rem;
    transform: translateX(105%);
    transition: transform var(--dur-slow) var(--ease-out-soft);
    z-index: var(--z-drawer);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  }
  html[dir='rtl'] .nav { inset: 0 auto 0 0; transform: translateX(-105%); }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--color-border-soft);
    font-size: var(--fs-md);
  }
  .nav__link::after { left: 0; transform: none; }
  .nav__link:hover::after, .nav__link.is-active::after { width: 46px; }

  .nav__cta { margin-top: var(--sp-5); display: block; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 2, 3, 0.7);
    backdrop-filter: blur(3px);
    /* must sit BELOW the header, because the drawer lives inside the
       header's stacking context */
    z-index: calc(var(--z-header) - 5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (min-width: 1024px) {
  .nav__cta { display: none; }
  .nav-backdrop { display: none; }
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (min-width: 1200px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1.7fr 1fr 1fr 1.15fr; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
}

/* --------------------------------------------------------------------------
   21. REDUCED MOTION
   -------------------------------------------------------------------------- */
@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 !important; transform: none !important; }
  .device--float .device__frame { transform: none; }
  .marquee__track { animation: none; }
  .weave__felt, .weave__vignette, .weave__sheen { animation: none; }
}

/* --------------------------------------------------------------------------
   22. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .weave, .header, .footer, .cookie, .float-stack, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
