/* ==========================================================================
   Diwa Rummy - diwarummy.net
   Direction: "Malachite Night" - a lit card table in a dark room.
   Dominant malachite, one sharp papaya accent, no gold anywhere.
   Signature ornament: "the cut mark" (a leaning papaya tick across a rule).
   ========================================================================== */

:root {
  /* brand */
  --brand: #16A06B;
  --brand-dark: #0C6B47;
  --brand-light: #4CD69A;

  /* accent */
  --accent: #FF8A3D;
  --accent-warm: #FFB874;
  --accent-soft: rgba(255, 138, 61, .15);

  /* surfaces */
  --bg: #07140F;
  --bg-card: #0E201A;
  --bg-elevated: #152C23;
  --bg-panel: #0A1A14;

  /* text */
  --text: #E9F4ED;
  --text-muted: #9DBAAB;
  --text-dim: #6B8A7C;
  --text-on-dark: #FFFFFF;

  /* lines */
  --border: rgba(233, 244, 237, .09);
  --border-strong: rgba(76, 214, 154, .30);
  --border-soft: rgba(233, 244, 237, .05);

  /* type */
  --font-body: 'Commissioner', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Alegreya Sans', 'Commissioner', system-ui, sans-serif;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --card-radius: 18px;

  /* shadows - warm, two-layer, tinted to the ground */
  --shadow-soft: 0 2px 10px rgba(4, 12, 8, .32);
  --shadow-card: 0 1px 2px rgba(4, 12, 8, .4), 0 16px 40px rgba(4, 12, 8, .46);
  --shadow-card-hover: 0 2px 6px rgba(4, 12, 8, .46), 0 26px 60px rgba(4, 12, 8, .58);
  --shadow-cta: 0 10px 26px rgba(255, 138, 61, .32);

  /* measure */
  --container: 1200px;
  --container-wide: 1320px;
  --header-top-h: 2.25rem;
  --header-main-h: 4.5rem;
  --header-h: calc(var(--header-top-h) + var(--header-main-h));
}

/* --------------------------------------------------------------- reset -- */
*, *::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: 1rem;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-light); text-decoration: none; }
a:hover { color: var(--accent-warm); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  color: var(--text-on-dark);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.42rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1.15rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.15rem; }
li { margin-bottom: .55rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #221003; padding: .75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------- container -- */
/* D1 WIDTH LAW: this is the ONLY max-width on the page. Nothing inside a
   section gets its own narrower cap. One pair of guide lines, every page. */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------- ornament: cut mark -- */
/* A malachite hairline crossed by a leaning papaya tick. Used for the
   eyebrow mark, list bullets and divider asides. */
.cut-mark,
.kicker {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin: 0 0 .9rem;
}
/* the malachite rule */
.cut-mark::before,
.kicker::before {
  content: "";
  flex: none;
  width: 28px; height: 2px;
  background: var(--brand);
}
/* the papaya tick leaning across its far end */
.cut-mark::after,
.kicker::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  margin-top: -8px;
  width: 2px; height: 16px;
  background: var(--accent);
  transform: rotate(12deg);
}

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  padding: 1rem 1.9rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px) scale(.985); }

/* CTA variant one: solid papaya, the page's only filled accent */
.btn-primary {
  background: var(--accent);
  color: #221003;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--accent-warm);
  color: #221003;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 138, 61, .42);
}

/* CTA variant two: malachite outline on the ground */
.btn-outline {
  background: transparent;
  color: var(--brand-light);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: rgba(22, 160, 107, .14);
  border-color: var(--brand-light);
  color: var(--brand-light);
  transform: translateY(-2px);
}

/* CTA variant three: solid malachite, for use on papaya or art grounds */
.btn-brand {
  background: var(--brand);
  color: #04120B;
  box-shadow: 0 10px 26px rgba(22, 160, 107, .32);
}
.btn-brand:hover {
  background: var(--brand-light);
  color: #04120B;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 160, 107, .4);
}

.btn-sm { padding: .72rem 1.3rem; font-size: .86rem; }

