/* PlayTirangaGame — design system
   Palette taken from the supplied Tiranga creatives: deep indigo/navy night background,
   gold headline metal, neon violet + cyan glow, tricolour (saffron/white/green) accents,
   game-ball red/green/violet for the WinGo colours.
   Layout pattern: sticky glass header, two-column hero with phone screenshot, card grids,
   score box, top-searches chips, four-column footer.
   Type: system stack incl. Devanagari → no web-font CLS, no network cost. */
:root {
  --bg: #070a2e; --bg-2: #0d1147; --panel: #121856; --panel-2: #19206b; --panel-3: #222a85;
  --ink: #f4f6ff; --ink-2: #c9cff5; --ink-3: #9aa3dc;
  --gold: #ffcc33; --gold-2: #ffb300; --gold-ink: #2a1a00;
  --violet: #9b5cff; --cyan: #3fd2ff; --magenta: #ff4fd8;
  --saffron: #ff9933; --green: #22c55e; --green-flag: #138808;
  --ball-red: #ff4d4d; --ball-green: #2fd36b; --ball-violet: #b06bff;
  --danger: #ff6b6b; --danger-bg: rgba(255, 77, 77, .12); --danger-line: rgba(255, 107, 107, .45);
  --ok-bg: rgba(34, 197, 94, .12); --ok-line: rgba(34, 197, 94, .45);
  --note-bg: rgba(255, 204, 51, .10); --note-line: rgba(255, 204, 51, .42);
  --line: rgba(140, 160, 255, .20); --line-2: rgba(140, 160, 255, .34);
  --glow: 0 0 0 1px rgba(63, 210, 255, .25), 0 10px 40px rgba(155, 92, 255, .22);
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --r-1: 8px; --r-2: 14px; --r-3: 22px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --w-prose: 760px; --w-wide: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Nirmala UI", "Noto Sans Devanagari", Mangal, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 1.0625rem/1.72 var(--font); overflow-wrap: break-word; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 10% 0%, rgba(155, 92, 255, .30), transparent 40%),
              radial-gradient(ellipse at 95% 25%, rgba(63, 210, 255, .16), transparent 34%),
              radial-gradient(ellipse at 50% 100%, rgba(255, 79, 216, .10), transparent 40%),
              linear-gradient(180deg, #070a2e 0%, #0d1147 55%, #070a2e 100%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .10;
  background-image: linear-gradient(rgba(140, 160, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 160, 255, .25) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.lang-hi { line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--r-1); z-index: 100; font-weight: 700; }
.skip:focus { left: 10px; }
.wrap { width: min(var(--w-wide), calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(var(--w-wide), calc(100% - 48px)); } }

/* tricolour rule + notice */
.tricolour { height: 4px; background: linear-gradient(90deg, var(--saffron) 0 33.3%, #ffffff 33.3% 66.6%, var(--green-flag) 66.6%); }
.notice { background: rgba(7, 10, 46, .9); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .8125rem; line-height: 1.55; padding: 8px 0; }
.notice a { color: var(--gold); }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(9, 12, 52, .86); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-row { display: flex; align-items: center; gap: var(--s-3); min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { flex: none; filter: drop-shadow(0 0 10px rgba(255, 204, 51, .35)); }
.brand__name { font-weight: 900; font-size: 1.3rem; letter-spacing: -.03em; white-space: nowrap;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd54a 40%, #ffb300 70%, #ff8a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__name span { background: linear-gradient(180deg, #ffffff, #c9cff5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__tag { display: none; font-size: .75rem; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 10px; white-space: nowrap; }
@media (min-width: 1240px) { .brand__tag { display: inline; } }
.lang-switch { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 700; }
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
.lang-switch svg { opacity: .8; }
.menu { position: relative; flex: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--r-1); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-size: .875rem; font-weight: 700; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu__bars, .menu__bars::before, .menu__bars::after { content: ""; display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu__bars::before { position: absolute; top: -5px; } .menu__bars::after { position: absolute; top: 5px; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 310px); padding: var(--s-2); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-2); box-shadow: var(--shadow); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: 11px 12px; border-radius: var(--r-1); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.menu li a:hover, .menu li a[aria-current] { background: rgba(255, 204, 51, .10); color: var(--gold); }
.header-cta { display: none; }
@media (min-width: 1120px) {
  .menu summary { display: none; }
  .menu nav, .menu:not([open]) > nav { display: block; position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .menu ul { display: flex; gap: 2px; }
  .menu li a { font-size: .875rem; padding: 8px 10px; }
  .header-cta { display: inline-flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px; font-weight: 800; font-size: .9375rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #ffe27a, #ffc21a 55%, #ffab00); color: var(--gold-ink); box-shadow: 0 8px 26px rgba(255, 179, 0, .25); }
.btn-gold:hover { color: var(--gold-ink); box-shadow: 0 12px 32px rgba(255, 179, 0, .35); }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn-help { background: rgba(34, 197, 94, .14); color: #b9f5cf; border-color: var(--ok-line); }
.btn-help:hover { color: #fff; }
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: .875rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-5); }

/* breadcrumbs */
.crumbs { padding-top: var(--s-4); font-size: .8125rem; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* page head */
.doc { max-width: calc(var(--w-prose) + 48px); padding-bottom: var(--s-7); }
.doc__head { padding: var(--s-5) 0 var(--s-5); margin-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 var(--s-2); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.lang-hi .kicker { letter-spacing: .02em; text-transform: none; font-size: .875rem; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.02em; color: #fff; }
.lang-hi h1, .lang-hi h2, .lang-hi h3 { line-height: 1.45; letter-spacing: 0; }
h1 { font-weight: 900; font-size: clamp(1.95rem, 1.1rem + 3.4vw, 3rem); margin: 0 0 var(--s-4); }
h1 .gold, .gold { background: linear-gradient(100deg, #fff 0%, #ffe8a3 35%, var(--gold) 70%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1875rem; color: var(--ink-2); }
.lead p { margin: 0 0 var(--s-3); }
.meta { font-size: .8125rem; color: var(--ink-3); margin: var(--s-4) 0 0; }
.meta a { color: var(--ink-2); }

/* prose */
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 1.9rem); margin: var(--s-8) 0 var(--s-3); }
.prose h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--saffron), #fff, var(--green-flag)); }
.prose h3 { font-size: 1.2rem; margin: var(--s-6) 0 var(--s-2); color: var(--gold); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; color: var(--ink-2); }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.answer { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); border-radius: var(--r-2); padding: var(--s-4) var(--s-5); box-shadow: var(--glow); }
.answer > :first-child { margin-top: 0; } .answer p { color: var(--ink); }
.answer__label { font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; margin: 0 0 4px; }
.lang-hi .answer__label { text-transform: none; letter-spacing: .02em; font-size: .8125rem; }
.callout { border-radius: var(--r-2); padding: var(--s-4) var(--s-5); border: 1px solid; }
.callout > :first-child { margin-top: 0; } .callout > * + * { margin-top: var(--s-2); }
.callout p, .callout li { color: var(--ink); }
.callout--warn { background: var(--danger-bg); border-color: var(--danger-line); }
.callout--warn strong:first-child { color: #ffb4b4; }
.callout--help { background: var(--ok-bg); border-color: var(--ok-line); }
.callout--help strong:first-child { color: #9ff0bd; }
.callout--note { background: var(--note-bg); border-color: var(--note-line); }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 46px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .875rem; color: var(--gold-ink); background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, var(--gold-2)); box-shadow: 0 0 14px rgba(255, 204, 51, .35); }
.steps > li + li { margin-top: var(--s-3); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.redflags li::before { border: 0; width: 11px; height: 11px; top: .55em; background: var(--danger); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 107, 107, .6); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-2); background: rgba(18, 24, 86, .75); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
caption { text-align: left; padding: var(--s-3) var(--s-4); font-weight: 800; color: var(--gold); border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: 11px var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
thead th { background: rgba(34, 42, 133, .7); font-size: .8125rem; font-weight: 800; color: #fff; }
tbody th { color: #fff; font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bad { color: #ff9a9a !important; font-weight: 800; } .ok { color: #8ff0b4 !important; font-weight: 800; }
.ball { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; font-weight: 900; font-size: .85em; color: #fff; margin: 0 1px; vertical-align: middle; }
.ball--g { background: radial-gradient(circle at 35% 30%, #9dffc1, var(--ball-green) 60%, #12823d); }
.ball--r { background: radial-gradient(circle at 35% 30%, #ffb3b3, var(--ball-red) 60%, #a01515); }
.ball--v { background: radial-gradient(circle at 35% 30%, #e6c9ff, var(--ball-violet) 60%, #5b1fa8); }
.ball--rv { background: linear-gradient(135deg, var(--ball-red) 50%, var(--ball-violet) 50%); }
.ball--gv { background: linear-gradient(135deg, var(--ball-green) 50%, var(--ball-violet) 50%); }

/* figures */
.fig { margin: var(--s-6) 0; }
.fig img { width: 100%; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--glow); }
.fig--tall { max-width: 380px; }
.fig figcaption { font-size: .875rem; color: var(--ink-3); margin-top: var(--s-2); line-height: 1.6; }

/* score / review box */
.score { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; padding: var(--s-5); border-radius: var(--r-3); border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(155, 92, 255, .22), rgba(18, 24, 86, .9) 60%); box-shadow: var(--glow); }
.score__num { font-size: 3.2rem; line-height: 1; font-weight: 900; color: var(--danger); text-shadow: 0 0 22px rgba(255, 107, 107, .45); }
.score__num small { font-size: 1.1rem; color: var(--ink-3); text-shadow: none; }
.score p { margin: 0; color: var(--ink); }
.score__bar { grid-column: 1 / -1; display: grid; gap: 6px; }
.score__row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: .875rem; color: var(--ink-2); }
.score__track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.score__fill { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--danger), var(--gold)); }

/* faq */
.faq { margin-top: var(--s-8) !important; }
.faq-item, .faq details { background: rgba(18, 24, 86, .6); border: 1px solid var(--line); border-radius: var(--r-2); margin-top: 10px; }
.faq-item summary, .faq summary { cursor: pointer; padding: var(--s-4) 44px var(--s-4) var(--s-4); font-weight: 750; color: #fff; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); }
.faq-item[open], .faq details[open] { border-color: var(--line-2); }
.faq-item[open] summary::after, .faq details[open] summary::after { content: "–"; }
.faq-item > div, .faq details > div { padding: 0 var(--s-4) var(--s-4); color: var(--ink-2); }
.faq-item > div p, .faq details > div p { margin: 0 0 var(--s-2); }

/* cards */
.cards { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.cards li { margin: 0 !important; }
.card { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: var(--s-4) var(--s-5); text-decoration: none; color: var(--ink); background: linear-gradient(180deg, rgba(34, 42, 133, .55), rgba(18, 24, 86, .85)); border: 1px solid var(--line); border-radius: var(--r-2); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: rgba(63, 210, 255, .6); box-shadow: var(--glow); transform: translateY(-2px); color: var(--ink); }
.card__t { font-weight: 800; color: #fff; }
.card__d { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.card__tag { font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.card__img { margin: calc(var(--s-4) * -1) calc(var(--s-5) * -1) var(--s-3); border-radius: var(--r-2) var(--r-2) 0 0; overflow: hidden; aspect-ratio: 3 / 2; background: var(--panel); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.related { max-width: calc(var(--w-prose) + 48px); padding-bottom: var(--s-8); }
.related h2 { font-size: 1.3rem; margin: 0 0 var(--s-4); }

/* top searches chips */
.chips { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0 !important; }
.chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }

/* home hero */
.hero { padding: var(--s-7) 0 var(--s-7); border-bottom: 1px solid var(--line); margin-bottom: var(--s-7); }
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.1rem, 1.1rem + 4vw, 3.6rem); line-height: 1.08; }
.lang-hi .hero h1 { line-height: 1.35; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); max-width: 640px; }
.hero__media { justify-self: center; width: min(100%, 360px); position: relative; }
.hero__media::before { content: ""; position: absolute; inset: 10% -8% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(155, 92, 255, .55), transparent 65%); filter: blur(10px); }
.hero__media img { border-radius: 26px; border: 1px solid var(--line-2); box-shadow: var(--shadow), var(--glow); }
.hero__media figcaption { font-size: .8125rem; color: var(--ink-3); margin-top: 10px; text-align: center; }
.home .prose { max-width: 900px; padding-bottom: var(--s-7); }
.verdict-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; margin-top: var(--s-5); }
@media (min-width: 620px) { .verdict-grid { grid-template-columns: repeat(3, 1fr); } }
.verdict { padding: var(--s-4); border-radius: var(--r-2); border: 1px solid var(--line); background: rgba(18, 24, 86, .75); }
.verdict b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.lang-hi .verdict b { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.verdict span { display: block; margin-top: 4px; font-weight: 800; color: #fff; line-height: 1.4; }
.verdict--red { border-color: var(--danger-line); } .verdict--red span { color: #ffb4b4; }
.verdict--gold { border-color: var(--note-line); } .verdict--gold span { color: var(--gold); }

/* calculator */
.calc { padding: var(--s-5); border-radius: var(--r-3); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--glow); }
.calc__grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 620px) { .calc__grid { grid-template-columns: repeat(3, 1fr); } }
.calc label { display: block; font-size: .875rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.calc input, .calc select { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0e3c; color: #fff; font: inherit; }
.calc input:focus, .calc select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.calc__out { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-2); background: rgba(7, 10, 46, .7); border: 1px dashed var(--line-2); color: var(--ink); }
.calc__out strong { color: var(--gold); }

/* footer */
.site-footer { margin-top: var(--s-7); background: rgba(5, 7, 34, .92); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9375rem; padding: var(--s-7) 0 var(--s-5); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand { font-weight: 900; font-size: 1.15rem; margin: 0 0 var(--s-2); color: var(--gold); }
.footer-h { color: #fff; font-weight: 800; margin: 0 0 var(--s-2); font-size: .875rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.social a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .8125rem; }
.footer-help { margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--r-2); background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ink); }
.footer-help a { color: #b9f5cf; text-decoration: underline; }
.footer-legal { font-size: .8125rem; color: var(--ink-3); margin-top: var(--s-4); }
.footer-legal p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .notice, .site-footer, .related, .tricolour { display: none; } body { background: #fff; color: #000; } }

/* header: mobile fit (order matters: after .btn) */
.site-header .header-cta { display: none; }
@media (min-width: 1120px) { .site-header .header-cta { display: inline-flex; } }
@media (max-width: 560px) {
  .header-row { gap: 8px; min-height: 60px; }
  .brand__name { font-size: 1.05rem; }
  .brand__mark { width: 28px; height: 28px; }
  .menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu summary, .lang-switch { padding: 0 10px; }
  .notice { font-size: .75rem; }
}
@media (max-width: 360px) { .brand__name span { display: none; } }
@media (max-width: 640px) { .table-wrap table { min-width: 560px; } .table-wrap { -webkit-overflow-scrolling: touch; } }

/* review fixes: contrast */
.ball { color: #08101f; text-shadow: none; }
.calc input, .calc select { border-color: rgba(170, 185, 255, .62); }
.brand__tag { display: inline; }
@media (max-width: 1239px) { .brand { flex-wrap: wrap; row-gap: 0; } .brand__tag { flex-basis: 100%; border-left: 0; padding-left: 44px; margin-top: -6px; font-size: .6875rem; } }
@media (max-width: 560px) { .brand__tag { padding-left: 36px; } }

/* v2: hero band on every page */
.hero--page { padding: var(--s-6) 0 var(--s-6); margin-bottom: var(--s-6);
  background: radial-gradient(ellipse at 85% 20%, rgba(155, 92, 255, .28), transparent 55%), linear-gradient(180deg, rgba(25, 32, 107, .55), rgba(7, 10, 46, 0)); }
.hero__grid--solo { grid-template-columns: 1fr !important; }
.hero__grid > div:first-child { max-width: 760px; }
.hero--page h1 { font-size: clamp(1.9rem, 1.1rem + 3vw, 2.9rem); }
.hero__media--round { width: min(100%, 300px); }
.hero__media--round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.hero .answer { margin-top: var(--s-3); }
.crumbs--top { padding-top: var(--s-3); padding-bottom: 0; }
.prose--doc { max-width: calc(var(--w-prose) + 48px); padding-bottom: var(--s-7); }
.doc-page .meta { margin-top: var(--s-4); }
@media (max-width: 899px) { .hero__media { order: -1; width: min(70%, 260px); } .hero__media figcaption { font-size: .75rem; } }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

/* v2: responsive navigation panel */
@media (max-width: 1119px) {
  .menu { position: static; }
  .menu nav { left: 0; right: 0; top: 100%; width: auto; margin: 0; border-radius: 0 0 var(--r-2) var(--r-2); border-left: 0; border-right: 0; padding: var(--s-3) var(--s-4) var(--s-4); max-height: calc(100vh - 120px); overflow-y: auto; }
  .menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .menu li a { padding: 12px 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-height: 48px; display: flex; align-items: center; }
  .site-header { position: sticky; }
  .header-row { position: relative; }
}
@media (max-width: 380px) { .menu ul { grid-template-columns: 1fr; } }
.menu[open] summary .menu__bars { background: transparent; }
.menu[open] summary .menu__bars::before { top: 0; transform: rotate(45deg); }
.menu[open] summary .menu__bars::after { top: 0; transform: rotate(-45deg); }
.menu__bars::before, .menu__bars::after { transition: transform .2s; }

/* v2.1: desktop nav outside <details> (closed details never render children) */
.nav-desk { display: none; }
.nav-desk ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-desk a { display: block; padding: 8px 10px; border-radius: var(--r-1); text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: .875rem; white-space: nowrap; }
.nav-desk a:hover, .nav-desk a[aria-current] { background: rgba(255, 204, 51, .10); color: var(--gold); }
@media (min-width: 1120px) { .nav-desk { display: block; } .menu { display: none; } .brand__tag { display: none; } }
@media (min-width: 1360px) { .brand__tag { display: inline; } }
