/* ==========================================================================
   2J Game — Obsidian Royale
   main.css — layout, shared components, animation system
   ========================================================================== */

/* ==========================================================================
   1. Layout primitives
   ========================================================================== */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

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

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

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

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

.section--alt {
  background:
    radial-gradient(1200px 420px at 50% 0%, rgba(212, 175, 55, 0.055), transparent 70%),
    var(--color-surface);
}

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

.section__head {
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
}

.section__head p {
  margin-top: var(--space-16);
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--space-16);
  font-family: var(--font-heading-alt);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-dim));
}

.eyebrow::after {
  background: linear-gradient(270deg, transparent, var(--color-accent-dim));
}

.section__head--left .eyebrow::before {
  display: none;
}

.lede {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
}

.prose > * + * {
  margin-top: var(--space-20);
}

.prose h2 {
  margin-top: var(--space-48);
}

.prose h3 {
  margin-top: var(--space-32);
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--space-12);
  padding-left: var(--space-4);
}

.prose li {
  position: relative;
  padding-left: 1.6rem;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--gradient-gold);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: prose-count;
}

.prose ol li::before {
  counter-increment: prose-count;
  content: counter(prose-count);
  top: 0;
  width: auto;
  height: auto;
  background: none;
  transform: none;
  color: var(--color-accent);
  font-family: var(--font-heading-alt);
  font-weight: 700;
}

/* Faceted gemstone divider between sections: a gold hairline cut by a
   single facet, rather than a heavy decorative band. */
.facet-divider {
  position: relative;
  height: clamp(30px, 4vw, 52px);
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.facet-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border) 18%,
    var(--color-accent-dim) 50%,
    var(--color-border) 82%,
    transparent
  );
}

.facet-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gradient-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}

/* ==========================================================================
   2. Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  min-height: 50px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn__icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Primary — royal gold with foil shimmer sweep */
.btn--primary {
  background: var(--gradient-gold);
  color: #12100A;
  border: 1px solid rgba(244, 208, 111, 0.7);
  box-shadow: var(--shadow-glow), 0 8px 22px rgba(0, 0, 0, 0.45);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-foil);
  background-size: 260% 100%;
  animation: foil-sweep 5.5s var(--ease-in-out) infinite;
}

.btn--primary:hover {
  color: #12100A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong), 0 14px 30px rgba(0, 0, 0, 0.55);
}

/* Ghost — hairline gold outline */
.btn--ghost {
  background: rgba(20, 20, 22, 0.6);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  color: var(--color-accent-bright);
  border-color: var(--color-accent);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Telegram — real brand blue */
.btn--telegram {
  background: linear-gradient(135deg, #229ED9 0%, #2AABEE 55%, #4FC3F7 100%);
  color: #04222E;
  border: 1px solid rgba(120, 210, 255, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 22px rgba(42, 171, 238, 0.24);
}

.btn--telegram:hover {
  color: #04222E;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 38px rgba(42, 171, 238, 0.42);
}

.btn--telegram-outline {
  background: rgba(42, 171, 238, 0.08);
  color: #7FD3F7;
  border: 1px solid rgba(42, 171, 238, 0.45);
}

.btn--telegram-outline:hover {
  color: #BDE8FC;
  background: rgba(42, 171, 238, 0.16);
  border-color: rgba(42, 171, 238, 0.75);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.1rem 2.25rem;
  min-height: 60px;
  font-size: var(--fs-base);
}

.btn--sm {
  padding: 0.6rem 1.15rem;
  min-height: 40px;
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

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

/* ==========================================================================
   3. Badges, pills & chips
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  color: var(--color-accent-bright);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.badge--solid {
  background: var(--gradient-gold);
  color: #12100A;
  border-color: transparent;
}

.badge--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border-neutral);
}

.badge--hot {
  background: linear-gradient(135deg, #C0392B, #E5484D);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* Keyword cloud used for semantic SEO clusters */
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.keyword-cloud__item {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-neutral);
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  font-size: var(--fs-xs);
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.keyword-cloud__item:hover {
  border-color: var(--color-border-strong);
  color: var(--color-accent-bright);
}

/* ==========================================================================
   4. Cards & panels
   ========================================================================== */

.panel {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  border: 1px solid var(--color-border-neutral);
  box-shadow: var(--shadow-card), var(--shadow-inset-top);
}

.panel--gold {
  border-color: var(--color-border);
}

.panel__title {
  margin-bottom: var(--space-12);
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.75rem);
}

/* Grid and flex items default to min-width:auto, so a single wide child
   (table, select, long token) can stretch a track past the viewport.
   Resetting it on every layout wrapper keeps the page horizontally locked. */
.grid > *,
.hero__inner > *,
.dl-hero__inner > *,
.story-grid > *,
.legal-layout > *,
.bonus-band__grid > *,
.tg-section__grid > *,
.contact-channels > *,
.steps > *,
.stats > * {
  min-width: 0;
}

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

/* Feature card with gold ignition on hover */
.feature-card {
  position: relative;
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  border: 1px solid var(--color-border-neutral);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px 200px at 50% 0%, rgba(212, 175, 55, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-lift), var(--shadow-glow);
}

.feature-card:hover::before,
.feature-card:focus-within::before {
  opacity: 1;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-20);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--color-border);
  color: var(--color-accent-bright);
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature-card__title {
  margin-bottom: var(--space-12);
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.feature-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.feature-card__list {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-16);
  font-size: var(--fs-sm);
}

.feature-card__list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--color-text-secondary);
}

