@charset "UTF-8";
/* ==========================================================================
   PakWin — Online Casino Pakistan
   Redesign pass: DESIGN_VARIANCE 8 · MOTION_INTENSITY 6 · VISUAL_DENSITY 4

   Layout personality: an asymmetric editorial sheet — wine-dark panels cut by
   a warm bone canvas, weight carried by hairlines and fractional grids rather
   than boxes. Nothing is centred, nothing is boxed unless elevation earns it.

   Signature: the Mughal scallop arch, used as a panel edge and a kicker rule.

   WIDTH CONTRACT
     The 1280px container is the ONLY width cap on the page. No heading and no
     paragraph carries a max-width — text runs the full column.

   RHYTHM
     --section-gap (60px) is the space BETWEEN two sections. Each section
     carries half of it top and bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colour — sampled from content/references/PAKWIN.html.
     One accent family (gold), one action colour (crimson), neutral wine base. */
  --brand:         #d81f2b;
  --brand-dark:    #390814;
  --brand-light:   #f04236;
  --accent:        #d3a94e;
  --accent-warm:   #edcf7c;
  --accent-soft:   #f6e6b8;

  --bg:            #faf6f0;
  --bg-card:       #ffffff;
  --bg-elevated:   #fffcf7;
  --bg-panel:      #24040f;
  --bg-panel-2:    #3a0a17;

  --text:          #241014;
  --text-muted:    #6d565b;
  --text-dim:      #9a878b;
  --text-on-dark:  #f7ece0;

  --border:        #ebdfd3;
  --border-strong: #d8c6b6;
  --border-soft:   #f3ebe2;
  --hair:          rgba(36, 4, 15, .09);
  --hair-on-dark:  rgba(247, 236, 224, .14);

  /* Typography — Fraunces display (editorial licence), Outfit body. */
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Radius — larger, softer surfaces */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;
  --card-radius: 28px;

  /* Shadows — diffusion, tinted to the wine background. No glows. */
  --shadow-soft:  0 1px 2px rgba(36, 4, 15, .04), 0 10px 24px -12px rgba(36, 4, 15, .10);
  --shadow-card:  0 2px 4px rgba(36, 4, 15, .04), 0 24px 48px -20px rgba(36, 4, 15, .16);
  --shadow-lift:  0 4px 8px rgba(36, 4, 15, .05), 0 36px 64px -24px rgba(36, 4, 15, .22);
  --shadow-panel: 0 30px 70px -30px rgba(36, 4, 15, .45);

  /* Layout — the 1280px container is the only width cap on the page */
  --container: 1280px;
  --gutter: 1.5rem;
  --section-gap: 60px;
  --grid-gap: 1.2rem;

  --header-top-h:  2.25rem;
  --header-main-h: 4.5rem;
  --header-h: calc(var(--header-top-h) + var(--header-main-h));

  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Signature ornament */
  --scallop: radial-gradient(circle at 50% 100%, var(--accent) 0 46%, transparent 47%);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  counter-reset: img-div;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0125rem;
  font-weight: 400;
  line-height: 1.68;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(52rem 38rem at 104% -6%, rgba(216, 31, 43, .07), transparent 60%),
    radial-gradient(46rem 34rem at -8% 14%, rgba(211, 169, 78, .13), transparent 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Headings and paragraphs carry NO max-width. The container is the only cap. */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--brand-dark);
  margin: 0 0 .55em;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  max-width: none;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1rem; }
