/* ==========================================================================
   B9 GAME — playb9game.pk
   Main stylesheet. Mobile-first: base -> 768px -> 1200px
   ========================================================================== */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

/* Components below set an explicit `display`, which would otherwise beat the
   UA stylesheet's [hidden] rule. Keep the attribute authoritative. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overflow-wrap: break-word;
  width: 100%;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

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

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

a {
  color: var(--bronze-700);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--gold-deep); }

ul, ol { list-style: none; }

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

hr { border: 0; height: 1px; background: var(--border); }

::selection {
  background: var(--gold-pale);
  color: var(--bronze-950);
}

/* Focus visibility — WCAG AA */
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: var(--z-top);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bronze-950);
  color: var(--gold-pale);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  transition: top var(--t-base) var(--ease);
}

.skip-link:focus { top: 0; color: var(--gold-pale); }

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

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

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

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); line-height: 1.16; letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-lg); }

p { line-height: var(--lh-loose); }

strong, b { font-weight: 700; color: var(--bronze-800); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--grad-gold);
  flex: none;
}

.eyebrow--center::after {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--grad-gold);
  flex: none;
}

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--text-muted);
}

.text-gold { color: var(--gold-deep); }
.text-bronze { color: var(--bronze-800); }

/* Gold foil text treatment for display numerals */
.foil {
  background: linear-gradient(135deg, #B8871E 0%, #E4C463 30%, #A87C1C 55%, #D9BA55 80%, #B8871E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-deep);
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-nar); }
.container--wide { max-width: var(--container-wide); }

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--alt { background: var(--bg-alt); }

.section--tint {
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(201,151,42,0.11) 0%, rgba(201,151,42,0) 62%),
    var(--ivory-warm);
}

.section--deep {
  background: var(--grad-bronze);
  color: var(--bronze-100);
}

.section--deep h2,
.section--deep h3 { color: var(--gold-pale); }

.section--deep p { color: rgba(239, 228, 210, 0.8); }

/* Hairline foil divider between bands */
.section--foil-top::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: var(--grad-foil);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow { margin-bottom: var(--sp-4); }

.section-head h2 { margin-bottom: var(--sp-4); }

.section-head p {
  color: var(--text-muted);
  font-size: var(--fs-md);
}

.grid { display: grid; gap: var(--sp-6); }

.stack > * + * { margin-top: var(--sp-4); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
  --btn-py: 0.875rem;
  --btn-px: 1.75rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-base) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.btn svg { flex: none; }

/* Primary — gold foil */
.btn--gold {
  background: var(--grad-gold);
  color: var(--bronze-950);
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,0.42);
}

.btn--gold::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 12%, rgba(255,255,255,0.65) 34%, transparent 56%);
  transform: translateX(-120%);
  transition: transform 0.85s var(--ease-out);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  color: var(--bronze-950);
  transform: translateY(-3px);
  box-shadow: var(--sh-gold-strong), inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn--gold:hover::after,
.btn--gold:focus-visible::after { transform: translateX(120%); }

.btn--gold:active { transform: translateY(-1px); }

/* Secondary — bronze outline */
.btn--outline {
  background: transparent;
  color: var(--bronze-800);
  border: 1.5px solid var(--bronze-300);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  color: var(--bronze-950);
  border-color: var(--gold);
  background: var(--gold-wash);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

/* Solid bronze */
.btn--bronze {
  background: var(--grad-bronze);
  color: var(--gold-pale);
  box-shadow: var(--sh-md);
}

.btn--bronze:hover,
.btn--bronze:focus-visible {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

/* Telegram brand button */
.btn--telegram {
  background: linear-gradient(135deg, #37B3E8 0%, #229ED9 55%, #1B8CC4 100%);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(34, 158, 217, 0.62);
}

.btn--telegram:hover,
.btn--telegram:focus-visible {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(34, 158, 217, 0.72);
}

.btn--ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--gold-pale);
  border: 1.5px solid rgba(232, 213, 160, 0.35);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: rgba(232, 213, 160, 0.16);
  border-color: var(--gold-pale);
  color: var(--white);
  transform: translateY(-3px);
}

.btn--lg { --btn-py: 1.0625rem; --btn-px: 2.25rem; font-size: var(--fs-base); }
.btn--sm { --btn-py: 0.6rem; --btn-px: 1.25rem; font-size: var(--fs-xs); }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Text link with animated gold rule */
.link-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 3px;
}

.link-gold::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}

.link-gold:hover::after,
.link-gold:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-gold svg { transition: transform var(--t-base) var(--ease); }
.link-gold:hover svg { transform: translateX(4px); }

/* ==========================================================================
   5. BADGES / PILLS
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  background: var(--gold-wash);
  color: var(--bronze-800);
  border: 1px solid var(--border-gold);
}

.pill--emerald {
  background: rgba(63, 163, 77, 0.1);
  color: var(--emerald-deep);
  border-color: rgba(63, 163, 77, 0.28);
}

.pill--light {
  background: rgba(255,255,255,0.1);
  color: var(--gold-pale);
  border-color: rgba(232,213,160,0.3);
}

.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(63,163,77,0.6);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(63,163,77,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(63,163,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,163,77,0); }
}

/* ==========================================================================
   6. ANNOUNCEMENT STRIP
   ========================================================================== */