.feature-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ==========================================================================
   5. Game cards
   ========================================================================== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.35rem);
}

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

.game-card__media {
  position: relative;
  display: block;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: #0F0F11;
}

.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
  filter: saturate(0.86) brightness(0.88);
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0) 40%, rgba(11, 11, 13, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.game-card__play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  color: #12100A;
  font-size: var(--fs-xs);
  font-weight: 700;
  transform: translateY(8px);
  transition: transform var(--dur-base) var(--ease-out);
}

.game-card__flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #C0392B, #E5484D);
  color: #fff;
}

.game-card__flag--new {
  background: var(--gradient-gold);
  color: #12100A;
}

.game-card__body {
  display: block;
  padding: 0.7rem 0.8rem 0.85rem;
}

.game-card__title {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.game-card__rtp {
  color: var(--color-accent);
  font-weight: 600;
}

/* Card ignition hover */
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-lift), var(--shadow-glow);
}

.game-card:hover .game-card__img,
.game-card:focus-visible .game-card__img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}

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

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

/* ==========================================================================
   6. Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-border-neutral);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.header.is-compact {
  background: rgba(9, 9, 11, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: var(--header-h);
  transition: height var(--dur-base) var(--ease-out);
}

.header.is-compact .header__inner {
  height: var(--header-h-compact);
}

/* --- Logo lockup --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  min-width: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.07), var(--shadow-glow);
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.04);
}

.brand__wordmark {
  width: auto;
  height: 26px;
  transition: height var(--dur-base) var(--ease-out);
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.28));
}

.header.is-compact .brand__mark {
  width: 36px;
  height: 36px;
}

.header.is-compact .brand__wordmark {
  height: 22px;
}

.brand__tag {
  display: none;
  font-family: var(--font-heading-alt);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

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

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gradient-gold);
  transition: right var(--dur-base) var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-text-primary);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  right: 0;
}

.nav__link[aria-current="page"] {
  color: var(--color-accent-bright);
}

.nav__link[aria-current="page"]::after {
  right: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__cta {
  display: none;
}

.header__tg {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(42, 171, 238, 0.4);
  background: rgba(42, 171, 238, 0.1);
  color: #7FD3F7;
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.header__tg svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header__tg:hover {
  background: rgba(42, 171, 238, 0.22);
  color: #BDE8FC;
  transform: translateY(-2px);
}

/* --- Mobile menu toggle --- */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--color-accent-bright);
  border-radius: 2px;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-accent-bright);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after  { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* --- Mobile drawer --- */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: var(--z-drawer);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--space-24) var(--gutter) var(--space-32);
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out),
    visibility var(--dur-base) var(--ease-out);
}

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

.drawer__list {
  display: grid;
  gap: 0.15rem;
  margin-bottom: var(--space-24);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid var(--color-border-neutral);
  color: var(--color-text-primary);
  font-size: var(--fs-base);
  font-weight: 500;
}

.drawer__link[aria-current="page"] {
  color: var(--color-accent-bright);
}

