/* ===========================================================================
   Good Rummy - goodrummygames.com
   Direction: "Felt and Filigree". A warm charcoal ground, the green of a card
   table, and champagne gold used once per surface. The signature ornament is
   the meld rule: three graduated gold bars, the shape of a laid-off sequence.
   Width law: the container is the only cap on this site. Nothing inside a
   section sets its own max-width.
   =========================================================================== */

:root {
  /* brand - viridian, hue 159 */
  --brand:        #12835C;
  --brand-dark:   #0B5B3F;
  --brand-light:  #2FC28B;

  /* accent - champagne gold, lifted from the app mark */
  --accent:       #E3B341;
  --accent-warm:  #F6D98A;
  --accent-soft:  rgba(227, 179, 65, .12);

  /* ground - warm charcoal, the colour of a lit room rather than a screen */
  --bg:           #12110D;
  --bg-card:      #1A1813;
  --bg-elevated:  #211E17;
  --bg-panel:     #0C0B08;

  --text:         #F5F1E6;
  --text-muted:   #C6BFAE;
  --text-dim:     #938C7C;
  --text-on-dark: #F5F1E6;

  --border:        rgba(245, 241, 230, .10);
  --border-strong: rgba(227, 179, 65, .30);
  --border-soft:   rgba(245, 241, 230, .055);

  --font-body:    'Mulish', system-ui, sans-serif;
  --font-heading: 'Red Hat Display', 'Mulish', system-ui, sans-serif;

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

  --shadow-soft:       0 2px 10px rgba(0, 0, 0, .28);
  --shadow-card:       0 10px 28px rgba(0, 0, 0, .42), 0 2px 6px rgba(0, 0, 0, .30);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, .52), 0 4px 12px rgba(0, 0, 0, .34);
  --shadow-cta:        0 10px 26px rgba(227, 179, 65, .26);

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

  --gold-gloss: linear-gradient(180deg, #F6D98A 0%, #E3B341 46%, #BE8D1F 100%);
}

/* --------------------------------------------------------------- reset */

*, *::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 {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); 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: -.016em;
  margin: 0 0 .7rem;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 5.1vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.4rem); }
h3 { font-size: clamp(1.14rem, 1.9vw, 1.4rem); }
h4 { font-size: .82rem; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #17140C;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--r-md) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* The one and only width cap on this site. */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------------------------------------- the meld rule ornament */
/* Three graduated bars, the shape of a laid-off rummy sequence. Used as the
   kicker mark, the list bullet, the card top stripe and the footer rule. */

.meld-rule {
  display: block;
  width: 46px;
  height: 7px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 10px 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 14px 0 / 14px 7px no-repeat,
    linear-gradient(var(--accent-warm), var(--accent-warm)) 32px 0 / 20px 7px no-repeat;
  border-radius: var(--r-pill);
  opacity: .95;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  font-family: var(--font-heading);
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}
.kicker::before {
  content: "";
  width: 34px; height: 5px; flex: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 7px 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 10px 0 / 10px 5px no-repeat,
    linear-gradient(var(--accent-warm), var(--accent-warm)) 23px 0 / 14px 5px no-repeat;
  border-radius: var(--r-pill);
}

/* -------------------------------------------------------------- buttons */

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

/* CTA variant one: gold gloss on ink. The page's single loudest surface. */
.btn-primary {
  background: var(--gold-gloss);
  color: #17140C;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  color: #17140C;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(227, 179, 65, .36);
}

/* CTA variant two: solid viridian, ivory label. */
.btn-brand {
  background: var(--brand-dark);
  color: var(--text-on-dark);
  border-color: rgba(47, 194, 139, .34);
}
.btn-brand:hover {
  background: var(--brand);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 91, 63, .5);
}

/* CTA variant three: gold stroke over art, with its own scrim. */
.btn-ghost {
  background: rgba(18, 17, 13, .55);
  color: var(--accent-warm);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(227, 179, 65, .14);
  color: var(--accent-warm);
  transform: translateY(-2px);
}

.btn-sm { padding: .58rem 1.15rem; font-size: .85rem; }

/* --------------------------------------------------------------- header */

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