.announce {
  position: relative;
  background: var(--grad-bronze);
  color: var(--bronze-100);
  font-size: var(--fs-xs);
  z-index: calc(var(--z-header) + 1);
}

.announce::after {
  content: '';
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 1px;
  background: var(--grad-foil);
}

.announce__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--strip-h);
  padding-block: 0.4rem;
}

.announce__msg {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  letter-spacing: 0.03em;
}

.announce__msg strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.announce__links {
  display: none;
  align-items: center;
  gap: var(--sp-5);
}

.announce__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--bronze-100);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
}

.announce__links a:hover { color: var(--gold-bright); }

/* ==========================================================================
   7. HEADER / NAVIGATION
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.header.is-stuck {
  background: rgba(251, 246, 238, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 28px -14px rgba(70, 43, 20, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* ---- Logo plaque: dark ground so the white wordmark stays legible ---- */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--grad-bronze);
  border: 1px solid rgba(201, 151, 42, 0.4);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(232, 213, 160, 0.18);
  transition: transform var(--t-base) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.brand:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--sh-md), 0 0 0 3px rgba(201,151,42,0.12), inset 0 1px 0 rgba(232,213,160,0.24);
}

.brand__img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.brand--footer {
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(232, 213, 160, 0.32);
}

.brand--footer .brand__img { height: 44px; }

.brand--lg { padding: 0.6rem 1.15rem; }
.brand--lg .brand__img { height: 44px; }

/* ---- Desktop nav ---- */
.nav { display: none; }

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

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--bronze-700);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--bronze-950); }

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__link[aria-current='page'] {
  color: var(--bronze-950);
}

.nav__link[aria-current='page']::after { transform: scaleX(1); }

/* ---- Header actions ---- */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header__actions .btn { display: none; }

/* Round icon button (telegram in header) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--telegram);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--telegram);
  background: #EAF7FD;
  box-shadow: 0 8px 20px -8px rgba(34,158,217,0.5);
  color: var(--telegram);
}

.icon-btn svg { width: 20px; height: 20px; }

/* ---- Hamburger ---- */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--cream);
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.burger:hover { border-color: var(--gold); background: var(--gold-wash); }

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--bronze-800);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
  transform-origin: center;
}

.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile drawer ---- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(46, 27, 13, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}

.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-drawer);
  width: min(88vw, 380px);
  height: 100dvh;
  padding: var(--sp-6) var(--sp-6) var(--sp-10);
  background: var(--ivory);
  border-left: 1px solid var(--border-gold);
  box-shadow: -24px 0 60px -30px rgba(46,27,13,0.45);
  transform: translateX(100%);
  /* visibility keeps the off-canvas links out of the tab order while closed */
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease-out),
              visibility var(--t-slow) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--bronze-800);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.drawer__close:hover { border-color: var(--gold); transform: rotate(90deg); }

.drawer__list { display: flex; flex-direction: column; }

.drawer__list li { border-bottom: 1px solid var(--border); }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--bronze-800);
  transition: color var(--t-base) var(--ease), padding-left var(--t-base) var(--ease);
}

.drawer__link::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.drawer__link:hover,
.drawer__link[aria-current='page'] {
  color: var(--gold-deep);
  padding-left: var(--sp-3);
}

.drawer__link:hover::after,
.drawer__link[aria-current='page']::after { opacity: 1; }

.drawer__foot { margin-top: auto; display: grid; gap: var(--sp-3); }

.drawer__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

/* ==========================================================================
   8. DEVICE MOCKUP (reusable)
   ========================================================================== */

.device {
  position: relative;
  width: var(--device-w, 280px);
  flex: none;
  margin-inline: auto;
}

.device__frame {
  position: relative;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(155deg, #55341B 0%, #2E1B0D 52%, #1C1008 100%);
  box-shadow:
    0 0 0 1.5px rgba(201, 151, 42, 0.55),
    0 2px 3px rgba(255, 226, 168, 0.28) inset,
    var(--sh-xl);
  overflow: hidden;
}

.device__frame::before {
  /* top speaker / notch island */
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(12, 8, 4, 0.9);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
  z-index: 3;
}

.device__frame::after {
  /* glass sheen */
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 33px;
  background: linear-gradient(122deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.04) 26%, rgba(255,255,255,0) 48%);
  pointer-events: none;
  z-index: 2;
}

.device__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
  background: #100A05;
}

/* Side hardware buttons */
.device__key {
  position: absolute;
  right: -2.5px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7A4B26, #3E2413);
}

.device__key--a { top: 128px; height: 54px; }

.device__key--b {
  left: -2.5px;
  right: auto;
  top: 104px;
  height: 30px;
}

.device__key--c {
  left: -2.5px;
  right: auto;
  top: 148px;
  height: 46px;
}

