/* Rich11 India - shared stylesheet. Mobile-first, no external fonts or CDN. */

:root {
  --c-bg: #11181b;            /* page background (brand theme-color) */
  --c-bg-alt: #172125;        /* alternate section background */
  --c-surface: #1b272c;       /* cards, tables */
  --c-surface-2: #223239;     /* hover / table head */
  --c-border: #2c3d45;
  --c-text: #ffffff;
  --c-text-muted: #b9c6cc;
  --c-accent: #fcd404;        /* yellow accent */
  --c-accent-soft: #f4dc24;
  --c-accent-ink: #11181b;    /* text on yellow */
  --c-primary: #1a73e8;       /* blue buttons */
  --c-primary-hover: #3b88f0;
  --c-danger: #ff6b6b;
  --c-ok: #4cd08a;

  --font-body: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Heebo, Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --container: 1120px;
  --gap: 1rem;
  --header-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--c-accent); color: var(--c-accent-ink); padding: 10px 14px; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons (CTA >= 44px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 700 .95rem/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--accent:hover { background: #ffe44d; color: var(--c-accent-ink); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--lg { min-height: 52px; padding: 12px 30px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-left: auto;
  background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius); cursor: pointer; color: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative;
}
.nav-toggle__bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bar::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* Without JS the menu is simply shown stacked under the logo. */
.nav { width: 100%; padding: 8px 0 16px; }
.site-header__inner { flex-wrap: wrap; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { margin: 0; }
.nav__link { display: block; padding: 11px 4px; color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--c-border); }
.nav__link:hover { color: var(--c-accent); }
.nav__link[aria-current="page"] { color: var(--c-accent); }
.nav__sub { list-style: none; margin: 0; padding: 0 0 0 16px; }
.nav__sub .nav__link { font-weight: 500; color: var(--c-text-muted); font-size: .95rem; }
.header-cta { margin-top: 14px; width: 100%; }

.js .nav-toggle { display: inline-flex; }
.js .nav { display: none; }
.js .nav.is-open { display: block; }

@media (min-width: 900px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-header__inner { flex-wrap: nowrap; }
  .nav, .js .nav, .js .nav.is-open { display: flex; align-items: center; justify-content: flex-end; flex: 1 1 auto; width: auto; padding: 0; gap: 20px; }
  .nav__list { display: flex; align-items: center; gap: 4px; }
  .nav__item { position: relative; }
  .nav__link { padding: 10px 12px; border-bottom: 0; border-radius: var(--radius); font-size: .95rem; }
  .nav__link:hover { background: var(--c-surface); }
  .has-sub > .nav__link::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .nav__sub {
    position: absolute; left: 0; top: 100%; min-width: 190px; padding: 6px;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0,0,0,.45);
    display: none;
  }
  .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { display: block; }
  .nav__sub .nav__link { color: #fff; font-size: .92rem; }
  .header-cta { margin: 0; width: auto; }
}

/* ---------- Layout blocks ---------- */
.section { padding: 40px 0; }
.section--alt { background: var(--c-bg-alt); }
.section__lead { color: var(--c-text-muted); max-width: 70ch; }
.section h2 { position: relative; padding-top: 2px; }
.section h2 span.accent, .accent { color: var(--c-accent); }

.breadcrumbs { font-size: .85rem; color: var(--c-text-muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-border); }
.breadcrumbs a { color: var(--c-text-muted); }

