/* ===========================================================================
   Pak Game Casino — site.css

   Design language: "Ember on Black".
   A single dark theme on a neutral off-black ground, carrying one dominant
   accent family lifted straight from the logo: vermilion red warming into
   ember orange. No second hue anywhere on the site.

   Signature ornament: the triple-bar mark from the logo, drawn in CSS as
   `.bars`, repeated as the section marker, the H4 rule and the list bullet.

   Radius rule (fixed, applied everywhere):
     panels / cards / figures  -> var(--card-radius)
     chips / small inline bits -> var(--r-sm)
     buttons and pills         -> var(--r-pill)

   Width rule (fixed): .container is the only width cap on the page. Every
   bounded element shares its two vertical guides, and no heading, paragraph
   or list narrows itself below them for typographic comfort.
   =========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Colour: one accent family, red into ember. */
  --brand:        #FA1F20;
  --brand-dark:   #C3121A;
  --brand-light:  #FF6A52;
  --accent:       #FF8A3D;
  --accent-warm:  #FFB169;
  --accent-soft:  #FFDCC2;

  /* Neutral off-black ground. Not #000: pure black kills the depth the
     card layers and shadows depend on. */
  --bg:           #0A0A0B;
  --bg-card:      #131315;
  --bg-elevated:  #1B1B1E;
  --bg-panel:     #060607;

  --text:         #F1F1F2;
  --text-muted:   #B2B2B7;
  --text-dim:     #7A7A81;
  --text-on-dark: #F1F1F2;

  --border:        rgba(241, 241, 242, .12);
  --border-strong: rgba(241, 241, 242, .26);
  --border-soft:   rgba(241, 241, 242, .07);

  /* Typography */
  --font-body:    'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  --font-mono:    'DM Mono', ui-monospace, SFMono-Regular, monospace;

  --step-h1: clamp(2.3rem, 1.35rem + 3.6vw, 4.1rem);
  --step-h2: clamp(1.7rem, 1.24rem + 1.75vw, 2.6rem);
  --step-h3: clamp(1.09rem, 1.01rem + .32vw, 1.28rem);
  --step-lead: clamp(1.02rem, .96rem + .3vw, 1.18rem);
  --step-body: 1rem;
  --step-small: .8125rem;
  --step-label: .6875rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --card-radius: 14px;

  /* Shadows read as depth against the off-black ground; the CTA shadow is
     the one place the red is allowed to bleed. */
  --shadow-soft:       0 1px 2px rgba(0, 0, 0, .55);
  --shadow-card:       0 2px 4px rgba(0, 0, 0, .45), 0 14px 30px rgba(0, 0, 0, .55);
  --shadow-card-hover: 0 4px 9px rgba(0, 0, 0, .5), 0 24px 52px rgba(0, 0, 0, .68);
  --shadow-cta:        0 8px 22px rgba(250, 31, 32, .3);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: 1.5rem;
  --header-top-h: 2.25rem;
  --header-main-h: 4.5rem;
  --header-h: calc(var(--header-top-h) + var(--header-main-h));
  /* Half the gap sits on each side of a section boundary, so the measured
     space between two consecutive sections is 60px. */
  --section-gap: 30px;

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

/* --- 2. Reset and base -------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.68;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  counter-reset: img-div;
}

body.nav-open { overflow: hidden; }

/* Atmosphere: two off-canvas glows plus a faint diagonal hatch. Fixed and
   inert so it never repaints during scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 40rem at 88% -8%, rgba(250, 31, 32, .11), transparent 60%),
    radial-gradient(52rem 44rem at -12% 34%, rgba(250, 31, 32, .05), transparent 58%),
    radial-gradient(46rem 34rem at 50% 108%, rgba(250, 31, 32, .06), transparent 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(241, 241, 242, .022) 0 1px,
    transparent 1px 7px
  );
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-variation-settings: 'wdth' 96, 'opsz' 40;
  letter-spacing: -.022em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-h1); font-variation-settings: 'wdth' 92, 'opsz' 72; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); letter-spacing: -.012em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 650; color: var(--text); }
em { font-style: italic; }

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

:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Parked above the viewport rather than at a large negative inline offset:
   a negative `left` is scrollable overflow in an RTL document and would add
   ~10000px of page width to the /pk/ mirror. */