/* Gold halo behind device */
.device::before {
  content: '';
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,151,42,0.32), rgba(201,151,42,0.06) 62%, transparent 100%);
  filter: blur(6px);
}

.device--float { animation: device-float 6.5s var(--ease) infinite; }

@keyframes device-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(-0.6deg); }
}

/* Tilted presentation variant */
.device--tilt { transform: rotate(-3deg); }
.device--tilt-r { transform: rotate(3deg); }

/* Floating stat chips pinned to the mockup */
.device-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-md);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  box-shadow: var(--sh-lg);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--bronze-800);
  white-space: nowrap;
}

.device-chip__ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--grad-gold-soft);
  color: var(--bronze-800);
}

.device-chip__ico svg { width: 16px; height: 16px; }

.device-chip small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.device-chip--tl { top: 12%; left: -14%; animation: chip-float 5.5s var(--ease) infinite; }
.device-chip--br { bottom: 16%; right: -16%; animation: chip-float 6.8s var(--ease) 0.8s infinite; }
.device-chip--bl { bottom: 6%; left: -10%; animation: chip-float 7.4s var(--ease) 0.4s infinite; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* ==========================================================================
   9. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  background: var(--grad-hero);
}

.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 1px;
  background: var(--grad-foil);
}

.hero__grid {
  position: relative;
  z-index: var(--z-decor);
  display: grid;
  gap: clamp(2.5rem, 2rem + 4vw, 4rem);
  align-items: center;
}

.hero__copy { max-width: 620px; }

.hero__badge { margin-bottom: var(--sp-5); }

.hero h1 { margin-bottom: var(--sp-5); }

.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-6);
  max-width: 55ch;
}

.hero__lead strong { color: var(--bronze-800); }

.hero__cta { margin-bottom: var(--sp-6); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-gold);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bronze-700);
}

.hero__meta-item svg {
  width: 17px; height: 17px;
  color: var(--gold-deep);
  flex: none;
}

/* Hero stage / decorative layer */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.hero__decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.85;
}

.decor--ring-1 {
  width: 320px; height: 320px;
  border: 1px solid rgba(201,151,42,0.34);
  top: 4%; left: 50%;
  transform: translateX(-50%);
}

.decor--ring-2 {
  width: 430px; height: 430px;
  border: 1px dashed rgba(122,75,38,0.2);
  top: 14%; left: 50%;
  transform: translateX(-50%);
}

.decor--blob {
  width: 260px; height: 260px;
  background: radial-gradient(closest-side, rgba(232,213,160,0.55), transparent 70%);
  filter: blur(24px);
  top: 8%; right: -6%;
  border-radius: 50%;
}

/* Small floating gold coins/diamonds */
.decor-coin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,0.5);
  color: var(--bronze-950);
  font-weight: 800;
  font-size: 0.75rem;
  pointer-events: none;
}

.decor-coin--1 { width: 46px; height: 46px; top: 6%; left: 2%; animation: orbit-a 9s var(--ease) infinite; }
.decor-coin--2 { width: 32px; height: 32px; bottom: 12%; left: 12%; animation: orbit-b 11s var(--ease) infinite; }
.decor-coin--3 { width: 26px; height: 26px; top: 20%; right: 4%; animation: orbit-a 7.5s var(--ease) 1s infinite; }

@keyframes orbit-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(10px, -18px) rotate(14deg); }
  66%      { transform: translate(-8px, -8px) rotate(-8deg); }
}

@keyframes orbit-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-14px, -22px) rotate(-16deg); }
}

/* Parallax hook — JS writes --px / --py */
.parallax {
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

/* Hero trust bar under the fold */
.hero__trustbar {
  position: relative;
  z-index: var(--z-decor);
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-gold);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  text-align: center;
}

.hero__trustbar .stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  display: block;
}

.hero__trustbar .stat__label {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   10. CARDS
   ========================================================================== */

.card {
  position: relative;
  padding: var(--sp-7);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--sh-lg);
}

.card h3 { margin-bottom: var(--sp-3); }

.card p { color: var(--text-muted); font-size: var(--fs-sm); }

.card--flat:hover { transform: none; }

.card__ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--bronze-800);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform var(--t-slow) var(--ease-spring), background var(--t-base) var(--ease);
}

.card__ico svg { width: 27px; height: 27px; }

.card:hover .card__ico {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  background: var(--grad-gold);
}

/* numbered corner index */
.card__index {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bronze-100);
  transition: color var(--t-base) var(--ease);
  user-select: none;
}

.card:hover .card__index { color: var(--gold-pale); }

.card__list {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-gold);
}

/* Feature card with a top foil rule that draws on hover */
.card--foil::before {
  content: '';
  position: absolute;
  top: 0; left: var(--sp-7); right: var(--sp-7);
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}

.card--foil:hover::before { transform: scaleX(1); }

/* ==========================================================================
   11. GAME CARDS / GRID
   ========================================================================== */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.game-card {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--sh-lg), 0 0 0 3px rgba(201,151,42,0.14);
}