p  { margin: 0 0 1.05rem; max-width: none; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   2. THE SHARED COLUMN — one cap, one gutter, everywhere
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Every section carries half the gap top and bottom, so the whitespace
   between any two consecutive sections is exactly --section-gap (60px). */
.section,
.section--tight { padding-block: calc(var(--section-gap) / 2); }

/* After a full-bleed panel there is no bottom padding outside the panel, so
   the first section below it carries the whole gap. */
.section--lead,
.hero + .section,
.page-hero + .section,
.apk-hero + .section,
.marquee + .section { padding-top: var(--section-gap); }

/* Section head — full width, left aligned. Centred heads are banned at
   DESIGN_VARIANCE 8. */
.section-head { width: 100%; margin-bottom: 1.85rem; }
.section-head-inner { max-width: none; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .8rem;
}
.kicker::before {
  content: "";
  width: 2.1rem;
  height: 6px;
  background-image: var(--scallop);
  background-size: 7px 7px;
  background-repeat: repeat-x;
  flex: none;
}

.highlight {
  position: relative;
  font-style: italic;
  color: var(--brand);
  white-space: nowrap;
}
.highlight::after {
  content: "";
  position: absolute;
  left: -.05em; right: -.05em; bottom: .05em;
  height: .3em;
  background: linear-gradient(90deg, rgba(237, 207, 124, .9), rgba(211, 169, 78, .45));
  border-radius: 3px;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   3. BUTTONS — tactile, inner-border refraction, tinted shadow (no glow)
   -------------------------------------------------------------------------- */
.btn-primary, .btn-secondary, .btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.7rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary {
  background: linear-gradient(168deg, var(--brand-light), var(--brand) 70%);
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 28px -14px rgba(216, 31, 43, .6);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 22px 40px -16px rgba(216,31,43,.62); }
.btn-secondary {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost {
  background: linear-gradient(168deg, var(--accent-warm), var(--accent));
  color: var(--brand-dark);
  border-color: rgba(36, 4, 15, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 26px -14px rgba(211, 169, 78, .7);
}
.btn-primary:active, .btn-secondary:active, .btn-ghost:active { transform: scale(.975); }
.btn-sm { padding: .58rem 1.2rem; font-size: .86rem; }
.btn-primary svg, .btn-secondary svg, .btn-ghost svg { width: 17px; height: 17px; flex: none; }

/* --------------------------------------------------------------------------
   4. HEADER — sticky, two rows, liquid-glass main bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-panel);
  transition: box-shadow .45s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 18px 40px -22px rgba(36, 4, 15, .9); }

.header-top {
  border-bottom: 1px solid var(--hair-on-dark);
  min-height: var(--header-top-h);
  font-size: .74rem;
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-top-h);
}
.header-trust {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(247, 236, 224, .62);
  letter-spacing: .07em;
  white-space: nowrap;
}
.trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-warm);
  flex: none;
  animation: pulse-dot 2.6s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237, 207, 124, .5); opacity: .85; }
  55%      { box-shadow: 0 0 0 7px rgba(237, 207, 124, 0); opacity: 1; }
}
.header-utility { display: flex; gap: 1.2rem; }
.header-utility a {
  color: rgba(247, 236, 224, .66);
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.header-utility a:hover { color: var(--accent-soft); }

/* Liquid glass main bar: blur + 1px inner border + inner highlight */
.header-main {
  background: rgba(36, 4, 15, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hair-on-dark);
  box-shadow: inset 0 1px 0 rgba(247, 236, 224, .08);
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-main-h);
  transition: min-height .45s var(--ease);
}
.site-header.is-scrolled .header-main .container { min-height: 3.9rem; }

/* Wide wordmark — contain, never framed, never duplicated in text */
.brand-logo { display: inline-flex; align-items: center; flex: none; }
.brand-logo img {
  height: 40px;
  width: auto;
  max-width: 162px;
  object-fit: contain;
  transition: height .45s var(--ease);
}
.site-header.is-scrolled .brand-logo img { height: 34px; }

.primary-nav { margin-left: auto; position: relative; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  position: relative;
  display: block;
  padding: .55rem .78rem;
  color: rgba(247, 236, 224, .8);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-sm);
  transition: color .3s var(--ease);
}
.primary-nav a:hover { color: var(--accent-soft); }
.primary-nav a.active { color: var(--accent-warm); }
.nav-indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-warm), var(--brand-light));
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.header-cta { flex: none; margin-left: .35rem; }
.primary-nav .mobile-cta { display: none; }

.nav-toggle {
  display: none;
  flex: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  background: rgba(247, 236, 224, .06);
  border: 1px solid var(--hair-on-dark);
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  margin-left: -9px;
  background: var(--accent-soft);
  border-radius: 2px;
  transition: transform .45s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-5px); }