/* ------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #04100B;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(2, 8, 5, .6); }

.header-utility {
  background: #030C08;
  border-bottom: 1px solid var(--border-soft);
  font-size: .76rem;
  color: var(--text-dim);
}
.header-utility .container {
  min-height: var(--header-top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.trust-line {
  display: flex;
  align-items: center;
  gap: .55rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 500;
}
.trust-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  flex: none;
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 214, 154, .5); }
  50% { opacity: .65; box-shadow: 0 0 0 5px rgba(76, 214, 154, 0); }
}
.utility-nav { display: flex; gap: 1.3rem; }
.utility-nav a { color: var(--text-dim); font-size: .74rem; }
.utility-nav a:hover { color: var(--brand-light); }

.header-main .container {
  min-height: var(--header-main-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* R6: the logo is a wide wordmark, never an icon */
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .25rem;
  position: relative;
}
.primary-nav a {
  position: relative;
  display: block;
  padding: .55rem .78rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--text-on-dark); }
.nav-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .32s cubic-bezier(.16,1,.3,1), width .32s cubic-bezier(.16,1,.3,1), opacity .2s;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width;
}
.header-cta { flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------- hero: the table curve -- */
/* Archetype: a full-container art stage whose bottom edge is a wide convex
   arc, the far rim of a card table seen from the player's seat. The copy
   plate tucks up into the arc's dip. Object: "the cut card". */
.hero {
  position: relative;
  padding: 2.5rem 0 0;
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(22, 160, 107, .16), transparent 70%),
    radial-gradient(70% 50% at 8% 30%, rgba(255, 138, 61, .09), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  height: clamp(290px, 36vw, 440px);
  border-radius: var(--r-xl) var(--r-xl) 0 0 / var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  /* the convex table rim */
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 72%, transparent 72.4%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 72%, transparent 72.4%);
  border-top: 2px solid rgba(76, 214, 154, .22);
}
.hero-stage img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero-stage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(185deg, rgba(7, 20, 15, .5) 0%, rgba(7, 20, 15, .06) 40%, rgba(7, 20, 15, .72) 100%),
    linear-gradient(100deg, rgba(7, 20, 15, .55) 0%, rgba(7, 20, 15, 0) 52%);
  pointer-events: none;
}

/* the arc rim light */
.hero-rim {
  position: absolute;
  left: 1.5rem; right: 1.5rem;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), var(--brand), transparent);
  opacity: .5;
  border-radius: 2px;
  pointer-events: none;
}