.game-card__media {
  position: relative;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: var(--bronze-100);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.game-card:hover .game-card__media img { transform: scale(1.07); }

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(46,27,13,0) 30%, rgba(46,27,13,0.78) 100%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.game-card:hover .game-card__overlay,
.game-card:focus-visible .game-card__overlay { opacity: 1; }

.game-card__play {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  color: var(--bronze-950);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform var(--t-base) var(--ease-spring);
  box-shadow: var(--sh-gold);
}

.game-card:hover .game-card__play,
.game-card:focus-visible .game-card__play { transform: translateY(0); }

.game-card__tag {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 2;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-xs);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  background: var(--grad-gold);
  color: var(--bronze-950);
  box-shadow: var(--sh-sm);
}

.game-card__tag--hot { background: linear-gradient(135deg, #E2622F, #C4381B); color: #FFF3EA; }
.game-card__tag--new { background: linear-gradient(135deg, #4FBF4A, #2C7A38); color: #F0FFF1; }

.game-card__body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

.game-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--bronze-800);
  line-height: 1.3;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.game-card__rtp { color: var(--gold-deep); }

/* Filter toolbar */
.filters {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.filters__label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  flex: none;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--ivory);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bronze-700);
  transition: all var(--t-base) var(--ease);
}

.chip:hover {
  border-color: var(--gold);
  background: var(--gold-wash);
  color: var(--bronze-900);
}

.chip.is-active {
  background: var(--grad-bronze);
  border-color: var(--bronze-900);
  color: var(--gold-pale);
  box-shadow: var(--sh-sm);
}

.field {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--bronze-800);
  font-size: var(--fs-sm);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--bronze-300); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,42,0.16);
}

.field--search input { padding-left: 2.75rem; }

.field__ico {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--bronze-400);
  pointer-events: none;
}

.field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--bronze-700);
}

.filters__count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.filters__count b { color: var(--gold-deep); }

.no-results {
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed var(--bronze-300);
  background: var(--cream-2);
  color: var(--text-muted);
}

.no-results h3 { margin-bottom: var(--sp-2); }

/* ==========================================================================
   12. SCREENSHOT SLIDER
   ========================================================================== */

.slider { position: relative; }

.slider__viewport {
  overflow: hidden;
  padding-block: var(--sp-6);
  margin-inline: calc(var(--gutter) * -0.5);
  padding-inline: calc(var(--gutter) * 0.5);
  cursor: grab;
}

.slider__viewport.is-dragging { cursor: grabbing; }

.slider__track {
  display: flex;
  gap: var(--sp-5);
  transition: transform var(--t-slow) var(--ease-out);
  will-change: transform;
}

.slider__slide {
  flex: 0 0 calc((100% - (var(--sp-5) * (var(--per-view) - 1))) / var(--per-view));
  --per-view: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-out);
}

.slider__slide .device { --device-w: min(240px, 76vw); }

.slider__slide:not(.is-active) { opacity: 0.55; transform: scale(0.94); }

.slider__caption { text-align: center; max-width: 260px; }

.slider__caption h3 {
  font-size: var(--fs-md);
  margin-bottom: 0.25rem;
}

.slider__caption p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.slider__arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--bronze-800);
  box-shadow: var(--sh-sm);
  transition: all var(--t-base) var(--ease);
}

.slider__arrow:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--grad-gold);
  color: var(--bronze-950);
  transform: translateY(-2px);
  box-shadow: var(--sh-gold);
}

.slider__arrow:disabled { opacity: 0.35; cursor: not-allowed; }

.slider__arrow svg { width: 20px; height: 20px; }

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

.slider__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bronze-200);
  transition: all var(--t-base) var(--ease);
}

.slider__dot:hover { background: var(--bronze-300); }

.slider__dot.is-active {
  width: 30px;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
}

/* ==========================================================================
   13. OG BANNER SHOWCASE
   ========================================================================== */

.banner-frame {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(8px, 1.4vw, 14px);
  background: var(--grad-gold);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(201,151,42,0.4);
  overflow: hidden;
}

.banner-frame::after {
  /* slow foil sweep across the frame */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 46%, transparent 62%);
  transform: translateX(-100%);
  animation: foil-sweep 7s var(--ease) infinite;
  pointer-events: none;
}

@keyframes foil-sweep {
  0%, 62%  { transform: translateX(-100%); }
  100%     { transform: translateX(100%); }
}

.banner-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: calc(var(--r-xl) - 8px);
  display: block;
}

.banner-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-6);
}

.banner-caption span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--bronze-700);
}

.banner-caption svg { width: 18px; height: 18px; color: var(--gold-deep); }

/* ==========================================================================
   14. BONUS SPOTLIGHT / COUNTERS
   ========================================================================== */

.bonus {
  position: relative;
  overflow: hidden;
  background: var(--grad-bronze);
  color: var(--bronze-100);
}

.bonus::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 82% 22%, rgba(201,151,42,0.3) 0%, transparent 64%),
    radial-gradient(560px 380px at 10% 92%, rgba(232,213,160,0.14) 0%, transparent 62%);
  pointer-events: none;
}

.bonus__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}

