/* 29.sadid.dev shared styles: the content pages (/rules, /strategy, /faq,
   /download/*) and the Bangla pages (/bn/). The English home page keeps its
   own copy of these inline, for a faster first paint. Linked as
   site.css?v=N: bump N on every change (/assets/** is cached for a day). */

:root {
  --felt-deep: #071c12;
  --felt-dark: #0b2a1c;
  --felt: #145230;
  --felt-mid: #24764a;
  --felt-light: #34975a;
  --cream: #faf5e9;
  --cream-dim: rgba(250, 245, 233, 0.74);
  --cream-faint: rgba(250, 245, 233, 0.12);
  --gold: #f3d27a;
  --gold-deep: #c9a227;
  --red: #c8202f;
  --ink: #1d2320;
  --radius: 18px;
  --wrap: 1120px;
  --prose: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Nunito", "Avenir Next", Avenir, system-ui, sans-serif;
  --font-bn: "Noto Sans Bengali", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--felt-deep);
  color: var(--cream);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="bn"] body { font-family: var(--font-bn); line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
code { font-size: .92em; background: rgba(250, 245, 233, .08); padding: 1px 6px; border-radius: 6px; color: var(--cream); }
.bn { font-family: var(--font-bn); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar { background: var(--felt-dark); border-bottom: 1px solid var(--cream-faint); }
.topbar.overlay { position: absolute; inset: 0 0 auto 0; z-index: 2; background: transparent; border: 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 800; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.topnav { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 15px; }
.topnav a { color: var(--cream-dim); text-decoration: none; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--cream); }
.topnav a.nav-play { color: var(--ink); background: var(--gold); padding: 4px 14px; border-radius: 999px; }
.topnav a.nav-play:hover { color: var(--ink); filter: brightness(1.08); }
@media (max-width: 760px) {
  .topbar .wrap { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .topnav { overflow-x: auto; gap: 18px; padding: 4px 2px 6px; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--cream-dim); margin: 28px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--cream-dim); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--gold); }

/* ---------- article pages ---------- */
.page-head { padding: 22px 0 8px; max-width: var(--prose); }
.page-head h1 { margin: 6px 0 12px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; }
.page-head .lede { font-size: clamp(18px, 1.9vw, 20px); color: var(--cream-dim); font-weight: 600; margin: 0; }
.page-head .meta { margin: 14px 0 0; font-size: 14px; color: var(--cream-dim); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
html[lang="bn"] .eyebrow { letter-spacing: .02em; }

.layout { display: grid; grid-template-columns: minmax(0, var(--prose)) 260px; gap: 56px; align-items: start; padding: 28px 0 40px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.toc { position: sticky; top: 20px; font-size: 15px; border: 1px solid var(--cream-faint); border-radius: 14px; padding: 18px 20px; background: rgba(250, 245, 233, .03); }
.toc h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--cream-dim); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--cream); }
@media (max-width: 1000px) { .toc { position: static; order: -1; margin-bottom: 28px; } }

.prose { max-width: var(--prose); min-width: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 900; margin: 48px 0 12px; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--cream-dim); }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--cream); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; }
.prose .num { color: var(--gold); font-weight: 900; margin-right: 6px; }

.callout { border-left: 4px solid var(--gold); background: rgba(243, 210, 122, .08); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 20px; }
.callout p:last-child { margin-bottom: 0; }
.callout.red { border-color: var(--red); background: rgba(200, 32, 47, .1); }

.table-scroll { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--cream-faint); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--cream-faint); }
th { color: var(--cream); background: rgba(250, 245, 233, .05); font-weight: 800; white-space: nowrap; }
td { color: var(--cream-dim); }
tr:last-child td { border-bottom: 0; }

/* card strip: ranks and points */
.ranks { display: grid; grid-template-columns: repeat(8, minmax(0, 64px)); gap: clamp(5px, 1.2vw, 10px); margin: 8px 0 24px; }
.card {
  width: 100%; aspect-ratio: 5 / 7; border-radius: clamp(6px, 1vw, 9px);
  background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35); position: relative;
}
.card b { font-size: clamp(16px, 2.4vw, 26px); font-weight: 900; line-height: 1; font-family: var(--font); }
.card i { font-style: normal; font-size: clamp(12px, 1.7vw, 18px); line-height: 1.2; }
.card.red { color: var(--red); }
.card .pts { position: absolute; bottom: -10px; right: -8px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 900; border-radius: 999px; padding: 1px 7px; font-family: var(--font); }