/* the cut card: the slim plastic marker a dealer slips into the deck */
.cut-card {
  position: absolute;
  left: clamp(1.5rem, 8vw, 7rem);
  top: 12%;
  width: clamp(54px, 6vw, 76px);
  height: clamp(170px, 23vw, 250px);
  border-radius: 10px;
  transform: rotate(9deg);
  background: linear-gradient(160deg, rgba(76, 214, 154, .96), rgba(22, 160, 107, .88) 55%, rgba(12, 107, 71, .95));
  box-shadow: 0 24px 50px rgba(2, 10, 6, .62), inset 0 1px 0 rgba(255, 255, 255, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.cut-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 6px;
  border: 1px dashed rgba(4, 18, 11, .4);
}
.cut-card-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(.68rem, .85vw, .82rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #04120B;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
@media (prefers-reduced-motion: no-preference) {
  .cut-card { animation: cutCardSettle 1s cubic-bezier(.16,1,.3,1) both; }
  @keyframes cutCardSettle {
    from { transform: rotate(22deg) translateY(-26px); opacity: 0; }
    to { transform: rotate(9deg) translateY(0); opacity: 1; }
  }
}

/* the copy plate, tucked into the arc's dip */
.hero-plate {
  position: relative;
  z-index: 3;
  margin-top: clamp(-5.5rem, -6vw, -3.5rem);
  background: linear-gradient(170deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border);
  border-top: 2px solid var(--brand);
  border-radius: var(--card-radius);
  /* the extra bottom padding is the room the stat strip pulls up into */
  padding: clamp(1.8rem, 3.4vw, 2.9rem) clamp(1.8rem, 3.4vw, 2.9rem) calc(clamp(1.8rem, 3.4vw, 2.9rem) + 3.5rem);
  box-shadow: var(--shadow-card);
}

.hero h1 { margin-bottom: .75rem; }
/* D3.3: exactly one italic highlight word, with a translucent marker */
.highlight {
  font-style: italic;
  font-weight: 900;
  color: var(--accent-warm);
  position: relative;
  line-height: 1.12;
  padding-bottom: .1em;
  display: inline-block;
}
.highlight::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em;
  bottom: .08em;
  height: .28em;
  background: var(--accent-soft);
  border-radius: 3px;
  z-index: -1;
}
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ------------------------------------------- hero bridge: stat strip -- */
/* Normal flow, never absolute - absolute clips. */
.stat-strip {
  position: relative;
  z-index: 4;
  margin-top: -3.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stat-cell {
  background: var(--bg-elevated);
  padding: 1.35rem 1.2rem;
  text-align: left;
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  color: var(--brand-light);
  line-height: 1.1;
  display: block;
}
.stat-label {
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

/* -------------------------------------------------------- page shell -- */
main { display: block; }
.section { padding: clamp(3.2rem, 6vw, 5rem) 0; }
.section-head { margin-bottom: 2.2rem; }
.section-head h2 { margin-bottom: .55rem; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.page-meta {
  font-size: .82rem;
  color: var(--text-dim);
  margin: -.4rem 0 1.5rem;
}
.page-meta-author { color: var(--text-muted); font-weight: 500; }

.intro-block {
  border-left: 3px solid var(--brand);
  padding: .2rem 0 .2rem 1.4rem;
  margin: 0 0 2.4rem;
  color: var(--text-muted);
}
.intro-block p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- cards -- */
.card,
.plain-card,
.support-card,
.floor-tile,
.image-divider,
.feature-check-list--plain,
.faq-list {
  position: relative;
}

.plain-card,
.support-card,
.floor-tile {
  background: linear-gradient(168deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.plain-card::before,
.support-card::before,
.floor-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .9;
}
.floor-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}
.plain-card p:last-child,
.support-card p:last-child,
.floor-tile p:last-child { margin-bottom: 0; }

/* oversized italic watermark, bottom-right */
.card-watermark {
  position: absolute;
  right: .55rem; bottom: -.35rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 1;
  color: rgba(76, 214, 154, .055);
  pointer-events: none;
  user-select: none;
  transition: color .35s;
  letter-spacing: -.02em;
}
.floor-tile:hover .card-watermark,
.plain-card:hover .card-watermark { color: rgba(255, 138, 61, .1); }

/* ------------------------------------------- R3: floor grids by count -- */
.floor-grid { display: grid; gap: 1.25rem; }
.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)); }

/* R4b: rich tiles - one column, generous padding, no max-width */
.floor-grid--rich { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.floor-grid--rich .floor-tile { padding: clamp(1.8rem, 3vw, 2.4rem); }
.floor-grid--rich .floor-tile > h4 {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-light);
  border-top: 2px solid var(--brand);
  padding-top: .9rem;
  margin: 1.6rem 0 .9rem;
}
.floor-grid--rich .floor-tile > h4:first-of-type { margin-top: 1.2rem; }
.floor-grid--rich .floor-tile ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: .7rem;
}
.floor-grid--rich .floor-tile li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.45rem;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
}
.floor-grid--rich .floor-tile li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

/* ------------------------------------------------------ split layout -- */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: center;
}
.split-layout--reverse .split-media { order: -1; }
.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body p:last-child { margin-bottom: 0; }

/* -------------------------------------------------- feature check list -- */
.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .85rem;
}
.feature-check-list li {
  position: relative;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin: 0;
  color: var(--text-muted);
}
.feature-check-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: .3rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(4, 18, 11, .35);
  background-image: linear-gradient(135deg, var(--brand-light), var(--brand));
  position: relative;
}
.feature-check-list li::after {
  content: "";
  position: absolute;
  left: 7px; top: .72rem;
  width: 5px; height: 10px;
  border: solid #04120B;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.feature-check-list--plain {
  background: linear-gradient(160deg, rgba(22, 160, 107, .12), rgba(14, 32, 26, .9));
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--card-radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-card);
}
.feature-check-list--plain p:last-of-type { margin-bottom: 0; }

/* --------------------------------------------- tables from the brief -- */
/* A hairline between rows only, never a rule above and below every one. */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.4rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 480px;
}
.spec-table thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: var(--bg-elevated);
  padding: .85rem 1.1rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--brand);
}
.spec-table tbody th,
.spec-table tbody td {
  padding: .85rem 1.1rem;
  vertical-align: top;
  color: var(--text-muted);
  font-weight: 300;
  text-align: left;
}
.spec-table tbody th {
  color: var(--text-on-dark);
  font-weight: 600;
  font-family: var(--font-heading);
  white-space: nowrap;
}
.spec-table tbody tr + tr th,
.spec-table tbody tr + tr td { border-top: 1px solid var(--border-soft); }
.spec-table tbody tr:hover th,
.spec-table tbody tr:hover td { background: rgba(22, 160, 107, .07); }