.bonus h2 { color: var(--gold-pale); }

.bonus p { color: rgba(239, 228, 210, 0.82); }

.bonus__amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.6rem + 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-block: var(--sp-4) var(--sp-2);
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}

.bonus__cur {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bonus__sub {
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(232, 213, 160, 0.75);
  font-weight: 600;
  margin-bottom: var(--sp-6);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.stat {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(232, 213, 160, 0.2);
  backdrop-filter: blur(4px);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 213, 160, 0.5);
  background: rgba(255,255,255,0.085);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold-bright);
  display: block;
}

.stat__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(239, 228, 210, 0.72);
  font-weight: 600;
}

/* Light variant of the stat grid */
.stats--light .stat {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--sh-sm);
}

.stats--light .stat:hover { border-color: var(--border-gold); background: var(--cream); }
.stats--light .stat__num { color: var(--gold-deep); }
.stats--light .stat__label { color: var(--text-muted); }

/* Wide stat grid — 2 up on mobile, 4 up from tablet */
.stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Bonus tier table */
.tier-table {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}

.tier-table table { font-size: var(--fs-sm); }

.tier-table th,
.tier-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.tier-table thead th {
  background: var(--grad-bronze);
  color: var(--gold-pale);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-bottom: 0;
}

.tier-table tbody tr:last-child td { border-bottom: 0; }

.tier-table tbody tr { transition: background-color var(--t-fast) var(--ease); }
.tier-table tbody tr:hover { background: var(--gold-wash); }

.tier-table td:first-child { font-weight: 700; color: var(--bronze-800); }
.tier-table td strong { color: var(--gold-deep); }

/* ==========================================================================
   15. STEPS — connected by an animated gold line
   ========================================================================== */

.steps {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  counter-reset: step;
}

.steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: var(--bronze-200);
  z-index: 0;
}

.steps::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 30px;
  width: 2px;
  height: 0;
  background: var(--grad-gold);
  z-index: 1;
  transition: height 1.6s var(--ease-out);
}

.steps.is-revealed::after { height: calc(100% - 60px); }

.step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.step__num {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--bronze-200);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--bronze-400);
  transition: all var(--t-slow) var(--ease-spring);
}

.step.is-revealed .step__num {
  border-color: var(--gold);
  background: var(--grad-gold);
  color: var(--bronze-950);
  box-shadow: var(--sh-gold);
}

.step__body { padding-top: var(--sp-1); }

.step__body h3 { margin-bottom: var(--sp-2); }

.step__body p { color: var(--text-muted); font-size: var(--fs-sm); }

.step__note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--bronze-800);
}

.step__note svg { width: 15px; height: 15px; color: var(--gold-deep); flex: none; }

/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */

.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  height: 100%;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.quote-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--sh-lg);
}

.quote-card__stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.quote-card__stars svg { width: 16px; height: 16px; }

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  line-height: 1.62;
  color: var(--bronze-800);
}

.quote-card__who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-gold);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bronze-800);
}

.quote-card__name {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--bronze-800);
  line-height: 1.3;
}

.quote-card__city {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   17. TELEGRAM CARDS
   ========================================================================== */

.tg-grid {
  display: grid;
  gap: var(--sp-5);
}

.tg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-7);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.tg-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34,158,217,0.14), transparent 72%);
  transition: transform var(--t-slow) var(--ease-out);
}

.tg-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34,158,217,0.42);
  box-shadow: var(--sh-lg);
}

.tg-card:hover::before { transform: scale(1.28); }

.tg-card--gold::before { background: radial-gradient(closest-side, rgba(201,151,42,0.2), transparent 72%); }
.tg-card--gold:hover { border-color: var(--border-gold); }

.tg-card__ico {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #37B3E8, #229ED9);
  color: var(--white);
  box-shadow: 0 10px 26px -10px rgba(34,158,217,0.6);
  position: relative;
}

.tg-card--gold .tg-card__ico {
  background: var(--grad-gold);
  color: var(--bronze-950);
  box-shadow: var(--sh-gold);
}

.tg-card__ico svg { width: 32px; height: 32px; }

.tg-card h3 { position: relative; }

.tg-card p { color: var(--text-muted); font-size: var(--fs-sm); position: relative; }

.tg-card ul { display: grid; gap: var(--sp-2); position: relative; }

.tg-card li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.tg-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.42em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
}

.tg-card li::after {
  content: '';
  position: absolute;
  left: 5px; top: 0.68em;
  width: 4px; height: 7px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(42deg);
}

.tg-card .btn { margin-top: auto; position: relative; }

.tg-card__handle {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--telegram);
  position: relative;
}

.tg-card--gold .tg-card__handle { color: var(--gold-deep); }

/* ==========================================================================
   18. FAQ ACCORDION
   ========================================================================== */

.faq { display: grid; gap: var(--sp-3); }