.skip-link {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 200;
  transform: translateY(-130%);
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-end-end-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: none; }

/* --- 3. Width rule ------------------------------------------------------ */

/* One container. Every bounded element on the page sits inside it and fills
   it edge to edge. Components must not set their own max-width. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section > .container > * + * { margin-top: 2rem; }

/* --- 4. Signature ornament: the triple bar ------------------------------ */

.bars {
  display: inline-block;
  width: 15px;
  height: 9px;
  flex: none;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0    / 15px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 50%  / 11px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 100% / 15px 2px no-repeat;
}

.bars-lg {
  width: 26px;
  height: 15px;
  background:
    linear-gradient(currentColor, currentColor) 0 0    / 26px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50%  / 18px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 26px 3px no-repeat;
}

/* --- 5. Kicker and section heads ---------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.section-head { margin-bottom: 2.25rem; }
.section-head h2 { max-width: none; }
.section-head .kicker { margin-bottom: .9rem; }

/* Alternating rule colour gives consecutive builder sections a rhythm without
   adding another class to the generated markup. */
.section-head::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 1.15rem;
  background: var(--brand);
}
.section:nth-of-type(even) .section-head::after { background: var(--accent); }

.section-intro {
  color: var(--text-muted);
  font-size: var(--step-lead);
  margin-bottom: 2rem;
}

/* --- 6. Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 650;
  letter-spacing: -.005em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}

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

/* Ink on vermilion: 4.5:1, and far more arcade than white on red. */
.btn-primary {
  background: var(--brand);
  color: #0A0605;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--brand-light); box-shadow: 0 12px 30px rgba(250, 31, 32, .38); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-light); background: rgba(250, 31, 32, .07); }

.btn-ink {
  background: #0A0F0D;
  color: var(--text);
  border-color: rgba(10, 15, 13, .5);
}
.btn-ink:hover { background: #000; }

.btn-outline-ink {
  background: transparent;
  color: #140404;
  border-color: rgba(20, 4, 4, .5);
}
.btn-outline-ink:hover { background: rgba(20, 4, 4, .1); border-color: rgba(20, 4, 4, .78); }

.btn-header { padding: .62rem 1.2rem; font-size: .875rem; }

/* --- 7. Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, .7); }

.header-utility {
  height: var(--header-top-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  background: #050C0B;
}

.header-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trust-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.utility-nav { display: flex; gap: 1.35rem; }
.utility-nav a {
  font-size: .75rem;
  font-weight: 550;
  letter-spacing: .01em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.utility-nav a:hover { color: var(--accent-soft); }

.header-main { height: var(--header-main-h); display: flex; align-items: center; }

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { flex: none; display: block; line-height: 0; }
.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  padding: .35rem 0;
  font-size: .9rem;
  font-weight: 550;
  color: rgba(241, 241, 242, .78);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a.active { color: var(--text); }

/* Single indicator glided between links by site.js. */
.nav-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  opacity: 0;
  transition: transform .32s var(--ease), width .32s var(--ease), opacity .2s var(--ease);
  pointer-events: none;
}

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger-box { display: grid; gap: 4px; place-content: center; }
.burger-box i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform .26s var(--ease), opacity .18s var(--ease);
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 80;
  background: rgba(5, 12, 11, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .24s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 1.75rem var(--gutter) 3rem;
  max-width: var(--container);
  margin-inline: auto;
}
.mobile-nav-heading {
  margin: 1.5rem 0 .4rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mobile-nav-heading:first-child { margin-top: 0; }
.mobile-nav-inner a {
  padding: .8rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav-cta {
  margin-top: 2rem;
  border-bottom: 0;
  align-self: flex-start;
}

/* --- 8. Home hero ------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 4rem) clamp(3rem, 2.4rem + 2.5vw, 4.25rem);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero-content > * + * { margin-top: 1.4rem; }

/* The homepage H1 is source copy and cannot be shortened, so the scale is
   tuned to keep it inside three lines rather than the usual two. */
.hero h1 { font-size: clamp(2.05rem, 1.3rem + 2.5vw, 3.1rem); }
.hero .lead { font-size: clamp(.98rem, .94rem + .2vw, 1.06rem); }

/* Marker highlight rather than an italic swap: no descender clipping, and it
   echoes the logo's hard geometry. */
.highlight {
  position: relative;
  display: inline-block;
  color: var(--brand-light);
  z-index: 0;
}
.highlight::after {
  content: "";
  position: absolute;
  left: -.06em;
  right: -.06em;
  bottom: .06em;
  height: .34em;
  z-index: -1;
  background: rgba(250, 31, 32, .22);
  transform: skewX(-14deg);
  border-radius: 2px;
}

.lead {
  font-size: var(--step-lead);
  color: var(--text-muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Right column: a real image in an offset frame, the frame echoing the
   logo's angular red strokes. */
.hero-art { position: relative; }

.hero-figure {
  margin: 0;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-art::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--brand);
  border-radius: var(--card-radius);
  opacity: .5;
  z-index: -1;
}

/* Fallback when no generated art exists yet. */
.hero-art-fallback {
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(24rem 20rem at 70% 20%, rgba(250, 31, 32, .22), transparent 65%),
    repeating-linear-gradient(118deg, rgba(241, 241, 242, .04) 0 1px, transparent 1px 10px),
    var(--bg-card);
  aspect-ratio: 4 / 3;
}

/* --- 9. Stat strip (hero bridge) ---------------------------------------- */

/* Normal flow with a negative top margin, so nothing can clip it. */
.hero-bridge { margin-top: -3.25rem; position: relative; z-index: 2; }

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-stat {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--border-soft);
}
.hero-stat:last-child { border-right: 0; }

.hero-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brand-light);
  letter-spacing: -.02em;
}
.hero-stat span {
  display: block;
  margin-top: .5rem;
  font-size: var(--step-small);
  color: var(--text-muted);
}

/* --- 10. Panels: plain-card, intro-block, support-card ------------------ */

.plain-card,
.intro-block,
.support-card,
.feature-check-list--plain {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  box-shadow: var(--shadow-card);
}

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

.intro-block {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--brand);
  border-radius: 0;
  box-shadow: none;
  padding: .35rem 0 .35rem clamp(1.1rem, .8rem + 1vw, 1.9rem);
}
.intro-block p { font-size: var(--step-lead); }