.nav-toggle span:nth-child(3) { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   5. HERO — asymmetric 2fr/1fr, image fading into the panel, never centred
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  color: var(--text-on-dark);
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(3.25rem, 6vw, 5rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
/* Graceful fade into the panel colour rather than a flat scrim */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(97deg, var(--bg-panel) 4%, rgba(36, 4, 15, .84) 42%, rgba(58, 10, 23, .35) 100%),
    linear-gradient(to top, var(--bg-panel) 0%, transparent 34%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem .95rem .38rem .8rem;
  margin-bottom: 1.15rem;
  border-radius: var(--r-pill);
  background: rgba(247, 236, 224, .06);
  border: 1px solid var(--hair-on-dark);
  box-shadow: inset 0 1px 0 rgba(247, 236, 224, .1);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  white-space: nowrap;
}
.hero-eyebrow svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.hero h1 { color: #fff; margin-bottom: .85rem; letter-spacing: -.03em; }
.hero .highlight { color: var(--accent-warm); }
.hero .highlight::after { background: linear-gradient(90deg, rgba(237,207,124,.3), rgba(216,31,43,.42)); }
.hero .lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: rgba(247, 236, 224, .78);
  margin-bottom: 1.65rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero .btn-secondary,
.page-hero .btn-secondary,
.apk-hero .btn-secondary,
.footer-call .btn-secondary { color: var(--accent-soft); border-color: rgba(237, 207, 124, .34); }
.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.apk-hero .btn-secondary:hover,
.footer-call .btn-secondary:hover { color: var(--brand-dark); background: var(--accent-warm); border-color: var(--accent-warm); }

.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.5rem; }
.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .84rem;
  color: rgba(247, 236, 224, .66);
}
.hero-proof-item svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero-proof-item strong { color: var(--accent-warm); font-weight: 600; }

/* Hero art — a diagonal deal of category tiles, perpetually floating */
.hero-art { position: relative; min-height: 320px; }
.deal-tile {
  position: absolute;
  padding: 1rem 1.15rem;
  border-radius: var(--r-lg);
  background: rgba(247, 236, 224, .055);
  border: 1px solid var(--hair-on-dark);
  box-shadow: inset 0 1px 0 rgba(247, 236, 224, .12), var(--shadow-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: .8rem;
  animation: float-tile 7s var(--ease) infinite;
}
.deal-tile:nth-of-type(1) { top: 0;   left: -10%; width: 106%; animation-delay: 0s;    z-index: 3; }
.deal-tile:nth-of-type(2) { top: 33%; left: 4%;   width: 100%; animation-delay: -2.3s; z-index: 2; }
.deal-tile:nth-of-type(3) { top: 66%; left: -4%;  width: 88%;  animation-delay: -4.6s; z-index: 1; }
@keyframes float-tile {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.deal-tile .deal-icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--accent-warm), var(--accent));
  color: var(--brand-dark);
}
.deal-tile .deal-icon svg { width: 19px; height: 19px; }
.deal-tile .deal-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.deal-tile .deal-note {
  display: block;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(247, 236, 224, .5);
  margin-top: .14rem;
}
.deal-chip {
  position: absolute;
  right: -5%; bottom: -2%;
  z-index: 4;
  width: 104px; height: 104px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 34%, var(--accent-warm), var(--accent) 64%, #b58c3a 100%);
  border: 4px dashed rgba(36, 4, 15, .26);
  box-shadow: var(--shadow-panel);
  animation: float-tile 7s var(--ease) -1.2s infinite;
}
.deal-chip .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1;
}
.deal-chip .lbl {
  display: block;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(36, 4, 15, .74);
  margin-top: .22rem;
}

/* --------------------------------------------------------------------------
   6. KINETIC MARQUEE — perpetual band, pauses on hover
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--hair-on-dark);
  background: var(--bg-panel);
  padding-block: .85rem;
}
.marquee--light { background: transparent; border-color: var(--hair); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .79rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(247, 236, 224, .5);
  white-space: nowrap;
}
.marquee--light .marquee-item { color: var(--text-dim); }
.marquee-item svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.marquee-item em {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-warm);
}
.marquee--light .marquee-item em { color: var(--brand); }

/* --------------------------------------------------------------------------
   7. STAT RAIL — hairline-divided
   -------------------------------------------------------------------------- */
.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stat-cell { padding: 1.5rem 1.4rem; }
.stat-cell + .stat-cell { border-left: 1px solid var(--border-soft); }
.stat-cell .num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.stat-cell .lbl {
  display: block;
  margin-top: .25rem;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   8. PAGE HERO (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--bg-panel);
  color: var(--text-on-dark);
  padding-block: clamp(2.25rem, 4vw, 3.25rem) clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
}
.page-hero .hero-bg img { opacity: .28; }
.page-hero-head { position: relative; z-index: 1; width: 100%; }
.page-hero-inner { max-width: none; }
.page-hero h1 { color: #fff; max-width: none; }
.page-hero .page-sub {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(247, 236, 224, .78);
  margin-bottom: .85rem;
  max-width: none;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  font-size: .78rem;
  color: rgba(247, 236, 224, .5);
}
.breadcrumb a { color: var(--accent-warm); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: rgba(247,236,224,.28); }

.page-meta { font-size: .79rem; color: rgba(247, 236, 224, .55); margin: 0; }
.page-meta-author { color: var(--accent-warm); font-weight: 500; }

/* --------------------------------------------------------------------------
   9. CARD SYSTEM — hairline surface, diffusion shadow, spotlight border.
   The old gradient top-stripe is gone; hierarchy comes from border light.
   -------------------------------------------------------------------------- */
.card,
.plain-card,
.support-card,
.floor-tile,
.bento-tile,
.security-tile,
.reward-tile,
.intro-block,
.feature-check-list--plain,
.about-tile,
.apk-tile,
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  isolation: isolate;
}

/* Spotlight border: a 1px ring lit from the cursor position */
.card::before,
.plain-card::before,
.support-card::before,
.floor-tile::before,
.bento-tile::before,
.security-tile::before,
.reward-tile::before,
.intro-block::before,
.feature-check-list--plain::before,
.about-tile::before,
.apk-tile::before,
.step-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
              rgba(211, 169, 78, .95), rgba(216, 31, 43, .35) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.card:hover::before,
