/* generated by apps/web/build.mjs: tokens from design/tokens.json, then src/css/site.css */
:root {
  --outline: #6B3F2A;
  --paper-50: #FFF1E6;
  --paper-0: #FFFFFF;
  --paper-100: #FFE9DA;
  --line-200: #F0D5C2;
  --ink-900: #4A2B1C;
  --ink-600: #8A5A3C;
  --ink-400: #B08468;
  --brand-600: #FF7F5A;
  --brand-700: #A0432A;
  --brand-100: #FFE3D6;
  --sky-600: #5FA8EE;
  --gold-400: #FFC83D;
  --good-600: #2FA87A;
  --warn-500: #FFB800;
  --bad-600: #E5484D;
  --lilac: #9A7BFF;
  --card-red: #C81E2A;
  --card-black: #1C1B1F;
  --card-blue4: #1F6FD1;
  --card-green4: #187A3E;
  --court-yellow: #F2C230;
  --court-blue: #2B4C9B;
  --panel-bottom: #FFF4EB;
  --screen-top: #FFE3D0;
  --screen-bottom: #E9EEFF;
  --doc-bottom: #F3F0FF;
  --rim: #3B1E08;
  --rim-light: #E0A060;
  --rim-edge: #5E3A1B;
  --table-ink: #3A2A1C;
  --scene-fallback: #E9B98A;
  --cloth-fallback: #7A4A26;
  --locked-bg: #FFF8F2;
  --chip-pass-bg: #C9F2DE;
  --chip-pass-text: #1F6E52;
  --chip-warn-bg: #FFE9A8;
  --chip-warn-text: #7A4E00;
  --chip-lilac-bg: #E8DFFF;
  --chip-lilac-text: #4B3694;
  --chip-sky-bg: #D6ECFF;
  --chip-sky-text: #2C5A8A;
  --chip-gold-text: #6B4300;
  --coral-tint: #FFB49A;
  --peach-tint: #FFD8B8;
  --combo-troy-bg: #FFD23F;
  --combo-troy-text: #1C1B1F;
  --combo-colourrun-bg: #E84A8A;
  --combo-colourrun-text: #FFFFFF;
  --combo-run-bg: #2BB3A0;
  --combo-run-text: #1C1B1F;
  --combo-colour-bg: #5B8DEF;
  --combo-colour-text: #FFFFFF;
  --combo-pair-bg: #7CC36A;
  --combo-pair-text: #1C1B1F;
  --combo-indie-bg: #B9C0E8;
  --combo-indie-text: #1C1B1F;
  --scrim: rgba(74,43,28,0.45);
  --coral-light: #FFB199;
  --coral-base: #FF7F5A;
  --coral-lip: #A0432A;
  --mint-light: #8FE3BE;
  --mint-base: #2FA87A;
  --mint-lip: #1F6E52;
  --sky-light: #A8DAFF;
  --sky-base: #5FA8EE;
  --sky-lip: #3A6A9E;
  --lilac-light: #CDB8FF;
  --lilac-base: #9A7BFF;
  --lilac-lip: #5B44A8;
  --gold-light: #FFE27A;
  --gold-base: #FFB800;
  --gold-lip: #8A5A00;
  --red-light: #FF9A9A;
  --red-base: #E5484D;
  --red-lip: #7A1010;
  --brown-light: #9A6A4C;
  --brown-base: #6B3F2A;
  --brown-lip: #3F2314;
  --grey-light: #F6ECE4;
  --grey-base: #E6D4C6;
  --grey-lip: #B08468;
  --white-light: #FFFFFF;
  --white-base: #FFF1E6;
  --white-lip: #6B3F2A;
  --bd-accent: #E8432E;
  --bd-sky-top: #FFB866;
  --bd-sky-bottom: #FFE3B3;
  --bd-far: #8E7AA8;
  --bd-wood: #8B5A2B;
  --bd-cloth: #2E8A52;
  --bd-cloth2: #E8432E;
  --np-accent: #C8102E;
  --np-sky-top: #F7B267;
  --np-sky-bottom: #FCE2C4;
  --np-far: #5B7DB1;
  --np-wood: #7A4A26;
  --np-cloth: #B5302E;
  --np-cloth2: #F59E0B;
  --in-accent: #D23D6B;
  --in-sky-top: #FF9E7A;
  --in-sky-bottom: #FFD6C2;
  --in-far: #B9718A;
  --in-wood: #9A5B34;
  --in-cloth: #2E3A87;
  --in-cloth2: #F28C28;
  --club-accent: #C9A227;
  --club-sky-top: #5A3A22;
  --club-sky-bottom: #6E1A2C;
  --club-far: #3B2416;
  --club-wood: #5A3A22;
  --club-cloth: #6E1A2C;
  --club-cloth2: #C9A227;
  --inset-button: inset 0 3px 0 rgba(255,255,255,0.55);
  --inset-ball: inset 0 2px 0 rgba(255,255,255,0.55);
  --inset-panel: inset 0 -4px 0 rgba(107,63,42,0.08);
  --elev-panel: 0 14px 22px rgba(196,140,110,0.32);
  --glow-selected: 0 12px 22px rgba(255,127,90,0.45);
  --glow-winning: 0 10px 22px rgba(255,200,61,0.55);
}