.drawer__link::after {
  content: "›";
  color: var(--color-accent-dim);
  font-size: 1.25rem;
}

.drawer__actions {
  display: grid;
  gap: var(--space-12);
}

/* ==========================================================================
   7. Phone mockup (hero + download) — "Showcase" composition: the device
   tilts gently in 3D on a faceted display stand, gold coin medallions
   stand in for plain chips, a glass reflection sits beneath it, and a
   scatter of drifting sparks finishes the "on a jeweller's stand" feel.
   ========================================================================== */

.mockup {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  isolation: isolate;
}

.mockup--lg {
  max-width: 320px;
}

.mockup__glow {
  position: absolute;
  inset: -14% -18% -8%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.07) 55%, transparent 78%);
  filter: blur(6px);
  animation: pulse-glow 6s var(--ease-in-out) infinite;
  pointer-events: none;
}

/* Perspective stage: the device tilts in 3D instead of just bobbing
   vertically, so it reads as an object on display rather than a flat
   screenshot pasted onto the page. */
.mockup__stage {
  position: relative;
  perspective: 1400px;
}

.mockup__device {
  position: relative;
  padding: 10px;
  border-radius: 40px;
  background:
    linear-gradient(160deg, #2A2A2E 0%, #101012 42%, #26262A 100%);
  border: 1px solid rgba(212, 175, 55, 0.30);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.72),
    0 0 40px rgba(212, 175, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform-style: preserve-3d;
  transform-origin: 50% 85%;
  animation: device-drift 8s var(--ease-in-out) infinite;
}

/* Faceted corner brackets stand in for the old dashed ring — an angular
   "on display" frame that echoes the gem-cut divider motif used elsewhere
   on the site. */
.mockup__corner {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  opacity: 0.85;
  animation: corner-pulse 4s var(--ease-in-out) infinite;
  pointer-events: none;
}

.mockup__corner--tl {
  top: -9px;
  left: -9px;
  border-top: 2px solid var(--color-accent-bright);
  border-left: 2px solid var(--color-accent-bright);
}

.mockup__corner--tr {
  top: -9px;
  right: -9px;
  border-top: 2px solid var(--color-accent-bright);
  border-right: 2px solid var(--color-accent-bright);
  animation-delay: -1s;
}

.mockup__corner--bl {
  bottom: -9px;
  left: -9px;
  border-bottom: 2px solid var(--color-accent-bright);
  border-left: 2px solid var(--color-accent-bright);
  animation-delay: -2s;
}

.mockup__corner--br {
  bottom: -9px;
  right: -9px;
  border-bottom: 2px solid var(--color-accent-bright);
  border-right: 2px solid var(--color-accent-bright);
  animation-delay: -3s;
}

.mockup__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 84px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #08080A;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup__notch::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3A4A52, #0D1417);
}

.mockup__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 31px;
  overflow: hidden;
  background: #0B0B0D;
}

.mockup__screen img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Slow auto-pan of the long app screenshot inside the device */
.mockup__scroller {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mockup__scroller img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform-origin: top center;
  /* Gentle ken-burns drift. The scale keeps the frame filled at every
     point of the animation, so no gap can ever appear at the edges. */
  animation: screen-pan 18s var(--ease-in-out) infinite alternate;
}

.mockup__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 46%, rgba(244, 208, 111, 0.12) 52%, transparent 66%);
  background-size: 280% 100%;
  animation: foil-sweep 6.5s var(--ease-in-out) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Glass reflection beneath the device: a flipped, faded duplicate of the
   same screenshot, as if the phone were resting on a glossy display shelf. */
.mockup__reflection {
  position: relative;
  margin-top: 10px;
  height: clamp(38px, 13vw, 60px);
  overflow: hidden;
  border-radius: 0 0 31px 31px;
  opacity: 0.5;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 88%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 88%);
  pointer-events: none;
}

.mockup__reflection img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gold coin medallions replace the old pill-shaped chips */
.mockup__coin {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 86px;
  height: 86px;
  border-radius: var(--radius-full);
  text-align: center;
  background: radial-gradient(circle at 32% 26%, #232016, #121110 72%);
  border: 2px solid var(--color-accent-dim);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.22),
    0 0 0 6px rgba(212, 175, 55, 0.07),
    0 14px 28px rgba(0, 0, 0, 0.55);
  animation: coin-float 5.5s var(--ease-in-out) infinite;
}