.plain-card:hover::before,
.support-card:hover::before,
.floor-tile:hover::before,
.bento-tile:hover::before,
.security-tile:hover::before,
.reward-tile:hover::before,
.intro-block:hover::before,
.feature-check-list--plain:hover::before,
.about-tile:hover::before,
.apk-tile:hover::before,
.step-card:hover::before { opacity: 1; }

.floor-tile:hover,
.bento-tile:hover,
.security-tile:hover,
.reward-tile:hover,
.about-tile:hover,
.apk-tile:hover,
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* Oversized italic watermark — quieter than before */
[data-mark]::after {
  content: attr(data-mark);
  position: absolute;
  right: .1em;
  bottom: -.3em;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 1;
  color: rgba(211, 169, 78, .09);
  pointer-events: none;
  user-select: none;
  transition: color .6s var(--ease);
  z-index: 0;
}
[data-mark]:hover::after { color: rgba(216, 31, 43, .1); }
[data-mark] > * { position: relative; z-index: 1; }

.plain-card,
.support-card,
.intro-block,
.floor-tile,
.bento-tile,
.security-tile,
.reward-tile,
.about-tile,
.apk-tile,
.step-card { padding: clamp(1.5rem, 2.4vw, 2.2rem); overflow: hidden; }

/* --------------------------------------------------------------------------
   10. FLOOR GRID — R3 column counts, made asymmetric so no row reads as
       "three equal cards in a line"
   -------------------------------------------------------------------------- */
.floor-grid { display: grid; gap: var(--grid-gap); width: 100%; }
.floor-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.floor-grid--cols-2 { grid-template-columns: 1.15fr 1fr; }
.floor-grid--cols-3 { grid-template-columns: 1.18fr 1fr 1fr; }
.floor-grid--cols-4 { grid-template-columns: 1.14fr 1fr 1fr 1fr; }

/* Every tile in a row shares the row's height: the asymmetry lives in the
   fractional column widths, not in staggered baselines. */
.floor-grid { align-items: stretch; }
.floor-grid > * { height: 100%; }

.floor-tile h3 { margin-bottom: .55rem; }
.floor-tile p { color: var(--text-muted); font-size: .95rem; }

/* Rich variant — single column, sub-cards, hairline dividers */
.floor-grid--rich { grid-template-columns: minmax(0, 1fr); }
.floor-grid--rich .floor-tile { padding: clamp(1.6rem, 2.8vw, 2.3rem); }
.floor-grid--rich .floor-tile h4 {
  margin: 1.8rem 0 .95rem;
  padding-top: 1rem;
  border-top: 2px solid var(--brand);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.floor-grid--rich .floor-tile > *:first-child { margin-top: 0; }
.floor-grid--rich ul,
.floor-grid--rich ol {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.floor-grid--rich li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: .95rem 1.1rem .95rem 1.4rem;
  overflow: hidden;
  font-size: .94rem;
  color: var(--text-muted);
}
.floor-grid--rich li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-warm), var(--brand));
}

/* --------------------------------------------------------------------------
   11. SPLIT LAYOUT
   -------------------------------------------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.4rem, 3.5vw, 2.75rem);
  align-items: center;
  width: 100%;
}
.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-body > p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   12. CHECK LIST
   -------------------------------------------------------------------------- */