.header-top {
  background: #080705;
  border-bottom: 1px solid var(--border-soft);
  font-size: .76rem;
  color: var(--text-dim);
}
.header-top .container {
  min-height: var(--header-top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-trust { display: flex; align-items: center; gap: .55rem; }
.trust-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(227, 179, 65, .55);
  animation: pulse-dot 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(227, 179, 65, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(227, 179, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 179, 65, 0); }
}
.header-util { display: flex; align-items: center; gap: 1.1rem; }
.header-util a { color: var(--text-dim); font-weight: 500; }
.header-util a:hover { color: var(--accent); }

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

/* R6: the mark is shown as given. No crop, no frame, no recolour. */
.brand-link { display: flex; align-items: center; flex: none; }
.brand-link img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.site-nav { margin-left: auto; position: relative; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
  padding: .4rem 0;
  display: block;
}
.nav-list a:hover, .nav-list a.active { color: var(--text); }

.nav-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--gold-gloss);
  border-radius: var(--r-pill);
  width: 0;
  left: 0;
  opacity: 0;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), width .34s cubic-bezier(.16, 1, .3, 1), opacity .2s;
  pointer-events: none;
}

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ====================================================================
   HERO - "inset notch"
   One full-width art card. Its bottom-left corner is cut away by an
   L-shaped notch, and the copy sits in that cut on the page ground, so
   the art brackets the headline above and to the right.
   ==================================================================== */

.home-hero {
  position: relative;
  padding: 2.4rem 0 3.4rem;
  overflow: hidden;
}

.hero-shell { position: relative; }

.hero-art {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #15372A, #0C1C15 60%, #141209);
  box-shadow: var(--shadow-card);
  /* The notch: full rectangle minus a bottom-left bite. */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 58% 100%, 58% 37%, 0 37%);
  aspect-ratio: 16 / 8;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 17, 13, .86) 0%, rgba(18, 17, 13, .34) 46%, rgba(18, 17, 13, .06) 70%),
    radial-gradient(90% 120% at 86% 20%, rgba(227, 179, 65, .20), transparent 62%);
  pointer-events: none;
}

/* The copy block lives inside the notch. */
.hero-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  padding: 0 2.2rem 0.6rem 0;
}
.hero-copy h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  margin-bottom: .85rem;
}
.hero-copy .hero-sub { font-size: 1rem; margin-bottom: 1.15rem; }

/* R: exactly one italic accent word, with room for its descenders. */
.highlight {
  font-style: italic;
  color: var(--accent-warm);
  position: relative;
  line-height: 1.1;
  padding-bottom: .08em;
  display: inline-block;
}
.highlight::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .04em;
  height: .28em;
  background: rgba(227, 179, 65, .18);
  border-radius: 3px;
  z-index: -1;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.06rem;
  margin-bottom: 1.4rem;
}

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

/* Foreground object: "the meld stack". Three stepped plates, the shape of a
   sequence laid off on the table. Pure CSS, decorative only. */
.meld-stack {
  position: absolute;
  top: 9%;
  right: 5%;
  width: 196px;
  height: 196px;
  pointer-events: none;
  transform: rotate(-4deg);
}
.meld-plate {
  position: absolute;
  width: 108px;
  height: 148px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #221F17, #14120C);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
  display: flex;
  align-items: flex-end;
  padding: .8rem;
}
.meld-plate:nth-child(1) { left: 0;    top: 30px; transform: rotate(-9deg); opacity: .62; }
.meld-plate:nth-child(2) { left: 32px; top: 15px; transform: rotate(-3deg); opacity: .82; }
.meld-plate:nth-child(3) { left: 64px; top: 0;    transform: rotate(4deg); }
.meld-plate:nth-child(3)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 20% 0%, rgba(227, 179, 65, .18), transparent 60%);
}
.meld-plate .meld-rule { width: 38px; height: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .meld-stack { animation: meld-drift 9s ease-in-out infinite alternate; }
  @keyframes meld-drift {
    from { transform: rotate(-4deg) translateY(0); }
    to   { transform: rotate(-4deg) translateY(-10px); }
  }
}

/* Inner-page hero: the same art language, without the notch. */
.page-hero {
  position: relative;
  padding: 3.4rem 0 2.6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .30;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 17, 13, .95) 0%, rgba(18, 17, 13, .74) 52%, rgba(18, 17, 13, .88) 100%),
    radial-gradient(70% 100% at 88% 0%, rgba(227, 179, 65, .14), transparent 60%);
  z-index: 1;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: .3rem;
}