.mockup__coin svg {
  width: 18px;
  height: 18px;
  margin-bottom: 0.15rem;
  fill: var(--color-accent-bright);
  flex: none;
}

.mockup__coin strong {
  font-family: var(--font-heading-alt);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-accent-bright);
}

.mockup__coin span {
  font-size: 0.625rem;
  line-height: 1.15;
  color: var(--color-text-secondary);
}

.mockup__coin--tl {
  top: 8%;
  left: -12%;
  animation-delay: -1.4s;
}

.mockup__coin--br {
  bottom: 20%;
  right: -10%;
  animation-delay: -3.4s;
}

/* Drifting gold spark particles scattered around the showcase */
.mockup__spark {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF6DA, var(--color-accent-bright) 55%, transparent 75%);
  box-shadow: 0 0 10px rgba(244, 208, 111, 0.75);
  animation: spark-twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

.mockup__spark--1 { top: 6%;     left: 4%;   animation-delay: 0s; }
.mockup__spark--2 { top: 32%;    right: 2%;  animation-delay: -0.9s; }
.mockup__spark--3 { bottom: 30%; left: -2%;  animation-delay: -1.8s; }
.mockup__spark--4 { bottom: 8%;  right: 10%; animation-delay: -2.5s; }

/* ==========================================================================
   8. Telegram cluster
   ========================================================================== */

.tg-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
}

.tg-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.tg-note svg {
  width: 14px;
  height: 14px;
  fill: var(--color-telegram);
}

/* Floating Telegram action button */
.tg-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-sticky);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #229ED9, #2AABEE);
  color: #04222E;
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(42, 171, 238, 0.5);
  animation: tg-ping 3.4s var(--ease-out) infinite;
  transition: transform var(--dur-fast) var(--ease-out);
}

.tg-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tg-float:hover {
  color: #04222E;
  transform: translateY(-3px);
}

/* ==========================================================================
   9. Stats / counters
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border-neutral);
  border: 1px solid var(--color-border-neutral);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.75rem) 1rem;
  background: var(--color-surface);
  text-align: center;
}

.stat__value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-heading-alt);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-accent-bright);
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.35);
}

.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Coin-flip digit effect. Each character is its own span, so whitespace has
   to be preserved or "Rs 10,000" collapses to "Rs10,000". */
.flip-digit {
  display: inline-block;
  white-space: pre;
  transform-origin: center;
  backface-visibility: hidden;
}

.flip-digit.is-flipping {
  animation: coin-flip 620ms var(--ease-out);
}

/* ==========================================================================
   10. Trust strip
   ========================================================================== */

.trust-strip {
  border-block: 1px solid var(--color-border-neutral);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent 60%), var(--color-bg-deep);
  padding-block: var(--space-24);
}

.trust-strip__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16) var(--space-12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.trust-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
}

.trust-item__icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.trust-item strong {
  display: block;
  color: var(--color-text-primary);
  font-size: var(--fs-sm);
  line-height: 1.3;
}

/* ==========================================================================
   11. Steps / timeline
   ========================================================================== */

.steps {
  display: grid;
  gap: var(--space-20);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem) clamp(1.25rem, 1rem + 1vw, 1.85rem) clamp(1.25rem, 1rem + 1vw, 1.85rem) 4.25rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-panel);
  border: 1px solid var(--color-border-neutral);
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.step:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-heading-alt);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-accent-bright);
}

.step__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

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

/* ==========================================================================
   12. Accordion (FAQ)
   ========================================================================== */

.accordion {
  display: grid;
  gap: var(--space-12);
}

.accordion__item {
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-neutral);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}

.accordion__item.is-open {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  width: 100%;
  padding: 1.1rem 1.15rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--dur-fast) var(--ease-out);
}

.accordion__trigger:hover {
  color: var(--color-accent-bright);
}

.accordion__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-accent-bright);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.accordion__icon::before {
  width: 10px;
  height: 1.5px;
}

.accordion__icon::after {
  width: 1.5px;
  height: 10px;
}

.accordion__item.is-open .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__inner {
  overflow: hidden;
}