/* taashadda.com — Chunky Pastel, like the app. Every colour is a token variable (tokens.css, from design/tokens.json). */

/* ── fonts: Anek, subset + WOFF2 by tools/prepare-assets.mjs ───────────────────────────────────────── */
@font-face { font-family: "Anek Latin"; src: url(/fonts/anek-latin-500.woff2) format("woff2"); font-weight: 300 650; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Anek Latin"; src: url(/fonts/anek-latin-800.woff2) format("woff2"); font-weight: 651 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Anek Bangla"; src: url(/fonts/anek-bangla-500.woff2) format("woff2"); font-weight: 300 650; font-display: swap;
  unicode-range: U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Bangla"; src: url(/fonts/anek-bangla-800.woff2) format("woff2"); font-weight: 651 900; font-display: swap;
  unicode-range: U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Devanagari"; src: url(/fonts/anek-devanagari-800.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0900-0963, U+0966-097F, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Card"; src: url(/fonts/anek-card.woff2) format("woff2"); font-weight: 100 900; font-display: block; }

:root {
  --font: "Anek Latin", "Anek Bangla", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --r-panel: 22px;
}

/* ── base ───────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 500 17px/1.65 var(--font);
  color: var(--ink-900);
  background: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--brand-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink-900); }
strong, b { font-weight: 800; }
code { font: 700 .92em/1 var(--font); background: var(--paper-100); border-radius: 6px; padding: .1em .35em; }
:focus-visible { outline: 3px solid var(--sky-lip); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--paper-0);
  border: 3px solid var(--outline); font-weight: 800; color: var(--ink-900); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="ne"], [lang="hi"] { font-family: "Anek Devanagari", "Anek Latin", system-ui, sans-serif; }

/* ── the outlined white headline of the boards ──────────────────────────────────────────────────── */
.stroke {
  color: var(--paper-0);
  -webkit-text-stroke: .14em var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--outline);
}