.page-meta {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.page-meta-author { color: var(--accent); font-weight: 600; }

/* -------------------------------------------------- hero-bridge stat strip */
/* Normal flow with a negative pull, never absolute: absolute clips the tiles. */

.stat-strip {
  position: relative;
  z-index: 5;
  margin-top: -3.25rem;
  margin-bottom: 2.6rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.stat-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--gold-gloss);
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--accent-warm);
  line-height: 1.2;
  display: block;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}

/* ---------------------------------------------------------- section shell */

.builder-section, .intro-section, .home-section {
  padding: 3.4rem 0;
}

/* Width law: the head runs the full container measure like everything else. */
.section-head { margin-bottom: 1.9rem; }
.section-head h2 { margin-bottom: .55rem; }
.section-sub { color: var(--text-muted); }

.intro-block {
  color: var(--text-muted);
  font-size: 1.04rem;
  margin-bottom: 1.6rem;
}
.intro-block p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ cards */

.card-base,
.plain-card,
.floor-tile,
.support-card,
.bento-cell,
.security-cell,
.reward-cell {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s, border-color .28s;
}
.plain-card::before,
.floor-tile::before,
.support-card::before,
.bento-cell::before,
.security-cell::before,
.reward-cell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--gold-gloss);
  opacity: .9;
}

/* The italic monogram watermark that signs every card. */
.floor-tile::after,
.plain-card::after,
.support-card::after {
  content: "GR";
  position: absolute;
  right: .85rem;
  bottom: .35rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(245, 241, 230, .035);
  pointer-events: none;
  transition: color .3s;
}
.floor-tile:hover::after,
.plain-card:hover::after,
.support-card:hover::after { color: rgba(227, 179, 65, .13); }

.floor-tile:hover,
.bento-cell:hover,
.security-cell:hover,
.reward-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.plain-card { padding: 1.9rem 1.9rem 1.7rem; color: var(--text-muted); }
.plain-card h3 { color: var(--text); }

.floor-tile {
  padding: 1.65rem 1.6rem 1.5rem;
  color: var(--text-muted);
}
.floor-tile h3 { color: var(--text); margin-bottom: .6rem; }

/* R3: the column count follows the item count. */
.floor-grid { display: grid; gap: 1.15rem; }
.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 run one per row with generous padding and sub-cards. */
.floor-grid--rich { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
.floor-grid--rich .floor-tile { padding: 2.4rem; }
.floor-grid--rich .floor-tile h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); }

.tile-kicker {
  font-family: var(--font-heading);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--brand);
  padding-top: .85rem;
  margin: 1.5rem 0 .85rem;
}

.rich-subcards { display: grid; gap: .7rem; margin: 1.1rem 0 .4rem; }
.rich-subcard {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.45rem;
  color: var(--text-muted);
  overflow: hidden;
}
.rich-subcard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-warm), var(--brand));
}

/* ------------------------------------------------------------ list styles */

.content-ul { list-style: none; margin: 0 0 1.05rem; padding: 0; }
.content-ul li {
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: .72rem;
  color: var(--text-muted);
}
.content-ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 34px; height: 5px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 7px 5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 10px 0 / 10px 5px no-repeat,
    linear-gradient(var(--accent-warm), var(--accent-warm)) 23px 0 / 14px 5px no-repeat;
  border-radius: var(--r-pill);
}

/* An ordered list renders its own markers: the source numbered it, not us. */
.content-ol {
  margin: 0 0 1.05rem;
  padding-left: 1.4rem;
  color: var(--text-muted);
}
.content-ol li { margin-bottom: .72rem; padding-left: .35rem; }
.content-ol li::marker {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* --------------------------------------------------- feature check-list */

.feature-check-list .content-ul {
  background: linear-gradient(135deg, rgba(227, 179, 65, .10), rgba(18, 131, 92, .07));
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  margin: 1.3rem 0;
}
.feature-check-list .content-ul li { padding-left: 2.6rem; margin-bottom: .85rem; }
.feature-check-list .content-ul li:last-child { margin-bottom: 0; }
.feature-check-list .content-ul li::before {
  content: "";
  left: 0;
  top: .34em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-gloss);
  box-shadow: 0 2px 8px rgba(227, 179, 65, .3);
}
.feature-check-list .content-ul li::after {
  content: "";
  position: absolute;
  left: 7px; top: .72em;
  width: 8px; height: 4px;
  border-left: 2px solid #17140C;
  border-bottom: 2px solid #17140C;
  transform: rotate(-45deg);
}
.feature-check-list--plain { color: var(--text-muted); }