/* The lede continuation is a bridge, not a full section: it does not need the
   standing section rhythm above and below it. */
.section-intro-block { padding-block: var(--section-gap); }

.support-card { text-align: left; }

/* --- 11. Tiles and floor grids ------------------------------------------ */

.floor-grid { display: grid; gap: 1.15rem; width: 100%; }

.floor-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.floor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.floor-grid--rich   { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}

/* A red rule that draws itself across the top edge on hover. */
.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}
.tile:hover::before { transform: scaleX(1); }

.tile-index {
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: .85rem;
  transition: color .26s var(--ease);
}
.tile:hover .tile-index { color: var(--brand-light); }

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

/* Image inside a bento lead tile: fills the taller cell instead of leaving it
   to trail off into empty space. */
.tile-figure {
  margin: 1.4rem 0 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.tile-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.tile-link { margin-top: auto; padding-top: 1.1rem; }
.tile-link a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  text-decoration: none;
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.tile-link a::after { content: "\2192"; }
.tile:hover .tile-link a { gap: .8rem; color: var(--brand-light); }

/* Rich tiles (R4b): one column, H4 becomes a ruled kicker, list items become
   sub-cards with a red edge. */
.tile-rich { padding: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.tile-rich > h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-bottom: 1rem; }
.tile-rich p { color: var(--text-muted); }

.tile-rich h4 {
  margin: 1.75rem 0 1rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--brand);
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.sub-cards { list-style: none; margin: 1.15rem 0 0; padding: 0; display: grid; gap: .6rem; }
.sub-cards li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: .85rem 1.1rem .85rem 1.35rem;
  font-size: .9375rem;
  color: var(--text-muted);
  overflow: hidden;
}
.sub-cards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--brand), var(--accent));
}

/* --- 12. Split layout --------------------------------------------------- */

.split-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: start;
  width: 100%;
}

.split-copy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  box-shadow: var(--shadow-card);
}
.split-copy > p { color: var(--text-muted); }

