:root {
  /* —— Design tokens (STEP 03): Deep Green + Gold + Ivory. No blue / purple / neon orange. —— */
  --rummy-green: #064e3b;
  --rummy-green-dark: #033528;
  --rummy-green-light: #0a6b50;
  --rummy-gold: #fbbf24;
  --rummy-gold-soft: #fcd34d;
  --rummy-gold-dark: #d97706;
  --rummy-ivory: #f5faf7;
  --rummy-white: #fff;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;

  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-24: 24px;

  --shadow-card: 0 8px 20px rgba(0, 0, 0, .32);
  --shadow-floating: 0 14px 36px rgba(0, 0, 0, .4);
  --shadow-modal: 0 24px 56px rgba(0, 0, 0, .48);

  /* Default chrome: ivory/green. Gold border is reserved (CTA, selected card, active seat, status, joker, winner). */
  --border-primary: 1px solid rgba(245, 250, 247, .2);
  --border-secondary: 1px solid rgba(10, 107, 80, .5);
  --border-subtle: 1px solid rgba(245, 250, 247, .1);
  --border-gold: 2px solid var(--rummy-gold);

  /* India online-rummy market: emerald felt + gold CTAs (legacy aliases → tokens) */
  --navy: #071a14;
  --navy-2: #0c2a20;
  --navy-3: #12382c;
  --primary: var(--rummy-green);
  --primary-2: var(--rummy-green-light);
  --primary-3: var(--rummy-green-dark);
  --gold: var(--rummy-gold);
  --gold-2: var(--rummy-gold-soft);
  --gold-3: var(--rummy-gold-dark);
  --saffron: var(--rummy-gold);
  --peacock: #149652;
  --maroon: #0c2a20;
  --white: var(--rummy-white);
  --cream: var(--rummy-ivory);
  --muted: #a7c4b6;
  --ok: #34d399;
  --card-face: #fbf8f0;
  --card-border: #d9d0bc;
  --card-red: #b0142e;
  --card-black: #16213e;
  --card-joker: #8a6a10;
  --card-joker-border: var(--rummy-gold-dark);
  --shadow: var(--shadow-floating);
  --glow: 0 0 28px rgba(251, 191, 36, .35);
  --radius: var(--radius-16);
  --max: 1120px;
  --ease: .28s ease;
  --font: "Segoe UI", "Noto Sans Devanagari", "Mukta", "Hind", system-ui, sans-serif;
  --font-display: "Segoe UI", "Noto Sans Devanagari", "Hind", "Mukta", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

#main,
.section,
#what-is-rummy,
#how-to-play,
#rummy-rules,
#variants,
#points-rummy,
#13-card-rummy,
#strategy,
#faq,
#internal-links,
#cta {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  background:
    radial-gradient(ellipse at 88% -8%, rgba(251, 191, 36, .12), transparent 42%),
    radial-gradient(ellipse at 8% 18%, rgba(6, 78, 59, .55), transparent 44%),
    var(--navy);
  color: var(--cream);
  line-height: 1.65;
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(251, 191, 36, .35);
  color: #1a1204;
}

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

.promo-img {
  width: min(100%, 560px);
  margin: 18px auto 0;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, .28);
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 8px;
  z-index: 80;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
}

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

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: linear-gradient(180deg, rgba(6, 78, 59, .97), rgba(3, 53, 40, .96));
  border-bottom: 1px solid rgba(251, 191, 36, .22);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  flex-shrink: 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffe08a, #fbbf24 55%, #d97706);
  color: #1a1204;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(251, 191, 36, .35);
}

img.logo-mark.logo-emblem {
  display: block;
  padding: 0;
  background: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  width: 52px;
  height: 52px;
}

.nav-toggle {
  display: none;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--gold-2);
  background: transparent;
  font-size: 22px;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(251, 191, 36, .12);
  color: #fcd34d;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
  background:
    radial-gradient(circle at 82% 8%, rgba(240, 161, 42, .22), transparent 30%),
    radial-gradient(circle at 8% 70%, rgba(14, 107, 92, .18), transparent 34%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 200, 87, .06), transparent 24%),
    radial-gradient(circle at 78% 60%, rgba(14, 107, 92, .07), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(1.8rem, 6vw, 3.1rem);
  color: var(--white);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 42ch;
}