/* ── icons, balls, chips ────────────────────────────────────────────────────────────────────────── */
.ic { width: 22px; height: 22px; flex: none; }
.ball {
  --l: var(--coral-light); --b: var(--coral-base); --p: var(--coral-lip);
  display: inline-grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(180deg, var(--l), var(--b));
  border: 3px solid var(--p);
  box-shadow: 0 4px 0 var(--p), var(--inset-ball);
  color: var(--paper-0);
}
.ball .ic-ball { width: 48%; height: 48%; stroke-width: 2.6; }
.ball-sm { width: 30px; height: 30px; border-width: 2.5px; box-shadow: 0 3px 0 var(--p), var(--inset-ball); }
.ball-sm .ic-ball { stroke-width: 3.2; }
.ball-coral, .btn-coral { --l: var(--coral-light); --b: var(--coral-base); --p: var(--coral-lip); }
.ball-mint, .btn-mint { --l: var(--mint-light); --b: var(--mint-base); --p: var(--mint-lip); }
.ball-sky, .btn-sky { --l: var(--sky-light); --b: var(--sky-base); --p: var(--sky-lip); }
.ball-lilac { --l: var(--lilac-light); --b: var(--lilac-base); --p: var(--lilac-lip); }
.ball-gold, .btn-gold { --l: var(--gold-light); --b: var(--gold-base); --p: var(--gold-lip); }
.ball-red { --l: var(--red-light); --b: var(--red-base); --p: var(--red-lip); }
.ball-brown, .btn-brown { --l: var(--brown-light); --b: var(--brown-base); --p: var(--brown-lip); }
.ball-white, .btn-white { --l: var(--white-light); --b: var(--white-base); --p: var(--white-lip); }
.ball-white { color: var(--outline); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 2px 13px; border-radius: 999px;
  border: 2px solid var(--outline); box-shadow: 0 2px 0 var(--outline);
  background: var(--paper-0); color: var(--outline);
  font-size: 13.5px; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
.chip .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.chip-brand { background: var(--brand-600); color: var(--paper-0); }
.chip-pass { background: var(--chip-pass-bg); color: var(--chip-pass-text); }
.chip-warn { background: var(--chip-warn-bg); color: var(--chip-warn-text); }
.chip-lilac { background: var(--chip-lilac-bg); color: var(--chip-lilac-text); }
.chip-sky { background: var(--chip-sky-bg); color: var(--chip-sky-text); }
.chip-gold { background: var(--gold-light); color: var(--chip-gold-text); }
.chip-bad { background: var(--bad-600); color: var(--paper-0); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.combo {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  border: 2px solid var(--outline); box-shadow: 0 2px 0 var(--outline);
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.combo-troy { background: var(--combo-troy-bg); color: var(--combo-troy-text); }
.combo-colourrun { background: var(--combo-colourrun-bg); color: var(--combo-colourrun-text); }
.combo-run { background: var(--combo-run-bg); color: var(--combo-run-text); }
.combo-colour { background: var(--combo-colour-bg); color: var(--combo-colour-text); }
.combo-pair { background: var(--combo-pair-bg); color: var(--combo-pair-text); }
.combo-indie { background: var(--combo-indie-bg); color: var(--combo-indie-text); }

/* ── chunky 3D buttons (System · Button 52) ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 6px 22px; border-radius: 18px;
  border: 3px solid var(--p);
  background: linear-gradient(180deg, var(--l), var(--b));
  box-shadow: 0 5px 0 var(--p), var(--inset-button);
  color: var(--paper-0); text-decoration: none;
  font-size: 18px; font-weight: 800; line-height: 1.2;
  -webkit-text-stroke: 4px var(--p); paint-order: stroke fill;
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2.8; filter: drop-shadow(0 1.5px 0 var(--p)); }
.btn:hover { color: var(--paper-0); transform: translateY(-1px); box-shadow: 0 6px 0 var(--p), var(--inset-button); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--p), var(--inset-button); }
.btn-white, .btn-white:hover { color: var(--outline); -webkit-text-stroke: 0; }
.btn-white .ic { filter: none; }
.btn-sm { min-height: 40px; padding: 4px 16px; border-radius: 14px; font-size: 15px; box-shadow: 0 4px 0 var(--p), var(--inset-button); -webkit-text-stroke-width: 3px; }
.btn-block { display: flex; width: 100%; }

/* App Store badge (brown ramp; a plain badge until SITE.appStoreUrl is set) */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 6px 20px 6px 16px; border-radius: 18px;
  background: linear-gradient(180deg, var(--brown-light), var(--brown-base));
  border: 3px solid var(--brown-lip); box-shadow: 0 5px 0 var(--brown-lip), var(--inset-button);
  color: var(--paper-0); text-decoration: none; font-size: 19px; font-weight: 800; line-height: 1.1;
}
.store small { display: block; font-size: 12px; font-weight: 600; opacity: .9; }
.store .ic-apple { width: 26px; height: 26px; }
a.store:hover { color: var(--paper-0); transform: translateY(-1px); }
.store-soon { cursor: default; }
@media (max-width: 420px) {
  .hero-cta .store { min-height: 52px; padding: 5px 14px 5px 12px; font-size: 17px; }
  .hero-cta .btn { padding: 6px 16px; font-size: 17px; }
}
.store-sm { min-height: 46px; font-size: 16px; padding: 4px 16px 4px 12px; border-radius: 15px; box-shadow: 0 4px 0 var(--brown-lip), var(--inset-button); }
.store-sm .ic-apple { width: 22px; height: 22px; }

/* ── panels ─────────────────────────────────────────────────────────────────────────────────────── */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--paper-0) 0%, var(--panel-bottom) 100%);
  border: 3px solid var(--outline); border-radius: var(--r-panel);
  box-shadow: 0 5px 0 var(--outline), var(--elev-panel), var(--inset-panel);
}