.split-figure {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.split-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* --- 13. Feature check list --------------------------------------------- */

.feature-check-list--plain {
  background:
    linear-gradient(180deg, rgba(250, 31, 32, .05), transparent 55%),
    var(--bg-card);
  border-left: 2px solid var(--brand);
}
.feature-check-list--plain > p { color: var(--text-muted); }

ul.feature-check-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.6rem;
}

ul.feature-check-list li {
  position: relative;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .9375rem;
  color: var(--text-muted);
}

/* The ornament again, this time as the bullet. */
ul.feature-check-list li::before {
  content: "";
  flex: none;
  margin-top: .48em;
  width: 13px;
  height: 8px;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0    / 13px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 50%  / 9px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 100% / 13px 2px no-repeat;
}

ul.feature-check-list li strong { color: var(--text); }

/* --- 14. Image divider (R5b) -------------------------------------------- */

/* Contained two-column figure. Never a full-bleed banner. */
.image-divider {
  counter-increment: img-div;
  padding-block: var(--section-gap);
}

.image-divider-inner {
  display: grid;
  grid-template-columns: 1.55fr .45fr;
  gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  align-items: center;
}

.image-divider-card {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.image-divider-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.image-divider-aside { display: flex; flex-direction: column; gap: .7rem; }

.image-divider-num::before {
  content: counter(img-div, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 500;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px var(--brand);
}

.image-divider-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}

/* --- 15. FAQ ------------------------------------------------------------ */

.faq-list { display: grid; gap: .7rem; width: 100%; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease);
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 620;
  letter-spacing: -.012em;
  line-height: 1.35;
  color: var(--text);
}

/* Plus sign that rotates into a minus. */
.faq-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  transition: transform .3s var(--ease), border-color .24s var(--ease), background-color .24s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 5px auto;
  height: 1.5px;
  background: var(--text-muted);
  transform: translateY(-50%);
  transition: opacity .24s var(--ease), background-color .24s var(--ease);
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(180deg); border-color: var(--brand); background: rgba(250, 31, 32, .12); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--brand-light); }
.faq-item[open] .faq-icon::after { opacity: 0; }

.faq-answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: .9375rem;
}

/* --- 16. Page hero (inner pages) ---------------------------------------- */

.page-hero {
  padding-block: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem) clamp(2rem, 1.4rem + 2vw, 3rem);
  border-bottom: 1px solid var(--border-soft);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-areas:
    "crumb  figure"
    "title  figure"
    "sub    figure"
    "meta   figure";
  gap: .9rem clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: start;
}

.breadcrumb { grid-area: crumb; }
.page-hero h1 { grid-area: title; }
.page-hero-sub { grid-area: sub; }
.page-meta { grid-area: meta; }
.page-hero-figure { grid-area: figure; align-self: center; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--accent-warm); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-muted); }

.page-hero-sub {
  margin: 0;
  font-size: var(--step-lead);
  color: var(--text-muted);
}

.page-meta {
  margin: .4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  color: var(--text-dim);
}
.page-meta-author { color: var(--text-muted); }
.page-meta time { position: relative; padding-left: .95rem; }
.page-meta time::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--brand);
}

.page-hero-figure {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.page-hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --- 17. Home: bespoke sections ----------------------------------------- */

/* Bento game floor. Six tiles, nine cells: the lead tile takes two columns
   and two rows, the other five fill the remainder exactly. No empty cell. */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
}
.bento-floor > .tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(250, 31, 32, .17), rgba(255, 138, 61, .05) 44%, transparent 70%),
    var(--bg-card);
}
.bento-floor > .tile:first-child h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); }
.bento-floor > .tile:first-child .tile-index { color: var(--brand-light); }

/* Rewards. Five tiles, six cells: the welcome offer takes two columns on the
   first row, the remaining four sit uniform beneath it. */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
}
.rewards-bento > .tile:first-child {
  grid-column: span 2;
  background:
    linear-gradient(105deg, rgba(250, 31, 32, .16), rgba(255, 138, 61, .06) 46%, transparent 72%),
    var(--bg-card);
}
.rewards-bento > .tile:first-child h3 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }

/* Responsible-gaming controls: paired rows, ornament instead of card chrome. */
.control-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.5rem;
  margin-top: 1.6rem;
}
.control-list > div { padding-top: 1.1rem; border-top: 1px solid var(--border-soft); }
.control-list h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
  font-size: 1rem;
}
.control-list h3::before {
  content: "";
  flex: none;
  width: 13px;
  height: 8px;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0    / 13px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 50%  / 9px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 100% / 13px 2px no-repeat;
}
.control-list p { font-size: .9375rem; color: var(--text-muted); }

/* Security: four short trust points on a ruled band, no card chrome. */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.security-grid > div {
  padding: 1.7rem 1.5rem;
  border-right: 1px solid var(--border-soft);
}
.security-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.security-grid > div:last-child { border-right: 0; }
.security-grid h3 {
  margin-bottom: .7rem;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.security-grid h3::before {
  content: "";
  flex: none;
  width: 15px;
  height: 9px;
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0    / 15px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 50%  / 11px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 100% / 15px 2px no-repeat;
}
.security-grid p { font-size: .875rem; color: var(--text-muted); }

/* Payments: a numbered ledger, deliberately not another card grid. */
.ledger { width: 100%; display: grid; gap: 0; counter-reset: ledger; }
.ledger > div {
  counter-increment: ledger;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border-soft);
}
.ledger > div:last-child { border-bottom: 1px solid var(--border-soft); }
.ledger > div::before {
  content: counter(ledger, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--brand);
}
.ledger h3 { font-size: 1.05rem; }
.ledger p { font-size: .9375rem; color: var(--text-muted); }

/* Mobile band: two platform panels sharing one frame. */
.device-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
}