.hero-offer {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-offer li {
  font-weight: 800;
  color: var(--white);
}

.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.pills li {
  background: linear-gradient(145deg, rgba(58, 28, 20, .9), rgba(26, 12, 10, .95));
  border: 1px solid rgba(240, 161, 42, .35);
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  color: var(--cream);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 600;
}

.dl-hint strong {
  color: var(--gold-2, #fcd34d);
  font-weight: 800;
}

.hero-actions .dl-hint,
.final-cta .dl-hint {
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease), background var(--ease), color var(--ease);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 48%, var(--gold-3));
  color: #1a1204;
  border-color: rgba(255, 236, 180, .5);
  box-shadow: 0 8px 20px rgba(251, 191, 36, .28);
  text-shadow: none;
}

.btn-gold:hover {
  color: #1a1204;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--glow), 0 12px 28px rgba(0, 0, 0, .25);
}

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

.btn:focus-visible,
.nav a:focus-visible,
.nav-btn:focus-visible,
.sticky-dl:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

/* Shared playing-card face — used by homepage décor and the demo table */
.pcard {
  width: 52px;
  height: 76px;
  border-radius: 8px;
  background: var(--card-face);
  border: 2px solid var(--card-border);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.1;
  user-select: none;
  padding: 0;
  font-family: inherit;
  color: var(--card-black);
  box-sizing: border-box;
}
.pcard .suit { font-size: 1.1rem; }
.pcard.red { color: var(--card-red); }
.pcard.black { color: var(--card-black); }
.pcard.joker,
.pcard.wild {
  border-color: var(--card-joker-border);
  color: var(--card-joker);
  background: linear-gradient(180deg, #fff8e0, var(--card-face));
}
.pcard .joker-tag {
  display: block;
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--card-joker);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}
.card-back {
  width: 52px;
  height: 76px;
  border-radius: 8px;
  background: #0c2a4a url("/assets/images/card-back-india.webp") center / cover no-repeat;
  border: 2px solid #d4af37;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.hand-examples {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
}
.hand-example {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(12, 42, 32, .95), rgba(4, 17, 13, .92));
  border: 1px solid rgba(251, 191, 36, .2);
}
.hand-example figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}
.hand-example figcaption strong { color: var(--gold-2); }
.example-fan {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  min-height: 78px;
}
.example-fan .pcard {
  width: 52px;
  height: 76px;
  margin-left: -14px;
  cursor: default;
  pointer-events: none;
}
.example-fan .pcard:first-child { margin-left: 0; }
.example-fan .pcard:nth-child(1) { transform: rotate(-8deg); }
.example-fan .pcard:nth-child(2) { transform: translateY(-4px); }
.example-fan .pcard:nth-child(3) { transform: rotate(8deg); }
@media (min-width: 768px) {
  .hand-examples { grid-template-columns: 1fr 1fr 1fr; }
}

.btn-ghost {
  border-color: rgba(251, 191, 36, .55);
  color: var(--gold-2);
  background: rgba(0, 0, 0, .22);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(251, 191, 36, .12);
  transform: translateY(-1px);
}

.stage {
  min-height: 280px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 20%, rgba(240, 161, 42, .18), transparent 40%),
    linear-gradient(160deg, #3a1c14, #0e6b5c 48%, #160a0c);
  border: 1px solid rgba(240, 161, 42, .4);
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.coin,
.card {
  position: absolute;
}

.card {
  width: 72px;
  height: 104px;
  border-radius: 8px;
  background: #fbf8f0;
  color: #8b1538;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .28);
  animation: float 4s ease-in-out infinite;
}

.card.spade {
  color: #16213e;
}

.c1 { left: 18%; top: 28%; transform: rotate(-16deg); }
.c2 { left: 40%; top: 18%; transform: rotate(6deg); animation-delay: .4s; }
.c3 { left: 62%; top: 30%; transform: rotate(18deg); animation-delay: .8s; }

.coin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4b8, var(--gold) 46%, var(--gold-3));
  box-shadow: inset 0 0 0 3px #b99220;
  animation: pulse 2.4s ease-in-out infinite;
}

.k1 { right: 12%; top: 18%; }
.k2 { right: 22%; bottom: 16%; animation-delay: .6s; }

@keyframes float {
  50% { translate: 0 -8px; }
}