.feature-check-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: .65rem;
  width: 100%;
}
.feature-check-list li {
  position: relative;
  padding: .9rem 1.1rem .9rem 3rem;
  background: linear-gradient(120deg, rgba(211, 169, 78, .13), rgba(246, 230, 184, .07));
  border: 1px solid rgba(211, 169, 78, .28);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  font-size: .95rem;
  color: var(--text);
}
.feature-check-list li::before {
  content: "";
  position: absolute;
  left: 1rem; top: 1.05rem;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-warm), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(36, 4, 15, .14);
}
.feature-check-list li::after {
  content: "";
  position: absolute;
  left: 1.34rem; top: 1.4rem;
  width: 5px; height: 9px;
  border: solid var(--brand-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.feature-check-list--plain { padding: clamp(1.5rem, 2.4vw, 2.2rem); overflow: hidden; }
.feature-check-list--plain > .feature-check-list { margin-top: 0; }

/* --------------------------------------------------------------------------
   13. IMAGE DIVIDER
   -------------------------------------------------------------------------- */
.image-divider {
  counter-increment: img-div;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
  margin: 0;
}
.image-divider .image-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.image-divider .image-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.image-divider .divider-num::before {
  content: counter(img-div, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1;
  color: rgba(216, 31, 43, .16);
  margin-bottom: .3rem;
}
.image-divider .divider-kicker {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .45rem;
}
.image-divider h3 { margin: 0; color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   14. HOMEPAGE BESPOKE
   -------------------------------------------------------------------------- */
.bento-floor {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}
.bento-floor > *:nth-child(1) { grid-column: span 4; }
.bento-floor > *:nth-child(2) { grid-column: span 2; }
.bento-floor > *:nth-child(3) { grid-column: span 2; }
.bento-floor > *:nth-child(4) { grid-column: span 2; }
.bento-floor > *:nth-child(5) { grid-column: span 2; }
.bento-tile h3 { margin-bottom: .5rem; }
.bento-tile p { color: var(--text-muted); font-size: .95rem; }

.tile-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .75rem;
  padding: .26rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(216, 31, 43, .07);
  border: 1px solid rgba(216, 31, 43, .16);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
}
.tile-tag svg { width: 12px; height: 12px; }
.reward-tile--vip .tile-tag {
  background: rgba(237, 207, 124, .1);
  border-color: rgba(237, 207, 124, .28);
  color: var(--accent-warm);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}
.security-grid--cols-3 { grid-template-columns: 1.16fr 1fr 1fr; }
.security-grid--cols-2 { grid-template-columns: 1.15fr 1fr; }
.security-grid { align-items: stretch; }
.security-grid > * { height: 100%; }
.security-tile .deco {
  width: 46px; height: 46px;
  margin-bottom: .95rem;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(160deg, var(--accent-warm), var(--accent));
  border: 1px solid rgba(36, 4, 15, .12);
  color: var(--brand-dark);
}
.security-tile .deco svg { width: 20px; height: 20px; }
.security-tile h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.security-tile p { color: var(--text-muted); font-size: .92rem; }

.rewards-bento {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--grid-gap);
  width: 100%;
}
.rewards-bento .reward-tile--welcome {
  background: linear-gradient(165deg, #fffdf9, rgba(237, 207, 124, .26));
}
.rewards-bento .reward-tile--vip {
  grid-column: 1 / -1;
  background: linear-gradient(115deg, var(--bg-panel-2), var(--bg-panel));
  color: var(--text-on-dark);
  border-color: rgba(237, 207, 124, .16);
}
.rewards-bento .reward-tile--vip h3 { color: var(--accent-warm); }
.rewards-bento .reward-tile--vip p { color: rgba(247, 236, 224, .76); }
.reward-tile h3 { margin-bottom: .5rem; }
.reward-tile p { color: var(--text-muted); font-size: .95rem; }

.support-card { padding: clamp(1.9rem, 3.5vw, 3rem); }
.support-inner { max-width: none; }
.support-card p { color: var(--text-muted); }
.support-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

.intro-block p { color: var(--text-muted); }

/* Blocks stacked inside a single section (intro card above its tile row,
   a rich grid above a zig-zag) are separated by the grid gutter. */
.intro-block + .floor-grid,
.intro-block + .security-grid,
.intro-block + .bento-floor,
.intro-block + .rewards-bento,
.intro-block + .apk-grid,
.intro-block + .zigzag,
.intro-block + .split-layout,
.intro-block + .step-path,
.intro-block + .feature-check-list--plain,
.floor-grid + .floor-grid,
.floor-grid + .zigzag,
.floor-grid + .apk-grid,
.zigzag + .floor-grid,
.apk-grid + .zigzag { margin-top: var(--grid-gap); }

/* --------------------------------------------------------------------------
   14b. GAME BROWSER — tabbed library of the live lobby
   -------------------------------------------------------------------------- */
.game-browser { width: 100%; }

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 1.35rem;
}
.game-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.05rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease), transform .3s var(--ease);
}
.game-tab svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.game-tab:hover { color: var(--brand-dark); border-color: var(--border-strong); }
.game-tab:active { transform: scale(.97); }
.game-tab.is-active {
  background: linear-gradient(168deg, var(--brand-light), var(--brand) 70%);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 24px -14px rgba(216,31,43,.6);
}
.game-tab.is-active svg { color: var(--accent-warm); }
.game-tab-count {
  min-width: 1.45rem;
  padding: 0 .35rem;
  border-radius: var(--r-pill);
  background: rgba(36, 4, 15, .07);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}
.game-tab.is-active .game-tab-count { background: rgba(255, 255, 255, .2); }