/* ----------------------------------------------------------- split layout */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 1.9rem;
  align-items: start;
}
.split-copy { color: var(--text-muted); }
.split-media {
  margin: 0;
  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: 16 / 9; object-fit: cover; }

/* ---------------------------------------------------------- image divider */
/* R5b: a contained figure beside a decorative aside. Never a full-bleed band. */

.image-divider { padding: 1.4rem 0 2.6rem; }
.divider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 1.6rem;
  align-items: stretch;
}
.divider-figure {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.divider-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.divider-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  padding: 1.9rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(18, 131, 92, .22), transparent 62%),
    var(--bg-card);
}
.divider-aside .meld-rule { margin-bottom: .7rem; }
.divider-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.22;
  color: var(--text);
  margin: 0;
}

/* ======================================================== home sections */

.home-intro .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 2rem;
  align-items: start;
}
.intro-pull {
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(18, 131, 92, .26), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
}
.intro-pull p { color: var(--text); font-size: 1.04rem; }
.intro-pull .meld-rule { margin-bottom: 1rem; }

/* Game floor: a bento with one tall lead tile. */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 1.15rem;
}
.bento-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  min-height: 170px;
  color: var(--text-muted);
}
.bento-cell > * { position: relative; z-index: 2; }
.bento-cell h3 { color: var(--text); margin-bottom: .35rem; }
.bento-cell p { font-size: .92rem; margin: 0; }
.bento-cell img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34;
  z-index: 0;
}
.bento-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 13, .3) 0%, rgba(18, 17, 13, .92) 72%);
  z-index: 1;
}
.bento-cell--lead { grid-column: span 2; grid-row: span 2; min-height: 340px; }
.bento-cell--wide { grid-column: span 2; }

/* Security: a four-up with a pressed-metal feel. */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.security-cell {
  padding: 1.6rem 1.4rem;
  color: var(--text-muted);
  background:
    linear-gradient(170deg, rgba(227, 179, 65, .07), transparent 46%),
    var(--bg-card);
}
.security-cell h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.security-cell .meld-rule { margin-bottom: 1rem; }
.security-cell p { font-size: .93rem; margin: 0; }

/* Rewards: welcome card top-left, VIP strip spanning the bottom. */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.reward-cell { padding: 1.7rem 1.6rem; color: var(--text-muted); }
.reward-cell h3 { color: var(--text); margin-bottom: .5rem; }
.reward-cell--welcome {
  grid-column: span 2;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(227, 179, 65, .18), transparent 58%),
    var(--bg-elevated);
}
.reward-cell--media { padding: 0; overflow: hidden; }
.reward-cell--media img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.reward-cell--vip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
  background:
    linear-gradient(100deg, rgba(18, 131, 92, .26), transparent 58%),
    var(--bg-card);
}
.reward-cell--vip > div { flex: 1 1 320px; }

/* Support: an editorial card carrying an oversized italic watermark. */
.support-card {
  padding: 2.4rem;
  color: var(--text-muted);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(18, 131, 92, .2), transparent 60%),
    var(--bg-card);
}
.support-card::after {
  content: "Good Rummy";
  right: 1rem;
  bottom: -.6rem;
  font-size: clamp(3.4rem, 10vw, 7rem);
  color: rgba(245, 241, 230, .032);
  white-space: nowrap;
}
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.9rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.support-media {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.support-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* --------------------------------------------------------------- the FAQ */

.faq-section { padding: 3.4rem 0 4rem; }
.faq-list { display: grid; gap: .85rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow .26s, border-color .26s, transform .26s;
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: .22rem;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 10px no-repeat;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-soft);
  margin-top: 2rem;
  padding-bottom: 1.4rem;
}