@keyframes pulse {
  50% { transform: scale(1.12); }
}

.section {
  padding: 40px 0;
}

.section.alt {
  background: rgba(255, 255, 255, .025);
}

.kicker {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  margin: 0 0 8px;
}

.india-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #1a0c08;
  background: linear-gradient(90deg, #ff9933, #ffc857 45%, #138808);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

.grid-2,
.grid-4,
.cards {
  display: grid;
  gap: 14px;
}

.card-box {
  background: rgba(12, 42, 32, .9);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, .08);
}

.entity span {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--cream);
}

.path a {
  background: rgba(12, 42, 32, .85);
  border: 1px solid rgba(251, 191, 36, .22);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--cream);
  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.faq details {
  background: rgba(12, 42, 32, .9);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: 12px;
  padding: 4px 14px;
  margin-bottom: 10px;
  transition: border-color var(--ease);
}

.faq details:hover,
.faq details[open] {
  border-color: rgba(251, 191, 36, .4);
}

.site-footer {
  position: relative;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(251, 191, 36, .15);
  color: var(--muted);
  font-size: .92rem;
  background: #04110d;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  overflow: hidden;
}

.site-footer .footer-pattern {
  position: absolute;
  inset: 0;
  background: url("../images/felt-india-pattern.webp") center / 180px repeat;
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}

.site-footer > .wrap {
  position: relative;
  z-index: 1;
}

.toc {
  background: rgba(12, 42, 32, .88);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 22px;
}

.card-box h3 {
  color: var(--gold-2);
  font-size: 1.05rem;
}

.entity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.path {
  display: grid;
  gap: 10px;
}

.home-steps {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--muted);
  max-width: 52ch;
}

.home-steps li {
  margin: 0 0 8px;
}

