:root {
  --ink: #12201b;
  --ink-soft: #4e5d56;
  --paper: #fbf6e9;
  --paper-strong: #fffdf7;
  --green: #0d553d;
  --green-deep: #073b2a;
  --saffron: #f39a2e;
  --saffron-soft: #ffd79d;
  --red: #a6372a;
  --line: rgba(18, 32, 27, 0.13);
  --shadow: 0 20px 60px rgba(7, 59, 42, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(243, 154, 46, 0.12), transparent 28rem),
    var(--paper);
  font-family: Inter, "Noto Sans Devanagari", "Nirmala UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 246, 233, 0.92);
  backdrop-filter: blur(16px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -0.03em; }
.brand-mark {
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: transparent;
  background: url("master-rummy-icon.png") center / cover no-repeat;
  box-shadow: 0 5px 14px rgba(80, 0, 0, .18);
  overflow: hidden;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-size: 0.94rem; font-weight: 700; }
.nav-links a:hover { color: var(--green); }
.lang-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong); }
.menu-button { display: none; border: 0; background: transparent; font-size: 1.55rem; cursor: pointer; }

.hero { padding: clamp(68px, 9vw, 118px) 0 58px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(44px, 8vw, 96px); }
.eyebrow { margin: 0 0 14px; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 850; }
h1, h2, h3 { font-family: Georgia, "Noto Serif Devanagari", serif; line-height: 1.12; letter-spacing: -0.035em; }
h1 { margin: 0 0 22px; font-size: clamp(3rem, 7vw, 6.1rem); max-width: 12ch; }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { margin: 0 0 10px; font-size: 1.4rem; }
.hero-copy { max-width: 62ch; color: var(--ink-soft); font-size: clamp(1.03rem, 1.6vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,59,42,.18); }
.button-secondary { color: var(--green); background: transparent; }
.button-small { min-height: 40px; padding: 8px 16px; }

.hero-photo {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  right: -10%;
  top: -18%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(243,154,46,.22) 0 5deg, transparent 5deg 12deg),
    rgba(243,154,46,.09);
}
.hero-photo::after {
  content: "ANDROID • DOWNLOAD NOW";
  position: absolute;
  left: -22px;
  bottom: 24px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-deep);
  box-shadow: 0 12px 30px rgba(7,59,42,.24);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: 64% center;
  border-radius: 30px 30px 110px 30px;
  border: 8px solid rgba(255,253,247,.92);
  box-shadow: var(--shadow);
}

.feature-image {
  position: relative;
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--green-deep);
  box-shadow: var(--shadow);
}
.feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 2.1;
  object-fit: cover;
}
.feature-image.tall img { aspect-ratio: 1.4; }
.image-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5,44,32,.86);
  backdrop-filter: blur(8px);
  font-size: .76rem;
  font-weight: 750;
}
.page-visual { padding-top: 34px; }
.page-visual .feature-image { margin-bottom: 0; }
.dark-photo { margin: 0; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255,255,255,.16); }
.dark-photo img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }

.table-scene {
  position: relative;
  min-height: 470px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 42%, #1a7657, var(--green-deep) 70%);
  border: 12px solid #744922;
  box-shadow: var(--shadow), inset 0 0 70px rgba(0,0,0,.28);
}
.table-scene::after { content: "FREE PRACTICE"; position: absolute; inset: auto 0 18px; color: rgba(255,255,255,.48); text-align: center; font-size: .72rem; font-weight: 850; letter-spacing: .18em; }
.playing-card {
  position: absolute;
  width: 112px;
  aspect-ratio: .7;
  padding: 12px;
  border-radius: 12px;
  color: var(--ink);
  background: #fffefb;
  border: 1px solid rgba(0,0,0,.16);
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
}
.playing-card.red { color: var(--red); }
.playing-card span { display: block; font-size: 2.7rem; text-align: center; margin-top: 22px; }
.card-one { left: 16%; top: 28%; transform: rotate(-17deg); }
.card-two { left: 39%; top: 18%; transform: rotate(2deg); }
.card-three { right: 14%; top: 29%; transform: rotate(18deg); }
.table-chip { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 7px dashed rgba(255,255,255,.8); background: var(--saffron); box-shadow: 0 7px 15px rgba(0,0,0,.2); }
.chip-one { left: 24%; bottom: 21%; }
.chip-two { right: 25%; bottom: 18%; background: #f7eee2; }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.38); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 20px; text-align: center; border-right: 1px solid var(--line); font-size: .9rem; font-weight: 750; }
.trust-item:last-child { border-right: 0; }

.section { padding: clamp(68px, 9vw, 110px) 0; }
.section-tight { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head p { max-width: 58ch; margin: 0; color: var(--ink-soft); }
.tint { background: rgba(13, 85, 61, .055); border-block: 1px solid rgba(13, 85, 61, .08); }
.dark { color: #fff; background: var(--green-deep); }
.dark p { color: rgba(255,255,255,.72); }
.dark .eyebrow { color: var(--saffron-soft); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,247,.84);
  box-shadow: 0 8px 30px rgba(18,32,27,.045);
}
.card p { margin: 0; color: var(--ink-soft); }
.card-link { display: inline-block; margin-top: 18px; color: var(--green); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card .card-link { display: block; }
.card .card-link + .card-link { margin-top: 8px; }
.icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 16px; color: var(--green); background: var(--saffron-soft); font-size: 1.35rem; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(13,85,61,.09); color: var(--green); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

.steps { counter-reset: steps; display: grid; gap: 14px; }
.step { position: relative; padding: 24px 24px 24px 82px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-strong); }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 850; }
.step strong { display: block; margin-bottom: 4px; }

.page-hero { padding: 74px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 6vw, 5rem); }
.breadcrumbs { margin-bottom: 20px; color: var(--ink-soft); font-size: .88rem; }
.breadcrumbs a { color: var(--green); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 56px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: #33423b; }
.prose table { width: 100%; border-collapse: collapse; margin: 26px 0; background: var(--paper-strong); }
.prose th, .prose td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; }
.prose th { background: rgba(13,85,61,.08); }
.toc { position: sticky; top: 98px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-strong); }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.toc a:hover { color: var(--green); }
.answer-box { padding: 22px; border-left: 5px solid var(--saffron); border-radius: 0 16px 16px 0; background: rgba(243,154,46,.11); }
.answer-box p { margin: 0; }
.notice { padding: 16px 18px; border-radius: 14px; color: #593a13; background: #fff1d5; border: 1px solid #f2d096; }

.showcase-shell { padding: 28px; border-radius: 28px; color: #fff; background: var(--green-deep); box-shadow: var(--shadow); }
.showcase-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.hand { display: flex; min-height: 170px; align-items: end; justify-content: center; padding: 30px 10px 10px; overflow-x: auto; }
.hand-card { flex: 0 0 70px; height: 105px; margin-left: -10px; padding: 7px; border-radius: 8px; color: var(--ink); background: #fff; border: 1px solid #ddd; font-family: Georgia, serif; font-weight: 800; box-shadow: 0 6px 12px rgba(0,0,0,.22); }
.hand-card.red { color: var(--red); }
.hand-card:first-child { margin-left: 0; }
.showcase-note { color: rgba(255,255,255,.7); font-size: .86rem; }

.download-page-hero { padding-bottom: 72px; background: linear-gradient(140deg, rgba(243,154,46,.09), rgba(13,85,61,.04)); }
.download-page-hero h1 { max-width: 11ch; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 218px;
  min-height: 62px;
  padding: 10px 18px;
  border-radius: 14px;
  color: #fff;
  background: #111;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 28px rgba(7,59,42,.17);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.05;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(7,59,42,.24); }
.store-button small { display: block; margin-bottom: 4px; color: rgba(255,255,255,.68); font-size: .63rem; letter-spacing: .1em; }
.store-apk { color: #fff; background: var(--green); }
.store-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.13); font-size: 1.2rem; }
.store-icon-google { border-radius: 0; background: transparent; }
.store-icon-google img { display: block; width: 34px; height: 34px; }
.google-play-card-icon img { display: block; width: 30px; height: 30px; }
.store-icon-download img,
.download-card-icon img { display: block; width: 28px; height: 28px; }
.download-fineprint { color: var(--ink-soft); font-size: .78rem; }
.download-visual { position: relative; margin: 0; }
.download-visual img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; object-position: 65% center; border-radius: 34px; box-shadow: var(--shadow); }
.download-visual figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; color: #fff; background: rgba(5,44,32,.88); backdrop-filter: blur(10px); }
.download-visual figcaption span { padding: 5px 9px; border-radius: 999px; color: var(--green-deep); background: var(--saffron-soft); font-size: .72rem; font-weight: 850; }
.download-trust { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-strong); box-shadow: 0 8px 30px rgba(18,32,27,.045); }
.download-card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-strong); box-shadow: 0 14px 38px rgba(18,32,27,.06); }
.download-card.recommended { border: 2px solid var(--green); }
.download-card p { color: var(--ink-soft); }
.download-card .button { margin-top: 20px; }
.clean-list { padding: 0; margin: 22px 0 0; list-style: none; }
.clean-list li { position: relative; padding: 7px 0 7px 27px; color: var(--ink-soft); }
.clean-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.calculator { padding: clamp(24px, 5vw, 46px); border-radius: 26px; background: var(--paper-strong); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 800; }
.field small { display: block; margin-top: 6px; color: var(--ink-soft); }
.field input[type="number"], .field input[type="text"], .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.field textarea { min-height: 118px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.6; }
.check-field { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.result { margin-top: 24px; padding: 24px; border-radius: 18px; color: #fff; background: var(--green); }
.result span { display: block; font-size: 3rem; font-family: Georgia, serif; font-weight: 850; line-height: 1; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-grid .card { display: flex; flex-direction: column; }
.tool-grid .card p { flex: 1; }
.tool-grid .card-link { align-self: flex-start; }
.syntax-guide { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.syntax-guide code { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-deep); background: #fff8e9; font-weight: 800; }
.checker-result { margin-top: 24px; padding: 24px; border-radius: 18px; color: #fff; background: var(--green); }
.checker-result.result-invalid { background: #8f2f25; }
.checker-result h3 { margin: 0 0 7px; color: #fff; font-family: inherit; font-size: 1.25rem; }
.checker-result p { margin: 0; color: rgba(255,255,255,.82); }
.checker-groups { display: grid; gap: 9px; margin-top: 17px; }
.checker-group { display: flex; justify-content: space-between; gap: 16px; padding: 11px 13px; border-radius: 11px; background: rgba(255,255,255,.11); }
.checker-group strong { color: var(--saffron-soft); }
.tool-note { margin-top: 18px; color: var(--ink-soft); font-size: .86rem; }

details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 850; }
details p { color: var(--ink-soft); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px; border-radius: 26px; color: #fff; background: linear-gradient(125deg, var(--green-deep), var(--green)); }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-band p { margin: 8px 0 0; color: rgba(255,255,255,.72); }
.cta-band .button { color: var(--green-deep); background: var(--saffron-soft); border-color: var(--saffron-soft); white-space: nowrap; }

.site-footer { padding: 56px 0 26px; color: rgba(255,255,255,.75); background: #052c20; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 38px; }
.site-footer .brand { color: #fff; }
.site-footer h3 { color: #fff; font-family: inherit; font-size: .94rem; letter-spacing: 0; }
.site-footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.fine-print { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

@media (max-width: 900px) {
  .hero-grid, .layout { grid-template-columns: 1fr; }
  .hero-copy-wrap { order: 1; }
  .table-scene { order: 2; width: min(100%, 540px); min-height: 410px; margin-inline: auto; }
  .hero-photo { order: 2; width: min(100%, 620px); margin-inline: auto; }
  .grid-3, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .toc { position: static; order: -1; }
  .tool-layout .toc { order: initial; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

.mobile-download-shortcut { display: none; text-decoration: none; }

@media (max-width: 720px) {
  .nav { min-height: 66px; }
  .brand-mark { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; inset: 66px 16px auto; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-strong); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 8px; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.3rem); }
  .table-scene { min-height: 340px; border-width: 9px; }
  .hero-photo img { aspect-ratio: .95; object-position: 66% center; border-radius: 24px 24px 70px 24px; border-width: 5px; }
  .hero-photo::after { left: 10px; bottom: 12px; font-size: .64rem; }
  .feature-image img { aspect-ratio: 1.25; }
  .feature-image.tall img { aspect-ratio: 1; }
  .playing-card { width: 83px; padding: 8px; font-size: 1.15rem; }
  .playing-card span { font-size: 2rem; margin-top: 12px; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2, .form-grid, .tool-grid { grid-template-columns: 1fr; }
  .section-head, .cta-band, .showcase-top { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
  .hand { justify-content: flex-start; }
  .hand-card { flex-basis: 62px; height: 94px; }
  .download-actions, .store-button { width: 100%; }
  .download-visual img { aspect-ratio: .95; }
  .download-page-hero { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Master Rummy conversion theme: original red-gold system informed by leading free Rummy sites. */
:root {
  --ink: #261719;
  --ink-soft: #665659;
  --paper: #fff7e9;
  --paper-strong: #fffdf8;
  --green: #98131a;
  --green-deep: #570509;
  --saffron: #ffc83f;
  --saffron-soft: #ffe4a3;
  --red: #a20b12;
  --line: rgba(87, 5, 9, .14);
  --shadow: 0 22px 60px rgba(87, 5, 9, .14);
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 200, 63, .18), transparent 28rem),
    var(--paper);
}

.site-header {
  border-bottom-color: rgba(255,255,255,.13);
  color: #fff;
  background: rgba(83, 4, 8, .96);
  box-shadow: 0 8px 24px rgba(48, 0, 3, .16);
}
.site-header .brand { color: #fff; }
.site-header .brand-mark { box-shadow: 0 5px 16px rgba(0,0,0,.28); }
.site-header .nav-links a { color: rgba(255,255,255,.88); }
.site-header .nav-links a:hover { color: var(--saffron); }
.site-header .lang-link { color: var(--green-deep); background: var(--saffron); border-color: var(--saffron); }
.site-header .menu-button { color: #fff; }

.button { border-color: var(--green); background: var(--green); box-shadow: 0 9px 22px rgba(87,5,9,.12); }
.button:hover { background: #b51c23; box-shadow: 0 12px 28px rgba(87,5,9,.22); }
.button-secondary { color: var(--green); background: transparent; }
.eyebrow { color: var(--green); }
.page-hero { background: linear-gradient(135deg, rgba(255,200,63,.17), rgba(152,19,26,.045)); }
.tint { background: rgba(255, 200, 63, .09); border-color: rgba(152,19,26,.1); }
.dark { background: linear-gradient(135deg, #420307, var(--green-deep)); }
.dark .eyebrow { color: var(--saffron); }
.card { border-color: rgba(152,19,26,.15); border-top: 4px solid var(--saffron); box-shadow: 0 12px 34px rgba(87,5,9,.07); }
.icon { color: var(--green-deep); background: var(--saffron-soft); }
.tag { color: var(--green); background: rgba(152,19,26,.09); }
.step::before { color: var(--green-deep); background: var(--saffron); }
.answer-box { border-left-color: var(--saffron); }
.toc a:hover, .card-link, .breadcrumbs a { color: var(--green); }
.result, .checker-result { background: #17613f; }
.checker-result.result-invalid { background: #8f2f25; }
.cta-band { background: linear-gradient(120deg, #5a0509, #a6131a 68%, #d6551d); box-shadow: 0 20px 50px rgba(87,5,9,.2); }
.cta-band .button { color: var(--green-deep); background: var(--saffron); border-color: var(--saffron); }
.site-footer { background: #310205; }

.regulatory-bar { color: #fff; background: #310205; border-bottom: 1px solid rgba(255,255,255,.12); }
.regulatory-bar .container { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 38px; text-align: center; font-size: .78rem; }
.regulatory-bar strong { color: var(--saffron); text-transform: uppercase; letter-spacing: .08em; }
.regulatory-bar span { color: rgba(255,255,255,.8); }

.home-hero { position: relative; min-height: clamp(600px, 68vw, 760px); padding: 0; color: #fff; isolation: isolate; background: #430306; }
.home-hero-media, .home-hero-overlay { position: absolute; inset: 0; margin: 0; }
.home-hero-media { z-index: -2; overflow: hidden; }
.home-hero-media picture { display: block; width: 100%; height: 100%; }
.home-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero-overlay { z-index: -1; background: linear-gradient(90deg, rgba(47,0,3,.98) 0%, rgba(73,3,7,.93) 32%, rgba(73,3,7,.67) 52%, rgba(73,3,7,.12) 76%); }
.home-hero-content { display: flex; align-items: center; min-height: inherit; padding-block: 76px; }
.home-hero .hero-copy-wrap { max-width: 610px; }
.home-hero .eyebrow { color: var(--saffron); }
.home-hero h1 { max-width: 9ch; color: #fff; font-size: clamp(3.7rem, 7.3vw, 6.7rem); text-shadow: 0 5px 24px rgba(0,0,0,.22); }
.home-hero .hero-copy { max-width: 53ch; color: rgba(255,255,255,.86); }
.home-hero .button { color: var(--green-deep); background: var(--saffron); border-color: var(--saffron); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.home-hero .button:hover { background: #ffd86f; }
.home-hero .button-secondary { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.72); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-proof span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); font-size: .76rem; font-weight: 800; }
.legal-micro { margin: 17px 0 0; color: rgba(255,255,255,.62); font-size: .75rem; }
.trust-strip { border-color: rgba(152,19,26,.14); background: #fffdf8; box-shadow: 0 10px 30px rgba(87,5,9,.05); }
.trust-item { border-color: rgba(152,19,26,.13); color: #4b292c; }
.trust-item strong { display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; margin-right: 7px; border-radius: 9px; color: var(--green-deep); background: var(--saffron-soft); }

@media (max-width: 900px) {
  .home-hero { min-height: 700px; }
  .home-hero-overlay { background: linear-gradient(90deg, rgba(47,0,3,.96), rgba(73,3,7,.77) 58%, rgba(73,3,7,.32)); }
  .home-hero-content { align-items: flex-end; }
}

@media (max-width: 720px) {
  .site-header .nav-links { color: #fff; background: #570509; border-color: rgba(255,255,255,.15); }
  .site-header .nav-links a { color: rgba(255,255,255,.9); }
  .site-header .lang-link { color: var(--green-deep); }
  .regulatory-bar .container { flex-direction: column; gap: 0; min-height: 54px; padding-block: 6px; line-height: 1.35; }
  .home-hero { min-height: 690px; }
  .home-hero-media img { object-position: 67% center; }
  .home-hero-overlay { background: linear-gradient(180deg, rgba(47,0,3,.18), rgba(47,0,3,.42) 28%, rgba(47,0,3,.96) 68%); }
  .home-hero-content { align-items: flex-end; padding-block: 54px; }
  .home-hero h1 { max-width: 8ch; font-size: clamp(3.2rem, 15vw, 4.5rem); }
  .home-hero .actions, .home-hero .button { width: 100%; }
  .hero-proof { gap: 6px; }
  .hero-proof span { font-size: .68rem; }
}

/* Cohesive site-wide art direction: every inner page now shares the homepage system. */
body:not(.home-page) {
  background:
    radial-gradient(circle at 7% 7%, rgba(255,200,63,.20), transparent 22rem),
    linear-gradient(180deg, #fff7e9 0%, #fbefdc 100%);
}

body:not(.home-page) .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(70px, 8vw, 108px) 0 clamp(78px, 9vw, 122px);
  color: #fff;
  border-bottom: 0;
  background:
    radial-gradient(circle at 88% 30%, rgba(255,200,63,.18), transparent 25rem),
    linear-gradient(118deg, #3c0205 0%, #65070c 52%, #98131a 100%);
}
body:not(.home-page) .page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  aspect-ratio: 1;
  right: -110px;
  top: -190px;
  border: 1px solid rgba(255,228,163,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,200,63,.035), 0 0 0 86px rgba(255,200,63,.025);
}
body:not(.home-page) .page-hero::after {
  content: "13 • MASTER RUMMY • 13 • MASTER RUMMY";
  position: absolute;
  z-index: -1;
  right: -34px;
  bottom: 20px;
  color: rgba(255,255,255,.055);
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: .18em;
  white-space: nowrap;
}
body:not(.home-page) .page-hero .container { position: relative; z-index: 1; }
body:not(.home-page) .page-hero h1 {
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 5px 22px rgba(0,0,0,.2);
}
body:not(.home-page) .page-hero .hero-copy { color: rgba(255,255,255,.78); }
body:not(.home-page) .page-hero .eyebrow { color: var(--saffron); }
body:not(.home-page) .page-hero .breadcrumbs { color: rgba(255,255,255,.58); }
body:not(.home-page) .page-hero .breadcrumbs a { color: var(--saffron-soft); }
body:not(.home-page) .page-hero .tag {
  color: #fff;
  border: 1px solid rgba(255,228,163,.28);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

body:not(.home-page) .page-visual {
  position: relative;
  z-index: 3;
  margin-top: -50px;
  padding-top: 0;
}
.feature-image {
  border: 6px solid #fff8ec;
  border-radius: 28px;
  background: #520509;
  box-shadow: 0 26px 65px rgba(73,3,7,.2);
}
.feature-image img { aspect-ratio: 2.35; }
.image-caption {
  color: #fff;
  background: rgba(74,3,7,.9);
  border: 1px solid rgba(255,228,163,.24);
}

body:not(.home-page) .section { position: relative; }
body:not(.home-page) .section-head { padding-bottom: 22px; border-bottom: 1px solid rgba(87,5,9,.12); }
body:not(.home-page) .layout { gap: 34px; }
body:not(.home-page) article.prose {
  max-width: none;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(152,19,26,.12);
  border-top: 5px solid var(--saffron);
  border-radius: 26px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 20px 50px rgba(87,5,9,.07);
}
.prose h2 { color: #4e060a; }
.prose h3 { color: #761016; }
.prose p, .prose li { color: #57484b; }
.prose table {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 9px 25px rgba(87,5,9,.05);
}
.prose th { color: #fff; background: #6d080d; }
.prose tr:nth-child(even) td { background: #fff7e9; }
.answer-box {
  border-left-color: var(--saffron);
  background: linear-gradient(90deg, rgba(255,200,63,.22), rgba(255,200,63,.07));
}
.notice { color: #5d3300; background: #fff2ce; border-color: #efc35d; }

.toc {
  color: #fff;
  border: 1px solid rgba(255,228,163,.2);
  border-top: 5px solid var(--saffron);
  background: linear-gradient(155deg, #4a0307, #720a10);
  box-shadow: 0 18px 42px rgba(87,5,9,.18);
}
.toc strong { color: var(--saffron); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.toc a { color: rgba(255,255,255,.74); border-bottom: 1px solid rgba(255,255,255,.08); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--saffron); }

.card,
.download-card,
.calculator {
  border-color: rgba(152,19,26,.13);
  border-top: 5px solid var(--saffron);
  background: rgba(255,253,248,.96);
  box-shadow: 0 18px 45px rgba(87,5,9,.08);
}
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 23px 50px rgba(87,5,9,.13); }
.card h3, .download-card h2, .download-card h3 { color: #55070b; }
.card-link { color: #98131a; }
.icon {
  color: #5a0509;
  border: 1px solid rgba(152,19,26,.08);
  background: linear-gradient(145deg, #ffd65c, #ffe9b3);
  box-shadow: 0 8px 18px rgba(87,5,9,.09);
}

.download-page-hero { background: linear-gradient(118deg, #3c0205, #65070c 55%, #98131a); }
.download-page-hero .download-fineprint { color: rgba(255,255,255,.62); }
.download-visual img {
  border: 6px solid rgba(255,248,236,.96);
  box-shadow: 0 28px 65px rgba(28,0,2,.35);
}
.download-visual figcaption {
  color: #fff;
  background: rgba(66,3,7,.9);
  border: 1px solid rgba(255,228,163,.22);
}
.download-visual figcaption span { color: #4a0307; background: var(--saffron); }
.store-apk { color: #4a0307; background: var(--saffron); border-color: var(--saffron); }
.store-apk small { color: rgba(74,3,7,.66); }
.store-apk .store-icon { background: rgba(74,3,7,.1); }
.download-card.recommended { border-color: var(--saffron); }
.download-trust { border-color: rgba(152,19,26,.12); background: #fffdf8; box-shadow: 0 16px 40px rgba(87,5,9,.07); }
.clean-list li::before { color: #98131a; }

.calculator { position: relative; overflow: hidden; }
.calculator::before {
  content: "MASTER RUMMY TOOL";
  display: block;
  margin: calc(clamp(24px, 5vw, 46px) * -1) calc(clamp(24px, 5vw, 46px) * -1) 28px;
  padding: 11px clamp(24px, 5vw, 46px);
  color: var(--saffron);
  background: #570509;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.field input[type="number"], .field input[type="text"], .field textarea, .field select {
  border-color: rgba(87,5,9,.18);
  background: #fffaf1;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid rgba(255,200,63,.32);
  border-color: #c49112;
}
.syntax-guide code { color: #6c080d; background: #fff0c9; border-color: rgba(152,19,26,.13); }
.result, .checker-result { box-shadow: 0 14px 30px rgba(23,97,63,.16); }
.showcase-shell { background: linear-gradient(145deg, #460307, #780b11); box-shadow: 0 24px 55px rgba(87,5,9,.2); }
.dark-photo { border: 5px solid rgba(255,228,163,.2); }

details { border-color: rgba(87,5,9,.12); }
summary { color: #6b080d; }
.cta-band { border: 1px solid rgba(255,228,163,.18); }
.site-footer { border-top: 4px solid var(--saffron); }

@media (max-width: 900px) {
  body:not(.home-page) .layout { gap: 24px; }
  body:not(.home-page) .toc { position: static; }
}

@media (max-width: 720px) {
  body:not(.home-page) .page-hero { padding: 56px 0 78px; }
  body:not(.home-page) .page-hero::after { display: none; }
  body:not(.home-page) .page-visual { margin-top: -34px; }
  .feature-image { border-width: 4px; border-radius: 20px; }
  .feature-image img { aspect-ratio: 1.3; }
  body:not(.home-page) article.prose { padding: 24px 20px; border-radius: 20px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .calculator::before { margin-inline: -24px; padding-inline: 24px; }
}

/* Homepage assurance and factual metrics, adapted from the supplied card reference. */
.home-assurance {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 96px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,200,63,.12), transparent 22rem),
    linear-gradient(145deg, #260104, #3d0206 56%, #220103);
  border-block: 1px solid rgba(255,200,63,.22);
}
.home-assurance::after {
  content: "";
  position: absolute;
  width: 360px;
  aspect-ratio: 1;
  right: -170px;
  bottom: -210px;
  border: 1px solid rgba(255,200,63,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255,200,63,.025), 0 0 0 92px rgba(255,200,63,.018);
}
.assurance-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 30px;
}
.assurance-heading .eyebrow { color: var(--saffron); }
.assurance-heading h2 { max-width: 14ch; margin-bottom: 0; color: #fff; }
.assurance-heading > p { max-width: 56ch; margin: 0; color: rgba(255,255,255,.68); }
.assurance-grid,
.assurance-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.assurance-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 158px;
  padding: 25px;
  border: 1px solid rgba(255,228,163,.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(111,9,15,.52), rgba(55,2,6,.75));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 34px rgba(0,0,0,.12);
}
.assurance-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #4b0307;
  background: linear-gradient(145deg, #ffd04d, #ffe7a1);
  box-shadow: 0 9px 20px rgba(0,0,0,.18);
  font-family: Georgia, serif;
  font-weight: 900;
}
.assurance-card h3 { margin: 0 0 7px; color: #fff; font-family: inherit; font-size: 1.08rem; letter-spacing: -.01em; }
.assurance-card p { margin: 0; color: rgba(255,255,255,.66); font-size: .88rem; line-height: 1.55; }
.assurance-metrics { margin-top: 18px; }
.metric-card {
  min-height: 148px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255,200,63,.38);
  border-radius: 22px;
  background: rgba(12,0,2,.58);
}
.metric-card strong {
  color: var(--saffron);
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
}
.metric-card span { color: rgba(255,255,255,.74); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .assurance-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .assurance-grid { grid-template-columns: 1fr; }
  .assurance-card { min-height: 0; }
}

@media (max-width: 720px) {
  .home-assurance { padding: 58px 0; }
  .assurance-card { grid-template-columns: 46px 1fr; gap: 14px; padding: 20px; border-radius: 18px; }
  .assurance-icon { width: 46px; height: 46px; border-radius: 14px; }
  .assurance-metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 120px; }
}

/* Homepage conversion components. */
.regulatory-bar { display:none !important; }
.conversion-band { padding:20px 18px; color:#fff; background:linear-gradient(90deg,#071626,#12322d 48%,#071626); border-block:1px solid rgba(255,200,63,.3); text-align:center; font-size:clamp(1rem,2vw,1.35rem); font-weight:900; line-height:1.7; }
.conversion-band b { color:var(--saffron); }
.home-assurance .metric-card strong { color:#22ef71; }
.home-assurance .metric-card { background:linear-gradient(145deg,rgba(21,14,15,.96),rgba(4,16,27,.96)); }
@media (max-width:720px) { .conversion-band{font-size:.88rem} }

/* Primary navigation: explicit Home, language switch and conversion CTA. */
.site-header .nav { gap: 18px; }
.site-header .nav-links { gap: clamp(8px, 1.25vw, 18px); }
.site-header .nav-links > a:not(.language-switch):not(.nav-download) {
  position: relative;
  white-space: nowrap;
  font-size: .88rem;
}
.site-header .nav-links > a[aria-current="page"]:not(.nav-download) { color: var(--saffron); }
.site-header .nav-links > a[aria-current="page"]:not(.nav-download)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--saffron);
}
.site-header .language-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 108px;
  padding: 3px;
  overflow: hidden;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  text-decoration: none;
}
.site-header .language-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd85a, var(--saffron));
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.site-header .language-switch[data-active-language="hi"]::before { transform: translateX(100%); }
.site-header .language-option {
  position: relative;
  z-index: 1;
  padding: 6px 9px;
  text-align: center;
  font-size: .69rem;
  font-weight: 900;
  line-height: 1;
}
.site-header .language-switch[data-active-language="en"] .language-option:first-child,
.site-header .language-switch[data-active-language="hi"] .language-option:last-child { color: #4a0408; }
.site-header .language-switch:hover { color: #fff; border-color: rgba(255,216,90,.65); }
.site-header .nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: #4a0408 !important;
  border: 1px solid #ffe58e;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe477, var(--saffron));
  box-shadow: 0 8px 22px rgba(255,185,34,.32), inset 0 1px 0 rgba(255,255,255,.52);
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.site-header .nav-download::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 7px;
  background: url("download-tray-icon.svg") center / contain no-repeat;
}
.site-header .nav-download:hover {
  color: #350104 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,185,34,.42), inset 0 1px 0 rgba(255,255,255,.6);
}

@media (max-width: 900px) {
  .site-header .menu-button { display: block; }
  .site-header .nav-links {
    display: none;
    position: absolute;
    inset: 74px 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    background: #570509;
    box-shadow: var(--shadow);
  }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links > a:not(.language-switch):not(.nav-download) { padding: 11px 9px; }
  .site-header .nav-links > a[aria-current="page"]:not(.nav-download)::after { display: none; }
  .site-header .language-switch { width: 100%; margin: 7px 0; }
  .site-header .language-option { padding: 10px 12px; font-size: .76rem; }
  .site-header .nav-download { margin-top: 7px; }
}

@media (max-width: 720px) {
  .site-header .nav-links { inset: 66px 16px auto; }
  .site-header .nav { gap: 10px; }
  .site-header .brand { margin-right: auto; }
  .mobile-download-shortcut {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid #ffe58e;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe477, var(--saffron));
    box-shadow: 0 7px 18px rgba(255,185,34,.3), inset 0 1px 0 rgba(255,255,255,.55);
  }
  .mobile-download-shortcut img { display: block; width: 22px; height: 22px; }
}

/* Game-rich homepage hero and table selector. */
.home-hero-content { justify-content: space-between; gap: clamp(28px, 5vw, 74px); }
.game-visual-home .hero-game-panel { display: none; }
.game-visual-home .home-hero-media img { object-position: 88% center; }
.game-visual-home .home-hero-overlay { background: linear-gradient(90deg, rgba(47,0,3,.95) 0%, rgba(73,3,7,.8) 31%, rgba(73,3,7,.24) 51%, rgba(73,3,7,.02) 76%); }
.hero-game-panel {
  flex: 0 0 372px;
  align-self: flex-end;
  margin-bottom: 18px;
  padding: 15px;
  color: #fff;
  border: 1px solid rgba(255,219,110,.52);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(24,3,5,.9), rgba(88,5,11,.84));
  box-shadow: 0 24px 60px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.hero-game-panel-head,
.hero-game-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-game-panel-head { padding: 1px 3px 11px; font-size: .82rem; font-weight: 900; letter-spacing: .02em; }
.hero-game-panel-head > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-game-panel-head small { color: rgba(255,255,255,.62); font-weight: 750; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2cf175; box-shadow: 0 0 0 4px rgba(44,241,117,.13), 0 0 14px rgba(44,241,117,.8); }
.mini-rummy-table {
  position: relative;
  height: 178px;
  overflow: hidden;
  border: 2px solid rgba(255,211,81,.66);
  border-radius: 46% / 36%;
  background: radial-gradient(circle at 50% 42%, #197c56 0, #07503a 58%, #05392c 100%);
  box-shadow: inset 0 0 0 6px rgba(83,22,12,.58), inset 0 10px 24px rgba(255,255,255,.06), 0 10px 26px rgba(0,0,0,.25);
}
.table-seat { position: absolute; width: 24px; height: 24px; border: 3px solid #f3c345; border-radius: 50%; background: #7e0b12; box-shadow: 0 4px 8px rgba(0,0,0,.3); }
.seat-one { top: 9px; left: calc(50% - 12px); }
.seat-two { top: calc(50% - 12px); right: 10px; }
.seat-three { bottom: 8px; left: calc(50% - 12px); }
.seat-four { top: calc(50% - 12px); left: 10px; }
.mini-deck,
.mini-discard { position: absolute; top: 54px; display: grid; place-items: center; width: 38px; height: 54px; border-radius: 6px; font-family: Georgia, serif; font-style: normal; font-weight: 900; box-shadow: 0 7px 14px rgba(0,0,0,.3); }
.mini-deck { left: calc(50% - 43px); color: #ffd651; border: 2px solid #ffd651; background: repeating-linear-gradient(45deg, #8c0911 0 4px, #65060b 4px 8px); }
.mini-discard { left: calc(50% + 6px); color: #ad0710; background: #fffdf5; }
.mini-discard span { display: block; margin-top: -9px; font-size: .8rem; }
.mini-hand { position: absolute; right: 0; bottom: 8px; left: 0; display: flex; justify-content: center; }
.mini-hand > span { width: 31px; height: 48px; margin-left: -5px; padding: 3px; color: #171717; border: 1px solid #d8cdb5; border-radius: 5px; background: #fffdf5; box-shadow: 0 4px 8px rgba(0,0,0,.24); font: 800 .7rem/1 Georgia, serif; transform: rotate(calc((var(--i, 0) - 2.5) * 1.5deg)); }
.mini-hand > span:first-child { margin-left: 0; }
.mini-hand em { display: block; margin-top: 3px; font-size: .74rem; font-style: normal; }
.mini-hand .red-card { color: #bd0b14; }
.hero-game-panel-foot { padding: 11px 3px 1px; color: rgba(255,255,255,.72); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.hero-game-panel-foot b { margin-right: 4px; color: var(--saffron); font-size: .82rem; }

.game-lobby { position: relative; z-index: 2; padding: 23px 0; color: #fff; border-block: 1px solid rgba(255,207,69,.42); background: linear-gradient(105deg, #2d0205, #6c080e 52%, #2d0205); box-shadow: 0 16px 34px rgba(69,2,6,.18); }
.game-lobby::before { content: "♣"; position: absolute; top: -30px; right: 5vw; color: rgba(255,214,80,.06); font: 900 9rem/1 Georgia, serif; transform: rotate(12deg); }
.game-lobby-inner { position: relative; display: grid; grid-template-columns: minmax(190px, .72fr) minmax(600px, 1.6fr); gap: 30px; align-items: center; }
.game-lobby-title { display: flex; align-items: center; gap: 14px; }
.game-lobby-title p { margin: 0 0 3px; color: var(--saffron); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.game-lobby-title h2 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.08; }
.suit-medallion { position: relative; display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; color: #fff; border: 2px solid #ffd154; border-radius: 50%; background: #150002; box-shadow: 0 0 0 5px rgba(255,209,84,.1); font: 900 1.55rem/1 Georgia, serif; }
.suit-medallion i { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; color: #b30812; border-radius: 50%; background: #ffd154; font-size: .8rem; font-style: normal; }
.game-mode-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-mode { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; min-height: 78px; padding: 10px 13px; color: #fff; border: 1px solid rgba(255,222,123,.24); border-radius: 15px; background: rgba(12,0,2,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.game-mode:hover { color: #fff; border-color: #ffd258; background: rgba(18,0,2,.62); transform: translateY(-3px); }
.game-mode strong,
.game-mode small { display: block; }
.game-mode strong { margin-bottom: 4px; font-size: .8rem; }
.game-mode small { color: rgba(255,255,255,.58); font-size: .62rem; line-height: 1.25; }
.game-mode > b { color: var(--saffron); }
.mode-card-stack { position: relative; display: block; width: 41px; height: 48px; }
.mode-card-stack i { position: absolute; display: grid; place-items: center; width: 29px; height: 41px; color: #151515; border-radius: 4px; background: #fffdf5; box-shadow: 0 4px 9px rgba(0,0,0,.28); font: 900 .75rem/1 Georgia, serif; }
.mode-card-stack i:first-child { left: 2px; transform: rotate(-10deg); }
.mode-card-stack i:last-child { right: 1px; color: #b00811; transform: rotate(10deg); }
.mode-chip { display: grid; place-items: center; width: 42px; height: 42px; color: #3a0306; border: 4px dashed #62070c; border-radius: 50%; outline: 2px solid #ffd251; background: #ffd251; font-size: .66rem; font-weight: 950; }
.mode-dealer { display: grid; place-items: center; width: 39px; height: 48px; color: #b00811; border-radius: 5px; background: #fffdf5; box-shadow: 0 5px 10px rgba(0,0,0,.3); font: 900 1.4rem/1 Georgia, serif; transform: rotate(-5deg); }

@media (max-width: 1080px) {
  .hero-game-panel { display: none; }
  .game-lobby-inner { grid-template-columns: 1fr; gap: 17px; }
  .game-lobby-title { justify-content: center; }
}

@media (max-width: 720px) {
  .game-visual-home .home-hero-media img { object-position: 67% center; }
  .game-visual-home .home-hero-overlay { background: linear-gradient(180deg, rgba(47,0,3,.08), rgba(47,0,3,.45) 30%, rgba(47,0,3,.97) 69%); }
  .game-lobby { padding: 19px 0 22px; }
  .game-lobby-inner { gap: 15px; }
  .game-lobby-title { justify-content: flex-start; }
  .game-lobby-title h2 { font-size: 1.35rem; }
  .suit-medallion { flex-basis: 48px; width: 48px; height: 48px; }
  .game-mode-list { grid-template-columns: 1fr; gap: 8px; }
  .game-mode { min-height: 68px; padding: 8px 12px; }
  .game-mode small { font-size: .66rem; }
}

/* Mobile game hero: one continuous portrait scene with copy in its quiet lower area. */
@media (max-width: 720px) {
  .game-visual-home .home-hero {
    display: block;
    min-height: 950px;
    background: #210103;
  }
  .game-visual-home .home-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    height: 100%;
  }
  .game-visual-home .home-hero-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
  }
  .game-visual-home .home-hero-overlay {
    display: block;
    background: linear-gradient(180deg, transparent 0 35%, rgba(47,0,3,.08) 44%, rgba(47,0,3,.48) 63%, rgba(47,0,3,.94) 100%);
  }
  .game-visual-home .home-hero-content {
    position: relative;
    z-index: 1;
    min-height: 950px;
    margin: 0;
    padding: 360px 16px 42px;
    align-items: flex-end;
    background: transparent;
  }
  .game-visual-home .home-hero .hero-copy-wrap { max-width: none; }
  .game-visual-home .home-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.75rem, 13vw, 3.35rem);
    line-height: .98;
  }
  .game-visual-home .home-hero .hero-copy { font-size: .92rem; }
}

/* Video centre */
.video-page-hero { position: relative; overflow: hidden; }
.video-page-hero::after {
  content: "▶";
  position: absolute;
  right: clamp(24px, 9vw, 150px);
  bottom: -38px;
  color: rgba(255, 210, 80, .08);
  font-size: clamp(9rem, 20vw, 18rem);
  line-height: 1;
  transform: rotate(-5deg);
  pointer-events: none;
}
.video-page-hero .container { position: relative; z-index: 1; }
.video-topic-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.video-topic-links a {
  padding: 8px 14px;
  color: #fff;
  border: 1px solid rgba(255, 220, 115, .48);
  border-radius: 999px;
  background: rgba(19, 0, 2, .26);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
}
.video-topic-links a:hover { color: #3c0306; background: var(--saffron); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-strong);
  box-shadow: 0 16px 38px rgba(67, 4, 8, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(67, 4, 8, .16); }
.video-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #2b0205; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(29, 0, 2, .72)); }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.video-card:hover .video-poster img { transform: scale(1.045); }
.video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  color: #fff;
  border: 3px solid rgba(255,255,255,.82);
  border-radius: 50%;
  background: linear-gradient(145deg, #e31b23, #9d0810);
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
  transform: translate(-50%, -50%);
}
.video-duration { position: absolute; z-index: 2; right: 12px; bottom: 10px; padding: 5px 9px; color: #fff; border-radius: 999px; background: rgba(12, 0, 1, .8); font-size: .66rem; font-weight: 850; }
.video-card-body { padding: 20px 20px 22px; }
.video-category { display: block; margin-bottom: 7px; color: #9e0710; font-size: .68rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.video-card h3 { margin: 0 0 9px; font-size: 1.15rem; line-height: 1.25; }
.video-card p { min-height: 4.4em; margin: 0 0 14px; color: var(--muted); font-size: .88rem; }
.youtube-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  border: 1px solid rgba(255, 216, 96, .46);
  border-radius: 24px;
  background: linear-gradient(120deg, #310205, #73080e 58%, #3c0306);
  box-shadow: 0 20px 45px rgba(67, 4, 8, .2);
}
.youtube-cta::after { content: "♥"; position: absolute; right: 25%; bottom: -80px; color: rgba(255,255,255,.04); font: 900 12rem/1 Georgia, serif; transform: rotate(12deg); }
.youtube-cta > * { position: relative; z-index: 1; }
.youtube-cta-icon { display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px; color: #fff; border: 3px solid #fff; border-radius: 50%; background: #e31b23; box-shadow: 0 12px 25px rgba(0,0,0,.28); font-size: 1.45rem; }
.youtube-cta .eyebrow { margin-bottom: 5px; }
.youtube-cta h2 { margin: 0 0 6px; color: #fff; }
.youtube-cta p:last-child { margin: 0; color: rgba(255,255,255,.72); }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .youtube-cta { grid-template-columns: auto 1fr; }
  .youtube-cta .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
  .video-grid { grid-template-columns: 1fr; gap: 17px; }
  .video-card p { min-height: 0; }
  .video-page-hero::after { right: -30px; font-size: 10rem; }
  .youtube-cta { grid-template-columns: 1fr; gap: 15px; }
  .youtube-cta-icon { width: 56px; height: 56px; }
  .youtube-cta .button { grid-column: auto; }
}