.footer-cta {
  position: relative;
  margin-top: -2.6rem;
  margin-bottom: 2.8rem;
  border-radius: var(--r-xl);
  padding: 2.4rem;
  overflow: hidden;
  background: var(--gold-gloss);
  color: #17140C;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.footer-cta::after {
  content: "Good Rummy";
  position: absolute;
  right: 1.2rem;
  bottom: -1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  line-height: 1;
  color: rgba(23, 20, 12, .11);
  white-space: nowrap;
  pointer-events: none;
}
.footer-cta > * { position: relative; z-index: 2; }
.footer-cta h2 { color: #17140C; margin-bottom: .35rem; }
.footer-cta p { color: rgba(23, 20, 12, .82); margin: 0; max-width: none; }
.footer-cta .btn {
  background: #17140C;
  color: var(--accent-warm);
  border-color: rgba(23, 20, 12, .4);
}
.footer-cta .btn:hover { background: #241F13; color: var(--accent-warm); }

.footer-map {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand img { height: 48px; width: auto; object-fit: contain; border-radius: var(--r-sm); }
.footer-tagline { color: var(--text-dim); font-size: .92rem; margin: 1rem 0 1.1rem; }
.pay-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pay-pill {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .32rem .75rem;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: .9rem;
  position: relative;
  padding-bottom: .7rem;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 4px;
  background: var(--gold-gloss);
  border-radius: var(--r-pill);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: .4rem .9rem;
}

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

/* ------------------------------------------------------------------- 404 */

.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.error-display {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(8vw, 16vw, 22vw);
  line-height: .9;
  background: var(--gold-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 1rem;
}

/* --------------------------------------------------------------- reveals */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------- breakpoints */

@media (max-width: 1100px) {
  .nav-list { gap: 1.05rem; }
  .nav-list a { font-size: .87rem; }
  .bento-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-cell--lead { grid-column: span 2; grid-row: span 1; min-height: 240px; }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav-indicator { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(12, 11, 8, .97);
    backdrop-filter: blur(14px);
    margin: 0;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.16, 1, .3, 1);
    overflow-y: auto;
  }
  .nav-open .site-nav { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border-soft); }
  .nav-list a { font-size: 1.05rem; padding: .95rem 0; }
  .nav-list .nav-cta { margin-top: 1.4rem; }
  .nav-list .nav-cta .btn { width: 100%; }

  .hero-art { clip-path: none; aspect-ratio: 16 / 9; }
  .hero-copy {
    position: static;
    width: 100%;
    padding: 1.6rem 0 0;
  }
  .meld-stack { width: 140px; height: 140px; top: 6%; right: 4%; }
  .meld-plate { width: 78px; height: 106px; }

  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { margin-top: 1.6rem; }

  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout, .divider-grid, .home-intro .intro-grid, .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-cell--welcome { grid-column: span 2; }
}

@media (max-width: 700px) {
  .header-top .container { font-size: .7rem; }
  .header-util { gap: .7rem; }
  .builder-section, .intro-section, .home-section { padding: 2.6rem 0; }
  .floor-grid--rich .floor-tile { padding: 1.6rem; }
  .support-card, .footer-cta { padding: 1.7rem; }
}

@media (max-width: 560px) {
  .container { padding: 0 1.15rem; }
  .floor-grid--cols-2,
  .floor-grid--cols-3,
  .floor-grid--cols-4,
  .bento-floor,
  .security-grid,
  .rewards-bento { grid-template-columns: minmax(0, 1fr); }
  .bento-cell--lead, .bento-cell--wide, .reward-cell--welcome { grid-column: span 1; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-map { grid-template-columns: minmax(0, 1fr); }
  .meld-stack { display: none; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .header-trust span:not(.trust-dot) { display: none; }
  .brand-link img { height: 38px; }
  h1 { font-size: 1.95rem; }
}

/* Media-led variant of the split, used where the art introduces the copy. */
.split-layout--media-first { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.split-layout--media-first .split-media { order: 0; }

/* The rewards strip is a CTA band: a label and a button, no prose. */
.reward-cell--vip .kicker { margin-bottom: 0; }

/* The in-nav CTA belongs to the mobile overlay only: the header bar already
   carries one, and two identical pills side by side is a bug. */
@media (min-width: 901px) {
  .nav-list .nav-cta { display: none; }
}