/* Closing card: red panel, ink type. */
.closing-card {
  width: 100%;
  border-radius: var(--card-radius);
  padding: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  /* Kept inside the bright half of the red ramp: dark ink needs >=4.5:1 at
     every stop of the gradient, which a darkening red cannot provide. */
  background: linear-gradient(118deg, #FF4632 0%, #FA1F20 55%, #F01C22 100%);
  color: #140404;
}
.closing-card .bars-lg { display: block; margin-bottom: 1.1rem; }
.closing-card h2 { color: #140404; }
.closing-card p { color: #1B0605; }
.closing-card .closing-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* --- 18. Footer --------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: var(--section-gap);
  padding-top: 1px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

/* Ember panel lifted out of the footer and over the last section. */
.footer-cta {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.75rem 2.5rem;
  align-items: center;
  margin-top: calc(var(--section-gap) * -.5);
  margin-bottom: 3.5rem;
  padding: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  border-radius: var(--card-radius);
  background: linear-gradient(112deg, #FF4632 0%, #FA1F20 52%, #F01C22 100%);
  color: #140404;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .72);
}
.footer-cta h2 { color: #140404; margin-top: .8rem; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.footer-cta p { margin: .7rem 0 0; color: #1B0605; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.footer-map {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 3rem;
}

.footer-logo { display: block; line-height: 0; }
.footer-logo img { height: 38px; width: auto; object-fit: contain; }

.footer-tagline {
  margin: 1.1rem 0 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.pay-pills, .trust-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; }
.pay-pills li, .trust-pills li {
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .34rem .65rem;
}

.trust-pills { justify-content: center; padding-bottom: 2rem; }
.trust-pills li { color: var(--text-muted); }

.footer-col-title {
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--brand);
  font-family: var(--font-mono);
  font-size: var(--step-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a {
  font-size: .9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--brand-light); }

.footer-base { border-top: 1px solid var(--border-soft); padding-block: 1.5rem; }
.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-base p { margin: 0; font-size: var(--step-small); color: var(--text-dim); }

/* --- 19. 404 ------------------------------------------------------------ */

.err-404 {
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
  text-align: left;
}
.err-glyph {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 4rem + 22vw, 22rem);
  font-weight: 800;
  font-variation-settings: 'wdth' 84, 'opsz' 96;
  line-height: .8;
  letter-spacing: -.05em;
  background: linear-gradient(118deg, var(--brand) 8%, var(--accent) 52%, rgba(255, 220, 194, .28) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

.err-404 p { margin-top: 1.1rem; color: var(--text-muted); font-size: var(--step-lead); }
.err-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* --- 20. Motion --------------------------------------------------------- */

/* The hidden starting state is applied only when scripting is available, so a
   failed or blocked site.js can never leave the page blank. Without the `js`
   flag on <html>, .reveal elements are simply visible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Staggered entry inside a group: 60ms per item, capped so long grids do not
   crawl. */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 60ms; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 120ms; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 180ms; }
.reveal-group > .reveal:nth-child(n+5) { transition-delay: 240ms; }

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

/* --- 21. Right-to-left (the /pk/ Urdu mirror) --------------------------- */

/* Most of the layout already uses logical properties. These are the handful
   of physical values that need mirroring, plus an Urdu-capable face. */
[dir="rtl"] {
  --font-body: 'Noto Sans Arabic', 'Instrument Sans', system-ui, sans-serif;
  --font-heading: 'Noto Sans Arabic', 'Bricolage Grotesque', sans-serif;
}
[dir="rtl"] body { line-height: 1.95; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  letter-spacing: normal;
  line-height: 1.5;
  font-variation-settings: normal;
}
[dir="rtl"] .kicker,
[dir="rtl"] .trust-line,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .footer-col-title,
[dir="rtl"] .tile-rich h4 { letter-spacing: normal; }

[dir="rtl"] .intro-block { border-left: 0; border-right: 2px solid var(--brand); }
[dir="rtl"] .feature-check-list--plain { border-left: 0; border-right: 2px solid var(--brand); }
[dir="rtl"] .sub-cards li::before { left: auto; right: 0; }
[dir="rtl"] .tile::before { transform-origin: right; }
[dir="rtl"] .hero-art::before { inset: 14px 14px -14px -14px; }
[dir="rtl"] .hero-stat { border-right: 0; border-left: 1px solid var(--border-soft); }
[dir="rtl"] .hero-stat:last-child { border-left: 0; }
[dir="rtl"] .security-grid > div { border-right: 0; border-left: 1px solid var(--border-soft); }
[dir="rtl"] .security-grid > div:last-child { border-left: 0; }
[dir="rtl"] .page-meta time { padding-left: 0; padding-right: .95rem; }
[dir="rtl"] .page-meta time::before { left: auto; right: 0; }
[dir="rtl"] .tile-link a::after { content: "\2190"; }

/* --- 22. Responsive ------------------------------------------------------ */

@media (max-width: 1100px) {
  :root { --gutter: 1.25rem; }
  .primary-nav { gap: 1.1rem; }
  .primary-nav a { font-size: .85rem; }
  .floor-grid--cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid--3 > div:nth-child(3) { border-right: 0; }
  .security-grid > div:nth-child(2n) { border-right: 0; }
  .security-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .primary-nav, .btn-header { display: none; }
  .burger { display: block; }
  .header-utility { display: none; }
  :root { --header-h: var(--header-main-h); }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .hero-art::before { inset: 10px -10px -10px 10px; }

  .hero-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat:nth-child(2n) { border-right: 0; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }

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

  .split-layout,
  .image-divider-inner,
  .bento-floor,
  .rewards-bento { grid-template-columns: minmax(0, 1fr); }
  .bento-floor > .tile:first-child,
  .rewards-bento > .tile:first-child { grid-column: auto; grid-row: auto; }

  .image-divider-aside { flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "crumb" "title" "sub" "meta" "figure";
  }
  .page-hero-figure { margin-top: 1.25rem; }

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

@media (max-width: 700px) {
  ul.feature-check-list { grid-template-columns: minmax(0, 1fr); }
  .ledger > div { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .5rem 1rem; }
  .ledger > div p { grid-column: 2; }
  .device-band { grid-template-columns: minmax(0, 1fr); }
  .footer-base-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .floor-grid--cols-2,
  .floor-grid--cols-3,
  .floor-grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
  .security-grid { grid-template-columns: minmax(0, 1fr); }
  .security-grid > div { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .security-grid > div:last-child { border-bottom: 0; }
  .footer-map { grid-template-columns: minmax(0, 1fr); }
  .hero-stats-strip { grid-template-columns: minmax(0, 1fr); }
  .hero-stat { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .hero-stat:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.1rem; }
  .btn { width: 100%; }
  .hero-actions, .footer-cta-actions, .err-actions, .closing-actions { width: 100%; }
  .trust-pills { justify-content: flex-start; }
}