.game-panel-note {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* Grid of art tiles — a gallery, so it keeps its own rhythm */
.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}
.game-card { min-width: 0; }
.game-card-link {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
}
.game-art {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.game-art img {
  width: 100%;
  aspect-ratio: 400 / 540;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.game-card-link:hover .game-art {
  transform: translateY(-4px);
  border-color: rgba(211, 169, 78, .6);
  box-shadow: var(--shadow-lift);
}
.game-card-link:hover .game-art img { transform: scale(1.06); }
.game-card-link:active .game-art { transform: translateY(-4px) scale(.985); }

.game-provider {
  position: absolute;
  top: .45rem; left: .45rem;
  display: grid;
  place-items: center;
  padding: .2rem .4rem;
  border-radius: 7px;
  background: rgba(36, 4, 15, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(247, 236, 224, .16);
}
.game-provider::before {
  content: "";
  display: block;
  width: 34px; height: 13px;
  background: var(--logo) center / contain no-repeat;
}

.game-play {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(36, 4, 15, .92), rgba(36, 4, 15, 0));
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.game-play svg { width: 13px; height: 13px; color: var(--accent-warm); }
.game-card-link:hover .game-play,
.game-card-link:focus-visible .game-play { opacity: 1; transform: none; }

.game-name {
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  width: 100%;
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--hair);
}

/* Without JS every panel simply stacks; site.js hides the inactive ones. */
.game-browser.is-enhanced .game-panel { display: none; }
.game-browser.is-enhanced .game-panel.is-active { display: block; }
.game-browser.is-enhanced .game-panel.is-active .game-card {
  animation: game-in .5s var(--ease) both;
  animation-delay: calc(var(--index, 0) * 26ms);
}
@keyframes game-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.game-panel + .game-panel { margin-top: 2rem; }
.game-browser.is-enhanced .game-panel + .game-panel { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .game-browser.is-enhanced .game-panel.is-active .game-card { animation: none; }
}

@media (max-width: 1100px) { .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px)  {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-tab { flex: 1 1 auto; justify-content: center; }
}

[dir="rtl"] .game-provider { left: auto; right: .45rem; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: .6rem; width: 100%; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-card); border-color: rgba(211, 169, 78, .48); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  width: 24px; height: 24px;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-warm), var(--accent));
  transition: transform .5s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--brand-dark);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }
.faq-item[open] .faq-icon { transform: rotate(135deg); }
.faq-answer { padding: 0 1.3rem 1.3rem; }
.faq-answer p { color: var(--text-muted); font-size: .96rem; }

/* --------------------------------------------------------------------------
   16. FOOTER — asymmetric fractional grid, hairlines, no gold slab
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--section-gap);
  background: var(--bg-panel);
  color: var(--text-on-dark);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 -20% 40% -20%;
  background: radial-gradient(60% 60% at 22% 30%, rgba(216, 31, 43, .2), transparent 70%),
              radial-gradient(50% 60% at 84% 10%, rgba(211, 169, 78, .12), transparent 70%);
  pointer-events: none;
}
.footer-call {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
  width: 100%;
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--hair-on-dark);
}
.footer-call h2 { color: #fff; margin-bottom: .5rem; max-width: none; }
.footer-call p { color: rgba(247, 236, 224, .68); margin: 0; max-width: none; }
.footer-call-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.footer-linkmap {
  position: relative;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 2rem;
  width: 100%;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.footer-brand .brand-logo img { height: 40px; max-width: 168px; }
.footer-brand .btn-secondary { color: var(--accent-soft); border-color: rgba(237, 207, 124, .3); }
.footer-brand .btn-secondary:hover { color: var(--brand-dark); background: var(--accent-warm); border-color: var(--accent-warm); }
.footer-tagline {
  margin: .95rem 0 1.15rem;
  color: rgba(247, 236, 224, .62);
  font-size: .91rem;
  max-width: none;
}
.footer-col h3 {
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a {
  display: inline-block;
  color: rgba(247, 236, 224, .7);
  text-decoration: none;
  font-size: .91rem;
  transition: color .3s var(--ease), transform .35s var(--ease);
}
.footer-col a:hover { color: var(--accent-warm); transform: translateX(3px); }

.footer-trust {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
  padding-block: 1.2rem;
  border-top: 1px solid var(--hair-on-dark);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .36rem .85rem;
  border-radius: var(--r-pill);
  background: rgba(247, 236, 224, .05);
  border: 1px solid var(--hair-on-dark);
  box-shadow: inset 0 1px 0 rgba(247, 236, 224, .07);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: rgba(247, 236, 224, .76);
}
.trust-pill svg { width: 13px; height: 13px; color: var(--accent); flex: none; }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 1.2rem;
  border-top: 1px solid var(--hair-on-dark);
  font-size: .79rem;
  color: rgba(247, 236, 224, .5);
}
.footer-bottom em { font-family: var(--font-heading); font-style: italic; color: rgba(247, 236, 224, .64); }

/* --------------------------------------------------------------------------
   17. APK / APP-DOWNLOAD PAGE
   -------------------------------------------------------------------------- */