/* ── header ─────────────────────────────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper-50) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 2px solid var(--line-200);
}
.head-row { display: flex; align-items: center; gap: 10px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-900); text-decoration: none; }
.brand:hover { color: var(--ink-900); }
.brand-logo { width: 40px; height: 40px; filter: drop-shadow(0 2px 0 var(--outline)); }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { padding: 7px 14px; border-radius: 12px; font-weight: 800; font-size: 16px; color: var(--ink-600); text-decoration: none; }
.nav a:hover { background: var(--paper-100); color: var(--ink-900); }
.nav a[aria-current="page"] { background: var(--brand-100); color: var(--brand-700); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  height: 38px; padding: 0 13px; border-radius: 999px;
  border: 2.5px solid var(--outline); box-shadow: 0 3px 0 var(--outline);
  background: var(--paper-0); color: var(--outline); font-weight: 800; font-size: 15px; text-decoration: none;
}
.lang .ic { width: 17px; height: 17px; }
.lang:hover { color: var(--outline); background: var(--paper-100); }
.menu { position: relative; }
.menu summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  height: 38px; padding: 0 12px; border-radius: 12px;
  border: 2.5px solid var(--outline); box-shadow: 0 3px 0 var(--outline); background: var(--paper-0);
  color: var(--outline); font-weight: 800; font-size: 15px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu .ic-menu { width: 18px; height: 18px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; min-width: 210px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--paper-0); border: 3px solid var(--outline); border-radius: 18px; box-shadow: 0 5px 0 var(--outline), var(--elev-panel);
}
.menu-panel a { padding: 11px 14px; border-radius: 12px; font-weight: 800; color: var(--ink-900); text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--brand-100); }
@media (max-width: 419px) { .lang span { display: none; } .lang { padding: 0 10px; } }
@media (min-width: 760px) {
  .nav { display: flex; }
  .lang { margin-left: 8px; }
  .menu { display: none; }
}

/* ── footer ─────────────────────────────────────────────────────────────────────────────────────── */
.site-foot { margin-top: 40px; background: var(--paper-0); border-top: 3px solid var(--outline); }
.foot-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { color: var(--ink-600); font-weight: 600; margin: 8px 0 16px; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-600); margin-bottom: 4px; }
.site-foot nav a { color: var(--ink-900); font-weight: 700; text-decoration: none; font-size: 16px; }
.site-foot nav a:hover { color: var(--brand-700); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 18px; padding-bottom: 28px;
  border-top: 2px dashed var(--line-200); color: var(--ink-600); font-size: 14px; font-weight: 600; }
.foot-base a { color: var(--ink-600); font-weight: 800; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

/* ── playing cards (Deck board geometry, sized by --w) ──────────────────────────────────────────── */
.pc {
  position: relative; display: inline-block; flex: none; vertical-align: top;
  width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * .08);
  background: var(--paper-0);
  box-shadow: 0 0 0 calc(var(--w) * .033) var(--outline), 0 calc(var(--w) * .066) 0 var(--outline);
  transform: rotate(var(--r, 0deg)); overflow: hidden;
}
.pc-red { color: var(--card-red); }
.pc-black { color: var(--card-black); }
.pc-i {
  position: absolute; left: calc(var(--w) * .055); top: calc(var(--w) * .06);
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--w) * .02); min-width: calc(var(--w) * .18);
}
.pc-i b { font: 800 calc(var(--w) * .27) / .9 "Anek Card", "Anek Latin", sans-serif; letter-spacing: -.02em; }
.pc-i .su { width: calc(var(--w) * .17); height: calc(var(--w) * .17); }
.pc-i2 { left: auto; top: auto; right: calc(var(--w) * .055); bottom: calc(var(--w) * .06); transform: rotate(180deg); }
.pip { position: absolute; width: calc(var(--w) * var(--s)); height: calc(var(--w) * var(--s)); }
.pip-r { transform: rotate(180deg); }
.pip-ace { left: 50%; top: 50%; width: calc(var(--w) * .56); height: calc(var(--w) * .56); transform: translate(-50%, -50%); }
.pc-mark { position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; font: 800 calc(var(--w) * .07) / 1 "Anek Latin", sans-serif; letter-spacing: .12em; color: var(--ink-600); }
.pc-court { position: absolute; left: 22%; top: 12%; width: 56%; height: 76%; border: 1px solid currentColor; border-radius: calc(var(--w) * .02); overflow: hidden; background: var(--paper-0); }
.pc-court img { position: absolute; left: 0; width: 100%; height: 50%; object-fit: cover; object-position: center bottom; max-width: none; }
.pc-court img:first-of-type { top: 0; }
.pc-court img:nth-of-type(2) { top: 50%; transform: rotate(180deg); }
.pc-court::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: .4; }
.pc-court .su { position: absolute; z-index: 1; width: 24%; height: auto; aspect-ratio: 1; }
.su-a { left: 6%; top: 3%; }
.su-b { right: 6%; bottom: 3%; transform: rotate(180deg); }
.pc-back { background: var(--paper-0); padding: calc(var(--w) * .06); }
.pc-back img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .04); }
.fan { position: relative; display: inline-block; flex: none; }
.fan .pc { position: absolute; }
.cardrow { display: inline-flex; flex-wrap: wrap; gap: 12px; padding: 6px 6px 12px; }