/* ----------------------------------- R5b: image divider (contained) --- */
.image-divider {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: stretch;
  margin: clamp(2.4rem, 4vw, 3.4rem) 0;
}
.image-divider figure {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.image-divider figure img { width: 100%; height: 100%; object-fit: cover; }
.divider-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  background: linear-gradient(168deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-soft);
}
.divider-aside h3 { font-size: 1.25rem; margin: 0; }
.divider-aside .kicker { margin-bottom: .2rem; }

/* --------------------------------------------------------------- FAQ -- */
.faq-list { display: grid; gap: .8rem; margin-top: 1.8rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s;
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.4rem 1.15rem 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--text-on-dark);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.25rem; top: 50%;
  width: 20px; height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 9px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 9px no-repeat;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer { padding: 0 1.3rem 1.3rem; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- home: bespoke bits -- */
.home-intro .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}
.home-intro .intro-lede { font-size: 1.08rem; color: var(--text-muted); }

/* home-floor: bento */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 1.25rem;
}
/* Five tiles, five cells, no gaps: 2+1 / 1+2 / 3 */
.bento-floor .floor-tile:nth-child(1) { grid-column: span 2; }
.bento-floor .floor-tile:nth-child(4) { grid-column: span 2; }
.bento-floor .floor-tile:nth-child(5) { grid-column: 1 / -1; }

/* home-secure: 4-up */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.security-cell {
  background: linear-gradient(168deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.security-cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.security-cell h3 { font-size: 1.1rem; }
.security-cell p { color: var(--text-muted); margin-bottom: 0; font-size: .94rem; }

/* home-rewards: bento with a VIP strip along the bottom */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
/* Five cards, five cells, no gaps: welcome+reload / cashback+loyalty / VIP strip */
.rewards-bento .reward-welcome { grid-column: span 2; }
.rewards-bento .reward-card:nth-child(4) { grid-column: span 2; }
.rewards-bento .reward-vip { grid-column: 1 / -1; }
.reward-card {
  background: linear-gradient(168deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.reward-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.reward-welcome {
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(255, 138, 61, .17), transparent 62%),
    linear-gradient(168deg, var(--bg-elevated), var(--bg-panel));
}
.reward-vip {
  background:
    radial-gradient(80% 160% at 0% 50%, rgba(22, 160, 107, .2), transparent 60%),
    linear-gradient(100deg, var(--bg-elevated), var(--bg-panel));
}
.reward-card p:last-child { margin-bottom: 0; }

/* home-support: editorial card with an oversized italic watermark */
.support-editorial {
  position: relative;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(22, 160, 107, .14), transparent 60%),
    linear-gradient(168deg, var(--bg-card), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.support-editorial::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.support-watermark {
  position: absolute;
  right: -.5rem; bottom: -2.2rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 1;
  color: rgba(76, 214, 154, .06);
  pointer-events: none;
  user-select: none;
  letter-spacing: -.03em;
}
.support-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.support-channels .support-card { box-shadow: var(--shadow-soft); }

/* ------------------------------------ game section: the running bond -- */
/* Square tiles in rows that alternate flush / inset by half a cell, the way
   bricks are laid in a running bond. Unique to this site. */
.game-bond { display: grid; gap: clamp(.7rem, 1.1vw, 1rem); }
.bond-row {
  display: grid;
  gap: clamp(.7rem, 1.1vw, 1rem);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bond-row--inset {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 calc((100% / 12) + (clamp(.7rem, 1.1vw, 1rem) / 2));
}
.game-tile {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
  transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s, border-color .28s;
}
.game-tile img { width: 100%; height: 100%; object-fit: cover; }
/* Each tile's own artwork already carries its title, so the tile adds a
   malachite wash on hover rather than a caption that repeats it. The name
   lives in the alt text. */
.game-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 14, 9, .45) 100%);
  pointer-events: none;
  transition: background .28s;
}
.game-tile:hover::after {
  background: linear-gradient(180deg, rgba(22, 160, 107, .22), rgba(4, 14, 9, .35) 100%);
}
.game-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}
.game-bond-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

/* ------------------------------------------------------------ footer -- */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  background: #040F0A;
  border-top: 1px solid var(--border);
  padding-bottom: 1.5rem;
}
.footer-cta-wrap { transform: translateY(-50%); margin-bottom: -4rem; }
.footer-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, var(--accent) 0%, #FF7A22 58%, #E9680F 100%);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3.6vw, 2.8rem);
  box-shadow: 0 24px 56px rgba(4, 12, 8, .58);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-cta-watermark {
  position: absolute;
  right: 1rem; bottom: -2rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 1;
  color: rgba(34, 16, 3, .13);
  pointer-events: none;
  user-select: none;
  letter-spacing: -.03em;
}
.footer-cta-copy { position: relative; z-index: 1; max-width: none; }
.footer-cta-copy h2 { color: #221003; margin-bottom: .35rem; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.footer-cta-copy p { color: rgba(34, 16, 3, .82); margin: 0; font-weight: 400; }
.footer-cta .btn-brand { position: relative; z-index: 1; }

.footer-linkmap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
  padding: 1rem 0 2.4rem;
}
.footer-brand img { height: 44px; width: auto; object-fit: contain; }
.footer-tagline { color: var(--text-muted); font-size: .92rem; margin: 1rem 0 1.1rem; }
.payment-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.payment-pill {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-pill);
  padding: .32rem .8rem;
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-on-dark);
  margin-bottom: .9rem;
  padding-bottom: .55rem;
  position: relative;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--accent);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .92rem; }