.apk-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  color: var(--text-on-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.apk-hero .hero-bg img { opacity: .3; }
.apk-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  width: 100%;
}
.apk-hero h1 { color: #fff; max-width: none; }
.apk-hero .page-sub { color: rgba(247, 236, 224, .78); max-width: none; margin-bottom: 0; }

.apk-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.35rem 0 1.6rem; }
.apk-fact {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .9rem;
  border-radius: var(--r-pill);
  background: rgba(247, 236, 224, .05);
  border: 1px solid var(--hair-on-dark);
  box-shadow: inset 0 1px 0 rgba(247, 236, 224, .08);
  font-size: .78rem;
  font-weight: 500;
  color: rgba(247, 236, 224, .82);
}
.apk-fact svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* Phone frame — pure CSS, no image dependency */
.phone-frame {
  position: relative;
  width: min(230px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(158deg, #4a1421, #1a0309);
  border: 1px solid rgba(237, 207, 124, .22);
  box-shadow: inset 0 1px 0 rgba(247, 236, 224, .14), var(--shadow-panel);
  animation: float-tile 8s var(--ease) infinite;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(178deg, #2f0713, #12030a);
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.7rem .7rem .7rem;
}
.phone-notch {
  position: absolute;
  top: .6rem; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 5px;
  border-radius: 999px;
  background: rgba(247, 236, 224, .2);
}
.phone-logo {
  margin: 0 auto .6rem;
  width: 76px; height: 23px;
  flex: none;
  background: url("/content/images/logo.png") center / contain no-repeat;
  opacity: .95;
}
.phone-row {
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(247, 236, 224, .09), rgba(247, 236, 224, .04));
  border: 1px solid rgba(247, 236, 224, .07);
  position: relative;
  overflow: hidden;
}
.phone-row--tall { height: 58px; }
.phone-row::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(237, 207, 124, .18), transparent);
  animation: shimmer 2.8s var(--ease) infinite;
}
.phone-row:nth-of-type(2)::after { animation-delay: .35s; }
.phone-row:nth-of-type(3)::after { animation-delay: .7s; }
.phone-row:nth-of-type(4)::after { animation-delay: 1.05s; }
@keyframes shimmer { to { transform: translateX(100%); } }
.phone-cta {
  margin-top: auto;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(168deg, var(--brand-light), var(--brand));
  display: grid;
  place-items: center;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

/* Numbered install path with a drawn connector */
.step-path { position: relative; display: grid; gap: var(--grid-gap); width: 100%; }
@media (min-width: 901px) {
  .step-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-path::before {
    content: "";
    position: absolute;
    top: 58px; left: 5%; right: 5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 15px);
    opacity: .4;
  }
}
.step-card { padding-top: 1.5rem; }
.step-num {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: .9rem;
  background: linear-gradient(160deg, var(--accent-warm), var(--accent));
  border: 1px solid rgba(36, 4, 15, .14);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-card p { color: var(--text-muted); font-size: .93rem; }

/* Zig-zag alternating rows — replaces generic equal-card feature rows */
.zigzag { display: grid; width: 100%; }
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: start;
  width: 100%;
  padding-block: 1.35rem;
  border-top: 1px solid var(--hair);
}
.zigzag-row:first-child { border-top: 0; padding-top: 0; }
.zigzag-row:nth-child(even) { grid-template-columns: 1.5fr 1fr; }
.zigzag-row:nth-child(even) .zigzag-label { order: 2; }
.zigzag-label { display: flex; align-items: flex-start; gap: .85rem; }
.zigzag-label .zz-icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(237, 207, 124, .55), rgba(211, 169, 78, .3));
  border: 1px solid rgba(211, 169, 78, .34);
  color: var(--brand-dark);
}
.zigzag-label .zz-icon svg { width: 19px; height: 19px; }
.zigzag-label h3 { margin: 0; font-size: 1.14rem; }
.zigzag-body { color: var(--text-muted); }
.zigzag-body p { font-size: .95rem; }

.apk-tile h3 { margin-bottom: .5rem; }
.apk-tile p { color: var(--text-muted); font-size: .95rem; }
.apk-tile .zz-icon {
  width: 40px; height: 40px;
  margin-bottom: .9rem;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(237, 207, 124, .55), rgba(211, 169, 78, .3));
  border: 1px solid rgba(211, 169, 78, .34);
  color: var(--brand-dark);
}
.apk-tile .zz-icon svg { width: 19px; height: 19px; }

.apk-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--grid-gap); width: 100%; }
.apk-grid--4 { grid-template-columns: 1.14fr 1fr 1fr 1fr; }
.apk-grid { align-items: stretch; }
.apk-grid > * { height: 100%; }

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.err-404 { padding-block: clamp(2.5rem, 7vw, 5rem); }
.err-404 .glyph {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(7rem, 20vw, 15rem);
  line-height: .88;
  background: linear-gradient(150deg, var(--accent-warm), var(--accent) 42%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .75rem;
}
.err-404 .err-body { max-width: none; }
.err-404 p { color: var(--text-muted); }
.err-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   19. PROSE
   -------------------------------------------------------------------------- */
.prose > p { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--text-muted); }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--brand); font-weight: 600; }
.prose strong { color: var(--text); }