.path a:hover {
  border-style: solid;
  color: var(--gold-2);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.crumbs {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.crumbs a {
  color: var(--muted);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.page,
main#main {
  padding: 28px 0 56px;
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
}

main.game-shell {
  padding: 0;
}

.page > .wrap > h1,
.prose > h1 {
  font-size: clamp(1.75rem, 5.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}

.prose {
  max-width: 760px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
}

.prose h2 {
  margin-top: 32px;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(251, 191, 36, .14);
}

.prose h3 {
  color: var(--gold-2);
  margin-top: 22px;
}

.prose .cta-row {
  margin: 22px 0;
  flex-direction: row;
  flex-wrap: wrap;
}

.prose .cta-row .btn {
  min-width: 160px;
}

.prose ul,
.prose ol {
  padding-left: 1.15rem;
}

.toc a {
  display: block;
  min-height: 40px;
  color: var(--cream);
}

.blog-list {
  display: grid;
  gap: 12px;
}

.blog-list a {
  display: block;
  background: rgba(12, 42, 32, .88);
  border: 1px solid rgba(251, 191, 36, .18);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--cream);
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.blog-list a:hover {
  border-color: rgba(251, 191, 36, .4);
  background: rgba(10, 107, 80, .28);
  color: var(--white);
  transform: translateY(-1px);
}

.blog-list a strong {
  color: var(--gold-2);
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.related a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--cream);
  font-weight: 700;
  font-size: .9rem;
}

.related a:hover {
  border-color: rgba(251, 191, 36, .5);
  color: var(--gold-2);
}

@media (min-width: 375px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  /* Hero/content CTAs only — never stretch header chrome buttons */
  .btn:not(.nav-play):not(.nav-dl) { min-width: 200px; }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1.1fr .9fr; }
  .hero-grid { grid-template-columns: .82fr 1.18fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .path { grid-template-columns: repeat(2, 1fr); }
  .nav-btn { display: none; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .path { grid-template-columns: repeat(5, 1fr); }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .coin { animation: none; }
}

.lang-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 60;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  height: 28px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(240, 185, 11, .55);
  background: #10182a;
  color: #ffe08a;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
  font-family: inherit;
}

.lang-toggle .lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(255, 224, 138, .55);
  transition: background .15s ease, color .15s ease;
}

.lang-toggle .lang-opt.is-active {
  background: linear-gradient(145deg, #f0b90b, #d4a017);
  color: #1a1204;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.lang-toggle .lang-sep {
  width: 1px;
  margin: 4px 1px;
  background: rgba(240, 185, 11, .28);
  align-self: stretch;
}

.lang-toggle:hover .lang-opt:not(.is-active) {
  color: #ffe08a;
}

.lang-toggle:focus-visible {
  outline: 2px solid #ffc857;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  /* Junglee-style: brand + lang on top row; horizontal tabs below */
  .site-header {
    position: sticky;
    background: #04110d;
    border-bottom: 1px solid rgba(251, 191, 36, .18);
  }
  .site-header > .wrap.header-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: min(100% - 24px, var(--max));
    padding: 10px 0 0;
    min-height: 0;
    padding-left: 16px;
    padding-right: 78px; /* room for EN/हिं toggle */
    box-sizing: border-box;
  }
  .logo {
    order: 1;
    font-size: 1.05rem !important;
    font-weight: 800;
    color: var(--gold) !important;
    max-width: none !important;
    gap: 8px;
  }
  .logo-mark {
    font-size: 13px !important;
    width: 32px;
    height: 32px;
  }
  .logo-text,
  .logo [data-i18n="logo"] {
    display: inline !important;
    font-size: 1.05rem !important;
    color: var(--gold);
  }
  .nav-toggle,
  .nav-btn,
  .nav-dl,
  .nav-play {
    display: none !important;
  }
  .nav {
    order: 3;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: static !important;
    left: auto;
    right: auto;
    top: auto;
    /* Bleed matches header pad L16 + R78 (see mobile-system) */
    width: calc(100% + 16px + 78px);
    max-width: none;
    flex: 1 0 100%;
    gap: 0;
    margin: 6px 0 0;
    margin-left: -16px;
    margin-right: -78px;
    padding: 6px 0 10px;
    box-sizing: border-box;
    background: transparent !important;
    border: 0;
    border-top: 1px solid rgba(251, 191, 36, .12);
    box-shadow: none !important;
    min-width: 0;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    min-width: 0;
    margin: 0;
    padding: 6px 2px;
    border-radius: 8px;
    font-size: .86rem;
    font-weight: 700;
    color: rgba(245, 250, 247, .78);
    white-space: nowrap;
    background: transparent;
    text-align: center;
  }
  .nav a:hover {
    color: var(--gold-2);
    background: rgba(251, 191, 36, .08);
  }
  .nav a[aria-current="page"] {
    color: var(--gold);
    background: rgba(251, 191, 36, .14);
  }
  /* Shorter tab labels on phones */
  .nav a[href="/how-to-play-rummy/"] {
    font-size: 0 !important;
  }
  .nav a[href="/how-to-play-rummy/"]::after {
    content: "Guide";
    font-size: .86rem;
    font-weight: 700;
  }
  .lang-toggle {
    position: absolute;
    top: 12px;
    right: 0;
    height: 28px;
    font-size: .68rem;
    z-index: 5;
    background: #0a1612;
    border-color: rgba(251, 191, 36, .55);
  }
  .lang-toggle .lang-opt { min-width: 28px; padding: 0 8px; }
}

@media (min-width: 768px) {
  .lang-toggle { top: 16px; right: 20px; }
  .nav { flex: 1; justify-content: center; order: 2; }
  .nav-play,
  .nav-dl { flex-shrink: 0; white-space: nowrap; order: 3; min-width: 0; min-height: 44px; padding: 10px 14px; }
  .nav-play { margin-right: 8px; }
  .nav-dl {
    margin-right: 88px;
    background: transparent;
    color: var(--gold-2);
    border: 2px solid rgba(251, 191, 36, .55);
    box-shadow: none;
    text-shadow: none;
    font-weight: 700;
  }
  .nav-dl:hover {
    color: #fff;
    background: rgba(251, 191, 36, .12);
  }
  .nav-play {
    font-weight: 800;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 48%, var(--gold-3));
    color: #1a1204;
    border-color: rgba(255, 236, 180, .5);
    box-shadow: 0 8px 20px rgba(251, 191, 36, .28);
  }

  /*
   * PC header chrome — identical layout + size on every page.
   * CSS Grid slots pin logo / nav / CTAs / lang so page switches never shift them.
   * Mobile (max-width:767) rules below are untouched.
   */
  .site-header {
    min-height: 64px !important;
  }
  .site-header > .wrap.header-row,
  .site-header .header-row,
  body.home .site-header > .wrap.header-row,
  body.home .lp-header > .wrap.header-row,
  body.home .header-row,
  body.play .site-header > .wrap.header-row,
  body.play .header-row {
    box-sizing: border-box !important;
    display: grid !important;
    width: min(100% - 32px, 1120px) !important;
    max-width: 1120px !important;
    margin-inline: auto !important;
    min-height: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    grid-template-columns:
      180px
      minmax(0, 1fr)
      160px
      176px
      72px !important;
    grid-template-areas: "logo nav cta-play cta-dl lang" !important;
  }

  .site-header .logo,
  body.home .site-header .logo,
  body.play .site-header .logo {
    grid-area: logo !important;
    order: 0 !important;
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
  }

  .site-header .logo-mark,
  .site-header img.logo-mark.logo-emblem,
  body.home .logo-mark,
  body.home .logo-mark.logo-emblem,
  body.play .logo-mark,
  body.play .logo-mark.logo-emblem {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
  }

  .site-header .nav,
  body.home .nav,
  body.play .nav,
  body.play .site-header .nav {
    grid-area: nav !important;
    display: flex !important;
    visibility: visible !important;
    order: 0 !important;
    flex: unset !important;
    width: auto !important;
    max-width: none !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .nav a,
  body.home .site-header .nav a,
  body.home .nav a,
  body.play .site-header .nav a,
  body.play .nav a {
    box-sizing: border-box !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 12px !important;
    font-size: .875rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    border-radius: 10px;
  }

  .site-header .nav-play.btn,
  .site-header .nav-dl.btn,
  .header-row > .nav-play,
  .header-row > .nav-dl,
  body.home .nav-play,
  body.home .nav-dl,
  body.play .site-header .nav-play,
  body.play .site-header .nav-dl {
    box-sizing: border-box !important;
    order: 0 !important;
    flex: unset !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 12px !important;
    font-size: .875rem !important;
    line-height: 1 !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    justify-self: stretch !important;
    text-align: center;
    overflow: hidden;
  }
  .site-header .nav-play.btn,
  .header-row > .nav-play,
  body.home .nav-play,
  body.play .site-header .nav-play {
    grid-area: cta-play !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    font-weight: 800 !important;
    border: 1px solid rgba(255, 236, 180, .5) !important;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 48%, var(--gold-3)) !important;
    color: #1a1204 !important;
    box-shadow: 0 8px 20px rgba(251, 191, 36, .3) !important;
  }
  .site-header .nav-dl.btn,
  .header-row > .nav-dl,
  body.home .nav-dl,
  body.play .site-header .nav-dl,
  body.play .nav-dl {
    grid-area: cta-dl !important;
    width: 176px !important;
    min-width: 176px !important;
    max-width: 176px !important;
    font-weight: 800 !important;
    background: rgba(0, 0, 0, .22) !important;
    color: var(--gold-2) !important;
    border: 1px solid rgba(251, 191, 36, .55) !important;
    box-shadow: none !important;
  }

  .site-header .lang-toggle,
  body.home .site-header .lang-toggle,
  body.home .lang-toggle,
  body.play .lang-toggle,
  body.is-playing.play .lang-toggle {
    grid-area: lang !important;
    order: 0 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    justify-self: end !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 2px !important;
    font-size: .68rem !important;
  }
  .site-header .lang-toggle .lang-opt,
  body.home .lang-toggle .lang-opt,
  body.play .lang-toggle .lang-opt {
    min-width: 28px;
    padding: 0 8px;
  }

  /* Desktop: hide mobile/game-only header chrome so slots stay empty */
  .site-header .nav-toggle,
  .site-header .nav-btn,
  .site-header .play-back,
  .site-header .play-settings,
  .site-header .play-settings-menu,
  body.play .site-header .nav-btn,
  body.play .site-header .play-back,
  body.play .site-header .play-settings,
  body.play .site-header .play-settings-menu {
    display: none !important;
  }
}
.nav-play:hover {
  color: #1a1204;
  filter: brightness(1.05);
}
.logo { order: 1; }
.nav-btn { order: 4; }