.accordion__inner > div {
  padding: 0 1.15rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.accordion__inner p + p {
  margin-top: var(--space-12);
}

/* ==========================================================================
   13. Screenshot slider
   ========================================================================== */

.shots {
  position: relative;
}

.shots__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: var(--space-16) var(--space-24);
  /* Bleed to the gutter without ever exceeding the viewport width */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.shots__viewport::-webkit-scrollbar {
  display: none;
}

.shots__track {
  display: flex;
  gap: clamp(0.9rem, 0.6rem + 1.2vw, 1.6rem);
  width: max-content;
}

.shot {
  flex: none;
  width: clamp(190px, 52vw, 246px);
  scroll-snap-align: center;
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(160deg, #2A2A2E, #101012 46%, #26262A);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.shot:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-border-strong);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.shot__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1280 / 2800;
  background: #0B0B0D;
}

.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot__caption {
  padding: 0.7rem 0.4rem 0.2rem;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.shots__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-8);
}

.shots__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-2);
  color: var(--color-accent-bright);
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.shots__btn:hover {
  background: rgba(212, 175, 55, 0.14);
  transform: translateY(-2px);
}

.shots__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.shots__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shots__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(248, 246, 240, 0.18);
  transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.shots__dot.is-active {
  width: 24px;
  background: var(--gradient-gold);
}

/* ==========================================================================
   14. Marquee (keyword / provider ticker)
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-12);
  border-block: 1px solid var(--color-border-neutral);
  background: var(--color-bg-deep);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-32);
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading-alt);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.marquee__item::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ==========================================================================
   15. Tables
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-neutral);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  min-width: 520px;
  font-size: var(--fs-sm);
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-neutral);
}

.data-table thead th {
  background: rgba(212, 175, 55, 0.07);
  color: var(--color-accent-bright);
  font-family: var(--font-heading-alt);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.data-table tbody tr:hover {
  background: rgba(248, 246, 240, 0.025);
}

.data-table td strong {
  color: var(--color-text-primary);
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.footer {
  position: relative;
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border);
}

.footer__top {
  display: grid;
  gap: var(--space-40);
  padding-bottom: var(--space-40);
}

.footer__brand-block {
  max-width: 46ch;
}

.footer__wordmark {
  height: 30px;
  width: auto;
  margin-bottom: var(--space-16);
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.25));
}

.footer__about {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-32) var(--space-20);
}

.footer__title {
  margin-bottom: var(--space-16);
  font-family: var(--font-heading-alt);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.footer__list {
  display: grid;
  gap: 0.6rem;
}

.footer__list a,
.footer__list span {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.footer__list a:hover {
  color: var(--color-accent-bright);
}

.footer__disclaimer {
  padding: var(--space-24);
  margin-bottom: var(--space-32);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.06), rgba(20, 20, 22, 0.6));
}

.footer__disclaimer h2,
.footer__disclaimer h3 {
  margin-bottom: var(--space-12);
  font-family: var(--font-heading-alt);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.footer__disclaimer p {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  line-height: 1.85;
}

.footer__disclaimer p + p {
  margin-top: var(--space-12);
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
}

.age-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-error);
  color: #FF8085;
  font-family: var(--font-heading-alt);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  padding-block: var(--space-20);
  border-top: 1px solid var(--color-border-neutral);
  font-size: var(--fs-xs);
}

.footer__legal a {
  color: var(--color-text-secondary);
}

.footer__legal a:hover {
  color: var(--color-accent-bright);
}

.footer__copy {
  padding-bottom: var(--space-32);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.footer__urdu {
  margin-top: var(--space-8);
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  line-height: 2.4;
  color: var(--color-text-muted);
  direction: rtl;
  text-align: right;
}

/* ==========================================================================
   17. Breadcrumbs & page hero
   ========================================================================== */

.page-hero {
  position: relative;
  padding-block: calc(var(--section-y) * 0.85) var(--section-y);
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(212, 175, 55, 0.10), transparent 65%),
    radial-gradient(700px 340px at 90% 20%, rgba(212, 175, 55, 0.06), transparent 70%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border-neutral);
}

.page-hero__inner {
  max-width: 72ch;
}

.page-hero h1 {
  margin-bottom: var(--space-20);
}