/* table cloth (region tiles, inset like the app's table) */
.cloth { position: relative; background-color: var(--cloth-fallback); background-size: auto 100%; background-position: center; box-shadow: inset 0 6px 0 color-mix(in srgb, var(--card-black) 22%, transparent); }
.cloth-bd { background-image: url(/img/cloth-bd.webp); }
.cloth-np { background-image: url(/img/cloth-np.webp); }
.cloth-in { background-image: url(/img/cloth-in.webp); }

/* kites drift (Motion · m-kite) */
.kite { position: absolute; pointer-events: none; animation: kite 4.2s ease-in-out var(--d, 0s) infinite; }
.kite .kite-x { stroke: var(--paper-0); stroke-opacity: .7; }
.kite .kite-s { stroke: var(--club-wood); }
@keyframes kite { 0%, 100% { transform: translate(0, 0) rotate(-5deg); } 50% { transform: translate(7px, -9px) rotate(5deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes popIn { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; opacity: 1; } }

/* speech bubble (System · Bubble) */
.bubble {
  position: relative; display: inline-block; max-width: 230px;
  padding: 9px 14px; border-radius: 16px; background: var(--paper-0);
  border: 3px solid var(--outline); box-shadow: 0 4px 0 var(--outline);
  font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--ink-900);
}
.bubble::after {
  content: ""; position: absolute; right: 18px; bottom: -9px; width: 14px; height: 14px; background: var(--paper-0);
  border-right: 3px solid var(--outline); border-bottom: 3px solid var(--outline); transform: rotate(45deg); border-radius: 0 0 3px 0;
}

/* ── sections ───────────────────────────────────────────────────────────────────────────────────── */
.sec { padding: 44px 0; }
.sec-head { max-width: 720px; margin-bottom: 28px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--brand-700); font-weight: 800; font-size: 15px; }
.eyebrow .ic { width: 18px; height: 18px; }
.h2 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -.01em; }
.sec-head p { margin: 12px 0 0; font-size: 18px; color: var(--ink-600); font-weight: 600; }
@media (min-width: 900px) { .sec { padding: 84px 0; } .sec-head { margin-bottom: 40px; } }

/* ── home: hero ─────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--paper-50); }
.hero-scene { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 500px; }
.hero-scene picture, .hero-scene img { width: 100%; height: 100%; }
.hero-scene img { object-fit: cover; object-position: 50% 58%; }
.hero-scene::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 48%, color-mix(in srgb, var(--paper-50) 70%, transparent) 78%, var(--paper-50) 100%); }
.hero-grid { position: relative; display: grid; padding-top: 246px; padding-bottom: 20px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 6px; font-size: clamp(50px, 15.4vw, 108px); line-height: 1.12; letter-spacing: -.01em; white-space: nowrap; }
.hero-sub { margin: 10px 0 12px; font-size: clamp(21px, 5.4vw, 30px); font-weight: 800; line-height: 1.25; }
.hero-lead { max-width: 33em; font-size: 18px; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; margin: 22px 0 22px; }
.hero .chips .chip { background: color-mix(in srgb, var(--paper-0) 85%, transparent); }
.hero-kaka { position: absolute; z-index: 1; right: max(0px, calc(50% - 200px)); top: 74px; width: 150px; }
.hero-kaka img { width: 100%; height: auto; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--outline) 30%, transparent)); }
.hero-kaka .bubble { position: absolute; right: 112px; top: 6px; width: max-content; padding: 7px 12px; font-size: 13.5px; white-space: nowrap; animation: popIn .4s cubic-bezier(.3, 1.4, .5, 1) .5s both; }
.hero .k1 { left: 6%; top: 150px; --d: .4s; }
.hero .k2 { left: 34%; top: 84px; --d: 1.1s; }
.hero .k3 { left: 20%; top: 214px; --d: 2s; }
.hero-lead { max-width: 520px; }
@media (min-width: 960px) {
  .hero-grid { padding-bottom: 48px; }
  .hero { min-height: 640px; background: linear-gradient(180deg, var(--bd-sky-top) 0%, var(--bd-sky-bottom) 70%, var(--paper-50) 100%); }
  .hero-scene { left: auto; width: min(64%, 860px); height: 100%; top: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--outline) 30%), linear-gradient(180deg, var(--outline) 78%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, var(--outline) 30%), linear-gradient(180deg, var(--outline) 78%, transparent 100%);
    mask-composite: intersect; }
  .hero-scene::after { display: none; }
  .hero-scene img { object-position: 50% 64%; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; min-height: 640px; padding-top: 56px; padding-bottom: 72px; }
  .hero-kaka { position: relative; right: auto; top: auto; grid-column: 2; grid-row: 1; justify-self: end; align-self: end; width: 300px; margin: 0 4% -40px 0; }
  .hero-kaka .bubble { right: 210px; top: 6px; font-size: 16px; padding: 9px 14px; white-space: normal; max-width: 250px; }
  .hero .k1 { left: 46%; top: 70px; }
  .hero .k2 { left: 58%; top: 150px; }
  .hero .k3 { left: 40%; top: 196px; }
}

/* ── home: games ────────────────────────────────────────────────────────────────────────────────── */
.games { display: grid; gap: 22px; }
@media (min-width: 860px) { .games { grid-template-columns: 1fr 1fr; gap: 28px; } }
.game { display: flex; flex-direction: column; padding: 8px; }
.game-art { display: grid; place-items: center; height: 230px; border-radius: 16px; border: 2.5px solid var(--outline); overflow: hidden; }
.game-art .combo { position: absolute; left: 14px; bottom: 14px; }
.game-art .ribbon { position: absolute; left: -3px; top: 14px; padding: 3px 14px 3px 12px; border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, var(--red-light), var(--red-base)); border: 2.5px solid var(--red-lip); border-left: 0;
  box-shadow: 0 3px 0 var(--red-lip); color: var(--paper-0); font-size: 13px; font-weight: 800; }