.hero-verbs { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; color: var(--white); letter-spacing: .04em; }

.trust-row, .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.trust-row li, .chip-row li {
  border-radius: 999px;
  border: 1px solid rgba(240, 161, 42, .45);
  padding: 6px 12px;
  font-weight: 800;
  font-size: .9rem;
}
.trust-row li::before { content: "✓ "; color: #7dffa8; }

.practice-card {
  background: linear-gradient(180deg, #2a1612, #160a0c);
  border: 1px solid rgba(240, 161, 42, .4);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.game-window {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 87, .35);
  min-height: 180px;
  background: #0e6b5c;
}
.gw-felt {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 28px 12px 8px;
}
.gw-label { text-align: center; color: #fff6e8; padding-bottom: 12px; font-weight: 700; }
.start-cta { width: 100%; min-height: 60px; font-size: 1.15rem; }

.step-cards {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.step-cards li {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 14px 14px 14px 64px;
  position: relative;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.step-cards > li > span {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(180deg, #ffc857, #c45a12);
  color: #1a0c08;
}
.step-cards h3 { margin: 0 0 4px; }
.step-cards p { margin: 0; color: var(--muted); }

.mode-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mode-actions .btn { min-height: 44px; min-width: 0; padding: 8px 12px; }

.read-more { border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 14px; }
.read-more summary { font-weight: 800; cursor: pointer; min-height: 44px; display: flex; align-items: center; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: .95rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 8px 10px;
  border: 1px solid rgba(251, 191, 36, .22);
  vertical-align: top;
}
.prose th {
  background: rgba(12, 42, 32, .9);
  color: #fff;
}

.sticky-dl,
.sticky-cta {
  display: none;
}
@media (min-width: 768px) {
  .sticky-dl,
  .sticky-cta {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}
@media (max-width: 767px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }
  .header-row {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    min-width: 0;
  }
  .sticky-dl {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
    z-index: 80;
    min-height: 0;
    min-width: 0;
    padding: 8px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: .02em;
    background: rgba(4, 17, 13, .94);
    color: #1a1204;
    border: 1px solid rgba(251, 191, 36, .28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    visibility: visible;
    overflow: hidden;
  }
  .sticky-dl.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .sticky-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .sticky-dl-hint {
    margin: 0;
    padding: 0 2px;
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fcd34d;
    line-height: 1.25;
  }
  .sticky-cta-btns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Beat .btn:not(.nav-play):not(.nav-dl){min-width:200px} so dual CTAs fit the bar */
  #sticky-play-now .btn,
  #sticky-play-now .btn.btn-gold,
  #sticky-play-now .btn.btn-ghost,
  .sticky-cta .btn.btn-gold,
  .sticky-cta .btn.btn-ghost {
    flex: 1 1 0;
    min-width: 0 !important;
    max-width: none;
    width: auto;
    min-height: 44px;
    height: 44px;
    padding: 6px 8px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: none;
    transform: none;
  }
  #sticky-play-now .btn:hover,
  #sticky-play-now .btn:active,
  .sticky-cta .btn.btn-gold:hover,
  .sticky-cta .btn.btn-ghost:hover {
    transform: none;
    filter: brightness(1.04);
  }
  .sticky-dl:hover {
    color: #1a1204;
    filter: none;
  }
  body.is-playing .sticky-dl,
  body.is-playing .sticky-cta {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  body:not(.is-playing) { padding-bottom: 100px; }
  .hero-game { min-height: 240px; }
  .prose .cta-row .btn { width: 100%; }
  .prose {
    max-width: none; /* fill mobile wrap */
  }
  .page {
    padding: 20px 0 72px;
  }
}
@media (min-width: 768px) {
  .step-cards { grid-template-columns: 1fr 1fr; }
  .mode-cards { grid-template-columns: repeat(3, 1fr) !important; }
  .hero-game { min-height: 360px; }
}

/* ---------- Final India-market polish ---------- */
.blog-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.blog-list a {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(12, 42, 32, .88);
  border: 1px solid rgba(251, 191, 36, .18);
  color: var(--cream);
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.blog-list a:hover {
  border-color: rgba(251, 191, 36, .4);
  background: rgba(10, 107, 80, .28);
  color: var(--white);
  transform: translateY(-1px);
}

.blog-list a strong {
  color: var(--gold-2);
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.related a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, .28);
  background: rgba(0, 0, 0, .2);
  color: var(--cream);
  font-weight: 700;
  font-size: .9rem;
}

.related a:hover {
  border-color: rgba(251, 191, 36, .5);
  color: var(--gold-2);
}

.step-cards li {
  background: rgba(12, 42, 32, .9) !important;
  border: 1px solid rgba(251, 191, 36, .18) !important;
}

.mode-card,
.card-box {
  background: rgba(12, 42, 32, .9);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .blog-list a,
  .path a,
  .sticky-dl {
    transition: none;
  }
  .btn:hover,
  .blog-list a:hover {
    transform: none;
  }
}

/* Homepage theme lives in home.css (dark green + gold). */

/* Play page: keep header CTAs + nav on one row without overlapping the table */
body.play .header-row {
  flex-wrap: nowrap;
  gap: 8px;
}
body.play .nav {
  flex-wrap: nowrap;
  gap: 4px 10px;
  min-width: 0;
}
body.play .nav a {
  white-space: nowrap;
}
/* PC header locked in ≥768 grid block — no play-only layout drift */
@media (min-width: 768px) {
  body.is-playing.play .nav-play {
    opacity: .85;
  }
}
@media (max-width: 767px) {
  body.play .nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    flex: 1 0 100%;
    width: calc(100% + 78px);
    margin-right: -78px;
    order: 3;
  }
  body.play .header-row {
    flex-wrap: wrap;
    padding-right: 78px;
  }
  body.play .nav-btn {
    display: none !important;
  }
}

/* Mobile play: same Junglee tab header; keep sticky CTA spacing */
@media (max-width: 767px) {
  body.play {
    overflow-x: clip;
  }
  body.play .lang-toggle,
  body.is-playing.play .lang-toggle {
    position: absolute;
    top: 12px;
    right: 0;
    opacity: 1;
  }
  body.play:not(.is-playing) {
    padding-bottom: 88px;
  }
  body.play:not(.is-playing) #start-screen {
    margin-bottom: 12px;
    padding-bottom: 28px;
  }
  body.play:not(.is-playing) .start-btn {
    margin-bottom: 8px;
  }
  body.play .sticky-dl {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }
}

/* STEP 12 — stop infinite float/pulse on shared chrome */
.card,
.coin,
.float-card,
.hero-card {
  animation: none !important;
}

.btn,
.btn-gold,
.nav-dl,
.lang-toggle,
.nav-btn {
  min-height: 44px;
  min-width: 44px;
}

/* Header CTAs must not inherit generic .btn min-width floor */
.nav-play.btn,
.nav-dl.btn {
  min-width: 0;
}

.btn,
.pcard {
  transition-duration: .18s;
}
/* ============================================================================
   MOBILE SYSTEM (sitewide) — max-width 767px only
   Appended for content pages that load style.css.
   Desktop defaults unchanged.
   ============================================================================ */
@media (max-width: 767px) {
  :root {
    --m-touch: 44px;
    --m-btn-h: 50px;
    --m-header-h: 54px;
    --m-space-16: 16px;
    --m-space-24: 24px;
    --m-space-32: 32px;
    --m-fs-14: .875rem;
    --m-fs-15: .9375rem;
    --m-radius-12: 12px;
  }

  html, body {
    overflow-x: clip;
    max-width: 100vw;
  }

  body:not(.is-playing) .site-header {
    min-height: var(--m-header-h);
  }
  body:not(.is-playing) .header-row {
    min-height: var(--m-header-h);
    padding-left: var(--m-space-16);
    padding-right: var(--m-space-16);
  }
  body:not(.is-playing) .logo-mark,
  body:not(.is-playing) .logo-emblem {
    width: 36px;
    height: 36px;
  }

  .btn,
  .btn-gold,
  .btn-ghost,
  .nav-dl {
    min-height: var(--m-btn-h);
    border-radius: var(--m-radius-12);
    font-size: var(--m-fs-15);
  }

  body:not(.play) h1 {
    font-size: clamp(1.5rem, 6.2vw, 2rem);
    line-height: 1.2;
  }
  body:not(.play) h2 {
    font-size: clamp(1.125rem, 4.5vw, 1.375rem);
    line-height: 1.3;
  }
  body:not(.play) .lead {
    font-size: var(--m-fs-14);
    line-height: 1.5;
  }

  body:not(.home):not(.play) main .wrap {
    padding-left: var(--m-space-16);
    padding-right: var(--m-space-16);
  }

  .cta-row .btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }
}