.faq__item {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.faq__item.is-open {
  border-color: var(--border-gold);
  box-shadow: var(--sh-md);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--bronze-800);
  transition: color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.faq__q:hover { color: var(--gold-deep); background: var(--cream-2); }

.faq__item.is-open .faq__q { color: var(--gold-deep); }

.faq__icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--gold-wash);
  transition: transform var(--t-slow) var(--ease-spring), background var(--t-base) var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--bronze-800);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: opacity var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.faq__icon::before { width: 11px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 11px; }

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
  background: var(--grad-gold);
}

.faq__item.is-open .faq__icon::after { opacity: 0; }

.faq__a {
  height: 0;
  overflow: hidden;
  transition: height var(--t-slow) var(--ease-out);
}

.faq__a-inner {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
}

.faq__a-inner p + p { margin-top: var(--sp-3); }

.faq__a-inner ul {
  margin-top: var(--sp-3);
  display: grid;
  gap: var(--sp-2);
}

.faq__a-inner li {
  position: relative;
  padding-left: 1.4rem;
}

.faq__a-inner li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   19. PAGE HEADER (inner pages)
   ========================================================================== */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  background:
    radial-gradient(760px 380px at 80% 0%, rgba(201,151,42,0.16) 0%, transparent 62%),
    linear-gradient(180deg, #FBF6EE 0%, #F5EBDB 100%);
  border-bottom: 1px solid var(--border-gold);
}

.page-head__inner { position: relative; z-index: 1; max-width: 760px; }

.page-head h1 { margin-block: var(--sp-4) var(--sp-4); }

.page-head p { font-size: var(--fs-lg); color: var(--text-muted); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-deep); }

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

.breadcrumb li + li::before {
  content: '';
  width: 5px; height: 5px;
  border-right: 1px solid var(--bronze-300);
  border-bottom: 1px solid var(--bronze-300);
  transform: rotate(-45deg);
}

.breadcrumb [aria-current='page'] { color: var(--bronze-800); font-weight: 600; }

/* ==========================================================================
   20. PROSE (legal + long-form content)
   ========================================================================== */

.prose {
  max-width: 78ch;
  color: var(--text-body);
}

.prose > * + * { margin-top: var(--sp-5); }

.prose h2 {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-gold);
  font-size: var(--fs-h3);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
  margin-top: var(--sp-8);
  font-size: var(--fs-h4);
}

.prose p { color: var(--text-body); }

.prose ul, .prose ol { display: grid; gap: var(--sp-3); padding-left: 0; }

.prose li {
  position: relative;
  padding-left: 1.75rem;
  line-height: var(--lh-loose);
}

.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0.25rem; top: 0.68em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-gold);
}

.prose ol { counter-reset: pl; }

.prose ol > li { counter-increment: pl; }

.prose ol > li::before {
  content: counter(pl) '.';
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-deep);
}

.prose a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-gold);
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: var(--gold); }

.prose__meta {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
  font-size: var(--fs-sm);
  color: var(--bronze-700);
}

/* Table of contents for legal pages */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.toc h2 {
  font-size: var(--fs-base);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.toc ol { display: grid; gap: var(--sp-1); counter-reset: toc; }

.toc li { counter-increment: toc; }

.toc a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  color: var(--bronze-700);
  border-left: 2px solid transparent;
  transition: all var(--t-fast) var(--ease);
}

.toc a::before {
  content: counter(toc) '. ';
  color: var(--gold-deep);
  font-weight: 700;
}

.toc a:hover {
  background: var(--gold-wash);
  border-left-color: var(--gold);
  color: var(--bronze-950);
}

.legal-layout { display: grid; gap: var(--sp-10); }

/* Callout */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold);
  box-shadow: var(--sh-xs);
}

.callout__ico {
  flex: none;
  width: 24px; height: 24px;
  color: var(--gold-deep);
}

.callout h4 { margin-bottom: var(--sp-2); font-size: var(--fs-base); }

.callout p { font-size: var(--fs-sm); color: var(--text-muted); }

.callout--warn {
  background: #FDF4EC;
  border-color: rgba(201, 106, 42, 0.34);
  border-left-color: #C46A2A;
}

.callout--warn .callout__ico { color: #B45A1E; }

/* ==========================================================================
   21. SPLIT / EDITORIAL BLOCKS
   ========================================================================== */

.split {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}

.split--reverse .split__media { order: -1; }

.split__media { position: relative; }

.split__copy h2 { margin-bottom: var(--sp-4); }

.split__copy > p { color: var(--text-muted); }

.split__copy > p + p { margin-top: var(--sp-4); }

.feature-list {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.feature-list__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.feature-list__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--grad-gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--bronze-800);
}

.feature-list__ico svg { width: 22px; height: 22px; }

.feature-list__item h4 { margin-bottom: 0.25rem; font-size: var(--fs-base); }

.feature-list__item p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; }

/* Editorial pull quote */
.pull-quote {
  position: relative;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1px solid var(--border-gold);
  box-shadow: var(--sh-sm);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.5;
  color: var(--bronze-800);
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.05em;
  left: var(--sp-5);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-pale);
  font-family: var(--font-display);
}

.pull-quote cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Definition / glossary rows */
.deflist { display: grid; gap: var(--sp-4); }