.game-body { padding: 18px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.game h3 { font-size: 36px; }
.game .latin { color: var(--ink-600); font-weight: 800; margin: 2px 0 14px; font-size: 16px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks .ball { margin-top: 1px; }
.game .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 860px) { .game-art { height: 260px; } }

/* ── home: ways to play ─────────────────────────────────────────────────────────────────────────── */
.ways { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.way { padding: 18px 16px 16px; }
.way h3 { font-size: 19px; margin: 14px 0 6px; }
.way p { margin: 0; font-size: 15px; color: var(--ink-600); font-weight: 600; line-height: 1.5; }
.feats { display: grid; gap: 16px; margin-top: 16px; }
.feat { display: grid; grid-template-columns: 1fr; overflow: hidden; }
.feat-art { position: relative; display: grid; place-items: center; min-height: 170px; margin: 8px 8px 0; border-radius: 15px; border: 2.5px solid var(--outline); overflow: hidden; }
.feat-art.sky { background: linear-gradient(180deg, var(--screen-top), var(--screen-bottom)); }
.feat-body { padding: 16px 16px 18px; }
.feat h3 { font-size: 22px; margin-bottom: 6px; }
.feat p { margin: 0 0 12px; color: var(--ink-600); font-weight: 600; font-size: 16px; }
.feat .chips { gap: 6px; }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px; }
.trophy { width: 84px; height: 84px; margin-bottom: 6px; }
@media (min-width: 900px) {
  .ways { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .feats { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
}

/* ── home: regions ──────────────────────────────────────────────────────────────────────────────── */
.regions-sec { background: linear-gradient(180deg, var(--paper-50), var(--screen-top) 30%, var(--paper-50)); }
.regions { display: grid; gap: 22px; }
@media (min-width: 900px) { .regions { grid-template-columns: repeat(3, 1fr); } }
.region { padding: 8px; display: flex; flex-direction: column; }
.region-art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; border: 2.5px solid var(--outline); overflow: hidden; background: var(--scene-fallback); }
.region-art > img { width: 100%; height: 100%; object-fit: cover; }
.region-art .kaka { position: absolute; right: -2%; bottom: -4%; width: 50%; height: auto; filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--outline) 35%, transparent)); }
.stamp {
  position: absolute; left: 12px; top: 12px; transform: rotate(-6deg);
  padding: 2px 14px; border-radius: 14px; background: var(--paper-0);
  border: 3px solid var(--outline); box-shadow: 0 4px 0 var(--outline);
  font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--r-accent);
}
.region-body { padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.region h3 { font-size: 30px; }
.region .games-native { font-size: 18px; font-weight: 800; color: var(--ink-600); margin: 0; }
.region .setting { margin: 0; color: var(--ink-900); font-weight: 600; font-size: 16px; }
.region dl { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.region dt { color: var(--ink-600); font-weight: 600; }
.region dd { margin: 0; font-weight: 700; }
.swatches { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.swatches .cloth { width: 48px; height: 66px; border-radius: 8px; border: 2.5px solid var(--outline); box-shadow: 0 3px 0 var(--outline); background-size: 90px 90px; }
.swatches .dot { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--outline); box-shadow: 0 2px 0 var(--outline); }
.region-bd { --r-accent: var(--bd-accent); }
.region-np { --r-accent: var(--np-accent); }
.region-in { --r-accent: var(--in-accent); }
.langs-line { margin: 28px auto 0; text-align: center; font-weight: 700; color: var(--ink-600); }

/* ── FAQ (details) ──────────────────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq.center { margin: 0 auto; }
.qa { background: var(--paper-0); border: 3px solid var(--outline); border-radius: 18px; box-shadow: 0 4px 0 var(--outline); }
.qa summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 800; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { margin-left: auto; width: 22px; height: 22px; color: var(--brand-700); transition: transform .2s ease; transform: rotate(-90deg); }
.qa[open] summary .ic { transform: rotate(90deg); }
.qa .ans { padding: 0 18px 16px; color: var(--ink-900); }
.qa .ans p:last-child { margin-bottom: 0; }
.qa[open] summary { border-bottom: 2px dashed var(--line-200); margin-bottom: 12px; }

/* ── home: store band (Event banner style) ──────────────────────────────────────────────────────── */
.band {
  position: relative; overflow: hidden; display: grid; gap: 8px; align-items: center;
  padding: 26px 22px; border-radius: 26px;
  background: linear-gradient(135deg, var(--coral-light), var(--coral-base) 60%, var(--bd-accent));
  border: 3px solid var(--red-lip); box-shadow: 0 6px 0 var(--red-lip), var(--elev-panel), var(--inset-button);
  color: var(--paper-0);
}
.band h2 { font-size: clamp(32px, 7vw, 52px); }
.band p { font-size: 18px; font-weight: 600; margin: 10px 0 18px; max-width: 30em; -webkit-text-stroke: 3.5px var(--red-lip); paint-order: stroke fill; }
.band .kaka { width: 200px; height: auto; justify-self: center; margin-bottom: -40px; }
.band .kite { right: 24px; top: 20px; }
@media (min-width: 860px) { .band { grid-template-columns: 1fr auto; padding: 44px 52px; } .band .kaka { width: 280px; margin: -20px 20px -70px 0; } }

/* ── long pages: rules, legal, support ──────────────────────────────────────────────────────────── */
.doc-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 3px solid var(--outline);
  background: linear-gradient(180deg, var(--bd-sky-top), var(--bd-sky-bottom)); }
.doc-hero.np { background: linear-gradient(180deg, var(--np-sky-top), var(--np-sky-bottom)); }
.doc-hero.plain { background: linear-gradient(180deg, var(--screen-top), var(--paper-50)); border-bottom: 2px solid var(--line-200); }
.doc-hero .wrap { display: grid; gap: 18px; padding-top: 36px; padding-bottom: 36px; align-items: center; }
.doc-hero h1 { font-size: clamp(38px, 9vw, 64px); line-height: 1.1; }
.doc-hero .lede { font-size: 19px; font-weight: 600; margin: 14px 0 0; max-width: 34em; }
.doc-hero .art { display: flex; justify-content: center; align-items: flex-end; gap: 8px; }
.doc-hero .art .kaka { width: 150px; height: auto; }
.doc-hero .art .ball { width: 96px; height: 96px; border-width: 4px; box-shadow: 0 7px 0 var(--p), var(--inset-button); }
.doc-hero .art .ball .ic-ball { stroke-width: 2.4; }
@media (max-width: 899px) { .doc-hero .art:has(.ball) { display: none; } }
@media (max-width: 520px) { .doc-hero .art { zoom: .8; justify-content: flex-start; } }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--ink-600); margin-bottom: 10px; }
.crumbs a { color: var(--ink-600); }
@media (min-width: 900px) {
  .doc-hero .wrap { grid-template-columns: 1fr auto; padding-top: 52px; padding-bottom: 52px; }
  .doc-hero .art .kaka { width: 190px; }
  .doc-hero .art .ball { width: 128px; height: 128px; margin-right: 24px; }
}
.doc { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 1000px) { .doc { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 48px; } }
.toc { align-self: start; }
.toc-narrow { background: var(--paper-0); border: 2.5px solid var(--outline); border-radius: 16px; box-shadow: 0 3px 0 var(--outline); }
.toc-narrow summary { padding: 12px 16px; font-weight: 800; cursor: pointer; }
.toc ol { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink-900); font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--brand-100); color: var(--brand-700); }
.toc-wide { display: none; }
.toc-h { margin: 0 0 8px; padding: 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-600); }
@media (min-width: 1000px) {
  .toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .toc-wide { display: block; }
  .toc-narrow { display: none; }
  .toc ol { padding: 0; border-left: 2px solid var(--line-200); }
  .toc a { border-radius: 0 10px 10px 0; margin-left: -2px; border-left: 2px solid transparent; }
  .toc a:hover { border-left-color: var(--brand-600); }
}
.prose { max-width: 760px; min-width: 0; }
.prose > h2 { font-size: clamp(26px, 5vw, 34px); margin: 52px 0 16px; padding-top: 28px; border-top: 2px dashed var(--line-200); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand-600); font-weight: 800; }
.prose ol:lang(bn) { list-style-type: bengali; }
.prose .table { overflow-x: auto; margin: 0 0 1.4em; border: 3px solid var(--outline); border-radius: 16px; box-shadow: 0 4px 0 var(--outline); background: var(--paper-0); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--line-200); }
.prose th { background: var(--paper-100); font-weight: 800; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose .a-center { text-align: center; }
.prose .a-right { text-align: right; font-variant-numeric: tabular-nums; }
.note { margin: 0 0 1.4em; padding: 14px 18px; border-radius: 16px; background: var(--brand-100); border: 2.5px solid var(--outline); box-shadow: 0 3px 0 var(--outline); }
.note p:last-child { margin: 0; }
.updated { display: inline-flex; margin-bottom: 26px; }
.ex { margin: 0 0 1.4em; padding: 16px; display: grid; gap: 12px; }
.ex-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ex-cards .lab { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-600); }
.ex-cap { margin: 0; font-weight: 600; }
.ex-cap strong { color: var(--brand-700); }
.prose .combo-list { display: grid; gap: 14px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.combo-list li { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
.combo-list .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.combo-list .rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--outline); color: var(--paper-0); font-weight: 800; font-size: 15px; }
.combo-list h3 { margin: 0; font-size: 20px; }
.combo-list p { margin: 0; color: var(--ink-600); font-weight: 600; font-size: 15.5px; }
@media (min-width: 640px) { .combo-list li { grid-template-columns: 1fr auto; align-items: center; } .combo-list .cardrow { grid-row: 1 / 3; grid-column: 2; } }
.steps { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: var(--paper-0); border: 2.5px solid var(--outline); border-radius: 16px; box-shadow: 0 3px 0 var(--outline); margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, var(--coral-light), var(--coral-base)); border: 2.5px solid var(--coral-lip); box-shadow: 0 3px 0 var(--coral-lip); color: var(--paper-0); font-weight: 800; }
:lang(bn) .steps li::before { content: counter(s, bengali); }
.contact { display: grid; gap: 14px; margin: 0 0 1.4em; }
@media (min-width: 700px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact .panel { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.contact h3 { margin: 0 0 4px; font-size: 19px; }
.contact p { margin: 0; color: var(--ink-600); font-weight: 600; font-size: 15.5px; }
.cat { margin: 34px 0 12px; display: flex; align-items: center; gap: 10px; font-size: 22px; }

/* ── invite pages (InviteLanding board) ─────────────────────────────────────────────────────────── */
.invite { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 66px); padding: 36px 0 56px; }
.invite-bg { position: absolute; inset: 0; z-index: -1; }
.invite-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.invite-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--card-black) 18%, transparent), transparent 40%, color-mix(in srgb, var(--paper-50) 85%, transparent) 75%, var(--paper-50)); }
.invite .wrap { max-width: 520px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.invite h1 { font-size: clamp(36px, 10vw, 52px); }
.invite .kaka { width: 150px; height: auto; margin-bottom: -18px; }
.invite-card { width: 100%; padding: 8px; text-align: left; }
.invite-card .cloth { height: 120px; border-radius: 15px; border: 2.5px solid var(--outline); display: grid; place-items: center; }
.invite-card .in { padding: 16px 12px 12px; }
.invite-card h2 { font-size: 22px; }
.invite-card p { margin: 4px 0 0; color: var(--ink-600); font-weight: 600; font-size: 15px; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--paper-100); border: 2.5px dashed var(--ink-400); }
.code span { font-size: 14px; font-weight: 800; color: var(--ink-600); }
.code output { font: 800 32px/1 "Anek Latin", sans-serif; letter-spacing: .12em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.invite .btn { width: 100%; }
.invite .fine { font-size: 14px; font-weight: 600; color: var(--ink-600); margin: 0; }
.seats { display: flex; gap: 10px; margin-top: 14px; }
.seats img, .seats .empty { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--outline); box-shadow: 0 3px 0 var(--outline); }
.seats .empty { border-style: dashed; box-shadow: none; background: var(--paper-0); }

/* ── 404 ────────────────────────────────────────────────────────────────────────────────────────── */
.lost { text-align: center; padding-top: 56px; padding-bottom: 24px; }
.lost .kaka { width: 210px; height: auto; margin: 0 auto 8px; }
.lost h1 { font-size: clamp(36px, 9vw, 56px); }
.lost p { font-size: 18px; font-weight: 600; color: var(--ink-600); }
.lost .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