/* hero */
.hero { padding: 36px 0 40px; background: linear-gradient(180deg, #0e1417 0%, var(--c-bg) 100%); border-bottom: 1px solid var(--c-border); }
.hero__inner { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: 2rem; margin-bottom: .5em; }
.hero__lead { color: var(--c-text-muted); font-size: 1.05rem; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero__media img { border-radius: var(--radius-lg); width: 100%; }
.hero__offer {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.hero__offer-title { font-family: var(--font-head); font-size: 1.8rem; line-height: 1.15; color: var(--c-accent-soft); margin-bottom: 14px; font-weight: 800; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.hero__badges li { margin: 0; padding: 4px 12px; border: 1px solid var(--c-border); border-radius: 999px; font-size: .85rem; color: var(--c-text-muted); }

/* table of contents */
.toc { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 16px 20px; margin: 0 0 28px; }
.toc__title { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
.toc a { color: #fff; text-decoration: none; }
.toc a:hover { color: var(--c-accent); text-decoration: underline; }

/* review: intro + facts table */
.review__grid { display: grid; gap: 24px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.2em; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .95rem; }
.table caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--c-accent); caption-side: top; }
.table th, .table td { padding: 11px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--c-border); }
.table thead th { background: var(--c-surface-2); color: #fff; font-weight: 700; border-top: 0; }
.table tbody th { width: 38%; color: var(--c-text-muted); font-weight: 600; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }

/* text + image */
.text-image { display: grid; gap: 24px; align-items: center; }
.text-image__media img { border-radius: var(--radius-lg); width: 100%; }
.text-image__media figcaption { font-size: .85rem; color: var(--c-text-muted); margin-top: 8px; }

/* how-to */
.how-to__steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.how-to__steps > li {
  counter-increment: step; position: relative; margin: 0; padding: 16px 16px 16px 64px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
}
.how-to__steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-accent-ink); font: 800 1rem/34px var(--font-head); text-align: center;
}
.how-to__steps h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.how-to__steps p:last-child { margin-bottom: 0; }

/* cards / games */
.card-grid, .games__grid { display: grid; grid-template-columns: 1fr; gap: 14px; list-style: none; padding: 0; margin: 0 0 1em; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 18px; margin: 0; }
.card h3 { font-size: 1.05rem; color: var(--c-accent-soft); }
.card p:last-child { margin-bottom: 0; }
.card__link { font-weight: 700; }

.games__grid { grid-template-columns: repeat(2, 1fr); }
.game-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; margin: 0; display: flex; flex-direction: column; }
.game-card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--c-surface-2); }
.game-card__body { padding: 10px 12px 14px; }
.game-card__title { font: 700 .95rem/1.3 var(--font-head); margin: 0 0 2px; }
.game-card__meta { font-size: .8rem; color: var(--c-text-muted); margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.tag-list li { margin: 0; padding: 6px 14px; border: 1px solid var(--c-accent); color: var(--c-accent); border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* pros / cons */
.pros-cons { display: grid; gap: 14px; }
.pros-cons__col { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 18px 18px 8px; }
.pros-cons__col h3 { font-size: 1.05rem; }
.pros-cons__col ul { list-style: none; padding: 0; }
.pros-cons__col li { position: relative; padding-left: 26px; }
.pros-cons__col li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pros-cons__col--pros { border-top: 3px solid var(--c-ok); }
.pros-cons__col--pros li::before { content: "+"; color: var(--c-ok); }
.pros-cons__col--cons { border-top: 3px solid var(--c-danger); }
.pros-cons__col--cons li::before { content: "\2212"; color: var(--c-danger); }

/* notices */
.notice { background: var(--c-surface); border-left: 4px solid var(--c-accent); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.2em; }
.notice--warn { border-left-color: var(--c-danger); }
.notice p:last-child { margin-bottom: 0; }

/* FAQ (details/summary, works without JS) */
.faq__list { display: grid; gap: 10px; }
.faq__item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; min-height: 48px; position: relative; font-weight: 700; font-family: var(--font-head);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--c-accent); font-size: 1.5rem; line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__answer { padding: 0 18px 16px; color: var(--c-text-muted); }
.faq__answer p:last-child { margin-bottom: 0; }

/* final CTA */
.cta-banner {
  text-align: center; padding: 32px 20px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1b272c 0%, #14202a 100%); border: 1px solid var(--c-border);
}
.cta-banner h2 { color: var(--c-accent-soft); }
.cta-banner p { color: var(--c-text-muted); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* legal / long text pages */
.legal { max-width: 78ch; }
.legal h2 { margin-top: 1.6em; }
.legal .meta { color: var(--c-text-muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1114; border-top: 1px solid var(--c-border); padding: 36px 0 24px; color: var(--c-text-muted); font-size: .92rem; }
.footer__grid { display: grid; gap: 24px; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 10px; }
.footer__title { font-family: var(--font-head); color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer__nav { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin: 0; }
.footer__nav a { display: inline-block; padding: 6px 0; color: var(--c-text-muted); text-decoration: none; }
.footer__nav a:hover { color: var(--c-accent); text-decoration: underline; }
.footer__legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 12px; }
.age-line { display: flex; align-items: flex-start; gap: 12px; }
.age-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--c-accent); color: var(--c-accent); font-weight: 800;
}
.footer__copy { margin: 0; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 72px 0 80px; }
.error-page__code { font: 800 5rem/1 var(--font-head); color: var(--c-accent); margin-bottom: 8px; }
.error-page .hero__actions { justify-content: center; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .games__grid { grid-template-columns: repeat(3, 1fr); }
  .pros-cons { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 2; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.3rem; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 68px; }
  .hero h1 { font-size: 2.7rem; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero__inner--single { grid-template-columns: 1fr; }
  .review__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .text-image { grid-template-columns: 1fr 1fr; gap: 44px; }
  .text-image--reverse .text-image__media { order: -1; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .games__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__legal { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1100px) {
  .games__grid { grid-template-columns: repeat(5, 1fr); }
}

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