.deflist__row {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}

.deflist__row:hover { border-color: var(--border-gold); transform: translateX(4px); }

.deflist__row dt {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--bronze-800);
}

.deflist__row dd { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; }

/* Compact info tiles */
.tiles { display: grid; gap: var(--sp-4); }

.tile {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  transition: all var(--t-base) var(--ease);
}

.tile:hover { border-color: var(--border-gold); box-shadow: var(--sh-md); transform: translateY(-3px); }

.tile__ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
  color: var(--bronze-800);
}

.tile__ico svg { width: 21px; height: 21px; }

.tile strong { display: block; font-size: var(--fs-sm); color: var(--bronze-800); }

.tile span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ==========================================================================
   22. CTA BAND
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  background: var(--grad-bronze);
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 380px at 50% 0%, rgba(201,151,42,0.3) 0%, transparent 66%);
}

.cta-band__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }

.cta-band h2 { color: var(--gold-pale); margin-bottom: var(--sp-4); }

.cta-band p { color: rgba(239, 228, 210, 0.82); margin-bottom: var(--sp-7); }

.cta-band .btn-row { justify-content: center; }

.cta-band__fine {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: rgba(239, 228, 210, 0.55);
}

/* ==========================================================================
   23. FOOTER
   ========================================================================== */

.footer {
  position: relative;
  background: var(--grad-bronze);
  color: rgba(239, 228, 210, 0.75);
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  font-size: var(--fs-sm);
}

.footer::before {
  content: '';
  position: absolute;
  inset-inline: 0; top: 0;
  height: 2px;
  background: var(--grad-foil);
}

.footer__grid {
  display: grid;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
}

.footer__about { max-width: 380px; }

.footer__about p { margin-top: var(--sp-5); line-height: var(--lh-loose); font-size: var(--fs-sm); }

.footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--sp-5);
}

.footer__list { display: grid; gap: var(--sp-3); }

.footer__list a {
  position: relative;
  display: inline-block;
  color: rgba(239, 228, 210, 0.75);
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.footer__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}

.footer__list a:hover {
  color: var(--gold-bright);
  transform: translateX(3px);
}

.footer__list a:hover::after { transform: scaleX(1); transform-origin: left; }

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

.footer__social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,213,160,0.24);
  color: var(--gold-pale);
  transition: all var(--t-base) var(--ease);
}

.footer__social a:hover {
  background: var(--grad-gold);
  border-color: var(--gold);
  color: var(--bronze-950);
  transform: translateY(-3px);
  box-shadow: var(--sh-gold);
}

.footer__social svg { width: 20px; height: 20px; }

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

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,213,160,0.2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239,228,210,0.8);
}

.footer__badge svg { width: 14px; height: 14px; color: var(--gold-bright); }

/* Disclaimer block */
.footer__disclaimer {
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(232,213,160,0.16);
  margin-bottom: var(--sp-8);
}

.footer__disclaimer p {
  font-size: var(--fs-xs);
  line-height: var(--lh-loose);
  color: rgba(239,228,210,0.62);
}

.footer__disclaimer p + p { margin-top: var(--sp-3); }

.footer__disclaimer strong { color: var(--gold-pale); font-weight: 600; }

.footer__keywords {
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(232,213,160,0.14);
  font-size: var(--fs-xs);
  line-height: var(--lh-loose);
  color: rgba(239,228,210,0.5);
}

.footer__keywords b { color: rgba(239,228,210,0.7); font-weight: 600; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(232,213,160,0.14);
  font-size: var(--fs-xs);
  color: rgba(239,228,210,0.55);
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.footer__bottom-links a { color: rgba(239,228,210,0.62); }
.footer__bottom-links a:hover { color: var(--gold-bright); }

/* ==========================================================================
   24. STICKY MOBILE BAR + FAB
   ========================================================================== */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem var(--sp-4) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 246, 238, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -8px 30px -12px rgba(70,43,20,0.28);
  transform: translateY(115%);
  transition: transform var(--t-slow) var(--ease-out);
}

.mobile-bar.is-visible { transform: translateY(0); }

.mobile-bar__info { flex: 1; min-width: 0; }

.mobile-bar__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-bar__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--bronze-800);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-bar .btn { flex: none; }

/* FAB */
.fab {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-fab);
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #37B3E8 0%, #229ED9 60%, #1B8CC4 100%);
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(34,158,217,0.62);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease);
}

.fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34,158,217,0.55);
  animation: fab-pulse 2.6s var(--ease) infinite;
}

@keyframes fab-pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.fab:hover,
.fab:focus-visible {
  transform: scale(1.09) translateY(-2px);
  color: var(--white);
  box-shadow: 0 18px 40px -10px rgba(34,158,217,0.75);
}

.fab svg { width: 27px; height: 27px; position: relative; z-index: 1; }

.fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--bronze-950);
  color: var(--gold-pale);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  box-shadow: var(--sh-md);
}

.fab:hover .fab__tip,
.fab:focus-visible .fab__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Back to top */
.to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(146px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-fab);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border-gold);
  color: var(--bronze-800);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-base) var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover {
  background: var(--grad-gold);
  color: var(--bronze-950);
  transform: translateY(-3px);
}