.page-hero .lede {
  max-width: 62ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-20);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--color-accent-dim);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ==========================================================================
   18. Call-to-action band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-strong);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(212, 175, 55, 0.16), transparent 70%),
    linear-gradient(150deg, rgba(28, 28, 31, 0.96), rgba(10, 10, 12, 0.96));
  box-shadow: var(--shadow-card-lift);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-foil);
  background-size: 260% 100%;
  animation: foil-sweep 7s var(--ease-in-out) infinite;
  pointer-events: none;
  opacity: 0.6;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  margin-bottom: var(--space-16);
}

.cta-band p {
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: var(--space-24);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   19. Forms
   ========================================================================== */

.form {
  display: grid;
  gap: var(--space-20);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

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

.field__control {
  width: 100%;
  /* Selects size themselves to their longest option unless this is reset,
     which would push the whole form panel wider than the viewport. */
  min-width: 0;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border-neutral);
  color: var(--color-text-primary);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.field__control::placeholder {
  color: var(--color-text-muted);
}

.field__control:focus {
  outline: none;
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

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

.field__error {
  font-size: var(--fs-xs);
  color: #FF8A8E;
  min-height: 1.1em;
}

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-success);
  background: rgba(76, 175, 125, 0.10);
  color: #9BE3C0;
  font-size: var(--fs-sm);
}

.form__status[hidden] {
  display: none;
}

/* ==========================================================================
   20. Animation system
   ========================================================================== */

@keyframes foil-sweep {
  0%   { background-position: 220% 0; }
  55%  { background-position: -120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* Gentle 3D tilt-and-lift for the showcased device */
@keyframes device-drift {
  0%, 100% { transform: rotateY(-7deg) rotateX(3deg) translateY(0); }
  50%      { transform: rotateY(-2deg) rotateX(1deg) translateY(-14px); }
}

@keyframes corner-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@keyframes coin-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 1; transform: scale(1); }
}

@keyframes screen-pan {
  0%   { transform: scale(1.06) translateY(0); }
  100% { transform: scale(1.06) translateY(-2.4%); }
}

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

@keyframes coin-flip {
  0%   { transform: rotateX(0deg); }
  50%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

@keyframes tg-ping {
  0%   { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(42, 171, 238, 0.45); }
  70%  { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 16px rgba(42, 171, 238, 0); }
  100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(42, 171, 238, 0); }
}

/* Staggered fade-up entrance driven by IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--left  { transform: translateX(-26px); }
.reveal--right { transform: translateX(26px); }

/* Foil shimmer on display headlines */
.foil-text {
  position: relative;
  background: linear-gradient(
    100deg,
    var(--color-text-primary) 0%,
    var(--color-text-primary) 38%,
    var(--color-accent-bright) 48%,
    #FFF6DA 52%,
    var(--color-accent) 58%,
    var(--color-text-primary) 68%,
    var(--color-text-primary) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-sweep 6s var(--ease-in-out) infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .foil-text {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--color-text-primary);
  }

  .marquee__track,
  .mockup__scroller img,
  .mockup__device,
  .mockup__corner,
  .mockup__coin,
  .mockup__spark,
  .mockup__glow,
  .mockup__sheen,
  .btn--primary::after,
  .cta-band::before {
    animation: none !important;
  }

  .mockup__sheen,
  .mockup__spark {
    display: none;
  }
}

/* ==========================================================================
   21. Responsive — 768px
   ========================================================================== */

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }

  .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)); }

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

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

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

  .brand__wordmark { height: 30px; }
  .brand__mark { width: 46px; height: 46px; }

  .header__tg { display: grid; }

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

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

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

  .tg-float {
    right: 22px;
    bottom: 22px;
  }
}

/* ==========================================================================
   22. Responsive — 1200px
   ========================================================================== */

@media (min-width: 1200px) {
  :root {
    --gutter: 3rem;
  }

  .nav { display: block; }

  .nav-toggle { display: none; }

  .drawer { display: none; }

  .header__cta { display: inline-flex; }

  .brand__tag { display: block; }

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

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

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

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

  .footer__top {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
    gap: var(--space-64);
  }

  .brand__wordmark { height: 34px; }

  .brand__mark { width: 50px; height: 50px; }

  .header.is-compact .brand__wordmark { height: 28px; }
  .header.is-compact .brand__mark { width: 42px; height: 42px; }
}

@media (min-width: 1480px) {
  :root {
    --gutter: 4rem;
  }
}