.footer-col a:hover { color: var(--brand-light); }

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .38rem .9rem;
}
.trust-pill::before {
  content: "";
  width: 14px; height: 2px;
  background: var(--brand);
  flex: none;
}

.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------ reveal -- */
/* Gated on html.js so that content is never invisible when the script
   fails to run. Without JS the reveals simply render in place. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- 404 -- */
.error-page { padding: clamp(4rem, 10vw, 8rem) 0; text-align: left; }
.error-code {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(8vw, 16vw, 22vw);
  line-height: .85;
  margin: 0 0 1rem;
  background: linear-gradient(118deg, var(--brand-light), var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.04em;
}
.error-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }

/* ------------------------------------------------- locale mirror (hi) -- */
.mirror-body { font-family: 'Khula', var(--font-body); }
.mirror-body h1, .mirror-body h2, .mirror-body h3, .mirror-body h4 {
  font-family: 'Khula', var(--font-heading);
  font-weight: 700;
}
.mirror-body .highlight { font-style: normal; }

/* =====================================================  breakpoints  === */
@media (max-width: 1100px) {
  .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bond-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bond-row--inset { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 calc((100% / 10) + (.85rem / 2)); }
  .footer-linkmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-main-h: 4rem; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: .25rem;
    padding: 1.5rem;
    background: rgba(4, 16, 11, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.16,1,.3,1);
    overflow-y: auto;
    margin-left: 0;
  }
  .primary-nav.is-open { transform: none; }
  .primary-nav a {
    font-size: 1.05rem;
    padding: .9rem .4rem;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav-indicator { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  body.nav-open { overflow: hidden; }

  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout { grid-template-columns: minmax(0, 1fr); }
  .split-layout--reverse .split-media { order: 0; }
  .image-divider { grid-template-columns: minmax(0, 1fr); }
  .home-intro .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .bento-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-floor .floor-tile:nth-child(1),
  .bento-floor .floor-tile:nth-child(4),
  .bento-floor .floor-tile:nth-child(5) { grid-column: 1 / -1; }
  .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-bento .reward-welcome,
  .rewards-bento .reward-card:nth-child(4) { grid-column: 1 / -1; }
  .support-channels { grid-template-columns: minmax(0, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cut-card { left: 1.25rem; top: 10%; }
}

@media (max-width: 700px) {
  .utility-nav { display: none; }
  .bond-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bond-row--inset { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc((100% / 8) + (.7rem / 2)); }
  .hero-plate { margin-top: -3rem; }
  .footer-cta { 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); }
  .bento-floor { grid-template-columns: minmax(0, 1fr); }
  .bento-floor .floor-tile:nth-child(1),
  .bento-floor .floor-tile:nth-child(4),
  .bento-floor .floor-tile:nth-child(5) { grid-column: span 1; }
  .rewards-bento { grid-template-columns: minmax(0, 1fr); }
  .rewards-bento .reward-welcome,
  .rewards-bento .reward-card:nth-child(4) { grid-column: span 1; }
  .footer-linkmap { grid-template-columns: minmax(0, 1fr); }
  .cut-card { display: none; }
  .bond-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bond-row--inset { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 calc((100% / 6) + (.7rem / 2)); }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .stat-strip { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: 250px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 auto; }
}

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

/* The home-intro's right column: three cards stacked inside a half-width
   cell, so a 3-across grid would be cramped. Full width of its own cell. */
.intro-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