.to-top svg { width: 19px; height: 19px; }

/* ==========================================================================
   25. SCROLL REVEAL
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

[data-reveal='left']  { transform: translateX(-32px); }
[data-reveal='right'] { transform: translateX(32px); }
[data-reveal='zoom']  { transform: scale(0.94); }
[data-reveal='fade']  { transform: none; }

/* Page load fade */
.page-fade {
  animation: page-in 0.7s var(--ease-out) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Marquee ticker */
.ticker {
  overflow: hidden;
  padding-block: var(--sp-4);
  border-block: 1px solid var(--border-gold);
  background: var(--cream-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  gap: var(--sp-10);
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--bronze-600);
  white-space: nowrap;
}

.ticker__item svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   26. CONTACT
   ========================================================================== */

.form { display: grid; gap: var(--sp-5); }

.form__row { display: grid; gap: var(--sp-5); }

.form textarea { min-height: 150px; resize: vertical; }

.form__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.form__status {
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  border: 1px solid var(--border-gold);
  font-size: var(--fs-sm);
  color: var(--bronze-800);
}

.form__status[hidden] { display: none; }

.contact-card {
  padding: var(--sp-7);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}

/* ==========================================================================
   27. DOWNLOAD PAGE
   ========================================================================== */

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.75rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--grad-bronze);
  border: 1px solid rgba(201,151,42,0.4);
  color: var(--gold-pale);
  box-shadow: var(--sh-md);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.platform-badge:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: var(--sh-lg);
}

.platform-badge svg { width: 28px; height: 28px; flex: none; }

.platform-badge small {
  display: block;
  font-size: 0.625rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  opacity: 0.72;
}

.platform-badge b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: inherit;
  letter-spacing: 0.02em;
}

.spec-table { font-size: var(--fs-sm); }

.spec-table th,
.spec-table td {
  padding: var(--sp-4) 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-table th {
  width: 42%;
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.spec-table td { color: var(--bronze-800); font-weight: 600; }

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   28. RESPONSIVE — small screens
   ========================================================================== */

@media (max-width: 767px) {
  /* Pull the floating stat chips inward so they stay on screen */
  .device-chip {
    font-size: 0.6875rem;
    padding: 0.45rem 0.65rem;
    gap: var(--sp-2);
  }

  .device-chip__ico { width: 26px; height: 26px; border-radius: 8px; }
  .device-chip__ico svg { width: 14px; height: 14px; }
  .device-chip small { font-size: 0.625rem; }

  .device-chip--tl { left: -5%; top: 9%; }
  .device-chip--br { right: -5%; }
  .device-chip--bl { left: -3%; }

  /* Keep decorative rings from dominating a narrow hero */
  .decor--ring-2 { display: none; }

  .card__index { font-size: 1.75rem; top: var(--sp-4); right: var(--sp-5); }
}

/* ==========================================================================
   28b. RESPONSIVE — 768px
   ========================================================================== */

@media (min-width: 768px) {
  :root { --header-h: 82px; }

  .announce__links { display: flex; }

  .brand__img { height: 38px; }

  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }

  .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(2, minmax(0, 1fr)); }

  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .hero__trustbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .slider__slide { --per-view: 2; }

  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .deflist { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .step { grid-template-columns: 68px minmax(0, 1fr); gap: var(--sp-6); }
  .step__num { width: 68px; height: 68px; }
  .steps::before,
  .steps::after { left: 33px; }

  .fab { right: var(--sp-6); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .to-top { right: var(--sp-6); bottom: calc(156px + env(safe-area-inset-bottom, 0px)); }

  .legal-layout { grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-12); align-items: start; }
}

/* ==========================================================================
   29. RESPONSIVE — 1024px
   ========================================================================== */

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

  .burger { display: none; }

  .header__actions .btn { display: inline-flex; }

  .hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }

  .bonus__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split--wide-copy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .slider__slide { --per-view: 3; }

  .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Sticky bar is mobile-only */
  .mobile-bar { display: none; }

  .fab { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   30. RESPONSIVE — 1200px
   ========================================================================== */

@media (min-width: 1200px) {
  :root { --header-h: 88px; }

  .brand { padding: 0.5rem 1rem; }
  .brand__img { height: 44px; }

  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .games-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .games-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero__stage { min-height: 560px; }

  .device--hero { --device-w: 306px; }

  .section-head--center { text-align: center; }
}

@media (min-width: 1400px) {
  .games-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .games-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   31. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::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,
  .decor-coin,
  .device-chip,
  .ticker__track,
  .banner-frame::after,
  .fab::before { animation: none !important; }

  .slider__slide:not(.is-active) { opacity: 1; transform: none; }

  .steps::after { height: calc(100% - 60px); }
}

/* ==========================================================================
   32. PRINT
   ========================================================================== */

@media print {
  .header, .announce, .mobile-bar, .fab, .to-top, .drawer, .drawer-scrim, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
}