/* --------------------------------------------------------------------------
   20. REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

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

/* --------------------------------------------------------------------------
   21. RTL — Urdu mirror at /pk/
   -------------------------------------------------------------------------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav-indicator { display: none; }
[dir="rtl"] .highlight::after { top: -.04em; bottom: -.04em; height: auto; border-radius: 6px; opacity: .3; }
[dir="rtl"] .stat-cell .num,
[dir="rtl"] .deal-chip .num,
[dir="rtl"] time { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stat-cell .num { display: block; }
[dir="rtl"] body { font-family: 'Noto Naskh Arabic', var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Noto Naskh Arabic', var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
}
[dir="rtl"] .stat-cell + .stat-cell { border-left: 0; border-right: 1px solid var(--border-soft); }
[dir="rtl"] .floor-grid--rich li { padding: .95rem 1.4rem .95rem 1.1rem; }
[dir="rtl"] .floor-grid--rich li::before { left: auto; right: 0; }
[dir="rtl"] .feature-check-list li { padding: .9rem 3rem .9rem 1.1rem; border-left: 1px solid rgba(211,169,78,.28); border-right: 3px solid var(--accent); }
[dir="rtl"] .feature-check-list li::before { left: auto; right: 1rem; }
[dir="rtl"] .feature-check-list li::after  { left: auto; right: 1.34rem; }
[dir="rtl"] [data-mark]::after { right: auto; left: .1em; }
[dir="rtl"] .footer-col a:hover { transform: translateX(-3px); }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3rem; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
[dir="rtl"] .deal-tile:nth-of-type(1) { left: auto; right: -12%; }
[dir="rtl"] .deal-tile:nth-of-type(2) { left: auto; right: 2%; }
[dir="rtl"] .deal-tile:nth-of-type(3) { left: auto; right: -6%; }
[dir="rtl"] .deal-chip { right: auto; left: -8%; }

/* --------------------------------------------------------------------------
   22. RESPONSIVE — asymmetry collapses hard below 900px
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 250px; order: -1; width: min(360px, 100%); }
  .primary-nav a { padding: .55rem .55rem; font-size: .85rem; }
  .footer-linkmap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .bento-floor > *:nth-child(1) { grid-column: span 6; }
  .bento-floor > *:nth-child(n+2) { grid-column: span 3; }
  .apk-hero-inner { grid-template-columns: 1.4fr 1fr; }
  .apk-grid, .apk-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 1.25rem; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav-indicator { display: none; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    margin-left: 0;
    background: rgba(36, 4, 15, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.75rem var(--gutter) 3rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a {
    padding: .95rem .3rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hair-on-dark);
    border-radius: 0;
  }
  .primary-nav .mobile-cta { display: flex; margin-top: 1.4rem; }
  .primary-nav .mobile-cta .btn-primary { width: 100%; }

  /* Hard collapse of every asymmetric grid */
  .floor-grid--cols-2,
  .floor-grid--cols-3,
  .floor-grid--cols-4,
  .security-grid,
  .security-grid--cols-3,
  .security-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-bento .reward-tile--welcome { grid-column: 1 / -1; }
  .split-layout,
  .image-divider,
  .footer-call,
  .apk-hero-inner,
  .zigzag-row,
  .zigzag-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .zigzag-row:nth-child(even) .zigzag-label { order: 0; }
  .image-divider .divider-aside { order: -1; }
  .apk-hero-inner .phone-frame { order: -1; }
  .stat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
}

@media (max-width: 700px) {
  .header-utility { display: none; }
  .header-top .container { justify-content: center; }
  .footer-linkmap { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .bento-floor { grid-template-columns: minmax(0, 1fr); }
  .bento-floor > * { grid-column: span 1 !important; }
}

@media (max-width: 560px) {
  .floor-grid--cols-2,
  .floor-grid--cols-3,
  .floor-grid--cols-4,
  .security-grid,
  .security-grid--cols-3,
  .security-grid--cols-2,
  .rewards-bento,
  .apk-grid,
  .apk-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .rewards-bento .reward-tile--vip { grid-column: span 1; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; }
  .deal-chip { width: 88px; height: 88px; }
  .deal-chip .num { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  :root { --gutter: 1rem; }
  .stat-rail { grid-template-columns: minmax(0, 1fr); }
  .stat-cell + .stat-cell { border-left: 0; border-top: 1px solid var(--border-soft); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  [data-mark]::after { font-size: 4rem; }
}