/* FAQ */
.faq { display: grid; gap: 12px; margin: 0 0 24px; }
.faq details { border: 1px solid var(--cream-faint); border-radius: 14px; background: rgba(250, 245, 233, .03); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; color: var(--cream); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 6px; }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 9px 18px 9px 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  font-family: var(--font);
}
.store:hover { transform: translateY(-2px); border-color: var(--gold); background: #0d0d0d; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; letter-spacing: .03em; opacity: .85; }
.store b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.store.store-web { background: var(--red); border-color: transparent; }
.store.store-web:hover { background: var(--red); border-color: var(--gold); filter: brightness(1.08); }
.store.store-web small { opacity: 1; }
html[lang="bn"] .store small, html[lang="bn"] .store b { font-family: var(--font-bn); letter-spacing: 0; }
@media (max-width: 420px) { .store { flex: 1 1 100%; } }

/* ---------- closing call ---------- */
.cta {
  text-align: center; border-radius: 26px; padding: 48px var(--gutter); margin: 24px 0 64px;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, var(--felt-mid), var(--felt) 60%, var(--felt-dark));
  box-shadow: 0 0 0 1px var(--cream-faint);
}
.cta h2 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 900; }
.cta p { margin: 0; color: var(--cream-dim); font-weight: 600; }
.cta .bn { color: var(--gold); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 0 0 6px; }
.cta .stores { justify-content: center; margin-top: 26px; }

/* related links */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.related a { display: block; border: 1px solid var(--cream-faint); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--cream); background: rgba(250, 245, 233, .03); transition: border-color .15s ease; }
.related a:hover { border-color: var(--gold); }
.related b { display: block; font-size: 17px; }
.related span { color: var(--cream-dim); font-size: 15px; }

/* ---------- landing sections (the Bangla home page) ---------- */
.hero {
  position: relative; padding: 120px 0 72px; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 25% 40%, var(--felt-light) 0%, var(--felt-mid) 35%, var(--felt) 65%, var(--felt-dark) 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--felt-deep)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 12px 0 0; font-size: clamp(40px, 6vw, 70px); line-height: 1.1; font-weight: 900; }
.hero .sub-title { font-weight: 800; color: var(--gold); font-size: clamp(22px, 3vw, 34px); line-height: 1.3; margin: 6px 0 0; font-family: var(--font); }
.hero .rule { width: 72px; height: 4px; border-radius: 2px; background: var(--red); margin: 24px 0 20px; }
.hero .lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--cream-dim); max-width: 36ch; margin: 0 0 28px; font-weight: 600; }
.hero .lede strong { color: var(--cream); }
.hero .free { margin: 14px 0 0; font-size: 14px; color: var(--cream-dim); font-weight: 600; }
.hero-shot { border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .hero { padding: 120px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .lede { max-width: none; }
}

section.block { padding: 72px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 900; }
.section-head p { margin: 0; color: var(--cream-dim); font-weight: 600; }
.accent { color: var(--gold); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: linear-gradient(160deg, rgba(36, 118, 74, .32), rgba(20, 82, 48, .14)); border: 1px solid var(--cream-faint); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.feature p { margin: 0; color: var(--cream-dim); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; box-shadow: 0 0 0 1px var(--cream-faint), 0 12px 30px rgba(0, 0, 0, .4); }
.shots figcaption { margin-top: 8px; font-size: 15px; color: var(--cream-dim); font-weight: 600; }
@media (max-width: 820px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }

.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--cream-faint); border-radius: var(--radius); padding: 24px; background: rgba(250, 245, 233, .03); color: var(--cream); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.platform:hover { border-color: var(--gold); transform: translateY(-2px); }
.platform svg { width: 34px; height: 34px; margin-bottom: 8px; }
.platform h3 { margin: 0; font-size: 20px; font-weight: 800; }
.platform p { margin: 0; color: var(--cream-dim); font-size: 15px; }
.platform .go { margin-top: auto; padding-top: 10px; color: var(--gold); font-weight: 800; font-size: 15px; }
@media (max-width: 1080px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { padding: 40px 0 56px; color: var(--cream-dim); font-size: 15px; }
footer .wrap { border-top: 1px solid var(--cream-faint); padding-top: 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
.foot-cols h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
html[lang="bn"] .foot-cols h2 { letter-spacing: .02em; font-size: 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer a { color: var(--cream-dim); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--gold); }
.foot-base { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* Accessible card examples in the English and Bangla strategy guides. */
.example-hand { display:grid; grid-template-columns:repeat(4,minmax(0,64px)); gap:12px; margin:20px 0; }
